1 2013-12-05 Kirill Yukhin <kirill.yukhin@intel.com>
3 * config/ia64/ia64.md (prologue_allocate_stack): Block auto-
4 generation of predicated version.
5 (epilogue_deallocate_stack): Ditto.
6 (prologue_allocate_stack_pr): Add explicit predicated version.
7 (epilogue_deallocate_stack_pr): Ditto.
8 * config/ia64/ia64.c (ia64_single_set): Use explicit version.
10 2013-12-05 Alan Modra <amodra@gmail.com>
12 * configure.ac (BUILD_CXXFLAGS) Don't use ALL_CXXFLAGS for
14 <recursive call for build != host>: Clear GMPINC. Don't bother
17 2013-12-04 Jakub Jelinek <jakub@redhat.com>
18 Marek Polacek <polacek@redhat.com>
20 * opts.c (common_handle_option): Handle
21 -fsanitize=signed-integer-overflow.
22 * config/i386/i386.md (addv<mode>4, subv<mode>4, mulv<mode>4,
23 negv<mode>3, negv<mode>3_1): Define expands.
24 (*addv<mode>4, *subv<mode>4, *mulv<mode>4, *negv<mode>3): Define
26 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW,
27 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW,
28 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW,
29 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW): Define.
30 * ubsan.h (PROB_VERY_UNLIKELY, PROB_EVEN, PROB_VERY_LIKELY,
32 (ubsan_build_overflow_builtin): Declare.
33 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Add folding of
35 * ubsan.c (PROB_VERY_UNLIKELY): Don't define here.
36 (ubsan_build_overflow_builtin): New function.
37 (instrument_si_overflow): Likewise.
38 (ubsan_pass): Add signed integer overflow checking.
39 (gate_ubsan): Enable the pass also when SANITIZE_SI_OVERFLOW.
40 * flag-types.h (enum sanitize_code): Add SANITIZE_SI_OVERFLOW.
41 * internal-fn.c: Include ubsan.h and target.h.
42 (ubsan_expand_si_overflow_addsub_check): New function.
43 (ubsan_expand_si_overflow_neg_check): Likewise.
44 (ubsan_expand_si_overflow_mul_check): Likewise.
45 (expand_UBSAN_CHECK_ADD): Likewise.
46 (expand_UBSAN_CHECK_SUB): Likewise.
47 (expand_UBSAN_CHECK_MUL): Likewise.
48 * fold-const.c (fold_binary_loc): Don't fold A + (-B) -> A - B and
49 (-A) + B -> B - A when doing the signed integer overflow checking.
50 * internal-fn.def (UBSAN_CHECK_ADD, UBSAN_CHECK_SUB, UBSAN_CHECK_MUL):
52 * tree-vrp.c (extract_range_basic): Handle internal calls.
53 * optabs.def (addv4_optab, subv4_optab, mulv4_optab, negv4_optab): New
55 * asan.c: Include predict.h.
56 (PROB_VERY_UNLIKELY, PROB_ALWAYS): Don't define here.
57 * predict.c: Move the PROB_* macros...
58 * predict.h (enum br_predictor): ...here.
59 (PROB_LIKELY, PROB_UNLIKELY): Define.
60 * trans-mem.c: Include predict.h.
61 (PROB_VERY_UNLIKELY, PROB_ALWAYS, PROB_VERY_LIKELY,
62 PROB_LIKELY, PROB_UNLIKELY): Don't define here.
64 2013-12-04 Jeff Law <law@redhat.com>
66 * common.opt: Split up -fisolate-erroneous-paths into
67 -fisolate-erroneous-paths-dereference and
68 -fisolate-erroneous-paths-attribute.
69 * invoke.texi: Corresponding changes.
70 * gimple.c (infer_nonnull_range): Add and use new arguments
71 to control what kind of statements can be used to infer a
73 * gimple.h (infer_nonnull_range): Update prototype.
74 * tree-vrp.c (infer_value_range): Corresponding changes.
75 * opts.c (default_options_table): Update due to option split.
76 * gimple-ssa-isolate-paths.c: Fix trailing whitespace.
77 (find_implicit_erroneous_behaviour): Pass additional arguments
78 to infer_nonnull_range.
79 (find_explicit_erroneous_behaviour): Similarly.
80 (gate_isolate_erroneous_paths): Check both of the new
83 2013-12-04 Jeff Law <law@redhat.com>
85 * expr.c (expand_assignment): Update comments.
87 2013-12-04 Tobias Burnus <burnus@net-b.de>
90 * lto-streamer.h (LTO_tags): Add LTO_namelist_decl_ref.
91 * tree.def (NAMELIST_DECL): Add.
92 * tree.h (NAMELIST_DECL_ASSOCIATED_DECL): New macro.
93 * tree.c (initialize_tree_contains_struct): Add asserts for it.
94 * dwarf2out.c (gen_namelist_decl): New function.
95 (gen_decl_die, dwarf2out_decl): Call it.
96 (dwarf2out_imported_module_or_decl_1): Handle NAMELIST_DECL.
97 * lto-streamer-in.c (lto_input_tree_ref): Handle NAMELIST_DECL.
98 (lto_input_tree_ref, lto_input_tree_1): Update lto_tag_check_range
100 * lto-streamer-out.c (lto_output_tree_ref): Handle NAMELIST_DECL.
102 2013-12-03 Xinliang David Li <davidxl@google.com>
104 * tree-ssa-structalias.c (constraint_set_union): Change return type
106 (merge_node_constraints): Ditto.
107 (unify_nodes): Update changed set when constraints set changes.
109 2013-12-04 H.J. Lu <hongjiu.lu@intel.com>
111 * configure.ac: Append gdbasan.in to .gdbinit if CFLAGS contains
113 * configure: Regenerated.
115 * gdbasan.in: New file.
117 2013-12-04 Jakub Jelinek <jakub@redhat.com>
119 PR rtl-optimization/58726
120 * combine.c (force_to_mode): Fix comment typo. Don't destructively
121 modify x for ROTATE, ROTATERT and IF_THEN_ELSE.
123 2013-12-04 Jakub Jelinek <jakub@redhat.com>
124 Uros Bizjak <ubizjak@gmail.com>
127 * config/i386/i386.c (ix86_legitimate_combined_insn): If for
128 !TARGET_AVX there is misaligned MEM operand with vector mode
129 and get_attr_ssememalign is 0, return false.
130 (ix86_expand_special_args_builtin): Add get_pointer_alignment
131 computed alignment and for non-temporal loads/stores also
132 at least GET_MODE_ALIGNMENT as MEM_ALIGN.
134 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
135 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
136 <sse2_avx_avx512f>_loaddqu<mode><mask_name>,
137 <sse2_avx_avx512f>_storedqu<mode>, <sse3>_lddqu<avxsizesuffix>,
138 sse_vmrcpv4sf2, sse_vmrsqrtv4sf2, sse2_cvtdq2pd, sse_movhlps,
139 sse_movlhps, sse_storehps, sse_loadhps, sse_loadlps,
140 *vec_interleave_highv2df, *vec_interleave_lowv2df,
141 *vec_extractv2df_1_sse, sse2_movsd, sse4_1_<code>v8qiv8hi2,
142 sse4_1_<code>v4qiv4si2, sse4_1_<code>v4hiv4si2,
143 sse4_1_<code>v2qiv2di2, sse4_1_<code>v2hiv2di2,
144 sse4_1_<code>v2siv2di2, sse4_2_pcmpestr, *sse4_2_pcmpestr_unaligned,
145 sse4_2_pcmpestri, sse4_2_pcmpestrm, sse4_2_pcmpestr_cconly,
146 sse4_2_pcmpistr, *sse4_2_pcmpistr_unaligned, sse4_2_pcmpistri,
147 sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Add ssememalign attribute.
148 * config/i386/i386.md (ssememalign): New define_attr.
150 2013-12-04 Jakub Jelinek <jakub@redhat.com>
152 PR tree-optimization/59355
153 * ipa-devirt.c (gate_ipa_devirt): Return false if !flag_devirtualize.
154 * opts.c (common_handle_option): Fix comment spelling.
156 2013-12-04 Yufeng Zhang <yufeng.zhang@arm.com>
158 * gimple-ssa-strength-reduction.c: Include tree-affine.h.
159 (name_expansions): New static variable.
160 (alt_base_map): Ditto.
161 (get_alternative_base): New function.
162 (find_basis_for_candidate): For CAND_REF, optionally call
163 find_basis_for_base_expr with the returned value from
164 get_alternative_base.
165 (record_potential_basis): Add new parameter 'base' of type 'tree';
166 add an assertion of non-NULL base; use base to set node->base_expr.
167 (alloc_cand_and_find_basis): Update; call record_potential_basis
168 for CAND_REF with the returned value from get_alternative_base.
169 (replace_refs): Dump details on the replacing.
170 (execute_strength_reduction): Call pointer_map_create for
171 alt_base_map; call free_affine_expand_cache with &name_expansions.
173 2013-12-03 Wei Mi <wmi@google.com>
175 PR rtl-optimization/59020
176 * sched-deps.c (try_group_insn): Move it from haifa-sched.c to here.
177 (sched_analyze_insn): Call try_group_insn.
178 (sched_analyze): Cleanup SCHED_GROUP_P before start the analysis.
179 * haifa-sched.c (try_group_insn): Moved to sched-deps.c.
180 (group_insns_for_macro_fusion): Removed.
181 (sched_init): Remove calling group_insns_for_macro_fusion.
183 2013-12-03 Peter Bergner <bergner@vnet.ibm.com>
185 * config/rs6000/htmintrin.h (_TEXASR_INSTRUCTION_FETCH_CONFLICT): Fix
187 (_TEXASRU_INSTRUCTION_FETCH_CONFLICT): Likewise.
189 2013-12-03 Vladimir Makarov <vmakarov@redhat.com>
191 * config/aarch64/aarch64.c (aarch64_frame_pointer_required): Check
193 (aarch64_can_eliminate): Don't check elimination source when
194 frame_pointer_required is false.
196 2013-12-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
198 * config/avr/avr.c (avr_option_override): Warn if asked to generate
199 position independent code.
200 * config/avr/avr.h: Modify LINK_SPEC to reject -shared.
202 2013-12-03 H.J. Lu <hongjiu.lu@intel.com>
205 * config/i386/i386.c (emit_memset): Adjust destination address
207 (expand_setmem_epilogue): Likewise.
209 2013-12-03 Marek Polacek <polacek@redhat.com>
212 * calls.c (expand_call): Disallow passing huge arguments by value.
214 2013-12-03 Jakub Jelinek <jakub@redhat.com>
216 PR tree-optimization/59362
217 * tree-object-size.c (object_sizes): Change into array of
218 vec<unsigned HOST_WIDE_INT>.
219 (compute_builtin_object_size): Check computed bitmap for
220 non-NULL instead of object_sizes. Call safe_grow on object_sizes
221 vector if new SSA_NAMEs appeared.
222 (init_object_sizes): Check computed bitmap for non-NULL.
223 Call safe_grow on object_sizes elements instead of initializing
225 (fini_object_sizes): Call release on object_sizes elements, don't
229 * gimplify.c (nonlocal_vla_vars): New variable.
230 (gimplify_var_or_parm_decl): Put VAR_DECLs for VLAs into
231 nonlocal_vla_vars chain.
232 (gimplify_body): Call declare_vars on nonlocal_vla_vars chain
233 if outer_bind has DECL_INITIAL (current_function_decl) block.
236 * dojump.c (save_pending_stack_adjust, restore_pending_stack_adjust):
238 * expr.h (struct saved_pending_stack_adjust): New type.
239 (save_pending_stack_adjust, restore_pending_stack_adjust): New
241 * optabs.c (emit_conditional_move): Call save_pending_stack_adjust
242 and get_last_insn before do_pending_stack_adjust, call
243 restore_pending_stack_adjust after delete_insns_since.
244 * expr.c (expand_expr_real_2): Don't call do_pending_stack_adjust
245 before calling emit_conditional_move.
246 * expmed.c (expand_sdiv_pow2): Likewise.
247 * calls.c (expand_call): Use {save,restore}_pending_stack_adjust.
249 2013-12-02 Jeff Law <law@redhat.com>
251 PR tree-optimization/59322
252 * tree-ssa-threadedge.c (create_edge_and_update_destination_phis):
253 Remove code which copied jump threading paths.
255 2013-12-02 Sriraman Tallam <tmsriram@google.com>
258 * config/i386/i386.opt (ix86_arch_string): Mark this variable
259 for saving in cl_target_option.
260 (ix86_tune_string): Ditto.
261 (ix86_cmodel): Ditto.
263 (ix86_asm_dialect): Ditto.
264 (ix86_branch_cost): Ditto.
265 (ix86_dump_tunes): Ditto.
266 (ix86_force_align_arg_pointer): Ditto.
267 (ix86_force_drap): Ditto.
268 (ix86_incoming_stack_boundary_arg): Ditto.
270 (ix86_preferred_stack_boundary_arg): Ditto.
271 (ix86_recip_name): Ditto.
272 (ix86_regparm): Ditto.
273 (ix86_section_threshold): Ditto.
274 (ix86_sse2avx): Ditto.
275 (ix86_stack_protector_guard): Ditto.
276 (ix86_stringop_alg): Ditto.
277 (ix86_tls_dialect): Ditto.
278 (ix86_tune_ctrl_string): Ditto.
279 (ix86_tune_memcpy_strategy): Ditto.
280 (ix86_tune_memset_strategy): Ditto.
281 (ix86_tune_no_default): Ditto.
282 (ix86_veclibabi_type): Ditto.
283 * config/i386/i386.c (function_specific_save): Save the above
284 variables in gcc_options to cl_target_option.
285 (function_specific_restore): Do the reverse done in
286 function_specific_save.
287 (ix86_valid_target_attribute_tree): Change ix86_arch_string
288 and ix86_tune_string to use the opts structure.
289 (ix86_option_override_internal):Change
290 ix86_incoming_stack_boundary_arg to
291 opts->x_ix86_incoming_stack_boundary_arg
293 2013-12-02 Joern Rennecke <joern.rennecke@embecosm.com>
295 * config/epiphany/epiphany.h: Wrap rtl_opt_pass declarations
296 in #ifndef IN_LIBGCC2 / #endif.
298 2013-12-02 Jakub Jelinek <jakub@redhat.com>
300 PR tree-optimization/59358
301 * tree-vrp.c (union_ranges): To check for the partially overlapping
302 ranges or adjacent ranges, also compare *vr0max with vr1max.
304 2013-12-02 Sterling Augustine  <saugustine@google.com>
306 * dwarf2out.c (output_pubnames): Use comp_unit_die ()->die_offset
307 when there isn't a skeleton die.
309 2013-12-02 Marek Polacek <polacek@redhat.com>
312 * doc/invoke.texi: Document -fsanitize=return.
314 2013-12-02 Tobias Burnus <burnus@net-b.de>
315 Manuel López-Ibáñez <manu@gcc.gnu.org>
318 * doc/invoke.texi: Add missing @opindex.
319 (-fsanitize=): Use @gcctabopt instead of @itemize.
321 2013-12-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
323 Fix C++0x memory model for unaligned fields in packed, aligned(4)
324 structures with -fno-strict-volatile-bitfields on STRICT_ALIGNMENT
325 targets like arm-none-eabi.
326 * expr.c (expand_assignment): Handle normal fields like bit regions.
328 2013-12-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
331 * function.c (invoke_set_current_function_hook): Call
332 targetm.set_current_function after setting this_fn_optabs.
334 2013-12-02 Richard Biener <rguenther@suse.de>
336 PR tree-optimization/59139
337 * tree-ssa-loop-niter.c (chain_of_csts_start): Properly match
339 (get_val_for): Use gcc_checking_asserts.
341 2013-12-02 Richard Biener <rguenther@suse.de>
344 * tree-ssa-operands.c (opf_implicit): Remove.
345 (opf_address_taken): New flag.
346 (get_expr_operands): Remove early out, pass down opf_address_taken for
347 ADDR_EXPRs, add a use operand only for non-opf_address_taken bases.
348 (get_indirect_ref_operands): Rename to ...
349 (get_mem_ref_operands): ... this.
350 (get_asm_expr_operands): Rename to ...
351 (get_asm_stmt_operands): ... this.
353 2013-12-02 Yuri Rumyantsev <ysrumyan@gmail.com>
355 * ipa-inline.c (check_callers): Add missed pointer de-reference.
357 2013-12-02 Eric Botcazou <ebotcazou@adacore.com>
359 PR tree-optimization/59356
360 * tree-dfa.h (get_addr_base_and_unit_offset_1) <case ARRAY_REF>: Do the
361 offset computation using the precision of the index type.
363 2013-12-02 Yvan Roux <yvan.roux@linaro.org>
366 * config/arm/arm.c (arm_preferred_reload_class): Only return LO_REGS
367 when rclass is GENERAL_REGS.
369 2013-12-02 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
371 * loop-unroll.c (decide_unroll_constant_iterations): Check macro
372 TARGET_LOOP_UNROLL_ADJUST while deciding unroll factor.
374 2013-12-01 Eric Botcazou <ebotcazou@adacore.com>
376 * config/i386/winnt.c (i386_pe_asm_named_section): Be prepared for an
379 2013-12-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
381 * expr.c (emit_group_store): Fix off-by-one BITFIELD_END argument.
383 2013-11-30 Paulo Matos <pmatos@broadcom.com>
384 Eric Botcazou <ebotcazou@adacore.com>
386 * combine.c (reg_nonzero_bits_for_combine): Apply mask transformation
387 as applied to nonzero_sign_valid when last_set_mode has less precision
390 2013-11-30 Tobias Burnus <burnus@net-b.de>
393 * doc/invoke.texi (-fsanitize=address,leak): Mention the associated
394 environment variable and link to a list with flags.
395 (-fsanitize=thread): Ditto and update link.
397 2013-11-29 Vladimir Makarov <vmakarov@redhat.com>
399 PR rtl-optimization/59340
400 * lra.c (check_rtl): Use recog_memoized instead of insn_invalid_p.
403 2013-11-20 Robert Suchanek <Robert.Suchanek@imgtec.com>
405 * lra.c (lra): Set lra_in_progress before check_rtl call.
406 * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
407 adding clobber regs when LRA is running.
409 2013-11-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
412 * config/arm/arm.c (cortexa15_extra_costs): Adjust costs.
414 2013-11-29 Richard Biener <rguenther@suse.de>
417 * tree-ssa-operands.h (fini_ssa_operands, verify_ssa_operands,
418 free_stmt_operands, update_stmt_operands): Add struct function
420 * tree-ssa-operands.c: Remove uses of cfun, propagate struct
421 function argument from fini_ssa_operands, verify_ssa_operands,
422 free_stmt_operands and update_stmt_operands everywhere.
423 * tree-ssanames.h (release_ssa_name_fn): New.
424 (release_ssa_name): Inline wrapper around release_ssa_name_fn.
425 * tree-ssanames.c (release_ssa_name): Rename to ...
426 (release_ssa_name_fn): ... this and add struct function argument.
427 * gimple-ssa.h (update_stmt, update_stmt_if_modified): Adjust.
428 (update_stmt_fn): New function.
429 * tree-cfg.c (move_block_to_fn): Adjust.
430 * tree-if-conv.c (free_bb_predicate): Likewise.
431 * tree-ssa.c (verify_ssa): Likewise.
432 (delete_tree_ssa): Likewise.
433 * gimple-pretty-print.c (dump_gimple_mem_ops): Remove guard.
434 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Call
435 update_stmt_fn instead of update_stmt.
437 2013-11-29 Yvan Roux <yvan.roux@linaro.org>
439 * config/arm/arm.h (THUMB_SECONDARY_INPUT_RELOAD_CLASS): Return NO_REGS
442 2013-11-29 Yvan Roux <yvan.roux@linaro.org>
444 * config/arm/arm.md (store_minmaxsi): Use only when
445 optimize_function_for_size_p.
447 2013-11-29 Jakub Jelinek <jakub@redhat.com>
448 Yury Gribov <y.gribov@samsung.com>
451 * config/gnu-user.h: Removed old code for setting up sanitizer libs.
452 * gcc.c: Using libsanitizer spec instead of explicit libs.
454 2013-11-29 Ilya Enkovich <ilya.enkovich@intel.com>
457 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
458 * cgraph.h (varpool_node): Add need_bounds_init field.
459 * lto-cgraph.c (lto_output_varpool_node): Output
460 need_bounds_init value.
461 (input_varpool_node): Read need_bounds_init value.
462 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
465 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
466 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
467 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
468 (gen_type_die_with_usage): Skip pointer bounds.
469 (dwarf2out_global_decl): Likewise.
472 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
473 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
474 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
475 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
476 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
477 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
478 (gimple_call_with_bounds_p): New.
479 (gimple_call_set_with_bounds): New.
480 (gimple_call_num_nobnd_args): Remove.
481 (gimple_call_nobnd_arg): Remove.
482 * tree.h (CALL_WITH_BOUNDS_P): New.
483 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
486 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
487 * common.opt (fcheck-pointer-bounds): Move to ...
488 * c-family/c.opt: ... here.
489 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
490 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
491 * langhooks.h (lang_hooks): Remove chkp_supported field.
492 * toplev.c (process_options): Remove chkp_supported check.
495 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
496 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
497 * tree.h (POINTER_BOUNDS_P): New.
498 (BOUNDED_TYPE_P): New.
500 (pointer_bounds_type_node): New.
501 * tree.c (build_common_tree_nodes): Initialize
502 pointer_bounds_type_node.
503 * gimple.h (gimple_call_get_nobnd_arg_index): New.
504 (gimple_call_num_nobnd_args): New.
505 (gimple_call_nobnd_arg): New.
506 (gimple_return_retbnd): New.
507 (gimple_return_set_retbnd): New
508 * gimple.c (gimple_build_return): Increase number of ops
509 for return statement.
510 (gimple_call_get_nobnd_arg_index): New.
511 * gimple-pretty-print.c (dump_gimple_return): Print second op.
514 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
515 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
516 with "chkp ctor" and "bnd_legacy" attributes.
517 * gimplify.c (gimplify_init_constructor): Avoid infinite
518 loop during gimplification of bounds initializer.
521 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
522 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
523 (handle_bnd_legacy): New.
524 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
525 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
529 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
530 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
531 (BT_FN_PTR_CONST_PTR): New.
532 (BT_FN_CONST_PTR_CONST_PTR): New.
533 (BT_FN_PTR_CONST_PTR_SIZE): New.
534 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
535 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
536 (BT_FN_VOID_CONST_PTR_SIZE): New.
537 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
538 * chkp-builtins.def: New.
539 * builtins.def: include chkp-builtins.def.
540 (DEF_CHKP_BUILTIN): New.
541 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
542 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
543 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
544 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
545 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
546 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
547 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
548 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
549 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
550 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
551 * common.opt (fcheck-pointer-bounds): New.
552 * toplev.c (process_options): Check Pointer Bounds Checker is
554 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
557 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
558 * target.def (builtin_chkp_function): New.
559 (chkp_bound_type): New.
560 (chkp_bound_mode): New.
561 (fn_abi_va_list_bounds_size): New.
562 (load_bounds_for_arg): New.
563 (store_bounds_for_arg): New.
564 * targhooks.h (default_load_bounds_for_arg): New.
565 (default_store_bounds_for_arg): New.
566 (default_fn_abi_va_list_bounds_size): New.
567 (default_chkp_bound_type): New.
568 (default_chkp_bound_mode): New.
569 (default_builtin_chkp_function): New.
570 * targhooks.c (default_load_bounds_for_arg): New.
571 (default_store_bounds_for_arg): New.
572 (default_fn_abi_va_list_bounds_size): New.
573 (default_chkp_bound_type): New.
574 (default_chkp_bound_mode); New.
575 (default_builtin_chkp_function): New.
576 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
577 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
578 (TARGET_STORE_BOUNDS_FOR_ARG): New.
579 (TARGET_BUILTIN_CHKP_FUNCTION): New.
580 (TARGET_CHKP_BOUND_TYPE): New.
581 (TARGET_CHKP_BOUND_MODE): New.
582 * doc/tm.texi: Regenerated.
583 * langhooks.h (lang_hooks): Add chkp_supported field.
584 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
585 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
588 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
589 * config/i386/constraints.md (B): New.
592 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
593 * config/i386/i386-modes.def (BND32): New.
595 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
596 * config/i386/i386.c (isa_opts): Add mmpx.
597 (regclass_map): Add bound registers.
598 (dbx_register_map): Likewise.
599 (dbx64_register_map): Likewise.
600 (svr4_dbx_register_map): Likewise.
602 (ix86_option_override_internal): Support MPX ISA.
603 (ix86_conditional_register_usage): Support bound registers.
604 (print_reg): Likewise.
605 (ix86_code_end): Add MPX bnd prefix.
606 (output_set_got): Likewise.
607 (ix86_output_call_insn): Likewise.
608 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
609 (ix86_print_operand_punct_valid_p): Likewise.
610 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
612 (ix86_class_likely_spilled_p): Add bound regs support.
613 (ix86_hard_regno_mode_ok): Likewise.
614 (x86_order_regs_for_local_alloc): Likewise.
615 (ix86_bnd_prefixed_insn_p): New.
616 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
617 (FIXED_REGISTERS): Add bound registers.
618 (CALL_USED_REGISTERS): Likewise.
619 (REG_ALLOC_ORDER): Likewise.
620 (HARD_REGNO_NREGS): Likewise.
622 (VALID_BND_REG_MODE): New.
623 (FIRST_BND_REG): New.
625 (reg_class): Add BND_REGS.
626 (REG_CLASS_NAMES): Likewise.
627 (REG_CLASS_CONTENTS): Likewise.
629 (ANY_BND_REG_P): New.
631 (HI_REGISTER_NAMES): Add bound registers.
632 * config/i386/i386.md (UNSPEC_BNDMK): New.
633 (UNSPEC_BNDMK_ADDR): New.
634 (UNSPEC_BNDSTX): New.
635 (UNSPEC_BNDLDX): New.
636 (UNSPEC_BNDLDX_ADDR): New.
640 (UNSPEC_MPX_FENCE): New.
643 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
644 (length_immediate): Likewise.
645 (prefix_0f): Likewise.
647 (prefix_rep): Check for bnd prefix.
649 (length): Use length_nobnd if specified.
654 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
657 (simple_return_internal): Likewise.
658 (simple_return_pop_internal): Likewise.
659 (*indirect_jump): Add MPX bnd prefix.
660 (*tablejump_1): Likewise.
661 (simple_return_internal_long): Likewise.
662 (simple_return_indirect_internal): Likewise.
666 (*mov<mode>_internal_mpx): New.
667 (<mode>_<bndcheck>): New.
668 (*<mode>_<bndcheck>): New.
673 * config/i386/predicates.md (lea_address_operand): Rename to...
674 (address_no_seg_operand): ... this.
675 (address_mpx_no_base_operand): New.
676 (address_mpx_no_index_operand): New.
677 (bnd_mem_operator): New.
678 * config/i386/i386.opt (mmpx): New.
679 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
680 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
683 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
684 * mode-classes.def (MODE_POINTER_BOUNDS): New.
685 * tree.def (POINTER_BOUNDS_TYPE): New.
686 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
687 (POINTER_BOUNDS_MODE): New.
688 (make_pointer_bounds_mode): New.
689 * machmode.h (POINTER_BOUNDS_MODE_P): New.
690 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
691 (layout_type): Support POINTER_BOUNDS_TYPE.
692 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
693 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
694 (type_contains_placeholder_1): Likewise.
695 * tree.h (POINTER_BOUNDS_TYPE_P): New.
696 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
697 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
699 2013-11-29 Richard Biener <rguenther@suse.de>
702 * tree-cfg.c (verify_expr): Restrict bounds verification of
703 BIT_FIELD_REF arguments to non-aggregate typed base objects.
705 2013-11-29 Richard Biener <rguenther@suse.de>
707 PR tree-optimization/59334
708 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Fix bug
711 2013-11-29 Jakub Jelinek <jakub@redhat.com>
712 Richard Biener <rguenther@suse.de>
715 * omp-low.c (simd_clone_create): Return NULL if for definition
716 !cgraph_function_with_gimple_body_p (old_node). Call cgraph_get_body
717 before calling cgraph_function_versioning.
718 (expand_simd_clones): Look for "omp declare simd" attribute first.
719 Don't check targetm.simd_clone.compute_vecsize_and_simdlen here.
720 Punt if node->global.inlined_to.
721 (pass_omp_simd_clone::gate): Also enable if in_lto_p && !flag_wpa.
722 Disable pass if targetm.simd_clone.compute_vecsize_and_simdlen is NULL.
723 * lto-streamer-out.c (hash_tree): Handle OMP_CLAUSE.
725 2013-11-29 Jakub Jelinek <jakub@redhat.com>
728 * tree-core.h (enum omp_clause_schedule_kind): Add
729 OMP_CLAUSE_SCHEDULE_LAST.
730 (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_LAST.
731 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_LAST.
732 (enum omp_clause_map_kind): Add OMP_CLAUSE_MAP_LAST.
733 (enum omp_clause_proc_bind_kind): Add OMP_CLAUSE_PROC_BIND_LAST.
734 * lto-streamer-out.c (lto_is_streamable): Allow streaming OMP_CLAUSE.
735 (DFS_write_tree_body): Handle OMP_CLAUSE.
736 * tree-streamer-out.c (pack_ts_omp_clause_value_fields): New function.
737 (streamer_pack_tree_bitfields): Call it for OMP_CLAUSE.
738 (write_ts_omp_clause_tree_pointers): New function.
739 (streamer_write_tree_body): Call it for OMP_CLAUSE.
740 (streamer_write_tree_header): For OMP_CLAUSE stream OMP_CLAUSE_CODE.
741 * tree-streamer-in.c (unpack_ts_omp_clause_value_fields): New function.
742 (unpack_value_fields): Call it for OMP_CLAUSE.
743 (streamer_alloc_tree): Handle OMP_CLAUSE.
744 (lto_input_ts_omp_clause_tree_pointers): New function.
745 (streamer_read_tree_body): Call it for OMP_CLAUSE.
747 2013-11-29 Joseph Myers <joseph@codesourcery.com>
749 * doc/implement-c.texi: Document C11 implementation-defined
750 behavior. Refer to -ffp-contract=fast for contraction behavior.
751 * doc/invoke.texi (-std=c99, std=c11): Update description of
753 (-std=gnu99): Don't mention as future default.
754 (-std=gnu11): Mention as intended future default.
755 * doc/standards.texi: Update descriptions of C99 and C11 support.
756 Limit statement about C99 facilities for freestanding
757 implementations to some platforms only.
759 2013-11-28 Jakub Jelinek <jakub@redhat.com>
762 * cfgexpand.c (expand_used_vars): Avoid warning on 32-bit HWI hosts.
764 2013-11-28 Vladimir Makarov <vmakarov@redhat.com>
767 * ira.h (ira_setup_eliminable_regset): Remove parameter.
768 * ira.c (ira_setup_eliminable_regset): Ditto. Add
769 SUPPORTS_STACK_ALIGNMENT for crtl->stack_realign_needed.
770 Don't call lra_init_elimination.
771 (ira): Call ira_setup_eliminable_regset without arguments.
772 * loop-invariant.c (calculate_loop_reg_pressure): Remove argument
773 from ira_setup_eliminable_regset call.
774 * gcse.c (calculate_bb_reg_pressure): Ditto.
775 * haifa-sched.c (sched_init): Ditto.
776 * lra.h (lra_init_elimination): Remove the prototype.
777 * lra-int.h (lra_insn_recog_data): New member sp_offset. Move
778 used_insn_alternative upper.
779 (lra_eliminate_regs_1): Add one more parameter.
780 (lra-eliminate): Ditto.
781 * lra.c (lra_invalidate_insn_data): Set sp_offset.
782 (setup_sp_offset): New.
783 (lra_process_new_insns): Call setup_sp_offset.
784 (lra): Add argument to lra_eliminate calls.
785 * lra-constraints.c (get_equiv_substitution): Rename to get_equiv.
786 (get_equiv_with_elimination): New.
787 (process_addr_reg): Call get_equiv_with_elimination instead of
788 get_equiv_substitution.
789 (equiv_address_substitution): Ditto.
790 (loc_equivalence_change_p): Ditto.
791 (loc_equivalence_callback, lra_constraints): Ditto.
792 (curr_insn_transform): Ditto. Print the sp offset
793 (process_alt_operands): Prevent stack pointer reloads.
794 (lra_constraints): Remove one argument from lra_eliminate call.
795 Move it up. Mark used hard regs bfore it. Use
796 get_equiv_with_elimination instead of get_equiv_substitution.
797 * lra-eliminations.c (lra_eliminate_regs_1): Add parameter and
798 assert for param values combination. Use sp offset. Add argument
799 to lra_eliminate_regs_1 calls.
800 (lra_eliminate_regs): Add argument to lra_eliminate_regs_1 call.
801 (curr_sp_change): New static var.
802 (mark_not_eliminable): Add parameter. Update curr_sp_change.
803 Don't prevent elimination to sp if we can calculate its change.
804 Pass the argument to mark_not_eliminable calls.
805 (eliminate_regs_in_insn): Add a parameter. Use sp offset. Add
806 argument to lra_eliminate_regs_1 call.
807 (update_reg_eliminate): Move calculation of hard regs for spill
808 lower. Switch off lra_in_progress temporarily to generate regs
809 involved into elimination.
810 (lra_init_elimination): Rename to init_elimination. Make it
811 static. Set up insn sp offset, check the offsets at the end of BBs.
812 (process_insn_for_elimination): Add parameter. Pass its value to
813 eliminate_regs_in_insn.
814 (lra_eliminate): : Add parameter. Pass its value to
815 process_insn_for_elimination. Add assert for param values
816 combination. Call init_elimination. Don't update offsets in
817 equivalence substitutions.
818 * lra-spills.c (assign_mem_slot): Don't call lra_eliminate_regs_1
819 for created stack slot.
820 (remove_pseudos): Call lra_eliminate_regs_1 before changing memory
823 2013-11-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
825 * config/arm/iterators.md (vrint_conds): New int attribute.
826 * config/arm/vfp.md (<vrint_pattern><SDF:mode>2): Set conds attribute.
827 (smax<mode>3): Likewise.
828 (smin<mode>3): Likewise.
830 2013-11-28 Richard Sandiford <rdsandiford@googlemail.com>
832 * tree-core.h (tree_base): Document use of static_flag for SSA_NAME.
833 * tree.h (SSA_NAME_ANTI_RANGE_P, SSA_NAME_RANGE_TYPE): New macros.
834 * tree-ssanames.h (set_range_info): Add range_type argument.
835 (duplicate_ssa_name_range_info): Likewise.
836 * tree-ssanames.c (set_range_info): Take the range type as argument
837 and store it in SSA_NAME_ANTI_RANGE_P.
838 (duplicate_ssa_name_range_info): Likewise.
839 (get_range_info): Use SSA_NAME_ANTI_RANGE_P.
840 (set_nonzero_bits): Update call to set_range_info.
841 (duplicate_ssa_name_fn): Update call to duplicate_ssa_name_range_info.
842 * tree-ssa-copy.c (fini_copy_prop): Likewise.
843 * tree-vrp.c (remove_range_assertions): Update call to set_range_info.
844 (vrp_finalize): Likewise, passing anti-ranges directly.
846 2013-11-28 Richard Biener <rguenther@suse.de>
848 PR tree-optimization/59330
849 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Simplify
850 and fix delayed marking of free calls not necessary.
852 2013-11-28 Andrew MacLeod <amacleod@redhat.com>
854 * tree-ssa-propagate.c (valid_gimple_call_p): Pass TREE_TYPE to
856 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
858 2013-11-28 Terry Guo <terry.guo@arm.com>
860 * config/arm/arm.c (v7m_extra_costs): New table.
861 (arm_v7m_tune): Use it.
863 2013-11-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
865 * config/sol2.h (TIME_LIBRARY): Define.
867 2013-11-28 Richard Biener <rguenther@suse.de>
870 * lto-streamer-out.c (tree_is_indexable): TYPE_DECLs and
871 CONST_DECLs in function context are not indexable.
873 2013-11-28 Chung-Ju Wu <jasonwucj@gmail.com>
875 * config/nds32/nds32.c (nds32_rtx_costs): Adjust MULT cost if it is
876 not optimized for size.
878 2013-11-28 Jakub Jelinek <jakub@redhat.com>
880 * cfgexpand.c (struct stack_vars_data): Add asan_base and asan_alignb
882 (expand_stack_vars): For -fsanitize=address, use (and set initially)
883 data->asan_base as base for vars and update asan_alignb.
884 (expand_used_vars): Initialize data.asan_base and data.asan_alignb.
885 Pass them to asan_emit_stack_protection.
886 * asan.c (asan_detect_stack_use_after_return): New variable.
887 (asan_emit_stack_protection): Add pbase and alignb arguments.
888 Implement use after return sanitization.
889 * asan.h (asan_emit_stack_protection): Adjust prototype.
890 (ASAN_STACK_MAGIC_USE_AFTER_RET, ASAN_STACK_RETIRED_MAGIC): Define.
892 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
894 * common.opt: Introduced a new option -fsimd-cost-model.
895 * doc/invoke.texi: Introduced a new openmp-simd warning and
896 a new -fsimd-cost-model option.
897 * tree-vectorizer.h (unlimited_cost_model): Interface updated
898 to rely on the particular loop info.
899 * tree-vect-data-refs.c (vect_peeling_hash_insert): Ditto.
900 (vect_peeling_hash_choose_best_peeling): Ditto.
901 (vect_enhance_data_refs_alignment): Ditto.
902 * tree-vect-slp.c (vect_slp_analyze_bb_1): Ditto.
903 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Ditto
904 plus added openmp-simd warining.
906 2013-11-27 H.J. Lu <hongjiu.lu@intel.com>
908 PR rtl-optimization/59311
909 * dwarf2cfi.c (dwf_regno): Assert reg isn't pseudo register.
910 * lra-spills.c (spill_pseudos): Handle REG_XXX notes.
912 2013-11-27 Eric Botcazou <ebotcazou@adacore.com>
914 * var-tracking.c (track_expr_p): Do not track declarations for parts
915 of tracked parameters.
916 (add_stores): Do not track values for tracked parameters passed in
918 (vt_get_decl_and_offset): Handle PARALLEL.
919 (vt_add_function_parameter): Handle parameters with incoming PARALLEL.
921 2013-11-27 Jeff Law <law@redhat.com>
923 * tree-ssa-threadupdate.c (thread_through_all_blocks): Do not
924 clobber the loop structure thread_block was unsuccessful. If
925 thread_block was unsuccessful, cleanup appropriately.
927 2013-11-27 Chen Liqin <liqin.gcc@gmail.com>
929 * config/score/score.h (REG_CLASS_FROM_LETTER): Delete.
930 (score_char_to_class): Likewise.
932 2013-11-27 Kenneth Zadeck <zadeck@naturalbridge.com>
934 * fold-const.c (int_const_binop_1): Make INT_MIN % -1 return 0 with
935 the overflow bit set.
937 2013-11-27 Richard Biener <rguenther@suse.de>
940 * cgraphbuild.c (build_cgraph_edges): Do not build edges
942 (rebuild_cgraph_edges): Likewise.
943 * ipa-inline-analysis.c (estimate_function_body_sizes):
945 * tree-inline.c (estimate_num_insns): Estimate size of internal
947 (gimple_expand_calls_inline): Do not try inline-expanding
949 * lto-streamer-in.c (input_cfg): Stream loop safelen,
950 force_vect and simduid.
951 (input_struct_function_base): Stream has_force_vect_loops
952 and has_simduid_loops.
953 (input_function): Adjust.
954 * lto-streamer-out.c (output_cfg): Stream loop safelen,
955 force_vect and simduid.
956 (output_struct_function_base): Stream has_force_vect_loops
957 and has_simduid_loops.
959 2013-11-27 Kai Tietz <ktietz@redhat.com>
961 * config/i386/winnt.c (i386_pe_section_type_flags): Use const
964 2013-11-27 Kugan Vivekanandarajah <kuganv@linaro.org>
966 * doc/tm.texi.in (TARGET_HAS_NO_HW_DIVIDE): Define.
967 * doc/tm.texi (TARGET_HAS_NO_HW_DIVIDE): Regenerate.
969 2013-11-27 Marek Polacek <polacek@redhat.com>
972 * ubsan.c (instrument_null): Use gimple_store_p/gimple_assign_load_p
973 instead of walk_gimple_op.
974 (ubsan_pass): Adjust. Call instrument_null only if SANITIZE_NULL.
976 2013-11-27 Aldy Hernandez <aldyh@redhat.com>
977 Jakub Jelinek <jakub@redhat.com>
979 * cgraph.h (enum cgraph_simd_clone_arg_type): New.
980 (struct cgraph_simd_clone_arg, struct cgraph_simd_clone): New.
981 (struct cgraph_node): Add simdclone and simd_clones fields.
982 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen,
983 ix86_simd_clone_adjust, ix86_simd_clone_usable): New functions.
984 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
985 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Define.
986 * doc/tm.texi.in (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
987 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Add.
988 * doc/tm.texi: Regenerated.
989 * ggc.h (ggc_alloc_cleared_simd_clone_stat): New function.
990 * ipa-cp.c (determine_versionability): Fail if "omp declare simd"
991 attribute is present.
992 * omp-low.c: Include pretty-print.h, ipa-prop.h and tree-eh.h.
993 (simd_clone_vector_of_formal_parm_types): New function.
994 (simd_clone_struct_alloc, simd_clone_struct_copy,
995 simd_clone_vector_of_formal_parm_types, simd_clone_clauses_extract,
996 simd_clone_compute_base_data_type, simd_clone_mangle,
997 simd_clone_create, simd_clone_adjust_return_type,
998 create_tmp_simd_array, simd_clone_adjust_argument_types,
999 simd_clone_init_simd_arrays): New functions.
1000 (struct modify_stmt_info): New type.
1001 (ipa_simd_modify_stmt_ops, ipa_simd_modify_function_body,
1002 simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone): New
1004 (pass_data_omp_simd_clone): New variable.
1005 (pass_omp_simd_clone): New class.
1006 (make_pass_omp_simd_clone): New function.
1007 * passes.def (pass_omp_simd_clone): New.
1008 * target.def (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
1009 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): New target hooks.
1010 * target.h (struct cgraph_node, struct cgraph_simd_node): Declare.
1011 * tree-core.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Document.
1012 * tree.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Define.
1013 * tree-pass.h (make_pass_omp_simd_clone): New prototype.
1014 * tree-vect-data-refs.c: Include cgraph.h.
1015 (vect_analyze_data_refs): Inline by hand find_data_references_in_loop
1016 and find_data_references_in_bb, if find_data_references_in_stmt
1017 fails, still allow calls to #pragma omp declare simd functions
1018 in #pragma omp simd loops unless they contain data references among
1019 the call arguments or in lhs.
1020 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
1022 (vect_transform_loop): Allow NULL STMT_VINFO_VECTYPE for calls
1024 * tree-vectorizer.h (enum stmt_vec_info_type): Add
1025 call_simd_clone_vec_info_type.
1026 (struct _stmt_vec_info): Add simd_clone_fndecl field.
1027 (STMT_VINFO_SIMD_CLONE_FNDECL): Define.
1028 * tree-vect-stmts.c: Include tree-ssa-loop.h,
1029 tree-scalar-evolution.h and cgraph.h.
1030 (vectorizable_call): Handle calls without lhs. Assert
1031 !stmt_can_throw_internal instead of failing for it. Don't update
1033 (struct simd_call_arg_info): New.
1034 (vectorizable_simd_clone_call): New function.
1035 (vect_transform_stmt): Call it.
1036 (vect_analyze_stmt): Likewise. Allow NULL STMT_VINFO_VECTYPE for
1038 * ipa-prop.c (ipa_add_new_function): Only call ipa_analyze_node
1039 if cgraph_function_with_gimple_body_p is true.
1041 2013-11-27 Tom de Vries <tom@codesourcery.com>
1042 Marc Glisse <marc.glisse@inria.fr>
1045 * fold-const.c (fold_indirect_ref_1): Don't create out-of-bounds
1047 * gimple-fold.c (gimple_fold_indirect_ref): Same.
1048 * tree-cfg.c (verify_expr): Give error if BIT_FIELD_REF is
1051 2013-11-27 Eric Botcazou <ebotcazou@adacore.com>
1054 * expr.c (emit_group_store): Don't write past the end of the structure.
1055 (store_bit_field): Fix formatting.
1057 2013-11-27 Richard Biener <rguenther@suse.de>
1059 PR tree-optimization/59288
1060 * tree-vect-loop.c (get_initial_def_for_induction): Do not
1061 re-analyze the PHI but use STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
1063 2013-11-27 Marek Polacek <polacek@redhat.com>
1065 * ubsan.c (ubsan_type_descriptor): If varpool_get_node returns NULL
1066 for a decl, recreate that decl. Save into the hash table VAR_DECLs
1067 rather than ADDR_EXPRs.
1069 2013-11-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
1071 * config/ia64/hpux.h (TARGET_LIBC_HAS_FUNCTION): Fix typo.
1073 2013-11-26 David Malcolm <dmalcolm@redhat.com>
1075 * gengtype.c (struct seen_tag): New.
1076 (already_seen_tag): New.
1077 (mark_tag_as_seen): New.
1078 (walk_subclasses): Support having multiple subclasses using the
1079 same tag by tracking which tags have already been seen, and using
1080 this to avoid adding duplicate cases to the "switch" statement.
1081 The call to already_seen_tag introduces an O(N^2) when running
1082 gengtype on N, the number of tags, due to the repeated linear
1083 search, but currently max(N) is relatively small (the number of
1084 GSS codes, which is 26).
1085 (walk_type): Pass in a seen_tag for use by the walk_subclasses
1088 * gimple.def (GIMPLE_OMP_ATOMIC_STORE, GIMPLE_OMP_RETURN): Rename
1089 underlying GSS values for these codes (from GSS_OMP_ATOMIC_STORE to
1090 GSS_OMP_ATOMIC_STORE_LAYOUT) to make clear that although
1091 GIMPLE_OMP_RETURN happens to share the data layout of
1092 GIMPLE_OMP_ATOMIC_STORE, they are not otherwise related.
1093 (GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TARGET): Likewise, rename
1094 underlying GSS value from GSS_OMP_PARALLEL to
1095 GSS_OMP_PARALLEL_LAYOUT to make clear that these gimple codes are
1096 not directly related; they merely share in-memory layout.
1097 (GIMPLE_OMP_SINGLE, GIMPLE_OMP_TEAMS): Likewise, rename GSS values
1098 for these two codes from GSS_OMP_SINGLE to GSS_OMP_SINGLE_LAYOUT.
1100 * gsstruct.def (GSS_OMP_PARALLEL, gimple_statement_omp_parallel):
1102 (GSS_OMP_PARALLEL_LAYOUT, gimple_statement_omp_parallel_layout):
1104 (GSS_OMP_SINGLE, gimple_statement_omp_single): Rename to...
1105 (GSS_OMP_SINGLE_LAYOUT, gimple_statement_omp_single_layout): ...these.
1106 (GSS_OMP_ATOMIC_STORE, gimple_statement_omp_atomic_store): Rename to...
1107 (GSS_OMP_ATOMIC_STORE_LAYOUT, gimple_statement_omp_atomic_store):
1110 * gimple.h (gimple_statement_resx): New subclass of
1111 gimple_statement_eh_ctrl, with the invariant that
1112 stmt->code == GIMPLE_RESX.
1113 (gimple_statement_eh_dispatch): New subclass of
1114 gimple_statement_eh_ctrl, with the invariant that
1115 stmt->code == GIMPLE_EH_DISPATH.
1117 (gimple_statement_omp_parallel): The existing class expressed
1118 a layout (GSS_OMP_PARALLEL), but the codes with that layout
1119 are not all related, so it makes more sense for this class to
1120 express a *code* (GIMPLE_OMP_PARALLEL). GSS_OMP_PARALLEL has
1121 been renamed to GSS_OMP_PARALLEL_LAYOUT to express this, so
1122 rename the existing gimple_statement_omp_parallel class to...
1123 (gimple_statement_omp_parallel_layout): ...this, expressing
1124 a statement of structure layout GSS_OMP_PARALLEL_LAYOUT.
1125 (gimple_statement_omp_taskreg): New subclass of
1126 gimple_statement_omp_parallel_layout, expressing the invariant
1127 that the code is one of GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK,
1128 as used by the various gimple_omp_taskreg_ accessors.
1129 (gimple_statement_omp_parallel): Reintroduce this class, this time
1130 as a subclass of gimple_statement_omp_taskreg to express the
1131 invariant stmt->code == GIMPLE_OMP_PARALLEL.
1132 (gimple_statement_omp_target) New class, subclassing
1133 gimple_statement_omp_parallel_layout, to express the invariant
1134 stmt->code == GIMPLE_OMP_TARGET.
1135 (gimple_statement_omp_task): Update to inherit from
1136 gimple_statement_omp_taskreg rather than
1137 gimple_statement_omp_parallel.
1139 (gimple_statement_omp_single): Rename to...
1140 (gimple_statement_omp_single_layout): ...this, expressing the
1141 invariant that the layout is GSS_OMP_SINGLE_LAYOUT.
1142 (gimple_statement_omp_single): ...and reintroduce this name as
1143 a subclass of gimple_statement_omp_single_layout, expressing
1144 the invariant that code == GIMPLE_OMP_SINGLE.
1145 (gimple_statement_omp_teams): New class, subclassing
1146 gimple_statement_omp_single_layout, for the code GIMPLE_OMP_TEAMS.
1148 (gimple_statement_omp_atomic_store): Rename to...
1149 (gimple_statement_omp_atomic_store_layout): ...this, expressing
1150 the invariant that the layout is GSS_OMP_ATOMIC_STORE_LAYOUT.
1151 (gimple_statement_omp_atomic_store): ...and reintroduce this
1152 name as a subclass of gimple_statement_omp_atomic_store_layout
1153 with code == GIMPLE_OMP_ATOMIC_STORE.
1154 (gimple_statement_omp_return): New class, subclassing
1155 gimple_statement_omp_atomic_store_layout for the code
1158 (is_a_helper <gimple_statement_eh_ctrl>::test): Delete.
1159 (is_a_helper <gimple_statement_resx>::test): New.
1160 (is_a_helper <gimple_statement_eh_dispatch>::test): New.
1161 (is_a_helper <gimple_statement_omp_atomic_store>::test): Only
1162 check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
1163 (is_a_helper <gimple_statement_omp_return>::test): New.
1164 (is_a_helper <gimple_statement_omp_taskreg>::test): New.
1165 (is_a_helper <gimple_statement_omp_parallel>::test): Only check
1166 for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
1168 (is_a_helper <gimple_statement_omp_target>::test): New.
1169 (is_a_helper <gimple_statement_omp_single>::test): Only check
1170 for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
1171 (is_a_helper <gimple_statement_omp_teams>::test): New.
1173 (is_a_helper <const gimple_statement_eh_ctrl>::test): Delete.
1174 (is_a_helper <const gimple_statement_resx>::test): New.
1175 (is_a_helper <const gimple_statement_eh_dispatch>::test): New.
1176 (is_a_helper <const gimple_statement_omp_atomic_store>::test): Only
1177 check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
1178 (is_a_helper <const gimple_statement_omp_return>::test): New.
1179 (is_a_helper <const gimple_statement_omp_taskreg>::test): New.
1180 (is_a_helper <const gimple_statement_omp_parallel>::test): Only
1181 check for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
1183 (is_a_helper <const gimple_statement_omp_target>::test): New.
1184 (is_a_helper <const gimple_statement_omp_single>::test): Only
1185 check for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
1186 (is_a_helper <const gimple_statement_omp_teams>::test): New.
1188 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
1189 gimple_omp_return_lhs_ptr): Replace bogus downcasts to
1190 gimple_statement_omp_atomic_store with downcasts to
1191 gimple_statement_omp_return, thus requiring that the code be
1193 (gimple_resx_region, gimple_resx_set_region): Replace bogus
1194 downcasts to gimple_statement_eh_ctrl with downcasts to
1195 gimple_statement_resx, thus requiring that the code be GIMPLE_RESX.
1196 (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region):
1197 Replace bogus downcasts to const gimple_statement_eh_ctrl with
1198 downcasts to gimple_statement_eh_dispatch, thus requiring that
1199 the code be GIMPLE_EH_DISPATCH.
1200 (gimple_omp_taskreg_clauses, gimple_omp_taskreg_clauses_ptr)
1201 gimple_omp_taskreg_set_clauses, gimple_omp_taskreg_child_fn,
1202 gimple_omp_taskreg_child_fn_ptr, gimple_omp_taskreg_set_child_fn,
1203 gimple_omp_taskreg_data_arg, gimple_omp_taskreg_data_arg_ptr,
1204 gimple_omp_taskreg_set_data_arg): Replace bogus downcasts to
1205 gimple_statement_omp_parallel with downcasts to
1206 gimple_statement_omp_taskreg, thus requiring that the code be
1207 either GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK.
1208 (gimple_omp_target_clauses, gimple_omp_target_clauses_ptr
1209 gimple_omp_target_set_clauses, gimple_omp_target_child_fn
1210 gimple_omp_target_child_fn_ptr, gimple_omp_target_set_child_fn
1211 gimple_omp_target_data_arg, gimple_omp_target_data_arg_ptr
1212 gimple_omp_target_set_data_arg): Replace bogus downcasts to
1213 gimple_statement_omp_parallel with downcasts to
1214 gimple_statement_omp_target, thus requiring that the code be
1216 (gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr
1217 gimple_omp_teams_set_clauses): Replace bogus downcasts to
1218 gimple_statement_omp_single with downcasts to
1219 gimple_statement_omp_teams, thus requiring that the code be
1222 * gimple.c (gimple_build_resx): Fix bogus as_a<> to use
1223 gimple_statement_resx.
1224 (gimple_build_eh_dispatch): Fix bogus as_a<> to use
1225 gimple_statement_eh_dispatch.
1227 2013-11-26 Jakub Jelinek <jakub@redhat.com>
1229 PR tree-optimization/59014
1230 * tree-vrp.c (register_edge_assert_for_1): Don't look
1231 through conversions from non-integral types or through
1232 narrowing conversions.
1235 * config/i386/i386.c (device_alg): Fix up formatting.
1236 (ix86_expand_set_or_movmem): Handle max_size < epilogue_size_needed
1237 similarly to count && count < epilogue_size_needed. Fix up
1239 * builtins.c (determine_block_size): Fix comment typo.
1242 * ubsan.c (ubsan_source_location): Don't add any location
1243 to ADDR_EXPR in the ctor. Revert 2013-11-22 change.
1244 (ubsan_create_data): Strip block info from LOC.
1247 * tree-vect-generic.c (optimize_vector_constructor): Don't optimize
1248 if there isn't optab handler for the corresponding vector PLUS_EXPR.
1250 PR rtl-optimization/59166
1251 * ira.c (find_moveable_pseudos): Use DF_REF_REAL_LOC instead of
1252 DF_REF_LOC in validate_change call.
1253 (split_live_ranges_for_shrink_wrap): Likewise.
1256 * omp-low.c (lower_rec_input_clause): For reduction with placeholder
1257 of references to constant size types in simd loops, defer emitting
1258 initializer for the new_var, emit it later on only if not using
1262 * omp-low.c (expand_omp_for_static_chunk): Don't set loop->latch
1263 for the inner loop if collapse_bb is non-NULL.
1264 (expand_omp_simd): Use cont_bb rather than e->dest as latch.
1266 2013-11-26 Yufeng Zhang <yufeng.zhang@arm.com>
1268 * config/arm/arm.c (arm_legitimize_address): Check xop1 is not
1269 a constant immediate before force_reg.
1271 2013-11-26 Richard Biener <rguenther@suse.de>
1273 PR tree-optimization/59245
1274 * tree-vrp.c (set_value_range): Assert that we don't have
1275 overflowed constants (but our infinities).
1276 (set_value_range_to_value): Drop all overflow flags.
1277 (vrp_visit_phi_node): Likewise.
1278 (vrp_visit_assignment_or_call): Use set_value_range_to_value
1279 to set a constant range.
1281 2013-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1284 * config/arm/arm.md (*zextendsidi_negsi): New pattern.
1285 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost correctly
1286 for zero_extend case.
1288 2013-11-26 H.J. Lu <hongjiu.lu@intel.com>
1291 * configure.ac (install_gold_as_default): New. Set to yes for
1292 --disable-ld or --enable-gold=default.
1293 (gcc_cv_ld_gold_srcdir): New.
1294 (gcc_cv_ld): Also check in-tree gold if install_gold_as_default is yes.
1295 (ORIGINAL_LD_BFD_FOR_TARGET): New AC_SUBST.
1296 (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
1297 * configure: Regenerated.
1299 * exec-tool.in (ORIGINAL_LD_BFD_FOR_TARGET): New variable.
1300 (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
1301 (original) [collect-ld && -fuse-ld=bfd]: Set to
1302 $ORIGINAL_LD_BFD_FOR_TARGET.
1303 (original) [collect-ld && -fuse-ld=gold]: Set to
1304 $ORIGINAL_LD_GOLD_FOR_TARGET.
1305 (dir) [collect-ld && ../gold/ld-new]: Set to gold.
1306 (fast_install) [collect-ld && ../gold/ld-new]: Set to yes.
1308 2013-11-26 Terry Guo <terry.guo@arm.com>
1310 * config/arm/arm.c (require_pic_register): Handle high pic base
1311 register for thumb-1.
1312 (arm_load_pic_register): Also initialize high pic base register.
1313 * doc/invoke.texi: Update documentation for option -mpic-register.
1315 2013-11-26 Oleg Endo <olegendo@gcc.gnu.org>
1319 * config/sh/sh.c (max_mov_insn_displacement, disp_addr_displacement):
1320 Prefix function names with 'sh_'. Make them non-static.
1321 * config/sh/sh-protos.h (sh_disp_addr_displacement,
1322 sh_max_mov_insn_displacement): Add declarations.
1323 * config/sh/constraints.md (Q): Reject QImode.
1324 (Sdd): Use match_code "mem".
1325 (Snd): Fix erroneous matching of non-memory operands.
1326 * config/sh/predicates.md (short_displacement_mem_operand): New
1328 (general_movsrc_operand): Disallow PC relative QImode loads.
1329 * config/sh/sh.md (*mov<mode>_reg_reg): Remove it.
1330 (*movqi, *movhi): Merge both insns into...
1331 (*mov<mode>): ... this new insn. Replace generic 'm' constraints with
1332 'Snd' and 'Sdd' constraints. Calculate insn length dynamically based
1333 on the operand types.
1335 2013-11-26 Joern Rennecke <joern.rennecke@embecosm.com>
1337 * config/epiphany/epiphany.c (epiphany_expand_prologue):
1338 Remove unused variable save_config.
1339 (epiphany_compute_frame_size): Avoid signed/unsigned comparison in
1342 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
1344 * config/aarch64/arm_neon.h (vtbx1_<psu>8): Emulate behaviour
1345 using other intrinsics.
1346 (vtbx3_<psu>8): Likewise.
1348 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
1350 * config/aarch64/aarch64-builtins.c
1351 (aarch64_types_bsl_p_qualifiers): New.
1352 (aarch64_types_bsl_s_qualifiers): Likewise.
1353 (aarch64_types_bsl_u_qualifiers): Likewise.
1354 (TYPES_BSL_P): Likewise.
1355 (TYPES_BSL_S): Likewise.
1356 (TYPES_BSL_U): Likewise.
1357 (BUILTIN_VALLDIF): Likewise.
1358 (BUILTIN_VDQQH): Likewise.
1359 * config/aarch64/aarch64-simd-builtins.def (simd_bsl): New.
1360 * config/aarch64/aarch64-simd.md
1361 (aarch64_simd_bsl<mode>_internal): Handle more modes.
1362 (aarch64_simd_bsl<mode>): Likewise.
1363 * config/aarch64/arm_neon.h
1364 (vbsl<q>_<fpsu><8,16,32,64): Implement using builtins.
1365 * config/aarch64/iterators.md (VALLDIF): New.
1366 (Vbtype): Handle more modes.
1368 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
1370 * config/aarch64/aarch64-builtins.c
1371 (aarch64_type_qualifiers): Add qualifier_poly.
1372 (aarch64_build_scalar_type): Also build Poly types.
1373 (aarch64_build_vector_type): Likewise.
1374 (aarch64_build_type): Likewise.
1375 (aarch64_build_signed_type): New.
1376 (aarch64_build_unsigned_type): Likewise.
1377 (aarch64_build_poly_type): Likewise.
1378 (aarch64_init_simd_builtins): Also handle Poly types.
1380 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
1382 * config/aarch64/aarch64-builtins.c
1383 (VAR1): Use new naming scheme for aarch64_builtins.
1384 (aarch64_builtin_vectorized_function): Use new aarch64_builtins names.
1386 2013-11-26 Richard Biener <rguenther@suse.de>
1388 PR tree-optimization/59287
1389 * tree-ssa-structalias.c (get_constraint_for_component_ref):
1390 Remove no longer necessary special-casing of union accesses.
1392 2013-11-26 Richard Biener <rguenther@suse.de>
1394 * pretty-print.c (output_buffer::~output_buffer): Really
1397 2013-11-25 Jeff Law <law@redhat.com>
1399 * tree-ssa-threadupdate.c (thread_through_all_blocks): Selectively
1400 invalidate loop information.
1402 2013-11-25 Oleg Endo <olegendo@gcc.gnu.org>
1404 * config/sh/sh.md (doloop_end_split): Add missing SI mode.
1406 2013-11-25 Oleg Endo <olegendo@gcc.gnu.org>
1410 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value): Update
1412 (sh_optimize_sett_clrt::find_last_ccreg_values): Check stack of
1413 previously visited basic blocks before recursing instead of only one
1416 2013-11-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1418 * config/aarch64/aarch64.c (cortexa53_tuning): New struct.
1419 * config/aarch64/aarch64-cores.def (cortex-a53):
1420 Use cortexa53 tuning struct.
1422 2013-11-25 Andrew Macleod <amacleod@redhat.com>
1425 * fold-const.c: Include hash-table.h.
1427 2013-11-25 Marek Polacek <polacek@redhat.com>
1430 * ubsan.c (ubsan_create_data): Increase the size of the fields array.
1432 2013-11-25 Richard Biener <rguenther@suse.de>
1434 * tree-dfa.c: Remove unused convert.h include.
1436 2013-11-25 Terry Guo <terry.guo@arm.com>
1438 * doc/invoke.texi (-mslow-flash-data): Document new option.
1439 * config/arm/arm.opt (mslow-flash-data): New option.
1440 * config/arm/arm-protos.h (arm_max_const_double_inline_cost):
1442 * config/arm/arm.h (TARGET_USE_MOVT): Always true when literal pools
1444 (arm_disable_literal_pool): Declare it.
1445 * config/arm/arm.c (arm_disable_literal_pool): New variable.
1446 (arm_option_override): Handle new option.
1447 (thumb2_legitimate_address_p): Don't allow symbol references when
1448 literal pools are disabled.
1449 (arm_max_const_double_inline_cost): New function.
1450 * config/arm/arm.md (types.md): Include it before ...
1451 (use_literal_pool): New attribute.
1452 (enabled): Use new attribute.
1453 (split pattern): Replace symbol+offset with MOVW/MOVT.
1455 2013-11-24 Steven Bosscher <steven@gcc.gnu.org>
1458 Revert previous commit.
1460 2013-11-24 Steven Bosscher <steven@gcc.gnu.org>
1462 * jump.c (reset_insn_reg_label_operand_notes): New function,
1464 (init_label_info): ... here. Reset LABEL_NUSES in cfglayout mode.
1465 * cfgcleanup.c (delete_dead_jump_tables_between): New function,
1467 (delete_dead_jumptables): ... here. Handle cfglayout mode.
1468 (cleanup_cfg): Delete dead jump tables in cfglayout mode if an
1469 expensive CFG cleanup is called for.
1470 * cfgrtl.c (fixup_reorder_chain): Remove BARRIERs from fallthru paths.
1471 (cfg_layout_finalize): Delete dead jump tables before re-building
1473 * ira.c (ira): Rebuild jump labels *after* deleting unreachable
1474 basic blocks, not before.
1475 * loop-init.c (rtl_loop_done): Call for an expensive CFG cleanup.
1477 * modulo-sched.c (sms_schedule): Do not look for BARRIERs in the
1478 insns chain of a scheduling extended basic block, they cannot appear
1479 there in cfglayout mode.
1481 2013-11-24 Tobias Burnus <burnus@net-b.de>
1483 * doc/invoke.texi (-fsanitize=leak): Add link to the wiki page.
1485 2013-11-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1487 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Correct
1490 2013-11-24 H.J. Lu <hongjiu.lu@intel.com>
1492 * graphite-sese-to-poly.c: Don't include extra "expr.h".
1494 2013-11-23 Eric Botcazou <ebotcazou@adacore.com>
1496 * cilk-common.c (expand_builtin_cilk_detach): Dereference worker.
1498 2013-11-23 David Edelson <dje.gcc@gmail.com>
1499 Andrew Dixie <andrewd@gentrack.com>
1502 * config/rs6000/aix.h (COLLECT_SHARED_INIT_FUNC): Define.
1503 (COLLECT_SHARED_FINI_FUNC): Define.
1505 * collect2.c (aix_shared_initname): Declare.
1506 (aix_shared_fininame): Declare.
1507 (symkind): Add SYM_AIXI and SYM_AIXD.
1508 (scanfilter_masks): Add SCAN_AIXI and SCAN_AIXD.
1509 (struct names special): Add GLOBAL__AIXI_ and GLOBAL__AIXD_.
1510 (aixlazy_flag): Parse.
1511 (extract_init_priority): SYM_AIXI and SYM_AIXD have highest priority.
1512 (scan_prog_file, COFF): Handle SYM_AIXI and SYM_AIXD.
1514 2013-11-23 David Edelsohn <dje.gcc@gmail.com>
1516 * config/rs6000/rs6000.c (IN_NAMED_SECTION): New macro.
1517 (rs6000_xcoff_select_section): Place decls with stricter alignment
1518 into named sections.
1519 (rs6000_xcoff_unique_section): Allow unique sections for
1520 uninitialized data with strict alignment.
1522 2013-11-23 Jakub Jelinek <jakub@redhat.com>
1524 PR tree-optimization/59154
1525 * tree-ssa-reassoc.c (maybe_optimize_range_tests): When changing
1526 rhs1 of a cast and new_op is invariant, fold_convert it.
1527 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Only call
1528 simplify_conversion_from_bitmask if rhs1 is a SSA_NAME.
1530 2013-11-23 Uros Bizjak <ubizjak@gmail.com>
1533 * config/i386/i386.c (bdesc_multi_arg) <IX86_BUILTIN_VFRCZSS>:
1534 Declare as MULTI_ARG_1_SF instruction.
1535 <IX86_BUILTIN_VFRCZSD>: Decleare as MULTI_ARG_1_DF instruction.
1536 * config/i386/sse.md (*xop_vmfrcz<mode>2): Rename
1537 from *xop_vmfrcz_<mode>.
1538 * config/i386/xopintrin.h (_mm_frcz_ss): Use __builtin_ia32_movss
1539 to merge scalar result with __A.
1540 (_mm_frcz_sd): Use __builtin_ia32_movsd to merge scalar
1543 2013-11-23 Eric Botcazou <ebotcazou@adacore.com>
1545 * gimplify.h (recalculate_side_effects): Delete.
1546 * gimplify.c (recalculate_side_effects): Make static and add comment.
1548 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
1550 * config/sh/sh.md: Use nonimmediate_operand rather than general_operand
1551 for the destination of a define_peephole2. Likewise register_operand
1552 rather than arith_reg_operand. Remove constraints from
1555 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
1557 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation):
1559 (mn10300_store_multiple_operation_p): Declare.
1560 * config/mn10300/mn10300.c (mn10300_store_multiple_operation):
1562 (mn10300_store_multiple_operation_p): ...this and remove mode
1564 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
1567 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
1569 * config/bfin/bfin-protos.h (push_multiple_operation): Delete.
1570 (pop_multiple_operation): Delete.
1571 (analyze_push_multiple_operation): Declare.
1572 (analyze_pop_multiple_operation): Declare.
1573 * config/bfin/bfin.c (push_multiple_operation): Rename to...
1574 (analyze_push_multiple_operation): ...this and remove mode argument.
1575 (pop_multiple_operation): Rename to...
1576 (analyze_pop_multiple_operation): ...this and remove mode argument.
1577 * config/bfin/predicates.md (push_multiple_operation): Define.
1578 (pop_multiple_operation): Likewise.
1580 2013-11-23 Alan Modra <amodra@gmail.com>
1582 * config/rs6000/vsx.md (fusion peepholes): Disable when !TARGET_VSX.
1584 2013-11-22 Jakub Jelinek <jakub@redhat.com>
1587 * common.opt (static-liblsan): Add.
1588 * config/gnu-user.h (STATIC_LIBLSAN_LIBS, STATIC_LIBUBSAN_LIBS):
1590 * flag-types.h (enum sanitize_code): Add SANITIZE_LEAK. Renumber
1591 SANITIZE_SHIFT, SANITIZE_DIVIDE, SANITIZE_UNREACHABLE, SANITIZE_VLA,
1593 * opts.c (common_handle_option): Handle -fsanitize=leak.
1594 * gcc.c (ADD_STATIC_LIBLSAN_LIBS, LIBLSAN_SPEC): Define.
1595 (LIBUBSAN_SPEC): Don't test LIBUBSAN_EARLY_SPEC.
1596 (LIBUBSAN_EARLY_SPEC): Remove.
1597 (SANITIZER_EARLY_SPEC): Don't do anything for libubsan.
1598 (SANITIZER_SPEC): Add -fsanitize=leak handling.
1599 (sanitize_spec_function): Handle %sanitize(leak).
1600 * doc/invoke.texi (-static-liblsan, -fsanitize=leak): Document.
1602 2013-11-22 Aldy Hernandez <aldyh@redhat.com>
1603 Jakub Jelinek <jakub@redhat.com>
1605 * ipa.c (symtab_remove_unreachable_nodes): Fix up comment typos.
1606 * ipa-prop.c (get_vector_of_formal_parm_types): Renamed to ...
1607 (ipa_get_vector_of_formal_parm_types): ... this. No longer static.
1608 (ipa_modify_formal_parameters): Adjust caller. Remove
1609 synth_parm_prefix argument. Use operator enum instead of bit fields.
1610 Add assert for properly handling vector of references. Handle
1611 creating brand new parameters.
1612 (ipa_modify_call_arguments): Use operator enum instead of bit
1614 (ipa_combine_adjustments): Same. Assert that IPA_PARM_OP_NEW is not
1616 (ipa_modify_expr, get_ssa_base_param, ipa_get_adjustment_candidate):
1618 (ipa_dump_param_adjustments): Rename reduction to new_decl.
1619 Use operator enum instead of bit fields.
1620 * ipa-prop.h (enum ipa_parm_op): New.
1621 (struct ipa_parm_adjustment): New field op. Rename reduction
1622 to new_decl, new_arg_prefix to arg_prefix and remove remove_param
1624 (ipa_modify_formal_parameters): Remove last argument.
1625 (ipa_get_vector_of_formal_parm_types, ipa_modify_expr,
1626 ipa_get_adjustment_candidate): New prototypes.
1627 * tree-sra.c (turn_representatives_into_adjustments): Use operator
1628 enum. Set arg_prefix.
1629 (get_adjustment_for_base): Use operator enum.
1630 (sra_ipa_modify_expr): Rename to ipa_modify_expr and move to
1632 (sra_ipa_modify_assign): Rename sra_ipa_modify_expr to ipa_modify_expr.
1633 (ipa_sra_modify_function_body): Same. No longer static.
1634 (sra_ipa_reset_debug_stmts): Use operator enum.
1635 (modify_function): Do not pass prefix argument.
1637 2013-11-22 Jakub Jelinek <jakub@redhat.com>
1639 * ubsan.c (ubsan_source_location): Don't crash on unknown locations.
1640 (ubsan_pass): Ignore clobber stmts.
1642 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_MISSING_RETURN): New built-in.
1643 * opts.c (common_handle_option): Add -fsanitize=return.
1644 * flag-types.h (enum sanitize_code): Add SANITIZE_RETURN and
1645 or it into SANITIZE_UNDEFINED.
1647 * sanitizer.def (BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT,
1648 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT): New.
1649 * asan.c (instrument_derefs): Handle also VAR_DECL loads/stores.
1650 Don't instrument accesses to VAR_DECLs which are known to fit
1651 into their bounds and the vars are known to have shadow bytes
1652 indicating allowed access.
1653 (asan_dynamic_init_call): New function.
1654 (asan_add_global): If vnode->dynamically_initialized,
1655 set __has_dynamic_init to 1 instead of 0.
1656 (initialize_sanitizer_builtins): Add BT_FN_VOID_CONST_PTR var.
1657 * asan.h (asan_dynamic_init_call): New prototype.
1658 * cgraph.h (varpool_node): Add dynamically_initialized bitfield.
1660 2013-11-22 Martin Jambor <mjambor@suse.cz>
1662 PR rtl-optimization/10474
1663 * ira.c (interesting_dest_for_shprep_1): New function.
1664 (interesting_dest_for_shprep): Use interesting_dest_for_shprep_1,
1665 also check parallels.
1667 2013-11-22 Jeff Law <law@redhat.com>
1669 * tree-ssa-threadedge.c (record_temporary_equivalence): Handle
1670 NULL for RHS, which we used to invalidate equivalences.
1671 (record_temporary_equivalences_from_phis): New bitmap arguments
1672 and a boolean indicating if we have passed a backedge. If we
1673 have passed a backedge, then set the appropriate bit in the
1674 bitmaps for the SRC & DEST of PHIs creating equivalences.
1675 (invalidate_equivalences, dummy_simplify): New functions.
1676 (cond_arg_set_in_b): Remove.
1677 (record_temporary_equivalences_from_stmts_at_dest): New bitmap
1678 arguments and a boolean indicating if we have passed a backedge.
1679 If we have passed a backedge, then perform invalidations as needed.
1680 (thread_around_empty_blocks): If we have seen a backedge, then
1681 use the dummy simplify routine.
1682 (thread_through_normal_block): Likewise. Pass bitmaps and
1683 backedge status to children. Do not pessimize so much when
1684 traversing backedges in the CFG.
1685 (thread_across_edge): Manage the SRC_MAP/DST_MAP bitmaps.
1686 If we have seen a backedge, then use the dummy simplify routine.
1687 Do not pessimize so much when traversing backedges.
1689 2013-11-22 Hans-Peter Nilsson <hp@axis.com>
1691 * config/cris/cris.c (cris_atomic_align_for_mode): New function.
1692 (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
1694 2013-11-22 Yuri Rumyantsev <ysrumyan@gmail.com>
1696 * config/i386/i386.c (processor_alias_table): Enable PTA_AES,
1697 PTA_PCLMUL and PTA_RDRND for Silvermont.
1698 * config/i386/driver-i386.c (host_detect_local_cpu): Set up cpu
1701 * doc/invoke.texi: Mention AES, PCLMUL and RDRND for Silvermont.
1703 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
1705 * hooks.h (hook_uint_mode_0): Add Prototype.
1706 * hooks.c (hook_uint_mode_0): New default function.
1707 * target.def (atomic_align_for_mode): New target hook.
1708 * tree.c (build_atomic_base): Add alignment override parameter.
1709 (build_common_tree_nodes): Use atomic alignment override.
1710 * doc/tm.texi.in (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
1711 * doc/tm.texi (TARGET_ATOMIC_ALIGN_FOR_MODE): Add description.
1713 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
1715 * gimple.h: Remove all includes.
1716 (recalculate_side_effects): Move prototype to gimplify.h.
1717 * Makefile.in (PLUGIN_HEADERS): Add flattened gimple.h includes.
1718 * gengtype.c (open_base_files): Add gimple.h include list.
1719 * gimplify.h (recalculate_side_effects): Relocate prototype here.
1720 * gimple.c: Adjust include list.
1721 (recalculate_side_effects): Move to gimplify.c.
1722 * gimplify.c: Adjust include list.
1723 (recalculate_side_effects): Relocate from gimple.c.
1724 * alias.c: Add required include files removed from gimple.h.
1726 * builtins.c: Likewise.
1727 * calls.c: Likewise.
1728 * cfgexpand.c: Likewise.
1729 * cfgloop.c: Likewise.
1730 * cfgloopmanip.c: Likewise.
1731 * cgraphbuild.c: Likewise.
1732 * cgraph.c: Likewise.
1733 * cgraphclones.c: Likewise.
1734 * cgraphunit.c: Likewise.
1735 * cilk-common.c: Likewise.
1736 * data-streamer.c: Likewise.
1737 * data-streamer-in.c: Likewise.
1738 * data-streamer-out.c: Likewise.
1740 * dwarf2out.c: Likewise.
1741 * emit-rtl.c: Likewise.
1742 * except.c: Likewise.
1744 * fold-const.c: Likewise.
1745 * function.c: Likewise.
1746 * gimple-builder.c: Likewise.
1747 * gimple-expr.c: Likewise.
1748 * gimple-fold.c: Likewise.
1749 * gimple-iterator.c: Likewise.
1750 * gimple-low.c: Likewise.
1751 * gimple-pretty-print.c: Likewise.
1752 * gimple-ssa-isolate-paths.c: Likewise.
1753 * gimple-ssa-strength-reduction.c: Likewise.
1754 * gimple-streamer-in.c: Likewise.
1755 * gimple-streamer-out.c: Likewise.
1756 * gimple-walk.c: Likewise.
1757 * gimplify-me.c: Likewise.
1758 * graphite-blocking.c: Likewise.
1759 * graphite.c: Likewise.
1760 * graphite-clast-to-gimple.c: Likewise.
1761 * graphite-dependences.c: Likewise.
1762 * graphite-interchange.c: Likewise.
1763 * graphite-optimize-isl.c: Likewise.
1764 * graphite-poly.c: Likewise.
1765 * graphite-scop-detection.c: Likewise.
1766 * graphite-sese-to-poly.c: Likewise.
1767 * internal-fn.c: Likewise.
1769 * ipa-cp.c: Likewise.
1770 * ipa-devirt.c: Likewise.
1771 * ipa-inline-analysis.c: Likewise.
1772 * ipa-inline.c: Likewise.
1773 * ipa-profile.c: Likewise.
1774 * ipa-prop.c: Likewise.
1775 * ipa-pure-const.c: Likewise.
1776 * ipa-reference.c: Likewise.
1777 * ipa-split.c: Likewise.
1778 * ipa-utils.c: Likewise.
1779 * langhooks.c: Likewise.
1780 * lto-cgraph.c: Likewise.
1781 * lto-compress.c: Likewise.
1782 * lto-opts.c: Likewise.
1783 * lto-section-in.c: Likewise.
1784 * lto-section-out.c: Likewise.
1785 * lto-streamer.c: Likewise.
1786 * lto-streamer-in.c: Likewise.
1787 * lto-streamer-out.c: Likewise.
1788 * omp-low.c: Likewise.
1789 * opts-global.c: Likewise.
1790 * passes.c: Likewise.
1791 * predict.c: Likewise.
1792 * profile.c: Likewise.
1795 * stor-layout.c: Likewise.
1796 * symtab.c: Likewise.
1797 * targhooks.c: Likewise.
1798 * toplev.c: Likewise.
1799 * tracer.c: Likewise.
1800 * trans-mem.c: Likewise.
1801 * tree-affine.c: Likewise.
1803 * tree-call-cdce.c: Likewise.
1804 * tree-cfg.c: Likewise.
1805 * tree-cfgcleanup.c: Likewise.
1806 * tree-chrec.c: Likewise.
1807 * tree-complex.c: Likewise.
1808 * tree-data-ref.c: Likewise.
1809 * tree-dfa.c: Likewise.
1810 * tree-eh.c: Likewise.
1811 * tree-emutls.c: Likewise.
1812 * tree-if-conv.c: Likewise.
1813 * tree-inline.c: Likewise.
1814 * tree-into-ssa.c: Likewise.
1815 * tree-loop-distribution.c: Likewise.
1816 * tree-nested.c: Likewise.
1817 * tree-nrv.c: Likewise.
1818 * tree-object-size.c: Likewise.
1819 * tree-outof-ssa.c: Likewise.
1820 * tree-parloops.c: Likewise.
1821 * tree-phinodes.c: Likewise.
1822 * tree-predcom.c: Likewise.
1823 * tree-pretty-print.c: Likewise.
1824 * tree-profile.c: Likewise.
1825 * tree-scalar-evolution.c: Likewise.
1826 * tree-sra.c: Likewise.
1827 * tree-ssa-address.c: Likewise.
1828 * tree-ssa-alias.c: Likewise.
1829 * tree-ssa.c: Likewise.
1830 * tree-ssa-ccp.c: Likewise.
1831 * tree-ssa-coalesce.c: Likewise.
1832 * tree-ssa-copy.c: Likewise.
1833 * tree-ssa-copyrename.c: Likewise.
1834 * tree-ssa-dce.c: Likewise.
1835 * tree-ssa-dom.c: Likewise.
1836 * tree-ssa-dse.c: Likewise.
1837 * tree-ssa-forwprop.c: Likewise.
1838 * tree-ssa-ifcombine.c: Likewise.
1839 * tree-ssa-live.c: Likewise.
1840 * tree-ssa-loop.c: Likewise.
1841 * tree-ssa-loop-ch.c: Likewise.
1842 * tree-ssa-loop-im.c: Likewise.
1843 * tree-ssa-loop-ivcanon.c: Likewise.
1844 * tree-ssa-loop-ivopts.c: Likewise.
1845 * tree-ssa-loop-manip.c: Likewise.
1846 * tree-ssa-loop-niter.c: Likewise.
1847 * tree-ssa-loop-prefetch.c: Likewise.
1848 * tree-ssa-loop-unswitch.c: Likewise.
1849 * tree-ssa-math-opts.c: Likewise.
1850 * tree-ssanames.c: Likewise.
1851 * tree-ssa-operands.c: Likewise.
1852 * tree-ssa-phiopt.c: Likewise.
1853 * tree-ssa-phiprop.c: Likewise.
1854 * tree-ssa-pre.c: Likewise.
1855 * tree-ssa-propagate.c: Likewise.
1856 * tree-ssa-reassoc.c: Likewise.
1857 * tree-ssa-sccvn.c: Likewise.
1858 * tree-ssa-sink.c: Likewise.
1859 * tree-ssa-strlen.c: Likewise.
1860 * tree-ssa-structalias.c: Likewise.
1861 * tree-ssa-tail-merge.c: Likewise.
1862 * tree-ssa-ter.c: Likewise.
1863 * tree-ssa-threadedge.c: Likewise.
1864 * tree-ssa-threadupdate.c: Likewise.
1865 * tree-ssa-uncprop.c: Likewise.
1866 * tree-ssa-uninit.c: Likewise.
1867 * tree-stdarg.c: Likewise.
1868 * tree-streamer.c: Likewise.
1869 * tree-streamer-in.c: Likewise.
1870 * tree-streamer-out.c: Likewise.
1871 * tree-switch-conversion.c: Likewise.
1872 * tree-tailcall.c: Likewise.
1873 * tree-vect-data-refs.c: Likewise.
1874 * tree-vect-generic.c: Likewise.
1875 * tree-vect-loop.c: Likewise.
1876 * tree-vect-loop-manip.c: Likewise.
1877 * tree-vectorizer.c: Likewise.
1878 * tree-vect-patterns.c: Likewise.
1879 * tree-vect-slp.c: Likewise.
1880 * tree-vect-stmts.c: Likewise.
1881 * tree-vrp.c: Likewise.
1883 * ubsan.c: Likewise.
1884 * value-prof.c: Likewise.
1885 * varpool.c: Likewise.
1886 * var-tracking.c: Likewise.
1887 * vtable-verify.c: Likewise.
1888 * config/darwin.c: Likewise.
1889 * config/aarch64/aarch64-builtins.c: Likewise.
1890 * config/aarch64/aarch64.c: Likewise.
1891 * config/alpha/alpha.c: Likewise.
1892 * config/i386/i386.c: Likewise.
1893 * config/i386/winnt.c: Likewise.
1894 * config/ia64/ia64.c: Likewise.
1895 * config/m32c/m32c.c: Likewise.
1896 * config/mep/mep.c: Likewise.
1897 * config/mips/mips.c: Likewise.
1898 * config/rs6000/rs6000.c: Likewise.
1899 * config/s390/s390.c: Likewise.
1900 * config/sh/sh.c: Likewise.
1901 * config/sparc/sparc.c: Likewise.
1902 * config/spu/spu.c: Likewise.
1903 * config/stormy16/stormy16.c: Likewise.
1904 * config/tilegx/tilegx.c: Likewise.
1905 * config/tilepro/tilepro.c: Likewise.
1906 * config/xtensa/xtensa.c: Likewise.
1908 2013-11-22 Richard Earnshaw <rearnsha@arm.com>
1911 * arm.md (negdi_extendsidi): Fix invalid split.
1913 2013-11-22 Alex Velenko <Alex.Velenko@arm.com>
1915 * config/aarch64/arm_neon.h (vmov_n_f32): Implemented in C.
1916 (vmov_n_f64): Likewise.
1917 (vmov_n_p8): Likewise.
1918 (vmov_n_p16): Likewise.
1919 (vmov_n_s8): Likewise.
1920 (vmov_n_s16): Likewise.
1921 (vmov_n_s32): Likewise.
1922 (vmov_n_s64): Likewise.
1923 (vmov_n_u8): Likewise.
1924 (vmov_n_u16): Likewise.
1925 (vmov_n_u32): Likewise.
1926 (vmov_n_u64): Likewise.
1927 (vmovq_n_f32): Likewise.
1928 (vmovq_n_f64): Likewise.
1929 (vmovq_n_p8): Likewise.
1930 (vmovq_n_p16): Likewise.
1931 (vmovq_n_s8): Likewise.
1932 (vmovq_n_s16): Likewise.
1933 (vmovq_n_s32): Likewise.
1934 (vmovq_n_s64): Likewise.
1935 (vmovq_n_u8): Likewise.
1936 (vmovq_n_u16): Likewise.
1937 (vmovq_n_u32): Likewise.
1938 (vmovq_n_u64): Likewise.
1940 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
1942 * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
1943 vec_pack_trunc_v2df, vec_pack_trunc_df): Swap for big-endian.
1944 (reduc_<sur>plus_<mode>): Factorize V2DI into this.
1945 (reduc_<sur>plus_<mode>): Change this to reduc_splus_<mode> for floats
1946 and also change to float UNSPEC.
1947 (reduc_maxmin_uns>_<mode>): Remove V2DI.
1948 * config/aarch64/arm_neon.h (vaddv<q>_<suf><8,16,32,64>,
1949 vmaxv<q>_<suf><8,16,32,64>, vminv<q>_<suf><8,16,32,64>): Fix up scalar
1950 result access for big-endian.
1951 (__LANE0): New macro used to fix up lane access of 'across-lanes'
1952 intrinsics for big-endian.
1953 * config/aarch64/iterators.md (VDQV): Add V2DI.
1955 (vp): New mode attribute.
1957 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
1959 * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
1960 vec_pack_trunc_v2df, vec_pack_trunc_df): Swap source ops for
1963 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
1965 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Adjust
1966 for big-endian element order.
1967 (aarch64_simd_vec_setv2di): Likewise.
1968 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>,
1969 *aarch64_get_lane_zero_extendsi<mode>, aarch64_get_lane): Likewise.
1970 (vec_extract): Expand using aarch64_get_lane.
1971 * config/aarch64/aarch64.h (ENDIAN_LANE_N): New.
1973 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
1975 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Fix loads
1976 and stores to be ABI compliant.
1978 2013-11-22 David Malcolm <dmalcolm@redhat.com>
1980 * input.h (input_line): Remove.
1981 (input_filename): Likewise.
1982 (in_system_header): Likewise.
1983 * tree.h (EXPR_LOC_OR_HERE): Remove.
1984 * config/bfin/bfin.c (output_file_start): Remove use of
1985 input_filename macro.
1986 * builtins.c (c_strlen): Remove use of EXPR_LOC_OR_HERE macro.
1987 * gimplify.c (internal_get_tmp_var): Likewise.
1988 EXPR_LOC_OR_HERE macro.
1989 (shortcut_cond_expr): Likewise.
1990 * tree-diagnostic.c (diagnostic_report_current_function): Remove
1991 use of input_filename macro.
1992 * tree.c (get_file_function_name): Likewise.
1994 2013-11-22 Kenneth Zadeck <zadeck@naturalbridge.com>
1996 * store-layout.c (place-field): Fix hwi test and accessor mismatch.
1998 2013-11-22 Jakub Jelinek <jakub@redhat.com>
2000 * expr.c (store_constructor): Allow CONSTRUCTOR with VECTOR_TYPE
2001 (same sized) elements even if the type of the CONSTRUCTOR has
2002 vector mode and target is a REG.
2004 2013-11-22 Richard Biener <rguenther@suse.de>
2007 2013-11-21 Richard Biener <rguenther@suse.de>
2009 * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
2010 nb_iterations_upper_bound by one.
2012 2013-11-22 H.J. Lu <hongjiu.lu@intel.com>
2014 * config/i386/i386.c (processor_alias_table): Enable PTA_POPCNT
2017 * doc/invoke.texi: Mention POPCNT for corei7, corei7-avx,
2018 core-avx-i, core-avx2 and slm.
2020 2013-11-22 Eric Botcazou <ebotcazou@adacore.com>
2022 * print-rtl.c (print_rtx) <case MEM>: Output a space if no MEM_EXPR.
2024 2013-11-22 Richard Sandiford <rdsandiford@googlemail.com>
2026 * config/m32c/cond.md (stzx_16): Use register_operand for operand 0.
2027 (stzx_24_<mode>): Likewise mra_operand.
2029 2013-11-22 Jeff Law <law@redhat.com>
2031 * tree-ssa-threadupdate.c: Include tree-cfg.h and tree-pass.h
2032 (thread_block_1): Do not cancel jump threads which go from
2033 inside a loop, through the header, then back inside the loop.
2034 (bb_ends_with_multiway_branch): New function.
2035 (thread_through_all_blocks): Handle threading cases which start
2036 in a loop through the loop header to a point in the loop.
2038 * tree-ssa-threadedge.c (thread_across_edge): Mark the start of the
2039 jump thread path properly.
2041 2013-11-22 Trevor Saunders <tsaunders@mozilla.com>
2043 * vec.h (auto_vec): New class.
2044 * cfganal.c, cfgloop.c, cgraphunit.c, config/i386/i386.c, dwarf2out.c,
2045 function.c, genautomata.c, gimple.c, haifa-sched.c, ipa-inline.c,
2046 ira-build.c, loop-unroll.c, omp-low.c, ree.c, trans-mem.c,
2047 tree-call-cdce.c, tree-eh.c, tree-if-conv.c, tree-into-ssa.c,
2048 tree-loop-distribution.c, tree-predcom.c, tree-sra.c,
2049 tree-sssa-forwprop.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
2050 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
2051 tree-vect-loop.c, tree-vect-stmts.c: Use auto_vec and stack_vec as
2052 appropriate instead of vec for local variables.
2054 2013-11-21 Teresa Johnson <tejohnson@google.com>
2057 * cfgcleanup.c (outgoing_edges_match): Walk up past note instructions
2058 not understood by old_insns_match_p.
2060 2013-11-21 Bill Schmidt <wschmidt@vnet.ibm.com>
2062 * config/rs6000/vector.md (vec_pack_trunc_v2df): Revert previous
2063 little endian change.
2064 (vec_pack_sfix_trunc_v2df): Likewise.
2065 (vec_pack_ufix_trunc_v2df): Likewise.
2066 * config/rs6000/rs6000.c (rs6000_expand_interleave): Correct
2067 double checking of endianness.
2069 2013-11-22 Jakub Jelinek <jakub@redhat.com>
2071 * tree-vect-generic.c (optimize_vector_constructor): New function.
2072 (expand_vector_operations_1): Call it.
2074 2013-11-21 Uros Bizjak <ubizjak@gmail.com>
2076 * config/i386/i386.c (ix86_expand_special_args_builtin): Use
2077 ix86_zero_extend_to_Pmode where appropriate.
2078 (ix86_expand_builtin): Ditto.
2080 2013-11-21 Cary Coutant <ccoutant@google.com>
2082 * dwarf2out.c (want_pubnames): Don't do pubnames for -g1.
2083 (add_linkage_name): Don't add linkage name for -g1.
2084 (decls_for_scope): Process subblocks for -g1.
2085 (dwarf2out_source_line): Output line tables for -g1.
2086 (dwarf2out_finish): Likewise.
2087 * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
2088 unused scopes for -g1.
2089 * opts.c (common_handle_option): Handle -g same as -g2.
2090 * doc/invoke.texi: Update description for -g1.
2092 2013-11-21 Peter Bergner <bergner@vnet.ibm.com>
2094 * doc/extend.texi: Document htm builtins.
2096 2013-11-21 Jeff Law <law@redhat.com>
2098 PR tree-optimization/59221
2099 * tree-ssa-threadedge.c (thread_across_edge): Properly manage
2100 temporary equivalences when threading through joiner blocks.
2102 2013-11-21 Joseph Myers <joseph@codesourcery.com>
2104 PR rtl-optimization/55950
2105 * real.c (real_sqrt): Remove function.
2106 * real.h (real_sqrt): Remove prototype.
2107 * simplify-rtx.c (simplify_const_unary_operation): Do not fold
2108 SQRT using real_sqrt.
2110 2013-11-21 Richard Biener <rguenther@suse.de>
2112 PR tree-optimization/59058
2113 * tree-scalar-evolution.h (number_of_exit_cond_executions): Remove.
2114 * tree-scalar-evolution.c (number_of_exit_cond_executions): Likewise.
2115 * tree-vectorizer.h (LOOP_PEELING_FOR_ALIGNMENT): Rename to ...
2116 (LOOP_VINFO_PEELING_FOR_ALIGNMENT): ... this.
2117 (NITERS_KNOWN_P): Fold into ...
2118 (LOOP_VINFO_NITERS_KNOWN_P): ... this.
2119 (LOOP_VINFO_PEELING_FOR_NITER): Add.
2120 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
2121 Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
2122 (vect_do_peeling_for_alignment): Re-use precomputed niter
2123 instead of re-emitting it.
2124 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
2125 Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
2126 * tree-vect-loop.c (vect_get_loop_niters): Use
2127 number_of_latch_executions.
2128 (new_loop_vec_info): Initialize LOOP_VINFO_PEELING_FOR_NITER.
2129 (vect_analyze_loop_form): Simplify.
2130 (vect_analyze_loop_operations): Move epilogue peeling code ...
2131 (vect_analyze_loop_2): ... here and adjust it to compute
2132 LOOP_VINFO_PEELING_FOR_NITER.
2133 (vect_estimate_min_profitable_iters): Use
2134 LOOP_VINFO_PEELING_FOR_ALIGNMENT.
2135 (vect_build_loop_niters): Emit on the preheader.
2136 (vect_generate_tmps_on_preheader): Likewise.
2137 (vect_transform_loop): Use LOOP_VINFO_PEELING_FOR_NITER instead
2138 of recomputing it. Adjust.
2140 2013-11-21 Richard Biener <rguenther@suse.de>
2142 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
2143 LOC_LINE): Remove wrappers and fix all users.
2144 (struct _loop_vec_info): Remove loop_line_number member.
2145 (LOOP_VINFO_LOC): Remove.
2146 * tree-parloops.c, tree-vect-loop-manip.c, tree-vect-slp.c,
2147 tree-vectorizer.c: Fix users of LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE
2150 2013-11-21 Richard Biener <rguenther@suse.de>
2152 * tree-ssa-forwprop.c (simplify_vce): New function.
2153 (ssa_forward_propagate_and_combine): Call it.
2155 2013-11-21 Richard Biener <rguenther@suse.de>
2157 * tree-vect-loop-manip.c (vect_build_loop_niters,
2158 vect_generate_tmps_on_preheader): Move ...
2159 * tree-vect-loop.c (vect_build_loop_niters,
2160 vect_generate_tmps_on_preheader): ... here and simplify.
2161 (vect_transform_loop): Call them here and pass down results
2163 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound):
2164 Get niter variables from caller.
2165 (vect_do_peeling_for_alignment): Likewise.
2166 * tree-vectorizer.h (vect_generate_tmps_on_preheader): Remove.
2167 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
2170 2013-11-21 Richard Biener <rguenther@suse.de>
2172 * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
2173 nb_iterations_upper_bound by one.
2175 2013-11-21 Richard Biener <rguenther@suse.de>
2177 PR tree-optimization/59058
2178 * tree-loop-distribution.c (struct partition_s): Add plus_one member.
2179 (build_size_arg_loc): Apply niter adjustment here.
2180 (generate_memset_builtin): Adjust.
2181 (generate_memcpy_builtin): Likewise.
2182 (classify_partition): Do not use number_of_exit_cond_executions
2183 but record whether niter needs to be adjusted.
2185 2013-11-21 Eric Botcazou <ebotcazou@adacore.com>
2187 * tree-ssa-tail-merge.c (stmt_local_def): Return false if the statement
2190 2013-11-21 Oleg Endo <olegendo@gcc.gnu.org>
2193 * config/sh/sh_optimize_sett_clrt.cc: New SH specific RTL pass.
2194 * config/sh/sh.c (register_sh_passes): Add sh_optimize_sett_clrt pass.
2195 * config/sh/sh/t-sh (sh_optimize_sett_clrt pass.o): New entry.
2196 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add
2197 sh_optimize_sett_clrt pass.o to extra_objs.
2199 2013-11-20 David Malcolm <dmalcolm@redhat.com>
2201 * cfg.c (dump_edge_info): Remove redundant comment.
2202 * cfgcleanup.c (outgoing_edges_match): Reword reference to
2203 EXIT_BLOCK_PTR in comment.
2204 (try_optimize_cfg): Likewise.
2205 * cfgrtl.c (last_bb_in_partition): Likewise.
2206 * cgraph.c (cgraph_node_cannot_return): Likewise.
2207 * function.c (thread_prologue_and_epilogue_insns): Likewise.
2208 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
2209 * ipa-split.c (consider_split): Likewise.
2210 * profile.c (find_spanning_tree): Likewise.
2211 * sched-int.h (common_sched_info_def.add_block): Likewise.
2212 * dominance.c (calc_dfs_tree_nonrec): Reword references in
2213 comments to now removed ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR macros.
2214 * tree-cfgcleanup.c (cleanup_control_flow_bb): Reword references
2215 in comments to now removed ENTRY_BLOCK_PTR macro.
2216 (tree_forwarder_block_p): Reword reference in comment to
2218 * tree-inline.c (copy_cfg_body): Reword references in comments to
2219 now removed ENTRY_BLOCK_PTR macro.
2220 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
2221 * tree-scalar-evolution.h ( block_before_loop): Likewise. Add
2222 a comma to the comment to clarify the meaning.
2224 2013-11-20 Andrew MacLeod <amacleod@redhat.com>
2226 * gimplify.h (gimplify_hasher:typed_free_remove, struct gimplify_ctx):
2228 (free_gimplify_stack): Add prototype.
2229 * gimplify.c (gimplify_hasher:typed_free_remove): Relocate here.
2230 (struct gimplify_ctx): Relocate here.
2231 (gimplify_ctxp): Make static.
2232 (ctx_pool, ctx_alloc, ctx_free, free_gimplify_stack): New. Manage a
2233 list of struct gimplify_ctx.
2234 (push_gimplify_context): Add default parameters and allocate a struct
2236 (pop_gimplify_context): Free a struct back to the pool.
2237 (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
2238 gimplify_omp_workshare, gimplify_transaction, gimplify_body): Don't
2239 use a local 'struct gimplify_ctx'.
2240 * cgraphunit.c (expand_all_functions): call free_gimplify_stack.
2241 * gimplify-me.c (force_gimple_operand_1, gimple_regimplify_operands):
2243 * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
2244 lower_omp_ordered, lower_omp_critical, lower_omp_for,
2245 create_task_copyfn, lower_omp_taskreg, lower_omp_target,
2246 lower_omp_teams, execute_lower_omp): Likewise.
2247 * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
2248 * tree-inline.c (optimize_inline_calls): Likewise.
2250 2013-11-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2252 * config/rs6000/vsx.md (vsx_set_<mode>): Adjust for little endian.
2253 (vsx_extract_<mode>): Likewise.
2254 (*vsx_extract_<mode>_one_le): New LE variant on
2255 *vsx_extract_<mode>_zero.
2256 (vsx_extract_v4sf): Adjust for little endian.
2258 2013-11-20 Vladimir Makarov <vmakarov@redhat.com>
2260 PR rtl-optimization/59133
2261 * lra.c (expand_reg_data): Add new argument. Set up ALL_REGS for
2263 (lra_create_new_reg_with_unique_value): Pass new argument value.
2264 (lra_emit_add, lra_emit_move): Ditto.
2265 * lra-constraints.c (in_class_p): Add check for move for a new insn.
2266 (change_class): Rename to lra_change_class. Move to lra-int.h.
2267 (get_reload_reg, narrow_reload_pseudo_class): Adjust calls of
2269 (process_addr_reg, process_addr): Ditto.
2270 (curr_insn_transform): Ditto. Add check on old pseudo for
2272 * lra-int.h (lra_get_regno_hard_regno): Move below.
2273 (lra_change_class): Renamed change_class from lra.c.
2275 2013-11-20 David Malcolm <dmalcolm@redhat.com>
2277 * gdbhooks.py (VecPrinter.children): Don't attempt to iterate
2278 the children of a NULL pointer.
2280 2013-11-20 Robert Suchanek <Robert.Suchanek@imgtec.com>
2282 * lra.c (lra): Set lra_in_progress before check_rtl call.
2283 * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
2284 adding clobber regs when LRA is running.
2286 2013-11-20 Maciej W. Rozycki <macro@codesourcery.com>
2288 * config/mips/mips.h (ISA_HAS_FP4): Remove TARGET_FLOAT64
2289 restriction for ISA_MIPS32R2.
2290 (ISA_HAS_LXC1_SXC1): New macro.
2291 (ISA_HAS_FP_MADD4_MSUB4): Remove ISA_MIPS32R2 special-casing.
2292 (ISA_HAS_NMADD4_NMSUB4): Likewise.
2293 (ISA_HAS_FP_RECIP_RSQRT): Likewise.
2294 (ISA_HAS_PREFETCHX): Redefine in terms of ISA_HAS_FP4.
2295 * config/mips/mips.md (*<ANYF:loadx>_<P:mode>): Use
2296 ISA_HAS_LXC1_SXC1 rather than ISA_HAS_FP4.
2297 (*<ANYF:storex>_<P:mode>): Likewise.
2299 2013-11-20 Maciej W. Rozycki <macro@codesourcery.com>
2301 * config/mips/mips.h (ISA_HAS_FP_RECIP_RSQRT): New macro.
2302 * config/mips/mips.c (mips_rtx_costs) <DIV>: Check for
2303 ISA_HAS_FP_RECIP_RSQRT rather than ISA_HAS_FP4.
2304 * config/mips/mips.md (recip_condition): Remove mode attribute.
2305 (div<mode>3): Use ISA_HAS_FP_RECIP_RSQRT rather than
2307 (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Likewise.
2309 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
2312 * config/sparc/sparc.c (sparc_fold_builtin) <case CODE_FOR_pdist_vis>:
2313 Make sure neg2_ovf is set before being used.
2315 2013-11-20 Basile Starynkevitch <basile@starynkevitch.net>
2317 * plugin.def: Add comment about register_callback and
2318 invoke_plugin_callbacks_full.
2320 * plugin.c (register_callback, invoke_plugin_callbacks_full):
2321 Handle PLUGIN_INCLUDE_FILE event.
2323 2013-11-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2325 * config/rs6000/rs6000.c (rs6000_cannot_change_mode_class): Do not
2326 allow subregs of TDmode in FPRs of smaller size in little-endian.
2327 (rs6000_split_multireg_move): When splitting an access to TDmode
2328 in FPRs, do not use simplify_gen_subreg.
2330 2013-11-20 Joseph Myers <joseph@codesourcery.com>
2333 * real.c: Remove comment about decimal string conversion and
2335 (real_from_string): Use MPFR to convert nonzero decimal constant
2338 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
2340 * config/arm/arm.c (arm_dwarf_register_span): Take into account the
2341 endianness of the D registers for the legacy encodings.
2343 2013-11-20 Richard Earnshaw <rearnsha@arm.com>
2345 PR rtl-optimization/54300
2346 * regcprop.c (copyprop_hardreg_forward_1): Ensure any unused
2347 outputs in a single-set are killed from the value chains.
2349 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
2351 * cgraph.h (varpool_node): Add need_bounds_init field.
2352 * lto-cgraph.c (lto_output_varpool_node): Output
2353 need_bounds_init value.
2354 (input_varpool_node): Read need_bounds_init value.
2355 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
2357 2013-11-20 Jan Hubicka <jh@suse.cz>
2359 * opts.c (finish_options): Imply -ffat-lto-objects with
2360 -fno-use-linker-plugin.
2361 * common.opt (fuse-linker-plugin): Add var.
2363 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
2365 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
2366 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
2367 (gen_type_die_with_usage): Skip pointer bounds.
2368 (dwarf2out_global_decl): Likewise.
2370 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
2372 * config/aarch64/aarch64.md: Remove "mode" and "mode2" attributes
2375 2013-11-20 Yuri Rumyantsev <ysrumyan@gmail.com>
2378 * config/i386/i386.c (ix86_option_override_internal): Add missed
2379 argument prefix for 'ix86_fpmath'.
2380 * config/i386/ssemath.h: Add missed definition of
2381 TARGET_FPMATH_DEFAULT_P macros.
2383 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
2384 Mike Stump <mikestump@comcast.net>
2385 Richard Sandiford <rdsandiford@googlemail.com>
2387 * alias.c (ao_ref_from_mem): Use tree_to_shwi and tree_to_uhwi
2388 instead of TREE_INT_CST_LOW, in cases where there is a protecting
2389 tree_fits_shwi_p or tree_fits_uhwi_p.
2390 * builtins.c (fold_builtin_powi): Likewise.
2391 * config/epiphany/epiphany.c (epiphany_special_round_type_align):
2393 * dbxout.c (dbxout_symbol): Likewise.
2394 * expr.c (expand_expr_real_1): Likewise.
2395 * fold-const.c (fold_single_bit_test, fold_plusminus_mult_expr)
2396 (fold_binary_loc): Likewise.
2397 * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
2398 * gimple-ssa-strength-reduction.c (stmt_cost): Likewise.
2399 * omp-low.c (lower_omp_for_lastprivate): Likewise.
2400 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
2401 * stor-layout.c (compute_record_mode): Likewise.
2402 * tree-cfg.c (verify_expr): Likewise.
2403 * tree-dfa.c (get_ref_base_and_extent): Likewise.
2404 * tree-pretty-print.c (dump_array_domain): Likewise.
2405 * tree-sra.c (build_user_friendly_ref_for_offset): Likewise.
2406 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
2407 * tree-ssa-loop-ivopts.c (get_loop_invariant_expr_id): Likewise.
2408 * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
2409 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
2410 * tree-ssa-reassoc.c (acceptable_pow_call): Likewise.
2411 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
2412 (ao_ref_init_from_vn_reference, vn_reference_fold_indirect): Likewise.
2413 (vn_reference_lookup_3, simplify_binary_expression): Likewise.
2414 * tree-ssa-structalias.c (bitpos_of_field): Likewise.
2415 (get_constraint_for_1, push_fields_onto_fieldstack): Likewise.
2416 (create_variable_info_for_1): Likewise.
2417 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
2418 (vect_verify_datarefs_alignment): Likewise.
2419 (vect_analyze_data_ref_accesses): Likewise.
2420 (vect_prune_runtime_alias_test_list): Likewise.
2421 * tree-vectorizer.h (NITERS_KNOWN_P): Likewise.
2423 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
2425 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Avoid signed
2426 overflow. Use tree_to_shwi.
2428 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
2430 * fold-const.c (fold_binary_loc): Use unsigned rather than signed
2431 HOST_WIDE_INTs when folding (x >> c) << c.
2433 2013-11-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2434 Dominik Vogt <vogt@linux.vnet.ibm.com>
2436 * config/s390/s390.c (s390_canonicalize_comparison): Don't fold
2437 int comparisons with an out of range condition code.
2438 (s390_optimize_nonescaping_tx): Skip empty BBs.
2439 Generate the new tbegin RTX when removing the FPR clobbers (with
2441 (s390_expand_tbegin): Fix the retry loop counter. Copy CC to the
2442 result before doing the retry calculations.
2443 (s390_init_builtins): Make tbegin "returns_twice" and tabort
2445 * config/s390/s390.md (UNSPECV_TBEGIN_TDB): New constant used for
2446 the TDB setting part of an tbegin.
2447 ("tbegin_1", "tbegin_nofloat_1"): Add a set for the TDB.
2448 ("tx_assist"): Set unused argument to an immediate zero instead of
2449 loading zero into a GPR and pass it as argument.
2450 * config/s390/htmxlintrin.h (__TM_simple_begin, __TM_begin):
2451 Remove inline and related attributes.
2452 (__TM_nesting_depth, __TM_is_user_abort, __TM_is_named_user_abort)
2453 (__TM_is_illegal, __TM_is_footprint_exceeded)
2454 (__TM_is_nested_too_deep, __TM_is_conflict): Fix format value check.
2456 2013-11-20 Richard Biener <rguenther@suse.de>
2459 * lto-opts.c (lto_write_options): Write defaults only if
2460 they were not explicitely specified. Also write
2461 -ffp-contract default.
2462 * lto-wrapper.c (merge_and_complain): Merge -ffp-contract
2464 (run_gcc): Pass through -ffp-contract.
2466 2013-11-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2468 * config/mips/mips.c (r10k_simplify_address): Eliminate macro usage.
2470 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
2472 * gcc/config/aarch64/aarch64-builtins.c
2473 (aarch64_simd_itype): Remove.
2474 (aarch64_simd_builtin_datum): Remove itype, add qualifiers pointer.
2475 (VAR1): Use qualifiers.
2476 (aarch64_build_scalar_type): New.
2477 (aarch64_build_vector_type): Likewise.
2478 (aarch64_build_type): Likewise.
2479 (aarch64_init_simd_builtins): Refactor, remove special cases,
2480 consolidate main loop.
2481 (aarch64_simd_expand_args): Likewise.
2483 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
2486 * doc/invoke.texi: Adding documentation about -Wfloat-conversion.
2488 2013-11-19 Miro Kropacek <miro.kropacek@gmail.com>
2490 * config/m68k/m68k.c (m68k_option_overrides): Fix typo.
2492 2013-11-19 David Malcolm <dmalcolm@redhat.com>
2494 * gdbhooks.py (VecPrinter): New class, for prettyprinting pointers
2495 to "vec<>" instances.
2496 (build_pretty_printer): Register the vec<>* prettyprinter.
2498 2013-11-19 David Malcolm <dmalcolm@redhat.com>
2500 * gdbhooks.py (GdbSubprinter.__init__): Drop str_type_ field.
2501 (GdbSubprinter.handles_type): New.
2502 (GdbSubprinterTypeList): New subclass of GdbSubprinter.
2503 (GdbSubprinterRegex): New subclass of GdbSubprinter.
2504 (GdbPrettyPrinters.add_printer): Remove in favor of...
2505 (GdbPrettyPrinters.add_printer_for_types): ...this new method and...
2506 (GdbPrettyPrinters.add_printer_for_regex): ...this other new method.
2507 (GdbPrettyPrinters.__call__): Update search for subprinter
2508 to use handles_type method.
2509 (build_pretty_printer): Update registration of subprinters to
2510 use the new API above, supporting multiple spelling of each type,
2511 and allowing for future regex-based subprinters.
2513 2013-11-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2515 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Adjust
2516 V16QI vector splat case for little endian.
2518 2013-11-19 Jeff Law <law@redhat.com>
2520 * tree-ssa-threadedge.c (thread_across_edge): After threading
2521 through a joiner, allow threading a normal block requiring duplication.
2523 * tree-ssa-threadupdate.c (thread_block_1): Improve code to detect
2524 jump threading requests that would muck up the loop structures.
2526 * tree-ssa-threadupdate.c: Fix trailing whitespace.
2527 * tree-ssa-threadupdate.h: Likewise.
2529 2013-11-19 Mike Stump <mikestump@comcast.net>
2531 * gdbinit.in: Add pmz to print out mpz values.
2533 2013-11-20 Jan Hubicka <jh@suse.cz>
2535 * common.opt (ffat-lto-objects): Disable by default.
2536 * doc/invoke.texi (fat-lto-objects): Update documentation.
2537 * opts.c: Enable fat-lto-objects on lto plugin disable setups.
2539 2013-11-19 Martin Jambor <mjambor@suse.cz>
2541 PR rtl-optimization/59099
2542 * ira.c (find_moveable_pseudos): Put back various analyses from ira()
2544 (ira): Move init_reg_equiv and call to
2545 split_live_ranges_for_shrink_wrap up, remove analyses around call
2546 to find_moveable_pseudos.
2548 2013-11-20 Alan Modra <amodra@gmail.com>
2550 * config/rs6000/sysv4.h (CC1_ENDIAN_LITTLE_SPEC): Define as empty.
2551 * config/rs6000/rs6000.c (rs6000_option_override_internal): Default
2552 to strict alignment on older processors when little-endian.
2553 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to power8
2556 2013-11-19 Teresa Johnson <tejohnson@google.com>
2558 * common/config/i386/i386-common.c: Enable
2559 -freorder-blocks-and-partition at -O2 and up for x86.
2560 * doc/invoke.texi: Update -freorder-blocks-and-partition default.
2561 * opts.c (finish_options): Only warn if
2562 -freorder-blocks-and-partition was set on command line.
2564 2013-11-19 Sriraman Tallam <tmsriram@google.com>
2566 * final.c (final_scan_insn): Emit a label for the split
2567 cold function part. Label name is formed by suffixing
2568 the original function name with "cold".
2570 2013-11-19 David Malcolm <dmalcolm@redhat.com>
2572 * basic-block.h (ENTRY_BLOCK_PTR_FOR_FUNCTION): Rename macro to...
2573 (EXIT_BLOCK_PTR_FOR_FUNCTION): ...this.
2574 (ENTRY_BLOCK_PTR_FOR_FN): Renamed macro to...
2575 (EXIT_BLOCK_PTR_FOR_FN): ...this.
2576 (ENTRY_BLOCK_PTR): Eliminate macro as work towards making uses of
2578 (EXIT_BLOCK_PTR): Likewise.
2579 (FOR_ALL_BB): Rework for now to eliminate use of "ENTRY_BLOCK_PTR".
2580 (FOR_ALL_BB_FN): Update for renaming of
2581 "ENTRY_BLOCK_PTR_FOR_FUNCTION" to "ENTRY_BLOCK_PTR_FOR_FN".
2583 * cfg.c (init_flow): Likewise.
2584 (check_bb_profile): Likewise.
2585 * cfganal.c (pre_and_rev_post_order_compute_fn): Likewise.
2586 * cfgcleanup.c (walk_to_nondebug_insn): Likewise.
2587 * cfghooks.c (account_profile_record): Likewise.
2588 * cfgloop.c (init_loops_structure): Likewise.
2589 * cgraphbuild.c (record_eh_tables): Likewise.
2590 (compute_call_stmt_bb_frequency): Likewise.
2591 * ipa-inline-analysis.c (compute_bb_predicates): Likewise.
2592 * lto-streamer-in.c (input_cfg): Likewise.
2593 * predict.c (maybe_hot_frequency_p): Likewise.
2594 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
2595 * tree-inline.c (initialize_cfun): Likewise.
2596 (copy_cfg_body): Likewise.
2597 (copy_body): Likewise.
2598 (tree_function_versioning): Likewise.
2600 * bb-reorder.c (add_labels_and_missing_jumps): Remove uses of macros:
2601 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2602 (duplicate_computed_gotos): Remove usage of EXIT_BLOCK_PTR macro.
2603 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove uses of
2604 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2605 (connect_traces): Likewise.
2606 (rest_of_handle_reorder_blocks): Remove usage of EXIT_BLOCK_PTR macro.
2607 (bb_to_key): Remove usage of ENTRY_BLOCK_PTR macro.
2608 (fix_crossing_conditional_branches): Remove usage of EXIT_BLOCK_PTR
2610 (find_traces_1_round): Remove uses of macros: ENTRY_BLOCK_PTR,
2612 (fix_up_fall_thru_edges): Remove usage of EXIT_BLOCK_PTR macro.
2613 (find_traces): Remove usage of ENTRY_BLOCK_PTR macro.
2614 (fix_up_crossing_landing_pad): Remove usage of EXIT_BLOCK_PTR macro.
2615 (rotate_loop): Likewise.
2616 * bt-load.c (migrate_btr_def): Remove usage of ENTRY_BLOCK_PTR macro.
2617 * cfg.c (clear_aux_for_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
2619 (alloc_aux_for_edges): Likewise.
2620 (clear_bb_flags): Remove usage of ENTRY_BLOCK_PTR macro.
2621 (cached_make_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
2623 (compact_blocks): Likewise.
2624 (clear_edges): Likewise.
2625 * cfganal.c (single_pred_before_succ_order): Remove usage of
2626 ENTRY_BLOCK_PTR macro.
2627 (bitmap_union_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
2628 (bitmap_union_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
2629 (bitmap_intersection_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
2630 (bitmap_intersection_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
2631 (inverted_post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
2633 (compute_dominance_frontiers_1): Remove usage of ENTRY_BLOCK_PTR macro.
2634 (post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
2636 (connect_infinite_loops_to_exit): Remove usage of EXIT_BLOCK_PTR macro.
2637 (remove_fake_edges): Remove usage of ENTRY_BLOCK_PTR macro.
2638 (add_noreturn_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
2639 (find_pdom): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2640 (remove_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
2641 (verify_edge_list): Remove uses of macros: ENTRY_BLOCK_PTR,
2643 (print_edge_list): Likewise.
2644 (create_edge_list): Likewise.
2645 (find_unreachable_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
2646 (mark_dfs_back_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
2648 * cfgbuild.c (find_bb_boundaries): Remove usage of ENTRY_BLOCK_PTR
2650 (find_many_sub_basic_blocks): Remove usage of EXIT_BLOCK_PTR macro.
2651 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2652 * cfgcleanup.c (delete_unreachable_blocks): Likewise.
2653 (try_optimize_cfg): Likewise.
2654 (try_head_merge_bb): Remove usage of EXIT_BLOCK_PTR macro.
2655 (try_crossjump_to_edge): Remove usage of ENTRY_BLOCK_PTR macro.
2656 (try_crossjump_bb): Remove usage of EXIT_BLOCK_PTR macro.
2657 (merge_blocks_move): Remove usage of ENTRY_BLOCK_PTR macro.
2658 (outgoing_edges_match): Remove usage of EXIT_BLOCK_PTR macro.
2659 (try_forward_edges): Likewise.
2660 (try_simplify_condjump): Likewise.
2661 * cfgexpand.c (gimple_expand_cfg): Remove uses of macros:
2662 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2663 (construct_exit_block): Remove usage of EXIT_BLOCK_PTR macro.
2664 (construct_init_block): Remove uses of macros: ENTRY_BLOCK_PTR,
2666 (expand_gimple_basic_block): Remove usage of EXIT_BLOCK_PTR macro.
2667 (expand_gimple_tailcall): Likewise.
2668 * cfghooks.c (can_duplicate_block_p): Remove uses of macros:
2669 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2670 (tidy_fallthru_edges): Likewise.
2671 (verify_flow_info): Likewise.
2672 * cfgloop.c (flow_bb_inside_loop_p): Likewise.
2673 (num_loop_branches): Remove usage of EXIT_BLOCK_PTR macro.
2674 (disambiguate_multiple_latches): Remove usage of ENTRY_BLOCK_PTR macro.
2675 (get_loop_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
2676 (bb_loop_header_p): Remove usage of ENTRY_BLOCK_PTR macro.
2677 (get_loop_body_in_bfs_order): Remove usage of EXIT_BLOCK_PTR macro.
2678 (get_loop_body_in_dom_order): Likewise.
2679 (get_loop_body): Likewise.
2680 * cfgloopanal.c (mark_irreducible_loops): Remove uses of macros:
2681 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2682 * cfgloopmanip.c (create_preheader): Remove usage of ENTRY_BLOCK_PTR
2684 (remove_path): Remove usage of EXIT_BLOCK_PTR macro.
2685 (fix_bb_placement): Likewise.
2686 * cfgrtl.c (rtl_block_empty_p): Remove uses of macros:
2687 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2688 (rtl_can_remove_branch_p): Remove usage of EXIT_BLOCK_PTR macro.
2689 (cfg_layout_split_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
2691 (rtl_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
2692 (cfg_layout_can_merge_blocks_p): Remove uses of macros:
2693 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2694 (cfg_layout_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
2696 (fixup_fallthru_exit_predecessor): Remove uses of macros:
2697 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2698 (fixup_reorder_chain): Likewise.
2699 (relink_block_chain): Likewise.
2700 (cfg_layout_delete_block): Remove usage of EXIT_BLOCK_PTR macro.
2701 (rtl_verify_bb_layout): Remove usage of ENTRY_BLOCK_PTR macro.
2702 (cfg_layout_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
2703 (force_one_exit_fallthru): Likewise.
2704 (rtl_verify_fallthru): Remove uses of macros: ENTRY_BLOCK_PTR,
2706 (rtl_verify_edges): Likewise.
2707 (commit_edge_insertions): Likewise.
2708 (commit_one_edge_insertion): Likewise.
2709 (rtl_split_edge): Likewise.
2710 (force_nonfallthru_and_redirect): Likewise.
2711 (outof_cfg_layout_mode): Remove usage of EXIT_BLOCK_PTR macro.
2712 (skip_insns_after_block): Likewise.
2713 (fixup_partition_crossing): Remove uses of macros: ENTRY_BLOCK_PTR,
2715 (purge_dead_edges): Remove usage of EXIT_BLOCK_PTR macro.
2716 (rtl_can_merge_blocks): Remove uses of macros: ENTRY_BLOCK_PTR,
2718 (contains_no_active_insn_p): Likewise.
2719 (emit_insn_at_entry): Remove usage of ENTRY_BLOCK_PTR macro.
2720 (entry_of_function): Likewise.
2721 (last_bb_in_partition): Remove usage of EXIT_BLOCK_PTR macro.
2722 (fixup_new_cold_bb): Likewise.
2723 (patch_jump_insn): Likewise.
2724 (try_redirect_by_replacing_jump): Likewise.
2725 (block_label): Likewise.
2726 (could_fall_through): Likewise.
2727 (can_fallthru): Likewise.
2728 * cgraphbuild.c (cgraph_rebuild_references): Remove usage of
2729 ENTRY_BLOCK_PTR macro.
2730 (rebuild_cgraph_edges): Likewise.
2731 * cgraphunit.c (init_lowered_empty_function): Remove uses of macros:
2732 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2733 (expand_thunk): Remove usage of EXIT_BLOCK_PTR macro.
2734 * combine.c (get_last_value): Remove usage of ENTRY_BLOCK_PTR macro.
2735 (distribute_links): Remove usage of EXIT_BLOCK_PTR macro.
2736 (get_last_value_validate): Remove usage of ENTRY_BLOCK_PTR macro.
2737 (try_combine): Remove usage of EXIT_BLOCK_PTR macro.
2738 (reg_num_sign_bit_copies_for_combine): Remove usage of ENTRY_BLOCK_PTR
2740 (reg_nonzero_bits_for_combine): Likewise.
2741 (set_nonzero_bits_and_sign_copies): Likewise.
2742 (combine_instructions): Likewise.
2743 * cprop.c (one_cprop_pass): Remove uses of macros: ENTRY_BLOCK_PTR,
2745 (bypass_conditional_jumps): Likewise.
2746 (bypass_block): Remove usage of EXIT_BLOCK_PTR macro.
2747 (find_implicit_sets): Likewise.
2748 (cprop_jump): Likewise.
2749 * cse.c (cse_cc_succs): Likewise.
2750 (cse_find_path): Likewise.
2751 * df-problems.c (df_lr_confluence_0): Likewise.
2752 * df-scan.c (df_entry_block_defs_collect): Remove usage of
2753 ENTRY_BLOCK_PTR macro.
2754 (df_exit_block_uses_collect): Remove usage of EXIT_BLOCK_PTR macro.
2755 * dominance.c (iterate_fix_dominators): Remove usage of
2756 ENTRY_BLOCK_PTR macro.
2757 (calc_idoms): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2758 (determine_dominators_for_sons): Remove usage of ENTRY_BLOCK_PTR macro.
2759 (calc_dfs_tree): Remove uses of macros: ENTRY_BLOCK_PTR,
2761 (prune_bbs_to_update_dominators): Remove usage of ENTRY_BLOCK_PTR
2763 (calc_dfs_tree_nonrec): Remove uses of macros: ENTRY_BLOCK_PTR,
2765 * domwalk.c (cmp_bb_postorder): Likewise.
2766 * dse.c (dse_step1): Remove usage of EXIT_BLOCK_PTR macro.
2767 * except.c (finish_eh_generation): Remove usage of ENTRY_BLOCK_PTR
2769 (sjlj_emit_function_enter): Likewise.
2770 * final.c (compute_alignments): Likewise.
2771 * function.c (thread_prologue_and_epilogue_insns): Remove uses of
2772 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2773 (reposition_prologue_and_epilogue_notes): Remove usage of
2774 EXIT_BLOCK_PTR macro.
2775 (convert_jumps_to_returns): Remove uses of macros: ENTRY_BLOCK_PTR,
2777 (regno_clobbered_at_setjmp): Remove usage of ENTRY_BLOCK_PTR macro.
2778 (next_block_for_reg): Remove usage of EXIT_BLOCK_PTR macro.
2779 * gcse.c (hoist_code): Remove usage of ENTRY_BLOCK_PTR macro.
2780 (update_bb_reg_pressure): Remove usage of EXIT_BLOCK_PTR macro.
2781 (compute_code_hoist_vbeinout): Likewise.
2782 (should_hoist_expr_to_dom): Remove usage of ENTRY_BLOCK_PTR macro.
2783 (pre_expr_reaches_here_p_work): Likewise.
2784 * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
2785 (gimple_find_edge_insert_loc): Remove uses of macros: ENTRY_BLOCK_PTR,
2787 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove usage of
2788 ENTRY_BLOCK_PTR macro.
2789 * graph.c (draw_cfg_nodes_for_loop): Remove usage of EXIT_BLOCK_PTR
2791 * graphite-clast-to-gimple.c (translate_clast_user): Remove usage of
2792 ENTRY_BLOCK_PTR macro.
2793 * graphite-scop-detection.c (build_scops): Likewise.
2794 (create_sese_edges): Remove usage of EXIT_BLOCK_PTR macro.
2795 (scopdet_basic_block_info): Remove usage of ENTRY_BLOCK_PTR macro.
2796 * haifa-sched.c (restore_bb_notes): Remove usage of EXIT_BLOCK_PTR
2798 (unlink_bb_notes): Likewise.
2799 (create_check_block_twin): Likewise.
2800 (init_before_recovery): Likewise.
2801 (sched_extend_bb): Likewise.
2802 (priority): Likewise.
2803 * hw-doloop.c (reorder_loops): Likewise.
2804 (discover_loop): Likewise.
2805 * ifcvt.c (dead_or_predicable): Remove uses of macros:
2806 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2807 (find_if_case_1): Remove usage of EXIT_BLOCK_PTR macro.
2808 (block_has_only_trap): Likewise.
2809 (cond_exec_find_if_block): Likewise.
2810 (merge_if_block): Likewise.
2811 * ipa-inline-analysis.c (param_change_prob): Remove usage of
2812 ENTRY_BLOCK_PTR macro.
2813 (record_modified): Likewise.
2814 * ipa-pure-const.c (execute_warn_function_noreturn): Remove usage of
2815 EXIT_BLOCK_PTR macro.
2816 (local_pure_const): Likewise.
2817 * ipa-split.c (split_function): Remove uses of macros:
2818 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2819 (find_split_points): Likewise.
2820 (consider_split): Likewise.
2821 (find_return_bb): Remove usage of EXIT_BLOCK_PTR macro.
2822 (verify_non_ssa_vars): Remove usage of ENTRY_BLOCK_PTR macro.
2823 * ira-build.c (ira_loop_tree_body_rev_postorder): Likewise.
2824 * ira-color.c (print_loop_title): Remove usage of EXIT_BLOCK_PTR macro.
2825 * ira-emit.c (entered_from_non_parent_p): Remove usage of
2826 ENTRY_BLOCK_PTR macro.
2827 (ira_emit): Remove usage of EXIT_BLOCK_PTR macro.
2828 * ira-int.h (ira_assert): Remove usage of ENTRY_BLOCK_PTR macro.
2829 * ira.c (split_live_ranges_for_shrink_wrap): Remove uses of macros:
2830 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2831 * lcm.c (compute_rev_insert_delete): Remove usage of ENTRY_BLOCK_PTR
2833 (compute_nearerout): Remove uses of macros: ENTRY_BLOCK_PTR,
2835 (compute_farthest): Likewise.
2836 (compute_available): Likewise.
2837 (compute_insert_delete): Remove usage of EXIT_BLOCK_PTR macro.
2838 (compute_laterin): Remove uses of macros: ENTRY_BLOCK_PTR,
2840 (compute_earliest): Likewise.
2841 (compute_antinout_edge): Likewise.
2842 * loop-iv.c (simplify_using_initial_values): Remove usage of
2843 ENTRY_BLOCK_PTR macro.
2844 * loop-unswitch.c (unswitch_loop): Remove usage of EXIT_BLOCK_PTR
2846 * lra-assigns.c (find_hard_regno_for): Remove usage of ENTRY_BLOCK_PTR
2848 * lra-constraints.c (lra_inheritance): Remove usage of EXIT_BLOCK_PTR
2850 * lra-lives.c (lra_create_live_ranges): Remove uses of macros:
2851 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2852 * lra.c (has_nonexceptional_receiver): Remove usage of EXIT_BLOCK_PTR
2854 * lto-streamer-in.c (input_function): Remove usage of ENTRY_BLOCK_PTR
2856 * lto-streamer-out.c (output_cfg): Likewise.
2857 * mcf.c (adjust_cfg_counts): Remove uses of macros: ENTRY_BLOCK_PTR,
2859 (create_fixup_graph): Remove usage of ENTRY_BLOCK_PTR macro.
2860 * mode-switching.c (optimize_mode_switching): Likewise.
2861 (create_pre_exit): Remove usage of EXIT_BLOCK_PTR macro.
2862 * modulo-sched.c (rest_of_handle_sms): Likewise.
2863 (canon_loop): Likewise.
2864 * omp-low.c (build_omp_regions): Remove usage of ENTRY_BLOCK_PTR macro.
2865 * postreload-gcse.c (eliminate_partially_redundant_loads): Remove uses
2866 of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2867 * predict.c (rebuild_frequencies): Remove usage of ENTRY_BLOCK_PTR
2869 (propagate_freq): Remove usage of EXIT_BLOCK_PTR macro.
2870 (estimate_bb_frequencies): Remove usage of ENTRY_BLOCK_PTR macro.
2871 (tree_estimate_probability_bb): Remove usage of EXIT_BLOCK_PTR macro.
2872 (expensive_function_p): Remove usage of ENTRY_BLOCK_PTR macro.
2873 (tree_bb_level_predictions): Remove usage of EXIT_BLOCK_PTR macro.
2874 (counts_to_freqs): Remove usage of ENTRY_BLOCK_PTR macro.
2875 (apply_return_prediction): Remove usage of EXIT_BLOCK_PTR macro.
2876 (estimate_loops): Remove usage of ENTRY_BLOCK_PTR macro.
2877 (gimple_predict_edge): Likewise.
2878 (probably_never_executed): Likewise.
2879 * profile.c (find_spanning_tree): Remove uses of macros:
2880 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2881 (branch_prob): Likewise.
2882 (compute_branch_probabilities): Likewise.
2883 (compute_frequency_overlap): Remove usage of ENTRY_BLOCK_PTR macro.
2884 (is_inconsistent): Remove usage of EXIT_BLOCK_PTR macro.
2885 (read_profile_edge_counts): Remove usage of ENTRY_BLOCK_PTR macro.
2886 (set_bb_counts): Likewise.
2887 (correct_negative_edge_counts): Likewise.
2888 (get_exec_counts): Likewise.
2889 (instrument_values): Likewise.
2890 (instrument_edges): Likewise.
2891 * reg-stack.c (convert_regs): Remove uses of macros: ENTRY_BLOCK_PTR,
2893 (compensate_edges): Remove usage of ENTRY_BLOCK_PTR macro.
2894 (convert_regs_exit): Remove usage of EXIT_BLOCK_PTR macro.
2895 (convert_regs_entry): Remove usage of ENTRY_BLOCK_PTR macro.
2896 (reg_to_stack): Likewise.
2897 * regs.h (REG_N_SETS): Likewise.
2898 * reload.c (find_dummy_reload): Likewise.
2899 (combine_reloads): Likewise.
2900 (push_reload): Likewise.
2901 * reload1.c (has_nonexceptional_receiver): Remove usage of
2902 EXIT_BLOCK_PTR macro.
2903 * resource.c (mark_target_live_regs): Remove usage of ENTRY_BLOCK_PTR
2905 (find_basic_block): Likewise.
2906 * sched-ebb.c (ebb_add_block): Remove usage of EXIT_BLOCK_PTR macro.
2907 (schedule_ebbs): Likewise.
2908 * sched-int.h (sel_sched_p): Likewise.
2909 * sched-rgn.c (compute_dom_prob_ps): Remove usage of ENTRY_BLOCK_PTR
2911 (rgn_add_block): Remove usage of EXIT_BLOCK_PTR macro.
2912 (haifa_find_rgns): Remove uses of macros: ENTRY_BLOCK_PTR,
2914 (propagate_deps): Remove usage of EXIT_BLOCK_PTR macro.
2915 (extend_rgns): Likewise.
2916 (find_single_block_region): Likewise.
2917 * sel-sched-ir.c (sel_remove_loop_preheader): Remove usage of
2918 ENTRY_BLOCK_PTR macro.
2919 (setup_nop_and_exit_insns): Remove usage of EXIT_BLOCK_PTR macro.
2920 (sel_create_recovery_block): Likewise.
2921 (bb_ends_ebb_p): Likewise.
2922 (sel_bb_end): Likewise.
2923 (sel_bb_head): Likewise.
2924 (free_lv_sets): Likewise.
2925 (init_lv_sets): Likewise.
2926 (tidy_control_flow): Likewise.
2927 (maybe_tidy_empty_bb): Likewise.
2928 * sel-sched-ir.h (_succ_iter_cond): Likewise.
2929 (_succ_iter_start): Likewise.
2930 (sel_bb_empty_or_nop_p): Likewise.
2931 (get_loop_exit_edges_unique_dests): Likewise.
2932 (inner_loop_header_p): Likewise.
2933 * sel-sched.c (create_block_for_bookkeeping): Likewise.
2934 (find_block_for_bookkeeping): Likewise.
2935 * store-motion.c (remove_reachable_equiv_notes): Likewise.
2936 (insert_store): Likewise.
2937 * trans-mem.c (ipa_tm_transform_clone): Remove usage of
2938 ENTRY_BLOCK_PTR macro.
2939 (tm_memopt_compute_available): Remove usage of EXIT_BLOCK_PTR macro.
2940 (ipa_tm_scan_irr_function): Remove usage of ENTRY_BLOCK_PTR macro.
2941 (gate_tm_init): Likewise.
2942 (tm_region_init): Likewise.
2943 * tree-cfg.c (execute_fixup_cfg): Remove uses of macros:
2944 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2945 (execute_warn_function_return): Remove usage of EXIT_BLOCK_PTR macro.
2946 (split_critical_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
2948 (print_loops): Remove usage of ENTRY_BLOCK_PTR macro.
2949 (move_sese_region_to_fn): Remove uses of macros: ENTRY_BLOCK_PTR,
2951 (gimple_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
2953 (gimple_verify_flow_info): Remove uses of macros: ENTRY_BLOCK_PTR,
2955 (remove_edge_and_dominated_blocks): Remove usage of EXIT_BLOCK_PTR
2957 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2958 (gimple_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
2959 (make_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
2960 (build_gimple_cfg): Likewise.
2961 (gimple_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
2962 (gimple_can_merge_blocks_p): Likewise.
2963 * tree-cfgcleanup.c (tree_forwarder_block_p): Remove uses of macros:
2964 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2965 * tree-complex.c (update_parameter_components): Remove usage of
2966 ENTRY_BLOCK_PTR macro.
2967 * tree-if-conv.c (get_loop_body_in_if_conv_order): Remove usage of
2968 EXIT_BLOCK_PTR macro.
2969 * tree-inline.c (tree_function_versioning): Remove uses of macros:
2970 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2971 (delete_unreachable_blocks_update_callgraph): Likewise.
2972 (initialize_cfun): Likewise.
2973 (copy_cfg_body): Remove usage of ENTRY_BLOCK_PTR macro.
2974 (copy_edges_for_bb): Remove usage of EXIT_BLOCK_PTR macro.
2975 (remap_ssa_name): Remove usage of ENTRY_BLOCK_PTR macro.
2976 * tree-into-ssa.c (update_ssa): Likewise.
2977 (maybe_register_def): Remove usage of EXIT_BLOCK_PTR macro.
2978 (insert_updated_phi_nodes_for): Remove usage of ENTRY_BLOCK_PTR macro.
2979 (rewrite_into_ssa): Likewise.
2980 (rewrite_debug_stmt_uses): Likewise.
2981 * tree-outof-ssa.c (expand_phi_nodes): Remove uses of macros:
2982 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2983 * tree-profile.c (gimple_gen_ic_func_profiler): Remove usage of
2984 ENTRY_BLOCK_PTR macro.
2985 * tree-scalar-evolution.h (block_before_loop): Likewise.
2986 * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
2987 (dump_dereferences_table): Remove uses of macros: ENTRY_BLOCK_PTR,
2989 (analyze_caller_dereference_legality): Remove usage of ENTRY_BLOCK_PTR
2991 (propagate_dereference_distances): Remove uses of macros:
2992 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2993 (initialize_parameter_reductions): Remove usage of ENTRY_BLOCK_PTR
2995 * tree-ssa-ccp.c (gsi_prev_dom_bb_nondebug): Likewise.
2996 (optimize_stack_restore): Remove usage of EXIT_BLOCK_PTR macro.
2997 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
2998 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove uses of macros:
2999 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3000 (remove_dead_stmt): Remove usage of EXIT_BLOCK_PTR macro.
3001 (propagate_necessity): Remove usage of ENTRY_BLOCK_PTR macro.
3002 (mark_control_dependent_edges_necessary): Remove uses of macros:
3003 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3004 * tree-ssa-dom.c (eliminate_degenerate_phis): Remove usage of
3005 ENTRY_BLOCK_PTR macro.
3006 (tree_ssa_dominator_optimize): Remove usage of EXIT_BLOCK_PTR macro.
3007 * tree-ssa-live.c (verify_live_on_entry): Remove uses of macros:
3008 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3009 (calculate_live_on_exit): Likewise.
3010 (set_var_live_on_entry): Remove usage of ENTRY_BLOCK_PTR macro.
3011 (loe_visit_block): Likewise.
3012 * tree-ssa-live.h (live_on_exit): Remove uses of macros:
3013 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3014 (live_on_entry): Likewise.
3015 * tree-ssa-loop-ivopts.c (find_interesting_uses): Remove usage of
3016 EXIT_BLOCK_PTR macro.
3017 * tree-ssa-loop-manip.c (compute_live_loop_exits): Remove usage of
3018 ENTRY_BLOCK_PTR macro.
3019 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Likewise.
3020 (bound_difference): Likewise.
3021 * tree-ssa-loop-prefetch.c (may_use_storent_in_loop_p): Remove usage
3022 of EXIT_BLOCK_PTR macro.
3023 * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Remove usage
3024 of ENTRY_BLOCK_PTR macro.
3025 * tree-ssa-math-opts.c (register_division_in): Likewise.
3026 * tree-ssa-phiprop.c (tree_ssa_phiprop): Likewise.
3027 * tree-ssa-pre.c (compute_avail): Likewise.
3028 (compute_antic): Remove usage of EXIT_BLOCK_PTR macro.
3029 (insert): Remove usage of ENTRY_BLOCK_PTR macro.
3030 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
3031 (simulate_block): Remove usage of EXIT_BLOCK_PTR macro.
3032 (cfg_blocks_add): Remove uses of macros: ENTRY_BLOCK_PTR,
3034 (add_control_edge): Remove usage of EXIT_BLOCK_PTR macro.
3035 * tree-ssa-reassoc.c (do_reassoc): Remove uses of macros:
3036 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3037 (build_and_add_sum): Remove usage of ENTRY_BLOCK_PTR macro.
3038 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
3039 (execute_sink_code): Remove usage of EXIT_BLOCK_PTR macro.
3040 * tree-ssa-uninit.c (find_dom): Remove usage of ENTRY_BLOCK_PTR macro.
3041 (compute_control_dep_chain): Remove usage of EXIT_BLOCK_PTR macro.
3042 (find_pdom): Likewise.
3043 (warn_uninitialized_vars): Remove usage of ENTRY_BLOCK_PTR macro.
3044 * tree-stdarg.c (reachable_at_most_once): Likewise.
3045 * tree-tailcall.c (tree_optimize_tail_calls_1): Remove uses of macros:
3046 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3047 (eliminate_tail_call): Likewise.
3048 * tsan.c (instrument_func_entry): Remove usage of ENTRY_BLOCK_PTR
3050 (instrument_func_exit): Remove usage of EXIT_BLOCK_PTR macro.
3051 * var-tracking.c (vt_initialize): Remove uses of macros:
3052 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3053 (vt_add_function_parameter): Remove usage of ENTRY_BLOCK_PTR macro.
3054 (vt_find_locations): Remove usage of EXIT_BLOCK_PTR macro.
3055 (vt_stack_adjustments): Remove uses of macros: ENTRY_BLOCK_PTR,
3057 * varasm.c (assemble_start_function): Remove usage of ENTRY_BLOCK_PTR
3059 * config/bfin/bfin.c (hwloop_optimize): Likewise.
3060 * config/nds32/nds32.c (nds32_fp_as_gp_check_available): Remove usage
3061 of EXIT_BLOCK_PTR macro.
3062 * config/arm/arm.c (require_pic_register): Remove usage of
3063 ENTRY_BLOCK_PTR macro.
3064 (arm_r3_live_at_start_p): Likewise.
3065 (any_sibcall_could_use_r3): Remove usage of EXIT_BLOCK_PTR macro.
3066 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
3067 * config/frv/frv.c (frv_optimize_membar_global): Likewise.
3068 * config/alpha/alpha.c (alpha_gp_save_rtx): Remove usage of
3069 ENTRY_BLOCK_PTR macro.
3070 * config/i386/i386.c (ix86_count_insn): Likewise.
3071 (ix86_seh_fixup_eh_fallthru): Remove usage of EXIT_BLOCK_PTR macro.
3072 (ix86_pad_short_function): Likewise.
3073 (ix86_compute_frame_layout): Remove usage of ENTRY_BLOCK_PTR macro.
3074 (ix86_pad_returns): Remove usage of EXIT_BLOCK_PTR macro.
3075 (ix86_eax_live_at_start_p): Remove usage of ENTRY_BLOCK_PTR macro.
3076 (add_condition_to_bb): Remove usage of EXIT_BLOCK_PTR macro.
3077 (ix86_expand_epilogue): Likewise.
3078 * config/ia64/ia64.c (ia64_asm_unwind_emit): Likewise.
3079 (ia64_expand_prologue): Likewise.
3081 2013-11-19 Catherine Moore <clm@codesourcery.com>
3083 * doc/invoke.texi (mfix-rm7000, mno-fix-rm7000): Document.
3084 * config/mips/mips.opt (mfix-rm7000): New option.
3085 * config/mips/mips.h (ASM_SPEC): Handle mfix-rm7000.
3086 * config/mips/mips.c (mips_reorg_process_insns): Disable
3087 noreorder for TARGET_FIX_RM7000.
3089 2013-11-19 Oleg Endo <olegendo@gcc.gnu.org>
3091 * config/sh/sh-c.c: Fix typo in include of file attribs.h.
3093 2013-11-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3095 * config/arm/arm.c (arm_new_rtx_costs):
3096 Handle narrow mode add-shifts properly.
3097 * config/arm/arm-common.c (arm_rtx_shift_left_p): Remove static.
3098 * config/arm/arm-common-protos.h (arm_rtx_shift_left_p):
3101 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
3103 * config/arm/arm.md (zero_extend<mode>di2): Add type attribute.
3105 2013-11-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3107 * config/rs6000/vector.md ("mov<mode>"): Do not call
3108 rs6000_emit_le_vsx_move to move into or out of GPRs.
3109 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Assert
3110 source and destination are not GPR hard regs.
3112 2013-11-19 David Malcolm <dmalcolm@redhat.com>
3114 * basic-block.h (n_edges_for_function): Rename macro to...
3115 (n_edges_for_fn): ...this.
3116 (n_edges): Eliminate macro as work towards making uses of
3119 * cfg.c (init_flow): Update for renaming of "n_edges_for_function"
3120 to "n_edges_for_fn".
3122 * cfg.c (unchecked_make_edge): Remove usage of n_edges macro.
3123 (clear_edges): Likewise.
3124 (free_edge): Likewise.
3125 * cfghooks.c (dump_flow_info): Likewise.
3126 * cprop.c (is_too_expensive): Likewise.
3127 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
3128 * gcse.c (is_too_expensive): Likewise.
3129 (prune_insertions_deletions): Likewise.
3130 * mcf.c (create_fixup_graph): Likewise.
3131 * sched-rgn.c (haifa_find_rgns): Likewise.
3132 * tree-cfg.c (gimple_dump_cfg): Likewise.
3133 * var-tracking.c (variable_tracking_main_1): Likewise.
3135 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
3137 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix over
3140 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
3142 * config/aarch64/aarch64.md
3143 (aarch64_movdi_<mode>low, *add_<shift>_si_uxtw): Adjust whitespace.
3145 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
3147 * config/aarch64/aarch64.h (PROFILE_HOOK): Fix whitespace.
3149 2013-11-19 Joseph Myers <joseph@codesourcery.com>
3151 * varasm.c (align_variable): Give error instead of warning for
3152 unsupported alignment.
3153 (assemble_noswitch_variable): Likewise.
3155 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
3157 * plugin.def (PLUGIN_INCLUDE_FILE): New event, invoked in
3160 2013-11-19 Peter Bergner <bergner@vnet.ibm.com>
3162 * loop-doloop.c (doloop_optimize_loops): Remove unused
3163 loop iterator argument from FOR_EACH_LOOP.
3165 2013-11-19 David Malcolm <dmalcolm@redhat.com>
3167 Convert gimple types from a union to C++ inheritance.
3168 * Makefile.in (GIMPLE_H): Add dep on is-a.h.
3169 * coretypes.h (union gimple_statement_d): Remove declaration.
3170 (gimple): Convert from being a "union gimple_statement_d *"
3171 to a "struct gimple_statement_base *".
3172 (const_gimple): Likewise (with "const").
3173 * ggc.h (ggc_alloc_cleared_gimple_statement_d_stat): Replace with...
3174 (ggc_alloc_cleared_gimple_statement_stat): ...this.
3175 * gimple-pretty-print.c (debug): Change parameter from a
3176 "gimple_statement_d &" to a "gimple_statement_base &".
3177 (debug): Change parameter from a "gimple_statement_d *" to
3178 a "gimple_statement_base *".
3179 * gimple-pretty-print.h (debug): Update declarations as above.
3180 * gimple.c (gimple_alloc_stat): Update for renaming of
3181 ggc_alloc_cleared_gimple_statement_d_stat to
3182 ggc_alloc_cleared_gimple_statement_stat.
3183 * gimple.h: Include "is-a.h" for use by is_a_helper
3184 specializations in followup autogenerated patch.
3185 (struct gimple statement_base): Make this type usable as a base
3186 class by adding "desc", "tag" and "variable_size" to GTY, thus
3187 using opting-in to gengtype's support for simple inheritance.
3188 (gimple_statement_with_ops_base): Convert to a subclass of
3189 gimple_statement_base, dropping initial "gsbase" field. Note that
3190 this type is abstract, with no GSS_ value, and thus no GTY tag value.
3191 (gimple_statement_with_ops): Convert to a subclass of
3192 gimple_statement_with_ops_base, dropping initial "opbase" field.
3193 Add tag value to GTY marking. Update marking of op field to
3194 reflect how num_ops field is accessed via inheritance.
3195 (gimple_statement_with_memory_ops_base): Convert to a subclass of
3196 gimple_statement_with_ops_base, dropping initial "opbase" field.
3197 Add tag value to GTY marking.
3198 (gimple_statement_with_memory_ops): Convert to a subclass of
3199 public gimple_statement_with_memory_ops_base, dropping initial
3200 "membase" field. Add tag value to GTY marking. Update marking
3201 of op field to reflect how num_ops field is accessed via inheritance.
3202 (gimple_statement_call): Analogous changes that also update the
3203 marking of the "u" union.
3204 (gimple_statement_omp): Convert to a subclass of
3205 gimple_statement_base, dropping initial "gsbase" field, adding
3206 tag value to GTY marking.
3207 (gimple_statement_bind): Likewise.
3208 (gimple_statement_catch): Likewise.
3209 (gimple_statement_eh_filter): Likewise.
3210 (gimple_statement_eh_else): Likewise.
3211 (gimple_statement_eh_mnt): Likewise.
3212 (gimple_statement_phi): Likewise.
3213 (gimple_statement_eh_ctrl): Likewise.
3214 (gimple_statement_try): Likewise.
3215 (gimple_statement_wce): Likewise.
3216 (gimple_statement_asm): Convert to a subclass of
3217 gimple_statement_with_memory_ops_base, dropping initial
3218 "membase" field, adding tag value to GTY marking, and updating
3219 marking of op field.
3220 (gimple_statement_omp_critical): Convert to a subclass of
3221 gimple_statement_omp, dropping initial "omp" field, adding tag
3222 value to GTY marking.
3223 (gimple_statement_omp_for): Likewise.
3224 (gimple_statement_omp_parallel): Likewise.
3225 (gimple_statement_omp_task): Convert to a subclass of
3226 gimple_statement_omp_parallel, dropping initial "par" field,
3227 adding tag value to GTY marking.
3228 (gimple_statement_omp_sections): Convert to a subclass of
3229 gimple_statement_omp, dropping initial "omp" field, adding
3230 tag value to GTY marking.
3231 (gimple_statement_omp_continue): Convert to a subclass of
3232 gimple_statement_base, dropping initial "gsbase" field, adding
3233 tag value to GTY marking.
3234 (gimple_statement_omp_single): Convert to a subclass of
3235 gimple_statement_omp, dropping initial "omp" field, adding
3236 tag value to GTY marking.
3237 (gimple_statement_omp_atomic_load): Convert to a subclass of
3238 gimple_statement_base, dropping initial "gsbase" field, adding
3239 tag value to GTY marking.
3240 (gimple_statement_omp_atomic_store): Convert to a subclass of
3241 gimple_statement_base, dropping initial "gsbase" field, adding
3242 tag value to GTY marking.
3243 (gimple_statement_transaction): Convert to a subclass of
3244 gimple_statement_with_memory_ops_base, dropping initial "gsbase"
3245 field, adding tag value to GTY marking.
3246 (union gimple_statement_d): Remove.
3247 * system.h (CONST_CAST_GIMPLE): Update to use
3248 "struct gimple_statement_base *" rather than
3249 "union gimple_statement_d *".
3250 * tree-ssa-ccp.c (gimple_htab): Convert underlying type from
3251 gimple_statement_d to gimple_statement_base.
3253 * gimple.h (gimple_use_ops): Port from union to usage of dyn_cast.
3254 (gimple_set_use_ops): Port from union to usage of as_a.
3255 (gimple_set_vuse): Likewise.
3256 (gimple_set_vdef): Likewise.
3257 (gimple_call_internal_fn): Port from union to a static_cast,
3258 given that the type has already been asserted.
3259 (gimple_omp_body_ptr): Port from unchecked union usage to
3261 (gimple_omp_set_body): Likewise.
3263 * gimple-iterator.c (update_bb_for_stmts): Update for conversion of
3264 gimple types to a true class hierarchy.
3265 (update_call_edge_frequencies): Likewise.
3266 (gsi_insert_seq_nodes_before): Likewise.
3267 (gsi_insert_seq_nodes_after): Likewise.
3268 (gsi_split_seq_after): Likewise.
3269 (gsi_set_stmt): Likewise.
3270 (gsi_split_seq_before): Likewise.
3271 (gsi_remove): Likewise.
3272 * gimple-iterator.h (gsi_one_before_end_p): Likewise.
3273 (gsi_next): Likewise.
3274 (gsi_prev): Likewise.
3275 * gimple-pretty-print.c (dump_gimple_debug): Likewise.
3276 * gimple-ssa.h (gimple_vuse_op): Likewise.
3277 (gimple_vdef_op): Likewise.
3278 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
3279 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
3280 * gimple.c (gimple_set_code): Likewise.
3281 (gimple_alloc_stat): Likewise.
3282 (gimple_set_subcode): Likewise.
3283 (gimple_build_call_internal_1): Likewise.
3284 (gimple_check_failed): Likewise.
3285 (gimple_call_flags): Likewise.
3286 (gimple_set_bb): Likewise.
3287 * gimple.h (is_a_helper <gimple_statement_asm> (gimple)): New.
3288 (is_a_helper <gimple_statement_bind> (gimple)): Likewise.
3289 (is_a_helper <gimple_statement_call> (gimple)): Likewise.
3290 (is_a_helper <gimple_statement_catch> (gimple)): Likewise.
3291 (is_a_helper <gimple_statement_eh_ctrl> (gimple)): Likewise.
3292 (is_a_helper <gimple_statement_eh_else> (gimple)): Likewise.
3293 (is_a_helper <gimple_statement_eh_filter> (gimple)): Likewise.
3294 (is_a_helper <gimple_statement_eh_mnt> (gimple)): Likewise.
3295 (is_a_helper <gimple_statement_omp_atomic_load> (gimple)): Likewise.
3296 (is_a_helper <gimple_statement_omp_atomic_store> (gimple)): Likewise.
3297 (is_a_helper <gimple_statement_omp_continue> (gimple)): Likewise.
3298 (is_a_helper <gimple_statement_omp_critical> (gimple)): Likewise.
3299 (is_a_helper <gimple_statement_omp_for> (gimple)): Likewise.
3300 (is_a_helper <gimple_statement_omp_parallel> (gimple)): Likewise.
3301 (is_a_helper <gimple_statement_omp_sections> (gimple)): Likewise.
3302 (is_a_helper <gimple_statement_omp_single> (gimple)): Likewise.
3303 (is_a_helper <gimple_statement_omp_task> (gimple)): Likewise.
3304 (is_a_helper <gimple_statement_phi> (gimple)): Likewise.
3305 (is_a_helper <gimple_statement_transaction> (gimple)): Likewise.
3306 (is_a_helper <gimple_statement_try> (gimple)): Likewise.
3307 (is_a_helper <gimple_statement_wce> (gimple)): Likewise.
3308 (is_a_helper <const gimple_statement_asm> (const_gimple)): Likewise.
3309 (is_a_helper <const gimple_statement_bind> (const_gimple)): Likewise.
3310 (is_a_helper <const gimple_statement_call> (const_gimple)): Likewise.
3311 (is_a_helper <const gimple_statement_catch> (const_gimple)): Likewise.
3312 (is_a_helper <const gimple_statement_eh_ctrl> (const_gimple)):
3314 (is_a_helper <const gimple_statement_eh_filter> (const_gimple)):
3316 (is_a_helper <const gimple_statement_omp_atomic_load> (const_gimple)):
3318 (is_a_helper <const gimple_statement_omp_atomic_store>
3319 (const_gimple)): Likewise.
3320 (is_a_helper <const gimple_statement_omp_continue> (const_gimple)):
3322 (is_a_helper <const gimple_statement_omp_critical> (const_gimple)):
3324 (is_a_helper <const gimple_statement_omp_for> (const_gimple)):
3326 (is_a_helper <const gimple_statement_omp_parallel> (const_gimple)):
3328 (is_a_helper <const gimple_statement_omp_sections> (const_gimple)):
3330 (is_a_helper <const gimple_statement_omp_single> (const_gimple)):
3332 (is_a_helper <const gimple_statement_omp_task> (const_gimple)):
3334 (is_a_helper <const gimple_statement_phi> (const_gimple)): Likewise.
3335 (is_a_helper <const gimple_statement_transaction> (const_gimple)):
3337 (gimple_seq_last): Update for conversion of gimple types to a true
3339 (gimple_seq_set_last): Likewise.
3340 (gimple_code): Likewise.
3341 (gimple_bb): Likewise.
3342 (gimple_block): Likewise.
3343 (gimple_set_block): Likewise.
3344 (gimple_location): Likewise.
3345 (gimple_location_ptr): Likewise.
3346 (gimple_set_location): Likewise.
3347 (gimple_no_warning_p): Likewise.
3348 (gimple_set_no_warning): Likewise.
3349 (gimple_set_visited): Likewise.
3350 (gimple_visited_p): Likewise.
3351 (gimple_set_plf): Likewise.
3352 (gimple_plf): Likewise.
3353 (gimple_set_uid): Likewise.
3354 (gimple_uid): Likewise.
3355 (gimple_init_singleton): Likewise.
3356 (gimple_modified_p): Likewise.
3357 (gimple_set_modified): Likewise.
3358 (gimple_expr_code): Likewise.
3359 (gimple_has_volatile_ops): Likewise.
3360 (gimple_set_has_volatile_ops): Likewise.
3361 (gimple_omp_subcode): Likewise.
3362 (gimple_omp_set_subcode): Likewise.
3363 (gimple_omp_return_set_nowait): Likewise.
3364 (gimple_omp_section_set_last): Likewise.
3365 (gimple_omp_parallel_set_combined_p): Likewise.
3366 (gimple_omp_atomic_set_need_value): Likewise.
3367 (gimple_omp_atomic_set_seq_cst): Likewise.
3368 (gimple_num_ops): Likewise.
3369 (gimple_set_num_ops): Likewise.
3370 (gimple_assign_nontemporal_move_p): Likewise.
3371 (gimple_assign_set_nontemporal_move): Likewise.
3372 (gimple_assign_rhs_code): Likewise.
3373 (gimple_assign_set_rhs_code): Likewise.
3374 (gimple_call_internal_p): Likewise.
3375 (gimple_call_with_bounds_p): Likewise.
3376 (gimple_call_set_with_bounds): Likewise.
3377 (gimple_call_set_tail): Likewise.
3378 (gimple_call_tail_p): Likewise.
3379 (gimple_call_set_return_slot_opt): Likewise.
3380 (gimple_call_return_slot_opt_p): Likewise.
3381 (gimple_call_set_from_thunk): Likewise.
3382 (gimple_call_from_thunk_p): Likewise.
3383 (gimple_call_set_va_arg_pack): Likewise.
3384 (gimple_call_va_arg_pack_p): Likewise.
3385 (gimple_call_set_nothrow): Likewise.
3386 (gimple_call_set_alloca_for_var): Likewise.
3387 (gimple_call_alloca_for_var_p): Likewise.
3388 (gimple_call_copy_flags): Likewise.
3389 (gimple_cond_code): Likewise.
3390 (gimple_cond_set_code): Likewise.
3391 (gimple_cond_make_false): Likewise.
3392 (gimple_cond_make_true): Likewise.
3393 (gimple_asm_volatile_p): Likewise.
3394 (gimple_asm_set_volatile): Likewise.
3395 (gimple_asm_set_input): Likewise.
3396 (gimple_asm_input_p): Likewise.
3397 (gimple_try_kind): Likewise.
3398 (gimple_try_set_kind): Likewise.
3399 (gimple_try_catch_is_cleanup): Likewise.
3400 (gimple_try_set_catch_is_cleanup): Likewise.
3401 (gimple_wce_cleanup_eh_only): Likewise.
3402 (gimple_wce_set_cleanup_eh_only): Likewise.
3403 (gimple_debug_bind_p): Likewise.
3404 (gimple_debug_source_bind_p): Likewise.
3405 (gimple_omp_for_set_kind): Likewise.
3406 (gimple_omp_for_set_combined_p): Likewise.
3407 (gimple_omp_for_set_combined_into_p): Likewise.
3408 (gimple_omp_target_set_kind): Likewise.
3409 (gimple_transaction_subcode): Likewise.
3410 (gimple_transaction_set_subcode): Likewise.
3411 (gimple_predict_predictor): Likewise.
3412 (gimple_predict_set_predictor): Likewise.
3413 (gimple_predict_outcome): Likewise.
3414 (gimple_predict_set_outcome): Likewise.
3415 (gimple_transaction_set_label): Likewise.
3416 (gimple_transaction_set_body): Likewise.
3417 (gimple_transaction_label_ptr): Likewise.
3418 (gimple_transaction_label): Likewise.
3419 (gimple_transaction_body_ptr): Likewise.
3420 (gimple_omp_continue_set_control_use): Likewise.
3421 (gimple_omp_continue_control_use_ptr): Likewise.
3422 (gimple_omp_continue_control_use): Likewise.
3423 (gimple_omp_continue_set_control_def): Likewise.
3424 (gimple_omp_continue_control_def_ptr): Likewise.
3425 (gimple_omp_continue_control_def): Likewise.
3426 (gimple_omp_atomic_load_rhs_ptr): Likewise.
3427 (gimple_omp_atomic_load_rhs): Likewise.
3428 (gimple_omp_atomic_load_set_rhs): Likewise.
3429 (gimple_omp_atomic_load_lhs_ptr): Likewise.
3430 (gimple_omp_atomic_load_lhs): Likewise.
3431 (gimple_omp_atomic_load_set_lhs): Likewise.
3432 (gimple_omp_atomic_store_val_ptr): Likewise.
3433 (gimple_omp_atomic_store_val): Likewise.
3434 (gimple_omp_atomic_store_set_val): Likewise.
3435 (gimple_omp_for_cond): Likewise.
3436 (gimple_omp_for_set_cond): Likewise.
3437 (gimple_omp_sections_set_control): Likewise.
3438 (gimple_omp_sections_control_ptr): Likewise.
3439 (gimple_omp_sections_control): Likewise.
3440 (gimple_omp_sections_set_clauses): Likewise.
3441 (gimple_omp_sections_clauses_ptr): Likewise.
3442 (gimple_omp_sections_clauses): Likewise.
3443 (gimple_omp_teams_set_clauses): Likewise.
3444 (gimple_omp_teams_clauses_ptr): Likewise.
3445 (gimple_omp_teams_clauses): Likewise.
3446 (gimple_omp_target_set_data_arg): Likewise.
3447 (gimple_omp_target_data_arg_ptr): Likewise.
3448 (gimple_omp_target_data_arg): Likewise.
3449 (gimple_omp_target_set_child_fn): Likewise.
3450 (gimple_omp_target_child_fn_ptr): Likewise.
3451 (gimple_omp_target_child_fn): Likewise.
3452 (gimple_omp_target_set_clauses): Likewise.
3453 (gimple_omp_target_clauses_ptr): Likewise.
3454 (gimple_omp_target_clauses): Likewise.
3455 (gimple_omp_single_set_clauses): Likewise.
3456 (gimple_omp_single_clauses_ptr): Likewise.
3457 (gimple_omp_single_clauses): Likewise.
3458 (gimple_omp_task_set_arg_align): Likewise.
3459 (gimple_omp_task_arg_align_ptr): Likewise.
3460 (gimple_omp_task_arg_align): Likewise.
3461 (gimple_omp_task_set_arg_size): Likewise.
3462 (gimple_omp_task_arg_size_ptr): Likewise.
3463 (gimple_omp_task_arg_size): Likewise.
3464 (gimple_omp_task_set_copy_fn): Likewise.
3465 (gimple_omp_task_copy_fn_ptr): Likewise.
3466 (gimple_omp_task_copy_fn): Likewise.
3467 (gimple_omp_task_set_data_arg): Likewise.
3468 (gimple_omp_task_data_arg_ptr): Likewise.
3469 (gimple_omp_task_data_arg): Likewise.
3470 (gimple_omp_task_set_child_fn): Likewise.
3471 (gimple_omp_task_child_fn_ptr): Likewise.
3472 (gimple_omp_task_child_fn): Likewise.
3473 (gimple_omp_task_set_clauses): Likewise.
3474 (gimple_omp_task_clauses_ptr): Likewise.
3475 (gimple_omp_task_clauses): Likewise.
3476 (gimple_omp_parallel_set_data_arg): Likewise.
3477 (gimple_omp_parallel_data_arg_ptr): Likewise.
3478 (gimple_omp_parallel_data_arg): Likewise.
3479 (gimple_omp_parallel_set_child_fn): Likewise.
3480 (gimple_omp_parallel_child_fn_ptr): Likewise.
3481 (gimple_omp_parallel_child_fn): Likewise.
3482 (gimple_omp_parallel_set_clauses): Likewise.
3483 (gimple_omp_parallel_clauses_ptr): Likewise.
3484 (gimple_omp_parallel_clauses): Likewise.
3485 (gimple_omp_for_set_pre_body): Likewise.
3486 (gimple_omp_for_pre_body_ptr): Likewise.
3487 (gimple_omp_for_set_incr): Likewise.
3488 (gimple_omp_for_incr_ptr): Likewise.
3489 (gimple_omp_for_incr): Likewise.
3490 (gimple_omp_for_set_final): Likewise.
3491 (gimple_omp_for_final_ptr): Likewise.
3492 (gimple_omp_for_final): Likewise.
3493 (gimple_omp_for_set_initial): Likewise.
3494 (gimple_omp_for_initial_ptr): Likewise.
3495 (gimple_omp_for_initial): Likewise.
3496 (gimple_omp_for_set_index): Likewise.
3497 (gimple_omp_for_index_ptr): Likewise.
3498 (gimple_omp_for_index): Likewise.
3499 (gimple_omp_for_collapse): Likewise.
3500 (gimple_omp_for_set_clauses): Likewise.
3501 (gimple_omp_for_clauses_ptr): Likewise.
3502 (gimple_omp_for_clauses): Likewise.
3503 (gimple_omp_critical_set_name): Likewise.
3504 (gimple_omp_critical_name_ptr): Likewise.
3505 (gimple_omp_critical_name): Likewise.
3506 (gimple_eh_dispatch_set_region): Likewise.
3507 (gimple_eh_dispatch_region): Likewise.
3508 (gimple_resx_set_region): Likewise.
3509 (gimple_resx_region): Likewise.
3510 (gimple_phi_set_arg): Likewise.
3511 (gimple_phi_arg): Likewise.
3512 (gimple_phi_set_result): Likewise.
3513 (gimple_phi_result_ptr): Likewise.
3514 (gimple_phi_result): Likewise.
3515 (gimple_phi_num_args): Likewise.
3516 (gimple_phi_capacity): Likewise.
3517 (gimple_wce_set_cleanup): Likewise.
3518 (gimple_wce_cleanup_ptr): Likewise.
3519 (gimple_try_set_cleanup): Likewise.
3520 (gimple_try_set_eval): Likewise.
3521 (gimple_try_cleanup_ptr): Likewise.
3522 (gimple_try_eval_ptr): Likewise.
3523 (gimple_eh_else_set_e_body): Likewise.
3524 (gimple_eh_else_set_n_body): Likewise.
3525 (gimple_eh_else_e_body_ptr): Likewise.
3526 (gimple_eh_else_n_body_ptr): Likewise.
3527 (gimple_eh_must_not_throw_set_fndecl): Likewise.
3528 (gimple_eh_must_not_throw_fndecl): Likewise.
3529 (gimple_eh_filter_set_failure): Likewise.
3530 (gimple_eh_filter_set_types): Likewise.
3531 (gimple_eh_filter_failure_ptr): Likewise.
3532 (gimple_eh_filter_types_ptr): Likewise.
3533 (gimple_eh_filter_types): Likewise.
3534 (gimple_catch_set_handler): Likewise.
3535 (gimple_catch_set_types): Likewise.
3536 (gimple_catch_handler_ptr): Likewise.
3537 (gimple_catch_types_ptr): Likewise.
3538 (gimple_catch_types): Likewise.
3539 (gimple_asm_string): Likewise.
3540 (gimple_asm_set_label_op): Likewise.
3541 (gimple_asm_label_op): Likewise.
3542 (gimple_asm_set_clobber_op): Likewise.
3543 (gimple_asm_clobber_op): Likewise.
3544 (gimple_asm_set_output_op): Likewise.
3545 (gimple_asm_output_op_ptr): Likewise.
3546 (gimple_asm_output_op): Likewise.
3547 (gimple_asm_set_input_op): Likewise.
3548 (gimple_asm_input_op_ptr): Likewise.
3549 (gimple_asm_input_op): Likewise.
3550 (gimple_asm_nlabels): Likewise.
3551 (gimple_asm_nclobbers): Likewise.
3552 (gimple_asm_noutputs): Likewise.
3553 (gimple_asm_ninputs): Likewise.
3554 (gimple_bind_set_block): Likewise.
3555 (gimple_bind_block): Likewise.
3556 (gimple_bind_add_seq): Likewise.
3557 (gimple_bind_add_stmt): Likewise.
3558 (gimple_bind_set_body): Likewise.
3559 (gimple_bind_body_ptr): Likewise.
3560 (gimple_bind_append_vars): Likewise.
3561 (gimple_bind_set_vars): Likewise.
3562 (gimple_bind_vars): Likewise.
3563 (gimple_call_clobber_set): Likewise.
3564 (gimple_call_use_set): Likewise.
3565 (gimple_call_set_internal_fn): Likewise.
3566 (gimple_call_set_fntype): Likewise.
3567 (gimple_call_fntype): Likewise.
3568 (gimple_omp_return_lhs_ptr): Likewise.
3569 (gimple_omp_return_lhs): Likewise.
3570 (gimple_omp_return_set_lhs): Likewise.
3571 (gimple_omp_taskreg_set_data_arg): Likewise.
3572 (gimple_omp_taskreg_data_arg_ptr): Likewise.
3573 (gimple_omp_taskreg_data_arg): Likewise.
3574 (gimple_omp_taskreg_set_child_fn): Likewise.
3575 (gimple_omp_taskreg_child_fn_ptr): Likewise.
3576 (gimple_omp_taskreg_child_fn): Likewise.
3577 (gimple_omp_taskreg_set_clauses): Likewise.
3578 (gimple_omp_taskreg_clauses_ptr): Likewise.
3579 (gimple_omp_taskreg_clauses): Likewise.
3580 (gimple_vuse): Likewise.
3581 (gimple_vdef): Likewise.
3582 (gimple_vuse_ptr): Likewise.
3583 (gimple_vdef_ptr): Likewise.
3584 * tree-inline.c (copy_debug_stmt): Likewise.
3585 * tree-phinodes.c (make_phi_node): Likewise.
3587 * gimple.h (is_a_helper <const gimple_statement_with_ops>::test): New.
3588 (is_a_helper <gimple_statement_with_ops>::test): New.
3589 (is_a_helper <const gimple_statement_with_memory_ops>::test): New.
3590 (is_a_helper <gimple_statement_with_memory_ops>::test): New.
3592 * gimple-streamer-in.c (input_gimple_stmt): Port from union
3593 access to use of as_a.
3594 * gimple.c (gimple_build_asm_1): Likewise.
3595 (gimple_build_try): Likewise. Also, return a specific subclass
3596 rather than just gimple.
3597 (gimple_build_resx): Port from union access to use of as_a.
3598 (gimple_build_eh_dispatch): Likewise.
3599 (gimple_build_omp_for): Likewise. Also, convert allocation of iter
3600 now that gengtype no longer provides a typed allocator function.
3601 (gimple_copy): Likewise.
3602 * gimple.h (gimple_build_try): Return a specific subclass rather
3604 * gimplify.c (gimplify_cleanup_point_expr): Replace union access
3605 with subclass access by making use of new return type of
3607 * tree-phinodes.c: (allocate_phi_node): Return a
3608 "gimple_statement_phi *" rather than just a gimple.
3609 (resize_phi_node): Likewise.
3610 (make_phi_node): Replace union access with subclass access by
3611 making use of new return type of allocate_phi_node.
3612 (reserve_phi_args_for_new_edge): Replace union access with as_a.
3613 (remove_phi_arg_num): Accept a "gimple_statement_phi *" rather
3615 (remove_phi_args): Update for change to remove_phi_arg_num.
3617 * gdbhooks.py (GimplePrinter.to_string): Update lookup of
3618 code field to reflect inheritance, rather than embedding of
3619 the base gimple type.
3621 2013-11-19 Richard Biener <rguenther@suse.de>
3623 * cfgloop.h (struct loop_iterator): C++-ify, add constructor
3624 and destructor and make fel_next a member function.
3625 (fel_next): Transform into ...
3626 (loop_iterator::next): ... this.
3627 (fel_init): Transform into ...
3628 (loop_iterator::loop_iterator): ... this.
3629 (loop_iterator::~loop_iterator): New.
3630 (FOR_EACH_LOOP): Remove loop-iterator argument.
3631 (FOR_EACH_LOOP_BREAK): Remove no longer necessary macro.
3632 * cfgloop.c, cfgloopmanip.c, config/mn10300/mn10300.c,
3633 graphite-clast-to-gimple.c, graphite-scop-detection.c,
3634 graphite-sese-to-poly.c, ipa-inline-analysis.c, ipa-pure-const.c,
3635 loop-init.c, loop-invariant.c, loop-unroll.c, loop-unswitch.c,
3636 modulo-sched.c, predict.c, sel-sched-ir.c, tree-cfg.c, tree-data-ref.c,
3637 tree-if-conv.c, tree-loop-distribution.c, tree-parloops.c,
3638 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-dce.c,
3639 tree-ssa-loop-ch.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
3640 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
3641 tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
3642 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vrp.c: Adjust
3643 uses of FOR_EACH_LOOP and remove loop_iterator variables. Replace
3644 FOR_EACH_LOOP_BREAK with break.
3646 2013-11-19 Richard Biener <rguenther@suse.de>
3648 PR tree-optimization/59164
3649 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
3651 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust check
3652 whether we can create an epilogue loop to reflect thecases where
3655 2013-11-19 Andrew MacLeod <amacleod@redhat.com>
3657 * graphite-sese-to-poly.c: Include expr.h.
3659 2013-11-19 Richard Biener <rguenther@suse.de>
3662 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid forwarding
3663 loads into stmts that may clobber it.
3665 2013-11-19 Bernd Schmidt <bernds@codesourcery.com>
3667 * cgraphunit.c (symtab_terminator): New variable.
3668 (queued_nodes): Renamed from first. Use symtab_terminator as
3670 (analyze_functions): Adjust accordingly.
3671 (cgraph_process_new_functions): Return void.
3672 * cgraph.h (cgraph_process_new_functions): Adjust declaration.
3674 2013-11-19 Marek Polacek <polacek@redhat.com>
3676 * opts.c (common_handle_option): Add -fsanitize=null option.
3677 Turn off -fdelete-null-pointer-checks option when doing the
3678 NULL pointer checking.
3679 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH): Add.
3680 * tree-pass.h (make_pass_ubsan): Declare.
3681 (make_pass_sanopt): Declare.
3682 * timevar.def (TV_TREE_UBSAN): New timevar.
3683 * passes.def: Add pass_sanopt and pass_ubsan.
3684 * ubsan.h (ubsan_null_ckind): New enum.
3685 (ubsan_mismatch_data): New struct.
3686 (ubsan_expand_null_ifn): Declare.
3687 (ubsan_create_data): Adjust declaration.
3688 (ubsan_type_descriptor): Likewise.
3689 * asan.c: Include "ubsan.h".
3690 (pass_data_sanopt): New pass.
3691 (execute_sanopt): New function.
3692 (gate_sanopt): Likewise.
3693 (make_pass_sanopt): Likewise.
3694 (class pass_sanopt): New class.
3695 * ubsan.c: Include tree-pass.h, gimple-ssa.h, gimple-walk.h,
3696 gimple-iterator.h and cfgloop.h.
3697 (PROB_VERY_UNLIKELY): Define.
3698 (tree_type_map_hash): New function.
3699 (ubsan_type_descriptor): Add new parameter.
3700 Improve type name generation.
3701 (ubsan_create_data): Add new parameter. Add pointer data into
3703 (ubsan_expand_null_ifn): New function.
3704 (instrument_member_call): Likewise.
3705 (instrument_mem_ref): Likewise.
3706 (instrument_null): Likewise.
3707 (ubsan_pass): Likewise.
3708 (gate_ubsan): Likewise.
3709 (make_pass_ubsan): Likewise.
3710 (ubsan_instrument_unreachable): Adjust ubsan_create_data call.
3711 (class pass_ubsan): New class.
3712 (pass_data_ubsan): New pass.
3713 * flag-types.h (enum sanitize_code): Add SANITIZE_NULL.
3714 * internal-fn.c (expand_UBSAN_NULL): New function.
3715 * cgraphunit.c (varpool_finalize_decl): Call varpool_assemble_decl
3716 even when !flag_toplevel_reorder.
3717 * internal-fn.def (UBSAN_NULL): New.
3719 2013-11-19 Jan Hubicka <jh@suse.cz>
3721 * cgraph.c (cgraph_create_indirect_edge): Use
3722 get_polymorphic_call_info.
3723 * cgraph.h (cgraph_indirect_call_info): Add outer_type,
3724 maybe_in_construction and maybe_derived_type.
3725 * ipa-utils.h (ipa_polymorphic_call_context): New structure.
3726 (ipa_dummy_polymorphic_call_context): New global var.
3727 (possible_polymorphic_call_targets): Add context paramter.
3728 (dump_possible_polymorphic_call_targets): Likewise; update wrappers.
3729 (possible_polymorphic_call_target_p): Likewise.
3730 (get_polymorphic_call_info): New function.
3731 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): New function.
3732 (add_type_duplicate): Remove forgotten debug output.
3733 (method_class_type): Add sanity check.
3734 (maybe_record_node): Add FINALP parameter.
3735 (record_binfo): Add OUTER_TYPE and OFFSET; walk the inner
3736 by info by get_binfo_at_offset.
3737 (possible_polymorphic_call_targets_1): Add OUTER_TYPE/OFFSET
3738 parameters; pass them to record-binfo.
3739 (polymorphic_call_target_d): Add context and FINAL.
3740 (polymorphic_call_target_hasher::hash): Hash context.
3741 (polymorphic_call_target_hasher::equal): Compare context.
3742 (free_polymorphic_call_targets_hash):
3743 (get_class_context): New function.
3744 (contains_type_p): New function.
3745 (get_polymorphic_call_info): New function.
3746 (walk_bases): New function.
3747 (possible_polymorphic_call_targets): Add context parameter; honnor it.
3748 (dump_possible_polymorphic_call_targets): Dump context.
3749 (possible_polymorphic_call_target_p): Add context.
3750 (update_type_inheritance_graph): Update comment.s
3751 (ipa_set_jf_known_type): Assert that compoentn type is known.
3752 (ipa_note_param_call): Do not tamper with offsets.
3753 (ipa_analyze_indirect_call_uses): When offset is being changed; clear
3755 (update_indirect_edges_after_inlining): Likewise.
3756 (ipa_write_indirect_edge_info): Stream new fields.
3757 (ipa_read_indirect_edge_info): Stream in new fields.
3759 2013-11-19 Jan Hubicka <jh@suse.cz>
3761 * tree-pretty-print.c (dump_generic_node): Print class type of
3764 2013-11-19 Joey Ye <joey.ye@arm.com>
3766 * config/arm/arm.opt (-marm-pic-data-is-text-relative): New option.
3767 * doc/invoke.texi (-marm-pic-data-is-text-relative): Documentation
3769 * config/arm/arm.c (arm_option_override): By default disable
3770 -marm-pic-data-is-text-relative.
3771 (legitimize_pic_address): Use arm_pic_data_is_text_relative.
3772 (arm_assemble_integer): Likewise.
3773 * config/arm/arm.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
3774 New macro to initialize -marm-pic-data-is-text-relative.
3776 2013-11-19 Bin Cheng <bin.cheng@arm.com>
3778 * tree-ssa-loop-ivopts.c (enum ainc_type): New.
3779 (address_cost_data): New field.
3780 (get_address_cost): Compute auto-increment rtx cost in ainc_costs.
3781 Use ainc_costs for auto-increment rtx patterns. Cleanup TWS.
3783 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
3785 * config/aarch64/aarch64.md: Remove v8type from all insns.
3787 2013-11-19 Richard Biener <rguenther@suse.de>
3789 PR tree-optimization/57517
3790 * tree-predcom.c (combinable_refs_p): Verify the combination
3791 is always executed when the refs are.
3793 2013-11-19 Jeff Law <law@redhat.com>
3795 * tree-ssa-threadupdate.c: Include ssa-iterators.h
3796 (copy_phi_arg_into_existing_phi): New function.
3797 (any_remaining_duplicated_blocks): Likewise.
3798 (ssa_fix_duplicate_block_edges): Handle multiple duplicated
3799 blocks on a jump threading path.
3801 * tree-ssa-threadupdate.c (thread_through_loop_header): Do not
3802 thread through a joiner which has the latch edge.
3804 2013-11-19 Jan Hubicka <jh@suse.cz>
3806 * md.texi (setmem): Document new parameter.
3807 * optabs.c (maybe_gen_insn): Support 9 operands.
3808 * builtins.c (determine_block_size): Add probable_max_size;
3809 support anti-ranges.
3810 (expand_builtin_memcpy. expand_builtin_memset_args): Pass around
3812 * expr.c (emit_block_move_via_movmem, emit_block_move_hints,
3813 emit_block_move, clear_storage_hints, set_storage_via_setmem):
3815 * expr.h (emit_block_move_hints, clear_storage_hints,
3816 set_storage_via_setmem): Update prototype.
3817 * i386.md (setmem, movmem patterns): Add 9th operand.
3818 * i386-protos.h (ix86_expand_set_or_movmem): Update prototype.
3819 * i386.c (ix86_expand_set_or_movmem): Take probable_max_size_exp
3820 argument; pass it to decide_alg.
3822 2013-11-19 David Malcolm <dmalcolm@redhat.com>
3824 * basic-block.h (n_basic_blocks_for_function): Rename macro to...
3825 (n_basic_blocks_for_fn): ...this.
3827 (n_basic_blocks): Eliminate macro as work towards making uses of
3830 * cfgloop.c (init_loops_structure): Update for renaming of
3831 "n_basic_blocks_for_function" to "n_basic_blocks_for_fn".
3832 * graph.c (draw_cfg_nodes_no_loops): Likewise.
3833 * ipa-utils.c (ipa_merge_profiles): Likewise.
3834 * lto-streamer-in.c (make_new_block): Likewise.
3835 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
3836 (dump_function_to_file): Likewise.
3838 * alias.c (init_alias_analysis): Replace usage of "n_basic_blocks"
3839 macro with "n_basic_blocks_for_fn (cfun)".
3840 * bb-reorder.c (partition_hot_cold_basic_blocks): Likewise.
3841 (duplicate_computed_gotos): Likewise.
3842 (reorder_basic_blocks): Likewise.
3843 * bt-load.c (augment_live_range): Likewise.
3844 * cfg.c (expunge_block): Likewise.
3845 (compact_blocks): Likewise.
3846 * cfganal.c (single_pred_before_succ_order): Likewise.
3847 (compute_idf): Likewise.
3848 (flow_dfs_compute_reverse_init): Likewise.
3849 (pre_and_rev_post_order_compute): Likewise.
3850 (pre_and_rev_post_order_compute_fn): Likewise.
3851 (inverted_post_order_compute): Likewise.
3852 (post_order_compute): Likewise.
3853 (print_edge_list): Likewise.
3854 (find_unreachable_blocks): Likewise.
3855 (mark_dfs_back_edges): Likewise.
3856 * cfgcleanup.c (try_optimize_cfg): Likewise.
3857 (try_forward_edges): Likewise.
3858 * cfghooks.c (dump_flow_info): Likewise.
3859 * cfgloop.c (verify_loop_structure): Likewise.
3860 (get_loop_body): Likewise.
3861 (flow_loops_find): Likewise.
3862 * cfgloopmanip.c (add_loop): Likewise.
3863 (remove_path): Likewise.
3864 (find_path): Likewise.
3865 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
3866 (rtl_verify_bb_layout): Likewise.
3867 (entry_of_function): Likewise.
3868 (rtl_create_basic_block): Likewise.
3869 * coverage.c (coverage_compute_cfg_checksum): Likewise.
3870 * cprop.c (one_cprop_pass): Likewise.
3871 (is_too_expensive): Likewise.
3872 * df-core.c (df_compute_cfg_image): Likewise.
3873 (df_compact_blocks): Likewise.
3874 (df_worklist_dataflow_doublequeue): Likewise.
3875 * dominance.c (calculate_dominance_info): Likewise.
3876 (calc_dfs_tree): Likewise.
3877 (calc_dfs_tree_nonrec): Likewise.
3878 (init_dom_info): Likewise.
3879 * domwalk.c (cmp_bb_postorder): Likewise.
3880 * function.c (thread_prologue_and_epilogue_insns): Likewise.
3881 (generate_setjmp_warnings): Likewise.
3882 * fwprop.c (build_single_def_use_links): Likewise.
3883 * gcse.c (is_too_expensive): Likewise.
3884 (one_code_hoisting_pass): Likewise.
3885 (one_pre_gcse_pass): Likewise.
3886 * graphite.c (graphite_initialize): Likewise.
3887 * haifa-sched.c (haifa_sched_init): Likewise.
3888 * ipa-inline-analysis.c (estimate_function_body_sizes): Likewise.
3889 * ira.c (split_live_ranges_for_shrink_wrap): Likewise.
3890 * ira-build.c (ira_build): Likewise.
3891 * lcm.c (compute_nearerout): Likewise.
3892 (compute_available): Likewise.
3893 (compute_laterin): Likewise.
3894 (compute_antinout_edge): Likewise.
3895 * lra-lives.c (lra_create_live_ranges): Likewise.
3896 * lra.c (has_nonexceptional_receiver): Likewise.
3897 * mcf.c (create_fixup_graph): Likewise.
3898 * profile.c (branch_prob): Likewise.
3899 * reg-stack.c (convert_regs_2): Likewise.
3900 * regrename.c (regrename_analyze): Likewise.
3901 * reload1.c (has_nonexceptional_receiver): Likewise.
3902 * reorg.c (dbr_schedule): Likewise.
3903 * sched-deps.c (sched_deps_init): Likewise.
3904 * sched-ebb.c (schedule_ebbs): Likewise.
3905 * sched-rgn.c (extend_regions): Likewise.
3906 (schedule_insns): Likewise.
3907 (sched_rgn_init): Likewise.
3908 (extend_rgns): Likewise.
3909 (haifa_find_rgns): Likewise.
3910 * sel-sched-ir.c (recompute_rev_top_order): Likewise.
3911 (sel_recompute_toporder): Likewise.
3912 * sel-sched.c (run_selective_scheduling): Likewise.
3913 * store-motion.c (one_store_motion_pass): Likewise.
3914 (remove_reachable_equiv_notes): Likewise.
3915 * tracer.c (tracer): Likewise.
3916 (tail_duplicate): Likewise.
3917 * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
3918 (dump_cfg_stats): Likewise.
3919 (gimple_dump_cfg): Likewise.
3920 (create_bb): Likewise.
3921 (build_gimple_cfg): Likewise.
3922 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
3923 * tree-inline.c (optimize_inline_calls): Likewise.
3924 (fold_marked_statements): Likewise.
3925 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Likewise.
3926 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
3927 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
3928 * tree-ssa-loop-manip.c (compute_live_loop_exits): Likewise.
3929 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
3930 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
3931 * tree-ssa-pre.c (do_pre): Likewise.
3932 (init_pre): Likewise.
3933 (compute_avail): Likewise.
3934 * tree-ssa-reassoc.c (init_reassoc): Likewise.
3935 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
3936 * tree-ssa-tail-merge.c (alloc_cluster_vectors): Likewise.
3937 (init_worklist): Likewise.
3938 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
3939 * var-tracking.c (variable_tracking_main_1): Likewise.
3940 (vt_find_locations): Likewise.
3941 (vt_stack_adjustments): Likewise.
3942 * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
3943 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
3945 2013-11-18 Jan Hubicka <jh@suse.cz>
3947 * profile.c (compute_branch_probabilities): Do not sanity check
3950 2013-11-18 Kenneth Zadeck <zadeck@naturalbridge.com>
3952 * tree.c (int_fits_type_p): Change GET_MODE_BITSIZE to
3954 * fold-const.c (fold_single_bit_test_into_sign_test)
3955 (fold_binary_loc): Change GET_MODE_BITSIZE to GET_MODE_PRECISION.
3957 2013-11-18 Teresa Johnson <tejohnson@google.com>
3959 * cfgrtl.c (cfg_layout_initialize): Assert if we try to go into
3960 cfglayout after bb reordering.
3961 * passes.def: Move compgotos before bb reordering since it goes into
3964 2013-11-18 Bernd Schmidt <bernds@codesourcery.com>
3966 * cgraphunit.c (ipa_passes): Don't execute all_lto_gen_passes.
3967 * lto-streamer-out.c (lto_output, produce_asm_for_decls): No longer
3969 (pass_data_ipa_lto_gimple_out, pass_ipa_lto_gimple_out,
3970 make_pass_ipa_lto_gimple_out, pass_data_ipa_lto_finish_out,
3971 pass_ipa_lto_finish_out, make_pass_ipa_lto_finish_out): Remove.
3972 * lto-streamer.h (lto_output, produce_asm_for_decls): Declare.
3973 * pass-manager.h (GCC_PASS_LISTS, class pass_manager):
3974 Remove all_lto_gen_passes.
3975 * passes.c (pass_manager::dump_passes): Remove its use.
3976 (pass_manager::register_pass): Likewise.
3977 (ipa_read_summaries, ipa_read_optimization_summaries): Likewise.
3978 (pass_manager::pass_manager): Don't initialize or use it.
3979 (write_lto): New static function.
3980 (ipa_write_summaries_1, ipa_write_optimization_summaries): Use it
3981 instead of using all_lto_gen_passes.
3982 * passes.def (all_lto_gen_passes, pass_ipa_lto_gimple_out,
3983 pass_ipa_lto_finish_out): Delete.
3984 * tree-pass.h (make_pass_ipa_lto_gimple_out,
3985 make_pass_ipa_lto_finish_out): Don't declare.
3987 2013-11-18 Jeff Law <law@redhat.com>
3989 * tree-ssa-threadupdate.c (redirection_data): Record two
3990 duplicated blocks instead of just one.
3991 (local_info): Explain why we don't create a template for the
3992 second duplicated block in a thread path.
3993 (create_block_for_threading): Accept argument indicating array
3994 index into redirection_data to store its result.
3995 (lookup_redirection_data): Initialize both duplicate blocks.
3996 (ssa_create_duplicates): If a jump threading path needs multiple
3997 blocks duplicated, then duplicate them.
3998 (ssa_fix_duplicate_block_edges): Corresponding changes.
3999 (ssa_fixup_template_block, thread_single_edge): Likewise.
4001 2013-11-18 Marek Polacek <polacek@redhat.com>
4003 * doc/invoke.texi: Extend -fsanitize=undefined documentation.
4005 2013-11-18 Andrew Pinski <apinski@cavium.com>
4006 Steve Ellcey <sellcey@mips.com>
4009 * config/mips/mips.md (*mov<GPR:mode>_on_<MOVECC:mode>): Remove
4010 type restriction from equality_operator on conditonal move.
4011 (*mov<SCALARF:mode>_on_<MOVECC:mode>): Ditto.
4012 (*mov<GPR:mode>_on_<GPR2:mode>_ne): New.
4014 2013-11-18 Jeff Law <law@redhat.com>
4016 * tree-ssa-threadupdate.c: Fix file block comment.
4017 Fix minor indention issue.
4019 2013-11-18 Uros Bizjak <ubizjak@gmail.com>
4021 * config/i386/i386.c (ix86_decompose_address): Use REG_P instead of
4022 ix86_address_subreg_operand. Move subreg checks to
4023 ix86_validate_address_register. Move address override check to
4024 ix86_legitimate_address_p.
4025 (ix86_validate_address_register): New function.
4026 (ix86_legitimate_address_p): Call ix86_validate_address_register
4027 to validate base and index registers. Add address override check
4028 from ix86_decompose_address.
4029 (ix86_decompose_address): Remove.
4031 2013-11-18 Richard Biener <rguenther@suse.de>
4033 PR tree-optimization/59125
4034 PR tree-optimization/54570
4035 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): When inlining
4036 is not complete do not treat component-references with offset zero
4037 but different fields as equal.
4038 * tree-object-size.c: Include tree-phinodes.h and ssa-iterators.h.
4039 (compute_object_sizes): Apply TLC. Propagate the constant
4040 results into all uses and fold their stmts.
4041 * passes.def (pass_all_optimizations): Move pass_object_sizes
4042 after the first pass_forwprop and before pass_fre.
4044 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4046 * tree.h (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
4047 * tree.c (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
4048 (tree_ctz): Remove cast to unsigned type.
4049 * builtins.c (fold_builtin_memory_op): Likewise.
4050 * dwarf2out.c (descr_info_loc): Likewise.
4051 * godump.c (go_output_typedef): Likewise.
4052 * omp-low.c (expand_omp_simd): Likewise.
4053 * stor-layout.c (excess_unit_span): Likewise.
4054 * tree-object-size.c (addr_object_size): Likewise.
4055 * tree-sra.c (analyze_all_variable_accesses): Likewise.
4056 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
4057 (simplify_rotate): Likewise.
4058 * tree-ssa-strlen.c (adjust_last_stmt, handle_builtin_memcpy)
4059 (handle_pointer_plus): Likewise.
4060 * tree-switch-conversion.c (check_range): Likewise.
4061 * tree-vect-patterns.c (vect_recog_rotate_pattern): Likewise.
4062 * tsan.c (instrument_builtin_call): Likewise.
4063 * cfgexpand.c (defer_stack_allocation): Add cast to HOST_WIDE_INT.
4064 * trans-mem.c (tm_log_add): Likewise.
4065 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Likewise.
4066 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
4067 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Likewise.
4068 * config/mips/mips.c (r10k_safe_mem_expr_p): Make offset unsigned.
4070 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4072 * tree.h (host_integerp, tree_low_cst): Delete.
4073 * tree.c (host_integerp, tree_low_cst): Delete.
4075 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4077 * expr.h: Update comments to refer to tree_to_[su]hwi rather
4079 * fold-const.c (fold_binary_loc): Likewise.
4080 * expr.c (store_constructor): Use tree_to_uhwi rather than
4082 * ipa-utils.h (possible_polymorphic_call_target_p): Likewise.
4083 * stmt.c (emit_case_dispatch_table): Likewise.
4084 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
4086 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4088 * alias.c, asan.c, builtins.c, cfgexpand.c, cgraph.c,
4089 config/aarch64/aarch64.c, config/alpha/predicates.md,
4090 config/arm/arm.c, config/darwin.c, config/epiphany/epiphany.c,
4091 config/i386/i386.c, config/iq2000/iq2000.c, config/m32c/m32c-pragma.c,
4092 config/mep/mep-pragma.c, config/mips/mips.c,
4093 config/picochip/picochip.c, config/rs6000/rs6000.c, cppbuiltin.c,
4094 dbxout.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, fold-const.c,
4095 function.c, gimple-fold.c, godump.c, ipa-cp.c, ipa-prop.c, omp-low.c,
4096 predict.c, sdbout.c, stor-layout.c, trans-mem.c, tree-object-size.c,
4097 tree-sra.c, tree-ssa-ccp.c, tree-ssa-forwprop.c,
4098 tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-niter.c,
4099 tree-ssa-loop-prefetch.c, tree-ssa-strlen.c, tree-stdarg.c,
4100 tree-switch-conversion.c, tree-vect-generic.c, tree-vect-loop.c,
4101 tree-vect-patterns.c, tree-vrp.c, tree.c, tsan.c, ubsan.c, varasm.c:
4102 Replace tree_low_cst (..., 1) with tree_to_uhwi throughout.
4104 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4106 * builtins.c, cilk-common.c, config/aarch64/aarch64.c,
4107 config/alpha/alpha.c, config/arm/arm.c, config/c6x/predicates.md,
4108 config/i386/i386.c, config/ia64/predicates.md, config/s390/s390.c,
4109 coverage.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c, expr.h,
4110 fold-const.c, gimple-fold.c, godump.c, ipa-prop.c, omp-low.c,
4111 predict.c, rtlanal.c, sdbout.c, stmt.c, stor-layout.c, targhooks.c,
4112 tree-cfg.c, tree-data-ref.c, tree-inline.c, tree-ssa-forwprop.c,
4113 tree-ssa-loop-prefetch.c, tree-ssa-phiopt.c, tree-ssa-sccvn.c,
4114 tree-ssa-strlen.c, tree-stdarg.c, tree-vect-data-refs.c,
4115 tree-vect-patterns.c, tree.c, tree.h, var-tracking.c, varasm.c:
4116 Replace tree_low_cst (..., 0) with tree_to_shwi throughout.
4118 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4120 * tree.h (tree_to_shwi, tree_to_uhwi): Declare, with inline expansions.
4121 * tree.c (tree_to_shwi, tree_to_uhwi): New functions.
4123 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4125 * expr.h: Update comments to refer to tree_fits_[su]hwi_p rather
4128 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4130 * builtins.c, config/alpha/alpha.c, config/iq2000/iq2000.c,
4131 config/mips/mips.c, dbxout.c, dwarf2out.c, expr.c, fold-const.c,
4132 gimple-fold.c, godump.c, omp-low.c, predict.c, sdbout.c, stor-layout.c,
4133 tree-dfa.c, tree-sra.c, tree-ssa-forwprop.c, tree-ssa-loop-prefetch.c,
4134 tree-ssa-phiopt.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
4135 tree-ssa-structalias.c, tree-vect-data-refs.c, tree-vect-patterns.c,
4136 tree.c, varasm.c, alias.c, cfgexpand.c, config/aarch64/aarch64.c,
4137 config/arm/arm.c, config/epiphany/epiphany.c, config/i386/i386.c,
4138 config/m32c/m32c-pragma.c, config/mep/mep-pragma.c,
4139 config/rs6000/rs6000.c, config/sparc/sparc.c, emit-rtl.c, function.c,
4140 gimplify.c, ipa-prop.c, stmt.c, trans-mem.c, tree-cfg.c,
4141 tree-object-size.c, tree-ssa-ccp.c, tree-ssa-loop-ivcanon.c,
4142 tree-stdarg.c, tree-switch-conversion.c, tree-vect-generic.c,
4143 tree-vrp.c, tsan.c, ubsan.c: Replace host_integerp (..., 1) with
4144 tree_fits_uhwi_p throughout.
4146 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4148 * builtins.c, config/alpha/alpha.c, config/c6x/predicates.md,
4149 config/ia64/predicates.md, config/iq2000/iq2000.c, config/mips/mips.c,
4150 config/s390/s390.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c,
4151 expr.h, fold-const.c, gimple-fold.c, gimple-ssa-strength-reduction.c,
4152 gimple.c, godump.c, graphite-scop-detection.c, graphite-sese-to-poly.c,
4153 omp-low.c, predict.c, rtlanal.c, sdbout.c, simplify-rtx.c,
4154 stor-layout.c, tree-data-ref.c, tree-dfa.c, tree-pretty-print.c,
4155 tree-sra.c, tree-ssa-alias.c, tree-ssa-forwprop.c,
4156 tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c,
4157 tree-ssa-phiopt.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
4158 tree-ssa-strlen.c, tree-ssa-structalias.c, tree-vect-data-refs.c,
4159 tree-vect-patterns.c, tree-vectorizer.h, tree.c, var-tracking.c,
4160 varasm.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
4163 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4165 * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Declare.
4166 * tree.c (tree_fits_shwi_p, tree_fits_uhwi_p): Define.
4168 2013-11-18 Kirill Yukhin <kirill.yukhin@intel.com>
4170 * config/ia64/ia64.c (ia64_split_tmode_move): Mark load with `dead'
4171 flag if it kills its address, not its post-increment.
4173 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
4175 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
4176 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
4177 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
4178 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
4179 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
4180 (gimple_call_with_bounds_p): New.
4181 (gimple_call_set_with_bounds): New.
4182 (gimple_call_num_nobnd_args): Remove.
4183 (gimple_call_nobnd_arg): Remove.
4184 * tree.h (CALL_WITH_BOUNDS_P): New.
4185 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
4187 2013-11-18 Trevor Saunders <tsaunders@mozilla.com>
4189 * cgraph.h (symtab_node_asm_name): Rename to symtab_node::asm_name.
4190 (symtab_node_name): Rename to symtab_node::name.
4191 (cgraph_node_asm_name): Remove.
4192 (varpool_node_asm_name): Remove.
4193 * cgraph.c cgraphclones.c cgraphunit.c ipa-cp.c ipa-devirt.c
4194 ipa-inline-analysis.c ipa-inline-transform.c ipa-inline.c
4195 ipa-profile.c ipa-prop.c ipa-pure-const.c ipa-ref.c ipa-reference.c
4196 ipa-utils.c ipa.c symtab.c tree-inline.c tree-sra.c
4197 tree-ssa-structalias.c value-prof.c varpool.c Adjust.
4199 2013-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4201 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): New table.
4202 * config/arm/arm.c (arm_cortex_a53_tune): New.
4203 * config/arm/arm-cores.def (cortex-a53): Use cortex_a53 tuning struct.
4205 2013-11-12 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
4207 * config.gcc (i[34567]86-*-linux* | ...): Add bdver4.
4208 (case ${target}): Add bdver4.
4209 * config/i386/bdver3.md: Add bdver4.
4210 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
4211 -march=native recognize bdver4 processors.
4212 * config/i386/i386-c.c (ix86_target_macros_internal): Add
4213 bdver4 def_and_undef
4214 * config/i386/i386.c (struct processor_costs bdver4_cost): New.
4215 (m_BDVER4): New definition.
4216 (m_AMD_MULTIPLE): Includes m_BDVER4.
4217 (processor_target_table): Add bdver4 entry.
4218 (static const char *const cpu_names): Add bdver4 entry.
4219 (software_prefetching_beneficial_p): Add bdver3.
4220 (ix86_option_override_internal): Add bdver4 instruction sets.
4221 (ix86_issue_rate): Add bdver4.
4222 (ix86_adjust_cost): Add bdver4.
4223 (ia32_multipass_dfa_lookahead): Add bdver4.
4224 (enum processor_model): Add M_AMDFAM15H_BDVER4.
4225 (struct _arch_names_table): Add M_AMDFAM15H_BDVER4.
4226 (has_dispatch): Add bdver4.
4227 * config/i386/i386.h (TARGET_BDVER4): New definition.
4228 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver4.
4229 (enum processor_type): Add PROCESSOR_BDVER4.
4230 * config/i386/i386.md (define_attr "cpu"): Add bdver4.
4231 * config/i386/i386.opt (flag_dispatch_scheduler): Add bdver4.
4232 * doc/extend.texi: Add details about bdver4.
4233 * doc/invoke.texi: Add details about bdver4. Add
4234 fma4 and fsgsbase for bdver3. Add fma4 for bdver2.
4236 2013-11-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4238 * config/rs6000/rs6000.c (rs6000_emit_move): Use low word of
4239 sdmode_stack_slot also in little-endian mode.
4241 2013-11-17 Jan Hubicka <jh@suse.cz>
4243 * doc/md.texi (setmem, movstr): Update documentation.
4244 * builtins.c (determine_block_size): New function.
4245 (expand_builtin_memcpy): Use it and pass it to emit_block_move_hints.
4246 (expand_builtin_memset_args): Use it and pass it to
4247 set_storage_via_setmem.
4248 * expr.c (emit_block_move_via_movmem): Add min_size/max_size
4249 parameters; update call to expander.
4250 (emit_block_move_hints): Add min_size/max_size parameters.
4251 (clear_storage_hints): Likewise.
4252 (set_storage_via_setmem): Likewise.
4253 (clear_storage): Update.
4254 * expr.h (emit_block_move_hints, clear_storage_hints,
4255 set_storage_via_setmem): Update prototypes.
4256 * i386.c (ix86_expand_set_or_movmem): Add bounds; export.
4257 (ix86_expand_movmem, ix86_expand_setmem): Remove.
4258 (ix86_expand_movmem, ix86_expand_setmem): Remove.
4259 * i386.md (movmem, setmem): Pass parameters.
4261 2013-11-17 Uros Bizjak <ubizjak@gmail.com>
4264 * config/i386/i386.c (ix86_address_subreg_operand): Do not
4265 reject non-integer subregs.
4266 (ix86_decompose_address): Do not reject invalid CONST_INT RTXes.
4267 Move check for invalid x32 constant addresses ...
4268 (ix86_legitimate_address_p): ... here.
4270 2011-11-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4272 * config/rs6000/rs6000.c (rs6000_frame_related): Add split_reg
4273 parameter and use it in REG_FRAME_RELATED_EXPR note.
4274 (emit_frame_save): Call rs6000_frame_related with extra NULL_RTX
4276 (rs6000_emit_prologue): Likewise, but for little endian VSX
4277 stores, pass the source register of the store instead.
4279 2013-11-17 Andrew MacLeod <amacleod@redhat.com>
4281 * gimple.h: Reorder prototypes to match .c declaration order, and
4282 remove protyotypes for functions not in gimple.c.
4283 (LABEL): Move to tree-into-ssa.c.
4284 * gimple.c: Remove unused prototypes.
4285 (get_base_address): Move to tree.c.
4286 * tree.c (get_base_address): Relocate from gimple.c.
4287 * builtins.h (validate_gimple_arglist): Add prototype.
4288 * trans-mem.h (compute_transaction_bits, is_tm_ending): Add prototype.
4289 * cfgexpand.h: New File.
4290 (gimple_assign_rhs_to_tree, estimated_stack_frame_size): Add protoype.
4291 * tree.h (build_addr): Move to tree-nested.h.
4292 * tree-nested.h: New File.
4293 (build_addr, lower_nested_functions, insert_field_into_struct): Add
4295 * tree-inline.h (estimated_stack_frame_size): Remove prototype.
4296 * ipa-inline-analysis.c: Include cfgexpand.h.
4297 * cgraphunit.c: Include tree-nested.h.
4298 * omp-low.c: Likewise.
4299 * tree-parloops.c: Likewise.
4300 * gimple-low.h: Likewise.
4301 * tree-profile.h: Likewise.
4302 * expr.c: Include cfgexpand.h.
4303 * tree-affine.c: Likewise.
4304 * tree-ssa.c: Likewise.
4305 * tree-ssa-loop-im.c: Include trans-mem.h.
4306 * tree-ssa-tail-merge.c: Likewise.
4307 * value-prof.c: Include builtins.h and tree-nested.h.
4308 * tree-into-ssa.c (LABEL): Define here.
4310 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
4312 * config/arc/arc.c (arc_predicate_delay_insns): New function.
4313 (pass_data_arc_predicate_delay_insns): New pass_data instance.
4314 (pass_arc_predicate_delay_insns): New subclass of rtl_opt_class.
4315 (make_pass_arc_predicate_delay_insns): New function.
4316 (arc_init): Register pass_arc_predicate_delay_insns if
4317 flag_delayed_branch is active.
4319 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
4321 * config/arc/constraints.md (Rcq): Simplify register number test.
4323 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
4325 * gimple.h (enum gf_mask): Change the ordering of GF_OMP_* bits.
4327 2013-11-15 Kaz Kojima <kkojima@gcc.gnu.org>
4329 * config/sh/sh.c (barrier_align): Return 0 when barrier_or_label
4332 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
4334 * Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
4335 * gimple-pretty-print.c (dump_omp_for): Add case for
4336 GF_OMP_FOR_KIND_CILKSIMD.
4337 * gimple.h (enum gf_mask): Restructure entries to add
4338 GF_OMP_FOR_KIND_CILKSIMD.
4339 * gimplify.c (is_gimple_stmt): Add case for CILK_SIMD.
4340 (gimplify_omp_for): Handle CILK_SIMD.
4341 (gimplify_expr): Add ccase for CILK_SIMD.
4342 * omp-low.c (extract_omp_for_data): Handle CILK_SIMD.
4343 (build_outer_var_ref): Same.
4344 (check_omp_nesting_restrictions): Same.
4345 (lower_rec_input_clauses): Same.
4346 (lower_lastprivate_clauses): Same.
4347 (expand_omp_for): Same.
4348 (execute_expand_omp): Check flag_enable_cilkplus.
4349 (execute_lower_omp): Same.
4350 (diagnose_sb_0): Handle CILK_SIMD.
4351 (diagnose_omp_structured_block_errors): Check flag_enable_cilkplus.
4352 (setjmp_or_longjmp_p): New.
4353 (scan_omp_1_stmt): Error on setjmp/longjmp in a simd construct.
4354 * tree-pretty-print.c (dump_generic_node): Add case for CILK_SIMD.
4355 * tree.def: Add tree code for CILK_SIMD.
4357 2013-11-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4359 * config/rs6000/altivec.md (UNSPEC_VPERM_X, UNSPEC_VPERM_UNS_X):
4361 (altivec_vperm_<mode>): Revert earlier little endian change.
4362 (*altivec_vperm_<mode>_internal): Remove.
4363 (altivec_vperm_<mode>_uns): Revert earlier little endian change.
4364 (*altivec_vperm_<mode>_uns_internal): Remove.
4365 * config/rs6000/vector.md (vec_realign_load_<mode>): Revise commentary.
4367 2013-11-15 Jeff Law <law@redhat.com>
4369 * basic-block.h (has_abnormal_or_eh_outgoing_edge): Renamed from
4370 has_abnormal_or_outgoing_edge. Check for EH edges as well.
4371 * gimple-ssa-isolate-paths.c
4372 (find_implicit_erroneous_behaviour): Corresponding changes.
4373 Do not check stmt_ends_bb_p or GIMPLE_RETURN anymore.
4374 (find_explicit_erroneous_behaviour): Likewise.
4376 2013-11-15 Jeff Law <law@redhat.com>
4378 * ifcvt.c (find_cond_trap): Properly handle case where
4381 2013-11-15 Andreas Schwab <schwab@linux-m68k.org>
4383 * configure: Regenerate.
4385 2013-11-15 James Greenhalgh <james.greenhalgh@arm.com>
4387 * config/aarch64/aarch64-simd.md: Remove simd_type from all patterns.
4388 * config/aarch64/aarch64.md: Likewise, correct "type" attribute
4389 where it is incorrect or missing.
4391 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
4393 * dwarf2out.c (gen_enumeration_type_die): Remove unnecessary
4395 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
4396 Use TREE_INT_CST_LOW rather than tree_low_cst when reading the
4398 * fold-const.c (fold_binary_loc): Replace a host_integerp/tree_low_cst
4399 pair with a TREE_CODE test and TREE_INT_CST_LOW.
4400 * tree-vect-generic.c (expand_vector_divmod): Likewise.
4402 2013-11-15 Richard Biener <rguenther@suse.de>
4404 PR tree-optimization/50262
4405 * tree-ssa-alias.h (struct pt_solution): Split
4406 vars_contains_global into vars_contains_nonlocal,
4407 vars_contains_escaped and vars_contains_escaped_heap.
4408 * tree-ssa-structalias.c (label_visit): Expand comment.
4409 (handle_lhs_call): Adjust comment.
4410 (set_uids_in_ptset): Set the new flags appropriately.
4411 (pt_solution_set): Adjust.
4412 (pt_solution_set_var): Likewise.
4413 (pt_solution_ior_into): Likewise.
4414 (pt_solution_includes_global): Likewise.
4415 (pt_solutions_intersect_1): Optimize escaped handling.
4416 (compute_points_to_sets): Remove heap variable globalization.
4417 (ipa_escaped_pt): Adjust initializer.
4418 (pass_data_ipa_pta): Do not run TODO_update_ssa.
4419 * gimple-pretty-print.c (pp_points_to_solution): Print split flags.
4420 * tree-ssa-alias.c (dump_points_to_solution): Likewise.
4422 2013-11-15 Richard Biener <rguenther@suse.de>
4424 * tree-loop-distribution.c (tree_loop_distribution): Make sure
4425 to distribute all stores.
4427 2013-11-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4429 * doc/invoke.texi (-mabi=elfv1, -mabi=elfv2): Document.
4431 2013-11-15 Joseph Myers <joseph@codesourcery.com>
4433 * acinclude.m4 (GCC_GLIBC_VERSION_GTE_IFELSE): New configure macro.
4434 * configure.ac: Determine target_header_dir earlier.
4435 (--with-glibc-version): New configure option.
4436 Use GCC_GLIBC_VERSION_GTE_IFELSE in enable_gnu_unique_object,
4437 gcc_cv_libc_provides_ssp and gcc_cv_target_ldbl128 tests.
4438 * configure: Regenerate.
4439 * doc/install.texi (--enable-gnu-unique-object): Don't refer to
4440 native toolchains for default.
4441 (--with-glibc-version): Document.
4443 2013-11-15 Eric Botcazou <ebotcazou@adacore.com>
4445 * fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.
4447 2013-11-15 Uros Bizjak <ubizjak@gmail.com>
4449 * lto-streamer-in.c (input function): Call cgraph_create_node if
4450 cgraph_get_node failed.
4452 2013-11-14 Olivier Hainque <hainque@adacore.com>
4454 * cfgexpand.c (defer_stack_allocation): When optimization is enabled,
4455 defer allocation of DECL_IGNORED_P variables at toplevel unless really
4456 small. Factorize size threshold computation from the existing one.
4457 (expand_used_vars): Refine comment.
4459 2013-11-14 Cong Hou <congh@google.com>
4461 * tree-vectorizer.h (struct dr_with_seg_len): Remove the base
4462 address field as it can be obtained from dr. Rename the struct.
4463 * tree-vect-data-refs.c (comp_dr_with_seg_len_pair): Consider
4464 steps of data references during sort.
4465 (vect_prune_runtime_alias_test_list): Adjust with the change to
4466 struct dr_with_seg_len.
4467 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
4468 Adjust with the change to struct dr_with_seg_len.
4470 2013-11-14 Jeff Law <law@redhat.com>
4473 * basic-block.h (has_abnormal_outgoing_edge_p): Moved here from...
4474 * tree-inline.c (has_abnormal_outgoing_edge_p): Remove.
4475 * gimple-ssa-isolate-paths.c: Include tree-cfg.h.
4476 (find_implicit_erroneous_behaviour): If a block has abnormal outgoing
4477 edges, then ignore it. If the statement exhibiting erroneous
4478 behaviour ends basic blocks, with the exception of GIMPLE_RETURNs,
4479 then we can not optimize.
4480 (find_explicit_erroneous_behaviour): Likewise.
4482 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
4484 * gimplify-me.h: New file. Add prototypes.
4485 * gimplify.h: Don't include gimple.h.
4486 (struct gimplify_hasher, struct gimplify_ctx, is_gimple_sizepos):
4487 Relocate from gimple.h.
4488 * gimple.h (struct gimplify_hasher, struct gimplify_ctx,
4489 is_gimple_sizepos): Move to gimplify.h.
4490 (gimplify_hasher::hash, gimplify_hasher::equal): Move to gimplify.c.
4491 (enum gsi_iterator_update): Move to gimple-iterator.h.
4492 * gimple-iterator.h (enum gsi_iterator_update): Relocate from gimple.h.
4493 * gimplify-me.c: New File.
4494 (force_gimple_operand_1, force_gimple_operand,
4495 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
4496 gimple_regimplify_operands): Relocate from gimplify.c.
4497 * gimplify.c (force_gimple_operand_1, force_gimple_operand,
4498 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
4499 gimple_regimplify_operands): Move to gimplify-me.c.
4500 (gimplify_hasher::hash, gimplify_hasher::equal): Relocate
4502 * Makefile.in (OBJS): Add gimplify-me.o
4503 * asan.c: Include only gimplify.h, gimplify-me.h, and/or gimple.h as
4505 * cfgloopmanip.c: Likewise.
4506 * cgraphunit.c: Likewise.
4507 * cilk-common.c: Likewise.
4508 * fold-const.c: Likewise.
4509 * function.c: Likewise.
4510 * gimple-expr.c: Likewise.
4511 * gimple-fold.c: Likewise.
4512 * gimple-ssa-strength-reduction.c: Likewise.
4513 * gimple.c: Likewise.
4514 * graphite-clast-to-gimple.c: Likewise.
4515 * graphite-sese-to-poly.c: Likewise.
4516 * ipa-prop.c: Likewise.
4517 * ipa-split.c: Likewise.
4519 * langhooks.c: Likewise.
4520 * omp-low.c: Likewise.
4522 * stor-layout.c: Likewise.
4523 * targhooks.c: Likewise.
4524 * trans-mem.c: Likewise.
4525 * tree-affine.c: Likewise.
4526 * tree-cfg.c: Likewise.
4527 * tree-cfgcleanup.c: Likewise.
4528 * tree-complex.c: Likewise.
4529 * tree-if-conv.c: Likewise.
4530 * tree-inline.c: Likewise.
4531 * tree-loop-distribution.c: Likewise.
4532 * tree-nested.c: Likewise.
4533 * tree-parloops.c: Likewise.
4534 * tree-predcom.c: Likewise.
4535 * tree-profile.c: Likewise.
4536 * tree-scalar-evolution.c: Likewise.
4537 * tree-sra.c: Likewise.
4538 * tree-ssa-address.c: Likewise.
4539 * tree-ssa-ccp.c: Likewise.
4540 * tree-ssa-dce.c: Likewise.
4541 * tree-ssa-forwprop.c: Likewise.
4542 * tree-ssa-ifcombine.c: Likewise.
4543 * tree-ssa-loop-im.c: Likewise.
4544 * tree-ssa-loop-ivopts.c: Likewise.
4545 * tree-ssa-loop-manip.c: Likewise.
4546 * tree-ssa-loop-niter.c: Likewise.
4547 * tree-ssa-loop-prefetch.c: Likewise.
4548 * tree-ssa-loop-unswitch.c: Likewise.
4549 * tree-ssa-math-opts.c: Likewise.
4550 * tree-ssa-phiopt.c: Likewise.
4551 * tree-ssa-phiprop.c: Likewise.
4552 * tree-ssa-pre.c: Likewise.
4553 * tree-ssa-propagate.c: Likewise.
4554 * tree-ssa-reassoc.c: Likewise.
4555 * tree-ssa-sccvn.c: Likewise.
4556 * tree-ssa-strlen.c: Likewise.
4557 * tree-ssa.c: Likewise.
4558 * tree-switch-conversion.c: Likewise.
4559 * tree-tailcall.c: Likewise.
4560 * tree-vect-data-refs.c: Likewise.
4561 * tree-vect-generic.c: Likewise.
4562 * tree-vect-loop-manip.c: Likewise.
4563 * tree-vect-loop.c: Likewise.
4564 * tree-vect-patterns.c: Likewise.
4565 * tree-vect-stmts.c: Likewise.
4568 * value-prof.c: Likewise.
4569 * config/aarch64/aarch64.c: Likewise.
4570 * config/alpha/alpha.c: Likewise.
4571 * config/darwin.c: Likewise.
4572 * config/i386/i386.c: Likewise.
4573 * config/ia64/ia64.c: Likewise.
4574 * config/mep/mep.c: Likewise.
4575 * config/mips/mips.c: Likewise.
4576 * config/rs6000/rs6000.c: Likewise.
4577 * config/s390/s390.c: Likewise.
4578 * config/sh/sh.c: Likewise.
4579 * config/sparc/sparc.c: Likewise.
4580 * config/spu/spu.c: Likewise.
4581 * config/stormy16/stormy16.c: Likewise.
4582 * config/tilegx/tilegx.c: Likewise.
4583 * config/tilepro/tilepro.c: Likewise.
4584 * config/xtensa/xtensa.c: Likewise.
4586 2013-11-14 Diego Novillo <dnovillo@google.com>
4588 * Makefile.in (PLUGIN_HEADERS): Add stringpool.h.
4590 2013-11-14 Diego Novillo <dnovillo@google.com>
4592 * tree.h: Include fold-const.h.
4593 (aggregate_value_p): Moved to function.h.
4594 (alloca_call_p): Moved to calls.h.
4595 (allocate_struct_function): Moved to function.h.
4596 (apply_tm_attr): Moved to attribs.h.
4597 (array_at_struct_end_p): Moved to expr.h.
4598 (array_ref_element_size): Moved to tree-dfa.h.
4599 (array_ref_low_bound): Moved to tree-dfa.h.
4600 (array_ref_up_bound): Moved to tree.h.
4601 (assemble_alias): Moved to cgraph.h.
4602 (bit_from_pos): Moved to stor-layout.h.
4603 (build_addr): Moved to tree-nested.h.
4604 (build_duplicate_type): Moved to tree-inline.h.
4605 (build_fold_addr_expr): Moved to fold-const.h.
4606 (build_fold_addr_expr_with_type): Moved to fold-const.h.
4607 (build_fold_addr_expr_with_type_loc): Moved to fold-const.h.
4608 (build_fold_indirect_ref): Moved to fold-const.h.
4609 (build_fold_indirect_ref_loc): Moved to fold-const.h.
4610 (build_personality_function): Moved to tree.h.
4611 (build_range_check): Moved to fold-const.h.
4612 (build_simple_mem_ref): Moved to fold-const.h.
4613 (build_simple_mem_ref_loc): Moved to fold-const.h.
4614 (build_tm_abort_call): Moved to trans-mem.h.
4615 (byte_from_pos): Moved to stor-layout.h.
4616 (call_expr_flags): Moved to calls.h.
4617 (can_move_by_pieces): Moved to expr.h.
4618 (categorize_ctor_elements): Moved to expr.h.
4619 (change_decl_assembler_name): Moved to gcc-symtab.h.
4620 (combine_comparisons): Moved to fold-const.h.
4621 (complete_ctor_at_level_p): Moved to tree.h.
4622 (component_ref_field_offset): Moved to tree-dfa.h.
4623 (compute_builtin_object_size): Moved to tree-object-size.h.
4624 (compute_record_mode): Moved to stor-layout.h.
4625 (constant_boolean_node): Moved to fold-const.h.
4626 (constructor_static_from_elts_p): Moved to varasm.h.
4627 (cxx11_attribute_p): Moved to attribs.h.
4628 (debug_body): Moved to print-tree.h.
4629 (debug_find_tree): Moved to tree-inline.h.
4630 (debug_fold_checksum): Moved to fold-const.h.
4631 (debug_head): Moved to print-tree.h.
4632 (debug_head): Moved to print-tree.h.
4633 (debug_raw): Moved to print-tree.h.
4634 (debug_tree): Moved to print-tree.h.
4635 (debug_vec_tree): Moved to print-tree.h.
4636 (debug_verbose): Moved to print-tree.h.
4637 (debug_verbose): Moved to print-tree.h.
4638 (decl_attributes): Moved to attribs.h.
4639 (decl_binds_to_current_def_p): Moved to varasm.h.
4640 (decl_default_tls_model): Moved to varasm.h.
4641 (decl_replaceable_p): Moved to varasm.h.
4642 (div_if_zero_remainder): Moved to fold-const.h.
4643 (double_int mem_ref_offset): Moved to fold-const.h.
4644 (dump_addr): Moved to print-tree.h.
4645 (element_precision): Moved to machmode.h.
4646 (expand_dummy_function_end): Moved to function.h.
4647 (expand_function_end): Moved to function.h.
4648 (expand_function_start): Moved to function.h.
4649 (expand_label): Moved to stmt.h.
4650 (expr_first): Moved to tree-iterator.h.
4651 (expr_last): Moved to tree-iterator.h.
4652 (finalize_size_functions): Moved to stor-layout.h.
4653 (finish_builtin_struct): Moved to stor-layout.h.
4654 (finish_record_layout): Moved to stor-layout.h.
4655 (fixup_signed_type): Moved to stor-layout.h.
4656 (fixup_unsigned_type): Moved to stor-layout.h.
4657 (flags_from_decl_or_type): Moved to calls.h.
4658 (fold): Moved to fold-const.h.
4659 (fold_abs_const): Moved to fold-const.h.
4660 (fold_binary): Moved to fold-const.h.
4661 (fold_binary_loc): Moved to fold-const.h.
4662 (fold_binary_to_constant): Moved to fold-const.h.
4663 (fold_build1): Moved to fold-const.h.
4664 (fold_build1_initializer_loc): Moved to fold-const.h.
4665 (fold_build1_loc): Moved to fold-const.h.
4666 (fold_build1_stat_loc): Moved to fold-const.h.
4667 (fold_build2): Moved to fold-const.h.
4668 (fold_build2_initializer_loc): Moved to fold-const.h.
4669 (fold_build2_loc): Moved to fold-const.h.
4670 (fold_build2_stat_loc): Moved to fold-const.h.
4671 (fold_build3): Moved to fold-const.h.
4672 (fold_build3_loc): Moved to fold-const.h.
4673 (fold_build3_stat_loc): Moved to fold-const.h.
4674 (fold_build_call_array): Moved to fold-const.h.
4675 (fold_build_call_array_initializer): Moved to fold-const.h.
4676 (fold_build_call_array_initializer_loc): Moved to fold-const.h.
4677 (fold_build_call_array_loc): Moved to fold-const.h.
4678 (fold_build_cleanup_point_expr): Moved to fold-const.h.
4679 (fold_convert): Moved to fold-const.h.
4680 (fold_convert_loc): Moved to fold-const.h.
4681 (fold_convertible_p): Moved to fold-const.h.
4682 (fold_defer_overflow_warnings): Moved to fold-const.h.
4683 (fold_deferring_overflow_warnings_p): Moved to fold-const.h.
4684 (fold_fma): Moved to fold-const.h.
4685 (fold_ignored_result): Moved to fold-const.h.
4686 (fold_indirect_ref): Moved to fold-const.h.
4687 (fold_indirect_ref_1): Moved to fold-const.h.
4688 (fold_indirect_ref_loc): Moved to fold-const.h.
4689 (fold_read_from_constant_string): Moved to fold-const.h.
4690 (fold_real_zero_addition_p): Moved to fold-const.h.
4691 (fold_single_bit_test): Moved to fold-const.h.
4692 (fold_strip_sign_ops): Moved to fold-const.h.
4693 (fold_ternary): Moved to fold-const.h.
4694 (fold_ternary_loc): Moved to fold-const.h.
4695 (fold_unary): Moved to tree-data-ref.h.
4696 (fold_unary_ignore_overflow): Moved to fold-const.h.
4697 (fold_unary_ignore_overflow_loc): Moved to fold-const.h.
4698 (fold_unary_loc): Moved to fold-const.h.
4699 (fold_unary_to_constant): Moved to fold-const.h.
4700 (fold_undefer_and_ignore_overflow_warnings): Moved to fold-const.h.
4701 (fold_undefer_overflow_warnings): Moved to fold-const.h.
4702 (folding_initializer): Moved to fold-const.h.
4703 (free_temp_slots): Moved to function.h.
4704 (generate_setjmp_warnings): Moved to function.h.
4705 (get_attribute_name): Moved to attribs.h.
4706 (get_identifier): Moved to stringpool.h.
4707 (get_identifier_with_length): Moved to stringpool.h.
4708 (get_inner_reference): Moved to tree.h.
4709 (gimple_alloca_call_p): Moved to calls.h.
4710 (gimplify_parameters): Moved to function.h.
4711 (highest_pow2_factor): Moved to expr.h.
4712 (indent_to): Moved to print-tree.h.
4713 (init_attributes): Moved to attribs.h.
4714 (init_dummy_function_start): Moved to function.h.
4715 (init_function_start): Moved to function.h.
4716 (init_inline_once): Moved to tree-inline.h.
4717 (init_object_sizes): Moved to tree-object-size.h.
4718 (init_temp_slots): Moved to function.h.
4719 (init_tree_optimization_optabs): Moved to optabs.h.
4720 (initialize_sizetypes): Moved to stor-layout.h.
4721 (initializer_constant_valid_for_bitfield_p): Moved to varasm.h.
4722 (initializer_constant_valid_p): Moved to varasm.h.
4723 (int_const_binop): Moved to fold-const.h.
4724 (internal_reference_types): Moved to stor-layout.h.
4725 (invert_tree_comparison): Moved to fold-const.h.
4726 (invert_truthvalue): Moved to fold-const.h.
4727 (invert_truthvalue_loc): Moved to fold-const.h.
4728 (is_tm_ending_fndecl): Moved to trans-mem.h.
4729 (is_tm_may_cancel_outer): Moved to trans-mem.h.
4730 (is_tm_pure): Moved to trans-mem.h.
4731 (is_tm_safe): Moved to trans-mem.h.
4732 (layout_decl): Moved to stor-layout.h.
4733 (layout_type): Moved to stor-layout.h.
4734 (lookup_attribute_spec): Moved to attribs.h.
4735 (make_accum_type): Moved to stor-layout.h.
4736 (make_decl_one_only): Moved to varasm.h.
4737 (make_decl_rtl): Moved to tree.h.
4738 (make_decl_rtl_for_debug): Moved to varasm.h.
4739 (make_fract_type): Moved to stor-layout.h.
4740 (make_or_reuse_sat_signed_accum_type): Moved to stor-layout.h.
4741 (make_or_reuse_sat_signed_fract_type): Moved to stor-layout.h.
4742 (make_or_reuse_sat_unsigned_accum_type): Moved to stor-layout.h.
4743 (make_or_reuse_sat_unsigned_fract_type): Moved to stor-layout.h.
4744 (make_or_reuse_signed_accum_type): Moved to stor-layout.h.
4745 (make_or_reuse_signed_fract_type): Moved to stor-layout.h.
4746 (make_or_reuse_unsigned_accum_type): Moved to stor-layout.h.
4747 (make_or_reuse_unsigned_fract_type): Moved to stor-layout.h.
4748 (make_range): Moved to fold-const.h.
4749 (make_range_step): Moved to fold-const.h.
4750 (make_sat_signed_accum_type): Moved to stor-layout.h.
4751 (make_sat_signed_fract_type): Moved to stor-layout.h.
4752 (make_sat_unsigned_accum_type): Moved to stor-layout.h.
4753 (make_sat_unsigned_fract_type): Moved to stor-layout.h.
4754 (make_signed_accum_type): Moved to stor-layout.h.
4755 (make_signed_fract_type): Moved to stor-layout.h.
4756 (make_signed_type): Moved to stor-layout.h.
4757 (make_unsigned_accum_type): Moved to stor-layout.h.
4758 (make_unsigned_fract_type): Moved to stor-layout.h.
4759 (make_unsigned_type): Moved to stor-layout.h.
4760 (mark_decl_referenced): Moved to varasm.h.
4761 (mark_referenced): Moved to varasm.h.
4762 (may_negate_without_overflow_p): Moved to fold-const.h.
4763 (maybe_get_identifier): Moved to stringpool.h.
4764 (merge_ranges): Moved to fold-const.h.
4765 (merge_weak): Moved to varasm.h.
4766 (mode_for_size_tree): Moved to stor-layout.h.
4767 (multiple_of_p): Moved to fold-const.h.
4768 (must_pass_in_stack_var_size): Moved to calls.h.
4769 (must_pass_in_stack_var_size_or_pad): Moved to calls.h.
4770 (native_encode_expr): Moved to fold-const.h.
4771 (native_interpret_expr): Moved to fold-const.h.
4772 (non_lvalue): Moved to fold-const.h.
4773 (non_lvalue_loc): Moved to fold-const.h.
4774 (normalize_offset): Moved to stor-layout.h.
4775 (normalize_rli): Moved to stor-layout.h.
4776 (notice_global_symbol): Moved to varasm.h.
4777 (omit_one_operand): Moved to fold-const.h.
4778 (omit_one_operand_loc): Moved to fold-const.h.
4779 (omit_two_operands): Moved to fold-const.h.
4780 (omit_two_operands_loc): Moved to fold-const.h.
4781 (operand_equal_p): Moved to tree-data-ref.h.
4782 (parse_input_constraint): Moved to stmt.h.
4783 (parse_output_constraint): Moved to stmt.h.
4784 (place_field): Moved to stor-layout.h.
4785 (pop_function_context): Moved to function.h.
4786 (pop_temp_slots): Moved to function.h.
4787 (pos_from_bit): Moved to stor-layout.h.
4788 (preserve_temp_slots): Moved to function.h.
4789 (print_node): Moved to print-tree.h.
4790 (print_node_brief): Moved to print-tree.h.
4791 (print_rtl): Moved to rtl.h.
4792 (process_pending_assemble_externals): Moved to varasm.h.
4793 (ptr_difference_const): Moved to fold-const.h.
4794 (push_function_context): Moved to function.h.
4795 (push_struct_function): Moved to function.h.
4796 (push_temp_slots): Moved to function.h.
4797 (record_tm_replacement): Moved to trans-mem.h.
4798 (relayout_decl): Moved to stor-layout.h.
4799 (resolve_asm_operand_names): Moved to stmt.h.
4800 (resolve_unique_section): Moved to varasm.h.
4801 (rli_size_so_far): Moved to stor-layout.h.
4802 (rli_size_unit_so_far): Moved to stor-layout.h.
4803 (round_down): Moved to fold-const.h.
4804 (round_down_loc): Moved to fold-const.h.
4805 (round_up): Moved to fold-const.h.
4806 (round_up_loc): Moved to fold-const.h.
4807 (set_decl_incoming_rtl): Moved to emit-rtl.h.
4808 (set_decl_rtl): Moved to tree.h.
4809 (set_min_and_max_values_for_integral_type): Moved to stor-layout.h.
4810 (set_user_assembler_name): Moved to varasm.h.
4811 (setjmp_call_p): Moved to calls.h.
4812 (size_binop): Moved to fold-const.h.
4813 (size_binop_loc): Moved to fold-const.h.
4814 (size_diffop): Moved to fold-const.h.
4815 (size_diffop_loc): Moved to fold-const.h.
4816 (size_int_kind): Moved to fold-const.h.
4817 (stack_protect_epilogue): Moved to function.h.
4818 (start_record_layout): Moved to stor-layout.h.
4819 (supports_one_only): Moved to varasm.h.
4820 (swap_tree_comparison): Moved to fold-const.h.
4821 (tm_malloc_replacement): Moved to trans-mem.h.
4822 (tree build_fold_addr_expr_loc): Moved to fold-const.h.
4823 (tree build_invariant_address): Moved to fold-const.h.
4824 (tree_binary_nonnegative_warnv_p): Moved to fold-const.h.
4825 (tree_binary_nonzero_warnv_p): Moved to fold-const.h.
4826 (tree_call_nonnegative_warnv_p): Moved to fold-const.h.
4827 (tree_expr_nonnegative_p): Moved to fold-const.h.
4828 (tree_expr_nonnegative_warnv_p): Moved to fold-const.h.
4829 (tree_output_constant_def): Moved to varasm.h.
4830 (tree_overlaps_hard_reg_set): Moved to stmt.h.
4831 (tree_single_nonnegative_warnv_p): Moved to fold-const.h.
4832 (tree_single_nonzero_warnv_p): Moved to fold-const.h.
4833 (tree_swap_operands_p): Moved to fold-const.h.
4834 (tree_unary_nonnegative_warnv_p): Moved to fold-const.h.
4835 (tree_unary_nonzero_warnv_p): Moved to fold-const.h.
4836 (update_alignment_for_field): Moved to stor-layout.h.
4837 (use_register_for_decl): Moved to function.h.
4838 (variable_size): Moved to rtl.h.
4839 (vector_type_mode): Moved to stor-layout.h.
4840 * cgraph.h: Corresponding changes.
4841 * emit-rtl.h: Corresponding changes.
4842 * expr.h: Corresponding changes.
4843 * function.h: Corresponding changes.
4844 * optabs.h: Corresponding changes.
4845 * trans-mem.h: Corresponding changes.
4846 Protect against multiple inclusion.
4847 * tree-inline.h: Corresponding changes.
4848 * tree-iterator.h: Corresponding changes.
4849 * tree-dfa.h: Include expr.h.
4850 * tree-ssanames.h: Include stringpool.h.
4851 * attribs.h: New file.
4852 * calls.h: New file.
4853 * fold-const.h: New file.
4854 * gcc-symtab.h: New file.
4855 * print-rtl.h: New file.
4856 * print-tree.h: New file.
4858 * stor-layout.h: New file.
4859 * strinpool.h: New file.
4860 * tree-nested.h: New file
4861 * tree-object-size.h: New file.
4862 * varasm.h: New file.
4864 2013-11-14 Diego Novillo <dnovillo@google.com>
4866 * alias.c: Include varasm.h.
4868 * asan.c: Include calls.h.
4869 Include stor-layout.h.
4871 * attribs.c: Include stringpool.h.
4873 Include stor-layout.h.
4874 * builtins.c: Include stringpool.h.
4875 Include stor-layout.h.
4878 Include tree-object-size.h.
4879 * calls.c: Include stor-layout.h.
4881 Include stringpool.h.
4883 * cfgexpand.c: Include stringpool.h.
4885 Include stor-layout.h.
4887 Include print-tree.h.
4888 * cgraph.c: Include varasm.h.
4890 Include print-tree.h.
4891 * cgraphclones.c: Include stringpool.h.
4894 Move inclusion of rtl.h earlier in the file.
4895 * cgraphunit.c: Include varasm.h.
4896 Include stor-layout.h.
4897 Include stringpool.h.
4898 * cilk-common.c: Include stringpool.h.
4899 Include stor-layout.h.
4900 * combine.c: Include stor-layout.h.
4901 * config/aarch64/aarch64-builtins.c: Include stor-layout.h.
4902 Include stringpool.h.
4904 * config/aarch64/aarch64.c: Include stringpool.h.
4905 Include stor-layout.h.
4908 * config/alpha/alpha.c: Include stor-layout.h.
4911 * config/arc/arc.c: Include varasm.h.
4912 Include stor-layout.h.
4913 Include stringpool.h.
4915 * config/arm/arm.c: Include stringpool.h.
4916 Include stor-layout.h.
4919 * config/avr/avr-c.c: Include stor-layout.h.
4920 * config/avr/avr-log.c: Include print-tree.h.
4921 * config/avr/avr.c: Include print-tree.h.
4923 Include stor-layout.h.
4924 Include stringpool.h.
4925 * config/bfin/bfin.c: Include varasm.h.
4927 * config/c6x/c6x.c: Include stor-layout.h.
4930 Include stringpool.h.
4931 * config/cr16/cr16.c: Include stor-layout.h.
4933 * config/cris/cris.c: Include varasm.h.
4934 Include stor-layout.h.
4937 * config/darwin.c: Include stringpool.h.
4939 Include stor-layout.h.
4940 * config/epiphany/epiphany.c: Include stor-layout.h.
4943 Include stringpool.h.
4944 * config/fr30/fr30.c: Include stor-layout.h.
4946 * config/frv/frv.c: Include varasm.h.
4947 Include stor-layout.h.
4948 Include stringpool.h.
4949 * config/h8300/h8300.c: Include stor-layout.h.
4952 Include stringpool.h.
4953 * config/i386/i386.c: Include stringpool.h.
4956 Include stor-layout.h.
4958 * config/i386/winnt-cxx.c: Include stringpool.h.
4960 * config/i386/winnt.c: Include stringpool.h.
4962 * config/ia64/ia64-c.c: Include stringpool.h.
4963 * config/ia64/ia64.c: Include stringpool.h.
4964 Include stor-layout.h.
4967 * config/iq2000/iq2000.c: Include stor-layout.h.
4970 * config/lm32/lm32.c: Include calls.h.
4971 * config/m32c/m32c.c: Include stor-layout.h.
4974 * config/m32r/m32r.c: Include stor-layout.h.
4976 Include stringpool.h.
4978 * config/m68k/m68k.c: Include calls.h.
4979 Include stor-layout.h.
4981 * config/mcore/mcore.c: Include stor-layout.h.
4983 Include stringpool.h.
4985 * config/mep/mep.c: Include varasm.h.
4987 Include stringpool.h.
4988 Include stor-layout.h.
4989 * config/microblaze/microblaze.c: Include varasm.h.
4990 Include stor-layout.h.
4992 * config/mips/mips.c: Include varasm.h.
4993 Include stringpool.h.
4994 Include stor-layout.h.
4996 * config/mmix/mmix.c: Include varasm.h.
4997 Include stor-layout.h.
4999 * config/mn10300/mn10300.c: Include stor-layout.h.
5002 * config/moxie/moxie.c: Include stor-layout.h.
5005 * config/msp430/msp430.c: Include stor-layout.h.
5007 * config/nds32/nds32.c: Include stor-layout.h.
5010 * config/pa/pa.c: Include stor-layout.h.
5011 Include stringpool.h.
5014 * config/pdp11/pdp11.c: Include stor-layout.h.
5017 * config/picochip/picochip.c: Include calls.h.
5018 Include stor-layout.h.
5019 Include stringpool.h.
5021 * config/rl78/rl78.c: Include varasm.h.
5022 Include stor-layout.h.
5024 * config/rs6000/rs6000-c.c: Include stor-layout.h.
5025 Include stringpool.h.
5026 * config/rs6000/rs6000.c: Include stringpool.h.
5027 Include stor-layout.h.
5029 Include print-tree.h.
5031 * config/rx/rx.c: Include varasm.h.
5032 Include stor-layout.h.
5034 * config/s390/s390.c: Include print-tree.h.
5035 Include stringpool.h.
5036 Include stor-layout.h.
5039 * config/score/score.c: Include stringpool.h.
5042 Include stor-layout.h.
5043 * config/sh/sh-c.c: Include stringpool.h.
5044 Include attribs.h.h.
5045 * config/sh/sh.c: Include stringpool.h.
5046 Include stor-layout.h.
5049 * config/sol2-c.c: Include stringpool.h.
5051 * config/sol2-cxx.c: Include stringpool.h.
5052 * config/sol2.c: Include stringpool.h.
5054 * config/sparc/sparc.c: Include stringpool.h.
5055 Include stor-layout.h.
5058 * config/spu/spu-c.c: Include stringpool.h.
5059 * config/spu/spu.c: Include stringpool.h.
5060 Include stor-layout.h.
5063 * config/stormy16/stormy16.c: Include stringpool.h.
5064 Include stor-layout.h.
5067 * config/tilegx/tilegx.c: Include stringpool.h.
5068 Include stor-layout.h.
5071 * config/tilepro/tilepro.c: Include stringpool.h.
5072 Include stor-layout.h.
5075 * config/v850/v850-c.c: Include stringpool.h.
5077 * config/v850/v850.c: Include stringpool.h.
5078 Include stor-layout.h.
5081 * config/vax/vax.c: Include calls.h.
5083 * config/vms/vms.c: Include stringpool.h.
5084 * config/vxworks.c: Include stringpool.h.
5085 * config/xtensa/xtensa.c: Include stringpool.h.
5086 Include stor-layout.h.
5089 * convert.c: Include stor-layout.h.
5090 * coverage.c: Include stringpool.h.
5091 Include stor-layout.h.
5092 * dbxout.c: Include varasm.h.
5093 Include stor-layout.h.
5094 * dojump.c: Include stor-layout.h.
5095 * dse.c: Include stor-layout.h.
5096 * dwarf2asm.c: Include stringpool.h.
5098 * dwarf2cfi.c: Include stor-layout.h.
5099 * dwarf2out.c: Include rtl.h.
5100 Include stringpool.h.
5101 Include stor-layout.h.
5105 Move inclusion of rtl.h earlier in the file.
5106 * emit-rtl.c: Include varasm.h.
5107 * except.c: Include stringpool.h.
5108 Include stor-layout.h.
5109 * explow.c: Include stor-layout.h.
5110 * expmed.c: Include stor-layout.h.
5111 * expr.c: Include stringpool.h.
5112 Include stor-layout.h.
5115 * final.c: Include varasm.h.
5116 * fold-const.c: Include stor-layout.h.
5118 Include tree-iterator.h.
5119 * function.c: Include stor-layout.h.
5121 Include stringpool.h.
5122 * genattrtab.c (write_header): Emit includes for varasm.h,
5123 stor-layout.h and calls.h.
5124 * genautomata.c (main): Likewise.
5125 * genemit.c: Likewise.
5126 * genopinit.c: Likewise.
5127 * genoutput.c (output_prologue): Likewise.
5128 * genpeep.c: Likewise.
5129 * genpreds.c (write_insn_preds_c): Likewise.
5130 * gengtype.c (open_base_files): Add stringpool.h.
5131 * gimple-expr.c: Include stringpool.h.
5132 Include stor-layout.h.
5133 * gimple-fold.c: Include stringpool.h.
5136 Include stor-layout.h.
5137 * gimple-low.c: Include tree-nested.h.
5139 * gimple-pretty-print.c: Include stringpool.h.
5140 * gimple-ssa-strength-reduction.c: Include stor-layout.h.
5142 * gimple-walk.c: Include stmt.h.
5143 * gimple.c: Include calls.h.
5145 Include stor-layout.h.
5146 * gimplify.c: Include stringpool.h.
5149 Include stor-layout.h.
5151 Include print-tree.h.
5153 * gimplify-me.c: Include stmt.h
5154 Include stor-layout.h
5155 * internal-fn.c: Include stor-layout.h.
5156 * ipa-devirt.c: Include print-tree.h.
5158 * ipa-inline-analysis.c: Include stor-layout.h.
5159 Include stringpool.h.
5160 Include print-tree.h.
5161 * ipa-inline.c: Include trans-mem.h.
5163 * ipa-prop.c: Include expr.h.
5164 Include stor-layout.h.
5165 Include print-tree.h.
5166 * ipa-pure-const.c: Include print-tree.h.
5168 * ipa-reference.c: Include calls.h.
5169 * ipa-split.c: Include stringpool.h.
5172 * ipa.c: Include calls.h.
5173 Include stringpool.h.
5174 * langhooks.c: Include stringpool.h.
5176 * lto-cgraph.c: Include stringpool.h.
5177 * lto-streamer-in.c: Include stringpool.h.
5178 * lto-streamer-out.c: Include stor-layout.h.
5179 Include stringpool.h.
5180 * omp-low.c: Include stringpool.h.
5181 Include stor-layout.h.
5183 * optabs.c: Include stor-layout.h.
5184 Include stringpool.h.
5186 * passes.c: Include varasm.h.
5187 * predict.c: Include calls.h.
5188 * print-rtl.c: Include print-tree.h.
5189 * print-tree.c: Include varasm.h.
5190 Include print-rtl.h.
5191 Include stor-layout.h.
5192 * realmpfr.c: Include stor-layout.h.
5193 * reg-stack.c: Include varasm.h.
5194 * sdbout.c: Include varasm.h.
5195 Include stor-layout.h.
5196 * simplify-rtx.c: Include varasm.h.
5197 * stmt.c: Include varasm.h.
5198 Include stor-layout.h.
5199 * stor-layout.c: Include stor-layout.h.
5200 Include stringpool.h.
5202 Include print-tree.h.
5203 * symtab.c: Include rtl.h.
5204 Include print-tree.h.
5208 * targhooks.c: Include stor-layout.h.
5210 * toplev.c: Include varasm.h.
5211 Include tree-inline.h.
5212 * trans-mem.c: Include calls.h.
5216 * tree-affine.c: Include expr.h.
5217 * tree-browser.c: Include print-tree.h.
5218 * tree-call-cdce.c: Include stor-layout.h.
5219 * tree-cfg.c: Include trans-mem.h.
5220 Include stor-layout.h.
5221 Include print-tree.h.
5222 * tree-complex.c: Include stor-layout.h.
5223 * tree-data-ref.c: Include expr.h.
5224 * tree-dfa.c: Include stor-layout.h.
5225 * tree-eh.c: Include expr.h.
5227 * tree-emutls.c: Include stor-layout.h.
5229 * tree-if-conv.c: Include stor-layout.h.
5230 * tree-inline.c: Include stor-layout.h.
5232 * tree-loop-distribution.c: Include stor-layout.h.
5233 * tree-nested.c: Include stringpool.h.
5234 Include stor-layout.h.
5235 * tree-object-size.c: Include tree-object-size.h.
5236 * tree-outof-ssa.c: Include stor-layout.h.
5237 * tree-parloops.c: Include stor-layout.h.
5238 Include tree-nested.h.
5239 * tree-pretty-print.c: Include stor-layout.h.
5241 * tree-profile.c: Include varasm.h.
5242 Include tree-nested.h.
5243 * tree-scalar-evolution.c: Include expr.h.
5244 * tree-sra.c: Include stor-layout.h.
5245 * tree-ssa-address.c: Include stor-layout.h.
5246 * tree-ssa-ccp.c: Include stor-layout.h.
5247 * tree-ssa-dce.c: Include calls.h.
5248 * tree-ssa-dom.c: Include stor-layout.h.
5249 * tree-ssa-forwprop.c: Include stor-layout.h.
5250 * tree-ssa-ifcombine.c: Include stor-layout.h.
5251 * tree-ssa-loop-ivopts.c: Include stor-layout.h.
5252 * tree-ssa-loop-niter.c: Include calls.h.
5254 * tree-ssa-loop-prefetch.c: Include stor-layout.h.
5255 * tree-ssa-math-opts.c: Include stor-layout.h.
5256 * tree-ssa-operands.c: Include stmt.h.
5257 Include print-tree.h.
5258 * tree-ssa-phiopt.c: Include stor-layout.h.
5259 * tree-ssa-reassoc.c: Include stor-layout.h.
5260 * tree-ssa-sccvn.c: Include stor-layout.h.
5261 * tree-ssa-sink.c: Include stor-layout.h.
5262 * tree-ssa-strlen.c: Include stor-layout.h.
5263 * tree-ssa-structalias.c: Include stor-layout.h.
5265 * tree-ssa-tail-merge.c: Include stor-layout.h.
5266 Include trans-mem.h.
5267 * tree-ssa-uncprop.c: Include stor-layout.h.
5268 * tree-ssa.c: Include stor-layout.h.
5269 * tree-ssanames.c: Include stor-layout.h.
5270 * tree-streamer-in.c: Include stringpool.h.
5271 * tree-streamer-out.c: Include stor-layout.h.
5272 * tree-switch-conversion.c: Include varasm.h.
5273 Include stor-layout.h.
5274 * tree-tailcall.c: Include stor-layout.h.
5275 * tree-vect-data-refs.c: Include stor-layout.h.
5276 * tree-vect-generic.c: Include stor-layout.h.
5277 * tree-vect-loop.c: Include stor-layout.h.
5278 * tree-vect-patterns.c: Include stor-layout.h.
5279 * tree-vect-slp.c: Include stor-layout.h.
5280 * tree-vect-stmts.c: Include stor-layout.h.
5281 * tree-vectorizer.c: Include stor-layout.h.
5282 * tree-vrp.c: Include stor-layout.h.
5284 * tree.c: Include stor-layout.h.
5288 * tsan.c: Include expr.h.
5289 * ubsan.c: Include stor-layout.h.
5290 Include stringpool.h.
5291 * value-prof.c: Include tree-nested.h.
5293 * var-tracking.c: Include varasm.h.
5294 Include stor-layout.h.
5295 * varasm.c: Include stor-layout.h.
5296 Include stringpool.h.
5297 Include gcc-symtab.h.
5299 * varpool.c: Include varasm.h.
5300 * vmsdbgout.c: Include varasm.h.
5301 * xcoffout.c: Include varasm.h.
5303 2013-11-14 Joern Rennecke <joern.rennecke@embecosm.com>
5305 * config/arc/arc.md (doloop_begin_i): Remove extra alignment;
5308 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5310 * config/rs6000/sysv4le.h (LINUX64_DEFAULT_ABI_ELFv2): Define.
5312 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5313 Alan Modra <amodra@gmail.com>
5315 * config/rs6000/rs6000.h (RS6000_SAVE_AREA): Handle ABI_ELFv2.
5316 (RS6000_SAVE_TOC): Remove.
5317 (RS6000_TOC_SAVE_SLOT): New macro.
5318 * config/rs6000/rs6000.c (rs6000_parm_offset): New function.
5319 (rs6000_parm_start): Use it.
5320 (rs6000_function_arg_advance_1): Likewise.
5321 (rs6000_emit_prologue): Use RS6000_TOC_SAVE_SLOT.
5322 (rs6000_emit_epilogue): Likewise.
5323 (rs6000_call_aix): Likewise.
5324 (rs6000_output_function_prologue): Do not save/restore r11
5325 around calling _mcount for ABI_ELFv2.
5327 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5328 Alan Modra <amodra@gmail.com>
5330 * config/rs6000/rs6000-protos.h (rs6000_reg_parm_stack_space):
5332 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Remove.
5333 (REG_PARM_STACK_SPACE): Call rs6000_reg_parm_stack_space.
5334 * config/rs6000/rs6000.c (rs6000_parm_needs_stack): New function.
5335 (rs6000_function_parms_need_stack): Likewise.
5336 (rs6000_reg_parm_stack_space): Likewise.
5337 (rs6000_function_arg): Do not replace BLKmode by Pmode when
5338 returning a register argument.
5340 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5341 Michael Gschwind <mkg@us.ibm.com>
5343 * config/rs6000/rs6000.h (FP_ARG_MAX_RETURN): New macro.
5344 (ALTIVEC_ARG_MAX_RETURN): Likewise.
5345 (FUNCTION_VALUE_REGNO_P): Use them.
5346 * config/rs6000/rs6000.c (TARGET_RETURN_IN_MSB): Define.
5347 (rs6000_return_in_msb): New function.
5348 (rs6000_return_in_memory): Handle ELFv2 homogeneous aggregates.
5349 Handle aggregates of up to 16 bytes for ELFv2.
5350 (rs6000_function_value): Handle ELFv2 homogeneous aggregates.
5352 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5353 Michael Gschwind <mkg@us.ibm.com>
5355 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
5356 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
5357 (rs6000_discover_homogeneous_aggregate): Likewise.
5358 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
5359 (rs6000_function_arg_advance_1): Likewise.
5360 (rs6000_function_arg): Likewise.
5361 (rs6000_arg_partial_bytes): Likewise.
5362 (rs6000_psave_function_arg): Handle BLKmode arguments.
5364 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5365 Michael Gschwind <mkg@us.ibm.com>
5367 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
5368 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
5369 (rs6000_discover_homogeneous_aggregate): Likewise.
5370 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
5371 (rs6000_function_arg_advance_1): Likewise.
5372 (rs6000_function_arg): Likewise.
5373 (rs6000_arg_partial_bytes): Likewise.
5374 (rs6000_psave_function_arg): Handle BLKmode arguments.
5376 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5378 * config/rs6000/rs6000.c (machine_function): New member
5380 (rs6000_emit_prologue): Set r2_setup_needed if necessary.
5381 (rs6000_output_mi_thunk): Set r2_setup_needed.
5382 (rs6000_output_function_prologue): Output global entry point
5383 prologue and local entry point marker if needed for ABI_ELFv2.
5384 Output -mprofile-kernel code here.
5385 (output_function_profiler): Do not output -mprofile-kernel
5386 code here; moved to rs6000_output_function_prologue.
5387 (rs6000_file_start): Output ".abiversion 2" for ABI_ELFv2.
5389 (rs6000_emit_move): Do not handle dot symbols for ABI_ELFv2.
5390 (rs6000_output_function_entry): Likewise.
5391 (rs6000_assemble_integer): Likewise.
5392 (rs6000_elf_encode_section_info): Likewise.
5393 (rs6000_elf_declare_function_name): Do not create dot symbols
5394 or .opd section for ABI_ELFv2.
5396 (rs6000_trampoline_size): Update for ABI_ELFv2 trampolines.
5397 (rs6000_trampoline_init): Likewise.
5398 (rs6000_elf_file_end): Call file_end_indicate_exec_stack for ABI_ELFv2.
5400 (rs6000_call_aix): Handle ELFv2 indirect calls. Do not check
5401 for function descriptors in ABI_ELFv2.
5403 * config/rs6000/rs6000.md ("*call_indirect_aix<mode>"): Support
5404 on ABI_AIX only, not ABI_ELFv2.
5405 ("*call_value_indirect_aix<mode>"): Likewise.
5406 ("*call_indirect_elfv2<mode>"): New pattern.
5407 ("*call_value_indirect_elfv2<mode>"): Likewise.
5409 * config/rs6000/predicates.md ("symbol_ref_operand"): Do not
5410 check for function descriptors in ABI_ELFv2.
5411 ("current_file_function_operand"): Likewise.
5413 * config/rs6000/ppc-asm.h [__powerpc64__ && _CALL_ELF == 2]:
5415 (FUNC_NAME): Define ELFv2 variant.
5416 (JUMP_TARGET): Likewise.
5417 (FUNC_START): Likewise.
5418 (HIDDEN_FUNC): Likewise.
5419 (FUNC_END): Likeiwse.
5421 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5423 * config.gcc [powerpc*-*-* | rs6000-*-*]: Support --with-abi=elfv1
5424 and --with-abi=elfv2.
5425 * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Add "abi".
5426 * config/rs6000/rs6000.opt (mabi=elfv1): New option.
5427 (mabi=elfv2): Likewise.
5428 * config/rs6000/rs6000-opts.h (enum rs6000_abi): Add ABI_ELFv2.
5429 * config/rs6000/linux64.h (DEFAULT_ABI): Do not hard-code to AIX_ABI
5431 (ELFv2_ABI_CHECK): New macro.
5432 (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
5433 rs6000_current_abi to ABI_AIX or ABI_ELFv2.
5434 (GLIBC_DYNAMIC_LINKER64): Support ELFv2 ld.so version.
5435 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
5436 _CALL_ELF and __STRUCT_PARM_ALIGN__ if appropriate.
5438 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Handle ABI_ELFv2.
5439 (debug_stack_info): Likewise.
5440 (rs6000_file_start): Treat ABI_ELFv2 the same as ABI_AIX.
5441 (rs6000_legitimize_tls_address): Likewise.
5442 (rs6000_conditional_register_usage): Likewise.
5443 (rs6000_emit_move): Likewise.
5444 (init_cumulative_args): Likewise.
5445 (rs6000_function_arg_advance_1): Likewise.
5446 (rs6000_function_arg): Likewise.
5447 (rs6000_arg_partial_bytes): Likewise.
5448 (rs6000_output_function_entry): Likewise.
5449 (rs6000_assemble_integer): Likewise.
5450 (rs6000_savres_strategy): Likewise.
5451 (rs6000_stack_info): Likewise.
5452 (rs6000_function_ok_for_sibcall): Likewise.
5453 (rs6000_emit_load_toc_table): Likewise.
5454 (rs6000_savres_routine_name): Likewise.
5455 (ptr_regno_for_savres): Likewise.
5456 (rs6000_emit_prologue): Likewise.
5457 (rs6000_emit_epilogue): Likewise.
5458 (rs6000_output_function_epilogue): Likewise.
5459 (output_profile_hook): Likewise.
5460 (output_function_profiler): Likewise.
5461 (rs6000_trampoline_size): Likewise.
5462 (rs6000_trampoline_init): Likewise.
5463 (rs6000_elf_output_toc_section_asm_op): Likewise.
5464 (rs6000_elf_encode_section_info): Likewise.
5465 (rs6000_elf_reloc_rw_mask): Likewise.
5466 (rs6000_elf_declare_function_name): Likewise.
5467 (rs6000_function_arg_boundary): Treat ABI_ELFv2 the same as ABI_AIX,
5468 except that rs6000_compat_align_parm is always assumed false.
5469 (rs6000_gimplify_va_arg): Likewise.
5470 (rs6000_call_aix): Update comment.
5471 (rs6000_sibcall_aix): Likewise.
5472 * config/rs6000/rs6000.md ("tls_gd_aix<TLSmode:tls_abi_suffix>"):
5473 Treat ABI_ELFv2 the same as ABI_AIX.
5474 ("*tls_gd_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
5475 ("tls_ld_aix<TLSmode:tls_abi_suffix>"): Likewise.
5476 ("*tls_ld_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
5477 ("load_toc_aix_si"): Likewise.
5478 ("load_toc_aix_di"): Likewise.
5480 ("call_value"): Likewise.
5481 ("*call_local_aix<mode>"): Likewise.
5482 ("*call_value_local_aix<mode>"): Likewise.
5483 ("*call_nonlocal_aix<mode>"): Likewise.
5484 ("*call_value_nonlocal_aix<mode>"): Likewise.
5485 ("*call_indirect_aix<mode>"): Likewise.
5486 ("*call_value_indirect_aix<mode>"): Likewise.
5487 ("sibcall"): Likewise.
5488 ("sibcall_value"): Likewise.
5489 ("*sibcall_aix<mode>"): Likewise.
5490 ("*sibcall_value_aix<mode>"): Likewise.
5491 * config/rs6000/predicates.md ("symbol_ref_operand"): Likewise.
5492 ("current_file_function_operand"): Likewise.
5494 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5496 * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Simplify logic
5497 by making use of the fact that for vector / floating point arguments
5498 passed both in VRs/FPRs and in the fixed parameter area, the partial
5499 bytes mechanism is in fact not used.
5501 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5503 * config/rs6000/rs6000.c (rs6000_psave_function_arg): New function.
5504 (rs6000_finish_function_arg): Likewise.
5505 (rs6000_function_arg): Use rs6000_psave_function_arg and
5506 rs6000_finish_function_arg to handle both vector and floating
5507 point arguments that are also passed in GPRs / the stack.
5509 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5511 * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Remove TYPE argument.
5512 (USE_ALTIVEC_FOR_ARG_P): Likewise.
5513 (rs6000_darwin64_record_arg_advance_recurse): Update uses.
5514 (rs6000_function_arg_advance_1):Likewise.
5515 (rs6000_darwin64_record_arg_recurse): Likewise.
5516 (rs6000_function_arg): Likewise.
5517 (rs6000_arg_partial_bytes): Likewise.
5519 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5521 * config/rs6000/rs6000.c (rs6000_option_override_internal): Replace
5522 "DEFAULT_ABI != ABI_AIX" test by testing for ABI_V4 or ABI_DARWIN.
5523 (rs6000_savres_strategy): Likewise.
5524 (rs6000_return_addr): Likewise.
5525 (rs6000_emit_load_toc_table): Replace "DEFAULT_ABI != ABI_AIX" by
5526 testing for ABI_V4 (since ABI_DARWIN is impossible here).
5527 (rs6000_emit_prologue): Likewise.
5528 (legitimate_lo_sum_address_p): Simplify DEFAULT_ABI test.
5529 (rs6000_elf_declare_function_name): Remove duplicated test.
5530 * config/rs6000/rs6000.md ("load_toc_v4_PIC_1"): Explicitly test
5531 for ABI_V4 (instead of "DEFAULT_ABI != ABI_AIX" test).
5532 ("load_toc_v4_PIC_1_normal"): Likewise.
5533 ("load_toc_v4_PIC_1_476"): Likewise.
5534 ("load_toc_v4_PIC_1b"): Likewise.
5535 ("load_toc_v4_PIC_1b_normal"): Likewise.
5536 ("load_toc_v4_PIC_1b_476"): Likewise.
5537 ("load_toc_v4_PIC_2"): Likewise.
5538 ("load_toc_v4_PIC_3b"): Likewise.
5539 ("load_toc_v4_PIC_3c"): Likewise.
5540 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Simplify DEFAULT_ABI test.
5541 (RS6000_SAVE_AREA): Likewise.
5542 (FP_ARG_MAX_REG): Likewise.
5543 (RETURN_ADDRESS_OFFSET): Likewise.
5544 * config/rs6000/sysv.h (TARGET_TOC): Test for ABI_V4 instead
5546 (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
5547 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
5549 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5551 * config/rs6000/rs6000.c (rs6000_call_indirect_aix): Rename to ...
5552 (rs6000_call_aix): ... this. Handle both direct and indirect calls.
5553 Create call insn directly instead of via various gen_... routines.
5554 Mention special registers used by the call in CALL_INSN_FUNCTION_USAGE.
5555 (rs6000_sibcall_aix): New function.
5556 * config/rs6000/rs6000.md (TOC_SAVE_OFFSET_32BIT): Remove.
5557 (TOC_SAVE_OFFSET_64BIT): Likewise.
5558 (AIX_FUNC_DESC_TOC_32BIT): Likewise.
5559 (AIX_FUNC_DESC_TOC_64BIT): Likewise.
5560 (AIX_FUNC_DESC_SC_32BIT): Likewise.
5561 (AIX_FUNC_DESC_SC_64BIT): Likewise.
5562 ("call" expander): Call rs6000_call_aix.
5563 ("call_value" expander): Likewise.
5564 ("call_indirect_aix<ptrsize>"): Replace this pattern ...
5565 ("call_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
5566 ("*call_indirect_aix<mode>"): ... by this insn pattern.
5567 ("call_value_indirect_aix<ptrsize>"): Replace this pattern ...
5568 ("call_value_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
5569 ("*call_value_indirect_aix<mode>"): ... by this insn pattern.
5570 ("*call_nonlocal_aix32", "*call_nonlocal_aix64"): Replace by ...
5571 ("*call_nonlocal_aix<mode>"): ... this pattern.
5572 ("*call_value_nonlocal_aix32", "*call_value_nonlocal_aix64"): Replace
5573 ("*call_value_nonlocal_aix<mode>"): ... by this pattern.
5574 ("*call_local_aix<mode>"): New insn pattern.
5575 ("*call_value_local_aix<mode>"): Likewise.
5576 ("sibcall" expander): Call rs6000_sibcall_aix.
5577 ("sibcall_value" expander): Likewise. Move earlier in file.
5578 ("*sibcall_nonlocal_aix<mode>"): Replace by ...
5579 ("*sibcall_aix<mode>"): ... this pattern.
5580 ("*sibcall_value_nonlocal_aix<mode>"): Replace by ...
5581 ("*sibcall_value_aix<mode>"): ... this pattern.
5582 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): Remove.
5583 (rs6000_call_aix): Add prototype.
5584 (rs6000_sibcall_aix): Likewise.
5586 2013-11-14 Jakub Jelinek <jakub@redhat.com>
5589 * asan.c (asan_emit_stack_protection): Ensure -fsection-anchors
5590 isn't confused by the artificial decl.
5592 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5594 * config/rs6000/rs6000.c (rs6000_emit_prologue): Do not place a
5595 RTX_FRAME_RELATED_P marker on the UNSPEC_MOVESI_FROM_CR insn.
5596 Instead, add USEs of all modified call-saved CR fields to the
5597 insn storing the result to the stack slot, and provide an
5598 appropriate REG_FRAME_RELATED_EXPR for that insn.
5599 * config/rs6000/rs6000.md ("*crsave"): New insn pattern.
5600 * config/rs6000/predicates.md ("crsave_operation"): New predicate.
5602 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5603 Alan Modra <amodra@gmail.com>
5605 * function.c (assign_parms): Use all.reg_parm_stack_space instead
5606 of re-evaluating REG_PARM_STACK_SPACE target macro.
5607 (locate_and_pad_parm): New parameter REG_PARM_STACK_SPACE. Use it
5608 instead of evaluating target macro REG_PARM_STACK_SPACE every time.
5609 (assign_parm_find_entry_rtl): Update call.
5610 * calls.c (initialize_argument_information): Update call.
5611 (emit_library_call_value_1): Likewise.
5612 * expr.h (locate_and_pad_parm): Update prototype.
5614 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5616 * calls.c (store_unaligned_arguments_into_pseudos): Skip PARALLEL
5619 2013-11-14 DJ Delorie <dj@redhat.com>
5621 * config/rx/rx.c (rx_mode_dependent_address_p): Allow offsets up
5624 2013-11-14 Jeff Law <law@redhat.com>
5626 * tree-ssa-threadedge.c (thread_through_normal_block): Only push the
5627 EDGE_START_JUMP_THREAD marker if the jump threading path is empty.
5629 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
5631 * doc/invoke.texi: Update documentation for AArch64's -mcpu
5634 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
5636 * config/aarch64/aarch64-cores.def (example-1): Remove.
5637 (example-2): Likewise.
5638 * config/aarch64/aarch64-tune.md: Regenerate.
5639 * config/aarch64/aarch64.md: Do not include "large.md" or "small.md".
5640 (generic_sched): Remove "large", "small".
5641 * config/aarch64/large.md: Delete.
5642 * config/aarch64/small.md: Delete.
5644 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
5646 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for cortexa15.
5647 * config/aarch64/aarch64-tune.md: Regenerate.
5648 * config/aarch64/aarch64.md: Include cortex-a15 pipeline model.
5649 (generic_sched): "no" if we are tuning for cortexa15.
5650 * config/arm/cortex-a15.md: Include cortex-a15-neon.md by
5653 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
5655 * config/aarch64/aarch64-arches.def (armv8-a): Tune for cortex-a53.
5656 * config/aarch64/aarch64.md: Do not include aarch64-generic.md.
5657 * config/aarch64/aarch64.c (aarch64_tune): Initialize to cortexa53.
5658 (all_cores): Use cortexa53 when tuning for "generic".
5659 (aarch64_override_options): Fix comment.
5660 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Set to cortexa53.
5661 * config/aarch64/aarch64-generic.md: Delete.
5663 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
5665 * config/aarch64/aarch64.c (all_architectures): Remove "generic".
5667 2013-11-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5669 * config/aarch64/aarch64.c: Include aarch-cost-tables.h.
5670 (generic_rtx_cost_table): Remove.
5671 (aarch64_rtx_costs): Use fields from cpu_cost_table.
5672 * config/aarch64/aarch64-protos.h (tune_params): Use cpu_cost_table for
5674 (cpu_rtx_cost_table): Remove.
5676 2013-11-14 Julian Brown <julian@codesourcery.com>
5677 Joey Ye <joey.ye@arm.com>
5679 * config/arm/arm.c (arm_cortex_m_branch_cost): New.
5680 (arm_v7m_tune): New.
5681 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune, arm_9e_tune,
5682 arm_v6t2_tune, arm_cortex_tune, arm_cortex_a15_tune,
5683 arm_cortex_a5_tune, arm_v6m_tune): Add comments for Sched adj cost.
5684 * config/arm/arm-cores.def (cortex-m4, cortex-m3): Use arm_v7m_tune.
5686 2013-11-14 Kirill Yukhin <kirill.yukhin@intel.com>
5689 * config/ia64/ia64.c (ia64_split_tmode_move): Relax `dead'
5692 2013-11-14 Jakub Jelinek <jakub@redhat.com>
5693 Uros Bizjak <ubizjak@gmail.com>
5696 * config/i386/i386.md (*anddi_2): Only allow CCZmode if
5697 operands[2] satisfies_constraint_Z that might have bit 31 set.
5699 2013-11-13 Jeff Law <law@redhat.com>
5701 PR tree-optimization/59102
5702 * gimple-ssa-isolate-paths.c
5703 (insert_trap_and_remove_trailing_statments): Ensure STMT is a
5704 gimple assignment before looking at gimple_assign_lhs.
5706 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
5708 * ira.c: Add comment about threads at the top of file.
5710 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
5712 * ira-color.c (coalesce_allocnos): Don't allocate and free
5715 2013-11-14 Tom de Vries <tom@codesourcery.com>
5717 * tree-ssa-tail-merge.c (gimple_equal_p): Add test for structural
5718 equality for GIMPLE_ASSIGN.
5720 2013-11-14 Tom de Vries <tom@codesourcery.com>
5722 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Factor new
5724 (gimple_equal_p): ... here.
5726 2013-11-14 Tom de Vries <tom@codesourcery.com>
5728 * trans-mem.c (is_tm_ending): New function.
5729 * gimple.h (is_tm_ending): Declare.
5730 * tree-ssa-tail-merge.c (gimple_equal_p): Remove test on
5732 (find_duplicate): Use is_tm_ending instead of is_tm_ending_fndecl.
5734 2013-11-14 Tom de Vries <tom@codesourcery.com>
5736 * tree-ssa-tail-merge.c (gimple_equal_p): Remove equal variable.
5738 2013-11-13 Andrew MacLeod <amacleod@redhat.com>
5740 * gimple-walk.h: New File. Relocate prototypes from gimple.h.
5741 (struct walk_stmt_info): Relocate here from gimple.h.
5742 * gimple-iterator.h: New File. Relocate prototypes from gimple.h.
5743 (struct gimple_stmt_iterator_d): Relocate here from gimple.h.
5744 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
5745 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
5746 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
5747 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
5748 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Relocate here from gimple.h.
5749 * gimple.h (struct gimple_stmt_iterator_d): Move to gimple-iterator.h.
5750 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
5751 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
5752 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
5753 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
5754 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Move to gimple-iterator.h.
5755 (struct walk_stmt_info): Move to gimple-walk.h.
5756 (gimple_seq_set_location): Move to gimple.c
5757 * gimple-walk.c: New File.
5758 (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm, walk_gimple_op,
5759 walk_gimple_stmt, get_base_loadstore, walk_stmt_load_store_addr_ops,
5760 walk_stmt_load_store_ops): Relocate here from gimple.c.
5761 * gimple-iterator.c: Include gimple-iterator.h.
5762 * gimple.c (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm,
5763 walk_gimple_op, walk_gimple_stmt, get_base_loadstore,
5764 walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Move to
5766 (gimple_seq_set_location): Relocate from gimple.h.
5767 * tree-phinodes.h (set_phi_nodes): Move to tree-phinodes.c.
5768 * tree-phinodes.c (set_phi_nodes): Relocate from tree-phinodes.h.
5769 * gengtype.c (open_base_files): Add gimple-iterator.h to include list.
5770 * Makefile.in (OBJS): Add gimple-walk.o
5771 * asan.c: Update Include list as required for gimple-iterator.h and
5773 * cfgexpand.c: Likewise.
5774 * cfgloop.c: Likewise.
5775 * cfgloopmanip.c: Likewise.
5776 * cgraph.c: Likewise.
5777 * cgraphbuild.c: Likewise.
5778 * cgraphunit.c: Likewise.
5779 * gimple-fold.c: Likewise.
5780 * gimple-low.c: Likewise.
5781 * gimple-pretty-print.c: Likewise.
5782 * gimple-ssa-isolate-paths.c: Likewise.
5783 * gimple-ssa-strength-reduction.c: Likewise.
5784 * gimple-streamer-in.c: Likewise.
5785 * gimple-streamer-out.c: Likewise.
5786 * gimplify.c: Likewise.
5787 * graphite-blocking.c: Likewise.
5788 * graphite-clast-to-gimple.c: Likewise.
5789 * graphite-dependences.c: Likewise.
5790 * graphite-interchange.c: Likewise.
5791 * graphite-optimize-isl.c: Likewise.
5792 * graphite-poly.c: Likewise.
5793 * graphite-scop-detection.c: Likewise.
5794 * graphite-sese-to-poly.c: Likewise.
5795 * graphite.c: Likewise.
5796 * ipa-inline-analysis.c: Likewise.
5797 * ipa-profile.c: Likewise.
5798 * ipa-prop.c: Likewise.
5799 * ipa-pure-const.c: Likewise.
5800 * ipa-split.c: Likewise.
5801 * lto-streamer-in.c: Likewise.
5802 * lto-streamer-out.c: Likewise.
5803 * omp-low.c: Likewise.
5804 * predict.c: Likewise.
5805 * profile.c: Likewise.
5807 * tracer.c: Likewise.
5808 * trans-mem.c: Likewise.
5809 * tree-call-cdce.c: Likewise.
5810 * tree-cfg.c: Likewise.
5811 * tree-cfgcleanup.c: Likewise.
5812 * tree-complex.c: Likewise.
5813 * tree-data-ref.c: Likewise.
5814 * tree-dfa.c: Likewise.
5815 * tree-eh.c: Likewise.
5816 * tree-emutls.c: Likewise.
5817 * tree-if-conv.c: Likewise.
5818 * tree-inline.c: Likewise.
5819 * tree-into-ssa.c: Likewise.
5820 * tree-loop-distribution.c: Likewise.
5821 * tree-nested.c: Likewise.
5822 * tree-nrv.c: Likewise.
5823 * tree-object-size.c: Likewise.
5824 * tree-outof-ssa.c: Likewise.
5825 * tree-parloops.c: Likewise.
5826 * tree-predcom.c: Likewise.
5827 * tree-profile.c: Likewise.
5828 * tree-scalar-evolution.c: Likewise.
5829 * tree-sra.c: Likewise.
5830 * tree-ssa-ccp.c: Likewise.
5831 * tree-ssa-coalesce.c: Likewise.
5832 * tree-ssa-copy.c: Likewise.
5833 * tree-ssa-copyrename.c: Likewise.
5834 * tree-ssa-dce.c: Likewise.
5835 * tree-ssa-dom.c: Likewise.
5836 * tree-ssa-dse.c: Likewise.
5837 * tree-ssa-forwprop.c: Likewise.
5838 * tree-ssa-ifcombine.c: Likewise.
5839 * tree-ssa-live.c: Likewise.
5840 * tree-ssa-loop-ch.c: Likewise.
5841 * tree-ssa-loop-im.c: Likewise.
5842 * tree-ssa-loop-ivcanon.c: Likewise.
5843 * tree-ssa-loop-ivopts.c: Likewise.
5844 * tree-ssa-loop-manip.c: Likewise.
5845 * tree-ssa-loop-niter.c: Likewise.
5846 * tree-ssa-loop-prefetch.c: Likewise.
5847 * tree-ssa-loop.c: Likewise.
5848 * tree-ssa-math-opts.c: Likewise.
5849 * tree-ssa-phiopt.c: Likewise.
5850 * tree-ssa-phiprop.c: Likewise.
5851 * tree-ssa-pre.c: Likewise.
5852 * tree-ssa-propagate.c: Likewise.
5853 * tree-ssa-reassoc.c: Likewise.
5854 * tree-ssa-sink.c: Likewise.
5855 * tree-ssa-strlen.c: Likewise.
5856 * tree-ssa-structalias.c: Likewise.
5857 * tree-ssa-tail-merge.c: Likewise.
5858 * tree-ssa-ter.c: Likewise.
5859 * tree-ssa-threadedge.c: Likewise.
5860 * tree-ssa-threadupdate.c: Likewise.
5861 * tree-ssa-uncprop.c: Likewise.
5862 * tree-ssa-uninit.c: Likewise.
5863 * tree-ssa.c: Likewise.
5864 * tree-stdarg.c: Likewise.
5865 * tree-switch-conversion.c: Likewise.
5866 * tree-tailcall.c: Likewise.
5867 * tree-vect-data-refs.c: Likewise.
5868 * tree-vect-generic.c: Likewise.
5869 * tree-vect-loop-manip.c: Likewise.
5870 * tree-vect-loop.c: Likewise.
5871 * tree-vect-patterns.c: Likewise.
5872 * tree-vect-slp.c: Likewise.
5873 * tree-vect-stmts.c: Likewise.
5874 * tree-vectorizer.c: Likewise.
5875 * tree-vrp.c: Likewise.
5878 * value-prof.c: Likewise.
5879 * vtable-verify.c: Likewise.
5881 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
5883 * gimple-ssa-isolate-paths.c (pass_isolate_erroneous_paths): Comment
5886 2013-11-13 Jeff Law <law@redhat.com>
5888 * PR middle-end/59119
5889 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour): New
5890 function, extracted from gimple_ssa_isolate_erroneous_paths.
5891 (find_explicit_erroneous_behaviour): Similarly.
5892 (insert_trap_and_remove_trailing_statements): Remove statements
5895 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
5897 * cfgrtl.c (can_fallthru): Reorder code to move tablejump check up.
5898 Make that check explicit. BB_HEAD cannot be NULL, remove check for it.
5899 * haifa-sched.c (ready_remove_first_dispatch): Check INSN_P before
5900 looking at INSN_CODE.
5901 * reload1.c (delete_dead_insn) Do not expect JUMP_TABLE_DATA to be an
5902 active_insn_p object, respect basic block boundaries.
5903 * reorg.c (follow_jumps): Use invariant that JUMP_TABLE_DATA always
5904 follows immediately after the jump table data label.
5905 * config/nds32/nds32.c (nds32_output_casesi_pc_relative): Likewise.
5906 * config/sh/sh.c (barrier_align): Likewise. Rearrange code such
5907 that JUMP_TABLE_DATA is not expected to be an active_insn_p object.
5909 2013-11-13 Teresa Johnson <tejohnson@google.com>
5912 * predict.c (drop_profile): Error is currently too strict.
5913 (handle_missing_profiles): Pass call_count to drop_profile.
5915 2013-11-13 Teresa Johnson <tejohnson@google.com>
5918 * ipa-inline.c (edge_badness): Fix overflow.
5920 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
5922 PR rtl-optimization/59036
5923 * ira-color.c (struct allocno_color_data): Add new members
5924 first_thread_allocno, next_thread_allocno, thread_freq.
5925 (sorted_copies): New static var.
5926 (allocnos_conflict_by_live_ranges_p, copy_freq_compare_func): Move up.
5927 (allocno_thread_conflict_p, merge_threads)
5928 (form_threads_from_copies, form_threads_from_bucket)
5929 (form_threads_from_colorable_allocno, init_allocno_threads): New
5931 (bucket_allocno_compare_func): Add comparison by thread frequency
5933 (add_allocno_to_ordered_bucket): Rename to
5934 add_allocno_to_ordered_colorable_bucket. Remove parameter.
5935 (push_only_colorable): Call form_threads_from_bucket.
5936 (color_pass): Call init_allocno_threads. Use
5937 consideration_allocno_bitmap instead of coloring_allocno_bitmap
5938 for nuillify allocno color data.
5939 (ira_initiate_assign, ira_finish_assign): Allocate/free sorted_copies.
5940 (coalesce_allocnos): Use static sorted copies.
5942 2013-11-13 Jakub Jelinek <jakub@redhat.com>
5944 * passes.c (execute_todo): Don't call do_per_function if
5946 (execute_one_ipa_transform_pass, execute_one_pass): Don't call
5947 execute_function_dump if dump_file is NULL.
5949 2013-11-13 Martin Jambor <mjambor@suse.cz>
5951 * cgraph.c (cgraph_get_create_node): Do what
5952 cgraph_get_create_real_symbol_node used to do.
5953 (cgraph_get_create_real_symbol_node): Removed. Changed all users to
5954 call cgraph_get_create_node.
5955 * cgraph.h (cgraph_get_create_real_symbol_node): Removed.
5956 * lto-streamer-in.c (input_function): Call cgraph_get_node instead of
5957 cgraph_get_create_node. Assert we get a node.
5959 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
5961 * config/aarch64/aarch64-simd.md (vec_extract): New.
5963 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
5965 * config/aarch64/aarch64-simd.md (vec_set<mode>): Add w -> w option to
5968 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
5970 * cfgexpand.c (expand_used_vars): Allocate space for partitions based
5971 on PARM_DECLs or RESULT_DECLs only if they are ignored for debug info
5972 or if optimization is enabled.
5973 * tree-ssa-coalesce.c (coalesce_ssa_name): If optimization is disabled,
5974 require that all the names based on a PARM_DECL or a RESULT_DECL that
5975 isn't ignored for debug info be coalesced.
5977 2013-11-13 Jan-Benedict Glaw <jbglaw@lug-owl.de>
5979 * config/c6x/c6x.c: Include "gimple-expr.h".
5981 2013-11-13 Richard Biener <rguenther@suse.de>
5983 * gimple-streamer-out.c (output_gimple_stmt): Also wrap
5984 decls in ADDR_EXPR operands inside a MEM_REF and optimize that.
5985 * gimple-streamer-in.c (input_gimple_stmt): Remove now dead code
5986 dealing with type mismatches inside component reference chains.
5988 2013-11-13 Marc Glisse <marc.glisse@inria.fr>
5990 PR tree-optimization/59077
5991 * ipa-pure-const.c (better_state): Update *state.
5993 2013-11-13 Christophe Lyon <christophe.lyon@linaro.org>
5995 * config/aarch64/aarch64.h (FRAME_GROWS_DOWNWARD): Define to 1.
5996 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
5997 Update offset calculations.
5999 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
6002 * dwarf2out.c (add_byte_size_attribute): Also use int_size_in_bytes
6003 for fields. Do not add the attribute if the size is negative.
6005 2013-11-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6007 * config/arm/arm.c: Include aarch-cost-tables.h.
6008 (generic_extra_costs): Move from here...
6009 * config/arm/aarch-cost-tables.h: ... To here. New file.
6011 2013-11-13 Alexander Ivchenko <alexander.ivchenko@intel.com>
6012 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6013 Sergey Lega <sergey.s.lega@intel.com>
6014 Anna Tikhonova <anna.tikhonova@intel.com>
6015 Ilya Tocar <ilya.tocar@intel.com>
6016 Andrey Turetskiy <andrey.turetskiy@intel.com>
6017 Ilya Verbin <ilya.verbin@intel.com>
6018 Kirill Yukhin <kirill.yukhin@intel.com>
6019 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6021 * config/i386/i386.c (ix86_print_operand): Support z-masking.
6022 * config/i386/predicate.md (const_0_to_4_operand): New.
6023 (const_0_to_5_operand): Ditto.
6024 * config/i386/sse.md (UNSPEC_COMPRESS): New.
6025 (UNSPEC_COMPRESS_STORE): Ditto.
6026 (UNSPEC_EXPAND): Ditto.
6027 (UNSPEC_EMBEDDED_ROUNDING): Ditto.
6028 (define_mode_attr ssescalarsize): Ditto.
6029 (avx512f_load<mode>_mask): Ditto.
6030 (avx512f_store<mode>_mask): Ditto.
6031 (avx512f_storedqu<mode>_mask): Ditto.
6032 (avx512f_vmcmp<mode>3_mask): Ditto.
6033 (avx512f_fmadd_<mode>_mask): Ditto.
6034 (avx512f_fmadd_<mode>_mask3): Ditto.
6035 (avx512f_fmsub_<mode>_mask): Ditto.
6036 (avx512f_fmsub_<mode>_mask3): Ditto.
6037 (avx512f_fnmadd_<mode>_mask): Ditto.
6038 (avx512f_fnmadd_<mode>_mask3): Ditto.
6039 (avx512f_fnmsub_<mode>_mask): Ditto.
6040 (avx512f_fnmsub_<mode>_mask3): Ditto.
6041 (avx512f_fmaddsub_<mode>_mask): Ditto.
6042 (avx512f_fmaddsub_<mode>_mask3): Ditto.
6043 (avx512f_fmsubadd_<mode>_mask): Ditto.
6044 (avx512f_fmsubadd_<mode>_mask3): Ditto.
6045 (vec_unpacku_float_lo_v16si): Ditto.
6046 (avx512f_vextract<shuffletype>32x4_mask): Ditto.
6047 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
6048 (avx512f_vextract<shuffletype>64x4_mask): Ditto.
6049 (vec_extract_lo_<mode>_maskm): Ditto.
6050 (vec_extract_hi_<mode>_maskm): Ditto.
6051 (avx512f_vternlog<mode>_mask): Ditto.
6052 (avx512f_shufps512_mask): Ditto.
6053 (avx512f_fixupimm<mode>_mask): Ditto.
6054 (avx512f_shufpd512_mask): Ditto.
6055 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
6056 (avx512f_<code>v8div16qi2_mask/trunc): Ditto.
6057 (*avx512f_<code>v8div16qi2_store_mask): Ditto.
6058 (ashr<mode>3<mask_name>): Ditto.
6059 (avx512f_vinsert<shuffletype>32x4_mask): Ditto.
6060 (avx512f_vinsert<shuffletype>64x4_mask): Ditto.
6061 (avx512f_shuf_<shuffletype>64x2_mask): Ditto.
6062 (avx512f_shuf_<shuffletype>32x4_mask): Ditto.
6063 (avx512f_pshufdv3_mask): Ditto.
6064 (avx512f_perm<mode>_mask): Ditto.
6065 (avx512f_vpermi2var<mode>3_mask): Ditto.
6066 (avx512f_vpermt2var<mode>3_mask): Ditto.
6067 (avx512f_compress<mode>_mask): Ditto.
6068 (avx512f_compressstore<mode>_mask): Ditto.
6069 (avx512f_expand<mode>_mask): Ditto.
6070 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Extend
6072 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
6073 (<plusminus_insn><mode>3<mask_name>): Ditto.
6074 (*<plusminus_insn><mode>3<mask_name>): Ditto.
6075 (mul<mode>3<mask_name>): Ditto.
6076 (*mul<mode>3<mask_name>): Ditto.
6077 (<sse>_div<mode>3<mask_name>): Ditto.
6078 (<mask_codefor>rcp14<mode><mask_name>): Ditto.
6079 (<sse>_sqrt<mode>2<mask_name>): Ditto.
6080 (<mask_codefor>rsqrt14<mode><mask_name>): Ditto.
6081 (<code><mode>3<mask_name>/smaxmin): Ditto.
6082 (*<code><mode>3_finite<mask_name>/smaxmin): Ditto.
6083 (*<code><mode>3<mask_name>/smaxmin): Ditto.
6084 (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
6085 (ufloatv16siv16sf2<mask_name>): Ditto.
6086 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
6087 (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
6088 (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
6089 (float<si2dfmodelower><mode>2<mask_name>): Ditto.
6090 (ufloatv8siv8df<mask_name>): Ditto.
6091 (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
6092 (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
6093 (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
6094 (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
6095 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
6096 (<mask_codefor>avx512f_unpckhps512<mask_name>): Ditto.
6097 (<mask_codefor>avx512f_unpcklps512<mask_name>): Ditto.
6098 (<mask_codefor>avx512f_movshdup512<mask_name>): Ditto.
6099 (<mask_codefor>avx512f_movsldup512<mask_name>): Ditto.
6100 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
6101 (vec_extract_lo_<mode><mask_name>): Ditto.
6102 (vec_extract_hi_<mode><mask_name>): Ditto.
6103 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
6104 (avx512f_movddup512<mask_name>): Ditto.
6105 (avx512f_unpcklpd512<mask_name>): Ditto.
6106 (*avx512f_unpcklpd512<mask_name>): Ditto.
6107 (*avx512f_vmscalef<mode>): Ditto.
6108 (avx512f_scalef<mode><mask_name>): Ditto.
6109 (avx512f_getexp<mode><mask_name>): Ditto.
6110 (<mask_codefor>avx512f_align<mode><mask_name>): Ditto.
6111 (avx512f_rndscale<mode><mask_name>): Ditto.
6112 (avx512f_shufps512_1<mask_name>): Ditto.
6113 (avx512f_shufpd512_1<mask_name>): Ditto.
6114 (<plusminus_insn><mode>3<mask_name>): Ditto.
6115 (*<plusminus_insn><mode>3<mask_name>): Ditto.
6116 (vec_widen_umult_even_v16si<mask_name>): Ditto.
6117 (*vec_widen_umult_even_v16si<mask_name>): Ditto.
6118 (vec_widen_smult_even_v16si<mask_name>): Ditto.
6119 (*vec_widen_smult_even_v16si<mask_name>): Ditto.
6120 (mul<mode>3<mask_name>): Ditto.
6121 (*<sse4_1_avx2>_mul<mode>3<mask_name>): Ditto.
6122 (<shift_insn><mode>3<mask_name>): Ditto.
6123 (avx512f_<rotate>v<mode><mask_name>/rotate): Ditto.
6124 (avx512f_<rotate><mode><mask_name>): Ditto.
6125 (<code><mode>3<mask_name>/maxmin): Ditto.
6126 (*avx2_<code><mode>3<mask_name>/maxmin): Ditto.
6127 (<sse2_avx2>_andnot<mode>3<mask_name>): Ditto.
6128 (*andnot<mode>3<mask_name>): Ditto.
6129 (<mask_codefor><code><mode>3<mask_name>/any_logic): Ditto.
6130 (<mask_codefor>avx512f_interleave_highv16si<mask_name>): Ditto.
6131 (<mask_codefor>avx512f_interleave_lowv16si<mask_name>): Ditto.
6132 (<mask_codefor>avx512f_vinsert<shuffletype>32x4_1<mask_name>): Ditto.
6133 (vec_set_lo_<mode><mask_name>): Ditto.
6134 (vec_set_hi_<mode><mask_name>): Ditto.
6135 (avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ditto.
6136 (avx512f_shuf_<shuffletype>32x4_1<mask_name>): Ditto.
6137 (avx512f_pshufd_1<mask_name>): Ditto.
6138 (<mask_codefor>abs<mode>2<mask_name>): Ditto.
6139 (<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>): Ditto.
6140 (avx512f_<code>v16hiv16si2<mask_name>/any_extend): Ditto.
6141 (avx512f_<code>v8qiv8di2<mask_name>/any_extend): Ditto.
6142 (avx512f_<code>v8hiv8di2<mask_name>/any_extend): Ditto.
6143 (avx512f_<code>v8siv8di2<mask_name>/any_extend): Ditto.
6144 (avx512er_exp2<mode><mask_name>): Ditto.
6145 (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
6146 (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
6147 (<avx2_avx512f>_permvar<mode><mask_name>): Ditto.
6148 (<avx2_avx512f>_perm<mode>_1<mask_name>): Ditto.
6149 (<mask_codefor>avx512f_vec_dup<mode><mask_name>): Ditto.
6150 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V16FI): Ditto.
6151 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V8FI): Ditto.
6152 (<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>): Ditto.
6153 (<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>): Ditto.
6154 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF2): Ditto.
6155 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF1): Ditto.
6156 (*<sse2_avx_avx512f>_vpermilp<mode><mask_name>): Ditto.
6157 (<sse2_avx_avx512f>_vpermilvar<mode>3<mask_name>): Ditto.
6158 (<avx2_avx512f>_ashrv<mode><mask_name>): Ditto.
6159 (<avx2_avx512f>_<shift_insn>v<mode><mask_name>): Ditto.
6160 (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
6161 (<mask_codefor>avx512f_vcvtps2ph512<mask_name>): Ditto.
6162 (avx512f_getmant<mode><mask_name>): Ditto.
6163 (clz<mode>2<mask_name>): Ditto.
6164 (<mask_codefor>conflict<mode><mask_name>): Ditto.
6165 (*srcp14<mode>): Remove visibility.
6166 (*rsqrt14<mode>): Ditto.
6167 (*fma_fmsub_<mode>): Ditto.
6168 (*fma_fnmadd_<mode>): Ditto.
6169 (*avx512f_rndscale<mode>): Ditto.
6170 * config/i386/subst.md: New file.
6172 2013-11-13 Joseph Myers <joseph@codesourcery.com>
6174 * doc/extend.texi (Statement Exprs, Typeof): Discuss __auto_type.
6175 * ginclude/stdatomic.h (kill_dependency, atomic_store_explicit)
6176 (atomic_load_explicit, atomic_exchange_explicit)
6177 (atomic_compare_exchange_strong_explicit)
6178 (atomic_compare_exchange_weak_explicit): Use __auto_type to
6179 declare variable initialized with PTR argument.
6181 2013-11-12 Jeff Law <law@redhat.com>
6183 * tree-ssa-threadedge.c (thread_around_empty_blocks): New argument
6184 backedge_seen_p. Set, use and pass it to children appropriately.
6185 (thread_through_normal_block): Similarly.
6186 (thread_across_edge): Similarly.
6188 * gimple-ssa-isolate-paths.c (check_loadstore): Mark discovered
6189 memory references as volatile.
6190 (insert_trap_and_remove_trailing_statements): Fix comment.
6192 2013-11-12 Vladimir Makarov <vmakarov@redhat.com>
6195 * ira-costs.c (record_operand_costs): Check operands number for
6198 2013-11-12 Michael Meissner <meissner@linux.vnet.ibm.com>
6201 * config/rs6000/rs6000.md (movdi_internal32): Eliminate
6202 constraints that would allow DImode into the traditional Altivec
6203 registers, but cause undesirable code generation when loading 0 as
6205 (movdi_internal64): Likewise.
6206 (cmp<mode>_fpr): Do not use %x for CR register output.
6207 (extendsfdf2_fpr): Fix constraints when -mallow-upper-df and
6208 -mallow-upper-sf debug switches are used.
6210 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
6212 * gimple-expr.h (create_tmp_var_name, create_tmp_var_raw,
6213 create_tmp_var, create_tmp_reg, mark_addressable, is_gimple_reg_rhs):
6214 Relocate prototypes from gimple.h.
6215 * gimplify.h: New File. Relocate some prototypes from gimple.h here.
6216 (gimple_predicate, enum fallback, enum gimplify_status): Relocate
6218 * gimple.h: Move some prototypes to gimplify.h.
6219 (gimple_predicate, enum fallback, enum gimplify_status): Move to
6221 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location):
6222 Relocate from gimpify.c.
6223 * gimple-expr.c (remove_suffix, tmp_var_id_num, create_tmp_var_name,
6224 create_tmp_var_raw, create_tmp_var, create_tmp_reg, mark_addressable,
6225 is_gimple_reg_rhs) Relocate from gimplify.c.
6226 * gimplify.c (mark_addressable): Move to gimple-expr.c.
6227 (gimple_seq_add_stmt_without_update): Move to gimple.c.
6228 (remove_suffix, tmp_var_id_num, create_tmp_var_name,
6229 create_tmp_var_raw, create_tmp_var, create_tmp_reg,
6230 is_gimple_reg_rhs): Move to gimple-expr.c.
6231 (should_carry_location_p): Move to gimple.c.
6232 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location): Move
6234 (annotate_one_with_location, annotate_all_with_location_after,
6235 annotate_all_with_location): Move to gimple.c.
6236 (compare_case_labels, sort_case_labels,
6237 preprocess_case_label_vec_for_gimple): Move to gimple.c.
6238 (rhs_predicate_for): Make static.
6239 (gimplify_assign): Relocate from gimple.c.
6240 * gimple.c (gimplify_assign): Move to gimplify.c.
6241 (gimple_seq_add_stmt_without_update, should_carry_location_p,
6242 annotate_one_with_location, annotate_all_with_location_after,
6243 annotate_all_with_location, compare_case_labels, sort_case_labels,
6244 preprocess_case_label_vec_for_gimple): Relocate from gimplify.c.
6245 * tree.h (unshare_expr, unshare_expr_without_location,
6246 mark_addressable): Move prototypes to gimplify.h.
6247 * Makefile.in (GTFILES): gimple-expr.c now has the GTY tag for
6249 * asan.c: Include gimplify.h rather than gimple.h.
6250 * cfgloopmanip.c: Likewise.
6251 * cgraphunit.c: Likewise.
6252 * cilk-common.c: Likewise.
6253 * dwarf2out.c: Dont include gimple.h.
6254 * fold-const.c: Include gimplify.h rather than gimple.h.
6255 * function.c: Likewise.
6256 * gimple-fold.c: Likewise.
6257 * gimple-ssa-strength-reduction.c: Likewise.
6258 * graphite-clast-to-gimple.c: Likewise.
6259 * graphite-sese-to-poly.c: Likewise.
6260 * ipa-prop.c: Likewise.
6261 * ipa-split.c: Likewise.
6263 * langhooks.c: Dont include gimple.h.
6264 * loop-init.c: Include gimplify.h rather than gimple.h.
6265 * omp-low.c: Likewise.
6267 * stor-layout.c: Likewise.
6268 * targhooks.c: Likewise.
6269 * trans-mem.c: Likewise.
6270 * tree-affine.c: Likewise.
6271 * tree-cfg.c: Likewise.
6272 * tree-cfgcleanup.c: Likewise.
6273 * tree-complex.c: Likewise.
6274 * tree-if-conv.c: Likewise.
6275 * tree-inline.c: Likewise.
6276 * tree-iterator.c: Likewise.
6277 * tree-loop-distribution.c: Likewise.
6278 * tree-nested.c: Likewise.
6279 * tree-parloops.c: Likewise.
6280 * tree-predcom.c: Likewise.
6281 * tree-profile.c: Likewise.
6282 * tree-scalar-evolution.c: Likewise.
6283 * tree-sra.c: Likewise.
6284 * tree-ssa-address.c: Likewise.
6285 * tree-ssa-ccp.c: Likewise.
6286 * tree-ssa-dce.c: Likewise.
6287 * tree-ssa-forwprop.c: Likewise.
6288 * tree-ssa-ifcombine.c: Likewise.
6289 * tree-ssa-loop-im.c: Likewise.
6290 * tree-ssa-loop-ivopts.c: Likewise.
6291 * tree-ssa-loop-manip.c: Likewise.
6292 * tree-ssa-loop-niter.c: Likewise.
6293 * tree-ssa-loop-prefetch.c: Likewise.
6294 * tree-ssa-loop-unswitch.c: Likewise.
6295 * tree-ssa-math-opts.c: Likewise.
6296 * tree-ssa-phiopt.c: Likewise.
6297 * tree-ssa-phiprop.c: Likewise.
6298 * tree-ssa-pre.c: Likewise.
6299 * tree-ssa-propagate.c: Likewise.
6300 * tree-ssa-reassoc.c: Likewise.
6301 * tree-ssa-sccvn.c: Likewise.
6302 * tree-ssa-strlen.c: Likewise.
6303 * tree-ssa.c: Likewise.
6304 * tree-switch-conversio: Likewise.n.c
6305 * tree-tailcall.c: Likewise.
6306 * tree-vect-data-refs.c: Likewise.
6307 * tree-vect-generic.c: Likewise.
6308 * tree-vect-loop-manip.c: Likewise.
6309 * tree-vect-loop.c: Likewise.
6310 * tree-vect-patterns.c: Likewise.
6311 * tree-vect-stmts.c: Likewise.
6313 * value-prof.c: Likewise.
6314 * config/aarch64/aarch64.c: Include gimplify.h instead of gimple.h.
6315 * config/alpha/alpha.c: Likewise.
6316 * config/darwin.c: Likewise.
6317 * config/i386/i386.c: Likewise.
6318 * config/ia64/ia64.c: Likewise.
6319 * config/mep/mep.c: Likewise.
6320 * config/mips/mips.c: Likewise.
6321 * config/rs6000/rs6000.c: Likewise.
6322 * config/s390/s390.c: Likewise.
6323 * config/sh/sh.c: Likewise.
6324 * config/sparc/sparc.c: Likewise.
6325 * config/spu/spu.c: Likewise.
6326 * config/stormy16/stormy16.c: Likewise.
6327 * config/tilegx/tilegx.c: Likewise.
6328 * config/tilepro/tilepro.c: Likewise.
6329 * config/xtensa/xtensa.c: Likewise.
6331 2013-11-12 Adam Butcher <adam@jessamine.co.uk>
6333 * tree.c (grow_tree_vec_stat): New function ...
6334 * tree.h (grow_tree_vec_stat) (grow_tree_vec): ... and its declaration
6335 and macro front-end.
6337 2013-11-12 Marek Polacek <polacek@redhat.com>
6339 * final.c (update_alignments): Initialize label to NULL_RTX.
6341 2013-11-12 Jeff Law <law@redhat.com>
6343 * gimple-ssa-isolate-paths.c (check_loadstore): New function.
6344 (insert_trap_and_remove_trailing_statements): New argument OP which
6345 is the NULL pointer. Emit the trap after the load/store through
6346 the NULL pointer. Simplify the RHS of a store through a NULL pointer
6347 when trivial to do so.
6348 (isolate_path): Corresponding changes.
6349 (gimple_ssa_isolate_erroneous_path): Likewise.
6351 2013-11-12 Teresa Johnson <tejohnson@google.com>
6352 Jan Hubicka <jh@suse.cz>
6354 * predict.c (drop_profile): New function.
6355 (handle_missing_profiles): Ditto.
6356 (counts_to_freqs): Don't overwrite estimated frequencies
6357 when function has no profile counts.
6358 * predict.h (handle_missing_profiles): Declare.
6359 * tree-inline.c (freqs_to_counts): New function.
6360 (copy_cfg_body): Invoke freqs_to_counts as needed.
6361 * tree-profile.c (tree_profiling): Invoke handle_missing_profiles.
6363 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
6366 * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL):
6368 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Set for m_HASWELL.
6370 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
6373 * config/i386/i386.c (ix86_option_override_internal): Check
6374 X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL and
6375 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL for
6376 MASK_AVX256_SPLIT_UNALIGNED_LOAD and
6377 MASK_AVX256_SPLIT_UNALIGNED_STORE.
6379 * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
6380 Clear m_COREI7_AVX and update comments.
6381 (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Likewise.
6383 2013-11-12 Martin Jambor <mjambor@suse.cz>
6385 PR rtl-optimization/10474
6386 * ira.c (interesting_dest_for_shprep): New function.
6387 (split_live_ranges_for_shrink_wrap): Likewise.
6388 (find_moveable_pseudos): Move calculation of dominance info,
6389 df_analysios and the final anlyses to...
6390 (ira): ...here, call split_live_ranges_for_shrink_wrap.
6392 2013-11-12 Bin Cheng <bin.cheng@arm.com>
6394 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Refactor the code.
6395 Handle type conversion.
6397 2013-11-11 Martin Liska <marxin.liska@gmail.com>
6398 Jan Hubicka <jh@suse.cz>
6400 * cgraph.c (dump_cgraph_node): Profile dump added.
6401 * cgraph.h (struct cgraph_node): New time profile variable added.
6402 * cgraphclones.c (cgraph_clone_node): Time profile is cloned.
6403 * gcov-io.h (gcov_type): New profiler type introduced.
6404 * ipa-profile.c (lto_output_node): Streaming for time profile added.
6405 (input_node): Time profiler is read from LTO stream.
6406 * predict.c (maybe_hot_count_p): Hot prediction changed.
6407 * profile.c (instrument_values): New case for time profiler added.
6408 (compute_value_histograms): Read of time profile.
6409 * tree-pretty-print.c (dump_function_header): Time profiler is dumped.
6410 * tree-profile.c (init_ic_make_global_vars): Time profiler
6412 (gimple_init_edge_profiler): TP function instrumentation.
6413 (gimple_gen_time_profiler): New.
6414 * value-prof.c (gimple_add_histogram_value): Support for time profiler
6416 (dump_histogram_value): TP type added to dumps.
6417 (visit_hist): More sensitive check that takes TP into account.
6418 (gimple_find_values_to_profile): TP instrumentation.
6419 * value-prof.h (hist_type): New histogram type added.
6420 (struct histogram_value_t): Pointer to struct function added.
6421 * libgcc/Makefile.in: New GCOV merge function for TP added.
6422 * libgcov.c: function_counter variable introduced.
6423 (_gcov_merge_time_profile): New.
6424 (_gcov_time_profiler): New.
6426 2013-11-11 Marc Glisse <marc.glisse@inria.fr>
6427 Jeff Law <law@redhat.com>
6429 * tree-ssa-alias.c (stmt_kills_ref_p_1): Use
6430 ao_ref_init_from_ptr_and_size for builtins.
6432 2013-11-11 Uros Bizjak <ubizjak@gmail.com>
6433 H.J. Lu <hongjiu.lu@intel.com>
6436 * config/i386/x86-tune.def
6437 (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
6438 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES.
6439 * config/i386/i386.h
6440 (TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
6441 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES. Update for renamed
6442 X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES.
6443 * config/i386/i386.c (ix86_expand_set_or_movmem): Use
6444 TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES to calculate
6445 misaligned_prologue_used. Check that
6446 desired_aling <= epilogue_size_needed.
6448 2013-11-11 Cong Hou <congh@google.com>
6450 PR tree-optimization/59050
6451 * tree-vect-data-refs.c (comp_dr_addr_with_seg_len_pair): Bug fix.
6453 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
6456 * expmed.c (emit_store_flag): Fail for const-const comparison.
6458 2013-11-11 Tristan Gingold <gingold@adacore.com>
6459 Eric Botcazou <ebotcazou@adacore.com>
6461 * tree.h (CONSTRUCTOR_NO_CLEARING): Define.
6462 * tree-core.h (CONSTRUCTOR_NO_CLEARING): Document it.
6463 * tree.def (CONSTRUCTOR): Likewise.
6464 * doc/generic.texi (CONSTRUCTOR): Likewise. Update description.
6465 * gimplify.c (gimplify_init_constructor): Do not clear the object when
6466 the constructor is incomplete and CONSTRUCTOR_NO_CLEARING is set.
6468 2013-11-11 Basile Starynkevitch <basile@starynkevitch.net>
6470 * toplev.c (toplev_main): Move PLUGIN_FINISH invocation before
6473 2013-11-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6475 * config/arm/arm.c (arm_new_rtx_costs): Return after handling
6478 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
6480 * config/arc/arc.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.
6482 2013-11-08 Jeff Law <law@redhat.com>
6484 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
6485 threading paths first, then perform PHI node checks if applicable.
6487 2013-11-10 Karlson2k <k2k@narod.ru>
6488 Kai Tietz <ktietz@redhat.com>
6491 * configure.ac: Adding for exported symbols check
6492 and for rdynamic-check executable-extension.
6493 * configure: Regenerated.
6495 2013-11-10 Uros Bizjak <ubizjak@gmail.com>
6497 * mode-switching.c (optimize_mode_switching): Mark block as
6498 nontransparent, if last_mode at block exit is different from no_mode.
6500 2013-11-09 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6502 * function.c (NAME__MAIN): Move to...
6503 * cfgexpand.c (NAME__MAIN): ...here.
6505 2013-11-09 Richard Sandiford <rdsandiford@googlemail.com>
6507 * target.def (can_use_doloop_p): New hook.
6508 * doc/tm.texi.in (TARGET_CAN_USE_DOLOOP_P): Add.
6509 * doc/tm.texi: Regenerate.
6510 * doc/md.texi (doloop_begin, doloop_end): Update documentation.
6511 * hooks.h (hook_bool_dint_dint_uint_true): Declare.
6512 * hooks.c (hook_bool_dint_dint_uint_true): New function.
6513 * targhooks.h (can_use_doloop_if_innermost): Declare.
6514 * targhooks.c (can_use_doloop_if_innermost): New function.
6515 * target.h: Include double-int.h.
6516 * loop-doloop.c (doloop_optimize): Call targetm.can_use_doloop_p.
6517 Remove iteration count, maximum iteration count, loop depth and
6518 enter-at-top inputs from doloop_begin and doloop_end.
6519 * config/arc/arc.md (doloop_begin, doloop_end): Update for new
6521 * config/arc/arc.c (arc_can_use_doloop_p): New function.
6522 (TARGET_CAN_USE_DOLOOP_P): Define.
6523 * config/arm/thumb2.md (doloop_end): Update for new interface.
6524 * config/arm/arm.c (TARGET_CAN_USE_DOLOOP_P): Define.
6525 * config/bfin/bfin.md (doloop_end): Update for new interface.
6526 * config/bfin/bfin.c (bfin_can_use_doloop_p): New function.
6527 (TARGET_CAN_USE_DOLOOP_P): Define.
6528 * config/c6x/c6x.md (doloop_end): Update for new interface.
6529 * config/ia64/ia64.md (doloop_end): Update for new interface.
6530 * config/ia64/ia64.c (TARGET_CAN_USE_DOLOOP_P): Define.
6531 * config/mep/mep.md (doloop_begin, doloop_end): Update for new
6533 * config/mep/mep.c (mep_emit_doloop): Likewise.
6534 (TARGET_CAN_USE_DOLOOP_P): Define.
6535 * config/rs6000/rs6000.md (doloop_end): Update for new interface.
6536 * config/rs6000/rs6000.c (TARGET_CAN_USE_DOLOOP_P): Define.
6537 * config/s390/s390.md (doloop_end): Update for new interface.
6538 * config/sh/sh.md (doloop_end): Likewise.
6539 * config/spu/spu.md (doloop_end): Likewise.
6540 * config/spu/spu.c (TARGET_CAN_USE_DOLOOP_P): Define.
6541 * config/tilegx/tilegx.md (doloop_end): Update for new interface.
6542 * config/tilegx/tilegx.c (TARGET_CAN_USE_DOLOOP_P): Define.
6543 * config/tilepro/tilepro.md (doloop_end): Update for new interface.
6544 * config/tilepro/tilepro.c (TARGET_CAN_USE_DOLOOP_P): Define.
6545 * config/v850/v850.md (doloop_begin, doloop_end): Update for new
6547 * config/v850/v850.c (TARGET_CAN_USE_DOLOOP_P): Define.
6549 2013-11-08 H.J. Lu <hongjiu.lu@intel.com>
6552 * doc/extend.texi: Move Cilk Plus Builtins node before Other
6555 2013-11-08 Andrew MacLeod <amacleod@redhat.com>
6556 Joseph Myers <joseph@codesourcery.com>
6558 * ginclude/stdatomic.h: New file.
6559 * Makefile.in (USER_H): Add stdatomic.h.
6561 2013-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6563 * config/arm/arm.c (arm_new_rtx_costs): Break after handling
6566 2013-11-08 Jeff Law <law@redhat.com>
6568 * tree-ssa-threadupdate.h (delete_thread_path): Declare.
6569 * tree-ssa-threadupdate.c (delete_thread_path): New function.
6570 (ssa_redirect_edges, thread_block_1): Use it.
6571 (thread_through_loop_header, mark_threaded_blocks): Likewise.
6572 (thread_through_all_blocks, register_jump_thread): Likewise.
6573 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
6575 2013-11-08 James Greenhalgh <james.greenhalgh@arm.com>
6577 * config/arm/aarch-common.c
6578 (search_term): New typedef.
6579 (shift_rtx_costs): New array.
6580 (arm_rtx_shift_left_p): New.
6581 (arm_find_sub_rtx_with_search_term): Likewise.
6582 (arm_find_sub_rtx_with_code): Likewise.
6583 (arm_early_load_addr_dep): Add sanity checking.
6584 (arm_no_early_alu_shift_dep): Likewise.
6585 (arm_no_early_alu_shift_value_dep): Likewise.
6586 (arm_no_early_mul_dep): Likewise.
6587 (arm_no_early_store_addr_dep): Likewise.
6589 2013-11-08 Richard Biener <rguenther@suse.de>
6591 PR tree-optimization/59047
6592 * tree-predcom.c (ref_at_iteration): Handle bitfield accesses properly.
6594 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
6596 * common.opt (fcheck-pointer-bounds): Move to ...
6597 * c-family/c.opt: ... here.
6598 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
6599 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
6600 * langhooks.h (lang_hooks): Remove chkp_supported field.
6601 * toplev.c (process_options): Remove chkp_supported check.
6603 2013-11-08 Richard Biener <rguenther@suse.de>
6605 PR tree-optimization/59038
6606 PR tree-optimization/58955
6607 * tree-loop-distribution.c (pg_add_dependence_edges): Revert
6608 previous change. Handle known dependences correctly.
6610 2013-11-08 Tom de Vries <tom@codesourcery.com>
6612 * config/rs6000/t-xilinx: Remove duplicate contents.
6614 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
6615 Joseph Myers <joseph@codesourcery.com>
6617 * tree-core.h (enum cv_qualifier): Add TYPE_QUAL_ATOMIC.
6618 (enum tree_index): Add TI_ATOMICQI_TYPE, TI_ATOMICHI_TYPE,
6619 TI_ATOMICSI_TYPE, TI_ATOMICDI_TYPE and TI_ATOMICTI_TYPE.
6620 (struct tree_base): Add atomic_flag field.
6621 * tree.h (TYPE_ATOMIC): New accessor macro.
6622 (TYPE_QUALS, TYPE_QUALS_NO_ADDR_SPACE): Add TYPE_QUAL_ATOMIC.
6623 (TYPE_QUALS_NO_ADDR_SPACE_NO_ATOMIC): New macro.
6624 (atomicQI_type_node, atomicHI_type_node, atomicSI_type_node)
6625 (atomicDI_type_node, atomicTI_type_node): New macros for type nodes.
6626 * tree.c (set_type_quals): Set TYPE_ATOMIC.
6627 (find_atomic_core_type): New function.
6628 (build_qualified_type): Adjust alignment for qualified types.
6629 (build_atomic_base): New function
6630 (build_common_tree_nodes): Build atomicQI_type_node,
6631 atomicHI_type_node, atomicSI_type_node, atomicDI_type_node and
6633 * print-tree.c (print_node): Print atomic qualifier.
6634 * tree-pretty-print.c (dump_generic_node): Print atomic type attribute.
6635 * target.def (atomic_assign_expand_fenv): New hook.
6636 * doc/tm.texi.in (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New @hook.
6637 * doc/tm.texi: Regenerate.
6638 * targhooks.c (default_atomic_assign_expand_fenv): New function.
6639 * targhooks.h (default_atomic_assign_expand_fenv): Declare.
6640 * sync-builtins.def (__atomic_feraiseexcept): New built-in function.
6641 * config/i386/i386-builtin-types.def (VOID_FTYPE_PUSHORT): New
6643 * config/i386/i386.c (enum ix86_builtins): Add
6644 IX86_BUILTIN_FNSTENV, IX86_BUILTIN_FLDENV, IX86_BUILTIN_FNSTSW and
6645 IX86_BUILTIN_FNCLEX.
6646 (bdesc_special_args): Add __builtin_ia32_fnstenv,
6647 __builtin_ia32_fldenv, __builtin_ia32_fnstsw and __builtin_ia32_fnclex.
6648 (ix86_expand_builtin): Handle the new built-in functions.
6649 (ix86_atomic_assign_expand_fenv): New function.
6650 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New macro.
6651 * config/i386/i386.md (UNSPECV_FNSTENV, UNSPECV_FLDENV)
6652 (UNSPECV_FNSTSW, UNSPECV_FNCLEX): New unspecs.
6653 (fnstenv, fldenv, fnstsw, fnclex): New insns.
6655 2013-11-07 Steve Ellcey <sellcey@mips.com>
6657 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add fp64 directory.
6658 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add -mfp64 flag.
6659 (MULTILIB_DIRNAMES): Add fp64 directory.
6660 (MULTILIB_EXCEPTIONS): Add new exclusions.
6662 2013-11-07 Aldy Hernandez <aldyh@redhat.com>
6664 * gimplify.c (gimple_regimplify_operands): Do not set
6666 * graphite-sese-to-poly.c (remove_simple_copy_phi): Same.
6667 (rewrite_close_phi_out_of_ssa): Same.
6668 (rewrite_phi_out_of_ssa): Same.
6669 (rewrite_degenerate_phi): Same.
6670 (handle_scalar_deps_crossing_scop_limits): Same.
6671 * tree-if-conv.c (predicate_scalar_phi): Same.
6672 * tree-parloops.c (create_loads_for_reductions): Same.
6673 (create_final_loads_for_reduction): Same.
6674 (create_loads_and_stores_for_name): Same.
6675 (transform_to_exit_first_loop): Same.
6676 (create_parallel_loop): Same.
6677 * tree-ssa-loop-im.c
6678 (move_computations_dom_walker::before_dom_children): Same.
6679 * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Same.
6680 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Same.
6681 * tree-ssa-propagate.c (substitute_and_fold): Same.
6682 * tree-vect-loop.c (vect_finalize_reduction): Same.
6683 * tree-vect-stmts.c (vectorizable_call): Same.
6685 2013-11-07 Mike Stump <mikestump@comcast.net>
6687 * config/pdp11/pdp11.c: Include dbxout.h.
6688 * config/picochip/picochip.c: Likewise.
6690 2013-11-07 Cong Hou <congh@google.com>
6692 PR tree-optimization/56764
6693 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
6694 Combine alias checks if it is possible to amortize the runtime
6695 overhead. Return the number of alias checks after merging.
6696 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
6697 Use the function vect_create_cond_for_alias_checks () to check
6698 the number of alias checks.
6700 2013-11-07 Jeff Law <law@redhat.com>
6702 * varpool.c (ctor_for_folding): Fix typo in comment.
6704 2013-11-07 Joern Rennecke <joern.rennecke@embecosm.com>
6706 * config/arc/arc.c (arc_ifcvt): Use commutativity, e.g.:
6707 reg_a := reg_b + reg_a ==> reg_a := reg_a + reg_b
6709 2013-11-07 Jeff Law <law@redhat.com>
6711 * doc/invoke.texi (-fisolate-erroneous-paths): Document.
6713 * gimple-ssa-isolate-paths.c (gate_isolate_erroneous_paths):
6714 No longer check if we have __builtin_trap, assume it's available.
6716 2013-11-07 Diego Novillo <dnovillo@google.com>
6718 * attribs.c (lookup_scoped_attribute_spec): Make static.
6719 (get_attribute_namespace): Likewise.
6720 * builtins.c (more_const_call_expr_args_p): Move from tree.h.
6721 (validate_arglist): Move earlier in the file. Make static.
6722 (expand_stack_restore): Move from stmt.c
6723 (expand_stack_save): Move from stmt.c
6724 (rewrite_call_expr_array): Move earlier in the file.
6725 (rewrite_call_expr_valist): Likewise.
6726 * cfgexpand.c: Include hard-reg-set.h before tree.h
6729 (expand_asm_loc): Move from stmt.c.
6730 (n_occurrences): Move from stmt.c.
6731 (check_operand_nalternatives): Move from stmt.c.
6732 (tree_conflicts_with_clobbers_p): Move from stmt.c.
6733 (expand_asm_operands): Move from stmt.c
6734 (expand_asm_stmt): Move from stmt.c
6735 (expand_computed_goto): Move from stmt.c
6736 (expand_goto): Move from stmt.c
6737 (expand_null_return_1): Move from stmt.c
6738 (expand_null_return): Move from stmt.c
6739 (expand_value_return): Move from stmt.c
6740 (expand_return): Move from stmt.c
6741 (expand_main_function): Move from function.c
6742 (stack_protect_prologue): Move from function.c
6743 * cgraphclones.c (build_function_type_skip_args): Move from tree.c.
6744 (build_function_decl_skip_args): Move from tree.c.
6745 * explow.c (tree_expr_size): Move from tree.c.
6746 * expr.c (addr_expr_of_non_mem_decl_p): Remove.
6747 (fields_length): Move from tree.c.
6748 * fold-const.c (size_low_cst): Move from tree.c.
6749 (tree_expr_nonzero_warnv_p): Make static. Move earlier in the file.
6750 (tree_expr_nonzero_p): Make static. Move earlier in the file.
6751 (fold_build3_initializer_loc): Remove.
6752 (tree_invalid_nonnegative_warnv_p): Make static.
6753 * function.c (expand_main_function): Move to cfgexpand.c.
6754 (stack_protect_prologue): Move to cfgexpand.c.
6755 (set_insn_locations): Move earlier in the file.
6756 * gimple-fold.c: Include langhooks.h.
6757 (truth_type_for): Move from tree.c.
6758 * print-tree.c (print_vec_tree): Remove.
6759 * stmt.c (expand_computed_goto): Move to cfgexpand.c.
6760 (expand_goto): Move to cfgexpand.c.
6761 (n_occurrences): Move to cfgexpand.c.
6762 (expand_asm_loc): Move to cfgexpand.c
6763 (tree_conflicts_with_clobbers_p): Move to cfgexpand.c.
6764 (expand_asm_operands): Move to cfgexpand.c.
6765 (expand_asm_stmt): Move to cfgexpand.c.
6766 (check_operand_nalternatives): Move to cfgexpand.c
6767 (expand_null_return): Move to cfgexpand.c.
6768 (expand_value_return): Move to cfgexpand.c.
6769 (expand_null_return_1): Move to cfgexpand.c.
6770 (expand_return): Move to cfgexpand.c.
6771 (expand_stack_save): Move to builtins.c.
6772 (expand_stack_restore): Move to builtins.c
6773 * symtab.c: Include output.h.
6774 (decl_assembler_name_hash): Move from tree.c.
6775 (decl_assembler_name_equal): Move from tree.c.
6776 * trans-mem.c (is_tm_safe_or_pure): Move from tree.h.
6777 * tree-eh.c (in_array_bounds_p): Move from tree.c.
6778 (range_in_array_bounds_p): Move from tree.c.
6779 * tree-object-size.c (fini_object_sizes): Make static.
6780 * tree-ssa-dom.c (iterative_hash_exprs_commutative): Move from tree.h.
6781 * tree-vrp.c (ssa_name_nonnegative_p): Remove.
6782 * tree.c (decl_assembler_name_equal): Move to symtab.c.
6783 (tree_expr_size): Move to explow.c.
6784 (decl_assembler_name_hash): Move to symtab.c.
6785 (real_twop): Remove.
6786 (tree_expr_size): Move to explow.c.
6787 (stabilize_reference_1): Move earlier in the file. Make static.
6788 (omp_remove_redundant_declare_simd_attrs): Remove.
6789 (simple_cst_list_equal): Move earlier in the file. Make static.
6790 (size_low_cst): Move to fold-const.c.
6791 (build_type_no_quals): Remove.
6792 (build_function_type_skip_args): Move to cgraphclones.c.
6793 (build_function_decl_skip_args): Move to cgraphclones.c.
6794 (in_array_bounds_p): Move to tree-eh.c.
6795 (range_in_array_bounds_p): Move to tree-eh.c.
6796 (truth_type_for): Move to gimple-fold.c.
6797 (list_equal_p): Remove.
6798 * tree.h (decl_assembler_name_equal): Remove.
6799 (decl_assembler_name_hash): Remove.
6800 (truth_type_for): Remove.
6801 (build_type_no_quals): Remove.
6802 (build_function_decl_skip_args): Remove.
6803 (in_array_bounds_p): Remove.
6804 (range_in_array_bounds_p): Remove.
6805 (size_low_cst): Remove.
6806 (omp_remove_redundant_declare_simd_attrs): Remove.
6807 (tree_expr_size): Remove.
6808 (fields_length): Remove.
6809 (stabilize_reference_1): Remove.
6810 (expand_goto): Remove.
6811 (expand_stack_save): Remove.
6812 (expand_stack_restore): Remove.
6813 (expand_return): Remove.
6814 (fold_build3_initializer_loc): Remove.
6815 (tree_expr_nonzero_p): Remove.
6816 (tree_invalid_nonnegative_warnv_p): Remove.
6817 (tree_expr_nonzero_warnv_p): Remove.
6818 (fold_builtin_snprintf_chk): Remove.
6819 (validate_arglist): Remove.
6820 (iterative_hash_exprs_commutative): Move to tree-ssa-dom.c.
6821 (simple_cst_list_equal): Remove.
6822 (real_twop): Remove.
6823 (expand_main_function): Remove.
6824 (stack_protect_prologue): Remove.
6825 (print_vec_tree): Remove.
6826 (lookup_scoped_attribute_spec): Remove.
6827 (get_attribute_namespace): Remove.
6828 (expand_computed_goto): Remove.
6829 (expand_asm_stmt): Remove.
6830 (list_equal_p): Remove.
6831 (ssa_name_nonnegative_p): Remove.
6832 (fini_object_sizes): Remove.
6833 (addr_expr_of_non_mem_decl_p): Remove.
6834 (is_tm_safe_or_pure): Move to trans-mem.c.
6835 (more_const_call_expr_args_p): Remove.
6836 (save_vtable_map_decl): Remove.
6838 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
6840 * doc/sourcebuild.texi (Top Level) <lto-plugin>: GNU ld can use
6841 linker plugins, too.
6843 * config/arc/arc.h (LINK_COMMAND_SPEC): For -ftree-parallelize-loops=*,
6844 link to libgomp and its dependencies.
6845 * config/ia64/hpux.h (LIB_SPEC): Likewise.
6846 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
6847 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
6848 * gcc.c (GOMP_SELF_SPECS): Update comment about libgomp's dependencies.
6850 2013-11-07 Jakub Jelinek <jakub@redhat.com>
6852 * tree-ssa-loop-niter.c: Include tree-ssanames.h.
6853 (determine_value_range): Add loop argument. Use get_range_info to
6855 (bound_difference): Adjust caller.
6857 2013-11-07 Richard Biener <rguenther@suse.de>
6858 Jakub Jelinek <jakub@redhat.com>
6860 * tree-vrp.c (find_assert_locations): Pre-seed live bitmaps for loop
6861 latches from header PHI arguments from the latch edge.
6863 2013-11-07 Paolo Carlini <paolo.carlini@oracle.com>
6866 * varasm.c (output_constant): Handle NULLPTR_TYPE.
6868 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
6870 * config/i386/i386.c (ix86_expand_set_or_movmem): Don't set
6871 misaligned_prologue_used when it has been set.
6873 2013-11-07 Yury Gribov <y.gribov@samsung.com>
6874 Jakub Jelinek <jakub@redhat.com>
6877 * asan.c (get_mem_refs_of_builtin_call): Allow
6878 integer literals as addresses in instrumented builtins.
6880 2013-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6882 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
6883 Explain why plus_constant is not used.
6885 2013-11-07 Richard Biener <rguenther@suse.de>
6887 * tree-ssa-ccp.c (canonicalize_float_value): Rename to ...
6888 (canonicalize_value): ... this. Also handle stripping of
6890 (get_value, set_lattice_value, get_value_for_expr): Adjust.
6891 * gimple-fold.c (canonicalize_constructor_val): Strip TREE_OVERFLOW.
6892 * tree-ssa-threadedge.c (set_ssa_name_value): Likewise.
6894 2013-11-07 Richard Biener <rguenther@suse.de>
6896 * tree-dfa.c (get_ref_base_and_extent): Fix casting.
6898 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
6901 * config/i386/i386.md (push peepholer/splitter): Use Pmode
6902 with stack_pointer_rtx.
6904 2013-11-07 Bin Cheng <bin.cheng@arm.com>
6906 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Check equality
6907 using operand_equal_p.
6909 2013-11-07 Bin Cheng <bin.cheng@arm.com>
6911 * tree-ssa-loop-ivopts.c (alloc_iv): Lower address expressions.
6912 * tree-affine.c (get_inner_reference_aff): Return base.
6913 * tree-affine.h (get_inner_reference_aff): Change prototype.
6915 2013-11-06 Tobias Burnus <burnus@net-b.de>
6917 * doc/invoke.texi (Wdate-time): Fix typo.
6919 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
6921 * config/sh/sh.md (addsf3, divsf3, divsf3_i, rsqrtsf2, cmpgtdf_t,
6922 cmpeqdf_t, *ieee_ccmpeqdf_t, negdf2, sqrtdf2, absdf2): Use
6923 fp_arith_reg_operand instead of arith_reg_operand.
6925 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
6927 * config/sh/sh.md (adddi3): Remove empty constraints.
6928 Remove can_create_pseudo_p and arith_reg_operand check.
6929 (adddi3_compact, subdi3_compact, *negdi2): Remove constraints.
6930 Split before reload.
6932 2013-11-06 Jeff Law <law@redhat.com>
6933 Tom Tromey <tromey@redhat.com>
6935 * gdbinit.in: Disable strict type checking.
6937 2013-11-06 Vladimir Makarov <vmakarov@redhat.com>
6939 * tree-pass.h (make_pass_live_range_shrinkage): New external.
6940 * timevar.def (TV_LIVE_RANGE_SHRINKAGE): New.
6941 * sched-rgn.c (gate_handle_live_range_shrinkage): New.
6942 (rest_of_handle_live_range_shrinkage): Ditto
6943 (class pass_live_range_shrinkage): Ditto.
6944 (pass_data_live_range_shrinkage): Ditto.
6945 (make_pass_live_range_shrinkage): Ditto.
6946 * sched-int.h (initialize_live_range_shrinkage): New prototype.
6947 (finish_live_range_shrinkage): Ditto.
6948 * sched-deps.c (create_insn_reg_set): Make void return value.
6949 * passes.def: Add pass_live_range_shrinkage.
6950 * ira.c (update_equiv_regs): Don't move if flag_live_range_shrinkage.
6951 * haifa-sched.c (live_range_shrinkage_p): New.
6952 (initialize_live_range_shrinkage, finish_live_range_shrinkage):
6954 (rank_for_schedule): Add code for pressure relief through live
6956 (schedule_insn): Print more debug info.
6957 (sched_init): Setup SCHED_PRESSURE_WEIGHTED for pressure relief
6958 through live range shrinkage.
6959 * doc/invoke.texi (-flive-range-shrinkage): New.
6960 * common.opt (flive-range-shrinkage): New.
6962 2013-11-06 Uros Bizjak <ubizjak@gmail.com>
6965 * config/i386/i386.c (ix86_avx_u128_mode_needed): Require
6966 AVX_U128_DIRTY mode for call_insn RTXes that use AVX256 registers.
6967 (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY mode for call_insn
6968 RTXes that return in AVX256 register.
6970 2013-11-06 Richard Biener <rguenther@suse.de>
6972 PR tree-optimization/58653
6973 * tree-predcom.c (ref_at_iteration): Rewrite to generate a MEM_REF.
6974 (prepare_initializers_chain): Adjust.
6976 2013-11-06 Andrew MacLeod <amacleod@redhat.com>
6978 * gimple.h (block_in_transaction): Move to basic-block.h and rename.
6979 (gimple_in_transaction): Use bb_in_transaction.
6980 * basic-block.h (bb_in_transaction): Relocate here and rename.
6981 * tree-ssa-loop-im.c (execute_sm): Use bb_in_transaction.
6983 2013-11-06 Richard Biener <rguenther@suse.de>
6985 * tree.c (drop_tree_overflow): New function.
6986 * tree.h (drop_tree_overflow): Declare.
6987 * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW.
6988 * tree-vrp.c (range_int_cst_singleton_p): Use
6989 is_overflow_infinity instead of testing TREE_OVERFLOW.
6990 (extract_range_from_assert): Likewise.
6991 (zero_nonzero_bits_from_vr): Likewise.
6992 (extract_range_basic): Likewise.
6993 (register_new_assert_for): Use drop_tree_overflow.
6994 (vrp_visit_phi_node): Likewise.
6996 2013-11-06 Eric Botcazou <ebotcazou@adacore.com>
6998 * config/i386/i386.c (ix86_expand_prologue): Optimize stack
6999 checking for leaf functions without dynamic stack allocation.
7000 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
7001 (ia64_expand_prologue): Likewise.
7002 * config/mips/mips.c (mips_expand_prologue): Likewise.
7003 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
7004 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
7005 (sparc_flat_expand_prologue): Likewise.
7007 2013-11-06 James Greenhalgh <james.greenhalgh@arm.com>
7009 * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Better model data size.
7010 (__ST3_LANE_FUNC): Likewise.
7011 (__ST4_LANE_FUNC): Likewise.
7013 2013-11-06 Nick Clifton <nickc@redhat.com>
7015 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define the
7016 name returned by msp430_mcu_name.
7017 (LIB_SPEC): If a -T option has not been specified then set a
7018 default, mcu-specific, linker script.
7019 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more mcu names.
7020 * config/msp430/msp430.c (msp430x_names): Likewise.
7021 Alpha sort the names for ease of comparison.
7022 (msp430_mcu_name): New function: Returns a string suitable for
7023 use as a C preprocessor symbol based upon the name of the MCU
7025 (msp430_option_override): Accept msp430x and msp430xv2 as generic
7027 * config/msp430/msp430-protos.h (msp430_mcu_name): Prototype.
7029 * gcc.c (do_spec_1): Do not insert a space after a %* substitution
7030 unless it is the last part of a spec substring.
7031 * doc/invoke.texi (Spec Files): Document space insertion
7034 2013-11-06 Christian Bruel <christian.bruel@st.com>
7036 * config/sh/sh-mem.cc (sh_expand_cmpnstr, sh_expand_cmpstr):
7037 Factorize probabilities, Use adjust_address instead of
7038 adjust_automodify_address when possible. Enable for optimize.
7039 (sh_expand_strlen): New function.
7040 * config/sh/sh-protos.h (sh_expand_strlen): Declare.
7041 * config/sh/sh.md (strlensi): New pattern.
7042 (UNSPEC_BUILTIN_STRLEN): Define.
7044 2013-11-06 Jakub Jelinek <jakub@redhat.com>
7047 * expr.c (get_bit_range): Handle *offset == NULL_TREE.
7048 (expand_assignment): If *bitpos is negative, set *offset
7049 and adjust *bitpos, so that it is not negative.
7051 2013-11-06 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7053 * config/i386/bdver3.md : Added two additional decoder units
7054 to support issue rate of 4 and remodeled vector unit.
7055 * config/i386/i386.c (ix86_issue_rate): Issue rate for BD
7056 architectures is set to 4.
7057 * config/i386/i386.c (ia32_multipass_dfa_lookahead): DFA
7058 lookahead is set to 4 for BD architectures.
7060 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7062 * config/rs6000/rs6000.c (rs6000_option_override_internal):
7063 Remove restriction against use of VSX instructions when generating
7064 code for little endian mode.
7066 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7068 * config/rs6000/altivec.md (mulv4si3): Ensure we generate vmulouh
7069 for both big and little endian.
7070 (mulv8hi3): Swap input operands for merge high and merge low
7071 instructions for little endian.
7073 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7075 * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Change
7076 define_insn to define_expand that uses even patterns for big
7077 endian and odd patterns for little endian.
7078 (vec_widen_smult_even_v16qi): Likewise.
7079 (vec_widen_umult_even_v8hi): Likewise.
7080 (vec_widen_smult_even_v8hi): Likewise.
7081 (vec_widen_umult_odd_v16qi): Likewise.
7082 (vec_widen_smult_odd_v16qi): Likewise.
7083 (vec_widen_umult_odd_v8hi): Likewise.
7084 (vec_widen_smult_odd_v8hi): Likewise.
7085 (altivec_vmuleub): New define_insn.
7086 (altivec_vmuloub): Likewise.
7087 (altivec_vmulesb): Likewise.
7088 (altivec_vmulosb): Likewise.
7089 (altivec_vmuleuh): Likewise.
7090 (altivec_vmulouh): Likewise.
7091 (altivec_vmulesh): Likewise.
7092 (altivec_vmulosh): Likewise.
7094 2013-11-05 Mike Stump <mikestump@comcast.net>
7096 * Makefile.in (mostlyclean): Remove c-family objects.
7098 2013-11-05 Ian Lance Taylor <iant@google.com>
7100 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
7101 If possible, add .cfi directives to record change to bx.
7102 * config/i386/i386.c (ix86_emit_cfi): New function.
7103 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
7105 2013-11-05 Steven Bosscher <steven@gcc.gnu.org>
7107 * rtlanal.c (tablejump_p): Expect a JUMP_TABLE_DATA to always follow
7108 immediately after a label for a tablejump pattern.
7110 * config/arm/arm.c (is_jump_table): Remove.
7111 (create_fix_barrier): Use tablejump_p instead.
7112 (arm_reorg): Likewise.
7113 (thumb1_output_casesi): Expect JUMP_TABLE_DATA to always be NEXT_INSN.
7114 (thumb2_output_casesi): Likewise.
7115 * config/aarch64/aarch64.c (aarch64_output_casesi): Likewise.
7116 * config/sh/sh.md (casesi_worker_1, casesi_worker_2,
7117 casesi_shift_media, casesi_load_media): Likewise.
7118 * config/iq2000/iq2000.md: Likewise (in anonymous define_insn).
7119 * config/microblaze/microblaze.md: Likewise.
7121 2013-11-05 Tobias Burnus <burnus@net-b.de>
7123 * doc/invoke.texi (-Wdate-time): Document.
7125 2013-11-05 Richard Sandiford <rdsandiford@googlemail.com>
7127 * double-int.c (lshift_double, rshift_double): Remove
7128 SHIFT_COUNT_TRUNCATED handling.
7130 2013-11-05 Jeff Law <law@redhat.com>
7132 * Makefile.in (OBJS): Add gimple-ssa-isolate-paths.o
7133 * common.opt (-fisolate-erroneous-paths): Add option and documentation.
7134 * gimple-ssa-isolate-paths.c: New file.
7135 * gimple.c (check_loadstore): New function.
7136 (infer_nonnull_range): Moved into gimple.c from tree-vrp.c
7137 Verify OP is in the argument list and the argument corresponding
7138 to OP is a pointer type. Use operand_equal_p rather than
7139 pointer equality when testing if OP is on the nonnull list.
7140 Use check_loadstore rather than count_ptr_derefs. Handle
7141 GIMPLE_RETURN statements.
7142 * tree-vrp.c (infer_nonnull_range): Remove.
7143 * gimple.h (infer_nonnull_range): Declare.
7144 * opts.c (default_options_table): Add OPT_fisolate_erroneous_paths.
7145 * passes.def: Add pass_isolate_erroneous_paths.
7146 * timevar.def (TV_ISOLATE_ERRONEOUS_PATHS): New timevar.
7147 * tree-pass.h (make_pass_isolate_erroneous_paths): Declare.
7148 * tree-ssa.c (struct count_ptr_d): Remove.
7149 (count_ptr_derefs, count_uses_and_derefs): Remove.
7150 * tree-ssa.h (count_uses_and_derefs): Remove.
7152 2013-11-05 Jakub Jelinek <jakub@redhat.com>
7154 PR rtl-optimization/58997
7155 * loop-iv.c (iv_subreg): For IV_UNKNOWN_EXTEND, expect
7156 get_iv_value to be in iv->mode rather than iv->extend_mode.
7157 (iv_extend): Likewise. Otherwise, if iv->extend != extend,
7158 use lowpart_subreg on get_iv_value before calling simplify_gen_unary.
7159 * loop-unswitch.c (may_unswitch_on): Make sure op[i] is in the right
7162 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
7164 * gimple.h: Move some prototypes to gimple-expr.h and add to include
7166 (extract_ops_from_tree, gimple_call_addr_fndecl, is_gimple_reg_type):
7167 Move to gimple-expr.h.
7168 * gimple-expr.h: New file. Relocate some prototypes from gimple.h.
7169 (types_compatible_p, is_gimple_reg_type, is_gimple_variable,
7170 is_gimple_id, virtual_operand_p, is_gimple_addressable,
7171 is_gimple_constant, extract_ops_from_tree, gimple_call_addr_fndecl):
7173 * gimple.c (extract_ops_from_tree_1, gimple_cond_get_ops_from_tree,
7174 gimple_set_body, gimple_body, gimple_has_body_p, is_gimple_lvalue,
7175 is_gimple_condexpr, is_gimple_addressable, is_gimple_constant,
7176 is_gimple_address, is_gimple_invariant_address,
7177 is_gimple_ip_invariant_address, is_gimple_min_invariant,
7178 is_gimple_ip_invariant, is_gimple_variable, is_gimple_id,
7179 virtual_operand_p, is_gimple_reg, is_gimple_val, is_gimple_asm_val,
7180 is_gimple_min_lval, is_gimple_call_addr, is_gimple_mem_ref_addr,
7181 gimple_decl_printable_name, useless_type_conversion_p,
7182 types_compatible_p, gimple_can_coalesce_p, copy_var_decl): Move to
7184 * gimple-expr.c: New File.
7185 (useless_type_conversion_p, gimple_set_body, gimple_body,
7186 gimple_has_body_p, gimple_decl_printable_name, copy_var_decl,
7187 gimple_can_coalesce_p, extract_ops_from_tree_1,
7188 gimple_cond_get_ops_from_tree, is_gimple_lvalue, is_gimple_condexpr,
7189 is_gimple_address, is_gimple_invariant_address,
7190 is_gimple_ip_invariant_address, is_gimple_min_invariant,
7191 is_gimple_ip_invariant, is_gimple_reg, is_gimple_val,
7192 is_gimple_asm_val, is_gimple_min_lval, is_gimple_call_addr,
7193 is_gimple_mem_ref_addr): Relocate here.
7194 * Makefile.in (OBJS): Add gimple-expr.o.
7196 2013-11-05 David Malcolm <dmalcolm@redhat.com>
7198 * gengtype-parse.c (struct_field_seq): Support empty structs.
7200 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
7202 * config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
7204 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
7206 * config/i386/i386-c.c (ix86_target_macros): Define _SOFT_FLOAT
7208 * config/i386/rtemself.h (TARGET_OS_CPP_BUILTINS): Do not define
7210 (LONG_DOUBLE_TYPE_SIZE): New define.
7211 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Ditto.
7213 2013-11-05 Paolo Carlini <paolo.carlini@oracle.com>
7216 * doc/extend.texi [visibility ("visibility_type")]: Add example
7217 about visibility attribute on namespace declaration.
7219 2013-11-05 Richard Biener <rguenther@suse.de>
7222 * passes.def (all_passes): Start with pass_fixup_cfg again.
7224 2013-11-05 Richard Biener <rguenther@suse.de>
7226 PR tree-optimization/58955
7227 * tree-loop-distribution.c (pg_add_dependence_edges): Fix
7230 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7232 * config/rs6000/vector.md (vec_pack_sfix_trunc_v2df): Adjust for
7234 (vec_pack_ufix_trunc_v2df): Likewise.
7236 2013-11-05 H.J. Lu <hongjiu.lu@intel.com>
7239 * doc/md.texi (@code{movmem@var{m}}): Specify Pmode as mode of
7240 pattern, instead of word_mode.
7242 * expr.c (emit_block_move_via_movmem): Don't use mode wider than
7244 (set_storage_via_setmem): Likewise.
7246 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
7248 * tree-outof-ssa.c (queue_phi_copy_p): Combine phi_ssa_name_p from
7249 gimple.h and the rest of the condition in eliminate_build.
7250 (eliminate_build): Call new routine.
7251 * gimple.h (phi_ssa_name_p): Delete.
7253 2013-11-05 Trevor Saunders <tsaunders@mozilla.com>
7255 * vec.c (vec_prefix::calculate_allocation): Don't try to handle the
7256 case of no prefix and reserving zero slots, because when that's the
7257 case we'll never get here.
7258 * vec.h (va_heap::reserve): Don't try and handle
7259 vec_prefix::calculate_allocation returning zero because that should
7262 2013-11-05 Richard Biener <rguenther@suse.de>
7265 * tree-dfa.c (get_ref_base_and_extent): Merge common code
7266 in MEM_REF and TARGET_MEM_REF handling. Make sure to
7267 process trailing array detection before diving into the
7268 view-converted object (and possibly apply some extra offset).
7270 2013-11-05 Joseph Myers <joseph@codesourcery.com>
7272 * config/i386/i386.c (ix86_float_exceptions_rounding_supported_p):
7274 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Define.
7276 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
7278 PR tree-optimization/58958
7279 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Use
7280 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
7282 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
7284 * tree-ssa-alias.h (ranges_overlap_p): Handle negative offsets.
7285 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Likewise.
7287 2013-11-05 Jakub Jelinek <jakub@redhat.com>
7289 PR tree-optimization/58984
7290 * ipa-prop.c (ipa_load_from_parm_agg_1): Add SIZE_P argument,
7291 set *SIZE_P if non-NULL on success.
7292 (ipa_load_from_parm_agg, ipa_analyze_indirect_call_uses): Adjust
7294 (ipcp_transform_function): Likewise. Punt if size of access
7295 is different from TYPE_SIZE on v->value's type.
7297 2013-11-05 Tobias Burnus <burnus@net-b.de>
7299 * doc/invoke.texi (-fopenmp-simd): Document new option.
7300 * gimplify.c (gimplify_body): Accept -fopenmp-simd.
7301 * omp-low.c (execute_expand_omp, execute_lower_omp): Ditto.
7302 * tree.c (attribute_value_equal): Ditto.
7304 2013-11-04 Wei Mi <wmi@google.com>
7306 * sched-rgn.c (add_branch_dependences): Keep insns in
7307 a SCHED_GROUP at the end of BB to remain their location.
7309 2013-11-04 Wei Mi <wmi@google.com>
7311 * config/i386/i386.c (memory_address_length): Extract a part
7312 of code to rip_relative_addr_p.
7313 (rip_relative_addr_p): New Function.
7314 (ix86_macro_fusion_p): Ditto.
7315 (ix86_macro_fusion_pair_p): Ditto.
7316 * config/i386/i386.h: Add new tune features about macro-fusion.
7317 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
7318 * doc/tm.texi: Generated.
7319 * doc/tm.texi.in: Ditto.
7320 * haifa-sched.c (try_group_insn): New Function.
7321 (group_insns_for_macro_fusion): Ditto.
7322 (sched_init): Call group_insns_for_macro_fusion.
7323 * target.def: Add two hooks: macro_fusion_p and
7324 macro_fusion_pair_p.
7326 2013-11-04 Kostya Serebryany <kcc@google.com>
7328 Update to match the changed asan API.
7329 * asan.c (asan_function_start): New function.
7330 (asan_emit_stack_protection): Update the string stored in the
7331 stack red zone to match new API. Store the PC of the current
7332 function in the red zone.
7333 (asan_global_struct): Update the __asan_global definition to match
7335 (asan_add_global): Ditto.
7336 * asan.h (asan_function_start): New prototype.
7337 * final.c (final_start_function): Call asan_function_start.
7338 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v1
7341 2013-11-04 Wei Mi <wmi@google.com>
7343 * config/i386/i386-c.c (ix86_target_macros_internal): Separate
7344 PROCESSOR_COREI7_AVX out from PROCESSOR_COREI7.
7345 * config/i386/i386.c (ix86_option_override_internal): Ditto.
7346 (ix86_issue_rate): Ditto.
7347 (ix86_adjust_cost): Ditto.
7348 (ia32_multipass_dfa_lookahead): Ditto.
7349 (ix86_sched_init_global): Ditto.
7350 (get_builtin_code_for_version): Ditto.
7351 * config/i386/i386.h (enum target_cpu_default): Ditto.
7352 (enum processor_type): Ditto.
7353 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
7355 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
7357 PR rtl-optimization/58967
7358 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
7359 !lra_in_progress for mode sizes bigger word.
7361 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7363 * config/rs6000/altivec.md (vec_widen_umult_hi_v16qi): Swap
7364 arguments to merge instruction for little endian.
7365 (vec_widen_umult_lo_v16qi): Likewise.
7366 (vec_widen_smult_hi_v16qi): Likewise.
7367 (vec_widen_smult_lo_v16qi): Likewise.
7368 (vec_widen_umult_hi_v8hi): Likewise.
7369 (vec_widen_umult_lo_v8hi): Likewise.
7370 (vec_widen_smult_hi_v8hi): Likewise.
7371 (vec_widen_smult_lo_v8hi): Likewise.
7373 2013-11-04 Ian Lance Taylor <iant@google.com>
7375 * builtins.def (ATTR_NOTHROWCALL_LEAF_LIST): Define.
7376 * sync-builtins.def: Use ATTR_NOTHROWCALL_LEAF_LIST for all sync
7377 builtins that take pointers.
7378 * lto-opts.c (lto_write_options): Write -fnon-call-exceptions if set.
7379 * lto-wrapper.c (merge_and_complain): Collect OPT_fnon_call_exceptions.
7380 (run_gcc): Pass -fnon-call-exceptions.
7382 2013-11-04 Jakub Jelinek <jakub@redhat.com>
7384 * optabs.c (expand_vec_perm): Revert one incorrect line from
7387 PR tree-optimization/58978
7388 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): Don't modify
7389 use_stmt by single_imm_use directly. Only call single_imm_use
7392 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
7394 PR rtl-optimization/58968
7395 * lra-spills.c (return_regno_p): New function.
7396 (lra_final_code_change): Use it.
7398 2013-11-04 Joseph Myers <joseph@codesourcery.com>
7400 * doc/cpp.texi (__GCC_IEC_559, __GCC_IEC_559_COMPLEX): Document macros.
7401 * target.def (float_exceptions_rounding_supported_p): New hook.
7402 * targhooks.c (default_float_exceptions_rounding_supported_p): New
7404 * targhooks.h (default_float_exceptions_rounding_supported_p): Declare.
7405 * doc/tm.texi.in (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P):
7407 * doc/tm.texi: Regenerate.
7408 * config.gcc (powerpc*-*-linux*): Set extra_objs.
7409 * config/rs6000/rs6000-linux.c: New file.
7410 * config/rs6000/rs6000-protos.h
7411 (rs6000_linux_float_exceptions_rounding_supported_p): Declare.
7412 * config/rs6000/linux.h
7413 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): New macro.
7414 * config/rs6000/linux64.h
7415 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Likewise.
7416 * config/rs6000/t-linux (rs6000-linux.o): New rule.
7417 * config/rs6000/t-linux64 (rs6000-linux.o): Likewise.
7419 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7421 * config/rs6000/vsx.md (*vsx_le_perm_store_<mode> for VSX_D):
7422 Replace the define_insn_and_split with a define_insn and two
7423 define_splits, with the split after reload re-permuting the source
7424 register to its original value.
7425 (*vsx_le_perm_store_<mode> for VSX_W): Likewise.
7426 (*vsx_le_perm_store_v8hi): Likewise.
7427 (*vsx_le_perm_store_v16qi): Likewise.
7429 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7431 * config/rs6000/vector.md (vec_pack_trunc_v2df): Adjust for
7434 2013-11-04 Jakub Jelinek <jakub@redhat.com>
7436 PR tree-optimization/58946
7437 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Update all
7438 bbs with bbinfo[idx].op != NULL before all blocks with
7439 bbinfo[idx].op == NULL.
7441 2013-11-04 Richard Sandiford <rdsandiford@googlemail.com>
7443 * config/avr/avr-log.c (avr_double_int_pop_digit): Delete.
7444 (avr_dump_double_int_hex): Likewise.
7445 (avr_log_vadump): Remove %D and %X handling.
7446 * config/avr/avr.c (avr_double_int_push_digit): Delete.
7447 (avr_map_op_t): Change map from double_int to unsigned int.
7448 (avr_map_op): Update accordingly.
7449 (avr_map, avr_map_metric, avr_has_nibble_0xf, avr_map_decompose)
7450 (avr_move_bits, avr_out_insert_bits, avr_fold_builtin): Operate on
7451 unsigned ints rather than double_ints.
7453 2013-11-03 Marek Polacek <polacek@redhat.com>
7455 Implement -fsanitize=vla-bound.
7456 * opts.c (common_handle_option): Handle vla-bound.
7457 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE): Define.
7458 * flag-types.h (enum sanitize_code): Add SANITIZE_VLA.
7459 * asan.c (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR.
7461 2013-11-02 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
7463 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Adjust for
7466 2013-11-02 Uros Bizjak <ubizjak@gmail.com>
7468 * config/i386/constraints.md (Ts, Tv): New address constrains.
7469 * config/i386/i386.md (*lea<mode>, *<mode>_<bndcheck>): Use Ts
7470 constraint for address_no_seg_operand.
7471 * config/i386/sse.md (*avx512pf_gatherpf<mode>_mask)
7472 (*avx512pf_gatherpf<mode>, *avx512pf_scatterpf<mode>_mask)
7473 (*avx512pf_scatterpf<mode>, *avx2_gathersi<mode>)
7474 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>_2)
7475 (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4)
7476 (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2)
7477 (*avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2)
7478 (*avx512f_scattersi<mode> *avx512f_scatterdi<mode>): Use Tv
7479 constraint for vsib_address_operand.
7481 2013-11-02 Steven Bosscher <steven@gcc.gnu.org>
7483 * gcse.c (pre_delete): Remove references to regmove from comments.
7484 * recog.c: (validate_replace_rtx_1): Likewise.
7485 * config/rl78/rl78.c: Likewise.
7486 * config/v850/v850.h: Likewise, and remove unused ENABLE_REGMOVE_PASS.
7487 * common/config/m32r/m32r-common.c: Don't manipulate OPT_fregmove.
7488 * common/config/mmix/mmix-common.c: Likewise.
7490 2013-11-01 Trevor Saunders <tsaunders@mozilla.com>
7492 * function.c (reorder_blocks): Convert block_stack to a stack_vec.
7493 * gimplify.c (gimplify_compound_lval): Likewise.
7494 * graphite-clast-to-gimple.c (gloog): Likewise.
7495 * graphite-dependences.c (loop_is_parallel_p): Likewise.
7496 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
7497 (limit_scop); Likewise.
7498 (build_scops): Likewise.
7499 (dot_scop): Likewise.
7500 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
7501 (build_scop_drs): Likewise.
7502 (insert_stmts): Likewise.
7503 (insert_out_of_ssa_copy): Likewise.
7504 (remove_phi): Likewise.
7505 (rewrite_commutative_reductions_out_of_ssa_close_phi): Likewise.
7506 * hw-doloop.c (discover_loop): Likewise.
7507 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Likewise.
7508 * tree-dfa.c (dump_enumerated_decls): Likewise.
7509 * tree-if-conv.c (if_convertable_loop_p): Likewise.
7510 * tree-inline.c (tree_function_versioning): Likewise.
7511 * tree-loop-distribution.c (build_rdg): Likewise.
7512 (rdg_flag_vertex_and_dependent): Likewise.
7513 (distribute_loop): Likewise.
7514 * tree-parloops.c (loop_parallel_p): Likewise.
7515 (eliminate_local_variables): Likewise.
7516 (separate_decls_in_region): Likewise.
7517 * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
7518 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
7519 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
7520 * tree-vect-loop.c (vect_analyze_scaler_cycles_1): Likewise.
7521 * tree-vect-patterns.c (vect_pattern_recog): Likewise.
7522 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
7523 (vectorizable_condition): Likewise.
7525 2013-11-01 Uros Bizjak <ubizjak@gmail.com>
7527 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): Always define as 0/1.
7528 * configure: Regenerate.
7529 * config/i386/i386.md (*movdi_internal): Change
7530 HAVE_AS_IX86_INTERUNIT_MOVQ to runtime check.
7531 (*movdf_internal): Ditto.
7532 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
7533 * config/i386/sse.md (vec_concatv2di): Output interunit movq
7534 for HAVE_AS_IX86_INTERUNIT_MOVQ targets.
7536 2013-10-31 Robert Suchanek <Robert.Suchanek@imgtec.com>
7538 * lra-spills.c (assign_spill_hard_regs): Remove statement terminator
7541 2013-10-31 David Malcolm <dmalcolm@redhat.com>
7543 Automated part of renaming of symtab_node_base to symtab_node.
7545 Patch autogenerated by rename_symtab.py from
7546 https://github.com/davidmalcolm/gcc-refactoring-scripts
7547 revision 58bb219cc090b2f4516a9297d868c245495ee622
7548 with ChangeLog entry fixed up by hand.
7550 * cgraph.c (x_cgraph_nodes_queue): Rename symtab_node_base to
7552 (cgraph_node_for_asm): Likewise.
7553 * cgraph.h (symtab_node_base): Likewise.
7554 (cgraph_node): Likewise.
7555 (varpool_node): Likewise.
7556 (is_a_helper <cgraph_node>::test): Likewise.
7557 (is_a_helper <varpool_node>::test): Likewise.
7558 (symtab_nodes): Likewise.
7559 (symtab_register_node): Likewise.
7560 (symtab_unregister_node): Likewise.
7561 (symtab_remove_node): Likewise.
7562 (symtab_get_node): Likewise.
7563 (symtab_node_for_asm): Likewise.
7564 (symtab_node_asm_name): Likewise.
7565 (symtab_node_name): Likewise.
7566 (symtab_insert_node_to_hashtable): Likewise.
7567 (symtab_add_to_same_comdat_group): Likewise.
7568 (symtab_dissolve_same_comdat_group_list): Likewise.
7569 (dump_symtab_node): Likewise.
7570 (debug_symtab_node): Likewise.
7571 (dump_symtab_base): Likewise.
7572 (verify_symtab_node): Likewise.
7573 (verify_symtab_base): Likewise.
7574 (symtab_used_from_object_file_p): Likewise.
7575 (symtab_alias_ultimate_target): Likewise.
7576 (symtab_resolve_alias): Likewise.
7577 (fixup_same_cpp_alias_visibility): Likewise.
7578 (symtab_for_node_and_aliases): Likewise.
7579 (symtab_nonoverwritable_alias): Likewise.
7580 (availability symtab_node_availability): Likewise.
7581 (symtab_semantically_equivalent_p): Likewise.
7582 (fixup_same_cpp_alias_visibility): Likewise.
7583 (symtab_prevail_in_asm_name_hash): Likewise.
7585 (varpool): Likewise.
7586 (varpool_first_variable): Likewise.
7587 (varpool_next_variable): Likewise.
7588 (varpool_first_static_initializer): Likewise.
7589 (varpool_next_static_initializer): Likewise.
7590 (varpool_first_defined_variable): Likewise.
7591 (varpool_next_defined_variable): Likewise.
7592 (cgraph_first_defined_function): Likewise.
7593 (cgraph_next_defined_function): Likewise.
7594 (cgraph_first_function): Likewise.
7595 (cgraph_next_function): Likewise.
7596 (cgraph_first_function_with_gimple_body): Likewise.
7597 (cgraph_next_function_with_gimple_body): Likewise.
7598 (symtab_alias_target): Likewise.
7599 (symtab_real_symbol_p): Likewise.
7600 (symtab_can_be_discarded): Likewise.
7601 * cgraphbuild.c (mark_address): Likewise.
7602 (mark_load): Likewise.
7603 (mark_store): Likewise.
7604 * cgraphunit.c (decide_is_symbol_needed): Likewise.
7606 (enqueue_node): Likewise.
7607 (referred_to_p): Likewise.
7608 (cgraph_process_same_body_aliases): Likewise.
7609 (analyze_functions): Likewise.
7610 (handle_alias_pairs): Likewise.
7611 (output_weakrefs): Likewise.
7612 (compile): Likewise.
7613 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
7614 * ipa-inline-analysis.c (inline_write_summary): Likewise.
7615 * ipa-prop.c (remove_described_reference): Likewise.
7616 (try_decrement_rdesc_refcount): Likewise.
7617 (ipa_edge_duplication_hook): Likewise.
7618 * ipa-ref.c (ipa_record_reference): Likewise.
7619 (ipa_maybe_record_reference): Likewise.
7620 (ipa_clone_ref): Likewise.
7621 (ipa_clone_references): Likewise.
7622 (ipa_clone_referring): Likewise.
7623 (ipa_find_reference): Likewise.
7624 (ipa_remove_stmt_references): Likewise.
7625 (ipa_clear_stmts_in_references): Likewise.
7626 * ipa-ref.h (symtab_node_base): Likewise.
7627 (ipa_ref): Likewise.
7628 (ipa_record_reference): Likewise.
7629 (ipa_maybe_record_reference): Likewise.
7630 (ipa_clone_references): Likewise.
7631 (ipa_clone_referring): Likewise.
7632 (ipa_clone_ref): Likewise.
7633 (ipa_find_reference): Likewise.
7634 (ipa_remove_stmt_references): Likewise.
7635 (ipa_clear_stmts_in_references): Likewise.
7636 * ipa-reference.c (ipa_reference_write_optimization_summary):
7638 * ipa.c (enqueue_node): Likewise.
7639 (process_references): Likewise.
7640 (walk_polymorphic_call_targets): Likewise.
7641 (symtab_remove_unreachable_nodes): Likewise.
7642 (address_taken_from_non_vtable_p): Likewise.
7643 (comdat_can_be_unshared_p_1): Likewise.
7644 (comdat_can_be_unshared_p): Likewise.
7645 (can_replace_by_local_alias): Likewise.
7646 (function_and_variable_visibility): Likewise.
7647 * is-a.h: Likewise (within example in comment).
7648 * lto-cgraph.c (input_cgraph_opt_summary): Likewise.
7649 (lto_symtab_encoder_encode): Likewise.
7650 (lto_symtab_encoder_delete_node): Likewise.
7651 (lto_symtab_encoder_in_partition_p): Likewise.
7652 (lto_set_symtab_encoder_in_partition): Likewise.
7653 (output_refs): Likewise.
7654 (compute_ltrans_boundary): Likewise.
7655 (output_symtab): Likewise.
7656 (input_node): Likewise.
7657 (input_ref): Likewise.
7658 (input_edge): Likewise.
7659 (input_cgraph_1): Likewise.
7660 (input_refs): Likewise.
7661 (output_cgraph_opt_summary): Likewise.
7662 (input_node_opt_summary): Likewise.
7663 (input_cgraph_opt_section): Likewise.
7664 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
7666 * lto-streamer-out.c (lto_output): Likewise.
7667 (output_symbol_p): Likewise.
7668 (produce_symtab): Likewise.
7669 * lto-streamer.h (lto_encoder_entry): Likewise.
7670 (lto_free_function_in_decl_state_for_node): Likewise.
7671 (lto_symtab_encoder_encode): Likewise.
7672 (lto_symtab_encoder_delete_node): Likewise.
7673 (lto_symtab_encoder_in_partition_p): Likewise.
7674 (lto_set_symtab_encoder_in_partition): Likewise.
7675 (lto_symtab_encoder_lookup): Likewise.
7676 (lsei_node): Likewise.
7677 (lto_symtab_encoder_deref): Likewise.
7678 * symtab.c (symtab_hash): Likewise.
7679 (assembler_name_hash): Likewise.
7680 (symtab_nodes): Likewise.
7681 (hash_node): Likewise.
7682 (eq_node): Likewise.
7683 (hash_node_by_assembler_name): Likewise.
7684 (eq_assembler_name): Likewise.
7685 (insert_to_assembler_name_hash): Likewise.
7686 (unlink_from_assembler_name_hash): Likewise.
7687 (symtab_prevail_in_asm_name_hash): Likewise.
7688 (symtab_register_node): Likewise.
7689 (symtab_insert_node_to_hashtable): Likewise.
7690 (symtab_unregister_node): Likewise.
7691 (symtab_get_node): Likewise.
7692 (symtab_remove_node): Likewise.
7693 (symtab_initialize_asm_name_hash): Likewise.
7694 (symtab_node_for_asm): Likewise.
7695 (symtab_add_to_same_comdat_group): Likewise.
7696 (symtab_dissolve_same_comdat_group_list): Likewise.
7697 (symtab_node_asm_name): Likewise.
7698 (symtab_node_name): Likewise.
7699 (dump_symtab_base): Likewise.
7700 (dump_symtab_node): Likewise.
7701 (dump_symtab): Likewise.
7702 (debug_symtab_node): Likewise.
7703 (verify_symtab_base): Likewise.
7704 (verify_symtab_node): Likewise.
7705 (verify_symtab): Likewise.
7706 (symtab_used_from_object_file_p): Likewise.
7707 (symtab_node_availability): Likewise.
7708 (symtab_alias_ultimate_target): Likewise.
7709 (fixup_same_cpp_alias_visibility): Likewise.
7710 (symtab_resolve_alias): Likewise.
7711 (symtab_for_node_and_aliases): Likewise.
7712 (symtab_for_node_and_aliases): Likewise.
7713 (symtab_nonoverwritable_alias_1): Likewise.
7714 (symtab_nonoverwritable_alias): Likewise.
7715 (symtab_semantically_equivalent_p): Likewise.
7716 * value-prof.c (init_node_map): Likewise.
7717 * varasm.c (find_decl): Likewise.
7718 * varpool.c (varpool_node_for_asm): Likewise.
7719 (varpool_remove_unreferenced_decls): Likewise.
7721 2013-10-31 David Malcolm <dmalcolm@redhat.com>
7723 Manual part of renaming of symtab_node_base to symtab_node.
7725 * ipa-ref.h (symtab_node): Remove typedef to pointer type, as it
7726 clashes with the preferred name for the base class.
7727 (const_symtab_node): Remove redundant typedef.
7729 2013-10-31 Jakub Jelinek <jakub@redhat.com>
7731 * optabs.c (expand_vec_perm): Avoid vector mode punning
7732 SUBREGs in SET_DEST.
7733 * expmed.c (store_bit_field_1): Likewise.
7734 * config/i386/sse.md (movdi_to_sse, vec_pack_sfix_trunc_v2df,
7735 vec_pack_sfix_v2df, vec_shl_<mode>, vec_shr_<mode>,
7736 vec_interleave_high<mode>, vec_interleave_low<mode>): Likewise.
7737 * config/i386/i386.c (ix86_expand_vector_move_misalign,
7738 ix86_expand_sse_movcc, ix86_expand_int_vcond, ix86_expand_vec_perm,
7739 ix86_expand_sse_unpack, ix86_expand_args_builtin,
7740 ix86_expand_vector_init_duplicate, ix86_expand_vector_set,
7741 emit_reduc_half, expand_vec_perm_blend, expand_vec_perm_pshufb,
7742 expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
7743 expand_vec_perm_vpshufb2_vpermq,
7744 expand_vec_perm_vpshufb2_vpermq_even_odd, expand_vec_perm_even_odd_1,
7745 expand_vec_perm_broadcast_1, expand_vec_perm_vpshufb4_vpermq2,
7746 ix86_expand_sse2_mulv4si3, ix86_expand_pinsr): Likewise.
7747 (expand_vec_perm_palignr): Likewise. Modify a copy of *d rather
7750 2013-10-31 Uros Bizjak <ubizjak@gmail.com>
7752 * config/i386/i386.c (ix86_expand_sse2_abs): Rename function arguments.
7753 Use gcc_unreachable for unhandled modes. Do not check results of
7754 expand_simple_binop. If not expanded to target, move the result.
7756 2013-10-31 Chung-Ju Wu <jasonwucj@gmail.com>
7757 Shiva Chen <shiva0217@gmail.com>
7759 * config.gcc (nds32*-*-*): Add nds32 target.
7760 * config/nds32/nds32.c: New file.
7761 * config/nds32/nds32.h: New file.
7762 * config/nds32/nds32.md: New file.
7763 * config/nds32/constants.md: New file.
7764 * config/nds32/constraints.md: New file.
7765 * config/nds32/iterators.md: New file.
7766 * config/nds32/nds32-doubleword.md: New file.
7767 * config/nds32/nds32-intrinsic.md: New file.
7768 * config/nds32/nds32_intrinsic.h: New file.
7769 * config/nds32/nds32-modes.def: New file.
7770 * config/nds32/nds32-multiple.md: New file.
7771 * config/nds32/nds32.opt: New file.
7772 * config/nds32/nds32-opts.h: New file.
7773 * config/nds32/nds32-protos.h: New file.
7774 * config/nds32/nds32-peephole2.md: New file.
7775 * config/nds32/pipelines.md: New file.
7776 * config/nds32/predicates.md: New file.
7777 * config/nds32/t-mlibs: New file.
7778 * common/config/nds32: New directory and files.
7780 * doc/invoke.texi (NDS32 options): Document nds32 specific options.
7781 * doc/md.texi (NDS32 family): Document nds32 specific constraints.
7782 * doc/install.texi (Cross-Compiler-Specific Options): Document
7783 --with-nds32-lib for nds32 target.
7784 * doc/extend.texi (Function Attributes, Target Builtins): Document
7785 nds32 specific attributes.
7787 2013-10-31 Vladimir Makarov <vmakarov@redhat.com>
7789 * lra-constraints (process_alt_operands): Use the result
7790 elimination register for operand when matching constraints.
7792 2013-10-31 Jakub Jelinek <jakub@redhat.com>
7794 * tree-vrp.c (maybe_set_nonzero_bits): New function.
7795 (remove_range_assertions): Call it.
7797 * tree.c (tree_ctz): New function.
7798 * tree.h (tree_ctz): New prototype.
7799 * tree-ssanames.h (get_range_info, get_nonzero_bits): Change
7800 first argument from tree to const_tree.
7801 * tree-ssanames.c (get_range_info, get_nonzero_bits): Likewise.
7802 * tree-vectorizer.h (vect_generate_tmps_on_preheader): New prototype.
7803 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader): No longer
7805 * expr.c (highest_pow2_factor): Reimplemented using tree_ctz.
7806 * tree-vect-loop.c (vect_analyze_loop_operations,
7807 vect_transform_loop): Don't force scalar loop for bound just because
7808 number of iterations is unknown, only do it if it is not known to be
7809 a multiple of vectorization_factor.
7810 * builtins.c (get_object_alignment_2): Use tree_ctz on offset.
7812 * gimple-pretty-print.c (dump_ssaname_info): Print newline also
7813 in case of VR_VARYING. Print get_nonzero_bits if not all ones.
7814 * tree-ssanames.h (struct range_info_def): Add nonzero_bits field.
7815 (set_nonzero_bits, get_nonzero_bits): New prototypes.
7816 * tree-ssa-ccp.c (get_default_value): Use get_range_info to see if
7817 a default def isn't partially constant.
7818 (ccp_finalize): If after IPA, set_range_info if integral SSA_NAME
7819 is known to be partially zero.
7820 (evaluate_stmt): If we'd return otherwise VARYING, use get_range_info
7821 to see if a default def isn't partially constant.
7822 * tree-ssanames.c (set_range_info): Initialize nonzero_bits upon
7823 creation of a range, if VR_RANGE, try to improve nonzero_bits from
7825 (set_nonzero_bits, get_nonzero_bits): New functions.
7827 * tree-cfg.c (assert_unreachable_fallthru_edge_p): New function.
7828 * tree-cfg.h (assert_unreachable_fallthru_edge_p): New prototype.
7829 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): New function.
7830 (remove_range_assertions): If ASSERT_EXPR_VAR has no other immediate
7831 uses but in the condition and ASSERT_EXPR and the other successor of
7832 the predecessor bb is __builtin_unreachable (), set_range_info of the
7833 ASSERT_EXPR_VAR to the range info of the ASSERT_EXPR's lhs.
7835 2013-10-31 Martin Jambor <mjambor@suse.cz>
7837 PR rtl-optimization/58934
7839 2013-10-30 Martin Jambor <mjambor@suse.cz>
7840 PR rtl-optimization/10474
7841 * ira.c (find_moveable_pseudos): Do not calculate dominance info
7843 (interesting_dest_for_shprep): New function.
7844 (split_live_ranges_for_shrink_wrap): Likewise.
7845 (ira): Calculate dominance info and df analysis. Call
7846 split_live_ranges_for_shrink_wrap.
7848 2013-10-31 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
7849 Yury Gribov <y.gribov@samsung.com>
7852 * asan.c (asan_clear_shadow): Allocate a new vreg for temporary
7853 shadow pointer to avoid clobbering the main one.
7855 2013-10-31 Zhenqiang Chen <zhenqiang.chen@linaro.org>
7857 * lower-subreg.c (resolve_simple_move): Copy REG_INC note.
7859 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
7862 * ira-color.c (update_costs_from_copies): Add new parameter. Use
7863 it for calling update_costs_from_allocno.
7864 (assign_hard_reg): Call restore_costs_from_copies only for
7865 !retry_p. Pass new argument to update_costs_from_copies.
7866 (color_pass): Pass new argument to update_costs_from_copies.
7867 (ira_mark_allocation_change): Ditto.
7869 2013-10-30 Sharad Singhai <singhai@google.com>
7872 * opts.c (common_handle_option): Remove deprecated option
7873 -ftree-vectorizer-verbose.
7874 * doc/invoke.texi (Debugging Options): Ditto.
7875 * opts-global.c (handle_common_deferred_options): Ditto.
7876 (dump_remap_tree_vectorizer_verbose): Delete.
7877 * common.opt: Set -ftree-vectorizer-verbose as an ignored option.
7879 2013-10-30 DJ Delorie <dj@redhat.com>
7881 * config/rx/rx.c (ADD_RX_BUILTIN0): New macro, used for builtins
7882 that take no arguments.
7884 2013-10-30 Joern Rennecke <joern.rennecke@embecosm.com>
7887 * reload1.c (update_eliminables_and_spill): New function, broken
7889 (reload): Use it. Check for frame size change after frame size
7890 alignment, and call update_eliminables_and_spill first if continue-ing.
7892 2013-10-30 Cong Hou <congh@google.com>
7895 * config/i386/i386-protos.h (ix86_expand_sse2_abs): New function.
7896 * config/i386/i386.c (ix86_expand_sse2_abs): New function.
7897 * config/i386/sse.md: Add SSE2 support to abs (8/16/32-bit-int).
7899 2013-10-18 Mikael Pettersson <mikpelinux@gmail.com>
7901 PR rtl-optimization/58369
7902 * reload1.c (compute_reload_subreg_offset): New function.
7903 (choose_reload_regs): Use it to pass endian-correct
7904 offset to subreg_regno_offset.
7906 2013-10-30 Tobias Burnus <burnus@net-b.de>
7909 * tree-cfg.c (replace_loop_annotate): Replace warning by
7912 2013-10-30 Jason Merrill <jason@redhat.com>
7914 * configure.ac (loose_warn): Add -Wno-format if
7915 --disable-build-format-warnings.
7917 2013-10-30 David Malcolm <dmalcolm@redhat.com>
7919 * cgraphunit.c (analyze_functions): Split symtab_node declarations
7920 onto multiple lines to make things easier for rename_symtab.py.
7922 * symtab.c (symtab_dissolve_same_comdat_group_list): Likewise.
7923 (symtab_semantically_equivalent_p): Likewise.
7925 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
7928 * lra.c (check_rtl): Remove address check before LRA work.
7930 2013-10-30 Marc Glisse <marc.glisse@inria.fr>
7932 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for a
7933 POINTER_PLUS_EXPR in the defining statement.
7935 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
7937 * regmove.c: Remove.
7938 * tree-pass.h (make_pass_regmove): Remove.
7939 * timevar.def (TV_REGMOVE): Remove.
7940 * passes.def (pass_regmove): Remove.
7941 * opts.c (default_options_table): Remove entry for regmove.
7942 * doc/passes.texi: Remove regmove pass description.
7943 * doc/invoke.texi (-foptimize-register-move, -fregmove): Remove
7945 (-fdump-rtl-regmove): Ditto.
7946 * common.opt (foptimize-register-move, fregmove): Ignore.
7947 * Makefile.in (OBJS): Remove regmove.o.
7948 * regmove.c: Remove.
7949 * ira-int.h (struct ira_allocno_pref, ira_pref_t): New structure
7951 (struct ira_allocno) New member allocno_prefs.
7952 (ALLOCNO_PREFS): New macro.
7953 (ira_prefs, ira_prefs_num): New external vars.
7954 (ira_setup_alts, ira_get_dup_out_num, ira_debug_pref): New prototypes.
7955 (ira_debug_prefs, ira_debug_allocno_prefs, ira_create_pref): Ditto.
7956 (ira_add_allocno_pref, ira_remove_pref, ira_remove_allocno_prefs):
7958 (ira_add_allocno_copy_to_list): Remove prototype.
7959 (ira_swap_allocno_copy_ends_if_necessary): Ditto.
7960 (ira_pref_iterator): New type.
7961 (ira_pref_iter_init, ira_pref_iter_cond): New functions.
7962 (FOR_EACH_PREF): New macro.
7963 * ira.c (commutative_constraint_p): Move from ira-conflicts.c.
7964 (ira_get_dup_out_num): Ditto. Rename from get_dup_num. Modify the
7966 (ira_setup_alts): New function.
7967 (decrease_live_ranges_number): New function.
7968 (ira): Call the above function.
7969 * ira-build.c (ira_prefs, ira_prefs_num): New global vars.
7970 (ira_create_allocno): Initialize allocno prefs.
7971 (pref_pool, pref_vec): New static vars.
7972 (initiate_prefs, find_allocno_pref, ira_create_pref): New
7974 (add_allocno_pref_to_list, ira_add_allocno_pref, print_pref): Ditto.
7975 (ira_debug_pref, print_prefs, ira_debug_prefs): Ditto.
7976 (print_allocno_prefs, ira_debug_allocno_prefs, finish_pref): Ditto.
7977 (ira_remove_pref, ira_remove_allocno_prefs, finish_prefs): Ditto.
7978 (ira_add_allocno_copy_to_list): Make static. Rename to
7979 add_allocno_copy_to_list.
7980 (ira_swap_allocno_copy_ends_if_necessary): Make static. Rename to
7981 swap_allocno_copy_ends_if_necessary.
7982 (remove_unnecessary_allocnos, remove_low_level_allocnos): Call
7983 ira_remove_allocno_prefs.
7984 (ira_flattening): Ditto.
7985 (ira_build): Call initiate_prefs, print_prefs.
7986 (ira_destroy): Call finish_prefs.
7987 * ira-color.c (struct update_cost_record): New.
7988 (struct allocno_color_data): Add new member update_cost_records.
7989 (update_cost_record_pool): New static var.
7990 (init_update_cost_records, get_update_cost_record): New functions.
7991 (free_update_cost_record_list, finish_update_cost_records): Ditto.
7992 (struct update_cost_queue_elem): Add member from.
7993 (initiate_cost_update): Call init_update_cost_records.
7994 (finish_cost_update): Call finish_update_cost_records.
7995 (queue_update_cost, get_next_update_cost): Add new param from.
7996 (Update_allocno_cost, update_costs_from_allocno): New functions.
7997 (update_costs_from_prefs): Ditto.
7998 (update_copy_costs): Rename to update_costs_from_copies.
7999 (restore_costs_from_copies): New function.
8000 (update_conflict_hard_regno_costs): Don't go back.
8001 (assign_hard_reg): Call restore_costs_from_copies. Add printing
8003 (pop_allocnos): Add priniting more debug info.
8004 (color_allocnos): Remove prefs for conflicting hard regs.
8005 Call update_costs_from_prefs.
8006 * ira-conflicts.c (commutative_constraint_p): Move to ira.c
8007 (get_dup_num): Rename, modify, and move to ira.c
8008 (process_regs_for_copy): Add prefs.
8009 (add_insn_allocno_copies): Put src as first arg of
8010 process_regs_for_copy. Remove dead code. Call ira_setup_alts.
8011 * ira-costs.c (record_reg_classes): Modify and move code into
8012 record_operands_costs.
8013 (find_costs_and_classes): Create prefs for the hard reg of small
8015 (process_bb_node_for_hard_reg_moves): Add prefs.
8017 2013-10-30 Richard Biener <rguenther@suse.de>
8020 * basic-block.h (pre_and_rev_post_order_compute_fn): New function.
8021 * cfganal.c (pre_and_rev_post_order_compute_fn): New function
8023 (pre_and_rev_post_order_compute): ... which now wraps it.
8024 * graph.c (draw_cfg_nodes_no_loops): Use
8025 pre_and_rev_post_order_compute_fn to avoid ICEing and dependence
8028 2013-10-30 Christian Bruel <christian.bruel@st.com>
8030 * config/sh/sh-mem.cc (sh_expand_cmpnstr): New function.
8031 (sh_expand_cmpstr): Handle known align and schedule improvements.
8032 * config/sh/sh-protos.h (sh_expand_cmpstrn): Declare.
8033 * config/sh/sh.md (cmpstrnsi): New pattern.
8035 2013-10-30 Martin Jambor <mjambor@suse.cz>
8037 PR rtl-optimization/10474
8038 * ira.c (find_moveable_pseudos): Do not calculate dominance info
8040 (interesting_dest_for_shprep): New function.
8041 (split_live_ranges_for_shrink_wrap): Likewise.
8042 (ira): Calculate dominance info and df analysis. Call
8043 split_live_ranges_for_shrink_wrap.
8045 2013-10-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8048 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage.
8050 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
8052 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
8053 * tree.h (POINTER_BOUNDS_P): New.
8054 (BOUNDED_TYPE_P): New.
8056 (pointer_bounds_type_node): New.
8057 * tree.c (build_common_tree_nodes): Initialize
8058 pointer_bounds_type_node.
8059 * gimple.h (gimple_call_get_nobnd_arg_index): New.
8060 (gimple_call_num_nobnd_args): New.
8061 (gimple_call_nobnd_arg): New.
8062 (gimple_return_retbnd): New.
8063 (gimple_return_set_retbnd): New
8064 * gimple.c (gimple_build_return): Increase number of ops
8065 for return statement.
8066 (gimple_call_get_nobnd_arg_index): New.
8067 * gimple-pretty-print.c (dump_gimple_return): Print second op.
8069 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
8071 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
8072 with "chkp ctor" and "bnd_legacy" attributes.
8073 * gimplify.c (gimplify_init_constructor): Avoid infinite
8074 loop during gimplification of bounds initializer.
8076 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
8078 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
8079 (handle_bnd_legacy): New.
8080 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
8081 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
8084 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
8086 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
8087 (BT_FN_PTR_CONST_PTR): New.
8088 (BT_FN_CONST_PTR_CONST_PTR): New.
8089 (BT_FN_PTR_CONST_PTR_SIZE): New.
8090 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
8091 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
8092 (BT_FN_VOID_CONST_PTR_SIZE): New.
8093 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
8094 * chkp-builtins.def: New.
8095 * builtins.def: include chkp-builtins.def.
8096 (DEF_CHKP_BUILTIN): New.
8097 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
8098 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
8099 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
8100 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
8101 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
8102 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
8103 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
8104 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
8105 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
8106 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
8107 * common.opt (fcheck-pointer-bounds): New.
8108 * toplev.c (process_options): Check Pointer Bounds Checker is
8110 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
8112 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
8114 * target.def (builtin_chkp_function): New.
8115 (chkp_bound_type): New.
8116 (chkp_bound_mode): New.
8117 (fn_abi_va_list_bounds_size): New.
8118 (load_bounds_for_arg): New.
8119 (store_bounds_for_arg): New.
8120 * targhooks.h (default_load_bounds_for_arg): New.
8121 (default_store_bounds_for_arg): New.
8122 (default_fn_abi_va_list_bounds_size): New.
8123 (default_chkp_bound_type): New.
8124 (default_chkp_bound_mode): New.
8125 (default_builtin_chkp_function): New.
8126 * targhooks.c (default_load_bounds_for_arg): New.
8127 (default_store_bounds_for_arg): New.
8128 (default_fn_abi_va_list_bounds_size): New.
8129 (default_chkp_bound_type): New.
8130 (default_chkp_bound_mode); New.
8131 (default_builtin_chkp_function): New.
8132 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
8133 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
8134 (TARGET_STORE_BOUNDS_FOR_ARG): New.
8135 (TARGET_BUILTIN_CHKP_FUNCTION): New.
8136 (TARGET_CHKP_BOUND_TYPE): New.
8137 (TARGET_CHKP_BOUND_MODE): New.
8138 * doc/tm.texi: Regenerated.
8139 * langhooks.h (lang_hooks): Add chkp_supported field.
8140 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
8141 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
8143 2013-10-29 Andrew Pinski <apinski@cavium.com>
8145 * tree-ssa-ifcombine.c: Include rtl.h and tm_p.h.
8146 (ifcombine_ifandif): Handle cases where maybe_fold_and_comparisons
8147 fails, combining the branches anyways.
8148 (tree_ssa_ifcombine): Inverse the order of the basic block walk,
8149 increases the number of combinings.
8150 * gimple.h (gsi_start_nondebug_after_labels_bb): New function.
8152 2013-10-29 Mike Stump <mikestump@comcast.net>
8154 * machmode.def (PARTIAL_INT_MODE): Add precision and name.
8155 * genmodes.c (PARTIAL_INT_MODE): Add precision and name.
8156 (make_vector_mode): Increase namebuf to 16.
8157 (emit_insn_modes_h): When processing BImode, don't
8158 also match partial int modes.
8159 (emit_class_narrowest_mode): Likewise.
8161 * config/bfin/bfin-modes.def: Add precision to PDI.
8162 * config/m32c/m32c-modes.def: Add precision to PSI.
8163 * config/msp430/msp430-modes.def: Add precision to PSI.
8164 * config/rs6000/rs6000-modes.def: Add precision to PTI.
8165 * config/sh/sh-modes.def: Add precision to PSI and PDI.
8167 2013-10-29 Oleg Endo <olegendo@gcc.gnu.org>
8170 * config/sh/sh.md (*addc): Rename existing variations to ...
8171 (*addc_r_r_1, *addc_2r_1, *addc_r_1): ... these.
8172 (*addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_2r_lsb, *addc_r_msb,
8173 *addc_r_r_msb, *addc_2r_msb): New insn_and_split patterns.
8174 * config/sh/sh.c (addsubcosts): Handle some addc special cases.
8176 2013-10-29 Teresa Johnson <tejohnson@google.com>
8179 * tree-ssa-tail-merge.c (replace_block_by): Tolerate profile
8180 insanities when updating probabilities.
8182 2013-10-29 David Malcolm <dmalcolm@redhat.com>
8184 * gdbhooks.py (CGraphNodePrinter.to_string): Update gdb
8185 prettyprinter for cgraph_node to reflect the conversion of the
8186 symtable types to a C++ class hierarchy: it now *is* a
8187 symtab_node_base, rather than having one (named "symbol").
8189 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
8191 * builtins.c (is_builtin_name): Added a check for __cilkrts_detach and
8192 __cilkrts_pop_frame. If matched, then return true for built-in
8194 (expand_builtin): Added BUILT_IN_CILK_DETACH and
8195 BUILT_IN_CILK_POP_FRAME case.
8196 * langhooks-def.h (lhd_install_body_with_frame_cleanup): New prototype.
8197 (lhs_cilk_detect_spawn): Likewise.
8198 (LANG_HOOKS_DECLS): Added LANG_HOOKS_CILKPLUS.
8199 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): New #define.
8200 (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
8201 (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
8202 (LANG_HOOKS_CILKPLUS): Likewise.
8203 * tree.h (CILK_SPAWN_FN): Likewise.
8204 * builtin.def (DEF_CILK_BUILTIN_STUB): Likewise.
8205 * Makefile.in (C_COMMON_OBJS): Added c-family/cilk.o.
8206 (OBJS): Added cilk-common.o.
8207 (BUILTINS_DEF): Added cilk-builtins.def.
8208 * langhooks.c (lhd_install_body_with_frame_cleanup): New function.
8209 (lhd_cilk_detect_spawn): Likewise.
8210 * langhooks.h (lang_hooks_for_cilkplus): New struct.
8211 (struct lang_hooks): Added new field called "cilkplus."
8212 * cilk-common.c: New file.
8214 * cilk-builtins.def: Likewise.
8215 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Added
8216 "__cilk" macro and set it to 200.
8217 * function.h (struct function::cilk_frame_decl): New field.
8218 (struct function::is_cilk_function): Likewise.
8219 (struct function::calls_cilk_spawn): Likewise.
8220 * gimplify.c (gimplify_call_expr): Added a check if the function call
8221 being gimplified is a spawn detach point. If so, then add pop_frame
8222 and detach function calls.
8223 (gimplify_expr): Added a CILK_SPAWN_STMT and CILK_SYNC_STMT case
8224 for gimplifying _Cilk_spawn and _Cilk_sync statements.
8225 (gimplify_return_expr): Added a check for _Cilk_spawn usage in
8226 function. If so, added a _Cilk_sync and gimplified it.
8227 (gimplify_modify_expr): Added a check for _Cilk_spawn in MODIFY and
8228 INIT_EXPRs. If so, then call gimplify_cilk_spawn.
8229 * ipa-inline-analysis (initialize_inline_failed): Prevent inlining of
8231 (can_inline_edge_p): Prevent inling of spawnee function.
8232 * ira.c (ira_setup_eliminable_regset): Force usage of frame pointer
8233 for functions that use Cilk keywords.
8234 * tree-inline.h (struct copy_body_data::remap_var_for_cilk): New field.
8235 * tree-pretty-print.c (dump_generic_node): Added CILK_SPAWN_STMT and
8236 CILK_SYNC_STMT cases.
8237 * tree.def (DEFTREECODE): Added CILK_SPAWN_STMT and CILK_SYNC_STMT
8239 * generic.texi (CILK_SPAWN_STMT): Added documentation for _Cilk_spawn.
8240 (CILK_SYNC_STMT): Added documentation for _Cilk_sync.
8241 * passes.texi (Cilk Keywords): New section that describes the compiler
8242 code changes for handling Cilk Keywords.
8244 2013-10-29 David Malcolm <dmalcolm@redhat.com>
8246 Patch autogenerated by refactor_symtab.py from
8247 https://github.com/davidmalcolm/gcc-refactoring-scripts
8248 revision 58bb219cc090b2f4516a9297d868c245495ee622
8250 * asan.c (asan_finish_file): Update for conversion of symtab types to
8251 a true class hierarchy.
8252 * cfgexpand.c (estimated_stack_frame_size): Likewise.
8253 * cgraph.c (cgraph_get_body): Likewise.
8254 (cgraph_get_create_real_symbol_node): Likewise.
8255 (verify_cgraph_node): Likewise.
8256 (verify_edge_corresponds_to_fndecl): Likewise.
8257 (verify_edge_count_and_frequency): Likewise.
8258 (cgraph_will_be_removed_from_program_if_no_direct_calls): Likewise.
8259 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
8260 (cgraph_can_remove_if_no_direct_calls_and_refs_p): Likewise.
8261 (cgraph_node_cannot_return): Likewise.
8262 (cgraph_set_pure_flag_1): Likewise.
8263 (cgraph_set_const_flag_1): Likewise.
8264 (cgraph_set_nothrow_flag_1): Likewise.
8265 (cgraph_make_node_local_1): Likewise.
8266 (cgraph_for_node_and_aliases): Likewise.
8267 (cgraph_for_node_thunks_and_aliases): Likewise.
8268 (cgraph_node_can_be_local_p): Likewise.
8269 (cgraph_node_cannot_be_local_p_1): Likewise.
8270 (cgraph_function_body_availability): Likewise.
8271 (dump_cgraph_node): Likewise.
8272 (cgraph_rtl_info): Likewise.
8273 (cgraph_mark_address_taken_node): Likewise.
8274 (cgraph_remove_node): Likewise.
8275 (cgraph_release_function_body): Likewise.
8276 (cgraph_update_edges_for_call_stmt_node): Likewise.
8277 (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
8278 (cgraph_make_edge_direct): Likewise.
8279 (cgraph_resolve_speculation): Likewise.
8280 (cgraph_speculative_call_info): Likewise.
8281 (cgraph_turn_edge_to_speculative): Likewise.
8282 (cgraph_create_edge_1): Likewise.
8283 (cgraph_set_call_stmt): Likewise.
8284 (cgraph_node_for_asm): Likewise.
8285 (cgraph_add_thunk): Likewise.
8286 (cgraph_same_body_alias): Likewise.
8287 (cgraph_create_function_alias): Likewise.
8288 (cgraph_create_node): Likewise.
8289 (cgraph_create_empty_node): Likewise.
8290 (record_function_versions): Likewise.
8291 (used_from_object_file_p): Likewise.
8292 * cgraph.h (symtab_can_be_discarded): Likewise.
8293 (symtab_real_symbol_p): Likewise.
8294 (cgraph_mark_force_output_node): Likewise.
8295 (cgraph_edge_recursive_p): Likewise.
8296 (symtab_alias_target): Likewise.
8297 (varpool_all_refs_explicit_p): Likewise.
8298 (varpool_can_remove_if_no_refs): Likewise.
8299 (cgraph_only_called_directly_or_aliased_p): Likewise.
8300 (cgraph_next_function_with_gimple_body): Likewise.
8301 (cgraph_first_function_with_gimple_body): Likewise.
8302 (cgraph_function_with_gimple_body_p): Likewise.
8303 (cgraph_next_function): Likewise.
8304 (cgraph_first_function): Likewise.
8305 (cgraph_next_defined_function): Likewise.
8306 (cgraph_first_defined_function): Likewise.
8307 (varpool_next_defined_variable): Likewise.
8308 (varpool_first_defined_variable): Likewise.
8309 (varpool_next_static_initializer): Likewise.
8310 (varpool_first_static_initializer): Likewise.
8311 (varpool_next_variable): Likewise.
8312 (varpool_first_variable): Likewise.
8313 (varpool_node_name): Likewise.
8314 (varpool): Likewise.
8316 (is_a_helper <varpool_node>::test): Likewise.
8317 (is_a_helper <cgraph_node>::test): Likewise.
8318 (varpool_variable_node): Likewise.
8319 (cgraph_function_or_thunk_node): Likewise.
8320 (varpool_alias_target): Likewise.
8321 (cgraph_alias_target): Likewise.
8322 (cgraph_node_name): Likewise.
8323 (varpool_node_asm_name): Likewise.
8324 (cgraph_node_asm_name): Likewise.
8325 * cgraphbuild.c (remove_cgraph_callee_edges): Likewise.
8326 (cgraph_rebuild_references): Likewise.
8327 (rebuild_cgraph_edges): Likewise.
8328 (record_eh_tables): Likewise.
8329 (build_cgraph_edges): Likewise.
8330 (mark_store): Likewise.
8331 (mark_load): Likewise.
8332 (mark_address): Likewise.
8333 (record_type_list): Likewise.
8334 (record_reference): Likewise.
8335 * cgraphclones.c (cgraph_materialize_all_clones): Likewise.
8336 (cgraph_materialize_clone): Likewise.
8337 (cgraph_function_versioning): Likewise.
8338 (cgraph_copy_node_for_versioning): Likewise.
8339 (update_call_expr): Likewise.
8340 (cgraph_find_replacement_node): Likewise.
8341 (cgraph_create_virtual_clone): Likewise.
8342 (cgraph_clone_node): Likewise.
8343 * cgraphunit.c (compile): Likewise.
8344 (output_weakrefs): Likewise.
8345 (output_in_order): Likewise.
8346 (expand_function): Likewise.
8347 (assemble_thunks_and_aliases): Likewise.
8348 (expand_thunk): Likewise.
8349 (mark_functions_to_output): Likewise.
8350 (handle_alias_pairs): Likewise.
8351 (analyze_functions): Likewise.
8352 (walk_polymorphic_call_targets): Likewise.
8353 (varpool_finalize_decl): Likewise.
8354 (process_function_and_variable_attributes): Likewise.
8355 (cgraph_process_same_body_aliases): Likewise.
8356 (analyze_function): Likewise.
8357 (cgraph_add_new_function): Likewise.
8358 (cgraph_finalize_function): Likewise.
8359 (referred_to_p): Likewise.
8360 (cgraph_reset_node): Likewise.
8361 (cgraph_process_new_functions): Likewise.
8362 (enqueue_node): Likewise.
8363 (decide_is_symbol_needed): Likewise.
8364 * coverage.c (coverage_compute_profile_id): Likewise.
8365 * dbxout.c (dbxout_expand_expr): Likewise.
8366 * dwarf2out.c (premark_types_used_by_global_vars_helper): Likewise.
8367 (reference_to_unused): Likewise.
8368 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
8369 * gimplify.c (unvisit_body): Likewise.
8370 (unshare_body): Likewise.
8371 * ipa-cp.c (ipcp_generate_summary): Likewise.
8372 (ipcp_decision_stage): Likewise.
8373 (identify_dead_nodes): Likewise.
8374 (decide_whether_version_node): Likewise.
8375 (decide_about_value): Likewise.
8376 (perhaps_add_new_callers): Likewise.
8377 (create_specialized_node): Likewise.
8378 (update_profiling_info): Likewise.
8379 (ipcp_propagate_stage): Likewise.
8380 (estimate_local_effects): Likewise.
8381 (good_cloning_opportunity_p): Likewise.
8382 (devirtualization_time_bonus): Likewise.
8383 (propagate_constants_accross_call): Likewise.
8384 (initialize_node_lattices): Likewise.
8385 (ipcp_cloning_candidate_p): Likewise.
8386 (determine_versionability): Likewise.
8387 (print_all_lattices): Likewise.
8388 (print_lattice): Likewise.
8389 (ipcp_discover_new_direct_edges): Likewise.
8390 * ipa-devirt.c (ipa_devirt): Likewise.
8391 (likely_target_p): Likewise.
8392 (update_type_inheritance_graph): Likewise.
8393 (possible_polymorphic_call_target_p): Likewise.
8394 (dump_possible_polymorphic_call_targets): Likewise.
8395 (devirt_variable_node_removal_hook): Likewise.
8396 (record_binfo): Likewise.
8397 (maybe_record_node): Likewise.
8398 (build_type_inheritance_graph): Likewise.
8399 * ipa-inline-analysis.c (inline_write_summary): Likewise.
8400 (inline_generate_summary): Likewise.
8401 (inline_analyze_function): Likewise.
8402 (do_estimate_growth): Likewise.
8403 (simple_edge_hints): Likewise.
8404 (estimate_node_size_and_time): Likewise.
8405 (estimate_edge_devirt_benefit): Likewise.
8406 (compute_inline_parameters): Likewise.
8407 (estimate_function_body_sizes): Likewise.
8408 (compute_bb_predicates): Likewise.
8409 (initialize_inline_failed): Likewise.
8410 (dump_inline_summary): Likewise.
8411 (dump_inline_edge_summary): Likewise.
8412 * ipa-inline-transform.c (inline_transform): Likewise.
8413 (preserve_function_body_p): Likewise.
8414 (save_inline_function_body): Likewise.
8415 (inline_call): Likewise.
8416 (clone_inlined_nodes): Likewise.
8417 (can_remove_node_now_p): Likewise.
8418 (can_remove_node_now_p_1): Likewise.
8419 * ipa-inline.c (early_inliner): Likewise.
8420 (early_inline_small_functions): Likewise.
8421 (inline_always_inline_functions): Likewise.
8422 (ipa_inline): Likewise.
8423 (flatten_function): Likewise.
8424 (inline_small_functions): Likewise.
8425 (speculation_useful_p): Likewise.
8426 (recursive_inlining): Likewise.
8427 (update_caller_keys): Likewise.
8428 (reset_edge_caches): Likewise.
8429 (update_edge_key): Likewise.
8430 (edge_badness): Likewise.
8431 (relative_time_benefit): Likewise.
8432 (want_inline_self_recursive_call_p): Likewise.
8433 (want_inline_small_function_p): Likewise.
8434 (want_early_inline_function_p): Likewise.
8435 (num_calls): Likewise.
8436 (can_early_inline_edge_p): Likewise.
8437 (can_inline_edge_p): Likewise.
8438 (report_inline_failed_reason): Likewise.
8439 * ipa-profile.c (ipa_profile): Likewise.
8440 (ipa_propagate_frequency): Likewise.
8441 (ipa_propagate_frequency_1): Likewise.
8442 (ipa_profile_generate_summary): Likewise.
8443 * ipa-prop.c (ipcp_transform_function): Likewise.
8444 (read_replacements_section): Likewise.
8445 (ipa_prop_read_section): Likewise.
8446 (ipa_modify_call_arguments): Likewise.
8447 (ipa_print_node_params): Likewise.
8448 (propagate_controlled_uses): Likewise.
8449 (update_indirect_edges_after_inlining): Likewise.
8450 (remove_described_reference): Likewise.
8451 (ipa_make_edge_direct_to_target): Likewise.
8452 (ipa_analyze_node): Likewise.
8453 (ipa_analyze_params_uses): Likewise.
8454 (ipa_compute_jump_functions): Likewise.
8455 (ipa_get_callee_param_type): Likewise.
8456 (ipa_print_node_jump_functions): Likewise.
8457 (ipa_initialize_node_params): Likewise.
8458 (ipa_populate_param_decls): Likewise.
8459 (ipa_func_spec_opts_forbid_analysis_p): Likewise.
8460 (write_agg_replacement_chain): Likewise.
8461 (ipa_write_node_info): Likewise.
8462 (ipa_edge_duplication_hook): Likewise.
8463 (try_decrement_rdesc_refcount): Likewise.
8464 * ipa-pure-const.c (propagate_nothrow): Likewise.
8465 (propagate_pure_const): Likewise.
8466 (pure_const_read_summary): Likewise.
8467 (pure_const_write_summary): Likewise.
8468 (analyze_function): Likewise.
8469 * ipa-ref-inline.h (ipa_ref_referred_ref_list): Likewise.
8470 (ipa_ref_referring_ref_list): Likewise.
8471 * ipa-ref.c (ipa_clear_stmts_in_references): Likewise.
8472 (ipa_remove_stmt_references): Likewise.
8473 (ipa_find_reference): Likewise.
8474 (ipa_dump_referring): Likewise.
8475 (ipa_dump_references): Likewise.
8476 (ipa_record_reference): Likewise.
8477 * ipa-reference.c (ipa_reference_read_optimization_summary): Likewise.
8478 (ipa_reference_write_optimization_summary): Likewise.
8479 (write_node_summary_p): Likewise.
8480 (propagate): Likewise.
8481 (read_write_all_from_decl): Likewise.
8482 (generate_summary): Likewise.
8483 (analyze_function): Likewise.
8484 (propagate_bits): Likewise.
8485 (ipa_reference_get_not_written_global): Likewise.
8486 (ipa_reference_get_not_read_global): Likewise.
8487 * ipa-split.c (execute_split_functions): Likewise.
8488 (split_function): Likewise.
8489 * ipa-utils.c (ipa_merge_profiles): Likewise.
8490 (dump_cgraph_node_set): Likewise.
8491 (ipa_reverse_postorder): Likewise.
8492 (ipa_edge_within_scc): Likewise.
8493 (ipa_get_nodes_in_cycle): Likewise.
8494 (ipa_free_postorder_info): Likewise.
8495 (ipa_reduced_postorder): Likewise.
8496 (searchc): Likewise.
8497 (recursive_call_p): Likewise.
8498 * ipa.c (ipa_cdtor_merge): Likewise.
8499 (record_cdtor_fn): Likewise.
8500 (function_and_variable_visibility): Likewise.
8501 (varpool_externally_visible_p): Likewise.
8502 (cgraph_externally_visible_p): Likewise.
8503 (comdat_can_be_unshared_p): Likewise.
8504 (comdat_can_be_unshared_p_1): Likewise.
8505 (address_taken_from_non_vtable_p): Likewise.
8506 (ipa_discover_readonly_nonaddressable_vars): Likewise.
8507 (symtab_remove_unreachable_nodes): Likewise.
8508 (walk_polymorphic_call_targets): Likewise.
8509 (process_references): Likewise.
8510 (enqueue_node): Likewise.
8511 (has_addr_references_p): Likewise.
8512 (cgraph_non_local_node_p_1): Likewise.
8513 * is-a.h (varpool_analyze_node): Likewise.
8514 * lto-cgraph.c (input_symtab): Likewise.
8515 (merge_profile_summaries): Likewise.
8516 (input_cgraph_1): Likewise.
8517 (input_edge): Likewise.
8518 (input_varpool_node): Likewise.
8519 (input_node): Likewise.
8520 (input_overwrite_node): Likewise.
8521 (compute_ltrans_boundary): Likewise.
8522 (output_refs): Likewise.
8523 (lto_output_varpool_node): Likewise.
8524 (lto_output_node): Likewise.
8525 (reachable_from_other_partition_p): Likewise.
8526 (referenced_from_other_partition_p): Likewise.
8527 (lto_output_edge): Likewise.
8528 (output_node_opt_summary): Likewise.
8529 (add_node_to): Likewise.
8530 (reachable_from_this_partition_p): Likewise.
8531 (lto_set_symtab_encoder_in_partition): Likewise.
8532 (lto_symtab_encoder_in_partition_p): Likewise.
8533 (lto_set_symtab_encoder_encode_initializer): Likewise.
8534 (lto_symtab_encoder_encode_initializer_p): Likewise.
8535 (lto_set_symtab_encoder_encode_body): Likewise.
8536 (lto_symtab_encoder_encode_body_p): Likewise.
8537 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
8539 * lto-streamer-in.c (lto_read_body): Likewise.
8540 (fixup_call_stmt_edges): Likewise.
8541 (fixup_call_stmt_edges_1): Likewise.
8542 * lto-streamer-out.c (produce_symtab): Likewise.
8543 (output_symbol_p): Likewise.
8544 (write_symbol): Likewise.
8545 (lto_output): Likewise.
8546 (copy_function): Likewise.
8547 (output_function): Likewise.
8548 * passes.c (function_called_by_processed_nodes_p): Likewise.
8549 (ipa_write_optimization_summaries): Likewise.
8550 (ipa_write_summaries): Likewise.
8551 (do_per_function_toporder): Likewise.
8552 (do_per_function): Likewise.
8553 (dump_passes): Likewise.
8554 * symtab.c (symtab_semantically_equivalent_p): Likewise.
8555 (symtab_nonoverwritable_alias): Likewise.
8556 (symtab_nonoverwritable_alias_1): Likewise.
8557 (symtab_for_node_and_aliases): Likewise.
8558 (symtab_resolve_alias): Likewise.
8559 (fixup_same_cpp_alias_visibility): Likewise.
8560 (symtab_alias_ultimate_target): Likewise.
8561 (symtab_used_from_object_file_p): Likewise.
8562 (verify_symtab_base): Likewise.
8563 (dump_symtab_base): Likewise.
8564 (symtab_node_name): Likewise.
8565 (symtab_node_asm_name): Likewise.
8566 (symtab_dissolve_same_comdat_group_list): Likewise.
8567 (symtab_add_to_same_comdat_group): Likewise.
8568 (symtab_unregister_node): Likewise.
8569 (symtab_insert_node_to_hashtable): Likewise.
8570 (symtab_register_node): Likewise.
8571 (unlink_from_assembler_name_hash): Likewise.
8572 (insert_to_assembler_name_hash): Likewise.
8573 (eq_assembler_name): Likewise.
8574 (hash_node_by_assembler_name): Likewise.
8575 (eq_node): Likewise.
8576 (hash_node): Likewise.
8577 * toplev.c (wrapup_global_declaration_2): Likewise.
8578 * trans-mem.c (ipa_tm_execute): Likewise.
8579 (ipa_tm_transform_clone): Likewise.
8580 (ipa_tm_transform_transaction): Likewise.
8581 (ipa_tm_transform_calls_redirect): Likewise.
8582 (ipa_tm_insert_gettmclone_call): Likewise.
8583 (ipa_tm_insert_irr_call): Likewise.
8584 (ipa_tm_create_version): Likewise.
8585 (ipa_tm_create_version_alias): Likewise.
8586 (ipa_tm_mark_forced_by_abi_node): Likewise.
8587 (ipa_tm_mark_force_output_node): Likewise.
8588 (ipa_tm_diagnose_tm_safe): Likewise.
8589 (ipa_tm_mayenterirr_function): Likewise.
8590 (ipa_tm_scan_irr_function): Likewise.
8591 (ipa_tm_note_irrevocable): Likewise.
8592 (ipa_tm_scan_calls_clone): Likewise.
8593 (get_cg_data): Likewise.
8594 * tree-eh.c (tree_could_trap_p): Likewise.
8595 * tree-emutls.c (ipa_lower_emutls): Likewise.
8596 (create_emultls_var): Likewise.
8597 (lower_emutls_function_body): Likewise.
8598 (gen_emutls_addr): Likewise.
8599 (emutls_decl): Likewise.
8600 (new_emutls_decl): Likewise.
8601 * tree-inline.c (tree_function_versioning): Likewise.
8602 (optimize_inline_calls): Likewise.
8603 (expand_call_inline): Likewise.
8604 (estimate_num_insns): Likewise.
8605 (copy_bb): Likewise.
8606 (delete_unreachable_blocks_update_callgraph): Likewise.
8607 * tree-nested.c (gimplify_all_functions): Likewise.
8608 (create_nesting_tree): Likewise.
8609 (check_for_nested_with_variably_modified): Likewise.
8610 * tree-pretty-print.c (dump_function_header): Likewise.
8611 * tree-profile.c (tree_profiling): Likewise.
8612 * tree-sra.c (ipa_sra_preliminary_function_checks): Likewise.
8613 (modify_function): Likewise.
8614 (convert_callers): Likewise.
8615 (convert_callers_for_node): Likewise.
8616 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
8617 (associate_varinfo_to_alias): Likewise.
8618 (create_variable_info_for): Likewise.
8619 (get_constraint_for_ssa_var): Likewise.
8620 * tree-vectorizer.c (increase_alignment): Likewise.
8621 * tree.c (find_decls_types_in_var): Likewise.
8622 (find_decls_types_in_node): Likewise.
8623 (free_lang_data_in_decl): Likewise.
8624 * value-prof.c (gimple_ic_transform): Likewise.
8625 (gimple_ic): Likewise.
8626 (check_ic_target): Likewise.
8627 (init_node_map): Likewise.
8628 * varasm.c (decl_binds_to_current_def_p): Likewise.
8629 (default_binds_local_p_1): Likewise.
8630 (dump_tm_clone_pairs): Likewise.
8631 (assemble_alias): Likewise.
8632 (find_decl): Likewise.
8633 (mark_decl_referenced): Likewise.
8634 * varpool.c (varpool_for_node_and_aliases): Likewise.
8635 (varpool_extra_name_alias): Likewise.
8636 (varpool_create_variable_alias): Likewise.
8637 (add_new_static_var): Likewise.
8638 (varpool_finalize_named_section_flags): Likewise.
8639 (varpool_remove_unreferenced_decls): Likewise.
8640 (enqueue_node): Likewise.
8641 (varpool_assemble_decl): Likewise.
8642 (assemble_aliases): Likewise.
8643 (varpool_analyze_node): Likewise.
8644 (cgraph_variable_initializer_availability): Likewise.
8645 (varpool_add_new_variable): Likewise.
8646 (ctor_for_folding): Likewise.
8647 (dump_varpool_node): Likewise.
8648 (varpool_remove_initializer): Likewise.
8649 (varpool_remove_node): Likewise.
8650 (varpool_node_for_decl): Likewise.
8651 (varpool_create_empty_node): Likewise.
8652 * config/i386/i386.c (ix86_generate_version_dispatcher_body): Likewise.
8653 (ix86_get_function_versions_dispatcher): Likewise.
8655 2013-10-29 David Malcolm <dmalcolm@redhat.com>
8657 * cgraph.h (symtab_node_base): Convert to a class;
8658 add GTY((desc ("%h.type"), tag ("SYMTAB_SYMBOL"))), and take
8659 chain_next/prev from symtab_node_def.
8660 (cgraph_node): Inherit from symtab_node; add GTY option
8661 tag ("SYMTAB_FUNCTION").
8662 (varpool_node): Inherit from symtab_node; add GTY option
8663 tag ("SYMTAB_VARIABLE").
8664 (symtab_node_def): Remove.
8665 (is_a_helper <cgraph_node>::test (symtab_node_def *)): Convert to...
8666 (is_a_helper <cgraph_node>::test (symtab_node_base *)): ...this.
8667 (is_a_helper <varpool_node>::test (symtab_node_def *)): Convert to...
8668 (is_a_helper <varpool_node>::test (symtab_node_base *)): ...this.
8670 * ipa-ref.h (symtab_node_def): Drop.
8671 (symtab_node): Change underlying type from symtab_node_def to
8673 (const_symtab_node): Likwise.
8675 * is-a.h: Update examples in comment.
8677 * symtab.c (symtab_hash): Change symtab_node_def to symtab_node_base.
8678 (assembler_name_hash): Likewise.
8680 2013-10-29 Martin Liska <marxin.liska@gmail.com>
8682 * doc/tree-ssa.texi (gimple_phi_result): Document.
8683 (gimple_phi_num_args, gimple_phi_arg): Likewise.
8684 (gimple_phi_arg_edge, gimple_phi_arg_def): Likewise.
8685 (PHI_RESULT, PHI_NUM_ARGS): Remove.
8686 (PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF): Likewise.
8688 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
8690 * expr.h: Revert change and include tree-core.h.
8691 * rtl.h: Revert change and don't include tree-core.h.
8693 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
8695 * config/darwin.c: Include gimple.h.
8696 * config/i386/winnt.c: Likewise.
8698 2013-10-29 Marc Glisse <marc.glisse@inria.fr>
8700 PR tree-optimization/19831
8701 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle BUILT_IN_FREE.
8703 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
8705 * tree-outof-ssa.h: Remove include files.
8706 * tree-outof-ssa.c: Add required include files from tree-outof-ssa.h.
8708 * tree-ssa-coalesce.c: Likewise.
8709 * cfgexpand.c: Likewise.
8710 * tree-ssa-ter.c: Likewise.
8711 * ipa-prop.h: Remove gimple.h and tree-core.h from include list.
8712 * lto-streamer.h: Likewise.
8713 * cgraphbuild.c: Add gimple.h to include list.
8714 * data-streamer-in.c: Likewise.
8715 * ipa-cp.c: Likewise.
8716 * tree-streamer.c: Likewise.
8717 * lto-compress.c: Likewise.
8718 * ipa-reference.c: Likewise.
8719 * data-streamer-out.c: Likewise.
8720 * lto-cgraph.c: Likewise.
8721 * cgraphclones.c: Likewise.
8722 * ipa-utils.c: Likewise.
8723 * data-streamer.c: Likewise.
8724 * ipa-split.c: Likewise.
8725 * lto-section-in.c: Likewise.
8726 * tree-streamer-out.c: Likewise.
8727 * ipa-prop.c: Likewise.
8728 * tree-streamer-in.c: Likewise.
8729 * symtab.c: Likewise.
8730 * opts-global.c: Likewise.
8731 * lto-opts.c: Likewise.
8732 * lto-section-out.c: Likewise.
8733 * lto-streamer.c: Likewise.
8734 * rtl.h: Add tree-core.h to include list.
8735 * expr.h: Remove tree-core.h from include list.
8736 * gimple.h: Likewise.
8737 * ipa-utils.h: Likewise.
8738 * streamer-hooks.h: Likewise.
8739 * streamer-hooks.c: Include input.h.
8741 2013-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8743 * config/arm/arm.c (cortexa7_extra_costs): New table.
8744 (arm_cortex_a7_tune): New.
8745 * config/arm/arm-cores.def: Use cortex_a7 tuning for cortex-a7.
8747 2013-10-29 Eric Botcazou <ebotcazou@adacore.com>
8749 * expr.c (expand_expr_real_1) <MEM_EXPR>: Eliminate small redundancy.
8751 2013-10-29 David Malcolm <dmalcolm@redhat.com>
8753 * doc/gty.texi ("Inheritance and GTY"): Make it clear that
8754 to use autogenerated markers for a class-hierarchy, every class
8755 must have a GTY marker.
8756 * gengtype.h (struct type): Add linked list of subclasses to
8757 the "s" member of the union.
8758 (add_subclass): New decl.
8759 * gengtype-state.c (read_state_struct_type): Set up subclass
8761 * gengtype.c (get_ultimate_base_class): New.
8762 (add_subclass): New.
8763 (new_structure): Set up subclass linked list.
8764 (set_gc_used_type): Propagate usage information to subclasses.
8765 (output_mangled_typename): Use get_ultimate_base_class.
8766 (walk_subclasses): Use the subclass linked list, avoiding an
8767 O(N^2) when writing out all types.
8768 (walk_type): Issue an error if the base class is missing a tag,
8769 rather than generating bogus C code. Add a gcc_unreachable
8770 default case, in case people omit tags from concrete subclasses,
8771 or get the values wrong.
8772 (write_func_for_structure): Issue an error for subclasses for
8773 which the base doesn't have a "desc", since otherwise the
8774 autogenerated routines for the base would silently fail to visit
8775 any subclass fields.
8776 (write_root): Use get_ultimate_base_class, tweaking constness of
8777 tp to match that function's signature.
8779 2013-10-29 David Malcolm <dmalcolm@redhat.com>
8781 * doc/gty.texi (GTY Options): Add note about inheritance to
8782 description of desc and tag.
8783 (Inheritance and GTY): New.
8785 2013-10-29 David Malcolm <dmalcolm@redhat.com>
8787 * gengtype-parse.c (opts_have): Drop "static" so that
8788 we can use this from gengtype.c.
8789 * gengtype.c (set_gc_used_type): Mark any base class as used;
8790 update field traversal to visit inherited fields.
8791 (output_mangled_typename): Convert references to classes within
8792 an inheritance hierarchy to reference the ultimate base class,
8793 since only it will have gt_ functions.
8794 (get_string_option): New.
8795 (walk_subclasses): New.
8796 (walk_type): Treat GTY structs that have a "desc" as being the
8797 root of an inheritance hierarchy. Generate a switch on it
8798 within the marking function which walks all subclasses, adding
8799 cases for them via walk_subclasses. For subclasses, visit all
8800 fields of the type (including inherited ones).
8801 (write_func_for_structure): Don't write fns for subclasses, only
8802 for the ultimate base class within an inheritance hierarchy.
8803 Subclasses-marking will be handled by the base class marking functions.
8804 (write_types): Likewise.
8805 (write_local_func_for_structure): Likewise.
8806 (USED_BY_TYPED_GC_P): Emit allocators for subclasses that have
8807 a "tag" option (and are thus concrete subclasses).
8808 (write_root): Use the marker function for the ultimate base class.
8809 * gengtype.h (FOR_ALL_INHERITED_FIELDS): New.
8810 (opts_have): Add declaration.
8812 2013-10-28 Vladimir Makarov <vmakarov@redhat.com>
8814 * lra-spills.c (lra_final_code_change): Remove useless move insns
8815 originated from moves of pseudos.
8817 2013-10-28 Jeff Law <law@redhat.com>
8819 * lower-subreg.c (resolve_simple_move): Fix comment typo.
8821 2013-10-28 Trevor Saunders <tsaunders@mozilla.com>
8823 * df-scan.c (df_collection_rec): Adjust.
8824 (copy_defs): New constant.
8825 (copy_uses): Likewise.
8826 (copy_eq_uses): Likewise.
8827 (copy_mw): Likewise.
8828 (copy_all): Likewise.
8829 (df_insn_rescan): Adjust.
8830 (df_notes_rescan): Likewise.
8831 (df_swap_refs): Likewise.
8832 (df_sort_and_compress_refs): Likewise.
8833 (df_sort_and_compress_mws): Likewise.
8834 (df_install_refs): Likewise.
8835 (df_install_mws): Likewise.
8836 (df_refs_add_to_chains): Add flags parameter controlling which vectors
8838 (df_bb_refs_record): Adjust.
8839 (df_record_entry_block_defs): Likewise.
8840 (df_record_exit_block_defs): Likewise.
8841 (df_refs_verify): Likewise.
8842 (df_mws_verify): Likewise.
8843 (df_insn_refs_verify): Likewise.
8844 (df_bb_verify): Likewise.
8845 * ipa-pure-const.c (finish_state): Remove.
8846 (propagate): Adjust.
8847 * tree-data-ref.c tree-ssa-alias.c tree-ssa-loop-ivcanon.c
8848 tree-ssa-threadedge.c tree-vect-loop-manip.c tree-vect-slp.c
8849 var-tracking.c: Adjust.
8850 * vec.c (stack_vecs): Remove.
8851 (register_stack_vec): Likewise.
8852 (stack_vec_register_index): Likewise.
8853 (unregister_stack_vec): Likewise.
8854 * vec.h (struct va_stack): Remove.
8855 (struct vec<T, A, vl_ptr>): Specialize as
8856 struct vec<T, va_heap, vl_ptr> instead since va_heap is the only
8857 allocation strategy compatable with the vl_ptr layout.
8858 (struct vec<T, va_gc, vl_ptr>): Remove because it now gets an empty
8859 specialization anyway.
8860 (class stack_vec): New class.
8861 (vec_stack_alloc): Remove.
8862 (vec<T, va_heap, vl_ptr>::using_auto_storage): New method.
8864 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
8865 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8866 Sergey Lega <sergey.s.lega@intel.com>
8867 Anna Tikhonova <anna.tikhonova@intel.com>
8868 Ilya Tocar <ilya.tocar@intel.com>
8869 Andrey Turetskiy <andrey.turetskiy@intel.com>
8870 Ilya Verbin <ilya.verbin@intel.com>
8871 Kirill Yukhin <kirill.yukhin@intel.com>
8872 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8874 * config/i386/i386.md (prefetch): Allow TARGET_AVX512PF.
8875 (*prefetch_avx512pf_<mode>): New.
8876 * config/i386/sse.md (avx512f_vmcmp<mode>3): Ditto.
8877 (avx512f_maskcmp<mode>3): Ditto.
8878 (vashrv16si3): Ditto.
8880 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
8881 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8882 Sergey Lega <sergey.s.lega@intel.com>
8883 Anna Tikhonova <anna.tikhonova@intel.com>
8884 Ilya Tocar <ilya.tocar@intel.com>
8885 Andrey Turetskiy <andrey.turetskiy@intel.com>
8886 Ilya Verbin <ilya.verbin@intel.com>
8887 Kirill Yukhin <kirill.yukhin@intel.com>
8888 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8890 * config/i386/i386.md (any_truncate): New.
8891 (trunsuffix): Ditto.
8892 * config/i386/predicates.md (const_8_to_9_operand): New.
8893 (const_10_to_11_operand): Ditto.
8894 (const_12_to_13_operand): Ditto.
8895 (const_14_to_15_operand): Ditto.
8896 (const_16_to_19_operand): Ditto.
8897 (const_20_to_23_operand): Ditto.
8898 (const_24_to_27_operand): Ditto.
8899 (const_28_to_31_operand): Ditto.
8900 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_FIX_NOTRUNC.
8901 (cvtusi2<ssescalarmodesuffix>32): New.
8902 (cvtusi2<ssescalarmodesuffix>64): Ditto.
8903 (ufloatv16siv16sf2): Ditto.
8904 (avx512f_fix_notruncv16sfv16si): Ditto.
8905 (avx512f_ufix_notruncv16sfv16si): Ditto.
8906 (avx512f_vcvtss2usi): Ditto.
8907 (avx512f_vcvtss2usiq): Ditto.
8908 (avx512f_vcvttss2usi): Ditto.
8909 (avx512f_vcvttss2usiq): Ditto.
8910 (avx512f_vcvtsd2usi): Ditto.
8911 (avx512f_vcvtsd2usiq): Ditto.
8912 (avx512f_vcvttsd2usi): Ditto.
8913 (avx512f_vcvttsd2usiq): Ditto.
8914 (ufloatv8siv8df): Ditto.
8915 (avx512f_cvtdq2pd512_2): Ditto.
8916 (avx512f_cvtpd2dq512): Ditto.
8917 (avx512f_ufix_notruncv8dfv8si): Ditto.
8918 (avx512f_cvtpd2ps512): Ditto.
8919 (vec_unpacks_lo_v16sf): Ditto.
8920 (vec_unpacks_hi_v16sf): Ditto.
8921 (vec_unpacks_float_hi_v16si): Ditto.
8922 (vec_unpacks_float_lo_v16si): Ditto.
8923 (avx512f_unpckhps512): Ditto.
8924 (avx512f_unpcklps512): Ditto.
8925 (avx512f_movshdup512): Ditto.
8926 (avx512f_movsldup512): Ditto.
8927 (vec_extract_lo_v32hi): Ditto.
8928 (vec_extract_hi_v32hi): Ditto.
8929 (vec_extract_lo_v64qi): Ditto.
8930 (vec_extract_hi_v64qi): Ditto.
8931 (avx512f_unpckhpd512): Ditto.
8932 (avx512f_movddup512): Ditto.
8933 (avx512f_unpcklpd512): Ditto.
8934 (*avx512f_unpcklpd512): Ditto.
8935 (avx512f_shufps512_1): Ditto.
8936 (avx512f_shufpd512_1): Ditto.
8937 (avx512f_interleave_highv8di): Ditto.
8938 (avx512f_interleave_lowv8di): Ditto.
8939 (PMOV_DST_MODE): Ditto.
8940 (pmov_src_mode): Ditto.
8941 (pmov_src_lower): Ditto.
8943 (*avx512f_<code><pmov_src_lower><mode>2): Ditto.
8944 (*avx512f_<code>v8div16qi2): Ditto.
8945 (*avx512f_<code>v8div16qi2_store): Ditto.
8946 (vec_widen_umult_even_v16si): Ditto.
8947 (*vec_widen_umult_even_v16si): Ditto.
8948 (vec_widen_smult_even_v16si): Ditto.
8949 (*vec_widen_smult_even_v16si): Ditto.
8950 (avx512f_interleave_highv16si): Ditto.
8951 (avx512f_interleave_lowv16si): Ditto.
8952 (avx512f_<code>v16qiv16si2): Ditto.
8953 (avx512f_<code>v16hiv16si2): Ditto.
8954 (avx512f_<code>v8qiv8di2): Ditto.
8955 (avx512f_<code>v8hiv8di2): Ditto.
8956 (avx512f_<code>v8siv8di2): Ditto.
8957 (avx512cd_maskb_vec_dupv8di): Ditto.
8958 (avx512cd_maskw_vec_dupv16si): Ditto.
8959 (avx512f_vcvtph2ps512): Ditto.
8960 (avx512f_vcvtps2ph512): Ditto.
8961 (VEC_EXTRACT_MODE): Extened with wider modes.
8962 (VEC_PERM_AVX2): Ditto.
8963 (VEC_PERM_CONST): Ditto.
8965 2013-10-28 Joern Rennecke <joern.rennecke@embecosm.com>
8967 * config/arc/arc.c (arc_ccfsm_post_advance):
8968 Add comment about TYPE_RETURN.
8970 2013-10-28 Bin Cheng <bin.cheng@arm.com>
8972 * tree-ssa-loop-ivopts.c (strip_offset_1): Change parameter type.
8973 Count DECL_FIELD_BIT_OFFSET for COMPONENT_REF.
8974 (strip_offset): Convert offset to unsigned number.
8976 2013-10-27 Tom de Vries <tom@codesourcery.com>
8978 * cfgexpand.c (gimple_expand_cfg): Remove test for parm_birth_insn.
8979 Don't commit insertions after NOTE_INSN_FUNCTION_BEG.
8981 2013-10-27 Oleg Endo <olegendo@gcc.gnu.org>
8983 * config/sh/sh.c (MSW, LSW): Move and rename macros to...
8984 * config/sh/sh.h (SH_REG_MSW_OFFSET, SH_REG_LSW_OFFSET): ... here.
8985 (TARGET_BIG_ENDIAN): New macro.
8986 * config/sh/sh.md: Use it instead of !TARGET_LITTLE_ENDIAN.
8987 Use SH_REG_MSW_OFFSET and SH_REG_LSW_OFFSET.
8988 * config/sh/sh.c: Likewise.
8989 * config/sh/sh.h: Likewise.
8991 2013-10-27 Hans-Peter Nilsson <hp@axis.com>
8993 * config/cris/cris.c (cris_emit_trap_for_misalignment): Replace the
8994 removed PRED_MUDFLAP with PRED_NORETURN. Correct file-path in comment.
8996 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
8998 * config/sh/sh.md (movmemsi): Remove empty constraints and predicates.
9000 (cmpstr_t, cmpstrsi): Fix formatting.
9002 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
9005 * config/sh/predicates.md (general_movdst_operand): Allow reg+reg
9006 addressing, do not use general_operand for memory operands.
9008 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
9011 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
9012 * lra-spills.c (lra_final_code_change): Remove useless move insns.
9014 2013-10-26 Jeff Law <law@redhat.com>
9016 * predict.c (PRED_MUDFLAP): Remove.
9017 * targhooks.c (build_va_arg_indirect_ref): Remove mudflap support.
9019 * Makefile.in (C_COMMON_OBJS): Remove tree-mudflap.
9020 (OBJS): Remove tree-nomudflap.o
9021 (GTFILES): Remove tree-mudflap.c
9022 * builtins.c (expand_builtin_alloc): Remove mudflap support.
9023 * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
9024 (mfwrap_spec, mflib_spec): Likewise.
9025 (cpp_unique_options, cc1_options, static_specs): Likewise.
9026 * gimplify (gimplify_vla_decl, build_va_arg_indirect_ref): Likewise.
9027 * passes.def: Likewise.
9028 * toplev.c (compile_file, process_options): Likewise.
9029 * tree-inline.c (copy_tree_r): Likewise.
9030 * tree-pass.,h (make_pass_mudflap_1, make_pass_mudflap_2): Likewise.
9031 * varasm.c (make_decl_rtl, make_decl_rtl_for_debug): Likewise.
9032 (build_constant_desc, output_constant_def_contents): Likewise.
9033 (categorize_decl_for_section): Likewise.
9034 * tree-mudflap.c: Removed.
9035 * tree-mudflap.h: Removed.
9036 * tree-nomudflap.c: Removed.
9037 * bfin/uclinux.h (MFWRAP_SPEC): Remove.
9038 * moxie/uclinux.h (MFWRAP_SPEC): Likewise.
9039 * rs6000/aix.h (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
9040 * config/sol2.h (MFLIB_SPEC): Likewise.
9041 * doc/install.texi: Remove mudflap references.
9042 * doc/passes.texi: Similarly.
9043 * doc/sourcebuild.texi: Similarly.
9044 * doc/invoke.texi: Remove mudlfap related options.
9046 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
9048 PR rtl-optimization/58759
9049 * lra-constraints.c (lra_constraints): Remove wrong condition to
9050 remove insn setting up an equivalent pseudo.
9052 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
9054 * config/rs6000/rs6000-protos.h
9055 (rs6000_secondary_memory_needed_mode): New prototype.
9056 * config/rs6000/rs6000.c: Include ira.h.
9057 (TARGET_LRA_P): Redefine.
9058 (rs6000_legitimate_offset_address_p): Call
9059 legitimate_constant_pool_address_p in strict mode for LRA.
9060 (rs6000_legitimate_address_p): Ditto.
9061 (legitimate_lo_sum_address_p): Add code for LRA. Use lra_in_progress.
9062 (rs6000_emit_move): Add LRA version of code to generate load/store
9064 (rs6000_secondary_memory_needed_mode): New.
9065 (rs6000_alloc_sdmode_stack_slot): Do nothing for LRA.
9066 (rs6000_secondary_reload_class): Return NO_REGS for LRA for
9067 constants, memory, and FP registers.
9068 (rs6000_lra_p): New.
9069 * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_MODE): New macro.
9070 * config/rs6000/rs6000.opt (mlra): New option.
9071 * lra-spills.c (lra_final_code_change): Remove useless move insns.
9073 2013-10-25 Yufeng Zhang <yufeng.zhang@arm.com>
9075 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Call
9076 has_single_use () and not do the conversion if has_single_use ()
9077 returns false for the multiplication result.
9079 2013-10-25 David Malcolm <dmalcolm@redhat.com>
9081 * tree.h (EXCEPTIONAL_CLASS_P): Rename parameter from "CODE"
9082 to "NODE", since this works on a "tree", not an
9084 (CONSTANT_CLASS_P): Likewise.
9087 (INDIRECT_REF_P): Likewise.
9088 (REFERENCE_CLASS_P): Likewise.
9089 (COMPARISON_CLASS_P): Likewise.
9090 (UNARY_CLASS_P): Likewise.
9091 (BINARY_CLASS_P): Likewise.
9092 (STATEMENT_CLASS_P): Likewise.
9093 (VL_EXP_CLASS_P): Likewise.
9094 (EXPRESSION_CLASS_P): Likewise.
9095 (IS_TYPE_OR_DECL_P): Likewise.
9097 2013-10-25 Marc Glisse <marc.glisse@inria.fr>
9099 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for an
9100 ADDR_EXPR in the defining statement.
9102 2013-10-25 Richard Biener <rguenther@suse.de>
9104 PR tree-optimization/58626
9105 * tree-loop-distribution.c (enum rdg_dep_type): Remove
9106 anti_dd, output_dd and input_dd.
9107 (struct rdg_edge): Remove level and relation members.
9108 (RDGE_LEVEL, RDGE_RELATION): Remove.
9109 (dot_rdg_1): Adjust.
9110 (create_rdg_edge_for_ddr): Remove.
9111 (create_rdg_edges_for_scalar): Adjust.
9112 (create_edge_for_control_dependence): Likewise.
9113 (create_rdg_edges): Split into ...
9114 (create_rdg_flow_edges): ... this
9115 (create_rdg_cd_edges): ... and this.
9117 (build_rdg): Likewise, do not compute data dependences or
9119 (pg_add_dependence_edges): New function.
9121 (distribute_loop): First apply all non-dependence based
9122 partition mergings. Then compute dependences between partitions
9123 and merge and order partitions according to them.
9125 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
9127 PR rtl-optimization/58831
9128 * alias.c (init_alias_analysis): At the beginning of each iteration,
9129 set the reg_seen[N] bit if static_reg_base_value[N] is non-null.
9131 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
9133 * recog.c (search_ofs): New static variable moved from...
9134 (peep2_find_free_register): ...here.
9135 (peephole2_optimize): Initialize it.
9137 2013-10-25 Tobias Burnus <burnus@net-b.de>
9139 * doc/invoke.texi (fopenmp): Change supported OpenMP version to 4.0.
9141 2013-10-25 Uros Bizjak <ubizjak@gmail.com>
9143 * config/i386/i386.h (TARGET_MPX): New define.
9144 (TARGET_MPX_P): Ditto.
9146 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
9148 * config/i386/constraints.md (B): New.
9151 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
9152 * config/i386/i386-modes.def (BND32): New.
9154 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
9155 * config/i386/i386.c (isa_opts): Add mmpx.
9156 (regclass_map): Add bound registers.
9157 (dbx_register_map): Likewise.
9158 (dbx64_register_map): Likewise.
9159 (svr4_dbx_register_map): Likewise.
9161 (ix86_option_override_internal): Support MPX ISA.
9162 (ix86_conditional_register_usage): Support bound registers.
9163 (print_reg): Likewise.
9164 (ix86_code_end): Add MPX bnd prefix.
9165 (output_set_got): Likewise.
9166 (ix86_output_call_insn): Likewise.
9167 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
9168 (ix86_print_operand_punct_valid_p): Likewise.
9169 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
9171 (ix86_class_likely_spilled_p): Add bound regs support.
9172 (ix86_hard_regno_mode_ok): Likewise.
9173 (x86_order_regs_for_local_alloc): Likewise.
9174 (ix86_bnd_prefixed_insn_p): New.
9175 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
9176 (FIXED_REGISTERS): Add bound registers.
9177 (CALL_USED_REGISTERS): Likewise.
9178 (REG_ALLOC_ORDER): Likewise.
9179 (HARD_REGNO_NREGS): Likewise.
9181 (VALID_BND_REG_MODE): New.
9182 (FIRST_BND_REG): New.
9183 (LAST_BND_REG): New.
9184 (reg_class): Add BND_REGS.
9185 (REG_CLASS_NAMES): Likewise.
9186 (REG_CLASS_CONTENTS): Likewise.
9188 (ANY_BND_REG_P): New.
9190 (HI_REGISTER_NAMES): Add bound registers.
9191 * config/i386/i386.md (UNSPEC_BNDMK): New.
9192 (UNSPEC_BNDMK_ADDR): New.
9193 (UNSPEC_BNDSTX): New.
9194 (UNSPEC_BNDLDX): New.
9195 (UNSPEC_BNDLDX_ADDR): New.
9196 (UNSPEC_BNDCL): New.
9197 (UNSPEC_BNDCU): New.
9198 (UNSPEC_BNDCN): New.
9199 (UNSPEC_MPX_FENCE): New.
9202 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
9203 (length_immediate): Likewise.
9204 (prefix_0f): Likewise.
9206 (prefix_rep): Check for bnd prefix.
9207 (length_nobnd): New.
9208 (length): Use length_nobnd if specified.
9213 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
9216 (simple_return_internal): Likewise.
9217 (simple_return_pop_internal): Likewise.
9218 (*indirect_jump): Add MPX bnd prefix.
9219 (*tablejump_1): Likewise.
9220 (simple_return_internal_long): Likewise.
9221 (simple_return_indirect_internal): Likewise.
9225 (*mov<mode>_internal_mpx): New.
9226 (<mode>_<bndcheck>): New.
9227 (*<mode>_<bndcheck>): New.
9232 * config/i386/predicates.md (lea_address_operand): Rename to...
9233 (address_no_seg_operand): ... this.
9234 (address_mpx_no_base_operand): New.
9235 (address_mpx_no_index_operand): New.
9236 (bnd_mem_operator): New.
9237 * config/i386/i386.opt (mmpx): New.
9238 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
9239 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
9241 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
9243 * mode-classes.def (MODE_POINTER_BOUNDS): New.
9244 * tree.def (POINTER_BOUNDS_TYPE): New.
9245 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
9246 (POINTER_BOUNDS_MODE): New.
9247 (make_pointer_bounds_mode): New.
9248 * machmode.h (POINTER_BOUNDS_MODE_P): New.
9249 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
9250 (layout_type): Support POINTER_BOUNDS_TYPE.
9251 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
9252 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
9253 (type_contains_placeholder_1): Likewise.
9254 * tree.h (POINTER_BOUNDS_TYPE_P): New.
9255 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
9256 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
9258 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
9260 * expr.c (expand_expr_real_1): Use mode of memory reference rather than
9261 mode of address computation when calling memory_address_addr_space.
9263 2013-08-24 Richard Henderson <rth@twiddle.net>
9266 * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
9267 instead of create_convert_operand_to.
9268 (maybe_emit_sync_lock_test_and_set): Likewise.
9269 (expand_atomic_compare_and_swap): Likewise.
9270 (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.
9272 2013-08-24 Sriraman Tallam <tmsriram@google.com>
9274 * cgraph.c (cgraph_fnver_htab): Move GTY((...)) to be before htab_t.
9275 Change param_is to use the struct and not the pointer to the struct.
9277 2013-10-24 Andrew MacLeod <amacleod@redhat.com>
9279 * builtins.c (dummy_object, gimplify_va_arg_expr): Move to gimplify.c.
9280 * gimplify.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
9281 Move to targhooks.c.
9282 (dummy_object, gimplify_va_arg_expr): Relocate from builtins.c.
9283 * targhooks.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
9284 Relocate from gimplify.c.
9285 * targhooks.h: Add 2 prototypes.
9286 * tree.h: Delete 2 prototypes.
9288 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
9290 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p ): Check both
9291 [reg+mult*reg] and [mult*reg] to determine if multiplier is allowed.
9293 2013-10-24 Cong Hou <congh@google.com>
9295 * convert.c (convert_to_real): Guard those unsafe math function
9296 convertions with flag_unsafe_math_optimizations. Handle sqrt()
9299 2013-10-24 Markus Trippelsdorf <markus@trippelsdorf.de>
9302 * cgraph.c (cgraph_create_edge_1): Add indirect_unknown_callee
9304 (cgraph_create_edge): Use the new argument.
9305 (cgraph_create_indirect_edge): Likewise.
9307 2013-10-24 Joern Rennecke <joern.rennecke@embecosm.com>
9309 * config/arc/arc.c (arc_ccfsm_post_advance): Also handle
9311 (arc_ifcvt) <case 1 and 2>: Check that arc_ccfsm_post_advance
9312 changes statep->state.
9314 2013-10-24 Tobias Burnus <burnus@net-b.de>
9317 * tree-cfg.c (replace_loop_annotate): New function.
9318 (execute_build_cfg): Call it.
9319 * gimplify.c (gimple_boolify, gimplify_expr): Handle ANNOTATE_EXPR.
9320 * internal-fn.c (expand_ANNOTATE): New function.
9321 * internal-fn.def (ANNOTATE): Define as new internal function.
9322 * tree-core.h (tree_node_kind): Add annot_expr_ivdep_kind.
9323 * tree-pretty-print.c (dump_generic_node): Handle ANNOTATE_EXPR.
9324 * tree.def (ANNOTATE_EXPR): New DEFTREECODE.
9325 * doc/extend.texi (Pragmas): Document #pragma ivdep.
9326 * doc/generic.texi (Expressions): Document ANNOTATE_EXPR.
9328 2013-10-17 Ian Bolton <ian.bolton@arm.com>
9329 Marcus Shawcroft <marcus.shawcroft@arm.com>
9331 * config/aarch64/aarch64.c (aarch64_preferred_reload_class):
9332 Special case reload SP+C into none GENERAL_REGS.
9334 2013-10-24 Michael Matz <matz@suse.de>
9336 * gengtype.c (is_file_equal): Check that files will be same length.
9338 2013-10-25 Christian Bruel <christian.bruel@st.com>
9340 * config.gcc (sh-*): Add sh-mem.o to extra_obj.
9341 * config/sh/t-sh (sh-mem.o): New rule.
9342 * config/sh/sh-mem.cc (expand_block_move): Moved here.
9343 (sh_expand_cmpstr): New function.
9344 * config/sh/sh.c (force_into, expand_block_move): Move to sh-mem.c.
9345 * config/sh/sh-protos.h (sh_expand_cmpstr): Declare.
9346 * config/sh/sh.md (cmpstrsi, cmpstr_t): New patterns.
9347 (rotlhi3_8): Rename.
9349 2013-10-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9351 * configure.ac (ZW_PROG_COMPILER_DEPENDENCIES): Use CXX instead of CC.
9352 * Makefile.in (CXXDEPMODE): Assign and change users.
9353 (CCDEPMODE): Delete.
9354 * configure: Regenerate.
9356 2013-10-23 David Malcolm <dmalcolm@redhat.com>
9358 * gengtype-parse.c (require_without_advance): New.
9359 (type): For GTY-marked types that are not GTY((user)), parse any
9360 base classes, requiring them to be single-inheritance, and not
9361 be templates. For non-GTY-marked types and GTY((user)),
9362 continue to skip over any C++ inheritance specification.
9363 * gengtype-state.c (state_writer::write_state_struct_type):
9364 Write base class of type (if any).
9365 (read_state_struct_type): Read base class of type (if any).
9366 * gengtype.c (new_structure): Add a "base_class" parameter.
9367 (create_optional_field_): Update for new parameter to new_structure.
9368 (adjust_field_rtx_def): Likewise.
9369 (adjust_field_tree_exp): Likewise.
9370 * gengtype.h (struct type): Add "base_class" field to the s
9372 (new_structure): Add "base" parameter.
9374 2013-10-23 Sriraman Tallam <tmsriram@google.com>
9377 * config/i386/i386.c (ix86_option_override_internal):
9378 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...)
9379 (ix86_valid_target_attribute_tree):
9380 Change TARGET_64BIT to TARGET_64BIT_P (opts->...)
9381 Change TARGET_SSE to TARGET_SSE_P (opts->...)
9383 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
9385 * tree-ssa-loop.h: Remove include files.
9386 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
9387 * cfgloopmanip.c: Move required includes from tree-ssa-loop.h.
9388 * graphite-clast-to-gimple.c: Likewise.
9389 * graphite-scop-detection.c: Likewise.
9390 * graphite-sese-to-poly.c: Likewise.
9391 * ipa-inline-analysis.c: Likewise.
9392 * ipa-pure-const.c: Likewise.
9393 * loop-init.c: Likewise.
9394 * passes.c: Likewise.
9395 * predict.c: Likewise.
9396 * tree-cfg.c: Likewise.
9397 * tree-cfgcleanup.c: Likewise.
9398 * tree-chrec.c: Likewise.
9399 * tree-data-ref.c: Likewise.
9400 * tree-loop-distribution.c: Likewise.
9401 * tree-parloops.c: Likewise.
9402 * tree-predcom.c: Likewise.
9403 * tree-scalar-evolution.c: Likewise.
9404 * tree-ssa-address.c: Likewise.
9405 * tree-ssa.c: Likewise.
9406 * tree-ssa-dce.c: Likewise.
9407 * tree-ssa-loop.c: Likewise.
9408 * tree-ssa-loop-im.c: Likewise.
9409 * tree-ssa-loop-ivcanon.c: Likewise.
9410 * tree-ssa-loop-ivopts.c: Likewise.
9411 * tree-ssa-loop-manip.c: Likewise.
9412 * tree-ssa-loop-niter.c: Likewise.
9413 * tree-ssa-loop-prefetch.c: Likewise.
9414 * tree-ssa-loop-unswitch.c: Likewise.
9415 * tree-ssa-reassoc.c: Likewise.
9416 * tree-vect-data-refs.c: Likewise.
9417 * tree-vect-loop.c: Likewise.
9418 * tree-vect-loop-manip.c: Likewise.
9419 * tree-vectorizer.c: Likewise.
9420 * tree-vect-stmts.c: Likewise.
9421 * tree-vrp.c: Likewise.
9423 2013-10-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9425 * config/rs6000/altivec.md (mulv8hi3): Adjust for little endian.
9427 2013-10-23 Jakub Jelinek <jakub@redhat.com>
9429 PR tree-optimization/58775
9430 PR tree-optimization/58791
9431 * tree-ssa-reassoc.c (reassoc_stmt_dominates_stmt_p): New function.
9432 (insert_stmt_after): Rewritten, don't move the stmt, but really
9434 (get_stmt_uid_with_default): Remove.
9435 (build_and_add_sum): Use insert_stmt_after and
9436 reassoc_stmt_dominates_stmt_p. Fix up uid if bb contains only labels.
9437 (update_range_test): Set uid on stmts added by
9438 force_gimple_operand_gsi. Don't immediately modify statements
9439 in inter-bb optimization, just update oe->op values.
9440 (optimize_range_tests): Return bool whether any changed have been made.
9441 (update_ops): New function.
9442 (struct inter_bb_range_test_entry): New type.
9443 (maybe_optimize_range_tests): Perform statement changes here.
9444 (not_dominated_by, appears_later_in_bb, get_def_stmt,
9445 ensure_ops_are_available): Remove.
9446 (find_insert_point): Rewritten.
9447 (rewrite_expr_tree): Remove MOVED argument, add CHANGED argument,
9448 return LHS of the (new resp. old) stmt. Don't call
9449 ensure_ops_are_available, don't reuse SSA_NAMEs, recurse first
9450 instead of last, move new stmt at the right place.
9451 (linearize_expr, repropagate_negates): Don't reuse SSA_NAMEs.
9452 (negate_value): Likewise. Set uids.
9453 (break_up_subtract_bb): Initialize uids.
9454 (reassociate_bb): Adjust rewrite_expr_tree caller.
9455 (do_reassoc): Don't call renumber_gimple_stmt_uids.
9457 2013-10-23 David Edelsohn <dje.gcc@gmail.com>
9460 * config/rs6000/rs6000.md (mulsi3_internal1 and splitter): Add
9461 TARGET_32BIT final condition.
9462 (mulsi3_internal2 and splitter): Same.
9464 2013-10-23 Jeff Law <law@redhat.com>
9466 * tree-ssa-threadedge.c (thread_across_edge): Do not allow threading
9467 through joiner blocks with abnormal outgoing edges.
9469 * tree-ssa-threadupdate.c (thread_block_1): Renamed from thread_block.
9470 Add parameter JOINERS, to allow/disallow threading through joiner
9472 (thread_block): New. Call thread_block_1.
9473 (mark_threaded_blocks): Remove code to filter out certain cases
9474 of threading through joiner blocks.
9475 (thread_through_all_blocks): Document how we can have a dangling
9476 edge AUX field and clear it.
9478 2013-10-23 Ian Lance Taylor <iant@google.com>
9480 * doc/invoke.texi (Option Summary): Remove -fno-default-inline.
9481 (C++ Dialect Options): Likewise.
9482 (Optimize Options): Likewise.
9484 2013-10-23 Tom de Vries <tom@codesourcery.com>
9486 PR tree-optimization/58805
9487 * tree-ssa-tail-merge.c (stmt_local_def): Add gimple_vdef check.
9489 2013-10-23 Jakub Jelinek <jakub@redhat.com>
9491 * tree-vect-patterns.c (vect_recog_divmod_pattern): Optimize
9492 sequence based on get_range_info returned range.
9494 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
9496 * tree-ssa.h: Remove all #include's
9497 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
9498 * alias.c: Move required includes from tree-ssa.h.
9500 * builtins.c: Likewise.
9501 * calls.c: Likewise.
9502 * cfgexpand.c: Likewise.
9503 * cfghooks.c: Likewise.
9504 * cfgloop.c: Likewise.
9505 * cfgloopmanip.c: Likewise.
9506 * cgraph.c: Likewise.
9507 * cgraphbuild.c: Likewise.
9508 * cgraphclones.c: Likewise.
9509 * cgraphunit.c: Likewise.
9511 * except.c: Likewise.
9513 * final.c: Likewise.
9514 * fold-const.c: Likewise.
9515 * ggc-page.c: Likewise.
9516 * gimple-builder.c: Likewise.
9517 * gimple-fold.c: Likewise.
9518 * gimple-iterator.c: Likewise.
9519 * gimple-low.c: Likewise.
9520 * gimple-pretty-print.c: Likewise.
9521 * gimple-ssa-strength-reduction.c: Likewise.
9522 * gimple-streamer-in.c: Likewise.
9523 * gimple-streamer-out.c: Likewise.
9524 * gimplify.c: Likewise.
9525 * graphite-blocking.c: Likewise.
9526 * graphite-clast-to-gimple.c: Likewise.
9527 * graphite-dependences.c: Likewise.
9528 * graphite-interchange.c: Likewise.
9529 * graphite-optimize-isl.c: Likewise.
9530 * graphite-poly.c: Likewise.
9531 * graphite-scop-detection.c: Likewise.
9532 * graphite-sese-to-poly.c: Likewise.
9533 * graphite.c: Likewise.
9534 * ipa-cp.c: Likewise.
9535 * ipa-inline-analysis.c: Likewise.
9536 * ipa-inline-transform.c: Likewise.
9537 * ipa-inline.c: Likewise.
9538 * ipa-prop.c: Likewise.
9539 * ipa-pure-const.c: Likewise.
9540 * ipa-reference.c: Likewise.
9541 * ipa-split.c: Likewise.
9542 * ipa-utils.c: Likewise.
9543 * loop-init.c: Likewise.
9544 * lto-cgraph.c: Likewise.
9545 * lto-section-in.c: Likewise.
9546 * lto-section-out.c: Likewise.
9547 * lto-streamer-in.c: Likewise.
9548 * lto-streamer-out.c: Likewise.
9549 * lto-streamer.c: Likewise.
9550 * omp-low.c: Likewise.
9551 * passes.c: Likewise.
9552 * predict.c: Likewise.
9553 * print-tree.c: Likewise.
9554 * profile.c: Likewise.
9556 * targhooks.c: Likewise.
9557 * tracer.c: Likewise.
9558 * trans-mem.c: Likewise.
9559 * tree-call-cdce.c: Likewise.
9560 * tree-cfg.c: Likewise.
9561 * tree-cfgcleanup.c: Likewise.
9562 * tree-chrec.c: Likewise.
9563 * tree-complex.c: Likewise.
9564 * tree-data-ref.c: Likewise.
9565 * tree-dfa.c: Likewise.
9566 * tree-eh.c: Likewise.
9567 * tree-emutls.c: Likewise.
9568 * tree-if-conv.c: Likewise.
9569 * tree-inline.c: Likewise.
9570 * tree-into-ssa.c: Likewise.
9571 * tree-loop-distribution.c: Likewise.
9572 * tree-mudflap.c: Likewise.
9573 * tree-nested.c: Likewise.
9574 * tree-nrv.c: Likewise.
9575 * tree-object-size.c: Likewise.
9576 * tree-outof-ssa.c: Likewise.
9577 * tree-parloops.c: Likewise.
9578 * tree-phinodes.c: Likewise.
9579 * tree-predcom.c: Likewise.
9580 * tree-pretty-print.c: Likewise.
9581 * tree-profile.c: Likewise.
9582 * tree-scalar-evolution.c: Likewise.
9583 * tree-sra.c: Likewise.
9584 * tree-ssa-address.c: Likewise.
9585 * tree-ssa-alias.c: Likewise.
9586 * tree-ssa-ccp.c: Likewise.
9587 * tree-ssa-coalesce.c: Likewise.
9588 * tree-ssa-copy.c: Likewise.
9589 * tree-ssa-copyrename.c: Likewise.
9590 * tree-ssa-dce.c: Likewise.
9591 * tree-ssa-dom.c: Likewise.
9592 * tree-ssa-dse.c: Likewise.
9593 * tree-ssa-forwprop.c: Likewise.
9594 * tree-ssa-ifcombine.c: Likewise.
9595 * tree-ssa-live.c: Likewise.
9596 * tree-ssa-loop-ch.c: Likewise.
9597 * tree-ssa-loop-im.c: Likewise.
9598 * tree-ssa-loop-ivcanon.c: Likewise.
9599 * tree-ssa-loop-ivopts.c: Likewise.
9600 * tree-ssa-loop-manip.c: Likewise.
9601 * tree-ssa-loop-niter.c: Likewise.
9602 * tree-ssa-loop-prefetch.c: Likewise.
9603 * tree-ssa-loop-unswitch.c: Likewise.
9604 * tree-ssa-loop.c: Likewise.
9605 * tree-ssa-math-opts.c: Likewise.
9606 * tree-ssa-operands.c: Likewise.
9607 * tree-ssa-phiopt.c: Likewise.
9608 * tree-ssa-phiprop.c: Likewise.
9609 * tree-ssa-pre.c: Likewise.
9610 * tree-ssa-propagate.c: Likewise.
9611 * tree-ssa-reassoc.c: Likewise.
9612 * tree-ssa-sccvn.c: Likewise.
9613 * tree-ssa-sink.c: Likewise.
9614 * tree-ssa-strlen.c: Likewise.
9615 * tree-ssa-structalias.c: Likewise.
9616 * tree-ssa-tail-merge.c: Likewise.
9617 * tree-ssa-ter.c: Likewise.
9618 * tree-ssa-threadedge.c: Likewise.
9619 * tree-ssa-threadupdate.c: Likewise.
9620 * tree-ssa-uncprop.c: Likewise.
9621 * tree-ssa-uninit.c: Likewise.
9622 * tree-ssa.c: Likewise.
9623 * tree-ssanames.c: Likewise.
9624 * tree-stdarg.c: Likewise.
9625 * tree-streamer-in.c: Likewise.
9626 * tree-switch-conversion.c: Likewise.
9627 * tree-tailcall.c: Likewise.
9628 * tree-vect-data-refs.c: Likewise.
9629 * tree-vect-generic.c: Likewise.
9630 * tree-vect-loop-manip.c: Likewise.
9631 * tree-vect-loop.c: Likewise.
9632 * tree-vect-patterns.c: Likewise.
9633 * tree-vect-slp.c: Likewise.
9634 * tree-vect-stmts.c: Likewise.
9635 * tree-vectorizer.c: Likewise.
9636 * tree-vrp.c: Likewise.
9639 * value-prof.c: Likewise.
9640 * var-tracking.c: Likewise.
9641 * varpool.c: Likewise.
9642 * vtable-verify.c: Likewise.
9644 2013-10-23 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9646 * config/tilegx/tilegx.c: Include "tree.h".
9648 2013-10-23 Jakub Jelinek <jakub@redhat.com>
9650 * gimple-pretty-print.c (dump_ssaname_info): Always print "# " before
9651 the info, not after it.
9652 (gump_gimple_phi): Add COMMENT argument, if true, print "# " after
9653 dump_ssaname_info call.
9654 (pp_gimple_stmt_1): Adjust caller.
9655 (dump_phi_nodes): Likewise. Don't print "# " here.
9657 2013-10-22 Jan Hubicka <jh@suse.cz>
9659 * i386.h (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES): New
9661 * x86-tune.def (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES): Define it.
9662 * i386.c (expand_small_movmem_or_setmem): New function.
9663 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): New
9665 (alg_usable_p): Add support for value ranges; cleanup.
9666 (ix86_expand_set_or_movmem): Add support for misaligned moves.
9668 2013-10-22 Sterling Augustine <saugustine@google.com>
9670 * doc/invoke.texi: Document -ggnu-pubnames.
9671 * common.opt: Add new option -ggnu-pubnames and modify -gpubnames
9673 * dwarf2out.c: Include gdb/gdb-index.h.
9674 (DEBUG_PUBNAMES_SECTION, DEBUG_PUBTYPES_SECTION): Handle
9675 debug_generate_pub_sections.
9676 (is_java, output_pubtables, output_pubname): New functions.
9677 (include_pubname_in_output): Handle debug_generate_pub_sections at
9679 (size_of_pubnames): Use new local space_for_flags based on
9680 debug_generate_pub_sections.
9681 (output_pubnames): Unify pubnames and pubtypes output logic.
9682 Genericize comments. Call output_pubname.
9683 (dwarf2out_finish): Move logic to output_pubnames and call it.
9685 2013-10-22 Uros Bizjak <ubizjak@gmail.com>
9688 * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
9689 Remove CCCmode handling.
9690 <case LTU>: Return 'c' suffix for CCCmode.
9691 <case GEU>: Return 'nc' suffix for CCCmode.
9692 (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
9693 * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
9694 (*sub<mode>3_cc_overflow): Ditto.
9695 (*subsi3_zext_cc_overflow): Ditto.
9697 2013-10-22 Steve Ellcey <sellcey@mips.com>
9699 * config/mips/mips.c (mips_rtx_costs): Fix cost estimate for nor
9700 (AND (NOT OP1) (NOT OP2)).
9702 2013-10-22 Bill Schmidt <wschmidt@vnet.ibm.com>
9704 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
9705 meaning of merge-high and merge-low masks for little endian; avoid
9706 use of vector-pack masks for little endian for mismatched modes.
9708 2013-10-22 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9710 * config/tilepro/tilepro.c: Include "tree.h".
9712 2013-10-22 Andreas Schwab <schwab@suse.de>
9714 * config/m68k/m68k.c (notice_update_cc): Handle register conflict
9717 2013-10-22 Paolo Carlini <paolo.carlini@oracle.com>
9719 * doc/contrib.texi ([Fran@,{c}ois Dumont], [Tim Shen],
9720 [Ed Smith-Rowland]): New entries.
9721 ([Stephen M. Webb]): Update.
9723 2013-10-22 Andrew MacLeod <amacleod@redhat.com>
9725 * tree-ssa-ter.h: Remove duplicate copy of file contents.
9727 2013-10-21 Marek Polacek <polacek@redhat.com>
9730 * fold-const.c (fold_range_test): Return 0 if the type is not
9733 2013-10-21 Richard Sandiford <rdsandiford@googlemail.com>
9735 * system.h: Move hwint.h include further down.
9736 * hwint.h (sext_hwi, zext_hwi): Define unconditionally. Add
9737 gcc_checking_asserts.
9738 * hwint.c (sext_hwi, zext_hwi): Delete ENABLE_CHECKING versions.
9740 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
9742 Fix volatile issues in optimize_bit_field_compare.
9743 * fold-const.c (optimize_bit_field_compare): Bail out if
9744 lvolatilep or rvolatilep.
9746 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
9748 Fix DECL_BIT_FIELD depencency on flag_strict_volatile_bitfields
9749 and get_inner_reference returning different pmode for non-volatile
9750 bit-field members dependent on flag_strict_volatile_bitfields.
9751 * stor-layout.c (layout_decl): Remove special handling of
9752 flag_strict_volatile_bitfields.
9753 * expr.c (get_inner_reference): Don't use DECL_BIT_FIELD
9754 if flag_strict_volatile_bitfields > 0 and TREE_THIS_VOLATILE.
9756 2013-10-21 Paulo Matos <pmatos@broadcom.com>
9758 * ipa-inline.c (edge_badness): Cap edge->count at max_count for badness
9761 2013-10-21 Jeff Law <law@redhat.com>
9763 * tree-ssa-threadedge.c (thread_through_normal_block): New
9764 argument VISITED. Remove VISISTED as a local variable. When we
9765 have a threadable jump, verify the destination of the jump has not
9767 (thread_across_edge): Allocate VISITED bitmap once at function
9768 scope and use it throughout. Make sure to set appropriate bits in
9769 VISITED for E (start of jump thread path).
9770 * tree-ssa-threadupdate.c (mark_threaded_blocks): Reject threading
9771 through a joiner if any edge on the path has a recorded jump thread.
9773 2013-10-21 Ian Lance Taylor <iant@google.com>
9775 * doc/invoke.texi (Optimize Options): For -fno-toplevel-reorder,
9776 don't imply that attributes can solve all problems.
9777 (Directory Options): Fix typo.
9779 2013-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9781 * config/arm/arm.c (cortexa9_extra_costs): Update mult costs for
9782 extend and extend_add.
9784 2013-10-21 Richard Biener <rguenther@suse.de>
9786 PR tree-optimization/58794
9787 * fold-const.c (operand_equal_p): Compare FIELD_DECL operand
9788 of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.
9790 2013-10-21 Richard Biener <rguenther@suse.de>
9793 * fold-const.c (fold_binary_loc): Fold ((T) (X /[ex] C)) * C
9794 to (T) X for sign-changing conversions (or no conversion).
9796 2013-10-20 Uros Bizjak <ubizjak@gmail.com>
9798 * config/i386/i386.md (kxnor<mode>): Add FLAGS_REG clobber.
9800 2013-10-20 Jan Hubicka <jh@suse.cz>
9802 * config/i386/i386-tune.def: Add comment; organize into categories
9804 2013-10-21 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
9806 * config/i386/i386.c (expand_set_or_movmem_via_loop): Add issetmem
9807 argument. Update function comment.
9808 (expand_set_or_movmem_via_rep): New function combining
9809 expand_movmem_via_rep_mov and expand_setmem_via_rep_stos.
9810 (expand_movmem_via_rep_mov): Remove.
9811 expand_setmem_via_rep_stos): Remove.
9812 (expand_movmem_epilogue): Update calls correspondingly.
9813 (expand_setmem_epilogue_via_loop): Likewise.
9815 (expand_setmem_epilogue): Add VEC_VALUE argument, refactor.
9816 (expand_set_or_movmem_prologue): New function combining
9817 expand_movmem_prologue and expand_setmem_prologue.
9818 (expand_movmem_prologue): Remove.
9819 (expand_setmem_prologue): Remove.
9820 (expand_set_or_movmem_constant_prologue): New function combining
9821 expand_constant_movmem_prologue and expand_constant_setmem_prologue.
9822 (expand_constant_movmem_prologue): Remove.
9823 (expand_constant_setmem_prologue): Remove.
9824 (promote_duplicated_reg): Allow vector-const0 value.
9825 (ix86_expand_set_or_movmem): New function combining ix86_expand_movmem
9826 and ix86_expand_setmem.
9827 (ix86_expand_movmem): Call ix86_expand_set_or_movmem.
9828 (ix86_expand_setmem): Call ix86_expand_set_or_movmem.
9830 2013-10-21 Diego Novillo <dnovillo@google.com>
9832 * asan.c: Include tree.h
9833 * bb-reorder.c: Likewise.
9834 * cfgcleanup.c: Likewise.
9835 * cfgloopmanip.c: Likewise.
9836 * data-streamer-in.c: Likewise.
9837 * data-streamer-out.c: Likewise.
9838 * data-streamer.c: Likewise.
9839 * dwarf2cfi.c: Likewise.
9840 * graphite-blocking.c: Likewise.
9841 * graphite-clast-to-gimple.c: Likewise.
9842 * graphite-dependences.c: Likewise.
9843 * graphite-interchange.c: Likewise.
9844 * graphite-optimize-isl.c: Likewise.
9845 * graphite-poly.c: Likewise.
9846 * graphite-scop-detection.c: Likewise.
9847 * graphite-sese-to-poly.c: Likewise.
9848 * graphite.c: Likewise.
9849 * ipa-devirt.c: Likewise.
9850 * ipa-profile.c: Likewise.
9853 * loop-init.c: Likewise.
9854 * loop-unroll.c: Likewise.
9855 * lower-subreg.c: Likewise.
9856 * lto/lto-object.c: Likewise.
9857 * recog.c: Likewise.
9858 * reginfo.c: Likewise.
9859 * tree-loop-distribution.c: Likewise.
9860 * tree-parloops.c: Likewise.
9861 * tree-ssa-strlen.c: Likewise.
9862 * tree-streamer.c: Likewise.
9863 * value-prof.c: Likewise.
9864 * target-globals.c: Likewise.
9865 * expr.h: Include tree-core.h instead of tree.h.
9866 * gimple.h: Likewise.
9867 * ipa-prop.h: Likewise.
9868 * ipa-utils.h: Likewise.
9869 * lto-streamer.h: Likewise.
9870 * streamer-hooks.h: Likewise.
9871 * ipa-reference.h: Include cgraph.h instead of tree.h.
9872 * cgraph.h: Include basic-block.h instead of tree.h.
9873 * tree-streamer.h: Do not include tree.h.
9874 * genattrtab.c (write_header): Generate inclusion of tree.h.
9875 * genautomata.c (main): Likewise.
9876 * genemit.c: Likewise.
9877 * genopinit.c: Likewise.
9878 * genoutput.c (output_prologue): Likewise.
9879 * genpeep.c: Likewise.
9881 2013-10-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9883 * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Adjust for
9885 (vec_unpacku_hi_v8hi): Likewise.
9886 (vec_unpacku_lo_v16qi): Likewise.
9887 (vec_unpacku_lo_v8hi): Likewise.
9889 2013-10-20 Jan Hubicka <jh@suse.cz>
9891 * config/i386/x86-tune.def (X86_TUNE_SLOW_IMUL_IMM32_MEM,
9892 X86_TUNE_SLOW_IMUL_IMM8): Keep enabled only for K8 and AMDFAM10.
9893 (X86_TUNE_USE_VECTOR_FP_CONVERTS): Disable for generic.
9895 2013-10-20 Richard Sandiford <rdsandiford@googlemail.com>
9897 * config/mips/mips.h (ISA_HAS_WSBH): Define.
9898 * config/mips/mips.md (UNSPEC_WSBH, UNSPEC_DSBH, UNSPEC_DSHD): New
9900 (bswaphi2, bswapsi2, bswapdi2, wsbh, dsbh, dshd): New patterns.
9902 2013-10-19 John David Anglin <danglin@gcc.gnu.org>
9905 * system.h: Undef m_slot.
9907 2013-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9909 * config/rs6000/rs6000.c (vspltis_constant): Make sure we check
9910 all elements for both endian flavors.
9912 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
9915 * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
9916 ST1_REG and XMM1_REG for 32bit and 64bit targets. Also add DI_REG
9917 and SI_REG for 64bit SYSV ABI targets.
9919 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
9921 * mode-switching.c (create_pre_exit): Rename maybe_builtin_apply
9922 to multi_reg_return. Clarify that we are skipping USEs of multiple
9923 return registers. Use bool type where appropriate.
9925 2013-10-18 Jan Hubicka <jh@suse.cz>
9927 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Disable accumulation
9929 * x86-tune.def (X86_TUNE_USE_LEAVE): Update comment.
9930 (X86_TUNE_PUSH_MEMORY): Likewise.
9931 (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL,
9932 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): New.
9933 (X86_TUNE_ACCUMULATE_OUTGOING_ARGS, X86_TUNE_ALWAYS_FANCY_MATH_387):
9935 * i386.c (x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
9936 x86_avx256_split_unaligned_load, x86_avx256_split_unaligned_store):
9938 (ix86_option_override_internal): Update to use tune features instead
9941 2013-10-18 Cong Hou <congh@google.com>
9943 PR tree-optimization/58508
9944 * tree-vect-loop-manip.c (vect_loop_versioning): Hoist loop invariant
9945 statement that contains data refs with zero-step.
9947 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
9949 * tree-ssa.h: Don't include gimple-low.h, tree-ssa-address.h,
9950 sbitmap.h, tree-ssa-threadedge.h, tree-ssa-dom.h and tree-cfgcleanup.h.
9951 * gimple-low.c (gimple_check_call_arg,
9952 gimple_check_call_matching_types): Move to cgraph.c.
9953 * gimple-low.h: Remove prototype.
9954 * cgraph.c: (gimple_check_call_arg, gimple_check_call_matching_types):
9955 Relocate from gimple-low.c.
9956 * cgraph.h: Add prototype. Don't include basic-block.h.
9957 * gimplify.c: Add gimple-low to include list.
9958 * omp-low.c: Add gimple-low and tree-cfgcleanup.h to include list.
9959 * tree-eh.c: Add gimple-low to include list.
9960 * tree-nested.c: Likewise.
9961 * cfgexpand.c: Add tree-ssa-address.h to include list.
9963 * gimple-fold.c: Likewise.
9964 * gimple-ssa-strength-reduction.c: Likewise.
9965 * trans-mem.c: Likewise.
9966 * tree-mudflap.c: Likewise.
9967 * tree-ssa-loop-ivopts.c: Likewise.
9968 * tree-ssa-dom.c: Include tree-ssa-threadedge.h and tree-ssa-dom.h.
9969 (degenerate_phi_result): Move to tree-phinodes.c.
9970 * tree-ssa-loop-ch.c: Include tree-ssa-threadedge.h.
9971 * tree-ssa-threadedge.c: Likewise.
9972 * tree-vrp.c: Likewise.
9973 * tree-phinodes.c (degenerate_phi_result): Relocate here.
9974 * tree-ssa-dom.h (degenerate_phi_result): Remove Prototype.
9975 * tree-phinodes.h (degenerate_phi_result): Add prototype.
9976 * tree-ssa-copy.c: Include tree-ssa-dom.h.
9977 * tree-ssa-forwprop.c: Likewise.
9978 * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing,
9979 pass_data_cleanup_cfg_post_optimizing,
9980 make_pass_cleanup_cfg_post_optimizing): Relocate from tree-optimize.c.
9981 * tree-optimize.c: Delete File.
9982 * graphite.c: Include tree-cfgcleanup.h.
9983 * passes.c: Likewise.
9984 * tree-cfg.c: Likewise.
9985 * tree-profile.c: Likewise.
9986 * tree-ssa-dse.c: Likewise.
9987 * tree-ssa-loop-ivcanon.c: Likewise.
9988 * tree-switch-conversion.c: Don't include tree-ssa-operands.h.
9989 * tree-outof-ssa.c: Include sbitmap.h.
9990 * tree-ssa-live.c: Likewise.
9991 * tree-ssa-propagate.c: Likewise.
9992 * tree-ssa-structalias.c: Likewise.
9993 * tree-stdarg.c: Likewise.
9994 * Makefile.in (OBJS): Delete tree-optimize.o.
9995 * basic-block.h (gcov_type, gcov_type_unsigned): Move to coretypes.h.
9996 * coretypes.h (gcov_type, gcov_type_unsigned): Relocate here.
9997 * varasm.c: Include basic-block.h.
9998 * cfgloop.h: Include function.h instead of basic-block.h
9999 (bb_loop_depth): Move to cfgloop.c.
10000 * cfgloop.c (bb_loop_depth): Relocate from cfgloop.h.
10002 2013-10-18 Teresa Johnson <tejohnson@google.com>
10004 * predict.c (probably_never_executed): Compare frequency-based
10005 count to number of training runs.
10006 * params.def (UNLIKELY_BB_COUNT_FRACTION): New parameter.
10008 2013-10-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10010 * config/arm/arm.c (cortexa9_extra_costs): New table.
10011 (arm_cortex_a9_tune): Use cortexa9_extra_costs.
10013 2013-10-18 Jeff Law <law@redhat.com>
10015 * tree-ssa-threadupdate.c: Do not include "tm.h" or "tm_p.h".
10017 * tree-ssa-threadupdate.c: Include "dbgcnt.h".
10018 (register_jump_thread): Add "registered_jump_thread" debug
10020 * dbgcnt.def (registered_jump_thread): New debug counter.
10022 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
10024 * config/rs6000/rs6000.c: Include cgraph.h.
10026 2013-10-18 Teresa Johnson <tejohnson@google.com>
10028 * tree-ssa-tail-merge.c (replace_block_by): Update edge
10029 weights during merging.
10031 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
10033 * tree-cfg.h: Rename from tree-flow.h. Remove #includes.
10034 * tree-ssa.h: Relocate required #includes from tree-cfg.h.
10035 * tree-ssa-operands.h: Remove prototype.
10036 * tree-ssa-operands.c (virtual_operand_p): Move to gimple.c.
10037 * gimple.c (virtual_operand_p): Relocate from gimple.c.
10038 * gimple.h: Add prototype.
10039 * gimple-ssa.h: Include tree-ssa-operands.h.
10040 * tree-dump.c: Add tree-cfg.h to include list.
10041 * tree-ssa-alias.c: Add ipa-reference.h to include list.
10042 * config/alpha/alpha.c: Include gimple-ssa.h instead of tree-flow.h.
10043 * config/i386/i386.c: Don't include tree-flow.h.
10044 * config/rs6000/rs6000.c: Likewise.
10046 2013-10-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10048 * config/frv/frv.c (frv_init_cumulative_args): Fix wrong cast.
10050 2013-10-18 Richard Biener <rguenther@suse.de>
10052 * stor-layout.c (layout_type): Do not change TYPE_PRECISION
10053 or TYPE_UNSIGNED of integral types.
10054 (set_min_and_max_values_for_integral_type): Leave TYPE_MIN/MAX_VALUE
10055 NULL_TREE for zero-precision integral types.
10057 2013-10-18 James Greenhalgh <james.greenhalgh@arm.com>
10059 * config/aarch64/arm_neon.h
10060 (vcvt<ds>_n_<fsu><32,64>_<fsu><32,64>): Correct argument types.
10062 2013-10-17 Sriraman Tallam <tmsriram@google.com>
10065 * opth-gen.awk: Define target_flags_explicit.
10067 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
10069 * config/rs6000/rs6000.c (enum rs6000_reload_reg_type): Add new
10070 fields to the reg_addr array that describes the valid addressing
10071 mode for any register, general purpose registers, floating point
10072 registers, and Altivec registers.
10073 (FIRST_RELOAD_REG_CLASS): Likewise.
10074 (LAST_RELOAD_REG_CLASS): Likewise.
10075 (struct reload_reg_map_type): Likewise.
10076 (reload_reg_map_type): Likewise.
10077 (RELOAD_REG_VALID): Likewise.
10078 (RELOAD_REG_MULTIPLE): Likewise.
10079 (RELOAD_REG_INDEXED): Likewise.
10080 (RELOAD_REG_OFFSET): Likewise.
10081 (RELOAD_REG_PRE_INCDEC): Likewise.
10082 (RELOAD_REG_PRE_MODIFY): Likewise.
10083 (reg_addr): Likewise.
10084 (mode_supports_pre_incdec_p): New helper functions to say whether
10085 a given mode supports PRE_INC, PRE_DEC, and PRE_MODIFY.
10086 (mode_supports_pre_modify_p): Likewise.
10087 (rs6000_debug_vector_unit): Rearrange the -mdebug=reg output to
10088 print the valid address mode bits for each mode.
10089 (rs6000_debug_print_mode): Likewise.
10090 (rs6000_debug_reg_global): Likewise.
10091 (rs6000_setup_reg_addr_masks): New function to set up the address
10092 mask bits for each type.
10093 (rs6000_init_hard_regno_mode_ok): Use memset to clear arrays.
10094 Call rs6000_setup_reg_addr_masks to set up the address mask bits.
10095 (rs6000_legitimate_address_p): Use mode_supports_pre_incdec_p and
10096 mode_supports_pre_modify_p to determine if PRE_INC, PRE_DEC, and
10097 PRE_MODIFY are supported.
10098 (rs6000_output_move_128bit): Change to use {src,dest}_vmx_p for altivec
10099 registers, instead of {src,dest}_av_p.
10100 (rs6000_print_options_internal): Tweak the debug output slightly.
10102 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
10104 * config/i386/sse.md (*vec_widen_smult_even_v8si): Remove
10107 2013-10-17 Andrew MacLeod <amacleod@redhat.com>
10109 * tree-flow.h (struct omp_region): Move to omp-low.c.
10110 Remove omp_ prototypes and variables.
10111 * gimple.h (omp_reduction_init): Move prototype to omp-low.h.
10112 (copy_var_decl): Relocate prototype from tree-flow.h.
10113 * gimple.c (copy_var_decl): Relocate from omp-low.c.
10114 * tree.h: Move prototype to omp-low.h.
10115 * omp-low.h: New File. Relocate prototypes here.
10116 * omp-low.c (struct omp_region): Make local here.
10117 (root_omp_region): Make static.
10118 (copy_var_decl) Move to gimple.c.
10119 (new_omp_region): Make static.
10120 (make_gimple_omp_edges): New. Refactored from tree-cfg.c make_edges.
10121 * tree-cfg.c: Include omp-low.h.
10122 (make_edges): Factor out OMP specific bits to make_gimple_omp_edges.
10123 * gimplify.c: Include omp-low.h.
10124 * tree-parloops.c: Likewise.
10126 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
10128 * config/i386/i386.c (ix86_fixup_binary_operands): When both source
10129 operands are in memory, prefer to force non-matched operand 1 to
10132 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
10135 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Only
10136 restrict TImode addresses to single indirect registers if both
10137 -mquad-memory and -mvsx-timode are used.
10138 (rs6000_output_move_128bit): Use quad_load_store_p to determine if
10139 we should emit load/store quad. Remove using %y for quad memory
10142 * config/rs6000/rs6000.md (mov<mode>_ppc64, TI/PTImode): Add
10143 constraints to allow load/store quad on machines where TImode is
10144 not allowed in VSX registers. Use 'n' instead of 'F' constraint
10145 for TImode to load integer constants.
10147 2013-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10149 * config/aarch64/aarch64.c (aarch64_print_operand): Handle 'c'.
10151 2013-10-17 Marcus Shawcroft <marcus.shawcroft@arm.com>
10153 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Adjust
10154 handling of STACK_REG.
10156 2013-10-17 Richard Biener <rguenther@suse.de>
10158 PR tree-optimization/58143
10159 * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
10161 (rewrite_to_defined_overflow): Likewise.
10162 (move_computations_dom_walker::before_dom): Rewrite stmts
10163 with undefined signed overflow that are not always executed
10164 into unsigned arithmetic.
10166 2013-10-16 Michael Meissner <meissner@linux.vnet.ibm.com>
10169 * config/rs6000/rs6000.opt (rs6000_isa_flags_explicit): Move the
10170 explicit isa flag to be an options variable, instead of using
10171 global_options_set. Remove define from rs6000.h.
10172 * config/rs6000/rs6000.h (rs6000_isa_flags_explicit): Likewise.
10174 * config/rs6000/rs6000.c (rs6000_option_override_internal):
10175 Initialize rs6000_isa_flags_explicit.
10176 (rs6000_function_specific_save): Add gcc_options* parameter, so
10177 that the powerpc builds after the 2013-10-15 changes.
10178 (rs6000_function_specific_restore): Likewise.
10180 2013-10-16 DJ Delorie <dj@redhat.com>
10182 * config/rl78/rl78.c (rl78_alloc_address_registers_macax): Verify
10183 op is a REG before checking REGNO.
10184 (rl78_alloc_physical_registers): Verify pattern is a SET before
10187 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10189 * config/rs6000/vector.md (vec_unpacks_hi_v4sf): Correct for
10191 (vec_unpacks_lo_v4sf): Likewise.
10192 (vec_unpacks_float_hi_v4si): Likewise.
10193 (vec_unpacks_float_lo_v4si): Likewise.
10194 (vec_unpacku_float_hi_v4si): Likewise.
10195 (vec_unpacku_float_lo_v4si): Likewise.
10197 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10199 * config/rs6000/vsx.md (vsx_concat_<mode>): Adjust output for LE.
10200 (vsx_concat_v2sf): Likewise.
10202 2013-10-16 James Greenhalgh <james.greenhalgh@arm.com>
10204 * config/aarch64/aarch64.md
10205 (*mov<mode>_aarch64): Fix output template for DUP (element) Scalar.
10207 2013-10-16 Andrew MacLeod <amacleod@redhat.com>
10209 PR tree-optimization/58697
10210 * cfgloop.c (get_estimated_loop_iterations_int): Rename from
10211 estimated_loop_iterations_int.
10212 (max_stmt_executions_int): Call get_max_loop_iterations_int.
10213 (get_max_loop_iterations_int): New. HWINT version of
10214 get_max_loop_iterations.
10215 * cfgloop.h: Add prototypes.
10216 * loop-iv.c (find_simple_exit): call get_estimated_loop_iterations_int.
10217 * loop-unroll.c (decide_peel_once_rolling): Call
10218 get_estimated_loop_iterations_int.
10219 * tree-ssa-loop-niter.c (estimated_loop_iterations_int): Add back.
10220 * tree-ssa-loop-niter.h: Tweak prototypes.
10222 2013-10-16 David Malcolm <dmalcolm@redhat.com>
10224 * gengtype-parse.c (struct_field_seq): Ignore access-control
10225 keywords ("public:" etc).
10227 2013-10-16 Marcus Shawcroft <marcus.shawcroft@arm.com>
10229 * config/aarch64/aarch64.c (aarch64_regno_regclass): Classify
10230 FRAME_POINTER_REGNUM and ARG_POINTER_REGNUM as POINTER_REGS.
10232 2013-10-16 Yvan Roux <yvan.roux@linaro.org>
10234 * config/arm/arm.opt (mlra): New option.
10235 * config/arm/arm.c (arm_lra_p): New function.
10236 (TARGET_LRA_P): Define.
10238 2013-10-16 Paulo Matos <pmatos@broadcom.com>
10240 * tree-core.h (tree_code_name): Remove.
10241 * tree.h (get_tree_code_name): New prototype.
10242 * tree.c (tree_code_name): Make static.
10243 (get_tree_code_name): New function.
10244 (dump_tree_statistics, tree_check_failed, tree_not_check_failed,
10245 tree_class_check_failed, tree_range_check_failed,
10246 tree_not_class_check_failed, omp_clause_check_failed,
10247 tree_contains_struct_check_failed, tree_operand_check_failed): Use new
10248 wrapper get_tree_code_name instead of calling tree_code_name directly.
10249 * tree-vrp.c (dump_asserts_for): Likewise.
10250 * tree-dump.c (dequeue_and_dump): Likewise.
10251 * tree-pretty-print.c (do_niy, dump_generic_node): Likewise.
10252 * tree-pretty-print.h (pp_unsupported_tree): Likewise.
10253 * lto-streamer-out.c (lto_write_tree, DFS_write_tree): Likewise.
10254 * tree-ssa-dom.c (print_expr_hash_elt): Likewise.
10255 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
10256 dump_ternary_rhs, dump_gimple_assign, dump_gimple_cond,
10257 dump_gimple_omp_for): Likewise.
10258 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
10259 * tree-ssa-pre.c (print_pre_expr): Likewise.
10260 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
10261 * print-tree.c (print_node_brief, print_node): Likewise.
10262 * gimple.c (gimple_check_failed): Likewise.
10263 * lto-streamer.c (lto_tag_name, print_lto_report): Likewise.
10264 * config/frv/frv.c (frv_init_cumulative_args): Likewise.
10265 * config/mep/mep.c (mep_validate_vliw): Likewise.
10266 * config/iq2000/iq2000.c (init_cumulative_args): Likewise.
10267 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
10269 2013-10-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
10271 * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
10274 2013-10-16 Hans-Peter Nilsson <hp@axis.com>
10276 * config/cris/t-elfmulti (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
10277 (MULTILIB_MATCHES): Add multilib for -march=v8.
10279 2013-10-15 Sriraman Tallam <tmsriram@google.com>
10282 * optc-save-gen.awk: Add extra parameter to the save and restore
10284 * opth-gen.awk: Generate new TARGET_* macros to accept a parameter.
10285 * tree.c (build_optimization_node): New parameter. Add extra parameter
10286 to call to cl_optimization_save.
10287 (build_target_option_node): New parameter. Add extra parameter
10288 to call to cl_target_option_save.
10289 * tree.h (build_optimization_node): New parameter.
10290 (build_target_option_node): New parameter.
10291 * c-family/c-common.c (handle_optimize_attribute): Fix calls to
10292 build_optimization_node and build_target_option_node.
10293 * c-family/c-pragma.c (handle_pragma_optimize): Ditto.
10294 (handle_pragma_push_options): Ditto.
10295 * toplev.c (process_options): Ditto.
10296 * opts.c (init_options_struct): Check for opts_set non-null.
10297 * target.def (target_option.save): New parameter.
10298 (target_option.restore): New parameter.
10299 * tm.texi: Generate.
10300 * config/i386/i386-c.c (ix86_target_macros_internal): Ditto.
10301 (ix86_pragma_target_parse): Ditto.
10302 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree): New
10304 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix calls
10305 to build_optimization_node and build_target_option_node.
10306 (rs6000_valid_attribute_p): Ditto.
10307 (rs6000_pragma_target_parse): Ditto.
10308 * config/i386/i386.opt (x_ix86_target_flags_explicit): New TargetSave
10310 * config/i386/i386.h:
10311 TARGET_64BIT_P: New Macro
10312 TARGET_MMX_P: New Macro.
10313 TARGET_3DNOW_P: New Macro.
10314 TARGET_3DNOW_A_P: New Macro.
10315 TARGET_SSE_P: New Macro.
10316 TARGET_SSE2_P: New Macro.
10317 TARGET_SSE3_P: New Macro.
10318 TARGET_SSSE3_P: New Macro.
10319 TARGET_SSE4_1_P: New Macro.
10320 TARGET_SSE4_2_P: New Macro.
10321 TARGET_AVX_P: New Macro.
10322 TARGET_AVX2_P: New Macro.
10323 TARGET_AVX512F_P: New Macro.
10324 TARGET_AVX512PF_P: New Macro.
10325 TARGET_AVX512ER_P: New Macro.
10326 TARGET_AVX512CD_P: New Macro.
10327 TARGET_FMA_P: New Macro.
10328 TARGET_SSE4A_P: New Macro.
10329 TARGET_FMA4_P: New Macro.
10330 TARGET_XOP_P: New Macro.
10331 TARGET_LWP_P: New Macro.
10332 TARGET_ABM_P: New Macro.
10333 TARGET_BMI_P: New Macro.
10334 TARGET_BMI2_P: New Macro.
10335 TARGET_LZCNT_P: New Macro.
10336 TARGET_TBM_P: New Macro.
10337 TARGET_POPCNT_P: New Macro.
10338 TARGET_SAHF_P: New Macro.
10339 TARGET_MOVBE_P: New Macro.
10340 TARGET_CRC32_P: New Macro.
10341 TARGET_AES_P: New Macro.
10342 TARGET_PCLMUL_P: New Macro.
10343 TARGET_CMPXCHG16B_P: New Macro.
10344 TARGET_FSGSBASE_P: New Macro.
10345 TARGET_RDRND_P: New Macro.
10346 TARGET_F16C_P: New Macro.
10347 TARGET_RTM_P: New Macro.
10348 TARGET_HLE_P: New Macro.
10349 TARGET_RDSEED_P: New Macro.
10350 TARGET_PRFCHW_P: New Macro.
10351 TARGET_ADX_P: New Macro.
10352 TARGET_FXSR_P: New Macro.
10353 TARGET_XSAVE_P: New Macro.
10354 TARGET_XSAVEOPT_P: New Macro.
10355 TARGET_LP64_P: New Macro.
10356 TARGET_X32_P: New Macro.
10357 TARGET_FPMATH_DEFAULT_P: New Macro.
10358 TARGET_FLOAT_RETURNS_IN_80387_P: New Macro.
10359 * config/i386/i386.c (ix86_option_override_internal): New parameters.
10361 Change ix86_tune_string to access opts->x_ix86_tune_string.
10362 Change ix86_isa_flags to access opts->x_ix86_isa_flags.
10363 Change ix86_arch_string to access opts->x_ix86_arch_string.
10364 Change ix86_stringop_alg to access opts->x_ix86_stringop_alg.
10365 Change ix86_pmode to access opts->x_ix86_pmode.
10366 Change ix86_abi to access opts->x_ix86_abi.
10367 Change ix86_cmodel to access opts->x_ix86_cmodel.
10368 Change ix86_asm_dialect to access opts->x_ix86_asm_dialect.
10369 Change ix86_isa_flags_explicit to access
10370 opts->x_ix86_isa_flags_explicit.
10371 Change ix86_dump_tunes to access opts->x_ix86_dump_tunes.
10372 Change ix86_regparm to access opts->x_ix86_regparm.
10373 Change ix86_branch_cost to access opts->x_ix86_branch_cost.
10374 Change ix86_preferred_stack_boundary_arg to access
10375 opts->x_ix86_preferred_stack_boundary_arg.
10376 Change ix86_force_align_arg_pointer to access
10377 opts->x_ix86_force_align_arg_pointer.
10378 Change ix86_incoming_stack_boundar_arg to access
10379 opts->x_ix86_incoming_stack_boundar_arg.
10380 Change ix86_fpmath to access opts->x_ix86_fpmath.
10381 Change ix86_veclibabi_type to access opts->x_ix86_veclibabi_type.
10382 Change ix86_recip_name to access opts->x_ix86_recip_name.
10383 Change ix86_stack_protector_guard to access
10384 opts->x_ix86_stack_protector_guard.
10385 Change ix86_tune_memcpy_strategy to access
10386 opts->x_ix86_tune_memcpy_strategy.
10387 Change ix86_tune_memset_strategy to access
10388 opts->x_ix86_tune_memset_strategy.
10389 Change global_options to access opts.
10390 Change global_options_set to access opts_set.
10391 Change TARGET_64BIT to TARGET_64BIT_P (opts->...).
10392 Change TARGET_MMX to TARGET_MMX_P (opts->...).
10393 Change TARGET_3DNOW to TARGET_3DNOW_P (opts->...).
10394 Change TARGET_3DNOW_A to TARGET_3DNOW_A_P (opts->...).
10395 Change TARGET_SSE to TARGET_SSE_P (opts->...).
10396 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...).
10397 Change TARGET_SSE3 to TARGET_SSE3_P (opts->...).
10398 Change TARGET_SSSE3 to TARGET_SSSE3_P (opts->...).
10399 Change TARGET_SSE4_1 to TARGET_SSE4_1_P (opts->...).
10400 Change TARGET_SSE4_2 to TARGET_SSE4_2_P (opts->...).
10401 Change TARGET_AVX to TARGET_AVX_P (opts->...).
10402 Change TARGET_AVX2 to TARGET_AVX2_P (opts->...).
10403 Change TARGET_AVX512F to TARGET_AVX512F_P (opts->...).
10404 Change TARGET_AVX512PF to TARGET_AVX512PF_P (opts->...).
10405 Change TARGET_AVX512ER to TARGET_AVX512ER_P (opts->...).
10406 Change TARGET_AVX512CD to TARGET_AVX512CD_P (opts->...).
10407 Change TARGET_FMA to TARGET_FMA_P (opts->...).
10408 Change TARGET_SSE4A to TARGET_SSE4A_P (opts->...).
10409 Change TARGET_FMA4 to TARGET_FMA4_P (opts->...).
10410 Change TARGET_XOP to TARGET_XOP_P (opts->...).
10411 Change TARGET_LWP to TARGET_LWP_P (opts->...).
10412 Change TARGET_ABM to TARGET_ABM_P (opts->...).
10413 Change TARGET_BMI to TARGET_BMI_P (opts->...).
10414 Change TARGET_BMI2 to TARGET_BMI2_P (opts->...).
10415 Change TARGET_LZCNT to TARGET_LZCNT_P (opts->...).
10416 Change TARGET_TBM to TARGET_TBM_P (opts->...).
10417 Change TARGET_POPCNT to TARGET_POPCNT_P (opts->...).
10418 Change TARGET_SAHF to TARGET_SAHF_P (opts->...).
10419 Change TARGET_MOVBE to TARGET_MOVBE_P (opts->...).
10420 Change TARGET_CRC32 to TARGET_CRC32_P (opts->...).
10421 Change TARGET_AES to TARGET_AES_P (opts->...).
10422 Change TARGET_PCLMUL to TARGET_PCLMUL_P (opts->...).
10423 Change TARGET_CMPXCHG16B to TARGET_CMPXCHG16B_P (opts->...).
10424 Change TARGET_FSGSBASE to TARGET_FSGSBASE_P (opts->...).
10425 Change TARGET_RDRND to TARGET_RDRND_P (opts->...).
10426 Change TARGET_F16C to TARGET_F16C_P (opts->...).
10427 Change TARGET_RTM to TARGET_RTM_P (opts->...).
10428 Change TARGET_HLE to TARGET_HLE_P (opts->...).
10429 Change TARGET_RDSEED to TARGET_RDSEED_P (opts->...).
10430 Change TARGET_PRFCHW to TARGET_PRFCHW_P (opts->...).
10431 Change TARGET_ADX to TARGET_ADX_P (opts->...).
10432 Change TARGET_FXSR to TARGET_FXSR_P (opts->...).
10433 Change TARGET_XSAVE to TARGET_XSAVE_P (opts->...).
10434 Change TARGET_XSAVEOPT to TARGET_XSAVEOPT_P (opts->...).
10435 Change TARGET_LP64 to TARGET_LP64_P (opts->...).
10436 Change TARGET_X32 to TARGET_X32_P (opts->...).
10437 Change TARGET_FPMATH_DEFAULT to TARGET_FPMATH_DEFAULT_P (opts->...).
10438 Change TARGET_FLOAT_RETURNS_IN_80387 to
10439 TARGET_FLOAT_RETURNS_IN_80387_P (opts->...).
10440 (ix86_function_specific_save): New parameter. Use opts-> fields
10441 to replace global fields.
10442 (ix86_function_specific_restore): Ditto.
10443 (ix86_valid_target_attribute_inner_p): New parameters.
10444 Fix recursive call.
10445 Fix call to ix86_handle_option and set_option.
10446 (ix86_valid_target_attribute_tree): New parameters.
10447 Change global_options to access opts.
10448 Change global_options_set to access opts_set.
10449 Fix call to ix86_valid_target_attribute_inner_p.
10450 Change ix86_tune_string to access opts->x_ix86_tune_string.
10451 Change ix86_arch_string to access opts->x_ix86_arch_string.
10452 Change ix86_fpmath to access opts->x_ix86_fpmath
10453 Fix call to ix86_option_override_internal.
10454 Fix call to ix86_add_new_builtins.
10455 Fix calls to build_optimization_node and build_target_option_node.
10456 (ix86_valid_target_attribute_p): Remove access to global_options.
10457 Use new gcc_options structure func_options.
10458 Fix call to ix86_valid_target_attribute_tree.
10459 Fix call to build_optimization_node.
10460 (get_builtin_code_for_version): Fix call to
10461 ix86_valid_target_attribute_tree.
10463 2013-10-15 David Malcolm <dmalcolm@redhat.com>
10465 * Makefile.in (PICFLAG): New.
10466 (enable_host_shared): New.
10467 (INTERNAL_CFLAGS): Use PICFLAG.
10468 (LIBIBERTY): Use pic build of libiberty.a if configured with
10469 --enable-host-shared.
10470 * configure.ac: Add --enable-host-shared, setting up new
10472 * configure: Regenerate.
10473 * doc/install.texi (--enable-shared): Add note contrasting it with ...
10474 (--enable-host-shared): New option.
10476 2013-10-15 Richard Biener <rguenther@suse.de>
10478 * tree-tailcall.c (find_tail_calls): Don't use tail-call recursion
10479 for built-in functions.
10481 2013-10-15 Zhenqiang Chen <zhenqiang.chen@arm.com>
10483 * tree-ssa-reassoc.c: Include rtl.h and tm_p.h.
10484 (optimize_range_tests_1): New function,
10485 extracted from optimize_range_tests.
10486 (optimize_range_tests_xor): Similarly.
10487 (optimize_range_tests_diff): New function.
10488 (optimize_range_tests): Use optimize_range_tests_1.
10490 2013-10-15 Cong Hou <congh@google.com>
10492 * tree-vect-loop.c (vect_is_simple_reduction_1): Relax the
10493 requirement of the reduction pattern so that one operand of the
10494 reduction operation can come from outside of the loop.
10496 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10498 * config/arm/neon-schedgen.ml: Remove.
10499 * config/arm/cortex-a9-neon.md: Remove comment regarding
10502 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10504 * config/arm/types: Remove old neon types.
10506 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10508 * config/arm/cortex-a7.md
10509 (cortex_a7_neon_type): New.
10510 (cortex_a7_neon_mul): Update for new types.
10511 (cortex_a7_neon_mla): Likewise.
10512 (cortex_a7_neon): Likewise.
10514 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10516 * config/arm/cortex-a15-neon.md
10517 (cortex_a15_neon_type): New,
10519 (cortex_a15_neon_int_1): Remove.
10520 (cortex_a15_neon_int_2): Likewise.
10521 (cortex_a15_neon_int_3): Likewise.
10522 (cortex_a15_neon_int_4): Likewise.
10523 (cortex_a15_neon_int_5): Likewise.
10524 (cortex_a15_neon_vqneg_vqabs): Likewise.
10525 (cortex_a15_neon_vmov): Likewise.
10526 (cortex_a15_neon_vaba): Likewise.
10527 (cortex_a15_neon_vaba_qqq): Likewise.
10528 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10529 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
10530 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
10532 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10533 (cortex_a15_neon_mla_qqq_8_16): Likewise.
10534 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar): Likewise.
10535 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
10536 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
10537 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
10538 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
10539 (cortex_a15_neon_shift_1): Likewise.
10540 (cortex_a15_neon_shift_2): Likewise.
10541 (cortex_a15_neon_shift_3): Likewise.
10542 (cortex_a15_neon_vshl_ddd): Likewise.
10543 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
10544 (cortex_a15_neon_vsra_vrsra): Likewise.
10545 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
10546 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
10547 (cortex_a15_neon_bp_3cycle): Likewise.
10548 (cortex_a15_neon_ldm_2): Likewise.
10549 (cortex_a15_neon_stm_2): Likewise.
10550 (cortex_a15_neon_mcr): Likewise.
10551 (cortex_a15_neon_mrc): Likewise.
10552 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
10553 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
10554 (cortex_a15_neon_fp_vmul_ddd): Likewise.
10555 (cortex_a15_neon_fp_vmul_qqd): Likewise.
10556 (cortex_a15_neon_fp_vmla_ddd): Likewise.
10557 (cortex_a15_neon_fp_vmla_qqq): Likewise.
10558 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
10559 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
10560 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
10561 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
10562 (cortex_a15_neon_bp_simple): Likewise.
10563 (cortex_a15_neon_bp_2cycle): Likewise.
10564 (cortex_a15_neon_bp_3cycle): Likewise.
10565 (cortex_a15_neon_vld1_1_2_regs): Likewise.
10566 (cortex_a15_neon_vld1_3_4_regs): Likewise.
10567 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
10568 (cortex_a15_neon_vld2_4_regs): Likewise.
10569 (cortex_a15_neon_vld3_vld4): Likewise.
10570 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
10571 (cortex_a15_neon_vst1_3_4_regs): Likewise.
10572 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Rename to...
10573 (cortex_a15_neon_vst2_4_regs_vst3): ...This, update for new attributes.
10574 (cortex_a15_neon_vst3_vst4): Rename to...
10575 (cortex_a15_neon_vst4): This, update for new attributes.
10576 (cortex_a15_neon_vld1_vld2_lane): Update for new attributes.
10577 (cortex_a15_neon_vld3_vld4_lane): Likewise.
10578 (cortex_a15_neon_vst1_vst2_lane): Likewise.
10579 (cortex_a15_neon_vst3_vst4_lane): Likewise.
10580 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
10581 (cortex_a15_neon_ldm_2): Likewise.
10582 (cortex_a15_neon_stm_2): Likewise.
10583 (cortex_a15_neon_mcr): Likewise.
10584 (cortex_a15_neon_mcr_2_mcrr): Likewise.
10585 (cortex_a15_neon_mrc): Likewise.
10586 (cortex_a15_neon_mrrc): Likewise.
10588 (cortex_a15_neon_abd): New.
10589 (cortex_a15_neon_abd_q): Likewise.
10590 (cortex_a15_neon_aba): Likewise.
10591 (cortex_a15_neon_aba_q): Likewise.
10592 (cortex_a15_neon_acc): Likewise.
10593 (cortex_a15_neon_acc_q): Likewise.
10594 (cortex_a15_neon_arith_basic): Likewise.
10595 (cortex_a15_neon_arith_complex): Likewise.
10596 (cortex_a15_neon_multiply): Likewise.
10597 (cortex_a15_neon_multiply_q): Likewise.
10598 (cortex_a15_neon_mla): Likewise.
10599 (cortex_a15_neon_mla_q): Likewise.
10600 (cortex_a15_neon_sat_mla_long): Likewise.
10601 (cortex_a15_neon_shift_acc): Likewise.
10602 (cortex_a15_neon_shift_imm_basic): Likewise.
10603 (cortex_a15_neon_shift_imm_complex): Likewise.
10604 (cortex_a15_neon_shift_reg_basic): Likewise.
10605 (cortex_a15_neon_shift_reg_basic_q): Likewise.
10606 (cortex_a15_neon_shift_reg_complex): Likewise.
10607 (cortex_a15_neon_shift_reg_complex_q): Likewise.
10608 (cortex_a15_neon_fp_negabs): Likewise
10609 (cortex_a15_neon_fp_arith): Likewise
10610 (cortex_a15_neon_fp_arith_q): Likewise
10611 (cortex_a15_neon_fp_cvt_int): Likewise
10612 (cortex_a15_neon_fp_cvt_int_q): Likewise
10613 (cortex_a15_neon_fp_cvt_16): Likewise
10614 (cortex_a15_neon_fp_mul): Likewise
10615 (cortex_a15_neon_fp_mul_q): Likewise
10616 (cortex_a15_neon_fp_mla): Likewise
10617 (cortex_a15_neon_fp_mla_q): Likewise
10618 (cortex_a15_neon_fp_recps_rsqrte): Likewise.
10619 (cortex_a15_neon_fp_recps_rsqrte_q): Likewise.
10620 (cortex_a15_neon_bitops): Likewise.
10621 (cortex_a15_neon_bitops_q): Likewise.
10622 (cortex_a15_neon_from_gp): Likewise.
10623 (cortex_a15_neon_from_gp_q): Likewise.
10624 (cortex_a15_neon_tbl3_tbl4): Likewise.
10625 (cortex_a15_neon_zip_q): Likewise.
10626 (cortex_a15_neon_to_gp): Likewise.
10627 (cortex_a15_neon_load_a): Likewise.
10628 (cortex_a15_neon_load_b): Likewise.
10629 (cortex_a15_neon_load_c): Likewise.
10630 (cortex_a15_neon_load_d): Likewise.
10631 (cortex_a15_neon_load_e): Likewise.
10632 (cortex_a15_neon_load_f): Likewise.
10633 (cortex_a15_neon_store_a): Likewise.
10634 (cortex_a15_neon_store_b): Likewise.
10635 (cortex_a15_neon_store_c): Likewise.
10636 (cortex_a15_neon_store_d): Likewise.
10637 (cortex_a15_neon_store_e): Likewise.
10638 (cortex_a15_neon_store_f): Likewise.
10639 (cortex_a15_neon_store_g): Likewise.
10640 (cortex_a15_neon_store_h): Likewise.
10641 (cortex_a15_vfp_to_from_gp): Likewise.
10643 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10645 * config/arm/cortex-a9-neon.md (cortex_a9_neon_type): New.
10647 (cortex_a9_neon_vshl_ddd): Remove.
10648 (cortex_a9_neon_vst3_vst4): Likewise.
10649 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
10651 (cortex_a9_neon_bit_ops_q): New.
10653 (cortex_a9_neon_int_1): Use cortex_a8_neon_type.
10654 (cortex_a9_neon_int_2): Likewise.
10655 (cortex_a9_neon_int_3): Likewise.
10656 (cortex_a9_neon_int_4): Likewise.
10657 (cortex_a9_neon_int_5): Likewise.
10658 (cortex_a9_neon_vqneg_vqabs): Likewise.
10659 (cortex_a9_neon_vmov): Likewise.
10660 (cortex_a9_neon_vaba): Likewise.
10661 (cortex_a9_neon_vaba_qqq): Likewise.
10662 (cortex_a9_neon_shift_1): Likewise.
10663 (cortex_a9_neon_shift_2): Likewise.
10664 (cortex_a9_neon_shift_3): Likewise.
10665 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
10666 (cortex_a9_neon_vsra_vrsra): Likewise.
10667 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10668 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
10669 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
10671 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10672 (cortex_a9_neon_mla_qqq_8_16): Likewise.
10673 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
10675 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
10676 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
10677 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
10678 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
10679 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
10680 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
10681 (cortex_a9_neon_fp_vsum): Likewise.
10682 (cortex_a9_neon_fp_vmul_ddd): Likewise.
10683 (cortex_a9_neon_fp_vmul_qqd): Likewise.
10684 (cortex_a9_neon_fp_vmla_ddd): Likewise.
10685 (cortex_a9_neon_fp_vmla_qqq): Likewise.
10686 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
10687 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
10688 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
10689 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
10690 (cortex_a9_neon_bp_simple): Likewise.
10691 (cortex_a9_neon_bp_2cycle): Likewise.
10692 (cortex_a9_neon_bp_3cycle): Likewise.
10693 (cortex_a9_neon_ldr): Likewise.
10694 (cortex_a9_neon_str): Likewise.
10695 (cortex_a9_neon_vld1_1_2_regs): Likewise.
10696 (cortex_a9_neon_vld1_3_4_regs): Likewise.
10697 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
10698 (cortex_a9_neon_vld2_4_regs): Likewise.
10699 (cortex_a9_neon_vld3_vld4): Likewise.
10700 (cortex_a9_neon_vld1_vld2_lane): Likewise.
10701 (cortex_a9_neon_vld3_vld4_lane): Likewise.
10702 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
10703 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
10704 (cortex_a9_neon_vst1_3_4_regs): Likewise.
10705 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
10706 (cortex_a9_neon_vst1_vst2_lane): Likewise.
10707 (cortex_a9_neon_vst3_vst4_lane): Likewise.
10708 (cortex_a9_neon_mcr): Likewise.
10709 (cortex_a9_neon_mcr_2_mcrr): Likewise.
10710 (cortex_a9_neon_mrc): Likewise.
10711 (cortex_a9_neon_mrrc): Likewise.
10713 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10715 * config/arm/cortex-a8-neon.md (cortex_a8_neon_type): New.
10717 (cortex_a8_neon_vshl_ddd): Remove.
10718 (cortex_a8_neon_vst3_vst4): Likewise.
10719 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
10721 (cortex_a8_neon_bit_ops_q): New.
10723 (cortex_a8_neon_int_1): Use cortex_a8_neon_type.
10724 (cortex_a8_neon_int_2): Likewise..
10725 (cortex_a8_neon_int_3): Likewise.
10726 (cortex_a8_neon_int_5): Likewise.
10727 (cortex_a8_neon_vqneg_vqabs): Likewise.
10728 (cortex_a8_neon_int_4): Likewise.
10729 (cortex_a8_neon_vaba): Likewise.
10730 (cortex_a8_neon_vaba_qqq): Likewise.
10731 (cortex_a8_neon_shift_1): Likewise.
10732 (cortex_a8_neon_shift_2): Likewise.
10733 (cortex_a8_neon_shift_3): Likewise.
10734 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
10735 (cortex_a8_neon_vsra_vrsra): Likewise.
10736 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10737 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
10738 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
10740 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10741 (cortex_a8_neon_mla_qqq_8_16): Likewise.
10742 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
10744 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
10745 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
10746 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
10747 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
10748 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
10749 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
10750 (cortex_a8_neon_fp_vsum): Likewise.
10751 (cortex_a8_neon_fp_vmul_ddd): Likewise.
10752 (cortex_a8_neon_fp_vmul_qqd): Likewise.
10753 (cortex_a8_neon_fp_vmla_ddd): Likewise.
10754 (cortex_a8_neon_fp_vmla_qqq): Likewise.
10755 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
10756 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
10757 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
10758 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
10759 (cortex_a8_neon_bp_simple): Likewise.
10760 (cortex_a8_neon_bp_2cycle): Likewise.
10761 (cortex_a8_neon_bp_3cycle): Likewise.
10762 (cortex_a8_neon_ldr): Likewise.
10763 (cortex_a8_neon_str): Likewise.
10764 (cortex_a8_neon_vld1_1_2_regs): Likewise.
10765 (cortex_a8_neon_vld1_3_4_regs): Likewise.
10766 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
10767 (cortex_a8_neon_vld2_4_regs): Likewise.
10768 (cortex_a8_neon_vld3_vld4): Likewise.
10769 (cortex_a8_neon_vld1_vld2_lane): Likewise.
10770 (cortex_a8_neon_vld3_vld4_lane): Likewise.
10771 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
10772 (cortex_a8_neon_vst1_3_4_regs): Likewise.
10773 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
10774 (cortex_a8_neon_vst1_vst2_lane): Likewise.
10775 (cortex_a8_neon_vst3_vst4_lane): Likewise.
10776 (cortex_a8_neon_mcr): Likewise.
10777 (cortex_a8_neon_mcr_2_mcrr): Likewise.
10778 (cortex_a8_neon_mrc): Likewise.
10779 (cortex_a8_neon_mrrc): Likewise.
10781 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10783 * config/aarch64/iterators.md (Vetype): Add SF and DF modes.
10785 * config/aarch64/aarch64-simd.md (neon_type): Remove.
10786 (aarch64_simd_dup<mode>): Add "type" attribute.
10787 (aarch64_dup_lane<mode>): Likewise.
10788 (aarch64_dup_lane_<vswap_width_name><mode>): Likewise.
10789 (*aarch64_simd_mov<mode>): Likewise.
10790 (aarch64_simd_mov_from_<mode>low): Likewise.
10791 (aarch64_simd_mov_from_<mode>high): Likewise.
10792 (orn<mode>3): Likewise.
10793 (bic<mode>3): Likewise.
10794 (add<mode>3): Likewise.
10795 (sub<mode>3): Likewise.
10796 (mul<mode>3): Likewise.
10797 (*aarch64_mul3_elt<mode>): Likewise.
10798 (*aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
10799 (*aarch64_mul3_elt_to_128df): Likewise.
10800 (*aarch64_mul3_elt_to_64v2df): Likewise.
10801 (neg<mode>2): Likewise.
10802 (abs<mode>2): Likewise.
10803 (abd<mode>_3): Likewise.
10804 (aba<mode>_3): Likewise.
10805 (fabd<mode>_3): Likewise.
10806 (*fabd_scalar<mode>3): Likewise.
10807 (and<mode>3): Likewise.
10808 (ior<mode>3): Likewise.
10809 (xor<mode>3): Likewise.
10810 (one_cmpl<mode>2): Likewise.
10811 (aarch64_simd_vec_set<mode>): Likewise.
10812 (aarch64_simd_lshr<mode>): Likewise.
10813 (aarch64_simd_ashr<mode>): Likewise.
10814 (aarch64_simd_imm_shl<mode>): Likewise.
10815 (aarch64_simd_reg_sshl<mode): Likewise.
10816 (aarch64_simd_reg_shl<mode>_unsigned): Likewise.
10817 (aarch64_simd_reg_shl<mode>_signed): Likewise.
10818 (aarch64_simd_vec_setv2di): Likewise.
10819 (aarch64_simd_vec_set<mode>): Likewise.
10820 (aarch64_mla<mode>): Likewise.
10821 (*aarch64_mla_elt<mode>): Likewise.
10822 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
10823 (aarch64_mls<mode>): Likewise.
10824 (*aarch64_mls_elt<mode>): Likewise.
10825 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
10826 (<su><maxmin><mode>3): Likewise.
10827 (move_lo_quad_<mode>): Likewise.
10828 (aarch64_simd_move_hi_quad_<mode>): Likewise.
10829 (aarch64_simd_vec_pack_trunc_<mode>): Likewise.
10830 (vec_pack_trunc_<mode>): Likewise.
10831 (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
10832 (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
10833 (*aarch64_<su>mlal_lo<mode>): Likewise.
10834 (*aarch64_<su>mlal_hi<mode>): Likewise.
10835 (*aarch64_<su>mlsl_lo<mode>): Likewise.
10836 (*aarch64_<su>mlsl_hi<mode>): Likewise.
10837 (*aarch64_<su>mlal<mode>): Likewise.
10838 (*aarch64_<su>mlsl<mode>): Likewise.
10839 (aarch64_simd_vec_<su>mult_lo_<mode>): Likewise.
10840 (aarch64_simd_vec_<su>mult_hi_<mode>): Likewise.
10841 (add<mode>3): Likewise.
10842 (sub<mode>3): Likewise.
10843 (mul<mode>3): Likewise.
10844 (div<mode>3): Likewise.
10845 (neg<mode>2): Likewise.
10846 (abs<mode>2): Likewise.
10847 (fma<mode>4): Likewise.
10848 (*aarch64_fma4_elt<mode>): Likewise.
10849 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
10850 (*aarch64_fma4_elt_to_128df): Likewise.
10851 (*aarch64_fma4_elt_to_64v2df): Likewise.
10852 (fnma<mode>4): Likewise.
10853 (*aarch64_fnma4_elt<mode>): Likewise.
10854 (*aarch64_fnma4_elt_<vswap_width_name><mode>
10855 (*aarch64_fnma4_elt_to_128df): Likewise.
10856 (*aarch64_fnma4_elt_to_64v2df): Likewise.
10857 (<frint_pattern><mode>2): Likewise.
10858 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
10859 (<optab><fcvt_target><VDQF:VDQF:mode>2): Likewise.
10860 (vec_unpacks_lo_v4sf): Likewise.
10861 (aarch64_float_extend_lo_v2df): Likewise.
10862 (vec_unpacks_hi_v4sf): Likewise.
10863 (aarch64_float_truncate_lo_v2sf): Likewise.
10864 (aarch64_float_truncate_hi_v4sf): Likewise.
10865 (aarch64_vmls<mode>): Likewise.
10866 (<su><maxmin><mode>3): Likewise.
10867 (<maxmin_uns><mode>3): Likewise.
10868 (reduc_<sur>plus_<mode>): Likewise.
10869 (reduc_<sur>plus_v2di): Likewise.
10870 (reduc_<sur>plus_v2si): Likewise.
10871 (reduc_<sur>plus_<mode>): Likewise.
10872 (aarch64_addpv4sf): Likewise.
10873 (clz<mode>2): Likewise.
10874 (reduc_<maxmin_uns>_<mode>): Likewise.
10875 (reduc_<maxmin_uns>_v2di): Likewise.
10876 (reduc_<maxmin_uns>_v2si): Likewise.
10877 (reduc_<maxmin_uns>_<mode>): Likewise.
10878 (reduc_<maxmin_uns>_v4sf): Likewise.
10879 (aarch64_simd_bsl<mode>_internal): Likewise.
10880 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
10881 (*aarch64_get_lane_zero_extendsi<mode>): Likewise.
10882 (aarch64_get_lane<mode>): Likewise.
10883 (*aarch64_combinez<mode>): Likewise.
10884 (aarch64_combine<mode>): Likewise.
10885 (aarch64_simd_combine<mode>): Likewise.
10886 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): Likewise.
10887 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): Likewise.
10888 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Likewise.
10889 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>): Likewise.
10890 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w2<mode>_internal): Likewise.
10891 (aarch64_<sur>h<addsub><mode>): Likewise.
10892 (aarch64_<sur><addsub>hn<mode>): Likewise.
10893 (aarch64_<sur><addsub>hn2<mode>): Likewise.
10894 (aarch64_pmul<mode>): Likewise.
10895 (aarch64_<su_optab><optab><mode>): Likewise.
10896 (aarch64_<sur>qadd<mode>): Likewise.
10897 (aarch64_sqmovun<mode>): Likewise.
10898 (aarch64_<sur>qmovn<mode>): Likewise.
10899 (aarch64_s<optab><mode>): Likewise.
10900 (aarch64_sq<r>dmulh<mode>): Likewise.
10901 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
10902 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
10903 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
10904 (aarch64_sqdml<SBINQOPS:as>l<mode>): Likewise.
10905 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
10906 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
10907 (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Likewise.
10908 (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Likewise.
10909 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
10910 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
10911 (aarch64_sqdmull<mode>): Likewise.
10912 (aarch64_sqdmull_lane<mode>_internal): Likewise.
10913 (aarch64_sqdmull_n<mode>): Likewise.
10914 (aarch64_sqdmull2<mode>_internal): Likewise.
10915 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
10916 (aarch64_sqdmull2_n<mode>_internal): Likewise.
10917 (aarch64_<sur>shl<mode>): Likewise.
10918 (aarch64_<sur>q<r>shl<mode>
10919 (aarch64_<sur>shll_n<mode>): Likewise.
10920 (aarch64_<sur>shll2_n<mode>): Likewise.
10921 (aarch64_<sur>shr_n<mode>): Likewise.
10922 (aarch64_<sur>sra_n<mode>): Likewise.
10923 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
10924 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
10925 (aarch64_<sur>q<r>shr<u>n_n<mode>): Likewise.
10926 (aarch64_cm<optab><mode>): Likewise.
10927 (aarch64_cm<optab>di): Likewise.
10928 (aarch64_cm<optab><mode>): Likewise.
10929 (aarch64_cm<optab>di): Likewise.
10930 (aarch64_cmtst<mode>): Likewise.
10931 (aarch64_cmtstdi): Likewise.
10932 (aarch64_cm<optab><mode>): Likewise.
10933 (*aarch64_fac<optab><mode>): Likewise.
10934 (aarch64_addp<mode>): Likewise.
10935 (aarch64_addpdi): Likewise.
10936 (sqrt<mode>2): Likewise.
10937 (vec_load_lanesoi<mode>): Likewise.
10938 (vec_store_lanesoi<mode>): Likewise.
10939 (vec_load_lanesci<mode>): Likewise.
10940 (vec_store_lanesci<mode>): Likewise.
10941 (vec_load_lanesxi<mode>): Likewise.
10942 (vec_store_lanesxi<mode>): Likewise.
10943 (*aarch64_mov<mode>): Likewise.
10944 (aarch64_ld2<mode>_dreg): Likewise.
10945 (aarch64_ld2<mode>_dreg): Likewise.
10946 (aarch64_ld3<mode>_dreg): Likewise.
10947 (aarch64_ld3<mode>_dreg): Likewise.
10948 (aarch64_ld4<mode>_dreg): Likewise.
10949 (aarch64_ld4<mode>_dreg): Likewise.
10950 (aarch64_tbl1<mode>): Likewise.
10951 (aarch64_tbl2v16qi): Likewise.
10952 (aarch64_combinev16qi): Likewise.
10953 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Likewise.
10954 (aarch64_st2<mode>_dreg): Likewise.
10955 (aarch64_st2<mode>_dreg): Likewise.
10956 (aarch64_st3<mode>_dreg): Likewise.
10957 (aarch64_st3<mode>_dreg): Likewise.
10958 (aarch64_st4<mode>_dreg): Likewise.
10959 (aarch64_st4<mode>_dreg): Likewise.
10960 (*aarch64_simd_ld1r<mode>): Likewise.
10961 (aarch64_frecpe<mode>): Likewise.
10962 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
10963 (aarch64_frecps<mode>): Likewise.
10965 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10967 * config/arm/iterators.md (V_elem_ch): New.
10969 (VQH_type): Likewise.
10970 * config/arm/arm.md (is_neon_type): New.
10971 (conds): Use is_neon_type.
10972 (anddi3_insn): Update type attribute.
10973 (xordi3_insn): Likewise.
10974 (one_cmpldi2): Likewise.
10975 * config/arm/vfp.md (movhf_vfp_neon): Update type attribute.
10976 * config/arm/neon.md (neon_mov): Update type attribute.
10977 (*movmisalign<mode>_neon_store): Likewise.
10978 (*movmisalign<mode>_neon_load): Likewise.
10979 (vec_set<mode>_internal): Likewise.
10980 (vec_set<mode>_internal): Likewise.
10981 (vec_setv2di_internal): Likewise.
10982 (vec_extract<mode>): Likewise.
10983 (vec_extract<mode>): Likewise.
10984 (vec_extractv2di): Likewise.
10985 (*add<mode>3_neon): Likewise.
10986 (adddi3_neon): Likewise.
10987 (*sub<mode>3_neon): Likewise.
10988 (subdi3_neon): Likewise.
10989 (fma<VCVTF:mode>4): Likewise.
10990 (fma<VCVTF:mode>4_intrinsic): Likewise.
10991 (*fmsub<VCVTF:mode>4): Likewise.
10992 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
10993 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
10994 (ior<mode>3): Likewise.
10995 (and<mode>3): Likewise.
10996 (orn<mode>3_neon): Likewise.
10997 (orndi3_neon): Likewise.
10998 (bic<mode>3_neon): Likewise.
10999 (bicdi3_neon): Likewise.
11000 (xor<mode>3): Likewise.
11001 (one_cmpl<mode>2): Likewise.
11002 (abs<mode>2): Likewise.
11003 (neg<mode>2): Likewise.
11004 (negdi2_neon): Likewise.
11005 (*umin<mode>3_neon): Likewise.
11006 (*umax<mode>3_neon): Likewise.
11007 (*smin<mode>3_neon): Likewise.
11008 (*smax<mode>3_neon): Likewise.
11009 (vashl<mode>3): Likewise.
11010 (vashr<mode>3_imm): Likewise.
11011 (vlshr<mode>3_imm): Likewise.
11012 (ashl<mode>3_signed): Likewise.
11013 (ashl<mode>3_unsigned): Likewise.
11014 (neon_load_count): Likewise.
11015 (ashldi3_neon_noclobber): Likewise.
11016 (ashldi3_neon): Likewise.
11017 (signed_shift_di3_neon): Likewise.
11018 (unsigned_shift_di3_neon): Likewise.
11019 (ashrdi3_neon_imm_noclobber): Likewise.
11020 (lshrdi3_neon_imm_noclobber): Likewise.
11021 (<shift>di3_neon): Likewise.
11022 (widen_ssum<mode>3): Likewise.
11023 (widen_usum<mode>3): Likewise.
11024 (quad_halves_<code>v4si): Likewise.
11025 (quad_halves_<code>v4sf): Likewise.
11026 (quad_halves_<code>v8hi): Likewise.
11027 (quad_halves_<code>v16qi): Likewise.
11028 (reduc_splus_v2di): Likewise.
11029 (neon_vpadd_internal<mode>): Likewise.
11030 (neon_vpsmin<mode>): Likewise.
11031 (neon_vpsmax<mode>): Likewise.
11032 (neon_vpumin<mode>): Likewise.
11033 (neon_vpumax<mode>): Likewise.
11034 (*ss_add<mode>_neon): Likewise.
11035 (*us_add<mode>_neon): Likewise.
11036 (*ss_sub<mode>_neon): Likewise.
11037 (*us_sub<mode>_neon): Likewise.
11038 (neon_vadd<mode>_unspec): Likewise.
11039 (neon_vaddl<mode>): Likewise.
11040 (neon_vaddw<mode>): Likewise.
11041 (neon_vhadd<mode>): Likewise.
11042 (neon_vqadd<mode>): Likewise.
11043 (neon_vaddhn<mode>): Likewise.
11044 (neon_vmul<mode>): Likewise.
11045 (neon_vfms<VCVTF:mode>): Likewise.
11046 (neon_vmlal<mode>): Likewise.
11047 (neon_vmls<mode>): Likewise.
11048 (neon_vmlsl<mode>): Likewise.
11049 (neon_vqdmulh<mode>): Likewise.
11050 (neon_vqdmlal<mode>): Likewise.
11051 (neon_vqdmlsl<mode>): Likewise.
11052 (neon_vmull<mode>): Likewise.
11053 (neon_vqdmull<mode>): Likewise.
11054 (neon_vsub<mode>_unspec): Likewise.
11055 (neon_vsubl<mode>): Likewise.
11056 (neon_vsubw<mode>): Likewise.
11057 (neon_vqsub<mode>): Likewise.
11058 (neon_vhsub<mode>): Likewise.
11059 (neon_vsubhn<mode>): Likewise.
11060 (neon_vceq<mode>): Likewise.
11061 (neon_vcge<mode>): Likewise.
11062 (neon_vcgeu<mode>): Likewise.
11063 (neon_vcgt<mode>): Likewise.
11064 (neon_vcgtu<mode>): Likewise.
11065 (neon_vcle<mode>): Likewise.
11066 (neon_vclt<mode>): Likewise.
11067 (neon_vcage<mode>): Likewise.
11068 (neon_vcagt<mode>): Likewise.
11069 (neon_vtst<mode>): Likewise.
11070 (neon_vabd<mode>): Likewise.
11071 (neon_vabdl<mode>): Likewise.
11072 (neon_vaba<mode>): Likewise.
11073 (neon_vabal<mode>): Likewise.
11074 (neon_vmax<mode>): Likewise.
11075 (neon_vmin<mode>): Likewise.
11076 (neon_vpaddl<mode>): Likewise.
11077 (neon_vpadal<mode>): Likewise.
11078 (neon_vpmax<mode>): Likewise.
11079 (neon_vpmin<mode>): Likewise.
11080 (neon_vrecps<mode>): Likewise.
11081 (neon_vrsqrts<mode>): Likewise.
11082 (neon_vqabs<mode>): Likewise.
11083 (neon_vqneg<mode>): Likewise.
11084 (neon_vcls<mode>): Likewise.
11085 (clz<mode>2): Likewise.
11086 (popcount<mode>2): Likewise.
11087 (neon_vrecpe<mode>): Likewise.
11088 (neon_vrsqrte<mode>): Likewise.
11089 (neon_vget_lane<mode>_sext_internal): Likewise.
11090 (neon_vget_lane<mode>_zext_internal): Likewise.
11091 (neon_vdup_n<mode>): Likewise.
11092 (neon_vdup_n<mode>): Likewise.
11093 (neon_vdup_nv2di): Likewise.
11094 (neon_vdup_lane<mode>_interal): Likewise.
11095 (*neon_vswp<mode>): Likewise.
11096 (neon_vcombine<mode>): Likewise.
11097 (float<mode><V_cvtto>2): Likewise.
11098 (floatuns<mode><V_cvtto>2): Likewise.
11099 (fix_trunc<mode><V_cvtto>2): Likewise.
11100 (fixuns_trunc<mode><V_cvtto>2
11101 (neon_vcvt<mode>): Likewise.
11102 (neon_vcvt<mode>): Likewise.
11103 (neon_vcvtv4sfv4hf): Likewise.
11104 (neon_vcvtv4hfv4sf): Likewise.
11105 (neon_vcvt_n<mode>): Likewise.
11106 (neon_vcvt_n<mode>): Likewise.
11107 (neon_vmovn<mode>): Likewise.
11108 (neon_vqmovn<mode>): Likewise.
11109 (neon_vqmovun<mode>): Likewise.
11110 (neon_vmovl<mode>): Likewise.
11111 (neon_vmul_lane<mode>): Likewise.
11112 (neon_vmul_lane<mode>): Likewise.
11113 (neon_vmull_lane<mode>): Likewise.
11114 (neon_vqdmull_lane<mode>): Likewise.
11115 (neon_vqdmulh_lane<mode>): Likewise.
11116 (neon_vqdmulh_lane<mode>): Likewise.
11117 (neon_vmla_lane<mode>): Likewise.
11118 (neon_vmla_lane<mode>): Likewise.
11119 (neon_vmlal_lane<mode>): Likewise.
11120 (neon_vqdmlal_lane<mode>): Likewise.
11121 (neon_vmls_lane<mode>): Likewise.
11122 (neon_vmls_lane<mode>): Likewise.
11123 (neon_vmlsl_lane<mode>): Likewise.
11124 (neon_vqdmlsl_lane<mode>): Likewise.
11125 (neon_vext<mode>): Likewise.
11126 (neon_vrev64<mode>): Likewise.
11127 (neon_vrev32<mode>): Likewise.
11128 (neon_vrev16<mode>): Likewise.
11129 (neon_vbsl<mode>_internal): Likewise.
11130 (neon_vshl<mode>): Likewise.
11131 (neon_vqshl<mode>): Likewise.
11132 (neon_vshr_n<mode>): Likewise.
11133 (neon_vshrn_n<mode>): Likewise.
11134 (neon_vqshrn_n<mode>): Likewise.
11135 (neon_vqshrun_n<mode>): Likewise.
11136 (neon_vshl_n<mode>): Likewise.
11137 (neon_vqshl_n<mode>): Likewise.
11138 (neon_vqshlu_n<mode>): Likewise.
11139 (neon_vshll_n<mode>): Likewise.
11140 (neon_vsra_n<mode>): Likewise.
11141 (neon_vsri_n<mode>): Likewise.
11142 (neon_vsli_n<mode>): Likewise.
11143 (neon_vtbl1v8qi): Likewise.
11144 (neon_vtbl2v8qi): Likewise.
11145 (neon_vtbl3v8qi): Likewise.
11146 (neon_vtbl4v8qi): Likewise.
11147 (neon_vtbl1v16qi): Likewise.
11148 (neon_vtbl2v16qi): Likewise.
11149 (neon_vcombinev16qi): Likewise.
11150 (neon_vtbx1v8qi): Likewise.
11151 (neon_vtbx2v8qi): Likewise.
11152 (neon_vtbx3v8qi): Likewise.
11153 (neon_vtbx4v8qi): Likewise.
11154 (*neon_vtrn<mode>_insn): Likewise.
11155 (*neon_vzip<mode>_insn): Likewise.
11156 (*neon_vuzp<mode>_insn): Likewise.
11157 (neon_vld1<mode>): Likewise.
11158 (neon_vld1_lane<mode>): Likewise.
11159 (neon_vld1_lane<mode>): Likewise.
11160 (neon_vld1_dup<mode>): Likewise.
11161 (neon_vld1_dup<mode>): Likewise.
11162 (neon_vld1_dupv2di): Likewise.
11163 (neon_vst1<mode>): Likewise.
11164 (neon_vst1_lane<mode>): Likewise.
11165 (neon_vst1_lane<mode>): Likewise.
11166 (neon_vld2<mode>): Likewise.
11167 (neon_vld2<mode>): Likewise.
11168 (neon_vld2_lane<mode>): Likewise.
11169 (neon_vld2_lane<mode>): Likewise.
11170 (neon_vld2_dup<mode>): Likewise.
11171 (neon_vst2<mode>): Likewise.
11172 (neon_vst2<mode>): Likewise.
11173 (neon_vst2_lane<mode>): Likewise.
11174 (neon_vst2_lane<mode>): Likewise.
11175 (neon_vld3<mode>): Likewise.
11176 (neon_vld3qa<mode>): Likewise.
11177 (neon_vld3qb<mode>): Likewise.
11178 (neon_vld3_lane<mode>): Likewise.
11179 (neon_vld3_lane<mode>): Likewise.
11180 (neon_vld3_dup<mode>): Likewise.
11181 (neon_vst3<mode>): Likewise.
11182 (neon_vst3qa<mode>): Likewise.
11183 (neon_vst3qb<mode>): Likewise.
11184 (neon_vst3_lane<mode>): Likewise.
11185 (neon_vst3_lane<mode>): Likewise.
11186 (neon_vld4<mode>): Likewise.
11187 (neon_vld4qa<mode>): Likewise.
11188 (neon_vld4qb<mode>): Likewise.
11189 (neon_vld4_lane<mode>): Likewise.
11190 (neon_vld4_lane<mode>): Likewise.
11191 (neon_vld4_dup<mode>): Likewise.
11192 (neon_vst4<mode>): Likewise.
11193 (neon_vst4qa<mode>): Likewise.
11194 (neon_vst4qb<mode>): Likewise.
11195 (neon_vst4_lane<mode>): Likewise.
11196 (neon_vst4_lane<mode>): Likewise.
11197 (neon_vec_unpack<US>_lo_<mode>): Likewise.
11198 (neon_vec_unpack<US>_hi_<mode>): Likewise.
11199 (neon_vec_<US>mult_lo_<mode>): Likewise.
11200 (neon_vec_<US>mult_hi_<mode>): Likewise.
11201 (neon_vec_<US>shiftl_<mode>): Likewise.
11202 (neon_unpack<US>_<mode>): Likewise.
11203 (neon_vec_<US>mult_<mode>): Likewise.
11204 (vec_pack_trunc_<mode>): Likewise.
11205 (neon_vec_pack_trunc_<mode>): Likewise.
11206 (neon_vabd<mode>_2): Likewise.
11207 (neon_vabd<mode>_3): Likewise.
11209 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
11211 * config/aarch64/aarch64.md (movtf_aarch64): Update type attribute.
11212 (load_pair): Update type attribute.
11213 (store_pair): Update type attribute.
11214 * config/aarch64/iterators.md (q): New.
11216 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
11218 * config/arm/types.md: Add new types for Neon insns.
11220 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
11221 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11222 Sergey Lega <sergey.s.lega@intel.com>
11223 Anna Tikhonova <anna.tikhonova@intel.com>
11224 Ilya Tocar <ilya.tocar@intel.com>
11225 Andrey Turetskiy <andrey.turetskiy@intel.com>
11226 Ilya Verbin <ilya.verbin@intel.com>
11227 Kirill Yukhin <kirill.yukhin@intel.com>
11228 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11230 * config/i386/sse.md (unspec): Add UNSPEC_RCP14, UNSPEC_RSQRT14,
11231 UNSPEC_FIXUPIMM, UNSPEC_SCALEF, UNSPEC_GETEXP, UNSPEC_GETMANT,
11232 UNSPEC_EXP2, UNSPEC_RCP28, UNSPEC_RSQRT28.
11233 (rcp14<mode>): New.
11234 (srcp14<mode>): Ditto.
11235 (rsqrt14<mode>): Ditto.
11236 (rsqrt14<mode>): Ditto.
11237 (avx512f_vmscalef<mode>): Ditto.
11238 (avx512f_scalef<mode>): Ditto.
11239 (avx512f_getexp<mode>): Ditto.
11240 (avx512f_sgetexp<mode>): Ditto.
11241 (avx512f_fixupimm<mode>): Ditto.
11242 (avx512f_sfixupimm<mode>): Ditto.
11243 (avx512f_rndscale<mode>): Ditto.
11244 (*avx512er_exp2<mode>): Ditto.
11245 (*avx512er_rcp28<mode>): Ditto.
11246 (avx512er_rsqrt28<mode>): Ditto.
11247 (avx512f_getmant<mode>): Ditto.
11248 (avx512f_getmant<mode>): Ditto.
11249 (avx512f_rndscale<mode>): Fix formatting.
11251 2013-10-15 Martin Jambor <mjambor@suse.cz>
11253 * ipa-utils.h (ipa_edge_within_scc): Declare.
11254 * ipa-cp.c (edge_within_scc): Moved...
11255 * ipa-utils.c (ipa_edge_within_scc): ...here. Updated all callers.
11257 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
11258 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11259 Sergey Lega <sergey.s.lega@intel.com>
11260 Anna Tikhonova <anna.tikhonova@intel.com>
11261 Ilya Tocar <ilya.tocar@intel.com>
11262 Andrey Turetskiy <andrey.turetskiy@intel.com>
11263 Ilya Verbin <ilya.verbin@intel.com>
11264 Kirill Yukhin <kirill.yukhin@intel.com>
11265 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11267 * config/i386/predicates.md (const_8_to_15_operand): New.
11268 (const_16_to_31_operand): Ditto.
11269 * config/i386/sse.md (V8FI): New.
11271 (reduc_splus_v8df): Ditto.
11272 (reduc_splus_v16sf): Ditto.
11273 (avx512f_vextract<shuffletype>32x4_1): Ditto.
11274 (vec_extract_hi_<mode>): Ditto.
11275 (avx512f_vinsert<shuffletype>32x4_1): Ditto.
11276 (vec_set_lo_<mode>): Ditto.
11277 (vec_set_hi_<mode>): Ditto.
11278 (avx512f_shuf_<shuffletype>64x2_1): Ditto.
11279 (avx512f_shuf_<shuffletype>32x4_1): Ditto.
11280 (avx512f_pshufd_1): Ditto.
11281 (avx512f_broadcast<mode>): Ditto.
11282 (avx512f_broadcast<mode>): Ditto.
11283 (define_split): Split vec_extract_lo into move.
11284 (ssequartermode): Ditto.
11285 (ssedoublemode): Extened with wider modes.
11286 (vec_extract_lo_<mode>): Ditto.
11288 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
11289 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11290 Sergey Lega <sergey.s.lega@intel.com>
11291 Anna Tikhonova <anna.tikhonova@intel.com>
11292 Ilya Tocar <ilya.tocar@intel.com>
11293 Andrey Turetskiy <andrey.turetskiy@intel.com>
11294 Ilya Verbin <ilya.verbin@intel.com>
11295 Kirill Yukhin <kirill.yukhin@intel.com>
11296 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11298 * config/i386/predicates.md (register_or_constm1_operand): New.
11299 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_PCMP, UNSPEC_TESTM,
11300 UNSPEC_TESTNM, UNSPEC_VTERNLOG, UNSPEC_ALIGN, UNSPEC_CONFLICT,
11301 UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT, UNSPEC_GATHER_PREFETCH,
11302 UNSPEC_SCATTER_PREFETCH
11304 (avx512f_ucmp<mode>3): Ditto.
11305 (avx512f_vternlog<mode>): Ditto.
11306 (avx512f_align<mode>): Ditto.
11307 (<shift_insn><mode>3): Ditto.
11308 (avx512f_<rotate>v<mode>): Ditto.
11309 (avx512f_<rotate><mode>): Ditto.
11310 (avx512f_eq<mode>3): Ditto.
11311 (avx512f_eq<mode>3_1): Ditto.
11312 (avx512f_gt<mode>3): Ditto.
11313 (avx512f_testm<mode>3): Ditto.
11314 (avx512f_testnm<mode>3): Ditto.
11315 (avx512pf_gatherpf<mode>): Ditto.
11316 (*avx512pf_gatherpf<mode>_mask): Ditto.
11317 (*avx512pf_gatherpf<mode>): Ditto.
11318 (avx512pf_scatterpf<mode>): Ditto.
11319 (*avx512pf_scatterpf<mode>_mask): Ditto.
11320 (*avx512pf_scatterpf<mode>): Ditto.
11321 (avx512f_vec_dup_gpr<mode>): Ditto.
11322 (clz<mode>2): Ditto.
11323 (conflict<mode>): Ditto.
11324 (REDUC_SMINMAX_MODE): Extened with wider modes.
11325 (reduc_<code>_<mode>): Ditto.
11326 (vlshr<mode>3): Ditto.
11327 (vashl<mode>3): Ditto.
11329 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
11330 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11331 Sergey Lega <sergey.s.lega@intel.com>
11332 Anna Tikhonova <anna.tikhonova@intel.com>
11333 Ilya Tocar <ilya.tocar@intel.com>
11334 Andrey Turetskiy <andrey.turetskiy@intel.com>
11335 Ilya Verbin <ilya.verbin@intel.com>
11336 Kirill Yukhin <kirill.yukhin@intel.com>
11337 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11339 * config/i386/sse.md (unspec): Added UNSPEC_VPERMI2, UNSPEC_VPERMT2,
11342 (avx512fmaskmode): Ditto.
11343 (bcstscalarsuff): Ditto.
11344 (avx512f_blendm<mode>): Ditto.
11345 (cmp_imm_predicate): Ditto.
11346 (avx512f_cmp<mode>3): Ditto.
11347 (avx512f_vec_dup<mode>): Ditto.
11348 (avx512f_vec_dup_mem<mode>): Ditto.
11349 (avx512f_vpermi2var<mode>3): Ditto.
11350 (avx512f_vpermt2var<mode>3): Ditto.
11351 (vec_init<mode>): Ditto.
11352 (avx512f_gathersi<mode>): Ditto.
11353 (*avx512f_gathersi<mode>): Ditto.
11354 (*avx512f_gathersi<mode>_2): Ditto.
11355 (avx512f_gatherdi<mode>): Ditto.
11356 (*avx512f_gatherdi<mode>): Ditto.
11357 (*avx512f_gatherdi<mode>_2): Ditto.
11358 (avx512f_scattersi<mode>): Ditto.
11359 (*avx512f_scattersi<mode>): Ditto.
11360 (avx512f_scatterdi<mode>): Ditto.
11361 (*avx512f_scatterdi<mode>): Ditto.
11362 (sseintprefix): Extened with wider modes.
11363 (VEC_GATHER_IDXSI): Ditto.
11364 (VEC_GATHER_IDXDI): Ditto.
11365 (VEC_GATHER_SRCDI): Ditto.
11367 2013-10-15 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
11368 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11370 * config/arm/t-aprofile: New file.
11371 * config.gcc: Handle --with-multilib-list option.
11373 2013-10-15 Bernd Schmidt <bernds@codesourcery.com>
11375 * reload1.c (reloads_unique_chain_p): Ensure that r1 is
11378 2013-10-15 Richard Biener <rguenther@suse.de>
11380 * tree-loop-distribution.c (build_empty_rdg): Inline into
11382 (rdg_flag_vertex): Inline into single user.
11383 (rdg_flag_vertex_and_dependent): Likewise.
11384 (build_rdg_partition_for_vertex): Remove processed bitmap.
11385 (rdg_build_partitions): Simplify.
11387 2013-10-15 Richard Biener <rguenther@suse.de>
11389 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
11390 Restructure forwarding through conversions and copies to
11391 avoid performing copy-propagation the wrong way. Adjust
11392 recursion invocations.
11393 (forward_propagate_addr_expr): Add argument stating if we
11394 are recursing from a single-use.
11395 (ssa_forward_propagate_and_combine): Adjust.
11397 2013-10-14 David Malcolm <dmalcolm@redhat.com>
11399 * dumpfile.h (gcc::dump_manager): New class, to hold state
11400 relating to dumpfile management.
11401 (get_dump_file_name): Remove in favor of method of dump_manager.
11402 (dump_initialized_p): Likewise.
11403 (dump_start): Likewise.
11404 (dump_finish): Likewise.
11405 (dump_switch_p): Likewise.
11406 (dump_register): Likewise.
11407 (get_dump_file_info): Likewise.
11408 * context.c (gcc::context::context): Construct the dump_manager
11410 * context.h (gcc::context::get_dumps): New.
11411 (gcc::context::m_dumps): New.
11412 * coverage.c (coverage_init): Port to dump_manager API.
11413 * dumpfile.c (extra_dump_files): Convert to field of gcc::dump_manager.
11414 (extra_dump_files_in_use): Likewise.
11415 (extra_dump_files_alloced): Likewise.
11416 (gcc::dump_manager::dump_manager): New.
11417 (dump_register): Convert to...
11418 (gcc::dump_manager::dump_register): ...method, replacing
11419 function-static next_dump with m_next_dump field.
11420 (get_dump_file_info): Convert to...
11421 (gcc::dump_manager::get_dump_file_info): ...method.
11422 (get_dump_file_name): Convert to...
11423 (gcc::dump_manager::get_dump_file_name): ...method.
11424 (dump_start): Convert to...
11425 (gcc::dump_manager::dump_start): ...method.
11426 (dump_finish): Convert to...
11427 (gcc::dump_manager::dump_finish): ...method.
11428 (dump_begin): Replace body with...
11429 (gcc::dump_manager::dump_begin): ...new method.
11430 (dump_phase_enabled_p): Convert to...
11431 (gcc::dump_manager::dump_phase_enabled_p): ...method.
11432 (dump_phase_enabled_p): Convert to...
11433 (gcc::dump_manager::dump_phase_enabled_p): ...method.
11434 (dump_initialized_p): Convert to...
11435 (gcc::dump_manager::dump_initialized_p): ...method.
11436 (dump_flag_name): Replace body with...
11437 (gcc::dump_manager::dump_flag_name): ...new method.
11438 (dump_enable_all): Convert to...
11439 (gcc::dump_manager::dump_enable_all): ...new method.
11440 (opt_info_enable_passes): Convert to...
11441 (gcc::dump_manager::opt_info_enable_passes): ...new method.
11442 (dump_switch_p_1): Convert to...
11443 (gcc::dump_manager::dump_switch_p_1): ...new method.
11444 (dump_switch_p): Convert to...
11445 (gcc::dump_manager::dump_switch_p): ...new method.
11446 (opt_info_switch_p): Port to dump_manager API.
11447 (enable_rtl_dump_file): Likewise.
11448 * opts-global.c (handle_common_deferred_options): Port to new
11450 * passes.c (pass_manager::finish_optimization_passes): Likewise.
11451 (pass_manager::register_one_dump_file): Likewise.
11452 (pass_manager::register_pass): Likewise.
11453 (pass_init_dump_file): Likewise.
11454 (pass_fini_dump_file): Likewise.
11455 * statistics.c (statistics_early_init): Likewise.
11457 2013-10-14 Richard Biener <rguenther@suse.de>
11459 * gimple.c (gimple_canonical_types, canonical_type_hash_cache,
11460 iterative_hash_canonical_type, gimple_canonical_type_hash,
11461 gimple_canonical_types_compatible_p, gimple_canonical_type_eq,
11462 gimple_register_canonical_type, print_gimple_types_stats,
11463 free_gimple_type_tables): Move to lto/lto.c
11464 (gt-gimple.h): Do not include.
11465 * gimple.h (gimple_register_canonical_type,
11466 print_gimple_types_stats, free_gimple_type_tables): Remove.
11467 * Makefile.in (GTFILES): Remove gimple.c.
11469 2013-10-14 Travis Snoozy <quandary@remstate.com>
11472 * config/msp430/msp430.c (msp430_option_override): Correct thinko
11473 scanning for msp430x targets.
11475 2013-10-14 Eric Botcazou <ebotcazou@adacore.com>
11478 * config/sparc/sparc-protos.h (widen_mem_for_ldd_peep): Declare.
11479 (registers_ok_for_ldd_peep): Move around.
11480 * config/sparc/sparc.c (widen_mem_for_ldd_peep): New.
11481 * config/sparc/sparc.md (widening peepholes): Use it.
11483 2013-10-14 Richard Biener <rguenther@suse.de>
11485 PR middle-end/58712
11486 PR middle-end/55358
11487 * gimple.c (iterative_hash_canonical_type): Make sure to
11488 record the hash into the correct hashtable slot.
11490 2013-10-13 Eric Botcazou <ebotcazou@adacore.com>
11492 PR rtl-optimization/58662
11493 * combine.c (try_combine): Take into account death nodes on I2 when
11494 splitting a PARALLEL of two independent SETs. Fix dump message.
11496 2013-10-12 Oleg Endo <olegendo@gcc.gnu.org>
11499 * config/sh/sh_treg_combine.cc: New SH specific RTL pass.
11500 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add sh_treg_combine.o to
11502 * config/sh/t-sh (sh_treg_combine.o): New entry.
11503 * config/sh/sh.c (sh_fixed_condition_code_regs): New function that
11504 implements the target hook TARGET_FIXED_CONDITION_CODE_REGS.
11505 (register_sh_passes): New function. Register sh_treg_combine pass.
11506 (sh_option_override): Invoke it.
11507 (sh_canonicalize_comparison): Handle op0_preserve_value.
11508 * sh.md (*cbranch_t"): Do not try to optimize missed test and branch
11509 opportunities. Canonicalize branch condition.
11510 (nott): Allow only if pseudos can be created for non-SH2A.
11512 2013-10-12 H.J. Lu <hongjiu.lu@intel.com>
11515 * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
11516 (ix86_expand_movmem): Replace copy_addr_to_reg with
11517 ix86_copy_addr_to_reg.
11518 (ix86_expand_setmem): Likewise.
11520 2013-10-12 Alexander Monakov <amonakov@ispras.ru>
11522 * config/i386/i386.c (ix86_expand_sse_compare_and_jump): Use mode
11523 provided by ix86_fp_compare_mode instead of CCFPUmode.
11525 2013-10-12 James Greenhalgh <james.greenhalgh@arm.com>
11527 * config/aarch64/arm_neon.h
11528 (vtbx<1,3>_<psu>8): Fix register constriants.
11530 2013-10-11 Jeff Law <law@redhat.com>
11532 PR tree-optimization/58640
11533 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
11534 threading paths that cross over two loop entry points.
11536 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11538 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): Generalize to
11539 handle vector float as well.
11540 (*vsx_le_perm_load_v4si): Likewise.
11541 (*vsx_le_perm_store_v2di): Likewise.
11542 (*vsx_le_perm_store_v4si): Likewise.
11544 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11546 * config/rs6000/vector.md (vec_realign_load<mode>): Generate vperm
11547 directly to circumvent subtract from splat{31} workaround.
11548 * config/rs6000/rs6000-protos.h (altivec_expand_vec_perm_le): New
11550 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): New.
11551 * config/rs6000/altivec.md (define_c_enum "unspec"): Add
11552 UNSPEC_VPERM_X and UNSPEC_VPERM_UNS_X.
11553 (altivec_vperm_<mode>): Convert to define_insn_and_split to
11554 separate big and little endian logic.
11555 (*altivec_vperm_<mode>_internal): New define_insn.
11556 (altivec_vperm_<mode>_uns): Convert to define_insn_and_split to
11557 separate big and little endian logic.
11558 (*altivec_vperm_<mode>_uns_internal): New define_insn.
11559 (vec_permv16qi): Add little endian logic.
11561 2013-10-11 Marc Glisse <marc.glisse@inria.fr>
11563 * doc/extend.texi (returns_nonnull): Remove arguments.
11565 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11566 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11567 Sergey Lega <sergey.s.lega@intel.com>
11568 Anna Tikhonova <anna.tikhonova@intel.com>
11569 Ilya Tocar <ilya.tocar@intel.com>
11570 Andrey Turetskiy <andrey.turetskiy@intel.com>
11571 Ilya Verbin <ilya.verbin@intel.com>
11572 Kirill Yukhin <kirill.yukhin@intel.com>
11573 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11575 * config/i386/sse.md (VI48F_256_512): New.
11576 (avx2_permvar<mode>): Change to ...
11577 (<avx2_avx512f>_permvar<mode>): This.
11579 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11580 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11581 Sergey Lega <sergey.s.lega@intel.com>
11582 Anna Tikhonova <anna.tikhonova@intel.com>
11583 Ilya Tocar <ilya.tocar@intel.com>
11584 Andrey Turetskiy <andrey.turetskiy@intel.com>
11585 Ilya Verbin <ilya.verbin@intel.com>
11586 Kirill Yukhin <kirill.yukhin@intel.com>
11587 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11589 * config/i386/i386.c (bdesc_args): Change corresponding pattern for
11590 __builtin_ia32_cvtps2dq, __builtin_ia32_cvtps2dq256.
11591 * config/i386/sse.md (VI4_AVX): New.
11592 (sf2simodelower): Ditto.
11593 (sse2_cvtps2dq): Change to ...
11594 (<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode>): This.
11596 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11597 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11598 Sergey Lega <sergey.s.lega@intel.com>
11599 Anna Tikhonova <anna.tikhonova@intel.com>
11600 Ilya Tocar <ilya.tocar@intel.com>
11601 Andrey Turetskiy <andrey.turetskiy@intel.com>
11602 Ilya Verbin <ilya.verbin@intel.com>
11603 Kirill Yukhin <kirill.yukhin@intel.com>
11604 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11606 * config/i386/sse.md (V_512): New.
11608 (vcond<V_512:mode><VF_512:mode>): Ditto.
11609 (vcond<V_512:mode><VI_512:mode>): Ditto.
11610 (vcondu<V_512:mode><VI_512:mode>): Ditto.
11612 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11613 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11614 Sergey Lega <sergey.s.lega@intel.com>
11615 Anna Tikhonova <anna.tikhonova@intel.com>
11616 Ilya Tocar <ilya.tocar@intel.com>
11617 Andrey Turetskiy <andrey.turetskiy@intel.com>
11618 Ilya Verbin <ilya.verbin@intel.com>
11619 Kirill Yukhin <kirill.yukhin@intel.com>
11620 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11622 * config/i386/i386.c (ix86_rtx_costs): Enable fma for TARGET_AVX512F.
11623 * config/i386/sse.md (FMAMODEM): Changed modes and conditions.
11625 (fma<mode>4): Removed condition.
11626 (fms<mode>4): Ditto.
11627 (fnma<mode>4): Ditto.
11628 (fnms<mode>4): Ditto.
11629 (fma4i_fmadd_<mode>): Ditto.
11630 (*fma_fmadd_<mode>): Ditto.
11631 (*fma_fmsub_<mode>): Ditto.
11632 (*fma_fnmadd_<mode>): Ditto.
11633 (*fma_fnmsub_<mode>): Ditto.
11634 (fmaddsub_<mode>): Allow for TARGET_AVX512F.
11635 (*fma_fmaddsub_<mode>): Ditto.
11636 (*fma_fmsubadd_<mode>): Ditto.
11637 (*fmai_fmadd_<mode>): Ditto.
11638 (*fmai_fmsub_<mode>): Ditto.
11639 (*fmai_fnmadd_<mode>): Ditto.
11640 (*fmai_fnmsub_<mode>): Ditto.
11642 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11643 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11644 Sergey Lega <sergey.s.lega@intel.com>
11645 Anna Tikhonova <anna.tikhonova@intel.com>
11646 Ilya Tocar <ilya.tocar@intel.com>
11647 Andrey Turetskiy <andrey.turetskiy@intel.com>
11648 Ilya Verbin <ilya.verbin@intel.com>
11649 Kirill Yukhin <kirill.yukhin@intel.com>
11650 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11652 * config/i386/sse.md (VI248_AVX2_8_AVX512F): New.
11653 (VI124_256): Changed to ...
11654 (VI124_256_48_512): This.
11655 (ssepackmode): Extended with wider modes.
11656 (<code><mode>3): Changed iterator.
11657 (*avx2_<code><mode>3): Ditto.
11658 (vec_pack_trunc_<mode>): Ditto.
11660 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11661 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11662 Sergey Lega <sergey.s.lega@intel.com>
11663 Anna Tikhonova <anna.tikhonova@intel.com>
11664 Ilya Tocar <ilya.tocar@intel.com>
11665 Andrey Turetskiy <andrey.turetskiy@intel.com>
11666 Ilya Verbin <ilya.verbin@intel.com>
11667 Kirill Yukhin <kirill.yukhin@intel.com>
11668 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11670 * config/i386/sse.md (VI124_AVX2_48_AVX512F): New.
11671 (VI8F_256_512): Ditto.
11672 (abs<mode>2): Changed iterator.
11673 (avx2_perm<mode>): Changed to ...
11674 (<avx2_avx512f>_perm<mode>): This.
11675 (avx2_perm<mode>_1): Changed to ...
11676 (<avx2_avx512f>_perm<mode>_1): This.
11678 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11679 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11680 Sergey Lega <sergey.s.lega@intel.com>
11681 Anna Tikhonova <anna.tikhonova@intel.com>
11682 Ilya Tocar <ilya.tocar@intel.com>
11683 Andrey Turetskiy <andrey.turetskiy@intel.com>
11684 Ilya Verbin <ilya.verbin@intel.com>
11685 Kirill Yukhin <kirill.yukhin@intel.com>
11686 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11688 * config/i386/sse.md (VI48_AVX512F): New.
11689 (VI48_AVX2): Changed to ...
11690 (VI48_AVX2_48_AVX512F): This.
11691 (avx2_ashrv<mode>): Changed to ...
11692 (<avx2_avx512f>_ashrv<mode>): This.
11693 (avx2_<shift_insn>v<mode>): Changed to ...
11694 (<avx2_avx512f>_<shift_insn>v<mode>): This.
11696 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11697 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11698 Sergey Lega <sergey.s.lega@intel.com>
11699 Anna Tikhonova <anna.tikhonova@intel.com>
11700 Ilya Tocar <ilya.tocar@intel.com>
11701 Andrey Turetskiy <andrey.turetskiy@intel.com>
11702 Ilya Verbin <ilya.verbin@intel.com>
11703 Kirill Yukhin <kirill.yukhin@intel.com>
11704 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11706 * config/i386/sse.md (VI4_AVX512F): New.
11707 (VI8_AVX2_AVX512F): Ditto.
11708 (mul<mode>3): Extended with wider modes.
11709 (*<sse4_1_avx2>_mul<mode>3): Ditto.
11710 (mul<mode>3): Ditto.
11711 (vec_widen_<s>mult_odd_<mode>): Ditto.
11713 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11714 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11715 Sergey Lega <sergey.s.lega@intel.com>
11716 Anna Tikhonova <anna.tikhonova@intel.com>
11717 Ilya Tocar <ilya.tocar@intel.com>
11718 Andrey Turetskiy <andrey.turetskiy@intel.com>
11719 Ilya Verbin <ilya.verbin@intel.com>
11720 Kirill Yukhin <kirill.yukhin@intel.com>
11721 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11723 * config/i386/sse.md (VI2_AVX512F): New.
11724 (VI124_AVX512F): Ditto.
11725 (sseunpackmode): Extended with wider modes.
11726 (sseunpackfltmode): Ditto.
11727 (vec_unpacks_float_hi_<mode>): Ditto.
11728 (vec_unpacks_float_lo_<mode>): Ditto.
11729 (vec_unpacku_float_hi_<mode>): Ditto.
11730 (vec_unpacku_float_lo_<mode>): Ditto.
11731 (vec_unpacks_lo_<mode>): Ditto.
11732 (vec_unpacks_hi_<mode>): Ditto.
11733 (vec_unpacku_lo_<mode>): Ditto.
11734 (vec_unpacku_hi_<mode>): Ditto.
11736 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11737 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11738 Sergey Lega <sergey.s.lega@intel.com>
11739 Anna Tikhonova <anna.tikhonova@intel.com>
11740 Ilya Tocar <ilya.tocar@intel.com>
11741 Andrey Turetskiy <andrey.turetskiy@intel.com>
11742 Ilya Verbin <ilya.verbin@intel.com>
11743 Kirill Yukhin <kirill.yukhin@intel.com>
11744 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11746 * config/i386/i386.md (multdiv): New.
11747 (multdiv_mnemonic): Ditto.
11748 * config/i386/sse.md (<sse>_vmmul<mode>3): Changed to...
11749 (<sse>_vm<multdiv_mnemonic><mode>3): This.
11750 (<sse>_vmdiv<mode>3): Removed.
11752 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11753 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11754 Sergey Lega <sergey.s.lega@intel.com>
11755 Anna Tikhonova <anna.tikhonova@intel.com>
11756 Ilya Tocar <ilya.tocar@intel.com>
11757 Andrey Turetskiy <andrey.turetskiy@intel.com>
11758 Ilya Verbin <ilya.verbin@intel.com>
11759 Kirill Yukhin <kirill.yukhin@intel.com>
11760 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11762 * config/i386/sse.md (V): Extended with wider modes.
11764 (ssehalfvecmode): Ditto.
11766 (ssepackfltmode): Ditto.
11767 (avx_vec_concat<mode>): Ditto.
11768 (V_256_512): New iterator.
11769 (VF2_512_256): Ditto.
11770 (si2dfmode): New attribute.
11771 (si2dfmodelower): Ditto.
11772 (sf2dfmode): Ditto.
11773 (concat_tg_mode): Ditto.
11774 (floatv4siv4df2): Changed to ...
11775 (float<si2dfmodelower><mode>2): This.
11776 (avx_cvtps2pd256): Changed to ...
11777 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix>): This.
11778 (vec_pack_trunc_v4df): Changed to ...
11779 (vec_pack_trunc_<mode>): This.
11780 (avx_vpermil<mode>): Changed to ...
11781 (<sse2_avx_avx512f>_vpermil<mode>): This.
11782 (<fixsuffix>fix_truncv8dfv8si2): New.
11783 (vec_pack_sfix_trunc_v8df): Ditto.
11784 (avx512f_rndscale<mode>): Ditto.
11785 (avx512f_roundpd512): Ditto.
11786 (vec_pack_ufix_trunc_<mode>): Updated iterator.
11788 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11789 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11790 Sergey Lega <sergey.s.lega@intel.com>
11791 Anna Tikhonova <anna.tikhonova@intel.com>
11792 Ilya Tocar <ilya.tocar@intel.com>
11793 Andrey Turetskiy <andrey.turetskiy@intel.com>
11794 Ilya Verbin <ilya.verbin@intel.com>
11795 Kirill Yukhin <kirill.yukhin@intel.com>
11796 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11798 * config/i386/i386.md (any_fix): New iterator.
11799 (fixsuffix): New attribute.
11800 * config/i386/sse.md (VF1): Extened with wider modes.
11804 (sseintvecmodelower): Ditto.
11805 (ssescalarmode): Ditto.
11806 (ssescalarnum): Ditto.
11807 (VF1_128_256): New.
11808 (ssexmmmode): Ditto.
11809 (<fixsuffix>fix_truncv16sfv16si2): Ditto.
11810 (<sse>_rcp<mode>2): Change iterator.
11811 (rsqrt<mode>2): Ditto.
11812 (<sse>_rsqrt<mode>2): Ditto.
11813 (avx2_vec_dup<mode>): Ditto.
11814 (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
11815 (round<mode>2_sfix): Ditto.
11816 (avx2_pbroadcast<mode>): Ditto.
11817 (*andnot<mode>3): Handle XI mode.
11818 (*<code><mode>3): Ditto.
11819 (AVXTOSSEMODE): Removed.
11820 (avx_vpermil<mode>): Changed to ...
11821 (<sse2_avx_avx512f>_vpermil<mode>): This.
11823 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11824 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11825 Sergey Lega <sergey.s.lega@intel.com>
11826 Anna Tikhonova <anna.tikhonova@intel.com>
11827 Ilya Tocar <ilya.tocar@intel.com>
11828 Andrey Turetskiy <andrey.turetskiy@intel.com>
11829 Ilya Verbin <ilya.verbin@intel.com>
11830 Kirill Yukhin <kirill.yukhin@intel.com>
11831 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11833 * config/i386/sse.md (<sse2>_movnt<mode>): Update constraint to "v".
11834 (<sse>_comi): Ditto.
11835 (<sse>_ucomi): Ditto.
11836 (sse_cvtss2siq_2): Ditto.
11837 (sse2_cvtsd2si): Ditto.
11838 (sse2_cvtsd2siq): Ditto.
11839 (sse2_cvttsd2si): Ditto.
11840 (sse2_cvttsd2siq): Ditto.
11841 (<shift_insn><mode>3): Ditto.
11842 (sse2_cvtsi2sdq): Update constraint and prefix.
11843 (sse_cvtsi2ss): Update prefix.
11844 (sse_cvtsi2ssq): Ditto.
11846 2013-10-11 Jakub Jelinek <jakub@redhat.com>
11848 * tree-vrp.c (infer_nonnull_range): Use is_gimple_call,
11849 ignore internal calls.
11851 2013-10-11 Richard Biener <rguenther@suse.de>
11853 * tree-pretty-print.c (dump_generic_node): Allow to dump both (D)
11854 and (ab) for SSA_NAMEs. Mark INTEGER_CSTs with (OVF) if
11855 TREE_OVERFLOW is set.
11857 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
11859 * tree.h (OMP_CLAUSE_CODE): Remove duplicate definition.
11861 * gimple.c: GIMPLE statements have subcodes, not sub-codes.
11862 * gimple.h: Likewise.
11864 * doc/generic.texi (OpenMP): OMP_CLAUSE_* are subcodes, not sub-codes.
11866 * doc/generic.texi (Adding new DECL node types): Explain *_CHECK
11869 * doc/gimple.texi (is_gimple_omp): Move into the correct section.
11871 * acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags overrides.
11872 * configure: Regenerate.
11874 2013-10-11 Jakub Jelinek <jakub@redhat.com>
11876 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__LOOPTEMP_
11877 and new OpenMP 4.0 clauses, handle UDR OMP_CLAUSE_REDUCTION,
11878 formatting fixes, use pp_colon instead of pp_character (..., ':'),
11879 similarly pp_right_paren.
11880 (dump_generic_node): Handle OMP_DISTRIBUTE, OMP_TEAMS,
11881 OMP_TARGET_DATA, OMP_TARGET, OMP_TARGET_UPDATE, OMP_TASKGROUP,
11882 allow OMP_FOR_INIT to be NULL, handle OMP_ATOMIC_SEQ_CST.
11883 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add OpenMP 4.0
11885 (omp_declare_simd_clauses_equal,
11886 omp_remove_redundant_declare_simd_attrs): New functions.
11887 (attribute_value_equal): Use omp_declare_simd_clauses_equal.
11888 (walk_tree_1): Handle new OpenMP 4.0 clauses.
11889 * tree.h (OMP_LOOP_CHECK): Define.
11890 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
11891 OMP_FOR_INCR, OMP_FOR_PRE_BODY): Use it.
11892 (OMP_TASKGROUP_BODY, OMP_TEAMS_BODY, OMP_TEAMS_CLAUSES,
11893 OMP_TARGET_DATA_BODY, OMP_TARGET_DATA_CLAUSES, OMP_TARGET_BODY,
11894 OMP_TARGET_CLAUSES, OMP_TARGET_UPDATE_CLAUSES, OMP_CLAUSE_SIZE,
11895 OMP_ATOMIC_SEQ_CST, OMP_CLAUSE_DEPEND_KIND, OMP_CLAUSE_MAP_KIND,
11896 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION, OMP_CLAUSE_PROC_BIND_KIND,
11897 OMP_CLAUSE_REDUCTION_OMP_ORIG_REF, OMP_CLAUSE_ALIGNED_ALIGNMENT,
11898 OMP_CLAUSE_NUM_TEAMS_EXPR, OMP_CLAUSE_THREAD_LIMIT_EXPR,
11899 OMP_CLAUSE_DEVICE_ID, OMP_CLAUSE_DIST_SCHEDULE_CHUNK_EXPR,
11900 OMP_CLAUSE_SIMDLEN_EXPR): Define.
11901 (OMP_CLAUSE_DECL): Change range up to OMP_CLAUSE__LOOPTEMP_.
11902 (omp_remove_redundant_declare_simd_attrs): New prototype.
11903 * gimple.def (GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET,
11904 GIMPLE_OMP_TEAMS): New codes.
11905 (GIMPLE_OMP_RETURN): Use GSS_OMP_ATOMIC_STORE instead of GSS_BASE.
11906 * omp-low.c (struct omp_context): Add cancel_label and cancellable
11908 (target_nesting_level): New variable.
11909 (extract_omp_for_data): Handle GF_OMP_FOR_KIND_DISTRIBUTE and
11910 OMP_CLAUSE_DIST_SCHEDULE. Don't fallback to library implementation
11911 for collapse > 1 static schedule unless ordered.
11912 (get_ws_args_for): Add par_stmt argument. Handle combined loops.
11913 (determine_parallel_type): Adjust get_ws_args_for caller.
11914 (install_var_field): Handle mask & 4 for double indirection.
11915 (scan_sharing_clauses): Ignore shared clause on teams construct.
11916 Handle OMP_CLAUSE__LOOPTEMP_ and new OpenMP 4.0 clauses.
11917 (create_omp_child_function): If inside target or declare target
11918 constructs, set "omp declare target" attribute on the child function.
11919 (find_combined_for): New function.
11920 (scan_omp_parallel): Handle combined loops.
11921 (scan_omp_target, scan_omp_teams): New functions.
11922 (check_omp_nesting_restrictions): Check new OpenMP 4.0 nesting
11923 restrictions and set ctx->cancellable for cancellable constructs.
11924 (scan_omp_1_stmt): Call check_omp_nesting_restrictions also on
11925 selected builtin calls. Handle GIMPLE_OMP_TASKGROUP,
11926 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS.
11927 (build_omp_barrier): Add lhs argument, return gimple rather than tree.
11928 (omp_clause_aligned_alignment): New function.
11929 (lower_rec_simd_input_clauses): Only call SET_DECL_VALUE_EXPR on decls.
11930 (lower_rec_input_clauses): Add FD argument. Ignore shared clauses
11931 on teams constructs. Handle user defined reductions and new
11932 OpenMP 4.0 clauses.
11933 (lower_reduction_clauses): Don't set placeholder to address of ref
11934 if it has already the right type.
11935 (lower_send_clauses): Handle OMP_CLAUSE__LOOPTEMP_.
11936 (expand_parallel_call): Use the new non-_start suffixed builtins,
11937 handle OMP_CLAUSE_PROC_BIND, don't call the outlined function
11938 and GOMP_parallel_end after the call.
11939 (expand_task_call): Handle OMP_CLAUSE_DEPEND.
11940 (expand_omp_for_init_counts): Handle combined loops.
11941 (expand_omp_for_init_vars): Add inner_stmt argument, handle combined
11943 (expand_omp_for_generic): Likewise. Use GOMP_loop_end_cancel at the
11944 end of cancellable loops.
11945 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
11946 Likewise. Handle collapse > 1 loops.
11947 (expand_omp_simd): Handle combined loops.
11948 (expand_omp_for): Add inner_stmt argument, adjust callers of
11949 expand_omp_for* functions, use expand_omp_for_static*chunk even
11950 for collapse > 1 unless ordered.
11951 (expand_omp_sections): Use GOMP_sections_end_cancel at the end
11952 of cancellable sections.
11953 (expand_omp_single): Remove need_barrier variable, just rely on
11954 gimple_omp_return_nowait_p. Adjust build_omp_barrier caller.
11955 (expand_omp_synch): Allow GIMPLE_OMP_TASKGROUP and GIMPLE_OMP_TEAMS.
11956 (expand_omp_atomic_load, expand_omp_atomic_store,
11957 expand_omp_atomic_fetch_op): Handle gimple_omp_atomic_seq_cst_p.
11958 (expand_omp_target): New function.
11959 (expand_omp): Handle combined loops. Handle GIMPLE_OMP_TASKGROUP,
11960 GIMPLE_OMP_TEAMS, GIMPLE_OMP_TARGET.
11961 (build_omp_regions_1): Immediately close region for
11962 GF_OMP_TARGET_KIND_UPDATE.
11963 (maybe_add_implicit_barrier_cancel): New function.
11964 (lower_omp_sections): Adjust lower_rec_input_clauses caller. Handle
11966 (lower_omp_single): Likewise. Add clobber after the barrier.
11967 (lower_omp_taskgroup): New function.
11968 (lower_omp_for): Handle combined loops. Adjust
11969 lower_rec_input_clauses caller. Handle cancellation.
11970 (lower_depend_clauses): New function.
11971 (lower_omp_taskreg): Lower depend clauses. Adjust
11972 lower_rec_input_clauses caller. Add clobber after the call. Handle
11974 (lower_omp_target, lower_omp_teams): New functions.
11975 (lower_omp_1): Handle cancellation. Handle GIMPLE_OMP_TASKGROUP,
11976 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GOMP_barrier, GOMP_cancel
11977 and GOMP_cancellation_point calls.
11978 (lower_omp): Fold stmts inside of target region.
11979 (diagnose_sb_1, diagnose_sb_2): Handle GIMPLE_OMP_TASKGROUP,
11980 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
11981 * builtin-types.def (DEF_FUNCTION_TYPE_8): Document.
11982 (BT_FN_VOID_OMPFN_PTR_UINT,
11983 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
11984 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG,
11985 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): Remove.
11986 (BT_FN_VOID_OMPFN_PTR_UINT_UINT_UINT,
11987 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_UINT,
11988 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT,
11989 BT_FN_BOOL_INT, BT_FN_BOOL_INT_BOOL, BT_FN_VOID_UINT_UINT,
11990 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
11991 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
11992 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): New.
11993 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
11994 call_may_clobber_ref_p_1): Handle BUILT_IN_GOMP_BARRIER_CANCEL,
11995 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_LOOP_END_CANCEL,
11996 BUILT_IN_GOMP_SECTIONS_END_CANCEL. Don't handle
11997 BUILT_IN_GOMP_PARALLEL_END.
11998 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_TASKGROUP,
11999 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
12000 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
12001 GF_OMP_FOR_KIND_DISTRIBUTE.
12002 (dump_gimple_omp_target, dump_gimple_omp_teams): New functions.
12003 (dump_gimple_omp_block): Handle GIMPLE_OMP_TASKGROUP.
12004 (dump_gimple_omp_return): Print lhs if it has any.
12005 (dump_gimple_omp_atomic_load, dump_gimple_omp_atomic_store): Handle
12006 gimple_omp_atomic_seq_cst_p.
12007 (pp_gimple_stmt_1): Handle GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET
12008 and GIMPLE_OMP_TEAMS.
12009 * langhooks.c (lhd_omp_mappable_type): New function.
12010 * tree-vectorizer.c (struct simd_array_to_simduid): Fix up comment.
12011 * langhooks.h (struct lang_hooks_for_types): Add omp_mappable_type
12013 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP,
12014 GOVD_ALIGNED and GOVD_MAP_TO_ONLY.
12015 (enum omp_region_type): Add ORT_TEAMS, ORT_TARGET_DATA and ORT_TARGET.
12016 (struct gimplify_omp_ctx): Add combined_loop field.
12017 (gimplify_call_expr, gimplify_modify_expr): Don't call fold_stmt
12018 on stmts inside of target region.
12019 (is_gimple_stmt): Return true for OMP_DISTRIBUTE and OMP_TASKGROUP.
12020 (omp_firstprivatize_variable): Handle GOVD_MAP, GOVD_ALIGNED,
12021 ORT_TARGET and ORT_TARGET_DATA.
12022 (omp_add_variable): Avoid checks on readding var for GOVD_ALIGNED.
12024 (omp_notice_threadprivate_variable): Complain about threadprivate
12025 variables in target region.
12026 (omp_notice_variable): Complain about vars with non-mappable type
12027 in target region. Handle ORT_TEAMS, ORT_TARGET and ORT_TARGET_DATA.
12028 (omp_check_private): Ignore ORT_TARGET* regions.
12029 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1,
12030 gimplify_adjust_omp_clauses): Handle new OpenMP 4.0 clauses.
12031 (find_combined_omp_for): New function.
12032 (gimplify_omp_for): Handle gimplification of combined loops.
12033 (gimplify_omp_workshare): Gimplify also OMP_TARGET, OMP_TARGET_DATA,
12035 (gimplify_omp_target_update): New function.
12036 (gimplify_omp_atomic): Handle OMP_ATOMIC_SEQ_CST.
12037 (gimplify_expr): Handle OMP_DISTRIBUTE, OMP_TARGET, OMP_TARGET_DATA,
12038 OMP_TARGET_UPDATE, OMP_TEAMS, OMP_TASKGROUP.
12039 (gimplify_body): If fndecl has "omp declare target" attribute, add
12040 implicit ORT_TARGET context around it.
12041 * tree.def (OMP_DISTRIBUTE, OMP_TEAMS, OMP_TARGET_DATA, OMP_TARGET,
12042 OMP_TASKGROUP, OMP_TARGET_UPDATE): New tree codes.
12043 * tree-nested.c (convert_nonlocal_reference_stmt,
12044 convert_local_reference_stmt, convert_gimple_call): Handle
12045 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
12046 * omp-builtins.def (BUILT_IN_GOMP_TASK): Use
12047 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR
12048 instead of BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT.
12049 (BUILT_IN_GOMP_TARGET, BUILT_IN_GOMP_TARGET_DATA,
12050 BUILT_IN_GOMP_TARGET_END_DATA, BUILT_IN_GOMP_TARGET_UPDATE,
12051 BUILT_IN_GOMP_TEAMS, BUILT_IN_BARRIER_CANCEL,
12052 BUILT_IN_GOMP_LOOP_END_CANCEL,
12053 BUILT_IN_GOMP_SECTIONS_END_CANCEL, BUILT_IN_OMP_GET_TEAM_NUM,
12054 BUILT_IN_OMP_GET_NUM_TEAMS, BUILT_IN_GOMP_TASKGROUP_START,
12055 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_PARALLEL_LOOP_STATIC,
12056 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC,
12057 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED,
12058 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME, BUILT_IN_GOMP_PARALLEL,
12059 BUILT_IN_GOMP_PARALLEL_SECTIONS, BUILT_IN_GOMP_CANCEL,
12060 BUILT_IN_GOMP_CANCELLATION_POINT): New built-ins.
12061 (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
12062 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
12063 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
12064 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
12065 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
12066 BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Remove.
12067 * tree-inline.c (remap_gimple_stmt, estimate_num_insns):
12068 Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
12069 * gimple.c (gimple_build_omp_taskgroup, gimple_build_omp_target,
12070 gimple_build_omp_teams): New functions.
12071 (walk_gimple_op): Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and
12072 GIMPLE_OMP_TASKGROUP. Walk optional lhs on GIMPLE_OMP_RETURN.
12073 (walk_gimple_stmt, gimple_copy): Handle GIMPLE_OMP_TARGET,
12074 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
12075 * gimple.h (enum gf_mask): GF_OMP_FOR_KIND_DISTRIBUTE,
12076 GF_OMP_FOR_COMBINED, GF_OMP_FOR_COMBINED_INTO,
12077 GF_OMP_TARGET_KIND_MASK, GF_OMP_TARGET_KIND_REGION,
12078 GF_OMP_TARGET_KIND_DATA, GF_OMP_TARGET_KIND_UPDATE,
12079 GF_OMP_ATOMIC_SEQ_CST): New.
12080 (gimple_build_omp_taskgroup, gimple_build_omp_target,
12081 gimple_build_omp_teams): New prototypes.
12082 (gimple_has_substatements): Handle GIMPLE_OMP_TARGET,
12083 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
12084 (gimple_omp_subcode): Use GIMPLE_OMP_TEAMS instead of
12085 GIMPLE_OMP_SINGLE as end of range.
12086 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
12087 gimple_omp_return_lhs_ptr, gimple_omp_atomic_seq_cst_p,
12088 gimple_omp_atomic_set_seq_cst, gimple_omp_for_combined_p,
12089 gimple_omp_for_set_combined_p, gimple_omp_for_combined_into_p,
12090 gimple_omp_for_set_combined_into_p, gimple_omp_target_clauses,
12091 gimple_omp_target_clauses_ptr, gimple_omp_target_set_clauses,
12092 gimple_omp_target_kind, gimple_omp_target_set_kind,
12093 gimple_omp_target_child_fn, gimple_omp_target_child_fn_ptr,
12094 gimple_omp_target_set_child_fn, gimple_omp_target_data_arg,
12095 gimple_omp_target_data_arg_ptr, gimple_omp_target_set_data_arg,
12096 gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr,
12097 gimple_omp_teams_set_clauses): New inlines.
12098 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS
12099 and GIMPLE_OMP_TASKGROUP.
12100 * tree-core.h (enum omp_clause_code): Add new OpenMP 4.0 clause codes.
12101 (enum omp_clause_depend_kind, enum omp_clause_map_kind,
12102 enum omp_clause_proc_bind_kind): New.
12103 (union omp_clause_subcode): Add depend_kind, map_kind and
12104 proc_bind_kind fields.
12105 * tree-cfg.c (make_edges): Handle GIMPLE_OMP_TARGET,
12106 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
12107 * langhooks-def.h (lhd_omp_mappable_type): New prototype.
12108 (LANG_HOOKS_OMP_MAPPABLE_TYPE): Define.
12109 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
12111 2013-10-10 Teresa Johnson <tejohnson@google.com>
12113 * predict.c (tree_estimate_probability): Add new parameter
12114 for estimate_bb_frequencies.
12115 (estimate_bb_frequencies): Add new parameter to force estimation.
12116 (rebuild_frequencies): When max frequency in function is small,
12117 recompute counts from frequencies.
12118 * predict.h (estimate_bb_frequencies): New parameter.
12120 2013-10-10 David Malcolm <dmalcolm@redhat.com>
12122 * ipa-inline.c (ipa_inline): Fix leak of "order" when
12123 optimizations are disabled.
12125 2013-10-10 David Malcolm <dmalcolm@redhat.com>
12127 * coverage.c (coverage_finish): Fix leak of da_file_name.
12129 2013-10-10 Jan Hubicka <jh@suse.cz>
12131 * config/i386/x86-tune.def: Enable X86_TUNE_SSE_TYPELESS_STORES
12132 for generic, enable X86_TUNE_SSE_LOAD0_BY_PXOR for Bulldozer,
12133 Bobcat and generic.
12135 2013-10-10 Jakub Jelinek <jakub@redhat.com>
12137 PR middle-end/58670
12138 * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
12139 if any labels are in FALLTHRU_BB, use a special label emitted
12140 immediately after the asm goto insn rather than label_rtx
12142 (expand_asm_stmt): Adjust caller.
12143 * cfgrtl.c (commit_one_edge_insertion): Force splitting of
12144 edge if the last insn in predecessor is a jump with single successor,
12145 but it isn't simplejump_p.
12147 2013-10-10 Richard Biener <rguenther@suse.de>
12149 PR tree-optimization/58656
12150 * tree-ssa-pre.c (phi_translate): Do not cache failed translations.
12152 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
12154 * gimplify.c: Include expr.h and tm_p.h for targets with special
12155 va-arg padding requirements.
12157 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
12159 * tree-flow.h: Move some prototypes to gimple.h.
12160 (gimple_fold_indirect_ref): Move prototype to gimple-fold.h.
12161 * gimple.h: Relocate some prototypes from tree-flow.h
12162 * builtins.c (std_gimplify_va_arg_expr, build_va_arg_indirect_ref):
12163 Move to gimplify.c.
12164 * gimplify.c (gimple_fold_indirect_ref): Move to gimple-fold.c.
12165 (build_va_arg_indirect_ref): Relocate and make static.
12166 (std_gimplify_va_arg_expr): Relocate here.
12167 * gimple-fold.c (gimple_fold_indirect_ref): Relocate here.
12168 * gimple-fold.h (gimple_fold_indirect_ref): Add prototype.
12170 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12172 * doc/md.texi: Document the mnemonic attribute.
12174 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12177 * gensupport.c (gen_mnemonic_attr): Handle (set (attr x) y) and
12178 (set_attr_alternative x ...) when searching for user defined
12179 mnemonic attribute.
12181 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
12183 * config/aplha/alpha.c: Add gimple-ssa.h to include list.
12185 2013-10-09 Easwaran Raman <eraman@google.com>
12187 * params.def (PARAM_MIN_SIZE_FOR_STACK_SHARING): New param...
12188 * cfgexpand.c (defer_stack_allocation): ...use here
12189 * doc/invoke.texi: Add documentation for min-size-for-stack-sharing.
12191 2013-10-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
12193 * tree-ssa-phiopts.c (rhs_is_fed_for_value_replacement): New function.
12194 (operand_equal_for_value_replacement): New function, extracted from
12195 value_replacement and enhanced to catch more cases.
12196 (value_replacement): Use operand_equal_for_value_replacement.
12198 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
12200 * loop-doloop.c (doloop_modify, doloop_optimize): Use
12201 get_max_loop_iterations.
12203 2013-10-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12205 * config/arm/aarch-common.c (arm_early_load_addr_dep):
12206 Place comment above function.
12208 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
12210 * tree-flow.h: Remove all remaining prototypes, enums and structs that
12211 are not related to tree-cfg.c.
12212 * tree-ssa-address.h: New file. Relocate prototypes.
12213 * tree-ssa-address.c: (struct mem_address): Relocate from tree-flow.h.
12214 (addr_for_mem_ref): New. Combine call to get_address_description and
12215 return addr_for_mem_ref.
12216 * expr.c (expand_expr_real_1): Use new addr_for_mem_ref routine.
12217 * tree-ssa-live.h: Adjust prototypes.
12218 * passes.c: Include tree-ssa-live.h.
12219 * gimple-pretty-print.h (gimple_dump_bb): Add prototype.
12220 * graphite.c (graphite_transform_loops): Make static.
12221 (graphite_transforms, gate_graphite_transforms, pass_data_graphite,
12222 make_pass_graphite, pass_data_graphite_transforms,
12223 make_pass_graphite_transforms): Relocate here from tree-ssa-loop.c.
12224 * ipa-pure-const.c (warn_function_noreturn): Make static.
12225 (execute_warn_function_noreturn, gate_warn_function_noreturn,
12226 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
12227 Relocate from tree-cfg.c
12228 * tree-cfg.c (tree_node_can_be_shared, gimple_empty_block_p): Make
12230 (execute_warn_function_noreturn, gate_warn_function_noreturn,
12231 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
12232 Move to ipa-pure-const.c.
12233 (execute_fixup_cfg, class pass_fixup_cfg, make_pass_fixup_cfg):
12234 Relocate from tree-optimize.c.
12235 * tree-optimize.c (execute_fixup_cfg, class pass_fixup_cfg,
12236 make_pass_fixup_cfg): Move to tree-cfg.c.
12237 * tree-chrec.h: (enum ev_direction): Relocate here from tree-flow.h.
12238 Relocate some prototypes.
12239 * tree-data-ref.h (tree_check_data_deps) Add prototype.
12240 * tree-dump.c (dump_function_to_file): Remove prototype.
12241 Add tree-flow.h to the include file.
12242 * tree-dump.h: Remove prototype.
12243 * tree-parloops.h: New File. Add prototypes.
12244 * tree-parloops.c (gate_tree_parallelize_loops, tree_parallelize_loops,
12245 pass_data_parallelize_loops, make_pass_parallelize_loops): Relocate
12246 from tree-ssa-loop.c.
12247 * tree-predcom.c (run_tree_predictive_commoning,
12248 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom):
12249 Relocate here from tree-ssa-loop.c.
12250 * tree-ssa-dom.c (tree_ssa_dominator_optimize) Don't call
12251 ssa_name_values.release ().
12252 * tree-ssa-threadedge.h: New File. Relocate prototypes here.
12253 (ssa_name_values): Relocate from tree-flow.h.
12254 * tree-ssa.h: Include tree-ssa-threadedge.h and tree-ssa-address.h.
12255 * tree-ssa-loop.c (run_tree_predictive_commoning,
12256 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom,
12257 graphite_transforms, gate_graphite_transforms, pass_data_graphite,
12258 make_pass_graphite, pass_data_graphite_transforms,
12259 make_pass_graphite_transforms, gate_tree_parallelize_loops,
12260 tree_parallelize_loops, pass_data_parallelize_loops,
12261 make_pass_parallelize_loops): Move to other files.
12262 * tree-vectorizer.h (lpeel_tree_duplicate_loop_to_edge_cfg): Prototype
12264 * tree.h: Remove prototypes from tree-address.c.
12266 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
12268 * tree-flow.h (tm_restart_node, gimple_df): Move to gimple-ssa.h.
12269 (struct int_tree_map): Move to tree-hasher.h
12270 (SCALE, LABEL, PERCENT): Move to gimple.h
12271 * tree-flow-inline.h: Delete. Move functions to other files.
12272 (unmodifiable_var_p, ref_contains_array_ref): Unused, so delete.
12273 * gimple-ssa.h (tm_restart_node, gimple_df): Relocate from tree-flow.h.
12274 (gimple_in_ssa_p, gimple_vop): Relocate from tree-flow-inline.h
12275 * gimple.h (imple_stmt_max_uid, set_gimple_stmt_max_uid,
12276 inc_gimple_stmt_max_uid, get_lineno): Relocate from tree-flow-inline.h.
12277 (SCALE, LABEL, PERCENT): Relocate from tree-flow.h
12278 * tree-hasher.h: Don't include tree-flow.h.
12279 (struct int_tree_map): Relocate from tree-flow.h.
12280 * tree-sra.c (contains_view_convert_expr_p): Relocate from
12281 tree-flow-inline.h and make static.
12282 * tree-ssa-alias.h (ranges_overlap_p): Relocate from
12283 tree-flow-inline.h.
12284 * tree-ssa-operands.c (gimple_ssa_operands): Relocate from
12285 tree-flow-inline.h and make static.
12286 * tree.h (is_global_var, may_be_aliased): Relocate from
12287 tree-flow-inline.h.
12288 * Makefile.in (GTFILES): Remove tree-flow.h and add gimple-ssa.h.
12289 * value-prof.c: No longer include tree-flow-inline.h.
12290 * tree-switch-conversion.c: No longer include tree-flow-inline.h.
12292 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
12294 * tree-flow.h: Move some protoypes. Include new tree-ssa-loop.h.
12295 (struct affine_iv, struct tree_niter_desc): Move to tree-ssa-loop.h.
12296 (enum move_pos): Move to tree-ssa-loop-im.h
12297 * cfgloop.h: Move some prototypes.
12298 (gcov_type_to_double_int): relocate from tree-ssa-loop.niter.c.
12299 * tree-flow-inline.h (loop_containing_stmt): Move to tree-ssa-loop.h.
12300 * tree-ssa-loop.h: New File. Include other tree-ssa-loop-*.h files.
12301 (struct affine_iv, struct tree_niter_desc): Relocate from tree-flow.h.
12302 (loop_containing_stmt): Relocate from tree-flow-inline.h.
12303 * tree-ssa-loop-ch.c: (do_while_loop_p): Make static.
12304 * tree-ssa-loop-im.c (for_each_index): Move to tree-ssa-loop.c.
12305 (enum move_pos): Relocate here.
12306 (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): Move to
12308 (execute_sm_if_changed_flag_set): Change get_lsm_tmp_name call.
12309 (tree_ssa_loop_im, gate_tree_ssa_loop_im, pass_data_lim,
12310 make_pass_lim): Relocate here from tree-ssa-loop.c.
12311 * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Move to
12313 (loop_edge_to_cancel, unloop_loops): Make static.
12314 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
12315 make_pass_iv_canon): Relocate from tree-ssa-loop.c.
12316 (tree_complete_unroll, gate_tree_complete_unroll,
12317 pass_data_complete_unroll, make_pass_complete_unroll): Relocate here.
12318 (tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
12319 pass_data_complete_unrolli, make_pass_complete_unrolli): Relocate here.
12320 * tree-ssa-loop-ivopts.c: Remove local prototypes.
12321 (stmt_invariant_in_loop_p): Remove unused function.
12322 * tree-ssa-loop-ivopts.h: New file. Add prototypes.
12323 * tree-ssa-loop-manip.h: New file. Add prototypes.
12324 * tree-ssa-loop-niter.c (record_niter_bound): Move to cfgloop.c.
12325 (gcov_type_to_double_int): Move to cfgloop.h.
12326 (double_int_cmp, bound_index,
12327 estimate_numbers_of_iterations_loop): Make static.
12328 (estimated_loop_iterations): Factor out get_estimated_loop_iterations.
12329 (max_loop_iterations): Factor out get_max_loop_iterations.
12330 (estimated_loop_iterations_int, max_stmt_executions_int): Move to
12332 * tree-ssa-loop-niter.h: New file. Add prototypes.
12333 * tree-ssa-loop-prefetch.c (tree_ssa_loop_prefetch,
12334 gate_tree_ssa_loop_prefetch, pass_data_loop_prefetch,
12335 make_pass_loop_prefetch): Relocate from tree-ssa-loop.c.
12336 * tree-ssa-loop-unswitch.c (tree_ssa_loop_unswitch,
12337 gate_tree_ssa_loop_unswitch, pass_data_tree_unswitch,
12338 make_pass_tree_unswitch): Relocate from tree-ssa-loop.c.
12339 * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im,
12340 pass_data_lim, make_pass_lim): Move to tree-ssa-loop-im.c.
12341 (tree_ssa_loop_unswitch, gate_tree_ssa_loop_unswitch,
12342 pass_data_tree_unswitch, make_pass_tree_unswitch): Move.
12343 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
12344 make_pass_iv_canon, tree_complete_unroll, gate_tree_complete_unroll,
12345 pass_data_complete_unroll, make_pass_complete_unroll,
12346 tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
12347 pass_data_complete_unrolli, make_pass_complete_unrolli): Move to
12348 tree-ssa-loop-ivcanon.c.
12349 (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
12350 pass_data_loop_prefetch, make_pass_loop_prefetch): Move to
12351 tree-ssa-loop-prefetch.c.
12352 (for_each_index, lsm_tmp_name_add, gen_lsm_tmp_name): Relocate from
12353 tree-ssa-loop-im.c.
12354 (get_lsm_tmp_name): Relocate and add suffix parameter.
12355 (tree_num_loop_insns): Relocate from tree-ssa-ivcanon.c.
12356 * tree-scalar-evolution.h (simple_iv): Don't use affive_iv typedef.
12357 * cfgloop.c (record_niter_bound, estimated_loop_iterations_int,
12358 max_stmt_executions_int): Move from tree-ssa-loop-niter.c.
12359 (get_estimated_loop_iterations): Factor out accessor from
12360 estimated_loop_iterations in tree-ssa-loop-niter.c.
12361 (get_max_loop_iterations): Factor out accessor from
12362 _max_loop_iterations in tree-ssa-niter.c.
12363 * loop-unroll.c (decide_unroll_constant_iterations,
12364 decide_unroll_runtime_iterations, decide_peel_simple,
12365 decide_unroll_stupid): Use new get_* accessors.
12367 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
12369 PR tree-optimization/20318
12370 * doc/extend.texi (returns_nonnull): New function attribute.
12371 * fold-const.c (tree_expr_nonzero_warnv_p): Look for returns_nonnull
12373 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Likewise.
12374 (stmt_interesting_for_vrp): Accept all GIMPLE_CALL.
12376 2013-10-09 Eric Botcazou <ebotcazou@adacore.com>
12378 PR middle-end/58570
12379 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Return
12380 false if both components are bitfields.
12382 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
12384 * config/aarch64/arm_neon.h (vclz_s8, vclz_s16, vclz_s32)
12385 (vclzq_s8, vclzq_s16, vclzq_s32, vclz_u8, vclz_u16, vclz_u32)
12386 (vclzq_u8, vclzq_u16, vclzq_u32): Replace ASM with C.
12387 * config/aarch64/aarch64.h
12388 (CLZ_DEFINED_VALUE_AT_ZERO): Macro fixed for clz.
12389 * config/aarch64/aarch64-simd-builtins.def
12390 (VAR1 (UNOP, clz, 0, v4si)): Replaced with iterator.
12392 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
12394 * config/aarch64/arm_neon.h (vadd_f64, vsub_f64): Implementation added.
12396 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
12398 * config/aarch64/arm_neon.h (vdiv_f64): Added.
12400 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
12402 * config/aarch64/arm_neon.h (vneg_f32): Asm replaced with C.
12403 (vneg_f64): New intrinsic.
12404 (vneg_s8): Asm replaced with C.
12405 (vneg_s16): Likewise.
12406 (vneg_s32): Likewise.
12407 (vneg_s64): New intrinsic.
12408 (vnegq_f32): Asm replaced with C.
12409 (vnegq_f64): Likewise.
12410 (vnegq_s8): Likewise.
12411 (vnegq_s16): Likewise.
12412 (vnegq_s32): Likewise.
12413 (vnegq_s64): Likewise.
12415 2013-10-09 Renlin Li <Renlin.Li@arm.com>
12417 * config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.
12419 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12421 * config/s390/s390.c (s390_register_info_stdarg_fpr): Remove
12422 packed stack special handling.
12423 (s390_frame_info, s390_emit_prologue, s390_emit_epilogue): Switch
12424 back to fixed stack slots for FPRs saved due to stdarg.
12426 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12428 * config/s390/s390.c (s390_frame_info): Restructure function.
12430 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12432 * config/s390/s390.c (struct s390_frame_layout): New field
12434 (cfun_save_arg_fprs_p, cfun_gpr_save_slot): New macros.
12435 (s390_reg_clobbered_rtx, s390_regs_ever_clobbered): Change type of
12436 regs_ever_clobbered to char*.
12437 (s390_regs_ever_clobbered): Check crtl->saves_all_registers instead
12438 of cfun->has_nonlocal_label. Ignore frame related restore INSNs.
12439 (s390_register_info): Enable FPR save slots. Move/Copy some
12440 functionality into ...
12441 (s390_register_info_gprtofpr, s390_register_info_stdarg_fpr)
12442 (s390_register_info_stdarg_gpr, s390_optimize_register_info): New
12444 (s390_frame_info): Do gpr slot allocation here now. stdarg does
12445 not imply a stack frame.
12446 (s390_init_frame_layout): Remove variable clobbered_regs.
12447 (s390_update_register_info): Remove function.
12448 (s390_hard_regno_rename_ok): Call-saved regs without a save slot
12449 cannot be used for register renaming.
12450 (s390_hard_regno_scratch_ok): New function.
12451 (TARGET_HARD_REGNO_SCRATCH_OK): Define target hook.
12452 (s390_initial_elimination_offset): Change offset calculation of
12453 the return address pointer.
12454 (save_gprs): Deal with only r6 being saved from the call-saved regs.
12455 (restore_gprs): Set frame related flag.
12456 (s390_save_gprs_to_fprs, s390_restore_gprs_from_fprs): New functions.
12457 (s390_emit_prologue): Call s390_register_info instead of
12458 s390_update_frame_layout. Call s390_save_gprs_to_fprs.
12459 (s390_emit_epilogue): Call s390_restore_gprs_from_fprs.
12460 (s390_optimize_prologue): Call s390_optimize_register_info.
12461 Try to remove also FPR slot save/restore INSNs. Remove frame
12462 related flags from restore INSNs.
12464 2013-10-08 DJ Delorie <dj@redhat.com>
12466 * config/rl78/rl78-expand.md (movqi): use operands[] not operandN.
12469 * config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
12470 avoid conflict with the MI use of %c.
12471 * config/rl78/rl78-real.md: change %c to %C throughout.
12472 * config/rl78/rl78-virt.md: Likewise.
12474 2013-10-08 Jan Hubicka <jh@suse.cz>
12476 * config/i386/i386.c (ix86_option_override_internal): Switch
12477 to SSE math for -ffast-math when target ISA supports SSE2.
12479 2013-10-08 Andrew MacLeod <amacleod@redhat.com>
12481 * tree-flow.h: Remove some prototypes.
12482 * tree.h: Remove some protypes, add a couple.
12483 * tree.c (using_eh_for_cleanups_flag, using_eh_for_cleanups,
12484 using_eh_for_cleanups_p): Add interface routines for front ends.
12485 * tree-eh.h: New file. Add protoptyes.
12486 * tree-eh.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Delete.
12487 (add_stmt_to_eh_lp_fn): Make static.
12488 (lower_try_finally): Use new using_eh_for_cleanups_p.
12489 * emit-rtl.c: Include tree-eh.h.
12490 * gimple.h: Include tree-eh.h.
12492 2013-10-08 Marc Glisse <marc.glisse@inria.fr>
12494 PR tree-optimization/58480
12495 * tree-vrp.c (infer_nonnull_range): New function.
12496 (infer_value_range): Call infer_nonnull_range.
12498 2013-10-08 Dehao Chen <dehao@google.com>
12500 PR tree-optimization/58619
12501 * tree-inline.c (copy_phis_for_bb): Combine location data
12504 2013-10-08 Zhenqiang Chen <zhenqiang.chen@linaro.org>
12507 * config/arm/arm.c (arm_emit_ldrd_pop): Attach
12508 RTX_FRAME_RELATED_P on INSN.
12510 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12512 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const_le): New.
12513 (altivec_expand_vec_perm_const): Call it.
12515 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12517 * config/rs6000/vector.md (mov<mode>): Emit permuted move
12518 sequences for LE VSX loads and stores at expand time.
12519 * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_move): New
12521 * config/rs6000/rs6000.c (rs6000_const_vec): New.
12522 (rs6000_gen_le_vsx_permute): New.
12523 (rs6000_gen_le_vsx_load): New.
12524 (rs6000_gen_le_vsx_store): New.
12525 (rs6000_gen_le_vsx_move): New.
12526 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): New.
12527 (*vsx_le_perm_load_v4si): New.
12528 (*vsx_le_perm_load_v8hi): New.
12529 (*vsx_le_perm_load_v16qi): New.
12530 (*vsx_le_perm_store_v2di): New.
12531 (*vsx_le_perm_store_v4si): New.
12532 (*vsx_le_perm_store_v8hi): New.
12533 (*vsx_le_perm_store_v16qi): New.
12534 (*vsx_xxpermdi2_le_<mode>): New.
12535 (*vsx_xxpermdi4_le_<mode>): New.
12536 (*vsx_xxpermdi8_le_V8HI): New.
12537 (*vsx_xxpermdi16_le_V16QI): New.
12538 (*vsx_lxvd2x2_le_<mode>): New.
12539 (*vsx_lxvd2x4_le_<mode>): New.
12540 (*vsx_lxvd2x8_le_V8HI): New.
12541 (*vsx_lxvd2x16_le_V16QI): New.
12542 (*vsx_stxvd2x2_le_<mode>): New.
12543 (*vsx_stxvd2x4_le_<mode>): New.
12544 (*vsx_stxvd2x8_le_V8HI): New.
12545 (*vsx_stxvd2x16_le_V16QI): New.
12547 2013-10-07 Renlin Li <Renlin.Li@arm.com>
12549 * config/arm/arm-cores.def (cortex-a53): Use cortex tuning.
12551 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12553 * config/s390/s390.c (s390_register_info): Make the call-saved FPR
12554 loop to work also for 31bit ABI.
12555 Save the stack pointer for frame_size > 0.
12557 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12559 * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
12560 ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
12561 constraint letters from expanders.
12562 ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
12563 retry count to general_operand.
12564 ("tabort"): Give operand 0 a mode.
12565 ("tabort_1"): Add mode and constraint letter for operand 0.
12566 * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
12568 2013-10-04 Jeff Law <law@redhat.com>
12570 * tree-ssa-threadedge.c: Fix some trailing whitespace problems.
12572 * tree-ssa-threadedge.c (thread_through_normal_block): Broken
12574 (thread_across_edge): Here. Call it.
12576 2013-10-04 Cary Coutant <ccoutant@google.com>
12578 * dwarf2out.c (dw_sra_loc_expr): Release addr_table entries when
12579 discarding a location list expression (or a piece of one).
12581 2013-10-03 Jan Hubicka <jh@suse.cz>
12583 * config/i386/i386.c (ix86_issue_rate): Pentium4, Nocona has issue
12584 rate of 2. Core2, Corei7 and Haswell has issue rate of 4.
12585 (ix86_adjust_cost): Remove Atom case; fix core2/corei7/Haswell case.
12587 2013-10-03 Jan Hubicka <jh@suse.cz>
12589 * config/i386/i386.c (ix86_option_override_internal): Do not enable
12590 accumulate-outgoing-args when producing unwind info.
12592 2013-10-03 Wei Mi <wmi@google.com>
12594 * lra-constraints.c (insert_move_for_subreg): New function
12595 extracted from simplify_operand_subreg.
12596 (simplify_operand_subreg): Add reload for paradoxical subreg.
12598 2013-10-03 Rong Xu <xur@google.com>
12600 * ipa-inline-analysis.c (find_foldable_builtin_expect): Find
12601 the candidate of builtin_expect such that we should fix the
12602 size/time estimation.
12603 (estimate_function_body_sizes): Do the acutally size/time fix-up
12604 for builtin_expect.
12606 2013-10-03 Rong Xu <xur@google.com>
12608 * predict.c (tree_predict_by_opcode): Get the probability
12609 for builtin_expect from param builtin_expect_probability.
12610 * params.def (BUILTIN_EXPECT_PROBABILITY): New parameter.
12611 * predict.def (PRED_BUILTIN_EXPECT_RELAXED): Fix comments.
12612 * doc/invoke.texi: Add documentation for builtin-expect-probability.
12614 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
12617 * common.opt (fcheck-new): Moved from c.opt. Make it 'Common'.
12618 * calls.c (alloca_call_p): Use get_callee_fndecl.
12619 * fold-const.c (tree_expr_nonzero_warnv_p): Handle operator new.
12620 * tree-vrp.c (gimple_stmt_nonzero_warnv_p, stmt_interesting_for_vrp):
12622 (vrp_visit_stmt): Remove duplicated code.
12624 2013-10-03 Michael Meissner <meissner@linux.vnet.ibm.com>
12626 * config/rs6000/rs6000-builtin.def (XSRDPIM): Use floatdf2,
12627 ceildf2, btruncdf2, instead of vsx_* name.
12629 * config/rs6000/vsx.md (vsx_add<mode>3): Change arithmetic
12630 iterators to only do V2DF and V4SF here. Move the DF code to
12631 rs6000.md where it is combined with SF mode. Replace <VSv> with
12632 just 'v' since only vector operations are handled with these insns
12633 after moving the DF support to rs6000.md.
12634 (vsx_sub<mode>3): Likewise.
12635 (vsx_mul<mode>3): Likewise.
12636 (vsx_div<mode>3): Likewise.
12637 (vsx_fre<mode>2): Likewise.
12638 (vsx_neg<mode>2): Likewise.
12639 (vsx_abs<mode>2): Likewise.
12640 (vsx_nabs<mode>2): Likewise.
12641 (vsx_smax<mode>3): Likewise.
12642 (vsx_smin<mode>3): Likewise.
12643 (vsx_sqrt<mode>2): Likewise.
12644 (vsx_rsqrte<mode>2): Likewise.
12645 (vsx_fms<mode>4): Likewise.
12646 (vsx_nfma<mode>4): Likewise.
12647 (vsx_copysign<mode>3): Likewise.
12648 (vsx_btrunc<mode>2): Likewise.
12649 (vsx_floor<mode>2): Likewise.
12650 (vsx_ceil<mode>2): Likewise.
12651 (vsx_smaxsf3): Delete scalar ops that were moved to rs6000.md.
12652 (vsx_sminsf3): Likewise.
12653 (vsx_fmadf4): Likewise.
12654 (vsx_fmsdf4): Likewise.
12655 (vsx_nfmadf4): Likewise.
12656 (vsx_nfmsdf4): Likewise.
12657 (vsx_cmpdf_internal1): Likewise.
12659 * config/rs6000/rs6000.h (TARGET_SF_SPE): Define macros to make it
12660 simpler to select whether a target has SPE or traditional floating
12661 point support in iterators.
12662 (TARGET_DF_SPE): Likewise.
12663 (TARGET_SF_FPR): Likewise.
12664 (TARGET_DF_FPR): Likewise.
12665 (TARGET_SF_INSN): Macros to say whether floating point support
12666 exists for a given operation for expanders.
12667 (TARGET_DF_INSN): Likewise.
12669 * config/rs6000/rs6000.c (Ftrad): New mode attributes to allow
12670 combining of SF/DF mode operations, using both traditional and VSX
12678 (abs<mode>2): Combine SF/DF modes using traditional floating point
12679 instructions. Add support for using the upper DF registers with
12680 VSX support, and SF registers with power8-vector support. Update
12681 expanders for operations supported by both the SPE and traditional
12682 floating point units.
12683 (abs<mode>2_fpr): Likewise.
12684 (nabs<mode>2): Likewise.
12685 (nabs<mode>2_fpr): Likewise.
12686 (neg<mode>2): Likewise.
12687 (neg<mode>2_fpr): Likewise.
12688 (add<mode>3): Likewise.
12689 (add<mode>3_fpr): Likewise.
12690 (sub<mode>3): Likewise.
12691 (sub<mode>3_fpr): Likewise.
12692 (mul<mode>3): Likewise.
12693 (mul<mode>3_fpr): Likewise.
12694 (div<mode>3): Likewise.
12695 (div<mode>3_fpr): Likewise.
12696 (sqrt<mode>3): Likewise.
12697 (sqrt<mode>3_fpr): Likewise.
12698 (fre<Fs>): Likewise.
12699 (rsqrt<mode>2): Likewise.
12700 (cmp<mode>_fpr): Likewise.
12701 (smax<mode>3): Likewise.
12702 (smin<mode>3): Likewise.
12703 (smax<mode>3_vsx): Likewise.
12704 (smin<mode>3_vsx): Likewise.
12705 (negsf2): Delete SF operations that are merged with DF.
12706 (abssf2): Likewise.
12707 (addsf3): Likewise.
12708 (subsf3): Likewise.
12709 (mulsf3): Likewise.
12710 (divsf3): Likewise.
12712 (fmasf4_fpr): Likewise.
12713 (fmssf4_fpr): Likewise.
12714 (nfmasf4_fpr): Likewise.
12715 (nfmssf4_fpr): Likewise.
12716 (sqrtsf2): Likewise.
12717 (rsqrtsf_internal1): Likewise.
12718 (smaxsf3): Likewise.
12719 (sminsf3): Likewise.
12720 (cmpsf_internal1): Likewise.
12721 (copysign<mode>3_fcpsgn): Add VSX/power8-vector support.
12722 (negdf2): Delete DF operations that are merged with SF.
12723 (absdf2): Likewise.
12724 (nabsdf2): Likewise.
12725 (adddf3): Likewise.
12726 (subdf3): Likewise.
12727 (muldf3): Likewise.
12728 (divdf3): Likewise.
12730 (rsqrtdf_internal1): Likewise.
12731 (fmadf4_fpr): Likewise.
12732 (fmsdf4_fpr): Likewise.
12733 (nfmadf4_fpr): Likewise.
12734 (nfmsdf4_fpr): Likewise.
12735 (sqrtdf2): Likewise.
12736 (smaxdf3): Likewise.
12737 (smindf3): Likewise.
12738 (cmpdf_internal1): Likewise.
12739 (lrint<mode>di2): Use TARGET_<MODE>_FPR macro.
12740 (btrunc<mode>2): Delete separate expander, and combine with the
12741 insn and add VSX instruction support. Use TARGET_<MODE>_FPR.
12742 (btrunc<mode>2_fpr): Likewise.
12743 (ceil<mode>2): Likewise.
12744 (ceil<mode>2_fpr): Likewise.
12745 (floor<mode>2): Likewise.
12746 (floor<mode>2_fpr): Likewise.
12747 (fma<mode>4_fpr): Combine SF and DF fused multiply/add support.
12748 Add support for using the upper registers with VSX and
12749 power8-vector. Move insns to be closer to the define_expands. On
12750 VSX systems, prefer the traditional form of FMA over the VSX
12751 version, since the traditional form allows the target not to
12752 overlap with the inputs.
12753 (fms<mode>4_fpr): Likewise.
12754 (nfma<mode>4_fpr): Likewise.
12755 (nfms<mode>4_fpr): Likewise.
12757 2013-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12758 Richard Earnshaw <richard.earnshaw@arm.com>
12760 * config/arm/aarch-common-protos.h (struct alu_cost_table): New.
12761 (struct mult_cost_table): Likewise.
12762 (struct mem_cost_table): Likewise.
12763 (struct fp_cost_table): Likewise.
12764 (struct vector_cost_table): Likewise.
12765 (cpu_cost_table): Likewise.
12766 * config/arm/arm.opt (mold-rts-costs): New option.
12767 (mnew-generic-costs): Likewise.
12768 * config/arm/arm.c (generic_extra_costs): New table.
12769 (cortexa15_extra_costs): Likewise.
12770 (arm_slowmul_tune): Use NULL as new costs.
12771 (arm_fastmul_tune): Likewise.
12772 (arm_strongarm_tune): Likewise.
12773 (arm_xscale_tune): Likewise.
12774 (arm_9e_tune): Likewise.
12775 (arm_v6t2_tune): Likewise.
12776 (arm_cortex_a5_tune): Likewise.
12777 (arm_cortex_a9_tune): Likewise.
12778 (arm_v6m_tune): Likewise.
12779 (arm_fa726te_tune): Likewise.
12780 (arm_cortex_a15_tune): Use cortex15_extra_costs.
12781 (arm_cortex_tune): Use generict_extra_costs.
12782 (shifter_op_p): New function.
12783 (arm_unspec_cost): Likewise.
12784 (LIBCALL_COST): Define.
12785 (arm_new_rtx_costs): New function.
12786 (arm_rtx_costs): Use arm_new_rtx_costs when core-specific
12787 table is available. Use old costs otherwise unless mnew-generic-costs
12789 * config/arm/arm-protos.h (tune_params): Add insn_extra_cost field.
12790 (cpu_cost_table): Declare.
12792 2013-10-03 Marcus Shawcroft <marcus.shawcroft@arm.com>
12795 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>)
12796 (*subs_mul_imm_<mode>)
12797 (*add_<shift>_<mode>, *add_<shift>_si_uxtw,*add_mul_imm_<mode>)
12798 (*sub_<shift>_<mode>)
12799 (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
12800 Remove k constraint.
12802 2013-10-03 Ian Bolton <ian.bolton@arm.com>
12804 * config/aarch64/aarch64.c (aarch64_secondary_reload): Remove legacy
12806 * config/aarch64/aarch64.md (reload_sp_immediate): Likewise.
12808 2013-10-02 Teresa Johnson <tejohnson@google.com>
12810 * predict.c (probably_never_executed): New function.
12811 (probably_never_executed_bb_p): Invoke probably_never_executed.
12812 (probably_never_executed_edge_p): Ditto.
12813 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
12814 Treat profile insanities conservatively.
12816 2013-10-02 John David Anglin <danglin@gcc.gnu.org>
12818 * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
12820 2013-10-02 Vladimir Makarov <vmakarov@redhat.com>
12822 * lra-constraints.c (process_alt_operand): Calculate scratch_p and
12823 use it. Use smaller increase for scratch. Don't increase reject
12824 for early clobber scratch.
12825 * lra-eliminations.c (eliminate_regs_in_insn): Remove all insns
12826 setting eliminated regs except setting fp from hfp.
12827 (lra_eliminate): Check lra_insn_recog_data on NULL.
12829 2013-10-02 Michael Meissner <meissner@linux.vnet.ibm.com>
12832 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Turn off
12833 setting -mvsx-timode by default until the underlying problem is fixed.
12834 (RS6000_CPU, power7 defaults): Likewise.
12836 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
12838 * config/x-linux (host-linux.o): Remove header dependencies.
12839 Use $(COMPILE) and $(POSTCOMPILE).
12840 * config/t-linux-android (linux-android.o): Ditto.
12842 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
12844 * Makefile.in (expmed.o-warn): Remove.
12846 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
12848 * graphite-scop-detection.c: Include tree-ssa-propagate,h.
12849 * graphite-sese-to-poly.c: Include tree-ssa-propagate.h.
12851 2013-10-02 Teresa Johnson <tejohnson@google.com>
12853 * dojump.c (do_jump_1): Divide probability between
12854 both conditions of a TRUTH_ANDIF_EXPR/TRUTH_ORIF_EXPR.
12856 2013-10-02 Tom Tromey <tromey@redhat.com>
12858 * Makefile.in (DRIVER_DEFINES): Use $(if), not $(and).
12860 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
12862 * tree-flow.h: Remove some prototypes.
12863 * tree-ssa-dce.c (mark_virtual_operand_for_renaming,
12864 mark_virtual_phi_result_for_renaming): Move to tree-into-ssa.c.
12865 * tree-into-ssa.c (mark_virtual_operand_for_renaming,
12866 mark_virtual_phi_result_for_renaming): Relocate here.
12867 * tree-into-ssa.h: Add prototypes.
12868 * tree-ssa-phiopt.c: (tree_ssa_phiopt_worker) Use
12869 single_pred_before_succ_order.
12870 (blocks_in_phiopt_order): Rename and move to cfganal.c.
12871 (nonfreeing_call_p) Move to gimple.c.
12872 * cfganal.c (single_pred_before_succ_order): Move and renamed from
12874 * basic-block.h (single_pred_before_succ_order): Add prototype.
12875 * gimple.c (nonfreeing_call_p): Relocate here.
12876 * gimple.h: Add prototype.
12877 * tree-ssa-ifcombine.c: Include tree-ssa-phiopt.h.
12878 * tree-ssa-dom.h: New file. Relocate prototypes here.
12879 * tree-ssa.h: Include tree-ssa-dom.h.
12881 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
12883 * config/i386/x-i386 (driver-i386.o): Remove header dependencies.
12884 Use $(COMPILE) and $(POSTCOMPILE).
12886 * config/alpha/x-alpha (driver-alpha.o): Ditto.
12888 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
12890 * tree-flow.h: Remove some prototypes.
12891 * gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
12892 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
12893 * tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
12894 propagate_tree_value*): Move from here to...
12895 * tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
12896 propagate_tree_value*): Relocate here.
12897 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
12898 * gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
12899 * gimple-fold.c: Remove gimple-fold.h from include list.
12900 * tree-vrp.c: Remove gimple-fold.h from include list.
12901 * tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
12902 * tree-ssa-ccp.c: Remove gimple-fold.h from include list.
12903 * tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
12904 * tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
12905 * sese.c: Add tree-ssa-propagate.h to include list.
12907 2013-10-02 Richard Biener <rguenther@suse.de>
12909 * tree-loop-distribution.c: Include tree-vectorizer.h for
12910 find_loop_location.
12911 (enum partition_kind): Remove PKIND_REDUCTION.
12912 (struct partition_s): Remove has_writes member, add reduction_p member.
12913 (partition_alloc): Adjust.
12914 (partition_builtin_p): Likewise.
12915 (partition_has_writes): Remove.
12916 (partition_reduction_p): New function.
12917 (partition_merge_into): Likewise.
12918 (generate_code_for_partition): Commonize builtin partition
12920 (rdg_cannot_recompute_vertex_p): Remove.
12921 (already_processed_vertex_p): Likewise.
12922 (rdg_flag_vertex): Do not set has_writes.
12923 (classify_partition): Adjust.
12924 (rdg_build_partitions): Do not set has_writes, treat all
12925 partitions as useful.
12926 (distribute_loop): Record number of library calls generated. Adjust.
12927 (tree_loop_distribution): Report number of loops and library
12928 calls generated as opt-info.
12930 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
12932 * tree-flow.h: Include new .h files. Move prototypes.
12933 * tree-cfgcleanup.h: New file. Add prototypes from tree-flow.h.
12934 * tree-dfa.h: New File. Add prototypes from tree-flow.h.
12935 (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h.
12936 * tree-pretty-print.h: Add prototypes from tree-flow.h.
12937 * tree-into-ssa.h: New File. Add prototypes from tree-flow.h.
12938 ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c.
12939 * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file.
12940 * tree.h (get_ref_base_and_extent): Move prototype out.
12941 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to
12943 * gimple-low.h: New File. Add prototypes from tree-flow.h.
12944 * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to...
12945 * tree.c (try_catch_may_fallthru, block_may_fallthru): Here.
12946 * tree-scalar-evolution.c: Include tree.h.
12947 * sese.c: Include tree.h.
12948 * dumpfile.c: Move gimple-pretty-print.h include after tree.h.
12949 * dwarf2out.c: Include tree-dfa.h.
12950 * tree-chrec.c: Include tree.h.
12951 * tree-data-ref.c: Include tree.h.
12953 2013-10-02 Yufeng Zhang <yufeng.zhang@arm.com>
12955 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref):
12958 2013-10-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12960 * config/t-sol2 (sol2-c.o): Remove header dependencies.
12961 Use $(COMPILE) and $(POSTCOMPILE).
12962 (sol2-cxx.o): Likewise.
12963 (sol2-stubs.o): Likewise.
12964 (sol2.o): Likewise.
12965 * config/x-solaris (host-solaris.o): Likewise.
12967 * config/sparc/t-sparc (sparc.o): Remove.
12968 (sparc-c.o): Remove header dependencies.
12969 Use $(COMPILE) and $(POSTCOMPILE).
12970 * config/sparc/x-sparc: Likewise.
12972 2013-10-02 Joern Rennecke <joern.rennecke@embecosm.com>
12974 * config/arc/arc-opts.h: Add 2013 to Copyright years.
12975 * config/arc/arc700.md: Likewise.
12976 * config/arc/arc-modes.def: Likewise.
12977 * config/arc/arc-simd.h: Likewise.
12978 * config/arc/t-arc-uClibc: Likewise.
12979 * config/arc/t-arc-newlib: Likewise.
12981 2013-10-02 Renlin Li <renlin.li@arm.com>
12983 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
12985 (aarch64_expand_epilogue): Likewise.
12987 2013-10-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12988 Yufeng Zhang <yufeng.zhang@arm.com>
12990 * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
12992 (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
12993 'base_in' represent a conversion and legal_cast_p_1 holds; set
12994 'base_in' with the returned value from get_unwidened.
12996 2013-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12998 * config/arm/arm.c (arm_legitimize_reload_address): Explain why
12999 plus_constant is not used.
13001 2013-10-01 Wei Mi <wmi@google.com>
13003 * config/i386/x86-tune.def (DEF_TUNE): Remove m_CORE_ALL.
13004 * config/i386/i386.md: Add define_peephole2 to
13005 break partial reg stall for cvtss2sd/cvtsd2ss.
13007 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
13009 * config/arc/arc.c (pass_arc_ifcvt::clone):
13010 Update for ctxt_ -> m_ctxt change.
13012 2013-10-01 Jeff Law <law@redhat.com>
13014 * tree-ssa-threadupdate.c (struct redirection_data): Delete
13015 outgoing_edge and intermediate_edge fields. Instead store the path.
13016 (redirection_data::hash): Hash on the last edge's destination index.
13017 (redirection_data::equal): Check the entire thread path.
13018 (lookup_redirectio_data): Corresponding changes.
13019 (create_edge_and_update_destination_phis): Likewise.
13020 (thread_single_edge): Likewise.
13022 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
13023 Diego Novillo <dnovillo@google.com>
13025 * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
13026 (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
13027 (vld32wh_insn, vld32wl_insn): Delete commented-out old
13028 versions of these patterns.
13030 * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
13031 (__builtin_arc_aligned): Likewise.
13033 * config/arc/arc.md: Expand adc_0 comment stating the intended
13034 purpose and why it isn't ready.
13035 Replace commented out call_value_via_label_mixed with a
13036 plain comment about bl_s.
13038 * config/arc/arc.c (stdio.h): Don't include directly.
13039 (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
13040 Remove if (1) condition.
13041 (arc_encode_section_info): Fix comment.
13043 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
13045 * config/arc/arc.c (arc_conditional_register_usage):
13046 Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
13047 Also set reg_alloc_order for DMA config regs.
13049 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
13050 Jeremy Bennett <jeremy.bennett@embecosm.com>
13052 * doc/install.texi (--with-cpu): Mention ARC.
13053 (arc-*-elf32): New paragraph.
13054 (arc-linux-uclibc): Likewise.
13055 * doc/md.texi (Machine Constraints): Add ARC part.
13056 * doc/invoke.texi: (menu): Add ARC Options.
13057 (Machine Dependent Options) <ARC Options>: Add synopsis.
13058 (node ARC Options): Add.
13059 * doc/extend.texi (long_call / short_call attribute): Add ARC.
13060 (ARC Built-in Functions): New section defining
13061 generic ARC built-in functions.
13062 (ARC SIMD Built-in Functions): New section defining SIMD specific
13063 built-in functions.
13064 (Declaring Attributes of Functions): Extended
13065 description of short_call and long_call attributes for ARC and
13066 added index entries.
13068 2013-10-01 Saurabh Verma <saurabh.verma@codito.com>
13069 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
13070 Joern Rennecke <joern.rennecke@embecosm.com>
13071 Muhammad Khurram Riaz <khurram.riaz@arc.com>
13072 Brendan Kehoe <brendan@zen.org>
13073 Michael Eager <eager@eagercon.com>
13074 Simon Cook <simon.cook@embecosm.com>
13075 Jeremy Bennett <jeremy.bennett@embecosm.com>
13077 * config/arc, common/config/arc: New directories.
13079 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
13080 Brendan Kehoe <brendan@zen.org>
13081 Simon Cook <simon.cook@embecosm.com>
13083 * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
13085 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
13087 * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
13088 * tree-ssa-coalesce.h: New. Move prototype to here.
13089 * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
13090 * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
13091 (gimple_can_coalesce_p): Move to...
13092 * gimple.c (gimple_can_coalesce_p): Here.
13094 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
13096 * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
13097 (dump_decl_set): Move to gimple.c.
13098 * gimple.h: Don't include tree-ssa-operands.h.
13099 (dump_decl_set): Add prototype.
13100 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
13101 Move to gimple-ssa.h.
13102 (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
13103 gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
13104 gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
13105 gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
13106 * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
13108 (dump_decl_set): Relocate here.
13109 * gimple-ssa.h: New file.
13110 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
13111 Relocate from gimple.h.
13112 * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
13113 * tree-ssa-operands.c (swap_ssa_operands): Rename from
13114 swap_tree_operands and remove non-ssa path.
13115 (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
13116 * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
13118 * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
13119 vect_is_simple_reduction_1): Use swap_ssa_operands.
13120 * tree-flow.h: Move various prototypes to tree-phinodes.h.
13121 (enum need_phi_state): Move to tree-into-ssa.c.
13122 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
13123 BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
13124 (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
13125 * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
13126 link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
13127 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
13128 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
13129 num_imm_uses): Move to ssa-iterators.h.
13130 (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
13131 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
13133 (op_iter_done, op_iter_next_def, op_iter_next_tree,
13134 clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
13135 op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
13136 single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
13137 num_ssa_operands, delink_stmt_imm_use, single_phi_def,
13138 op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
13139 end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
13140 first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
13141 end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
13142 (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
13143 gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
13144 gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
13145 phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
13146 (set_phi_nodes): Move to tree-phinodes.h.
13147 * tree-ssa-operands.h (enum ssa_op_iter_type,
13148 struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
13149 ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
13150 (dump_decl_set): Remove prototype.
13151 (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
13152 * tree-phinodes.h: New file. Move some prototypes from tree-flow.h.
13153 (set_phi_nodes): Relocate from tree-flow-inline.h.
13154 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
13156 * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
13157 include list. Temporarily add gimple.h to include list.
13158 * ssa-iterators.h: New file.
13159 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
13160 BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
13161 (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
13162 FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
13163 Relocate from tree-ssa-operands.h.
13164 (delink_imm_use, link_imm_use_to_list, link_imm_use,
13165 set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
13166 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
13167 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
13168 num_imm_uses, get_use_from_ptr, get_def_from_ptr,
13169 phi_arg_index_from_use, op_iter_done, op_iter_next_def,
13170 op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
13171 op_iter_init_use, op_iter_init_def, op_iter_init_tree,
13172 single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
13173 zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
13174 single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
13175 end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
13176 link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
13177 first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
13178 Relocate from tree-flow-inline.h.
13179 * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
13181 2013-10-01 Vidya Praveen <vidyapraveen@arm.com>
13184 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
13185 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
13186 Insert '\t' to output template.
13187 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
13188 (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
13189 gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
13190 (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
13192 2013-10-01 Uros Bizjak <ubizjak@gmail.com>
13194 * doc/install.texi (Host/target specific installation notes for GCC):
13195 Put @anchor before @heading.
13196 * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
13197 Use @email for email addresses.
13199 2013-10-01 Jeff Law <law@redhat.com>
13201 * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
13202 a vec. Only delete the path if we create one without successfully
13203 registering a jump thread.
13204 * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
13206 * tree-ssa-threadupdate.c (threaded_edges): Remove. No longer used
13207 (paths): New vector of jump threading paths.
13208 (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
13209 (THREAD_PATH): New accessor macro for the entire thread path.
13210 (lookup_redirection_data): Get intermediate and final outgoing edge
13211 from the thread path.
13212 (create_edge_and_update_destination_phis): Copy the threading path.
13213 (ssa_fix_duplicate_block_edges): Get edges and block types from the
13214 jump threading path.
13215 (ssa_redirect_edges): Get edges and block types from the jump threading
13216 path. Free the path vector.
13217 (thread_block): Get edges from the jump threading path. Look at the
13218 entire path to see if we thread to a loop exit. If we cancel a jump
13219 thread request, then free the path vector.
13220 (thread_single_edge): Get edges and block types from the jump threading
13221 path. Free the path vector.
13222 (thread_through_loop_header): Get edges and block types from the jump
13223 threading path. Free the path vector.
13224 (mark_threaded_blocks): Iterate over the vector of paths and store
13225 the path on the appropriate edge. Get edges and block types from the
13226 jump threading path.
13227 (mark_threaded_blocks): Get edges and block types from the jump
13228 threading path. Free the path vector.
13229 (thread_through_all_blocks): Use the vector of paths rather than
13230 a vector of 3-edge sets.
13231 (register_jump_thread): Accept pointer to a path vector rather
13232 than the path vector itself. Store the path vector for later use.
13235 2013-10-01 Jakub Jelinek <jakub@redhat.com>
13236 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13239 * config/s390/s390.c (s390_split_branches): Modify check for table
13241 (s390_chunkify_start): Rearrange table jump insn check in order to
13242 deal with compare and branch insns correctly.
13244 2013-10-01 Kugan Vivekanandarajah <kuganv@linaro.org>
13248 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
13249 * config/arm/arm.md (arm_ashldi3_1bit): define_insn into
13250 define_insn_and_split.
13251 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
13252 (shiftsi3_compare): New pattern.
13253 (rrx): New pattern.
13254 * config/arm/unspecs.md (UNSPEC_RRX): New.
13256 2013-10-01 Alan Modra <amodra@gmail.com>
13258 * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
13259 casing inout operands.
13261 2013-10-01 Richard Biener <rguenther@suse.de>
13263 PR tree-optimization/58553
13264 * tree-loop-distribution.c (struct partition_s): Add niter member.
13265 (classify_partition): Populate niter member for the partition
13266 and properly identify whether the relevant store happens before
13267 or after the loop exit.
13268 (generate_memset_builtin): Use niter member from the partition.
13269 (generate_memcpy_builtin): Likewise.
13271 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
13273 * vec.h (vec_prefix, vec): Prefix member names with "m_".
13274 * vec.c (vec_prefix::calculate_allocation): Update accordingly.
13276 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
13278 * basic-block.h (edge_list): Prefix member names with "m_".
13279 * context.h (context): Likewise.
13280 * domwalk.h (dom_walker): Likewise.
13281 * gengtype-state.c (s_expr_writer, state_writer): Likewise.
13282 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
13283 * hash-table.h (hash_table): Likewise.
13284 * machmode.h (bit_field_mode_iterator): Likewise.
13285 * pass_manager.h (pass_list): Likewise.
13286 * tree-into-ssa.c (mark_def_dom_walker): Likewise.
13287 * tree-pass.h (pass_data): Likewise.
13288 * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
13289 * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
13290 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
13291 * asan.c (pass_data_asan): Update accordingly.
13292 * cfganal.c (control_dependences::find_control_dependence): Likewise.
13293 (control_dependences::control_dependences): Likewise.
13294 (control_dependences::~control_dependences): Likewise.
13295 (control_dependences::~control_dependences): Likewise.
13296 (control_dependences::get_edges_dependent_on): Likewise.
13297 * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
13298 (pass_data_remove_cgraph_callee_edges::clone): Likewise.
13299 * context.c (gcc::context::context): Likewise.
13300 * cprop.c (pass_rtl_cprop::clone): Likewise.
13301 * domwalk.c (dom_walker::walk): Likewise.
13302 * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
13303 * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
13304 * mode-switching.c (pass_mode_switching::clone): Likewise.
13305 * passes.c (opt_pass::opt_pass): Likewise.
13306 (pass_manager::pass_manager): Likewise.
13307 * predict.c (pass_strip_predict_hints::clone): Likewise.
13308 * recog.c (pass_data pass_data_peephole2::clone): Likewise.
13309 (pass_split_all_insns::clone): Likewise.
13310 * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
13312 (bit_field_mode_iterator::next_mode): Likewise.
13313 (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
13314 * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
13315 * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
13316 * tree-complex.c (pass_lower_complex::clone): Likewise.
13317 * tree-eh.c (pass_cleanup_eh::clone): Likewise.
13318 * tree-object-size.c (pass_object_sizes::clone): Likewise.
13319 * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
13320 * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
13321 (pass_fold_builtins::clone): Likewise.
13322 * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
13323 * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
13324 * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
13325 (pass_cd_dce::clone): Likewise.
13326 * tree-ssa-dom.c (pass_dominator::clone): Likewise.
13327 (pass_phi_only_cprop::clone): Likewise.
13328 * tree-ssa-dse.c (pass_dse::clone): Likewise.
13329 * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
13330 * tree-ssa-loop.c (pass_lim::clone): Likewise.
13331 * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
13332 * tree-ssa-pre.c (pass_fre::clone): Likewise.
13333 * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
13334 * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
13335 * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
13336 * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
13337 * tree-vrp.c (pass_vrp::clone): Likewise.
13338 * tsan.c (pass_tsan::clone): Likewise.
13340 2013-09-30 Jakub Jelinek <jakub@redhat.com>
13342 PR middle-end/58564
13343 * fold-const.c (tree_unary_nonnegative_warnv_p): Use
13344 INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
13346 PR middle-end/58564
13347 * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
13348 optimization, punt if sign_bit_p looked through any zero extension.
13350 2013-09-30 Teresa Johnson <tejohnson@google.com>
13352 * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
13353 Update redirected out edge count in joiner case.
13354 (ssa_redirect_edges): Common the joiner and non-joiner cases
13355 so that joiner case gets profile updates.
13357 2013-09-30 Richard Biener <rguenther@suse.de>
13359 PR tree-optimization/58554
13360 * tree-loop-distribution.c (classify_partition): Require
13361 unconditionally executed stores for memcpy and memset recognition.
13362 (tree_loop_distribution): Calculate dominance info.
13364 2013-09-30 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
13366 * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
13367 (NO_PROFILE_COUNTERS): Likewise.
13368 (PROFILE_HOOK): Likewise.
13369 (FUNCTION_PROFILER): Likewise.
13370 * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
13372 2013-09-30 Iain Sandoe <iain@codesourcery.com>
13374 * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
13375 calls and defines in TARGET_MACHO conditional.
13376 (load_macho_picbase_di): Likewise.
13377 (reload_macho_picbase): Likewise.
13378 (reload_macho_picbase_si): Likewise.
13379 (reload_macho_picbase_di): Likewise.
13380 (nonlocal_goto_receiver): Likewise.
13382 2013-09-30 Nick Clifton <nickc@redhat.com>
13384 * config/msp430/msp430.c (msp430x_names): New array. Lists MCUs
13385 that use the MSP430X ISA.
13386 (msp430_option_override): Scan -mmcu command line option for any
13387 MCU name that supports the MSP430X ISA.
13388 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
13389 -mmcu options which enable the MSP430X ISA.
13391 2013-09-30 Richard Biener <rguenther@suse.de>
13393 PR middle-end/58532
13394 * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
13395 before looking for setjmp-like calls.
13397 2013-09-29 Iain Sandoe <iain@codesourcery.com>
13400 * config/darwin-protos.h (machopic_get_function_picbase): New.
13401 * config/darwin.c (machopic_get_function_picbase): New.
13402 * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
13403 label for a new func. (load_macho_picbase_di): Likewise.
13404 (reload_macho_picbase): New expand.
13405 (reload_macho_picbase_si): New insn.
13406 (reload_macho_picbase_di): New insn.
13407 (nonlocal_goto_receiver): New define and split.
13408 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
13409 (unspecv enum): Add UNSPECV_NLGR.
13411 2013-09-29 Iain Sandoe <iain@codesourcery.com>
13413 * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
13414 that altivec registers are correctly sized on Darwin.
13416 2013-09-29 Iain Sandoe <iain@codesourcery.com>
13418 * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
13419 darwin-driver.o): Use COMPILE and POSTCOMPILE.
13420 * config/x-darwin (host-darwin.o): Likewise.
13421 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
13422 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
13423 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
13425 2013-09-29 Uros Bizjak <ubizjak@gmail.com>
13427 * doc/invoke.texi: Fix usage of @tie{} command.
13429 2013-09-29 Eric Botcazou <ebotcazou@adacore.com>
13431 * config/sparc/sync.md: Add peephole for consecutive memory barriers.
13433 2013-09-28 Jan Hubicka <jh@suse.cz>
13435 * config/i386/x86-tune.def: Add documentation for each of the options;
13438 2013-09-28 Jan Hubicka <jh@suse.cz>
13440 * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
13442 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
13443 (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
13444 (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
13445 (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
13446 (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
13448 2013-09-28 Richard Sandiford <rdsandiford@googlemail.com>
13450 * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
13451 bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
13452 cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
13453 cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
13454 combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
13455 cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
13456 df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
13457 dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
13458 errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
13459 fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
13460 gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
13461 genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
13462 genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
13463 genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
13464 gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
13465 gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
13466 gimple.h, godump.c, graphite-clast-to-gimple.c,
13467 graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
13468 graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
13469 hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
13470 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
13471 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
13472 ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
13473 loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
13474 lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
13475 mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
13476 pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
13477 predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
13478 profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
13479 regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
13480 reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
13481 sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
13482 statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
13483 system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
13484 tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
13485 tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
13486 tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
13487 tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
13488 tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
13489 tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
13490 tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
13491 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
13492 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
13493 tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
13494 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
13495 tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
13496 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
13497 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
13498 tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
13499 tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
13500 tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
13501 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
13502 tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
13503 tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
13504 varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
13505 whitespace before "(".
13507 2013-09-28 Sandra Loosemore <sandra@codesourcery.com>
13509 * expr.h (extract_bit_field): Remove packedp parameter.
13510 * expmed.c (extract_fixed_bit_field): Remove packedp parameter
13511 from forward declaration.
13512 (store_split_bit_field): Remove packedp arg from calls to
13513 extract_fixed_bit_field.
13514 (extract_bit_field_1): Remove packedp parameter and packedp
13515 argument from recursive calls and calls to extract_fixed_bit_field.
13516 (extract_bit_field): Remove packedp parameter and corresponding
13517 arg to extract_bit_field_1.
13518 (extract_fixed_bit_field): Remove packedp parameter. Remove code
13520 (extract_split_bit_field): Remove packedp arg from call to
13521 extract_fixed_bit_field.
13522 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
13523 (copy_blkmode_from_reg): Likewise.
13524 (copy_blkmode_to_reg): Likewise.
13525 (read_complex_part): Likewise.
13526 (store_field): Likewise.
13527 (expand_expr_real_1): Likewise.
13528 * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
13529 to extract_bit_field.
13530 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
13531 call to extract_bit_field.
13532 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
13533 call to extract_bit_field.
13534 * doc/invoke.texi (Code Gen Options): Remove mention of warnings
13535 and special packedp behavior from -fstrict-volatile-bitfields
13538 2013-09-27 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13540 * lra-eliminations.c (init_elim_table): Guard value_p.
13542 2013-09-27 Michael Meissner <meissner@linux.vnet.ibm.com>
13544 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
13545 DFmode, DImode, and SFmode in the upper VSX registers based on the
13546 -mupper-regs-{df,sf} flags. Fix wu constraint to be ALTIVEC_REGS
13547 if -mpower8-vector. Combine -mvsx-timode handling with the rest
13548 of the VSX register handling.
13550 * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
13551 (f32_sv): Likewise.
13552 (zero_extendsidi2_lfiwzx): Add support for loading into the
13553 Altivec registers with -mpower8-vector. Use wu/wv constraints to
13554 only do VSX memory options on Altivec registers.
13555 (extendsidi2_lfiwax): Likewise.
13556 (extendsfdf2_fpr): Likewise.
13557 (mov<mode>_hardfloat, SF/SD modes): Likewise.
13558 (mov<mode>_hardfloat32, DF/DD modes): Likewise.
13559 (mov<mode>_hardfloat64, DF/DD modes): Likewise.
13560 (movdi_internal64): Likewise.
13562 2013-09-27 Xinliang David Li <davidxl@google.com>
13564 * opts.c (finish_options): Adjust parameters
13565 according to vect cost model.
13566 (common_handle_option): Set dynamic vect cost
13568 targhooks.c (default_add_stmt_cost): Compute stmt cost
13570 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
13571 Use helper function.
13572 * tree-vectorizer.h (unlimited_cost_model): New function.
13573 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
13574 * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
13576 (vect_enhance_data_refs_alignment): Ditto.
13577 * flag-types.h: New enum.
13578 * common/config/i386/i386-common.c (ix86_option_init_struct):
13579 No need to initialize vect_cost_model flag.
13580 * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
13583 2013-09-27 Diego Novillo <dnovillo@google.com>
13585 * gimple.h (enum ssa_mode): Remove.
13587 2013-09-27 Paulo Matos <pmatos@broadcom.com>
13589 * cfgloop.h (number_of_loops): Fix typo in check for null.
13591 2013-09-27 Jakub Jelinek <jakub@redhat.com>
13593 PR middle-end/58551
13594 * tree-cfg.c (move_sese_region_to_fn): Also move loops that
13595 are children of outermost saved_cfun's loop, and set it up to
13596 be moved to dest_cfun's outermost loop. Fix up num_nodes adjustments
13597 if loop != loop0 and SESE region contains bbs that belong to loop0.
13599 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
13601 * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
13602 (binary_scale_code_p, get_base_term, get_index_term): New functions.
13603 (set_address_segment, set_address_base, set_address_index)
13604 (set_address_disp): Accept the argument unconditionally.
13605 (baseness): Remove must_be_base_p and must_be_index_p checks.
13606 (decompose_normal_address): Classify as much as possible in the
13609 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
13611 * cse.c (count_reg_usage): Handle INT_LIST.
13612 * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
13613 * reginfo.c (reg_scan_mark_refs): Likewise.
13614 * reload1.c (eliminate_regs_1): Likewise.
13616 2013-09-27 Iain Sandoe <iain@codesourcery.com>
13618 PR middle-end/58547
13619 * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
13622 2013-09-27 Richard Biener <rguenther@suse.de>
13624 PR tree-optimization/58459
13625 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
13626 restriction not propagating into loops.
13628 2013-09-26 Florian Weimer <fw@deneb.enyo.de>
13630 * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
13631 * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
13632 * doc/tree-ssa.texi (Walking use-def chains): Delete.
13634 2013-09-26 Richard Biener <rguenther@suse.de>
13636 * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
13638 2013-09-26 Richard Biener <rguenther@suse.de>
13640 * alias.h (component_uses_parent_alias_set): Rename to ...
13641 (component_uses_parent_alias_set_from): ... this.
13642 * alias.c (component_uses_parent_alias_set): Rename to ...
13643 (component_uses_parent_alias_set_from): ... this and return
13644 the desired parent.
13645 (reference_alias_ptr_type_1): Use the result from
13646 component_uses_parent_alias_set_from instead of stripping
13647 components one at a time.
13648 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
13650 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
13652 * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
13653 Move prototypes to...
13654 * tree-ssa-ter.h: New File. Move prototypes here.
13655 * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
13656 * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
13657 * tree-outof-ssa.c (ssa_is_replaceable_p): New. Refactor common bits
13658 from is_replaceable_p.
13659 * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
13660 (ter_is_replaceable_p): New. Use new refactored ssa_is_replaceable_p.
13661 (process_replaceable): Use ter_is_replaceable_p.
13662 (find_replaceable_in_bb): Use ter_is_replaceable_p.
13663 * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c. Use
13664 newly refactored ssa_is_replaceable_p.
13665 * cfgexpand.c: Include tree-outof-ssa.h.
13666 * ssaexpand.h: Delete.
13668 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
13670 * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
13671 (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
13673 (create_gimple_tmp): Delete.
13674 (get_expr_type, build_assign, build_type_cast): Move to...
13675 * gimple-builder.c: New File.
13676 (get_expr_type): Relocate from gimple.c.
13677 (build_assign, build_type_cast): Change to only create ssanames.
13678 * gimple.h: Move prototypes to...
13679 * gimple-builder.h: New File. Here.
13680 * tree-ssa.h: And here.
13681 * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
13682 count_uses_and_derefs): Relocate from gimple.c.
13683 (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
13684 * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
13685 * tree-ssa-math-opts (execute_cse_reciprocals): Use
13686 gimple_replace_ssa_lhs.
13687 * asan.c: Include gimple-builder.h.
13688 * Makefile.in: Add gimple-builder.o.
13690 2013-09-26 Richard Biener <rguenther@suse.de>
13692 * tree-ssa-live.c (var_map_base_init): Handle SSA names with
13693 DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
13694 (loe_visit_block): Use gcc_checking_assert.
13695 * tree-ssa-coalesce.c (create_outofssa_var_map): Use
13696 gimple_assign_ssa_name_copy_p.
13697 (gimple_can_coalesce_p): Adjust according to the var_map_base_init
13700 2013-09-26 David Edelsohn <dje.gcc@gmail.com>
13702 * config/rs6000/t-rs6000 (rs6000.o): Remove.
13703 (rs6000-c.o): Use COMPILE and POSTCOMPILE.
13705 2013-09-26 Richard Biener <rguenther@suse.de>
13707 PR tree-optimization/58539
13708 * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
13709 the fact that debug statements are not taking part in loop-closed
13712 2013-09-26 Nick Clifton <nickc@redhat.com>
13714 * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
13715 time warning message.
13716 (msp430_print_operand_raw): Delete unused letter parameter.
13717 (TARGET_PRINT_OPERAND_ADDRESS): Define.
13718 (msp430_print_operand_address): New function.
13719 (msp430_print_operand): Move address printing code from here to
13721 * config/msp430/msp430.md (movsipsi2): Add comment in generated
13723 (zero_extendpsisi2): Likewise.
13724 (extendpsisi2): New pattern.
13725 (andneghi3): New pattern.
13727 2013-09-26 Yvan Roux <yvan.roux@linaro.org>
13729 * config/aarch64/aarch64.opt (mlra): New option.
13730 * config/aarch64/aarch64.c (aarch64_lra_p): New function.
13731 (TARGET_LRA_P): Define.
13733 2013-09-26 Eric Botcazou <ebotcazou@adacore.com>
13735 * expr.c (expand_assignment): Remove obsolete comment.
13737 2013-09-25 Jeff Law <law@redhat.com>
13739 * tree-flow.h (thread_through_all_blocks): Prototype moved into
13740 tree-ssa-threadupdate.h.
13741 (register_jump_thread): Similarly.
13742 * tree-ssa-threadupdate.h: New header file.
13743 * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
13744 * tree-vrp.c: Likewise.
13745 * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
13746 (thread_around_empty_blocks): Change type of path vector argument to
13747 an edge,type pair from just an edge. Initialize both elements when
13748 appending to a jump threading path. Tweak references to elements
13750 (thread_across_edge): Similarly. Release memory for the elements
13752 * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
13753 (dump_jump_thread_path): New function broken out from
13754 register_jump_thread.
13755 (register_jump_thread): Use dump_jump_thread_path. Change type of
13756 path vector entries. Search the path for NULL edges and dump
13757 the path if one is found. Tweak the conversion of path to 3-edge
13758 form to use the block copy type information embedded in the path.
13760 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
13762 * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
13764 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
13765 Vladimir Makarov <vmakarov@redhat.com>
13767 * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
13768 from the least significant bit.
13769 (strip_address_mutations): Add bitfield operations handling.
13770 (must_be_index_p): Add shifting and rotate operations handling.
13771 (set_address_base): Use must_be_base_p predicate.
13772 (set_address_index): Use must_be_index_p predicate.
13774 2013-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
13775 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13776 Sergey Lega <sergey.s.lega@intel.com>
13777 Anna Tikhonova <anna.tikhonova@intel.com>
13778 Ilya Tocar <ilya.tocar@intel.com>
13779 Andrey Turetskiy <andrey.turetskiy@intel.com>
13780 Ilya Verbin <ilya.verbin@intel.com>
13781 Kirill Yukhin <kirill.yukhin@intel.com>
13782 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13784 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
13786 (ix86_expand_vector_move_misalign): Support new unaligned load and
13787 stores and use new names.
13788 (CODE_FOR_sse2_storedqu): Rename to ...
13789 (CODE_FOR_sse2_storedquv16qi): ... this.
13790 (CODE_FOR_sse2_loaddqu): Rename to ...
13791 (CODE_FOR_sse2_loaddquv16qi): ... this.
13792 (CODE_FOR_avx_loaddqu256): Rename to ...
13793 (CODE_FOR_avx_loaddquv32qi): ... this.
13794 (CODE_FOR_avx_storedqu256): Rename to ...
13795 (CODE_FOR_avx_storedquv32qi): ... this.
13796 * config/i386/i386.md (fpint_logic): New.
13797 * config/i386/sse.md (VMOVE): Extend for AVX512.
13801 (VI_UNALIGNED_LOADSTORE): Ditto.
13802 (sse2_avx_avx512f): Ditto.
13803 (sse2_avx2): Extend for AVX512.
13804 (sse4_1_avx2): Ditto.
13805 (avx2_avx512f): New.
13806 (sse): Extend for AVX512.
13809 (avxsizesuffix): Ditto.
13810 (sseintvecmode): Ditto.
13811 (ssePSmode): Ditto.
13812 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
13813 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
13814 (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
13815 (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
13816 (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
13817 (<sse2_avx_avx512f>_storedqu<mode): ... this.
13818 (<sse>_movnt<mode>): Replace constraint "x" with "v".
13819 (STORENT_MODE): Extend for AVX512.
13820 (*absneg<mode>2): Replace constraint "x" with "v".
13821 (*mul<mode>3): Ditto.
13822 (*ieee_smin<mode>3): Ditto.
13823 (*ieee_smax<mode>3): Ditto.
13824 (avx_cmp<mode>3): Replace VF with VF_128_256.
13825 (*<sse>_maskcmp<mode>3_comm): Ditto.
13826 (<sse>_maskcmp<mode>3): Ditto.
13827 (<sse>_andnot<mode>3): Extend for AVX512.
13828 (<code><mode>3, anylogic): Replace VF with VF_128_256.
13829 (<code><mode>3, fpint_logic): New.
13830 (*<code><mode>3): Extend for AVX512.
13831 (avx512flogicsuff): New.
13832 (avx512f_<logic><mode>): Ditto.
13833 (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
13835 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
13836 (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
13837 (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
13838 (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
13839 (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
13840 (xop_vpermil2<mode>3): Ditto.
13841 (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
13842 (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
13843 (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
13844 (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
13846 2013-09-25 Tom Tromey <tromey@redhat.com>
13848 * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
13849 (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
13850 (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
13851 (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
13852 (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
13853 (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
13854 (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
13855 (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
13856 (GRAPHITE_HTAB_H): Remove.
13858 2013-09-25 Tom Tromey <tromey@redhat.com>
13860 * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
13862 2013-09-25 Tom Tromey <tromey@redhat.com>
13864 * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
13866 2013-09-25 Tom Tromey <tromey@redhat.com>
13868 * config/i386/t-i386 (i386.o): Remove.
13869 (i386-c.o): Use COMPILE and POSTCOMPILE.
13871 2013-09-25 Tom Tromey <tromey@redhat.com>
13873 * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
13875 2013-09-25 Tom Tromey <tromey@redhat.com>
13877 * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
13878 (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
13879 (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
13880 (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
13881 (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
13882 (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
13883 (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
13884 (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
13885 (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
13886 (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
13887 (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
13888 (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
13889 (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
13890 (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
13891 (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
13892 (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
13893 (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
13894 (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
13895 (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
13896 (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
13897 (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
13898 (tree-ssa-pre.o, tree-ssa-sccvn.o)
13899 (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
13900 (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
13901 (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
13902 (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
13903 (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
13904 (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
13905 (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
13906 (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
13907 (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
13908 (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
13909 (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
13910 (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
13911 (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
13912 (graphite-clast-to-gimple.o, graphite-dependences.o)
13913 (graphite-interchange.o, graphite-poly.o)
13914 (graphite-scop-detection.o, graphite-sese-to-poly.o)
13915 (graphite-optimize-isl.o, tree-vect-loop.o)
13916 (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
13917 (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
13918 (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
13919 (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
13920 (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
13921 (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
13922 (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
13923 (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
13924 (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
13925 (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
13926 (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
13927 (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
13928 (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
13929 (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
13930 (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
13931 (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
13932 (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
13933 (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
13934 (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
13935 (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
13936 (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
13937 (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
13938 (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
13939 (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
13940 (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
13941 (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
13942 (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
13943 (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
13944 (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
13945 (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
13946 (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
13947 (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
13948 (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
13949 (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
13950 (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
13951 (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
13952 (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
13953 (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
13954 (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
13955 (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
13956 (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
13957 (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
13958 (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
13959 (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
13960 (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
13961 (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
13962 (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
13963 (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
13964 (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
13965 (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
13966 (gcov-dump.o): Remove.
13967 (default-c.o): Use COMPILE and POSTCOMPILE.
13968 (CFLAGS-gcc.o): New variable.
13969 ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
13971 2013-09-25 Tom Tromey <tromey@redhat.com>
13973 * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
13974 (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
13975 (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
13976 (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
13977 (c-family/c-pragma.o, c-family/c-pretty-print.o)
13978 (c-family/c-semantics.o, c-family/c-ada-spec.o)
13979 (c-family/array-notation-common.o, c-family/stub-objc.o)
13980 (c-family/c-ubsan.o): Remove.
13982 2013-09-25 Tom Tromey <tromey@redhat.com>
13984 * Makefile.in (C_TREE_H): Reference c/c-tree.h.
13986 2013-09-25 Tom Tromey <tromey@redhat.com>
13988 * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
13989 to add -DENABLE_SHARED_LIBGCC.
13990 (gcc.o): Don't use subshell.
13992 2013-09-25 Tom Tromey <tromey@redhat.com>
13994 * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
13995 * configure.ac: Don't invoke AM_PROG_CC_C_O.
13996 (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
13997 * configure, config.in: Rebuild.
13999 2013-09-25 Tom Tromey <tromey@redhat.com>
14001 * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
14002 (COMPILE, POSTCOMPILE): New variables.
14003 (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
14004 (DEPFILES): New variable.
14005 Include ".Po" files.
14006 * configure.ac: Add checks for dependency checking.
14007 * configure, aclocal.m4: Regenerate.
14009 2013-09-25 Tom Tromey <tromey@redhat.com>
14011 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
14012 ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
14014 2013-09-25 Tom Tromey <tromey@redhat.com>
14016 * Makefile.in (generated_files): Add options.h,
14017 target-hooks-def.h, insn-opinit.h,
14018 common/common-target-hooks-def.h, pass-instances.def,
14019 c-family/c-target-hooks-def.h.
14021 2013-09-25 Jeff Law <law@redhat.com>
14023 * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
14024 than foo[foo.length () - 1] to access last member in a vec.
14025 * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
14027 2013-09-25 Richard Biener <rguenther@suse.de>
14029 PR middle-end/58521
14030 * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
14032 2013-09-25 Jan Hubicka <jh@suse.cz>
14034 * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
14037 2013-09-25 Marek Polacek <polacek@redhat.com>
14040 * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
14041 when determining the type name.
14043 2013-09-24 Oleg Endo <olegendo@gcc.gnu.org>
14045 * config/sh/sh.md: Fix formatting.
14047 2013-09-24 Xinliang David Li <davidxl@google.com>
14049 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
14050 max peel iterations parameter.
14051 * param.def: New parameter.
14052 * doc/invoke.texi: Document New parameter.
14054 2013-09-24 Christophe Lyon <christophe.lyon@linaro.org>
14056 * gimple-pretty-print.c: Various whitespace tweaks.
14057 * tree-core.h: Likewise.
14058 * tree-pretty-print.c: Likewise.
14059 * tree-ssa-alias.c: Likewise.
14060 * tree-ssa-copy.c: Likewise.
14061 * tree-ssanames.c: Likewise.
14062 * tree-ssanames.h: Likewise.
14063 * tree-vrp.c: Likewise.
14065 2013-09-24 Alan Modra <amodra@gmail.com>
14067 PR middle-end/57134
14068 PR middle-end/57586
14069 * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
14070 for output operands that disallow regs. Don't use EXPAND_WRITE on
14073 2013-09-24 Richard Biener <rguenther@suse.de>
14075 PR middle-end/58513
14076 * tree.c (reference_alias_ptr_type): Move ...
14077 * alias.c (reference_alias_ptr_type): ... here and implement
14078 in terms of the new reference_alias_ptr_type_1.
14079 (ref_all_alias_ptr_type_p): New helper.
14080 (get_deref_alias_set_1): Drop flag_strict_aliasing here,
14081 use ref_all_alias_ptr_type_p.
14082 (get_deref_alias_set): Add flag_strict_aliasing check here.
14083 (reference_alias_ptr_type_1): New function, split out from ...
14084 (get_alias_set): ... here.
14085 (alias_ptr_types_compatible_p): New function.
14086 * alias.h (reference_alias_ptr_type): Declare.
14087 (alias_ptr_types_compatible_p): Likewise.
14088 * tree.h (reference_alias_ptr_type): Remove.
14089 * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
14090 to compare MEM_REF alias types.
14092 2013-09-24 Richard Biener <rguenther@suse.de>
14094 * tree-vrp.c (vrp_finalize): Check for SSA name presence.
14096 2013-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
14098 * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
14099 reload helper function arrays into a single array reg_addr.
14100 (reload_fpr_gpr): Likewise.
14101 (reload_gpr_vsx): Likewise.
14102 (reload_vsx_gpr): Likewise.
14103 (struct rs6000_reg_addr): Likewise.
14104 (reg_addr): Likewise.
14105 (rs6000_debug_reg_global): Change rs6000_vector_reload,
14106 reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
14107 (rs6000_init_hard_regno_mode_ok): Likewise.
14108 (rs6000_secondary_reload_direct_move): Likewise.
14109 (rs6000_secondary_reload): Likewise.
14111 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
14112 constraints: wu, ww, and wy. Repurpose wv constraint added during
14113 power8 changes. Put wg constraint in alphabetical order.
14115 * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
14116 for future work to add ISA 2.07 VSX single precision support.
14117 (-mvsx-scalar-double): Change default from -1 to 1, update
14118 documentation comment.
14119 (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
14120 (-mupper-regs-df): New debug switch to control whether DF values
14121 can go in the traditional Altivec registers.
14122 (-mupper-regs-sf): New debug switch to control whether SF values
14123 can go in the traditional Altivec registers.
14125 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
14126 and wy constraints.
14127 (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
14128 loop variables. Rename -mvsx-scalar-memory to -mupper-regs-df.
14129 Add new constraints, wu/ww/wy. Repurpose wv constraint.
14130 (rs6000_debug_legitimate_address_p): Print if we are running
14131 before, during, or after reload.
14132 (rs6000_secondary_reload): Add a comment.
14133 (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
14135 * config/rs6000/constraints.md (wa constraint): Sort w<x>
14136 constraints. Update documentation string.
14137 (wd constraint): Likewise.
14138 (wf constraint): Likewise.
14139 (wg constraint): Likewise.
14140 (wn constraint): Likewise.
14141 (ws constraint): Likewise.
14142 (wt constraint): Likewise.
14143 (wx constraint): Likewise.
14144 (wz constraint): Likewise.
14145 (wu constraint): New constraint for ISA 2.07 SFmode scalar
14147 (ww constraint): Likewise.
14148 (wy constraint): Likewise.
14149 (wv constraint): Repurpose ISA 2.07 constraint that we did not use
14150 in the previous submissions.
14151 * doc/md.texi (PowerPC and IBM RS6000): Likewise.
14153 2013-09-23 Richard Sandiford <rdsandiford@googlemail.com>
14155 * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
14156 (REG_BR_PROB): Say that the probability is stored in an int_list.
14157 * reg-notes.def: Update commentary to mention INT_LIST.
14158 * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
14159 (INT_LIST): New rtx.
14160 * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
14161 * rtlanal.c (int_reg_note_p): New function.
14162 (alloc_reg_note): Assert that the note does not have an int argument.
14163 (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
14164 * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
14165 * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
14166 rather than an INSN_LIST. Handle INT_LIST.
14167 * ifcvt.c (cond_exec_process_insns): Take the probability as an int
14168 rather than an rtx. Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
14169 (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
14170 Manipulate them as ints rather than rtxes.
14171 * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
14172 * regmove.c (copy_src_to_dest): Likewise.
14173 * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
14175 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
14176 into the cases that need it.
14177 * config/arm/arm.c (arm_unwind_emit): Likewise.
14179 * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
14180 * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
14181 * loop-doloop.c (add_test, doloop_modify): Likewise.
14182 * loop-unswitch.c (compare_and_jump_seq): Likewise.
14183 * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
14184 * predict.c (combine_predictions_for_insn): Likewise.
14185 * print-rtl.c (print_rtx): Handle INT_LIST.
14186 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
14187 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
14188 * config/arm/arm.c (emit_unlikely_jump): Likewise.
14189 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
14190 (ix86_split_fp_branch, predict_jump): Likewise.
14191 * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
14192 * config/sh/sh.c (expand_cbranchsi4): Likewise.
14193 * config/spu/spu.c (ea_load_store_inline): Likewise.
14195 * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
14196 value of a REG_BR_PROB note.
14197 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
14198 (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
14199 * emit-rtl.c (try_split): Likewise.
14200 * predict.c (br_prob_note_reliable_p): Likewise.
14201 (invert_br_probabilities, combine_predictions_for_insn): Likewise.
14202 * reorg.c (mostly_true_jump): Likewise.
14203 * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
14204 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
14205 * config/i386/i386.c (ix86_print_operand): Likewise.
14206 * config/ia64/ia64.c (ia64_print_operand): Likewise.
14207 * config/mmix/mmix.c (mmix_print_operand): Likewise.
14208 * config/rs6000/rs6000.c (output_cbranch): Likewise.
14209 * config/s390/s390.c (s390_expand_tbegin): Likewise.
14210 * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
14211 * config/sparc/sparc.c (output_cbranch): Likewise.
14212 * config/spu/spu.c (get_branch_target): Likewise.
14213 * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
14214 * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
14216 2013-09-23 Jan Hubicka <jh@suse.cz>
14218 * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
14220 * ipa-utils.h (possible_polymorphic_call_target_p): New function.
14221 * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
14223 * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
14224 (gimple_fold_call): Dump inconsistent devirtualizations; add
14225 sanity check for type based devirtualizations.
14226 * ipa-prop.c: Include ipa-utils.h
14227 (ipa_intraprocedural_devirtualization): Add sanity check.
14228 (try_make_edge_direct_virtual_call): Likewise.
14230 2013-09-23 Eric Botcazou <ebotcazou@adacore.com>
14232 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
14233 assignment statements.
14235 2013-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
14237 * gimple-pretty-print.c (dump_ssaname_info): New function.
14238 (dump_gimple_phi): Call it.
14239 (pp_gimple_stmt_1): Likewise.
14240 * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
14241 (range_info_def): Declare.
14242 * tree-pretty-print.c (pp_double_int): New function.
14243 (dump_generic_node): Call it.
14244 * tree-pretty-print.h (pp_double_int): Declare.
14245 * tree-ssa-alias.c (dump_alias_info): Check pointer type.
14246 * tree-ssanames.h (range_info_def): New structure.
14247 (value_range_type): Move definition here.
14248 (set_range_info, value_range_type, duplicate_ssa_name_range_info):
14250 * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
14252 (set_range_info): New function.
14253 (get_range_info): Likewise.
14254 (duplicate_ssa_name_range_info): Likewise.
14255 (duplicate_ssa_name_fn): Check pointer type and call
14256 duplicate_ssa_name_range_info.
14257 * tree-ssa-copy.c (fini_copy_prop): Likewise.
14258 * tree-vrp.c (value_range_type): Remove definition, now in
14260 (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
14261 * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
14262 (SSA_NAME_RANGE_INFO): New macro.
14264 2013-09-23 Richard Biener <rguenther@suse.de>
14266 PR tree-optimization/58464
14267 * tree-ssa-pre.c (phi_trans_lookup): Remove.
14268 (phi_trans_add): Change to add conditionally on being not present.
14269 (phi_translate_1): Remove recursion detection here.
14270 (phi_translate): Pre-seed the cache with NULL to catch
14271 recursion here in a more generic way.
14272 (bitmap_find_leader): Adjust comment.
14273 (get_representative_for): Dump value-numbers.
14274 (create_expression_by_pieces): Likewise.
14275 (insert_into_preds_of_block): Likewise.
14277 2013-09-23 Christian Bruel <christian.bruel@st.com>
14280 * config/sh/sh.md (movsf_ie): Allow fpul_operand.
14281 * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
14283 2013-09-23 James Greenhalgh <james.greenhalgh@arm.com>
14286 2013-09-20 Renlin Li <renlin.li@arm.com>
14288 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
14290 (aarch64_expand_epilogue): Likewise.
14291 (aarch64_legitimize_reload_address): Likewise.
14293 2013-09-22 Eric Botcazou <ebotcazou@adacore.com>
14295 * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
14296 NULL_TREE before pushing them onto the vector. Likewise for labels.
14298 2013-09-21 Eric Botcazou <ebotcazou@adacore.com>
14300 * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
14301 comparison operators when -fno-trapping-math is in effect.
14302 * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
14303 comparison operators in TFmode and assert that unsupported operators
14305 (ia64_print_operand): Likewise.
14307 2013-09-21 Jan Hubicka <jh@suse.cz>
14309 * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
14310 (sse_typeless_stores): Enable for core
14311 (sse_load0_by_pxor): Likewise.
14312 (four_jump_limit): Disable for core.
14313 (pad_returns): Likewise.
14314 (avoid_vector_decode): Likewise.
14315 (fuse_cmp_and_branch): Enable for cores.
14316 * i386.c (x86_accumulate_outgoing_args): Disable for cores.
14318 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
14320 PR middle-end/56791
14321 * config/pa/pa.c (pa_option_override): Disable auto increment and
14322 decrement instructions until reload is completed.
14324 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
14325 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
14326 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
14328 2013-09-20 DJ Delorie <dj@redhat.com>
14329 Nick Clifton <nickc@redhat.com>
14331 * config/rl78/rl78.c: Various whitespace and comment tweaks.
14332 (need_to_save): Save bank 0 on interrupts.
14333 (characterize_address): Strip far address wrappers.
14334 (rl78_as_legitimate_address): Likewise.
14335 (transcode_memory_rtx): Likewise.
14336 (rl78_peep_movhi_p): Disable this peephole after devirt.
14337 (rl78_propogate_register_origins): Forget all origins when a
14339 * config/rl78/rl78-virt.md: Various whitespace tweaks.
14340 * config/rl78/rl78-real.md: Various whitespace tweaks. Additional
14342 * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
14343 * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
14344 * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
14346 * config/rl78/constraints.md: Various whitespace and paren tweaks.
14348 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
14350 * config/pa/pa.md: In "scc" insn patterns, change output template to
14351 handle const0_rtx in reg_or_0_operand operands.
14353 2013-09-20 Martin Husemann <martin@NetBSD.org>
14356 * config/vax/vax.c (vax_output_int_move): Use D format specifier.
14357 * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
14359 2013-09-20 Richard Biener <rguenther@suse.de>
14361 PR middle-end/58484
14362 * tree-scalar-evolution.c (struct scev_info_str): Shrink by
14363 remembering SSA name version and block index.
14364 (new_scev_info_str): Adjust.
14365 (hash_scev_info): Likewise. Also hash the block index.
14366 (eq_scev_info): Adjust.
14367 (find_var_scev_info): Likewise.
14368 (struct instantiate_cache_entry): Remove.
14369 (struct instantiate_cache_type): Use a htab to map name, block
14371 (instantiate_cache_type::~instantiate_cache_type): Adjust.
14372 (get_instantiated_value_entry): Likewise.
14373 (hash_idx_scev_info, eq_idx_scev_info): New functions.
14374 (instantiate_scev_name): Adjust.
14376 2013-09-20 Jeff Law <law@redhat.com>
14378 * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
14380 2013-09-20 Yufeng Zhang <yufeng.zhang@arm.com>
14382 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
14383 Call aarch64_simd_expand_args to update op[argc].
14385 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
14387 * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
14390 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
14392 * gengtype.c (file_rules): Added rule for *.cc files.
14393 (get_output_file_with_visibility): Give fatal message when no
14396 2013-09-20 Renlin Li <renlin.li@arm.com>
14398 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
14399 (aarch64_expand_epilogue): Likewise.
14400 (aarch64_legitimize_reload_address): Likewise.
14402 2013-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
14404 PR middle-end/57748
14405 * expr.c (expand_assignment): Remove misalignp code path.
14407 2013-09-20 Marek Polacek <polacek@redhat.com>
14410 * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
14411 TYPE_PRECISION. Add asserts.
14413 2013-09-20 Richard Biener <rguenther@suse.de>
14415 PR tree-optimization/58453
14416 * tree-loop-distribution.c (distribute_loop): Apply the cost
14417 model for -ftree-loop-distribute-patterns, too.
14419 2013-09-20 Richard Biener <rguenther@suse.de>
14421 PR middle-end/58473
14422 * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
14423 make type comparison less strict.
14425 2013-09-20 Alan Modra <amodra@gmail.com>
14427 * configure: Regenerate.
14428 * aclocal.m4: Regenerate.
14430 2013-09-20 Marek Polacek <polacek@redhat.com>
14433 * doc/extend.texi: Document that attribute used is meant to be used
14434 on variables with static storage duration.
14436 2013-09-19 Jakub Jelinek <jakub@redhat.com>
14438 PR tree-optimization/58472
14439 * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
14440 simd_lane_access set inv_p = false.
14441 * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
14442 the simduid magic VAR_DECL.
14444 2013-09-19 Jan Hubicka <jh@suse.cz>
14446 * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
14448 2013-09-17 Jeff Law <law@redhat.com>
14450 * tree-ssa-dom.c (record_temporary_equivalences): New function
14451 split out of dom_opt_dom_walker::after_dom_children.
14452 (dom_opt_dom_walker::thread_across_edge): Move common code
14453 in here from dom_opt_dom_walker::after_dom_children.
14454 (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
14456 2013-09-19 Jan Hubicka <jh@suse.cz>
14458 * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
14459 (TARGET_GENERIC): Use PROCESOR_GENERIC
14460 (enum processor_type): Unify generic32 and 64.
14461 * i386.md (cpu): Likewise.
14462 * x86-tune.def (use_leave): Enable for generic32.
14463 (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
14464 * athlon.md: Change generic64 to generic in all occurences.
14465 * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
14466 (ix86_target_macros_internal): Likewise.
14467 * driver-i386.c (host_detect_local_cpu): Likewise.
14468 * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
14470 (generic_memcpy, generic_memset, generic_cost): This one.
14471 (generic32_memcpy, generic32_memset, generic32_cost): Remove.
14472 (m_GENERIC32, m_GENERIC64): Remove.
14473 (m_GENERIC): Turn into one flag.
14474 (processor_target): Unify generic tunnings.
14475 (ix86_option_override_internal): Replace generic32/64 by generic.
14476 (ix86_issue_rate): Likewise.
14477 (ix86_adjust_cost): Likewise.
14479 2013-09-19 Jan Hubicka <jh@suse.cz>
14481 * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
14482 of speculative flag.
14484 2013-09-19 Jakub Jelinek <jakub@redhat.com>
14486 * omp-low.c (expand_omp_sections): Always pass len - 1 to
14487 GOMP_sections_start, even if !exit_reachable.
14489 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
14491 * lra-constraints.c (need_for_all_save_p): Use macro
14492 HARD_REGNO_CALL_PART_CLOBBERED.
14493 * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
14494 set up pseudo conflict hard regs.
14496 2013-09-18 Michael Meissner <meissner@linux.vnet.ibm.com>
14499 * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
14502 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
14504 PR rtl-optimization/58438
14505 * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
14506 * lra-constraints.c (undo_optional_reloads): Keep optional reloads
14507 from previous subpasses.
14509 2013-09-18 Richard Earnshaw <rearnsha@arm.com>
14511 * arm.c (arm_get_frame_offsets): Validate architecture supports
14512 LDRD/STRD before accepting the tuning preference.
14513 (arm_expand_prologue): Likewise.
14514 (arm_expand_epilogue): Likewise.
14516 2013-09-18 Richard Biener <rguenther@suse.de>
14518 PR tree-optimization/58417
14519 * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
14520 have chrecs with symbols defined in the loop as operands.
14521 (chrec_fold_multiply): Likewise.
14522 * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
14523 parameters before folding binary operations.
14524 (struct instantiate_cache_entry_hasher): Remove.
14525 (struct instantiate_cache_type): Use a pointer-map.
14526 (instantiate_cache_type::instantiate_cache_type): New function.
14527 (instantiate_cache_type::get): Likewise.
14528 (instantiate_cache_type::set): Likewise.
14529 (instantiate_cache_type::~instantiate_cache_type): Adjust.
14530 (get_instantiated_value_entry): Likewise.
14531 (global_cache): New global.
14532 (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
14533 instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
14534 instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
14535 (instantiate_scev_name): Adjust.
14536 (instantiate_scev): Construct global instead of local cache.
14537 (resolve_mixers): Likewise.
14539 2013-09-18 Daniel Morris <danielm@ecoscentric.com>
14540 Paolo Carlini <paolo.carlini@oracle.com>
14543 * doc/implement-cxx.texi: Fix references to the C++ standards.
14545 2013-09-18 Jakub Jelinek <jakub@redhat.com>
14547 * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
14548 * tree-vect-data-refs.c (vect_analyze_data_refs): For
14549 simd_lane_access drs, update also DR_ALIGNED_TO.
14551 2013-09-18 Marek Polacek <polacek@redhat.com>
14554 * doc/extend.texi: Document no_sanitize_undefined attribute.
14555 * builtins.c (fold_builtin_0): Don't sanitize function if it has the
14556 no_sanitize_undefined attribute.
14558 2013-09-18 Nick Clifton <nickc@redhat.com>
14560 * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
14561 (ASM_DECLARE_FUNCTION_NAME): Define.
14563 2013-09-17 Trevor Saunders <tsaunders@mozilla.com>
14565 * compare-elim.c (find_comparison_dom_walker): New class
14566 (find_comparisons_in_bb): Rename to
14567 find_comparison_dom_walker::before_dom_children
14568 (find_comparisons): Adjust
14569 * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
14571 (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
14572 * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
14573 (init_walk_dominator_tree): Remove declaration.
14574 (fini_walk_dominator_tree): Remove declaration.
14575 * fwprop.c (single_def_use_dom_walker): New class
14576 (single_def_use_enter_block): Convert to
14577 single_def_use_dom_walker::before_dom_children.
14578 (single_def_use_leave_block): Convert to
14579 single_def_use_dom_walker::after_dom_children.
14580 (build_single_def_use_links): Adjust.
14581 * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
14583 (find_candidates_in_block): Convert to
14584 find_candidates_dom_walker::before_dom_children.
14585 (execute_strength_reduction): Adjust.
14586 * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
14587 (sese_dom_walker): New class.
14588 (sese_dom_walker::sese_dom_walker): New constructor.
14589 (sese_dom_walker::~sese_dom_walker): New destructor.
14590 (build_sese_conditions_before): Convert to
14591 sese_dom_walker::before_dom_children.
14592 (build_sese_conditions_after): Convert to
14593 sese_dom_walker::after_dom_children.
14594 (build_poly_scop): Adjust
14595 * tree-into-ssa.c (rewrite_dom_walker): New class
14596 (rewrite_enter_block): Convert to
14597 rewrite_dom_walker::before_dom_children.
14598 (rewrite_leave_block): Convert to
14599 rewrite_dom_walker::after_dom_children.
14600 (rewrite_update_dom_walker): New class.
14601 (rewrite_update_enter_block): Convert to
14602 rewrite_update_dom_walker::before_dom_children.
14603 (rewrite_update_leave_block): Convert to
14604 rewrite_update_dom_walker::after_dom_children.
14605 (rewrite_blocks, rewrite_into_ssa): Adjust.
14606 (mark_def_dom_walker): New class.
14607 (mark_def_dom_walker::mark_def_dom_walker): New constructor.
14608 (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
14609 (mark_def_sites_blocks): Convert to
14610 mark_def_dom_walker::before_dom_children.
14611 (mark_def_site_blocks): Remove.
14612 * tree-ssa-dom.c (dom_opt_dom_walker): New class.
14613 (tree_ssa_dominator_optimize): Adjust.
14614 (dom_thread_across_edge): Convert to method
14615 dom_opt_dom_walker::thread_across_edge.
14616 (dom_opt_enter_block): Convert to member function
14617 dom_opt_dom_walker::before_dom_children.
14618 (dom_opt_leave_block): Convert to member function
14619 dom_opt_dom_walker::after_dom_children.
14620 * tree-ssa-dse.c (dse_dom_walker): New class.
14621 (dse_enter_block): Convert to member function
14622 dse_dom_walker::before_dom_children.
14623 (tree_ssa_dse): Adjust.
14624 * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
14625 (determine_invariantness_stmt): Convert to method
14626 invariantness_dom_walker::before_dom_children.
14627 (determine_invariantness): Remove
14628 (move_computations_dom_walker): New class.
14629 (move_computations_stmt): Convert to method
14630 move_computations_dom_walker::before_dom_children.
14631 (move_computations, tree_ssa_lim): Adjust.
14632 * tree-ssa-phiopt.c (nontrapping_dom_walker): New class.
14633 (nt_init_block): Convert to method
14634 notrappping_dom_walker::before_dom_children.
14635 (nt_fini_block): Convert to method
14636 method nontrapping_dom_walker::after_dom_children.
14637 (get_non_trapping): Adjust.
14638 * tree-ssa-pre.c (eliminate_dom_walker): New class.
14639 (eliminate_bb): Convert to method
14640 eliminate_dom_walker::before_dom_children.
14641 (eliminate_leave_block): Convert to method
14642 eliminate_dom_walker::after_dom_children.
14643 (eliminate): Adjust.
14644 * tree-ssa-strlen.c (strlen_dom_walker): New class.
14645 (strlen_enter_block): Convert to method
14646 strlen_dom_walker::before_dom_children.
14647 (strlen_leave_block): Convert to method
14648 method strlen_dom_walker::after_dom_children.
14649 (tree_ssa_strlen): Adjust.
14650 * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
14651 (tree_ssa_uncprop): Adjust.
14652 (uncprop_leave_block): Convert to method
14653 uncprop_dom_walker::after_dom_children.
14654 (uncprop_leave_block): Convert to method
14655 uncprop_dom_walker::before_dom_children.
14657 2013-09-18 Bin Cheng <bin.cheng@arm.com>
14659 * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
14660 branch in same basic block. Check both src and dest of the move insn.
14662 2013-09-17 Nick Clifton <nickc@redhat.com>
14664 * config/rl78/rl78-real.md (bf): New pattern.
14666 * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
14667 (rl78_print_operand): Do not put a # before a %B.
14668 * config/rl78/rl78.opt: Tweak doc strings.
14670 2013-09-17 DJ Delorie <dj@redhat.com>
14672 * config/rl78/constraints.md (Wcv): Allow up to $r31.
14673 * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
14674 (rl78_option_override): Likewise, if -mallregs.
14675 (is_virtual_register): Likewise.
14676 * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
14677 (REGNO_OK_FOR_BASE_P): Likewise.
14678 * config/rl78/rl78.opt (-mallregs): New.
14680 2013-09-17 Nick Clifton <nickc@redhat.com>
14682 * config/rl78/rl78.c (need_to_save): Change return type to bool.
14683 For interrupt functions: save all call clobbered registers if the
14684 interrupt handler is not a leaf function.
14685 (rl78_expand_prologue): Always recompute the frame information.
14686 For interrupt functions: only select bank 0 if one of the bank 0
14687 registers is going to be psuhed.
14689 2013-09-17 DJ Delorie <dj@redhat.com>
14691 * config/rl78/constraints.md: For each W* constraint, rename to C*
14692 and create a W* constraint that checks for an optional ES: prefix
14694 * config/rl78/rl78.md (UNS_ES_ADDR): New.
14695 (es_addr): New. Used to wrap far addresses.
14696 * config/rl78/rl78-protos.h (rl78_es_addr): New.
14697 (rl78_es_base): New.
14698 * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
14699 wrapped far addresses.
14700 (rl78_print_operand_1): Unwrap far addresses before processing.
14701 (rl78_lo16): Wrap far addresses in unspecs.
14702 (rl78_es_addr): New.
14703 (rl78_es_base): New.
14704 (insn_ok_now): Check for not-yet-wrapped far addresses.
14705 (transcode_memory_rtx): Properly re-wrap far addresses.
14707 2013-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
14709 * config/sparc/t-rtems: Add leon3 multilibs.
14711 2013-09-17 Cong Hou <congh@google.com>
14713 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
14714 when checking the dot production pattern. The type of rhs operand
14715 of multiply is now checked correctly.
14717 2013-09-17 Jeff Law <law@redhat.com>
14719 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
14720 edge implied equivalences into successor phis.
14721 * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
14722 here from tree-ssa-threadedge.c.
14723 (mark_threaded_blocks): When threading through a joiner, if both
14724 successors of the joiner's clone reach the same block, verify the
14725 PHI arguments are equal. If not, cancel the jump threading request.
14726 * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
14727 tree-ssa-threadupdate.c
14728 (thread_across_edge): Don't check PHI argument equality when
14729 threading through joiner block here.
14731 2013-09-17 Andrew MacLeod <amacleod@redhat.com>
14733 * tree-flow.h (ssa_undefined_value_p): Remove prototype.
14734 * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
14735 (warn_uninit, warn_uninitialized_vars,
14736 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
14737 Move to tree-ssa-uninit.c.
14738 * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c.
14739 (has_undefined_value_p): New. Pass dependant parts of
14740 ssa_undefined_value_p.
14741 (uninit_undefined_value_p): Use has_undefined_value_p.
14742 (warn_uninit, warn_uninitialized_vars,
14743 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
14744 Move from tree-ssa.c.
14745 * tree-ssa.h: Adjust prototypes.
14747 2013-09-17 Jan Hubicka <jh@suse.cz>
14749 PR middle-end/58332
14750 * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
14751 * ipa-inline.c (can_inline_edge_p): Do not downgrade
14752 FUNCTION_NOT_OPTIMIZED.
14753 * ipa-inline-analysis.c (compute_inline_parameters): Function
14754 not optimized is not inlinable unless it is alwaysinline.
14755 (inline_analyze_function): Force calls in not optimized
14756 function not inlinable.
14758 2013-09-17 Jan Hubicka <jh@suse.cz>
14760 PR middle-end/58329
14761 * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
14763 * ipa.c (function_and_variable_visibility): Likewise.
14764 * ipa-profile.c (ipa_profile): Likewise.
14766 2013-09-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
14769 * cgraph.c (cgraph_function_body_availability): Check for ifunc
14770 attribute, and don't inline the resolver in this case.
14772 2013-09-17 Teresa Johnson <tejohnson@google.com>
14774 * coverage.c (get_coverage_counts): Add missing newline.
14776 2013-09-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14778 PR tree-optimization/58088
14779 * fold-const.c (mask_with_trailing_zeros): New function.
14780 (fold_binary_loc): Make sure we don't recurse infinitely
14781 when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
14782 Use mask_with_trailing_zeros where appropriate.
14784 2013-09-17 Yuri Rumyantsev <ysrumyan@gmail.com>
14786 * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
14787 of 'prev' var to get better distance estimation.
14789 2013-09-17 Eric Botcazou <ebotcazou@adacore.com>
14791 * tree-inline.h (struct copy_body_data): Add transform_parameter.
14792 * tree-inline.c (is_parameter_of): New predicate.
14793 (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
14794 a parameter has been remapped.
14795 (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
14796 (optimize_inline_calls): Initialize transform_parameter.
14797 (copy_gimple_seq_and_replace_locals): Likewise.
14798 (tree_function_versioning): Likewise.
14799 (maybe_inline_call_in_expr): Likewise.
14801 2013-09-17 Nick Clifton <nickc@redhat.com>
14803 * config/msp430/msp430-protos.h: Add prototypes for new functions.
14804 * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
14805 interrupt handlers.
14806 (is_attr_func): New function.
14807 (msp430_is_interrupt_func): New function.
14808 (is_naked_func): New function.
14809 (is_reentrant_func): New function.
14810 (is_critical_func): New function.
14811 (msp430_start_function): Add annotations for function attributes.
14812 (msp430_attr): New function.
14813 (msp430_attribute_table): New.
14814 (msp430_function_section): New function.
14815 (TARGET_ASM_FUNCTION_SECTION): Define.
14816 (msp430_builtin): New enum.
14817 (msp430_init_builtins): New function.
14818 (msp430_builtin_devl): New function.
14819 (msp430_expand_builtin): New function.
14820 (TARGET_INIT_BUILTINS): Define.
14821 (TARGET_EXPAND_BUILTINS): Define.
14822 (TARGET_BUILTIN_DECL): Define.
14823 (msp430_expand_prologue): Add support for naked, interrupt,
14824 critical and reentrant functions.
14825 (msp430_expand_epilogue): Likewise.
14826 (msp430_print_operand): Handle 'O' character.
14827 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
14829 * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
14830 UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
14831 (pushm): Use a 'n' rather than an 'i' constraint.
14832 (msp_return): Add generation of the interrupt return instruction.
14833 (disable_interrupts): New pattern.
14834 (enable_interrupts): New pattern.
14835 (push_intr_state): New pattern.
14836 (pop_intr_state): New pattern.
14837 (bic_SR): New pattern.
14838 (bis_SR): New pattern.
14839 * doc/extend.texi: Document MSP430 function attributes and builtin
14842 2013-09-17 Richard Biener <rguenther@suse.de>
14844 PR tree-optimization/58432
14845 * tree-loop-distribution.c (tree_loop_distribution): Also
14846 scan PHIs for outside loop uses and seed a partition from them.
14848 2013-09-17 Bin Cheng <bin.cheng@arm.com>
14850 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
14851 (restructure_reference): Call backtrace_base_for_ref.
14853 2013-09-17 Alan Modra <amodra@gmail.com>
14856 * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
14859 2013-09-16 DJ Delorie <dj@redhat.com>
14861 * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
14862 vregs location for RL78/G10.
14863 (rl78_expand_prologue): Avoid SEL on G10.
14864 (rl78_expand_epilogue): Likewise.
14865 (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
14866 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
14867 __RL78_G10__ when appropriate.
14868 (ASM_SPEC): Pass -mg10 along to the assembler.
14869 * config/rl78/rl78.md (sel_rb): Disable for G10.
14870 * config/rl78/rl78.opt: Add -mg10 option.
14871 * config/rl78/t-rl78: Add -mg10 multilib.
14873 2013-09-16 Xinliang David Li <davidxl@google.com>
14875 * tree-if-conv.c (main_tree_if_conversion): Check new flag.
14876 * omp-low.c (omp_max_vf): Ditto.
14877 (expand_omp_simd): Ditto.
14878 * tree-vectorizer.c (vectorize_loops): Ditto.
14879 (gate_vect_slp): Ditto.
14880 (gate_increase_alignment): Ditto.
14881 * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
14882 * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
14883 (gate_tree_vectorize): Name change.
14884 (tree_vectorize): Ditto.
14885 (pass_vectorize::gate): Call new function.
14886 (pass_vectorize::execute): Ditto.
14887 * opts.c: O3 default setting change.
14888 (finish_options): Check new flag.
14889 * doc/invoke.texi: Document new flags.
14890 * common.opt: New flags.
14892 2013-09-16 Andreas Schwab <schwab@linux-m68k.org>
14894 * doc/tm.texi.in (Cond Exec Macros): Remove node.
14895 (Condition Code): Don't reference it.
14896 * doc/tm.texi: Regenerate.
14898 2013-09-16 Vladimir Makarov <vmakarov@redhat.com>
14900 PR middle-end/58418
14901 * lra-constraints.c (undo_optional_reloads): Consider all optional
14902 reload even if it did not get a hard reg.
14904 2013-09-16 Teresa Johnson <tejohnson@google.com>
14906 * dumpfile.c (dump_loc): Remove newline emission.
14907 * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
14908 emission to dump_printf_loc calls where missing.
14909 (vect_mark_for_runtime_alias_test): Ditto.
14910 (vect_analyze_data_ref_dependence): Ditto.
14911 (vect_analyze_data_ref_dependences): Ditto.
14912 (vect_slp_analyze_data_ref_dependence): Ditto.
14913 (vect_slp_analyze_data_ref_dependences): Ditto.
14914 (vect_compute_data_ref_alignment): Ditto.
14915 (vect_update_misalignment_for_peel): Ditto.
14916 (vect_verify_datarefs_alignment): Ditto.
14917 (vector_alignment_reachable_p): Ditto.
14918 (vect_get_data_access_cost): Ditto.
14919 (vect_enhance_data_refs_alignment): Ditto.
14920 (vect_find_same_alignment_drs): Ditto.
14921 (vect_analyze_data_refs_alignment): Ditto.
14922 (vect_analyze_group_access): Ditto.
14923 (vect_analyze_data_ref_access): Ditto.
14924 (vect_analyze_data_ref_accesses): Ditto.
14925 (vect_prune_runtime_alias_test_list): Ditto.
14926 (vect_analyze_data_refs): Ditto.
14927 (vect_create_addr_base_for_vector_ref): Ditto.
14928 (vect_create_data_ref_ptr): Ditto.
14929 (vect_grouped_store_supported): Ditto.
14930 (vect_grouped_load_supported): Ditto.
14931 * value-prof.c (check_counter): Ditto.
14932 (check_ic_target): Ditto.
14933 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
14934 (vect_recog_widen_mult_pattern): Ditto.
14935 (vect_recog_widen_sum_pattern): Ditto.
14936 (vect_recog_over_widening_pattern): Ditto.
14937 (vect_recog_widen_shift_pattern): Ditto.
14938 (vect_recog_rotate_pattern): Ditto.
14939 (vect_recog_vector_vector_shift_pattern): Ditto.
14940 (vect_recog_divmod_pattern): Ditto.
14941 (vect_recog_mixed_size_cond_pattern): Ditto.
14942 (vect_recog_bool_pattern): Ditto.
14943 (vect_pattern_recog_1): Ditto.
14944 (vect_pattern_recog): Ditto.
14945 * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
14946 (vect_is_simple_iv_evolution): Ditto.
14947 (vect_analyze_scalar_cycles_1): Ditto.
14948 (vect_get_loop_niters): Ditto.
14949 (vect_analyze_loop_1): Ditto.
14950 (vect_analyze_loop_form): Ditto.
14951 (vect_analyze_loop_operations): Ditto.
14952 (vect_analyze_loop_2): Ditto.
14953 (vect_analyze_loop): Ditto.
14954 (report_vect_op): Ditto.
14955 (vect_is_slp_reduction): Ditto.
14956 (vect_is_simple_reduction_1): Ditto.
14957 (vect_get_known_peeling_cost): Ditto.
14958 (vect_estimate_min_profitable_iters): Ditto.
14959 (vect_model_reduction_cost): Ditto.
14960 (vect_model_induction_cost): Ditto.
14961 (get_initial_def_for_induction): Ditto.
14962 (vect_create_epilog_for_reduction): Ditto.
14963 (vectorizable_reduction): Ditto.
14964 (vectorizable_induction): Ditto.
14965 (vectorizable_live_operation): Ditto.
14966 (vect_loop_kill_debug_uses): Ditto.
14967 (vect_transform_loop): Ditto.
14968 * tree-vect-stmts.c (vect_mark_relevant): Ditto.
14969 (vect_stmt_relevant_p): Ditto.
14970 (process_use): Ditto.
14971 (vect_mark_stmts_to_be_vectorized): Ditto.
14972 (vect_model_simple_cost): Ditto.
14973 (vect_model_promotion_demotion_cost): Ditto.
14974 (vect_model_store_cost): Ditto.
14975 (vect_get_store_cost): Ditto.
14976 (vect_model_load_cost): Ditto.
14977 (vect_get_load_cost): Ditto.
14978 (vect_init_vector_1): Ditto.
14979 (vect_get_vec_def_for_operand): Ditto.
14980 (vect_finish_stmt_generation): Ditto.
14981 (vectorizable_call): Ditto.
14982 (vectorizable_conversion): Ditto.
14983 (vectorizable_assignment): Ditto.
14984 (vectorizable_shift): Ditto.
14985 (vectorizable_operation): Ditto.
14986 (vectorizable_store): Ditto.
14987 (vectorizable_load): Ditto.
14988 (vectorizable_condition): Ditto.
14989 (vect_analyze_stmt): Ditto.
14990 (vect_transform_stmt): Ditto.
14991 (vect_is_simple_use): Ditto.
14992 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
14993 (vect_can_advance_ivs_p): Ditto.
14994 (vect_update_ivs_after_vectorizer): Ditto.
14995 (vect_do_peeling_for_loop_bound): Ditto.
14996 (vect_gen_niters_for_prolog_loop): Ditto.
14997 (vect_update_inits_of_drs): Ditto.
14998 (vect_create_cond_for_alias_checks): Ditto.
14999 * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
15000 (vect_build_slp_tree_1): Ditto.
15001 (vect_supported_load_permutation_p): Ditto.
15002 (vect_analyze_slp_instance): Ditto.
15003 (vect_analyze_slp): Ditto.
15004 (vect_make_slp_decision): Ditto.
15005 (vect_detect_hybrid_slp): Ditto.
15006 (vect_bb_vectorization_profitable_p): Ditto.
15007 (vect_slp_analyze_bb_1): Ditto.
15008 (vect_update_slp_costs_according_to_vf): Ditto.
15009 (vect_get_mask_element): Ditto.
15010 (vect_transform_slp_perm_load): Ditto.
15011 (vect_schedule_slp_instance): Ditto.
15012 (vect_schedule_slp): Ditto.
15013 (vect_slp_transform_bb): Ditto.
15014 * profile.c (read_profile_edge_counts): Ditto.
15015 (compute_branch_probabilities): Ditto.
15016 * coverage.c (get_coverage_counts): Ditto.
15018 2013-09-16 Diego Novillo <dnovillo@google.com>
15020 * tree-core.h: Add missing comment lines from refactoring of tree.h.
15022 2013-09-16 Jan Hubicka <jh@suse.cz>
15024 * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
15025 abstract functions; for static functions check the presence of body.
15027 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
15029 * config/aarch64/aarch64-simd-builtins.def (fma): New.
15030 * config/aarch64/aarch64-simd.md
15031 (aarch64_mla_elt<mode>): New.
15032 (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
15033 (aarch64_mls_elt<mode>): Likewise.
15034 (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
15035 (aarch64_fma4_elt<mode>): Likewise.
15036 (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
15037 (aarch64_fma4_elt_to_128v2df): Likewise.
15038 (aarch64_fma4_elt_to_64df): Likewise.
15039 (fnma<mode>4): Likewise.
15040 (aarch64_fnma4_elt<mode>): Likewise.
15041 (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
15042 (aarch64_fnma4_elt_to_128v2df): Likewise.
15043 (aarch64_fnma4_elt_to_64df): Likewise.
15044 * config/aarch64/iterators.md (VDQSF): New.
15045 * config/aarch64/arm_neon.h
15046 (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
15047 (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
15049 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
15051 * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
15052 (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
15053 (aarch64_mul3_elt_to_128df): Likewise.
15054 (aarch64_mul3_elt_to_64v2df): Likewise.
15055 * config/aarch64/iterators.md (VEL): Also handle DFmode.
15057 (VMUL_CHANGE_NLANES) Likewise.
15060 * config/aarch64/arm_neon.h
15061 (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
15063 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
15065 * config/aarch64/arm_neon.h
15066 (vcvtx_high_f32_f64): Fix parameters.
15068 2013-09-16 Jan-Benedict Glaw <jbglaw@lug-owl.de>
15069 Uros Bizjak <ubizjak@gmail.com>
15071 * config/alpha.c: Include tree-ssanames.h.
15073 2013-09-16 Richard Biener <rguenther@suse.de>
15075 * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
15076 (dot_rdg_1): Handle control_dd.
15077 (create_edge_for_control_dependence): New function.
15078 (create_rdg_edges): Add control dependences if asked for.
15079 (build_rdg): Likewise.
15080 (generate_loops_for_partition): If there are not necessary
15081 control stmts remove all their dependencies.
15082 (collect_condition_stmts, rdg_flag_loop_exits): Remove.
15083 (distribute_loop): Pass on control dependences.
15084 (tree_loop_distribution): Compute control dependences and remove
15085 restriction on number of loop nodes.
15087 2013-09-16 Jakub Jelinek <jakub@redhat.com>
15089 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
15090 for internal calls.
15092 2013-09-16 Richard Sandiford <rdsandiford@googlemail.com>
15094 * cse.c (try_const_anchors): Punt on CC modes.
15096 2013-09-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
15098 * config/vax/constraints.md (T): Add missing CONSTANT_P check.
15100 2013-09-14 John David Anglin <danglin@gcc.gnu.org>
15103 * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
15104 calls to word_mode.
15106 2013-09-14 Iain Sandoe <iain@codesourcery.com>
15109 * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
15111 (darwin_objc1_section): Likewise.
15112 (darwin_file_end): Emit Image Info section when required.
15114 2013-09-14 Jan Hubicka <jh@suse.cz>
15116 * tree-into-ssa.c (gate_into_ssa): New.
15117 (pass_data_build_ssa): Use it.
15118 * cgraph.h (expand_thunk): Update prototype.
15119 * cgraphunit.c (analyze_function): Expand thunks early.
15120 (expand_thunk): Fix DECL_CONTEXT of reust_decl;
15121 build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
15122 set lowered flag; do not add new function.
15123 (assemble_thunks_and_aliases): Update.
15124 * tree-ssa.c (gate_init_datastructures): New gate.
15125 (pass_data_init_datastructures): Use it.
15127 2013-09-14 Iain Sandoe <iain@codesourcery.com>
15130 * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
15131 xmm register set described in the psABI.
15133 2013-09-13 Evgeny Gavrin <e.gavrin@samsung.com>
15135 * dwarf2out.c (should_emit_struct_debug): Add check
15136 for type_decl variable is not NULL.
15138 2013-09-13 Jacek Caban <jacek@codeweavers.com>
15140 * config.gcc: Use new winnt-c.c target hooks
15141 * config/t-winnt: New file
15142 * config/winnt-c.c: New file
15143 * doc/tm.texi.in: Document new hook
15144 * doc/tm.texi: Regenerated
15146 2013-09-13 Jan Hubicka <jh@suse.cz>
15148 PR middle-end/58094
15149 * ipa-inline.c (check_callers): New function.
15150 (check_caller_edge): Remove.
15151 (want_inline_function_to_all_callers_p): Also permit alises that are
15153 (inline_to_all_callers): Terminate the walk when devirtualization
15154 introduce new calls.
15156 2013-09-13 Jan Hubicka <jh@suse.cz>
15158 * ipa-inline-analysis.c (struct growth_data): Add node.
15159 (do_estimate_growth_1): Fix detection of recursion.
15161 2013-09-13 Jakub Jelinek <jakub@redhat.com>
15163 PR tree-optimization/58392
15164 * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
15165 to avoid shadowing of outer loop variable. If
15166 saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
15167 replace_by_duplicate_decl simduid of loops that have it set and
15168 set dest_cfun->has_simduid_loops and/or
15169 dest_cfun->has_force_vect_loops.
15170 * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
15171 instead of maybe_lookup_decl.
15172 * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
15173 Use id->blocks_to_copy instead of blocks_to_copy. Adjust recursive
15174 call. Copy over force_vect and copy and remap simduid. Set
15175 cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
15176 (copy_cfg_body): Remove blocks_to_copy argument. Use
15177 id->blocks_to_copy instead of blocks_to_copy. Adjust copy_loops
15178 caller. Don't set cfun->has_simduid_loops and/or
15179 cfun->has_force_vect_loops here.
15180 (copy_body): Remove blocks_to_copy argument. Adjust copy_cfg_body
15182 (expand_call_inline, tree_function_versioning): Adjust copy_body
15185 2013-09-13 Martin Jambor <mjambor@suse.cz>
15188 * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
15189 the assert if the edge was a speculative one.
15191 2013-09-13 Richard Biener <rguenther@suse.de>
15193 * tree-data-ref.h (known_dependences_p): Move here ...
15194 * tree-loop-distribution.c (known_dependences_p): ... from here.
15195 (dump_rdg_component, debug_rdg_component): Remove.
15196 (dump_rdg): Adjust.
15197 (generate_loops_for_partition): Use gimple_uid instead of
15198 relying on matching stmt visit order.
15199 (rdg_build_partitions): Take starting stmt vector.
15200 (ldist_gen): Merge into ...
15201 (distribute_loop): ... this function. Do not compute starting
15203 * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
15205 2013-09-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15207 * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
15208 Set type attribute correctly. Set predicable_short_it attribute.
15209 (cmpsi_shiftsi): Remove %? from output template.
15211 2013-09-13 Richard Biener <rguenther@suse.de>
15213 * tree-loop-distribution.c (struct rdg_component,
15214 rdg_defs_used_in_other_loops_p, free_rdg_components,
15215 rdg_build_components): Remove.
15216 (stmts_from_loop): Do not record virtual PHIs.
15217 (generate_loops_for_partition): Skip virtual PHIs.
15218 (build_rdg_partition_for_component): Rename to ...
15219 (build_rdg_partition_for_vertex): ... this and adjust.
15220 (rdg_build_partitions): Take a vector of starting vertices
15221 instead of components. Remove unnecessary leftover handling.
15222 (ldist_gen): Do not build components or record other stores.
15223 (distribute_loop): Do not distribute loops containing stmts
15226 2013-09-13 Christian Bruel <christian.bruel@st.com>
15229 * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
15231 2013-09-13 Kai Tietz <ktietz@redhat.com>
15233 * config.gcc: Separate cases for mingw and cygwin targets,
15234 and add 64-bit cygwin target case.
15236 * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
15237 dll-export inline-functions.
15238 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
15240 2013-09-13 Jeff Law <law@redhat.com>
15242 PR middle-end/58387
15244 2013-09-06 Jeff Law <law@redhat.com>
15246 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
15247 edge implied equivalences into successor phis.
15249 2013-09-12 DJ Delorie <dj@redhat.com>
15251 * config/rl78/rl78-virt.md: Change from | to \; for asm line
15254 2013-09-12 Brooks Moses <bmoses@google.com>
15257 * Makefile.in: Do not install driver binaries in $(target)/bin.
15259 2013-09-12 DJ Delorie <dj@redhat.com>
15261 * config/rl78/rl78.opt (mrelax): New.
15262 * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
15263 * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
15265 * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
15267 (rl78_expand_epilogue): Likewise.
15269 2013-09-12 Vladimir Makarov <vmakarov@redhat.com>
15271 PR middle-end/58335
15272 * lra-eliminations.c (remove_reg_equal_offset_note): New.
15273 (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
15274 pointer elimination with using remove_reg_equal_offset_note.
15276 2013-09-12 DJ Delorie <dj@redhat.com>
15278 * config/msp430/: New port.
15279 * config.gcc (msp430): Added.
15280 * doc/invoke.texi: Document MSP430 options.
15281 * doc/install.texi: Document msp430-elf
15282 * doc/md.texi: Document msp430-elf
15283 * doc/contrib.texi: Document msp430-elf
15285 * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
15288 2013-09-12 Martin Jambor <mjambor@suse.cz>
15291 * ipa-prop.c (remove_described_reference): Give up if the edge in the
15292 reference descriptor is NULL.
15293 (ipa_edge_removal_hook): If owning a reference descriptor, set its
15296 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
15298 * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
15299 (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
15300 num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
15301 * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
15302 make_temp_ssa_name): move to tree-ssanames.h
15303 * tree-ssa-alias.h: Move prototype.
15304 * tree-ssa.h: Include tree-ssanames.h.
15305 * tree-ssanames.c (FREE_SSANAMES): Move to here.
15306 * tree-ssanames.h: New. Move items from tree-flow*.h
15307 * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
15309 2013-09-12 Richard Biener <rguenther@suse.de>
15311 PR tree-optimization/58404
15312 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
15313 propagate non-invariant addresses into dereferences wrapped
15314 in component references.
15316 2013-09-12 Richard Biener <rguenther@suse.de>
15318 PR tree-optimization/58402
15319 * passes.def: Move pass_late_warn_uninitialized later.
15321 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
15323 * tree-ssa.h: New. Move content from tree-flow.h and
15324 tree-flow-inline.h.
15325 * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
15326 Move prototypes belonging to tree-ssa.c.
15327 * tree-flow-inline.h (redirect_edge_var_map_def,
15328 redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
15330 * gimple.h: Adjust prototypes.
15331 * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
15333 * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
15334 * tree.h: Move prototype to tree-ssa.h.
15335 * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
15336 * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
15337 * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
15338 cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
15339 cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
15340 ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
15341 gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
15342 gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
15343 graphite-blocking.c, graphite-clast-to-gimple.c,
15344 graphite-dependences.c, graphite-interchange.c,
15345 graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
15346 graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
15347 ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
15348 ipa-reference.c, ipa-split.c, ipa-utils.c,
15349 loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
15350 lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
15351 passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
15352 tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
15353 tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
15354 tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
15355 tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
15356 tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
15357 tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
15358 tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
15359 tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
15360 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
15361 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
15362 tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
15363 value-prof.c, var-tracking.c,
15364 varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
15366 2013-09-12 Richard Biener <rguenther@suse.de>
15368 PR tree-optimization/58396
15369 * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
15370 (build_rdg): Take a loop-nest parameter, fix memleaks.
15371 (distribute_loop): Compute loop-nest here and pass it to build_rdg.
15373 2013-09-12 Yuri Rumyantsev <ysrumyan@gmail.com>
15375 * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
15378 2013-09-12 Cameron McInally <cameron.mcinally@nyu.edu>
15380 * doc/extend.texi: Fix errors in x86 FMA builtin naming.
15381 The FMA instruction names should have a 'v' prefix.
15383 2013-09-12 Richard Biener <rguenther@suse.de>
15385 * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
15386 (dot_rdg): Use popen instead of system in optional code.
15387 (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
15388 (already_processed_vertex_p): Adjust.
15389 (has_anti_or_output_dependence, predecessor_has_mem_write,
15390 mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
15391 rdg_flag_uses): Remove.
15392 (rdg_flag_vertex): Simplify.
15393 (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
15395 (build_rdg_partition_for_component): Process the first vertex
15396 of a component only.
15397 (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
15399 2013-09-12 Alan Modra <amodra@gmail.com>
15401 * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
15403 2013-09-11 DJ Delorie <dj@redhat.com>
15404 Nick Clifton <nickc@redhat.com>
15406 * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
15407 (rl78_stack_based_mem): New.
15408 * config/rl78/constraints.md (Iv08): New.
15417 * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
15419 (movsi): Change from expand to insn-and-split.
15420 (ashrsi3): Clobber AX.
15424 * config/rl78/rl78.md (CC_REG): Fix.
15425 (addsi3): Allow memory and immediate operands.
15426 (addsi3_internal): Split into...
15427 (addsi3_internal_virt): ...new, and ...
15428 (addsi3_internal_real): ...new.
15430 (subsi3_internal_virt): New.
15431 (subsi3_internal_real): New.
15432 (mulsi3): Add memory operand.
15433 (mulsi3_rl78): Likewise.
15434 (mulsi3_g13): Likewise.
15435 * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
15436 (cbranchqi4_real): Add more constraint options.
15437 (cbranchhi4_real): Expand pattern.
15438 (cbranchhi4_real_signed): New.
15439 (cbranchhi4_real_inverted): New.
15440 (cbranchsi4_real_lt): New.
15441 (cbranchsi4_real_ge): New.
15442 (cbranchsi4_real_signed): New.
15443 (cbranchsi4_real): New.
15445 * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
15447 (lshrsi3_virt): Likewise.
15448 (ashlsi3_virt): Likewise.
15449 (cbranchqi4_virt_signed): New.
15450 (cbranchhi4_virt_signed): New.
15451 (cbranchsi4_virt): New.
15452 * config/rl78/rl78.c: Whitespace fixes throughout.
15453 (move_elim_pass): New.
15454 (pass_data_rl78_move_elim): New.
15455 (pass_rl78_move_elim): New.
15456 (make_pass_rl78_move_elim): New.
15457 (rl78_devirt_info): Run devirt earlier.
15458 (rl78_move_elim_info): New.
15459 (rl78_asm_file_start): Register it.
15460 (rl78_split_movsi): New.
15461 (rl78_as_legitimate_address): Allow virtual base registers when
15463 (rl78_addr_space_convert): Remove spurious debug stuff.
15464 (rl78_print_operand_1): Add z,s,S,r,E modifiers.
15465 (rl78_print_operand): More cases for not printing '#'.
15466 (rl78_expand_compare): Remove most of the logic.
15467 (content_memory): New.
15468 (clear_content_memory): New.
15469 (get_content_index): New.
15470 (get_content_name): New.
15471 (display_content_memory): New.
15472 (update_content): New.
15473 (record_content): New.
15474 (already_contains): New.
15475 (insn_ok_now): Re-recog insns with virtual registers.
15476 (add_postponed_content_update): New.
15477 (process_postponed_content_update): New.
15478 (gen_and_emit_move): New.
15479 (transcode_memory_rtx): Record new location content.
15480 Use gen_and_emit_move.
15481 (force_into_acc): New.
15482 (move_to_acc): Use gen_and_emit_move.
15483 (move_from_acc): Likewise.
15484 (move_acc_to_reg): Likewise.
15485 (move_to_x): Likewise.
15486 (move_to_hl): Likewise.
15487 (move_to_de): Likewise.
15488 (rl78_alloc_physical_registers_op1): Record location content.
15489 (has_constraint): New.
15490 (rl78_alloc_physical_registers_op2): Record location content.
15491 Optimize use of HL.
15492 (rl78_alloc_physical_registers_ro1): Likewise.
15493 (rl78_alloc_physical_registers_cmp): Likewise.
15494 (rl78_alloc_physical_registers_umul): Likewise.
15495 (rl78_alloc_address_registers_macax): New.
15496 (rl78_alloc_physical_registers): Initialize and set location
15497 content memory as needed.
15498 (rl78_reorg): Make sure split2 is called.
15499 (rl78_rtx_costs): New.
15501 2013-09-11 Richard Sandiford <rdsandiford@googlemail.com>
15503 * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
15504 for (not (neg ...)) and (neg (not ...)) cases.
15506 2013-09-11 Richard Biener <rguenther@suse.de>
15508 PR middle-end/58377
15509 * passes.def: Split critical edges before late uninit warning passes.
15510 * tree-cfg.c (pass_split_crit_edges): Implement clone method.
15512 2013-09-11 Jakub Jelinek <jakub@redhat.com>
15514 PR tree-optimization/58385
15515 * fold-const.c (build_range_check): If both low and high are NULL,
15516 use omit_one_operand_loc to preserve exp side-effects.
15518 2013-09-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15520 * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
15522 2013-09-11 Richard Biener <rguenther@suse.de>
15524 * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
15525 dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
15526 dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
15527 create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
15528 stmts_from_loop, known_dependences_p, build_empty_rdg,
15529 build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
15530 * tree-loop-distribution.c: ... here.
15531 * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
15532 RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
15533 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
15534 struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
15535 * tree-loop-distribution.c: ... here.
15536 * tree-loop-distribution.c: Include gimple-pretty-print.h.
15537 (struct partition_s): Add loops member.
15538 (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
15539 rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
15540 build_rdg_partition_for_component, rdg_build_partitions): Adjust.
15542 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
15543 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15544 Sergey Lega <sergey.s.lega@intel.com>
15545 Anna Tikhonova <anna.tikhonova@intel.com>
15546 Ilya Tocar <ilya.tocar@intel.com>
15547 Andrey Turetskiy <andrey.turetskiy@intel.com>
15548 Ilya Verbin <ilya.verbin@intel.com>
15549 Kirill Yukhin <kirill.yukhin@intel.com>
15550 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15552 * config/i386/constraints.md (k): New.
15554 * config/i386/i386.c (const regclass_map): Add new mask registers.
15555 (dbx_register_map): Ditto.
15556 (dbx64_register_map): Ditto.
15557 (svr4_dbx_register_map): Ditto.
15558 (ix86_conditional_register_usage): Squash mask registers if AVX512F is
15560 (ix86_preferred_reload_class): Disable constants for mask registers.
15561 (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
15562 (ix86_hard_regno_mode_ok): Support new mask registers.
15563 (x86_order_regs_for_local_alloc): Ditto.
15564 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
15565 (FIXED_REGISTERS): Add new mask registers.
15566 (CALL_USED_REGISTERS): Ditto.
15567 (REG_ALLOC_ORDER): Ditto.
15568 (VALID_MASK_REG_MODE): New.
15569 (FIRST_MASK_REG): Ditto.
15570 (LAST_MASK_REG): Ditto.
15571 (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
15572 (MAYBE_MASK_CLASS_P): New.
15573 (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
15574 (REG_CLASS_CONTENTS): Ditto.
15575 (MASK_REGNO_P): New.
15576 (ANY_MASK_REG_P): Ditto.
15577 (HI_REGISTER_NAMES): Add new mask registers.
15578 * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
15579 MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
15581 (attribute "type"): Add mskmov, msklog.
15582 (attribute "length_immediate"): Support them.
15583 (attribute "memory"): Ditto.
15584 (attribute "prefix_0f"): Ditto.
15585 (*movhi_internal): Support new mask registers.
15586 (*movqi_internal): Ditto.
15587 (define_split): Split out clobber pattern is a logic
15588 insn on mask registers.
15589 (*k<logic><mode>): New.
15590 (*andhi_1): Extend to support mask regs.
15591 (*andqi_1): Extend to support mask regs.
15592 (kandn<mode>): New.
15593 (define_split): Split and-not to and and not if operands
15595 (*<code><mode>_1): Separate HI mode to new pattern...
15596 (*<code>hi_1): This.
15597 (*<code>qi_1): Extend to support mask regs.
15598 (kxnor<mode>): New.
15599 (kortestzhi): Ditto.
15600 (kortestchi): Ditto.
15602 (*one_cmpl<mode>2_1): Remove HImode and handle it...
15603 (*one_cmplhi2_1): ...Here, now with mask registers support.
15604 (*one_cmplqi2_1): Support new mask registers.
15605 (HI/QImode arithmetics splitter): Don't split if mask registers
15607 (HI/QImode not splitter): Ditto.
15608 * config/i386/predicated.md (mask_reg_operand): New.
15609 (general_reg_operand): Ditto.
15611 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
15613 * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
15614 * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
15616 2013-09-10 Jeff Law <law@redhat.com>
15618 PR tree-optimization/58380
15619 * tree-ssa-threadupdate.c (thread_block): Recognize another case
15620 of threading through a buried loop header.
15622 * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
15623 return value for single successor case.
15625 2013-09-10 Jan Hubicka <jh@suse.cz>
15627 * ipa-devirt.c (ipa_devirt): Enable with LTO.
15629 2013-09-10 Richard Earnshaw <rearnsha@arm.com>
15632 * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
15633 support conditional execution.
15634 (combine_vcvt_f64_<FCVTI32typename>): Likewise.
15636 2013-09-10 Vladimir Makarov <vmakarov@redhat.com>
15638 * lra.c (lra): Clear lra_optional_reload_pseudos before every
15640 * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
15641 Check destination too to check move insn.
15642 (undo_optional_reloads): Add check that the original peudo did not
15643 changed its allocation and the optional reload was inherited on last
15644 inheritance pass. Break loop after deciding to keep optional reload.
15645 (lra_undo_inheritance): Add check that inherited pseudo still in
15648 2013-09-10 James Greenhalgh <james.greenhalgh@arm.com>
15650 * config/aarch64/aarch64.md (generic_sched): New.
15651 * config/aarch64/aarch64-generic.md (load): Make conditional
15652 on generic_sched attribute.
15653 (nonload): Likewise.
15655 2013-09-10 Jan Hubicka <jh@suse.cz>
15657 * lto-cgraph.c: Include ipa-utils.h.
15658 (compute_ltrans_boundary): Also add possible targets into the boundary.
15660 2013-09-10 Jan Hubicka <jh@suse.cz>
15662 * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
15663 VAR_DECL of vtable rather than full expression.
15665 2013-09-10 Jan Hubicka <jh@suse.cz>
15666 Paolo Carlini <paolo.carlini@oracle.com>
15668 * cgraphunit.c (analyze_functions): Save input_location, set it
15669 to UNKNOWN_LOCATION and restore it at the end.
15671 2013-09-10 Martin Jambor <mjambor@suse.cz>
15673 * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
15674 represented by a thunk.
15676 2013-09-10 Jeff Law <law@redhat.com>
15678 PR tree-optimization/58343
15679 * tree-ssa-threadupdate.c (thread_block): Identify and disable
15680 jump threading requests through loop headers buried in the middle
15681 of a jump threading path.
15683 * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
15684 in return value/type.
15686 2013-09-10 Jakub Jelinek <jakub@redhat.com>
15688 PR rtl-optimization/58365
15689 * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
15690 resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
15693 2013-09-10 Richard Biener <rguenther@suse.de>
15695 * tree-data-ref.h (build_rdg): Drop all parameters but loop.
15696 * tree-data-ref.c (create_rdg_vertices): Collect all data
15697 references, signal failure to the caller, use data-ref API.
15698 (build_rdg): Compute data references only once. Maintain lifetime
15699 of data references and data dependences from within RDG.
15700 (free_rdg): Free dependence relations.
15701 * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
15702 inventing extra dependences.
15703 (distribute_loop): Update for RDG API changes.
15705 2013-09-10 Kai Tietz <ktietz@redhat.com>
15707 * doc/invoke.texi (fms-extensions): Document changed
15708 behavior for ms-abi targets.
15709 * config/i386/i386.c (ix86_option_override_internal):
15710 Set default value of option -fms-extension for ms-abi targets.
15712 2013-09-10 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
15714 * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
15716 2013-09-10 Alan Modra <amodra@gmail.com>
15719 * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
15721 2013-09-10 Alan Modra <amodra@gmail.com>
15723 * config/rs6000/predicates.md (add_cint_operand): New.
15724 (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
15725 * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
15726 using add_cint_operand.
15727 (largetoc_high_plus_aix): Likewise.
15729 2013-09-09 Jakub Jelinek <jakub@redhat.com>
15731 PR tree-optimization/58364
15732 * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
15733 BOOLEAN_TYPE, only invert in_p and continue with arg0 if
15734 the current range can't be an unconditional true or false.
15736 2013-09-09 James Greenhalgh <james.greenhalgh@arm.com>
15738 * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
15740 2013-09-09 Uros Bizjak <ubizjak@gmail.com>
15742 * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
15744 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
15747 * doc/invoke.texi (-Wdelete-incomplete): Document it.
15749 2013-09-09 Ian Bolton <ian.bolton@arm.com>
15751 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
15752 NO_REGS for immediate that can't be moved directly into FP_REGS.
15754 2013-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15756 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
15757 comparison with negated operand.
15758 * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
15761 2013-09-09 Richard Biener <rguenther@suse.de>
15763 PR middle-end/58326
15764 * cfgloopmanip.c (fix_bb_placements): When fixing the placement
15765 of a subloop record all its block as affecting loop-closed SSA form.
15767 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
15769 * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
15770 of an rtx/bitpos pair.
15771 (store_fixed_bit_field): Update accordingly.
15773 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
15775 * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
15777 * builtins.c (expand_errno_check): Likewise.
15778 * dwarf2cfi.c (init_return_column_size): Likewise.
15779 * except.c (sjlj_mark_call_sites): Likewise.
15780 * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
15781 * lra-constraints.c (emit_inc): Likewise.
15782 * ree.c (combine_set_extension): Likewise.
15783 * regmove.c (fixup_match_2): Likewise.
15784 * reload1.c (inc_for_reload): Likewise.
15786 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
15788 * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
15789 (force_to_mode, simplify_shift_const_1, simplify_comparison):
15790 Use gen_int_mode with the mode of the associated simplify_* call.
15791 * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
15792 * expmed.c (expand_shift_1): Likewise.
15793 * function.c (instantiate_virtual_regs_in_insn): Likewise.
15794 * loop-iv.c (iv_number_of_iterations): Likewise.
15795 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
15796 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
15798 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
15800 * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
15801 of the associated expand_* call.
15802 (asan_emit_stack_protection): Likewise.
15803 * builtins.c (round_trampoline_addr): Likewise.
15804 * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
15805 * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
15806 (emit_store_flag): Likewise.
15807 * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
15808 (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
15810 * function.c (instantiate_virtual_regs_in_insn): Likewise.
15811 * ifcvt.c (noce_try_store_flag_constants): Likewise.
15812 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
15813 * modulo-sched.c (generate_prolog_epilog): Likewise.
15814 * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
15815 (expand_ctz, expand_ffs, expand_unop): Likewise.
15817 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
15819 * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
15820 of the associated gen_rtx_* call.
15821 * caller-save.c (init_caller_save): Likewise.
15822 * combine.c (find_split_point, make_extraction): Likewise.
15823 (make_compound_operation): Likewise.
15824 * dwarf2out.c (mem_loc_descriptor): Likewise.
15825 * explow.c (plus_constant, probe_stack_range): Likewise.
15826 * expmed.c (expand_mult_const): Likewise.
15827 * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
15828 * reload1.c (init_reload): Likewise.
15829 * valtrack.c (cleanup_auto_inc_dec): Likewise.
15830 * var-tracking.c (adjust_mems): Likewise.
15831 * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
15832 rather than gen_rtx_fmt_ee.
15834 2013-09-09 Jan Hubicka <jh@suse.cz>
15836 PR middle-end/58294
15837 * value-prof.c (gimple_ic): Copy also abnormal edges.
15839 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
15841 * asan.c (asan_shadow_cst): Use gen_int_mode.
15843 2013-09-08 Jan Hubicka <jh@suse.cz>
15845 * ipa-profile.c: Add toplevel comment.
15846 (ipa_propagate_frequency_1): Be more conservative when profile is read.
15847 (contains_hot_call_p): New function.
15848 (ipa_propagate_frequency): Set frequencies based on counts when
15850 * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
15851 profile; do not tamper with profile after inlining if it is read.
15853 2013-09-08 Jan Hubicka <jh@suse.cz>
15855 * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
15858 2013-09-08 Jan Hubicka <jh@suse.cz>
15860 * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
15861 summary generation.
15863 2013-09-08 Jeff Law <law@redhat.com>
15866 * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
15869 2013-09-08 Andi Kleen <ak@linux.intel.com>
15871 * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
15873 2013-09-08 Jan Hubicka <jh@suse.cz>
15875 * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
15877 2013-09-08 Richard Sandiford <rdsandiford@googlemail.com>
15879 * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
15880 for non-debug insns.
15881 * lra.c (new_insn_reg): Take the containing insn as a parameter.
15882 Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
15883 (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
15886 2013-09-08 Jan Hubicka <jh@suse.cz>
15888 * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
15889 targets and devirtualize to BUILT_IN_UNREACHABLE.
15890 * timevar.def (TV_IPA_UNREACHABLE): New timevar.
15891 * ipa.c (walk_polymorphic_call_targets): New function.
15892 (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
15893 functions; use the new timevar.
15894 * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
15895 was removed from the program.
15896 (record_binfo): If BINFO corresponds to an anonymous namespace, we may
15897 not consider it in the walk when its vtable is dead.
15898 (possible_polymorphic_call_targets_1): Pass anonymous flag to
15900 (devirt_variable_node_removal_hook): New function.
15901 (possible_polymorphic_call_targets): Also register
15902 devirt_variable_node_removal_hook.
15903 (ipa_devirt): Do not do non-speculative devirtualization.
15904 (gate_ipa_devirt): One execute if devirtualizing speculatively.
15906 2013-09-08 Jan Hubicka <jh@suse.cz>
15908 * cgraph.h (varpool_node_hook, varpool_node_hook_list,
15909 varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
15910 varpool_remove_variable_insertion_hook): Declare.
15911 * varpool.c (varpool_node_hook_list): New structure.
15912 (first_varpool_node_removal_hook,
15913 first_varpool_variable_insertion_hook): New variables.
15914 (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
15915 varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
15916 varpool_remove_variable_insertion_hook,
15917 varpool_call_variable_insertion_hooks): New functions.
15918 (varpool_remove_node): Use it.
15920 2013-09-08 Paolo Carlini <paolo.carlini@oracle.com>
15923 * diagnostic.c (diagnostic_build_prefix): When s.file is
15924 "<built-in>" don't output line and column numbers.
15926 2013-09-06 Jan Hubicka <jh@suse.cz>
15928 * cgraphunit.c (expand_thunk): Get body before touching arguments.
15929 * lto-streamer-out.c: Stream thunks, too.
15930 * lto-streamer-in.c (input_function): Pop cfun here
15931 (lto_read_body): Instead of here.
15933 2013-09-06 Caroline Tice <cmtice@google.com>
15935 * doc/install.texi: Add documentation for the --enable-vtable-verify
15936 and the --disable-libvtv configure options.
15938 2013-09-06 Jeff Law <law@redhat.com>
15940 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
15941 edge implied equivalences into successor phis.
15943 2013-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
15945 * resource.c (mark_referenced_resources): Handle COND_EXEC.
15947 2013-09-06 Claudiu Zissulescu <claziss@synopsys.com>
15949 * resource.c (mark_target_live_regs): Compute resources taking
15950 into account if a call is predicated or not.
15952 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
15954 * toplev.c (output_stack_usage): Be prepared for suffixes created by
15955 the compiler in the function names.
15957 2013-09-06 Jan Hubicka <jh@suse.cz>
15959 PR middle-end/58094
15960 * ipa-inline.c (has_caller_p): New function.
15961 (want_inline_function_to_all_callers_p): Use it.
15962 (sum_callers, inline_to_all_callers): Break out from ...
15963 (ipa_inline): ... here.
15965 2013-09-06 Jan Hubicka <jh@suse.cz>
15967 * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
15968 only when AVX is enabled.
15970 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
15972 * config/aarch64/aarch64.md
15973 (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
15974 is fpsimd_<load/store>2.
15975 (load_pair<mode>): Likewise.
15976 (store_pair<mode>): Likewise.
15978 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
15980 * config/arm/types.md (type): Add "mrs" type.
15981 * config/aarch64/aarch64.md
15982 (aarch64_load_tp_hard): Make type "mrs".
15983 * config/arm/arm.md
15984 (load_tp_hard): Make type "mrs".
15985 * config/arm/cortex-a15.md: Update with new attributes.
15986 * config/arm/cortex-a5.md: Update with new attributes.
15987 * config/arm/cortex-a53.md: Update with new attributes.
15988 * config/arm/cortex-a7.md: Update with new attributes.
15989 * config/arm/cortex-a8.md: Update with new attributes.
15990 * config/arm/cortex-a9.md: Update with new attributes.
15991 * config/arm/cortex-m4.md: Update with new attributes.
15992 * config/arm/cortex-r4.md: Update with new attributes.
15993 * config/arm/fa526.md: Update with new attributes.
15994 * config/arm/fa606te.md: Update with new attributes.
15995 * config/arm/fa626te.md: Update with new attributes.
15996 * config/arm/fa726te.md: Update with new attributes.
15998 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16000 * config/aarch64/aarch64.md
16001 (*movti_aarch64): Use "multiple" for type where v8type is "move2".
16002 (*movtf_aarch64): Likewise.
16003 * config/arm/arm.md
16004 (thumb1_movdi_insn): Use "multiple" for type where more than one
16005 instruction is used for a move.
16006 (*arm32_movhf): Likewise.
16007 (*thumb_movdf_insn): Likewise.
16009 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16011 * config/arm/types.md (type): Rename fcpys to fmov.
16012 * config/arm/vfp.md
16013 (*arm_movsi_vfp): Rename type fcpys as fmov.
16014 (*thumb2_movsi_vfp): Likewise
16015 (*movhf_vfp_neon): Likewise
16016 (*movhf_vfp): Likewise
16017 (*movsf_vfp): Likewise
16018 (*thumb2_movsf_vfp): Likewise
16019 (*movsfcc_vfp): Likewise
16020 (*thumb2_movsfcc_vfp): Likewise
16021 * config/aarch64/aarch64-simd.md
16022 (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
16023 * config/aarch64/aarch64.md
16024 (*movsi_aarch64): Replace type mov_reg with fmovs.
16025 (*movdi_aarch64): Likewise
16026 (*movsf_aarch64): Likewise
16027 (*movdf_aarch64): Likewise
16029 (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
16030 * config/arm/iwmmxt.md
16031 (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
16032 * config/arm/arm1020e.md: Update with new attributes.
16033 * config/arm/cortex-a15-neon.md: Update with new attributes.
16034 * config/arm/cortex-a5.md: Update with new attributes.
16035 * config/arm/cortex-a53.md: Update with new attributes.
16036 * config/arm/cortex-a7.md: Update with new attributes.
16037 * config/arm/cortex-a8-neon.md: Update with new attributes.
16038 * config/arm/cortex-a9.md: Update with new attributes.
16039 * config/arm/cortex-m4-fpu.md: Update with new attributes.
16040 * config/arm/cortex-r4f.md: Update with new attributes.
16041 * config/arm/marvell-pj4.md: Update with new attributes.
16042 * config/arm/vfp11.md: Update with new attributes.
16044 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16046 * config/aarch64/aarch64.md
16047 (*madd<mode>): Fix type attribute.
16048 (*maddsi_uxtw): Likewise.
16049 (*msub<mode>): Likewise.
16050 (*msubsi_uxtw): Likewise.
16051 (<su_optab>maddsidi4): Likewise.
16052 (<su_optab>msubsidi4): Likewise.
16054 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16056 * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
16057 * config/arm/arm.md (core_cycles): Remove fdiv.
16058 * config/arm/vfp.md:
16059 (*sqrtsf2_vfp): Update for attribute changes.
16060 (*sqrtdf2_vfp): Likewise.
16061 * config/aarch64/aarch64.md:
16062 (sqrt<mode>2): Update for attribute changes.
16063 * config/arm/arm1020e.md: Update with new attributes.
16064 * config/arm/cortex-a15-neon.md: Update with new attributes.
16065 * config/arm/cortex-a5.md: Update with new attributes.
16066 * config/arm/cortex-a53.md: Update with new attributes.
16067 * config/arm/cortex-a7.md: Update with new attributes.
16068 * config/arm/cortex-a8-neon.md: Update with new attributes.
16069 * config/arm/cortex-a9.md: Update with new attributes.
16070 * config/arm/cortex-m4-fpu.md: Update with new attributes.
16071 * config/arm/cortex-r4f.md: Update with new attributes.
16072 * config/arm/marvell-pj4.md: Update with new attributes.
16073 * config/arm/vfp11.md: Update with new attributes.
16075 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16077 * config/arm/types.md
16078 (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
16079 * config/aarch64/aarch64.md
16080 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
16082 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
16083 (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
16084 (float<GPI:mode><GPF:mode>2): Likewise.
16085 * config/arm/vfp.md
16086 (*truncsisf2_vfp): Update with new attributes.
16087 (*truncsidf2_vfp): Likewise.
16088 (fixuns_truncsfsi2): Likewise.
16089 (fixuns_truncdfsi2): Likewise.
16090 (*floatsisf2_vfp): Likewise.
16091 (*floatsidf2_vfp): Likewise.
16092 (floatunssisf2): Likewise.
16093 (floatunssidf2): Likewise.
16094 (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
16095 (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
16096 * config/arm/arm1020e.md: Update with new attributes.
16097 * config/arm/cortex-a15-neon.md: Update with new attributes.
16098 * config/arm/cortex-a5.md: Update with new attributes.
16099 * config/arm/cortex-a53.md: Update with new attributes.
16100 * config/arm/cortex-a7.md: Update with new attributes.
16101 * config/arm/cortex-a8-neon.md: Update with new attributes.
16102 * config/arm/cortex-a9.md: Update with new attributes.
16103 * config/arm/cortex-m4-fpu.md: Update with new attributes.
16104 * config/arm/cortex-r4f.md: Update with new attributes.
16105 * config/arm/marvell-pj4.md: Update with new attributes.
16106 * config/arm/vfp11.md: Update with new attributes.
16108 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16110 * config/aarch64/arm_neon.h
16111 (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
16112 (vqtbx<1,2,3,4><q>_s8): Likewise.
16114 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16116 * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
16117 * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
16118 (add<mode>3): Add type attribute.
16119 (add<mode>3): Likewise.
16120 (usadd<mode>3): Likewise.
16121 (ssadd<mode>3): Likewise.
16122 (sub<mode>3): Likewise.
16123 (sub<mode>3): Likewise.
16124 (ussub<mode>3): Likewise.
16125 (sssub<mode>3): Likewise.
16126 (ssmulsa3): Likewise.
16127 (usmulusa3): Likewise.
16128 (arm_usatsihi): Likewise.
16129 * config/arm/vfp.md
16130 (*movdi_vfp): Add types for all instructions.
16131 (*movdi_vfp_cortexa8): Likewise.
16132 (*movhf_vfp_neon): Likewise.
16133 (*movhf_vfp): Likewise.
16134 (*movdf_vfp): Likewise.
16135 (*thumb2_movdf_vfp): Likewise.
16136 (*thumb2_movdfcc_vfp): Likewise.
16137 * config/arm/arm.md: Add type attribute to all insn patterns.
16138 (*thumb1_adddi3): Add type attribute.
16139 (*arm_adddi3): Likewise.
16140 (*adddi_sesidi_di): Likewise.
16141 (*adddi_zesidi_di): Likewise.
16142 (*thumb1_addsi3): Likewise.
16143 (addsi3_compare0): Likewise.
16144 (*addsi3_compare0_scratch): Likewise.
16145 (*compare_negsi_si): Likewise.
16146 (cmpsi2_addneg): Likewise.
16147 (*addsi3_carryin_<optab>): Likewise.
16148 (*addsi3_carryin_alt2_<optab>): Likewise.
16149 (*addsi3_carryin_clobercc_<optab>): Likewise.
16150 (*subsi3_carryin): Likewise.
16151 (*subsi3_carryin_const): Likewise.
16152 (*subsi3_carryin_compare): Likewise.
16153 (*subsi3_carryin_compare_const): Likewise.
16154 (*arm_subdi3): Likewise.
16155 (*thumb_subdi3): Likewise.
16156 (*subdi_di_zesidi): Likewise.
16157 (*subdi_di_sesidi): Likewise.
16158 (*subdi_zesidi_di): Likewise.
16159 (*subdi_sesidi_di): Likewise.
16160 (*subdi_zesidi_ze): Likewise.
16161 (thumb1_subsi3_insn): Likewise.
16162 (*arm_subsi3_insn): Likewise.
16163 (*anddi3_insn): Likewise.
16164 (*anddi_zesidi_di): Likewise.
16165 (*anddi_sesdi_di): Likewise.
16166 (*ne_zeroextracts): Likewise.
16167 (*ne_zeroextracts): Likewise.
16168 (*ite_ne_zeroextr): Likewise.
16169 (*ite_ne_zeroextr): Likewise.
16170 (*anddi_notdi_di): Likewise.
16171 (*anddi_notzesidi): Likewise.
16172 (*anddi_notsesidi): Likewise.
16173 (andsi_notsi_si): Likewise.
16174 (thumb1_bicsi3): Likewise.
16175 (*iordi3_insn): Likewise.
16176 (*iordi_zesidi_di): Likewise.
16177 (*iordi_sesidi_di): Likewise.
16178 (*thumb1_iorsi3_insn): Likewise.
16179 (*xordi3_insn): Likewise.
16180 (*xordi_zesidi_di): Likewise.
16181 (*xordi_sesidi_di): Likewise.
16182 (*arm_xorsi3): Likewise.
16183 (*andsi_iorsi3_no): Likewise.
16184 (*smax_0): Likewise.
16185 (*smax_m1): Likewise.
16186 (*arm_smax_insn): Likewise.
16187 (*smin_0): Likewise.
16188 (*arm_smin_insn): Likewise.
16189 (*arm_umaxsi3): Likewise.
16190 (*arm_uminsi3): Likewise.
16191 (*minmax_arithsi): Likewise.
16192 (*minmax_arithsi_): Likewise.
16193 (*satsi_<SAT:code>): Likewise.
16194 (arm_ashldi3_1bit): Likewise.
16195 (arm_ashrdi3_1bit): Likewise.
16196 (arm_lshrdi3_1bit): Likewise.
16197 (*arm_negdi2): Likewise.
16198 (*thumb1_negdi2): Likewise.
16199 (*arm_negsi2): Likewise.
16200 (*thumb1_negsi2): Likewise.
16201 (*negdi_extendsid): Likewise.
16202 (*negdi_zero_extend): Likewise.
16203 (*arm_abssi2): Likewise.
16204 (*thumb1_abssi2): Likewise.
16205 (*arm_neg_abssi2): Likewise.
16206 (*thumb1_neg_abss): Likewise.
16207 (one_cmpldi2): Likewise.
16208 (extend<mode>di2): Likewise.
16209 (*compareqi_eq0): Likewise.
16210 (*arm_extendhisi2addsi): Likewise.
16211 (*arm_movdi): Likewise.
16212 (*thumb1_movdi_insn): Likewise.
16213 (*arm_movt): Likewise.
16214 (*thumb1_movsi_insn): Likewise.
16215 (pic_add_dot_plus_four): Likewise.
16216 (pic_add_dot_plus_eight): Likewise.
16217 (tls_load_dot_plus_eight): Likewise.
16218 (*thumb1_movhi_insn): Likewise.
16219 (*thumb1_movsf_insn): Likewise.
16220 (*movdf_soft_insn): Likewise.
16221 (*thumb_movdf_insn): Likewise.
16222 (cbranchsi4_insn): Likewise.
16223 (cbranchsi4_scratch): Likewise.
16224 (*negated_cbranchsi4): Likewise.
16225 (*tbit_cbranch): Likewise.
16226 (*tlobits_cbranch): Likewise.
16227 (*tstsi3_cbranch): Likewise.
16228 (*cbranchne_decr1): Likewise.
16229 (*addsi3_cbranch): Likewise.
16230 (*addsi3_cbranch_scratch): Likewise.
16231 (*arm_cmpdi_insn): Likewise.
16232 (*arm_cmpdi_unsig): Likewise.
16233 (*arm_cmpdi_zero): Likewise.
16234 (*thumb_cmpdi_zero): Likewise.
16235 (*deleted_compare): Likewise.
16236 (*mov_scc): Likewise.
16237 (*mov_negscc): Likewise.
16238 (*mov_notscc): Likewise.
16239 (*cstoresi_eq0_thumb1_insn): Likewise.
16240 (cstoresi_nltu_thumb1): Likewise.
16241 (cstoresi_ltu_thu): Likewise.
16242 (thumb1_addsi3_addgeu): Likewise.
16243 (*arm_jump): Likewise.
16244 (*thumb_jump): Likewise.
16245 (*check_arch2): Likewise.
16246 (arm_casesi_internal): Likewise.
16247 (thumb1_casesi_dispatch): Likewise.
16248 (*arm_indirect_jump): Likewise.
16249 (*thumb1_indirect_jump): Likewise.
16251 (*and_scc): Likewise.
16252 (*ior_scc): Likewise.
16253 (*compare_scc): Likewise.
16254 (*cond_move): Likewise.
16255 (*cond_arith): Likewise.
16256 (*cond_sub): Likewise.
16257 (*cmp_ite0): Likewise.
16258 (*cmp_ite1): Likewise.
16259 (*cmp_and): Likewise.
16260 (*cmp_ior): Likewise.
16261 (*ior_scc_scc): Likewise.
16262 (*ior_scc_scc_cmp): Likewise.
16263 (*and_scc_scc): Likewise.
16264 (*and_scc_scc_cmp): Likewise.
16265 (*and_scc_scc_nod): Likewise.
16266 (*negscc): Likewise.
16267 (movcond_addsi): Likewise.
16268 (movcond): Likewise.
16269 (*ifcompare_plus_move): Likewise.
16270 (*if_plus_move): Likewise.
16271 (*ifcompare_move_plus): Likewise.
16272 (*if_move_plus): Likewise.
16273 (*ifcompare_arith_arith): Likewise.
16274 (*if_arith_arith): Likewise.
16275 (*ifcompare_arith_move): Likewise.
16276 (*if_arith_move): Likewise.
16277 (*ifcompare_move_arith): Likewise.
16278 (*if_move_arith): Likewise.
16279 (*ifcompare_move_not): Likewise.
16280 (*if_move_not): Likewise.
16281 (*ifcompare_not_move): Likewise.
16282 (*if_not_move): Likewise.
16283 (*ifcompare_shift_move): Likewise.
16284 (*if_shift_move): Likewise.
16285 (*ifcompare_move_shift): Likewise.
16286 (*if_move_shift): Likewise.
16287 (*ifcompare_shift_shift): Likewise.
16288 (*ifcompare_not_arith): Likewise.
16289 (*ifcompare_arith_not): Likewise.
16290 (*if_arith_not): Likewise.
16291 (*ifcompare_neg_move): Likewise.
16292 (*if_neg_move): Likewise.
16293 (*ifcompare_move_neg): Likewise.
16294 (*if_move_neg): Likewise.
16295 (prologue_thumb1_interwork): Likewise.
16296 (*cond_move_not): Likewise.
16297 (*sign_extract_onebit): Likewise.
16298 (*not_signextract_onebit): Likewise.
16299 (stack_tie): Likewise.
16300 (align_4): Likewise.
16301 (align_8): Likewise.
16302 (consttable_end): Likewise.
16303 (consttable_1): Likewise.
16304 (consttable_2): Likewise.
16305 (consttable_4): Likewise.
16306 (consttable_8): Likewise.
16307 (consttable_16): Likewise.
16308 (*thumb1_tablejump): Likewise.
16309 (prefetch): Likewise.
16310 (force_register_use): Likewise.
16311 (thumb_eh_return): Likewise.
16312 (load_tp_hard): Likewise.
16313 (load_tp_soft): Likewise.
16314 (tlscall): Likewise.
16315 (*arm_movtas_ze): Likewise.
16316 (*arm_rev): Likewise.
16317 (*arm_revsh): Likewise.
16318 (*arm_rev16): Likewise.
16319 * config/arm/thumb2.md
16320 (*thumb2_smaxsi3): Likewise.
16321 (*thumb2_sminsi3): Likewise.
16322 (*thumb32_umaxsi3): Likewise.
16323 (*thumb2_uminsi3): Likewise.
16324 (*thumb2_negdi2): Likewise.
16325 (*thumb2_abssi2): Likewise.
16326 (*thumb2_neg_abss): Likewise.
16327 (*thumb2_movsi_insn): Likewise.
16328 (tls_load_dot_plus_four): Likewise.
16329 (*thumb2_movhi_insn): Likewise.
16330 (*thumb2_mov_scc): Likewise.
16331 (*thumb2_mov_negs): Likewise.
16332 (*thumb2_mov_negs): Likewise.
16333 (*thumb2_mov_nots): Likewise.
16334 (*thumb2_mov_nots): Likewise.
16335 (*thumb2_movsicc_): Likewise.
16336 (*thumb2_movsfcc_soft_insn): Likewise.
16337 (*thumb2_indirect_jump): Likewise.
16338 (*thumb2_and_scc): Likewise.
16339 (*thumb2_ior_scc): Likewise.
16340 (*thumb2_ior_scc_strict_it): Likewise.
16341 (*thumb2_cond_move): Likewise.
16342 (*thumb2_cond_arith): Likewise.
16343 (*thumb2_cond_ari): Likewise.
16344 (*thumb2_cond_sub): Likewise.
16345 (*thumb2_negscc): Likewise.
16346 (*thumb2_movcond): Likewise.
16347 (thumb2_casesi_internal): Likewise.
16348 (thumb2_casesi_internal_pic): Likewise.
16349 (*thumb2_alusi3_short): Likewise.
16350 (*thumb2_mov<mode>_shortim): Likewise.
16351 (*thumb2_addsi_short): Likewise.
16352 (*thumb2_subsi_short): Likewise.
16353 (thumb2_addsi3_compare0): Likewise.
16354 (*thumb2_cbz): Likewise.
16355 (*thumb2_cbnz): Likewise.
16356 (*thumb2_one_cmplsi2_short): Likewise.
16357 (*thumb2_negsi2_short): Likewise.
16358 (*orsi_notsi_si): Likewise.
16359 * config/arm/arm1020e.md: Update with new attributes.
16360 * config/arm/arm1026ejs.md: Update with new attributes.
16361 * config/arm/arm1136jfs.md: Update with new attributes.
16362 * config/arm/arm926ejs.md: Update with new attributes.
16363 * config/arm/cortex-a15.md: Update with new attributes.
16364 * config/arm/cortex-a5.md: Update with new attributes.
16365 * config/arm/cortex-a53.md: Update with new attributes.
16366 * config/arm/cortex-a7.md: Update with new attributes.
16367 * config/arm/cortex-a8.md: Update with new attributes.
16368 * config/arm/cortex-a9.md: Update with new attributes.
16369 * config/arm/cortex-m4.md: Update with new attributes.
16370 * config/arm/cortex-r4.md: Update with new attributes.
16371 * config/arm/fa526.md: Update with new attributes.
16372 * config/arm/fa606te.md: Update with new attributes.
16373 * config/arm/fa626te.md: Update with new attributes.
16374 * config/arm/fa726te.md: Update with new attributes.
16376 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16378 * config/aarch64/aarch64-simd.md
16379 (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
16380 <vwx> iterator to ensure correct register choice.
16381 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
16382 (aarch64_sqdmull_n<mode>): Likewise.
16383 (aarch64_sqdmull2_n<mode>_internal): Likewise.
16384 * config/aarch64/arm_neon.h
16385 (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
16386 (vml<as><q>_n_<su>16): Likewise.
16387 (vml<as>l_high_lane<q>_<su>16): Likewise.
16388 (vml<as>l_high_n_<su>16): Likewise.
16389 (vml<as>l_lane<q>_<su>16): Likewise.
16390 (vml<as>l_n_<su>16): Likewise.
16391 (vmul<q>_lane<q>_<su>16): Likewise.
16392 (vmul<q>_n_<su>16): Likewise.
16393 (vmull_lane<q>_<su>16): Likewise.
16394 (vmull_n_<su>16): Likewise.
16395 (vmull_high_lane<q>_<su>16): Likewise.
16396 (vmull_high_n_<su>16): Likewise.
16397 (vqrdmulh<q>_n_s16): Likewise.
16399 2013-09-06 Tejas Belagod <tejas.belagod@arm.com>
16401 * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
16402 have the correct lane parameter.
16404 2013-09-06 Richard Biener <rguenther@suse.de>
16406 * cfganal.c (control_dependences::~control_dependences):
16407 Properly free all of the vector.
16409 2013-09-06 Kirill Yukhin <kirill.yukhin@intel.com>
16412 * config/i386/i386.c (ix86_conditional_register_usage):
16413 Proper initialize extended SSE registers.
16415 2013-09-06 Jan Hubicka <jh@suse.cz>
16417 PR tree-optimization/58311
16418 * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
16420 2013-09-06 Jan Hubicka <jh@suse.cz>
16422 * Makefile.in (tree-sra.o): Update dependencies.
16423 * tree-sra.c: Include ipa-utils.h
16424 (scan_function): Use recursive_call_p.
16425 (has_caller_p): New function.
16426 (cgraph_for_node_and_aliases): Count also callers of aliases.
16428 2013-09-06 Jan Hubicka <jh@suse.cz>
16430 PR middle-end/58094
16431 * cgraph.h (symtab_semantically_equivalent_p): Declare.
16432 * tree-tailcall.c: Include ipa-utils.h.
16433 (find_tail_calls): Use it.
16434 * ipa-pure-const.c (check_call): Likewise.
16435 * ipa-utils.c (recursive_call_p): New function.
16436 * ipa-utils.h (recursive_call_p): Dclare.
16437 * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
16438 (symtab_semantically_equivalent_p): New function.
16439 * Makefile.in (tree-tailcall.o): Update dependencies.
16441 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
16443 * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
16444 non-inlinable part.
16446 2013-09-06 Richard Biener <rguenther@suse.de>
16448 * lto-streamer.h (lto_global_var_decls): Remove.
16449 * Makefile.in (OBJS): Remove lto-symtab.o.
16450 (lto-symtab.o): Remove.
16451 (GTFILES): Remove lto-symtab.c
16452 * lto-symtab.c: Move to lto/
16454 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16456 * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
16457 (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
16458 (UNSPEC_FPINT_RINT): New constant definitions.
16459 (FPINT, fpint_name, fpint_roundingmode): New integer iterator
16460 definition with 2 attributes.
16461 ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
16462 ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
16465 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16467 * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
16468 ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
16469 Set the mnemonic attribute to "bcr_flush". Set the "z196prop"
16470 attribute to "z196_alone".
16471 * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
16474 2013-09-06 Richard Biener <rguenther@suse.de>
16476 * basic-block.h (class control_dependences): New.
16477 * tree-ssa-dce.c (control_dependence_map): Remove.
16479 (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
16480 (set_control_dependence_map_bit, clear_control_dependence_bitmap,
16481 find_pdom, find_control_dependence, find_all_control_dependences):
16483 (mark_control_dependent_edges_necessary,
16484 find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
16485 tree_dce_done, perform_tree_ssa_dce): Adjust.
16486 * cfganal.c (set_control_dependence_map_bit,
16487 clear_control_dependence_bitmap, find_pdom, find_control_dependence,
16488 find_all_control_dependences): Move from tree-ssa-dce.c and
16489 implement as methods of control_dependences class.
16490 (control_dependences::control_dependences): New.
16491 (control_dependences::~control_dependences): Likewise.
16492 (control_dependences::get_edges_dependent_on): Likewise.
16493 (control_dependences::get_edge): Likewise.
16495 2013-09-04 Jan Hubicka <jh@suse.cz>
16497 * tree.c (types_same_for_odr): Drop overactive check.
16498 * ipa-devirt.c (hash_type_name): Likewise.
16500 2013-09-04 Jan Hubicka <jh@suse.cz>
16502 * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
16503 (analyze_functions): ... here.
16505 2013-09-04 Jan Hubicka <jh@suse.cz>
16507 PR middle-end/58201
16508 * cgraphunit.c (analyze_functions): Clear AUX fields
16509 after processing; initialize assembler name has.
16511 2013-09-05 Jeff Law <law@redhat.com>
16513 * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
16514 from thread_around_empty_block. Record threading path into PATH.
16515 Recurse if threading through the initial block is successful.
16516 (thread_across_edge): Corresponding changes to slightly simplify.
16518 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
16520 * config/aarch64/aarch64.md
16521 (type): Remove frecpe, frecps, frecpx.
16522 (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
16523 fix to be a TARGET_SIMD instruction.
16524 (aarch64_frecps): Remove.
16525 * config/aarch64/aarch64-simd.md
16526 (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
16527 (aarch64_frecps<mode>): Handle all float/vector of float modes.
16529 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
16530 Sofiane Naci <sofiane.naci@arm.com>
16532 * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
16533 into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
16534 Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
16535 "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
16536 "logic_reg", "logics_reg", "rev". Expand "arlo_shift" into
16537 "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
16538 "logics_shift_imm". Expand "arlo_shift_reg" into "alu_shift_reg",
16539 "alus_shift_reg", "logic_shift_reg", "logics_shift_reg". Expand "clz"
16540 into "clz, "rbit". Rename "shift" to "shift_imm".
16541 * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
16542 changes. Update for attribute changes all occurrences of arlo_* and
16544 * config/arm/arm-fixed.md: Update for attribute changes
16545 all occurrences of arlo_* types.
16546 * config/arm/thumb2.md: Update for attribute changes all occurrences
16548 * config/arm/arm.c (xscale_sched_adjust_cost): (rtx insn, rtx
16549 (cortexa7_older_only): Likewise.
16550 (cortexa7_younger): Likewise.
16551 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
16552 (1020alu_shift_op): Likewise.
16553 (1020alu_shift_reg_op): Likewise.
16554 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
16555 (alu_shift_op): Likewise.
16556 (alu_shift_reg_op): Likewise.
16557 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
16558 (11_alu_shift_op): Likewise.
16559 (11_alu_shift_reg_op): Likewise.
16560 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
16561 (9_alu_shift_reg_op): Likewise.
16562 * config/arm/cortex-a15.md (cortex_a15_alu): Update for
16564 (cortex_a15_alu_shift): Likewise.
16565 (cortex_a15_alu_shift_reg): Likewise.
16566 * config/arm/cortex-a5.md (cortex_a5_alu): Update for
16568 (cortex_a5_alu_shift): Likewise.
16569 * config/arm/cortex-a53.md (cortex_a53_alu): Update for
16571 (cortex_a53_alu_shift): Likewise.
16572 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
16574 (cortex_a7_alu_reg): Likewise.
16575 (cortex_a7_alu_shift): Likewise.
16576 * config/arm/cortex-a8.md (cortex_a8_alu): Update for
16578 (cortex_a8_alu_shift): Likewise.
16579 (cortex_a8_alu_shift_reg): Likewise.
16580 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
16581 (cortex_a9_dp_shift): Likewise.
16582 * config/arm/cortex-m4.md (cortex_m4_alu): Update for
16584 * config/arm/cortex-r4.md
16585 (cortex_r4_alu): Update for attribute changes.
16586 (cortex_r4_mov): Likewise.
16587 (cortex_r4_alu_shift_reg): Likewise.
16588 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
16589 (526_alu_shift_op): Likewise.
16590 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
16591 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
16592 (626te_alu_shift_op): Likewise.
16593 * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
16594 (726te_alu_shift_op): Likewise.
16595 (726te_alu_shift_reg_op): Likewise.
16596 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
16597 (mp626_alu_shift_op): Likewise.
16598 * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
16599 (pj4_alu_conds): Likewise.
16600 (pj4_shift): Likewise.
16601 (pj4_shift_conds): Likewise.
16602 (pj4_alu_shift): Likewise.
16603 (pj4_alu_shift_conds): Likewise.
16604 * config/aarch64/aarch64.md: Update for attribute change
16605 all occurrences of arlo_* and shift* types.
16607 2013-09-05 Mike Stump <mikestump@comcast.net>
16609 * tree.h: Move documentation for tree_function_decl to tree-core.h
16610 with the declaration.
16612 2013-09-05 Peter Bergner <bergner@vnet.ibm.com>
16615 * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
16616 looking for widest mode.
16618 2013-09-05 Eric Botcazou <ebotcazou@adacore.com>
16620 * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
16622 2013-09-05 Richard Biener <rguenther@suse.de>
16624 PR tree-optimization/58137
16625 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
16626 Do not create vectors of pointers.
16627 * tree-vect-loop.c (get_initial_def_for_induction): Use proper
16628 types for the components of the vector initializer.
16629 * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
16630 allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
16632 2013-09-05 Martin Jambor <mjambor@suse.cz>
16634 * ipa-prop.c (remove_described_reference): Accept missing references,
16635 return false if that hppens, otherwise return true.
16636 (cgraph_node_for_jfunc): New function.
16637 (try_decrement_rdesc_refcount): Likewise.
16638 (try_make_edge_direct_simple_call): Use them.
16639 (ipa_edge_removal_hook): Remove references from rdescs.
16640 (ipa_edge_duplication_hook): Clone rdescs and their references
16641 when the new edge has the same caller as the old one.
16642 * cgraph.c (cgraph_resolve_speculation): Remove speculative
16643 reference before removing any edges.
16645 2013-09-05 Richard Earnshaw <rearnsha@arm.com>
16647 * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
16649 * thumb2.md (thumb2_storewb_parisi): New pattern.
16651 2013-09-05 Yufeng Zhang <yufeng.zhang@arm.com>
16653 * config/aarch64/aarch64-option-extensions.def: Add
16654 AARCH64_OPT_EXTENSION of 'crc'.
16655 * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
16656 (AARCH64_ISA_CRC): Ditto.
16657 * doc/invoke.texi (-march and -mcpu feature modifiers): Add
16658 description of the CRC extension.
16660 2013-09-05 Alexander Ivchenko <alexander.ivchenko@intel.com>
16662 * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
16663 * config/rs6000/linux.h: Ditto.
16664 * alpha/linux.h: Ditto.
16665 * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
16666 no_c99_libc_has_function.
16667 * config/c6x/uclinux-elf.h: Ditto.
16668 * config/lm32/uclinux-elf.h: Ditto.
16669 * config/m68k/uclinux.h: Ditto.
16670 * config/moxie/uclinux.h: Ditto.
16671 * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
16672 (crisv32-*-linux*, cris-*-linux*): Ditto.
16673 * config/bfin/bfin.c: Include "tm_p.h".
16675 2013-09-05 Richard Biener <rguenther@suse.de>
16677 * tree-vect-loop.c (vect_analyze_loop_operations): Properly
16678 check for a definition without a basic-block.
16680 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
16681 Sofiane Naci <sofiane.naci@arm.com>
16683 * config/aarch64/aarch64.md
16684 (*movti_aarch64): Rename r_2_f and f_2_r.
16685 (*movsf_aarch64): Likewise.
16686 (*movdf_aarch64): Likewise.
16687 (*movtf_aarch64): Likewise.
16688 (aarch64_movdi_<mode>low): Likewise.
16689 (aarch64_movdi_<mode>high): Likewise.
16690 (aarch64_mov<mode>high_di): Likewise.
16691 (aarch64_mov<mode>low_di): Likewise.
16692 (aarch64_movtilow_tilow): Likewise.
16693 * config/arm/arm.md (attribute "neon_type"): Delete. Move attribute
16694 values to config/arm/types.md
16695 (attribute "conds"): Update for attribute change.
16696 (anddi3_insn): Likewise.
16697 (iordi3_insn): Likewise.
16698 (xordi3_insn): Likewise.
16699 (one_cmpldi2): Likewise.
16700 * config/arm/types.md (type): Add Neon types.
16701 * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
16702 use "type" attribute.
16703 (movmisalign<mode>_neon_store): Likewise.
16704 (movmisalign<mode>_neon_load): Likewise.
16705 (vec_set<mode>_internal): Likewise.
16706 (vec_setv2di_internal): Likewise.
16707 (vec_extract<mode>): Likewise.
16708 (vec_extractv2di): Likewise.
16709 (add<mode>3_neon): Likewise.
16710 (adddi3_neon): Likewise.
16711 (sub<mode>3_neon): Likewise.
16712 (subdi3_neon): Likewise.
16713 (mul<mode>3_neon): Likewise.
16714 (mul<mode>3add<mode>_neon): Likewise.
16715 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
16716 (fma<VCVTF:mode>4)): Likewise.
16717 (fma<VCVTF:mode>4_intrinsic): Likewise.
16718 (fmsub<VCVTF:mode>4)): Likewise.
16719 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
16720 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
16721 (ior<mode>3): Likewise.
16722 (and<mode>3): Likewise.
16723 (anddi3_neon): Likewise.
16724 (orn<mode>3_neon): Likewise.
16725 (orndi3_neon): Likewise.
16726 (bic<mode>3_neon): Likewise.
16727 (bicdi3_neon): Likewise.
16728 (xor<mode>3): Likewise.
16729 (one_cmpl<mode>2): Likewise.
16730 (abs<mode>2): Likewise.
16731 (neg<mode>2): Likewise.
16732 (umin<mode>3_neon): Likewise.
16733 (umax<mode>3_neon): Likewise.
16734 (smin<mode>3_neon): Likewise.
16735 (smax<mode>3_neon): Likewise.
16736 (vashl<mode>3): Likewise.
16737 (vashr<mode>3_imm): Likewise.
16738 (vlshr<mode>3_imm): Likewise.
16739 (ashl<mode>3_signed): Likewise.
16740 (ashl<mode>3_unsigned): Likewise.
16741 (neon_load_count): Likewise.
16742 (ashldi3_neon_noclobber): Likewise.
16743 (signed_shift_di3_neon): Likewise.
16744 (unsigned_shift_di3_neon): Likewise.
16745 (ashrdi3_neon_imm_noclobber): Likewise.
16746 (lshrdi3_neon_imm_noclobber): Likewise.
16747 (widen_ssum<mode>3): Likewise.
16748 (widen_usum<mode>3): Likewise.
16749 (quad_halves_<code>v4si): Likewise.
16750 (quad_halves_<code>v4sf): Likewise.
16751 (quad_halves_<code>v8hi): Likewise.
16752 (quad_halves_<code>v16qi): Likewise.
16753 (reduc_splus_v2di): Likewise.
16754 (neon_vpadd_internal<mode>): Likewise.
16755 (neon_vpsmin<mode>): Likewise.
16756 (neon_vpsmax<mode>): Likewise.
16757 (neon_vpumin<mode>): Likewise.
16758 (neon_vpumax<mode>): Likewise.
16759 (ss_add<mode>_neon): Likewise.
16760 (us_add<mode>_neon): Likewise.
16761 (ss_sub<mode>_neon): Likewise.
16762 (us_sub<mode>_neon): Likewise.
16763 (neon_vadd<mode>_unspec): Likewise.
16764 (neon_vaddl<mode>): Likewise.
16765 (neon_vaddw<mode>): Likewise.
16766 (neon_vhadd<mode>): Likewise.
16767 (neon_vqadd<mode>): Likewise.
16768 (neon_vaddhn<mode>): Likewise.
16769 (neon_vmul<mode>): Likewise.
16770 (neon_vmla<mode>): Likewise.
16771 (neon_vmlal<mode>): Likewise.
16772 (neon_vmls<mode>): Likewise.
16773 (neon_vmlsl<mode>): Likewise.
16774 (neon_vqdmulh<mode>): Likewise.
16775 (neon_vqdmlal<mode>): Likewise.
16776 (neon_vqdmlsl<mode>): Likewise.
16777 (neon_vmull<mode>): Likewise.
16778 (neon_vqdmull<mode>): Likewise.
16779 (neon_vsub<mode>_unspec): Likewise.
16780 (neon_vsubl<mode>): Likewise.
16781 (neon_vsubw<mode>): Likewise.
16782 (neon_vqsub<mode>): Likewise.
16783 (neon_vhsub<mode>): Likewise.
16784 (neon_vsubhn<mode>): Likewise.
16785 (neon_vceq<mode>): Likewise.
16786 (neon_vcge<mode>): Likewise.
16787 (neon_vcgeu<mode>): Likewise.
16788 (neon_vcgt<mode>): Likewise.
16789 (neon_vcgtu<mode>): Likewise.
16790 (neon_vcle<mode>): Likewise.
16791 (neon_vclt<mode>): Likewise.
16792 (neon_vcage<mode>): Likewise.
16793 (neon_vcagt<mode>): Likewise.
16794 (neon_vtst<mode>): Likewise.
16795 (neon_vabd<mode>): Likewise.
16796 (neon_vabdl<mode>): Likewise.
16797 (neon_vaba<mode>): Likewise.
16798 (neon_vabal<mode>): Likewise.
16799 (neon_vmax<mode>): Likewise.
16800 (neon_vmin<mode>): Likewise.
16801 (neon_vpaddl<mode>): Likewise.
16802 (neon_vpadal<mode>): Likewise.
16803 (neon_vpmax<mode>): Likewise.
16804 (neon_vpmin<mode>): Likewise.
16805 (neon_vrecps<mode>): Likewise.
16806 (neon_vrsqrts<mode>): Likewise.
16807 (neon_vqabs<mode>): Likewise.
16808 (neon_vqneg<mode>): Likewise.
16809 (neon_vcls<mode>): Likewise.
16810 (clz<mode>2): Likewise.
16811 (popcount<mode>2): Likewise.
16812 (neon_vrecpe): Likewise.
16813 (neon_vrsqrte): Likewise.
16814 (neon_vget_lane<mode>_sext_internal): Likewise.
16815 (neon_vget_lane<mode>_zext_internal): Likewise.
16816 (neon_vdup_n<mode>): Likewise.
16817 (neon_vdup_nv2di): Likewise.
16818 (neon_vdpu_lane<mode>_internal): Likewise.
16819 (neon_vswp<mode>): Likewise.
16820 (float<mode><V_cvtto>2): Likewise.
16821 (floatuns<mode><V_cvtto>2): Likewise.
16822 (fix_trunc<mode><V_cvtto>)2): Likewise
16823 (fixuns_trunc<mode><V_cvtto)2): Likewise.
16824 (neon_vcvt<mode>): Likewise.
16825 (neon_vcvtv4sfv4hf): Likewise.
16826 (neon_vcvtv4hfv4sf): Likewise.
16827 (neon_vcvt_n<mode>): Likewise.
16828 (neon_vmovn<mode>): Likewise.
16829 (neon_vqmovn<mode>): Likewise.
16830 (neon_vqmovun<mode>): Likewise.
16831 (neon_vmovl<mode>): Likewise.
16832 (neon_vmul_lane<mode>): Likewise.
16833 (neon_vmull_lane<mode>): Likewise.
16834 (neon_vqdmull_lane<mode>): Likewise.
16835 (neon_vqdmulh_lane<mode>): Likewise.
16836 (neon_vmla_lane<mode>): Likewise.
16837 (neon_vmlal_lane<mode>): Likewise.
16838 (neon_vqdmlal_lane<mode>): Likewise.
16839 (neon_vmls_lane<mode>): Likewise.
16840 (neon_vmlsl_lane<mode>): Likewise.
16841 (neon_vqdmlsl_lane<mode>): Likewise.
16842 (neon_vext<mode>): Likewise.
16843 (neon_vrev64<mode>): Likewise.
16844 (neon_vrev32<mode>): Likewise.
16845 (neon_vrev16<mode>): Likewise.
16846 (neon_vbsl<mode>_internal): Likewise.
16847 (neon_vshl<mode>): Likewise.
16848 (neon_vqshl<mode>): Likewise.
16849 (neon_vshr_n<mode>): Likewise.
16850 (neon_vshrn_n<mode>): Likewise.
16851 (neon_vqshrn_n<mode>): Likewise.
16852 (neon_vqshrun_n<mode>): Likewise.
16853 (neon_vshl_n<mode>): Likewise.
16854 (neon_vqshl_n<mode>): Likewise.
16855 (neon_vqshlu_n<mode>): Likewise.
16856 (neon_vshll_n<mode>): Likewise.
16857 (neon_vsra_n<mode>): Likewise.
16858 (neon_vsri_n<mode>): Likewise.
16859 (neon_vsli_n<mode>): Likewise.
16860 (neon_vtbl1v8qi): Likewise.
16861 (neon_vtbl2v8qi): Likewise.
16862 (neon_vtbl3v8qi): Likewise.
16863 (neon_vtbl4v8qi): Likewise.
16864 (neon_vtbx1v8qi): Likewise.
16865 (neon_vtbx2v8qi): Likewise.
16866 (neon_vtbx3v8qi): Likewise.
16867 (neon_vtbx4v8qi): Likewise.
16868 (neon_vtrn<mode>_internal): Likewise.
16869 (neon_vzip<mode>_internal): Likewise.
16870 (neon_vuzp<mode>_internal): Likewise.
16871 (neon_vld1<mode>): Likewise.
16872 (neon_vld1_lane<mode>): Likewise.
16873 (neon_vld1_dup<mode>): Likewise.
16874 (neon_vld1_dupv2di): Likewise.
16875 (neon_vst1<mode>): Likewise.
16876 (neon_vst1_lane<mode>): Likewise.
16877 (neon_vld2<mode>): Likewise.
16878 (neon_vld2_lane<mode>): Likewise.
16879 (neon_vld2_dup<mode>): Likewise.
16880 (neon_vst2<mode>): Likewise.
16881 (neon_vst2_lane<mode>): Likewise.
16882 (neon_vld3<mode>): Likewise.
16883 (neon_vld3qa<mode>): Likewise.
16884 (neon_vld3qb<mode>): Likewise.
16885 (neon_vld3_lane<mode>): Likewise.
16886 (neon_vld3_dup<mode>): Likewise.
16887 (neon_vst3<mode>): Likewise.
16888 (neon_vst3qa<mode>): Likewise.
16889 (neon_vst3qb<mode>): Likewise.
16890 (neon_vst3_lane<mode>): Likewise.
16891 (neon_vld4<mode>): Likewise.
16892 (neon_vld4qa<mode>): Likewise.
16893 (neon_vld4qb<mode>): Likewise.
16894 (neon_vld4_lane<mode>): Likewise.
16895 (neon_vld4_dup<mode>): Likewise.
16896 (neon_vst4<mode>): Likewise.
16897 (neon_vst4qa<mode>): Likewise.
16898 (neon_vst4qb<mode>): Likewise.
16899 (neon_vst4_lane<mode>): Likewise.
16900 (neon_vec_unpack<US>_lo_<mode>): Likewise.
16901 (neon_vec_unpack<US>_hi_<mode>): Likewise.
16902 (neon_vec_<US>mult_lo_<mode>): Likewise.
16903 (neon_vec_<US>mult_hi_<mode>): Likewise.
16904 (neon_vec_<US>shiftl_<mode>): Likewise.
16905 (neon_unpack<US>_<mode>): Likewise.
16906 (neon_vec_<US>mult_<mode>): Likewise.
16907 (vec_pack_trunc_<mode>): Likewise.
16908 (neon_vec_pack_trunk_<mode>): Likewise.
16909 (neon_vabd<mode>_2): Likewise.
16910 (neon_vabd<mode>_3): Likewise.
16911 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
16912 (thumb2_movsi_vfp): Likewise.
16913 (movdi_vfp): Likewise.
16914 (movdi_vfp_cortexa8): Likewise.
16915 (movhf_vfp_neon): Likewise.
16916 (movhf_vfp): Likewiwse.
16917 (movsf_vfp): Likewiwse.
16918 (thumb2_movsf_vfp): Likewiwse.
16919 (movdf_vfp): Likewise.
16920 (thumb2_movdf_vfp): Likewise.
16921 (movsfcc_vfp): Likewise.
16922 (thumb2_movsfcc_vfp): Likewise.
16923 (movdfcc_vfp): Likewise.
16924 (thumb2_movdfcc_vfp): Likewise.
16925 * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
16926 * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
16927 (v10_v2c): Likewise.
16928 * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
16930 (cortex_a15_neon_int_2): Likewise.
16931 (cortex_a15_neon_int_3): Likewise.
16932 (cortex_a15_neon_int_4): Likewise.
16933 (cortex_a15_neon_int_5): Likewise.
16934 (cortex_a15_neon_vqneg_vqabs): Likewise.
16935 (cortex_a15_neon_vmov): Likewise.
16936 (cortex_a15_neon_vaba): Likewise.
16937 (cortex_a15_neon_vaba_qqq): Likewise.
16938 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16939 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
16940 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
16941 scalar_64_32_long_scalar): Likewise.
16942 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16943 (cortex_a15_neon_mla_qqq_8_16): Likewise.
16944 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
16945 lotype_qdd_64_32_long): Likewise.
16946 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
16947 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
16948 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
16949 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
16950 (cortex_a15_neon_shift_1): Likewise.
16951 (cortex_a15_neon_shift_2): Likewise.
16952 (cortex_a15_neon_shift_3): Likewise.
16953 (cortex_a15_neon_vshl_ddd): Likewise.
16954 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
16955 (cortex_a15_neon_vsra_vrsra): Likewise.
16956 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
16957 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
16958 (cortex_a15_neon_fp_vmul_ddd): Likewise.
16959 (cortex_a15_neon_fp_vmul_qqd): Likewise.
16960 (cortex_a15_neon_fp_vmla_ddd): Likewise.
16961 (cortex_a15_neon_fp_vmla_qqq): Likewise.
16962 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
16963 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
16964 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
16965 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
16966 (cortex_a15_neon_bp_simple): Likewise.
16967 (cortex_a15_neon_bp_2cycle): Likewise.
16968 (cortex_a15_neon_bp_3cycle): Likewise.
16969 (cortex_a15_neon_vld1_1_2_regs): Likewise.
16970 (cortex_a15_neon_vld1_3_4_regs): Likewise.
16971 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
16972 (cortex_a15_neon_vld2_4_regs): Likewise.
16973 (cortex_a15_neon_vld3_vld4): Likewise.
16974 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
16975 (cortex_a15_neon_vst1_3_4_regs): Likewise.
16976 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
16977 (cortex_a15_neon_vst3_vst4): Likewise.
16978 (cortex_a15_neon_vld1_vld2_lane): Likewise.
16979 (cortex_a15_neon_vld3_vld4_lane" 10
16980 (cortex_a15_neon_vst1_vst2_lane): Likewise.
16981 (cortex_a15_neon_vst3_vst4_lane): Likewise.
16982 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
16983 (cortex_a15_neon_ldm_2): Likewise.0
16984 (cortex_a15_neon_stm_2): Likewise.
16985 (cortex_a15_neon_mcr): Likewise.
16986 (cortex_a15_neon_mcr_2_mcrr): Likewise.
16987 (cortex_a15_neon_mrc): Likewise.
16988 (cortex_a15_neon_mrrc): Likewise.
16989 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
16991 (cortex_a15_alu_shift): Likewise.
16992 (cortex_a15_alu_shift_reg): Likewise.
16993 (cortex_a15_mult32): Likewise.
16994 (cortex_a15_mult64): Likewise.
16995 (cortex_a15_block): Likewise.
16996 (cortex_a15_branch): Likewise.
16997 (cortex_a15_load1): Likewise.
16998 (cortex_a15_load3): Likewise.
16999 (cortex_a15_store1): Likewise.
17000 (cortex_a15_store3): Likewise.
17001 (cortex_a15_call): Likewise.
17002 * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
17003 (cortex_a5_f2r): Likewise.
17004 * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
17006 (cortex_a53_f2r): Likewise.
17007 * config/arm/cortex-a7.md
17008 (cortex_a7_branch): Update for attribute change.
17009 (cortex_a7_call): Likewise.
17010 (cortex_a7_alu_imm): Likewise.
17011 (cortex_a7_alu_reg): Likewise.
17012 (cortex_a7_alu_shift): Likewise.
17013 (cortex_a7_mul): Likewise.
17014 (cortex_a7_load1): Likewise.
17015 (cortex_a7_store1): Likewise.
17016 (cortex_a7_load2): Likewise.
17017 (cortex_a7_store2): Likewise.
17018 (cortex_a7_load3): Likewise.
17019 (cortex_a7_store3): Likewise.
17020 (cortex_a7_load4): Likewise.
17021 (cortex_a7_store4): Likewise.
17022 (cortex_a7_fpalu): Likewise.
17023 (cortex_a7_fconst): Likewise.
17024 (cortex_a7_fpmuls): Likewise.
17025 (cortex_a7_neon_mul): Likewise.
17026 (cortex_a7_fpmacs): Likewise.
17027 (cortex_a7_neon_mla: Likewise.
17028 (cortex_a7_fpmuld: Likewise.
17029 (cortex_a7_fpmacd: Likewise.
17030 (cortex_a7_fpfmad: Likewise.
17031 (cortex_a7_fdivs: Likewise.
17032 (cortex_a7_fdivd: Likewise.
17033 (cortex_a7_r2f: Likewise.
17034 (cortex_a7_f2r: Likewise.
17035 (cortex_a7_f_flags: Likewise.
17036 (cortex_a7_f_loads: Likewise.
17037 (cortex_a7_f_loadd: Likewise.
17038 (cortex_a7_f_stores: Likewise.
17039 (cortex_a7_f_stored: Likewise.
17040 (cortex_a7_neon): Likewise.
17041 * config/arm/cortex-a8-neon.md
17042 (cortex_a8_neon_mrc): Update for attribute change.
17043 (cortex_a8_neon_mrrc): Likewise.
17044 (cortex_a8_neon_int_1): Likewise.
17045 (cortex_a8_neon_int_2): Likewise.
17046 (cortex_a8_neon_int_3): Likewise.
17047 (cortex_a8_neon_int_4): Likewise.
17048 (cortex_a8_neon_int_5): Likewise.
17049 (cortex_a8_neon_vqneg_vqabs): Likewise.
17050 (cortex_a8_neon_vmov): Likewise.
17051 (cortex_a8_neon_vaba): Likewise.
17052 (cortex_a8_neon_vaba_qqq): Likewise.
17053 (cortex_a8_neon_vsma): Likewise.
17054 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
17055 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
17056 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
17057 long_scalar): Likewise.
17058 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
17059 (cortex_a8_neon_mla_qqq_8_16): Likewise.
17060 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
17061 long_scalar_qdd_64_32_long): Likewise.
17062 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
17063 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
17064 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
17065 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
17066 (cortex_a8_neon_shift_1): Likewise.
17067 (cortex_a8_neon_shift_2): Likewise.
17068 (cortex_a8_neon_shift_3): Likewise.
17069 (cortex_a8_neon_vshl_ddd): Likewise.
17070 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
17071 (cortex_a8_neon_vsra_vrsra): Likewise.
17072 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
17073 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
17074 (cortex_a8_neon_fp_vsum): Likewise.
17075 (cortex_a8_neon_fp_vmul_ddd): Likewise.
17076 (cortex_a8_neon_fp_vmul_qqd): Likewise.
17077 (cortex_a8_neon_fp_vmla_ddd): Likewise.
17078 (cortex_a8_neon_fp_vmla_qqq): Likewise.
17079 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
17080 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
17081 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
17082 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
17083 (cortex_a8_neon_bp_simple): Likewise.
17084 (cortex_a8_neon_bp_2cycle): Likewise.
17085 (cortex_a8_neon_bp_3cycle): Likewise.
17086 (cortex_a8_neon_ldr): Likewise.
17087 (cortex_a8_neon_str): Likewise.
17088 (cortex_a8_neon_vld1_1_2_regs): Likewise.
17089 (cortex_a8_neon_vld1_3_4_regs): Likewise.
17090 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
17091 (cortex_a8_neon_vld2_4_regs): Likewise.
17092 (cortex_a8_neon_vld3_vld4): Likewise.
17093 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
17094 (cortex_a8_neon_vst1_3_4_regs): Likewise.
17095 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
17096 (cortex_a8_neon_vst3_vst4): Likewise.
17097 (cortex_a8_neon_vld1_vld2_lane): Likewise.
17098 (cortex_a8_neon_vld3_vld4_lane): Likewise.
17099 (cortex_a8_neon_vst1_vst2_lane): Likewise.
17100 (cortex_a8_neon_vst3_vst4_lane): Likewise.
17101 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
17102 (cortex_a8_neon_mcr): Likewise.
17103 (cortex_a8_neon_mcr_2_mcrr): Likewise.
17104 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
17105 * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
17107 (ca9_neon_mrrc): Likewise.
17108 (cortex_a9_neon_int_1): Likewise.
17109 (cortex_a9_neon_int_2): Likewise.
17110 (cortex_a9_neon_int_3): Likewise.
17111 (cortex_a9_neon_int_4): Likewise.
17112 (cortex_a9_neon_int_5): Likewise.
17113 (cortex_a9_neon_vqneg_vqabs): Likewise.
17114 (cortex_a9_neon_vmov): Likewise.
17115 (cortex_a9_neon_vaba): Likewise.
17116 (cortex_a9_neon_vaba_qqq): Likewise.
17117 (cortex_a9_neon_vsma): Likewise.
17118 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
17119 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
17120 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
17121 long_scalar): Likewise.
17122 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
17123 (cortex_a9_neon_mla_qqq_8_16): Likewise.
17124 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
17125 long_scalar_qdd_64_32_long): Likewise.
17126 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
17127 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
17128 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
17129 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
17130 (cortex_a9_neon_shift_1): Likewise.
17131 (cortex_a9_neon_shift_2): Likewise.
17132 (cortex_a9_neon_shift_3): Likewise.
17133 (cortex_a9_neon_vshl_ddd): Likewise.
17134 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
17135 (cortex_a9_neon_vsra_vrsra): Likewise.
17136 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
17137 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
17138 (cortex_a9_neon_fp_vsum): Likewise.
17139 (cortex_a9_neon_fp_vmul_ddd): Likewise.
17140 (cortex_a9_neon_fp_vmul_qqd): Likewise.
17141 (cortex_a9_neon_fp_vmla_ddd): Likewise.
17142 (cortex_a9_neon_fp_vmla_qqq): Likewise.
17143 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
17144 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
17145 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
17146 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
17147 (cortex_a9_neon_bp_simple): Likewise.
17148 (cortex_a9_neon_bp_2cycle): Likewise.
17149 (cortex_a9_neon_bp_3cycle): Likewise.
17150 (cortex_a9_neon_ldr): Likewise.
17151 (cortex_a9_neon_str): Likewise.
17152 (cortex_a9_neon_vld1_1_2_regs): Likewise.
17153 (cortex_a9_neon_vld1_3_4_regs): Likewise.
17154 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
17155 (cortex_a9_neon_vld2_4_regs): Likewise.
17156 (cortex_a9_neon_vld3_vld4): Likewise.
17157 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
17158 (cortex_a9_neon_vst1_3_4_regs): Likewise.
17159 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
17160 (cortex_a9_neon_vst3_vst4): Likewise.
17161 (cortex_a9_neon_vld1_vld2_lane): Likewise.
17162 (cortex_a9_neon_vld3_vld4_lane): Likewise.
17163 (cortex_a9_neon_vst1_vst2_lane): Likewise.
17164 (cortex_a9_neon_vst3_vst4_lane): Likewise.
17165 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
17166 (cortex_a9_neon_mcr): Likewise.
17167 (cortex_a9_neon_mcr_2_mcrr): Likewise.
17168 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
17169 (cortex_a9_fps): Likewise.
17170 * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
17172 (cortex_m4_fmuls): Likewise.
17173 * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
17175 (cortex_r4_mrc): Likewise.
17176 * config/arm/iterators.md: Update comment referring to neon_type.
17177 * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
17178 (iwmmxt_movsi_insn): Likewise.
17179 * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
17181 (pj4_core_to_vfp): Likewise.
17182 * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
17184 * config/arm/vfp11.md (vfp_fload): Update for attribute change.
17185 (vfp_fstore): Likewise.
17186 * doc/md.texi: Change references to neon_type to refer to type.
17188 2013-09-04 Dodji Seketeli <dodji@redhat.com>
17190 * tree.h (DECL_BUILT_IN): Fix typo in comment.
17192 2013-09-04 David Edelsohn <dje.gcc@gmail.com>
17194 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
17195 lglobl if not weak.
17197 2013-09-04 Easwaran Raman <eraman@google.com>
17199 PR middle-end/57370
17200 * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
17201 (build_and_add_sum): Use it.
17202 (appears_later_in_bb): Simplify code.
17204 2013-09-04 Teresa Johnson <tejohnson@google.com>
17206 * dumpfile.c (dump_finish): Don't close stderr/stdout.
17208 2013-09-04 James Greenhalgh <james.greenhalgh@arm.com>
17210 * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
17212 2013-09-04 Jan Hubicka <jh@suse.cz>
17214 * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
17215 * ipa-devirt.c: Include diganostic.h
17216 (odr_type_d): Add types and types_set.
17217 (hash_type_name): Work for types with vtables during LTO.
17218 (odr_hasher::remove): Fix comment; destroy types_set.
17219 (add_type_duplicate): New function,
17220 (get_odr_type): Use it.
17221 (dump_type_inheritance_graph): Dump type duplicates.
17222 * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
17224 * tree.c (types_same_for_odr): Give exact answers on types with
17227 2013-09-04 Dodji Seketeli <dodji@redhat.com>
17229 * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
17230 explaining their differences.
17232 2013-09-04 Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
17234 * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
17236 2013-09-03 Jeff Law <law@redhat.com>
17238 * tree-ssa-threadedge.c (thread_across_edge): Record entire path
17239 when not threading through a joiner block. Pass joiner/no joiner
17240 state to register_jump_thread.
17241 * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
17242 state from argument rather than implying on path length.
17243 Dump the entire jump thread path into debugging dump.
17244 * tree-flow.h (register_jump_thread): Update prototype.
17246 2013-08-29 Xinliang David Li <davidxl@google.com>
17248 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
17249 Remove a trivial gcc_assert.
17251 2013-08-29 Xinliang David Li <davidxl@google.com>
17253 * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
17254 * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
17255 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
17256 Delay base decl alignment adjustment.
17257 * tree-vectorizer.c (vect_destroy_datarefs): New function.
17258 * tree-vectorizer.h: New data structure.
17259 (set_dr_misalignment): New function.
17260 (dr_misalignment): Ditto.
17261 * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
17262 (vectorizable_load): Ditto.
17263 (ensure_base_align): New function.
17264 (vectorize_loops): Add dbg_cnt support.
17265 (execute_vect_slp): Ditto.
17266 * dbgcnt.def: New debug counter.
17267 * Makefile: New dependency.
17269 2013-09-03 Meador Inge <meadori@codesourcery.com>
17273 2013-08-30 Meador Inge <meadori@codesourcery.com>
17275 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
17277 2013-09-03 David Edelsohn <dje.gcc@gmail.com>
17279 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
17280 function descriptor.
17282 2013-09-03 Richard Biener <rguenther@suse.de>
17284 * tree-affine.c (add_elt_to_tree): Fix association issue,
17285 avoid useless converts and make sure to always return a
17286 properly typed result.
17288 2013-09-03 Richard Biener <rguenther@suse.de>
17290 PR middle-end/57656
17291 * fold-const.c (negate_expr_p): Fix division case.
17292 (negate_expr): Likewise.
17294 2013-09-03 Richard Biener <rguenther@suse.de>
17297 * tree-streamer-out.c: Include tm.h.
17298 * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
17300 2013-09-03 Jan Hubicka <jh@suse.cz>
17302 * tree-profile.c (tree_profiling): Cleanup CFG when done.
17304 2013-09-03 Alan Modra <amodra@gmail.com>
17306 * config.gcc (powerpc*-*-linux*): Add support for little-endian
17307 multilibs to big-endian target and vice versa.
17308 * config/rs6000/t-linux64: Use := assignment on all vars.
17309 (MULTILIB_EXTRA_OPTS): Remove fPIC.
17310 (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
17311 * config/rs6000/t-linux64le: New file.
17312 * config/rs6000/t-linux64bele: New file.
17313 * config/rs6000/t-linux64lebe: New file.
17315 2013-09-02 Jan Hubicka <jh@suse.cz>
17317 * ipa-inline-transform.c (inline_transform): Do not
17318 optimize_inline_calls when not optimizing.
17320 2013-09-02 Jan Hubicka <jh@suse.cz>
17322 * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
17323 duplicated nodes for assembler names.
17324 * symtab.c (symtab_unregister_node): Do not attempt to unlink
17325 hard registers from assembler name hash.
17327 2013-09-02 Jan Hubicka <jh@suse.cz>
17329 * ipa-split.c (execute_split_functions): Split externally visible
17330 functions called once.
17332 2013-09-02 Martin Jambor <mjambor@suse.cz>
17335 * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
17336 linked list. When finding the correct duplicate, also consider also
17337 the caller in additon to its inlined_to node.
17339 2013-09-02 James Greenhalgh <james.greenhalgh@arm.com>
17341 * config/aarch64/aarch64-simd-builtins.def
17342 (dup_lane_scalar): Remove.
17343 * config/aarch64/aarch64-simd.md
17344 (aarch64_simd_dup): Add 'w->w' alternative.
17345 (aarch64_dup_lane<mode>): Allow for VALL.
17346 (aarch64_dup_lane_scalar<mode>): Remove.
17347 (aarch64_dup_lane_<vswap_width_name><mode>): New.
17348 (aarch64_get_lane_signed<mode>): Add w->w altenative.
17349 (aarch64_get_lane_unsigned<mode>): Likewise.
17350 (aarch64_get_lane<mode>): Likewise.
17351 * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
17352 (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
17353 * config/aarch64/iterators.md (VSWAP_WIDTH): New.
17354 (VCON): Change container of V2SF.
17355 (vswap_width_name): Likewise.
17356 * config/aarch64/arm_neon.h
17357 (__aarch64_vdup_lane_any): New.
17358 (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
17359 (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
17360 (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
17362 2013-09-02 Eric Botcazou <ebotcazou@adacore.com>
17364 PR middle-end/56382
17365 * expr.c (emit_move_complex): Do not move complex FP values as parts if
17366 the source or the destination is a single hard register.
17368 2013-09-02 Richard Biener <rguenther@suse.de>
17370 PR middle-end/57511
17371 * tree-scalar-evolution.c (instantiate_scev_name): Allow
17374 2013-09-02 Richard Biener <rguenther@suse.de>
17376 * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
17377 arithmetic to sizetype.
17379 2013-09-02 Bin Cheng <bin.cheng@arm.com>
17381 * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
17382 Find auto-increment use both before and after candidate.
17384 2013-09-02 Marek Polacek <polacek@redhat.com>
17386 * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
17388 2013-09-01 Jan Hubicka <jh@suse.cz>
17390 * Makefile.in: Add ipa-profile.o
17391 (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
17392 * cgraph.c (struct cgraph_propagate_frequency_data,
17393 cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
17394 ipa-profile.c; replace cgraph_ by ipa_ prefix.
17395 * cgraph.h (cgraph_propagate_frequency): Remove.
17396 * ipa-inline-analysis.c: Include ipa-utils.h;
17397 drop duplicated cfgloop.h.
17398 (inline_update_callee_summaries): Update.
17399 * ipa-profile.c: New file.
17400 * ipa-utils.h (ipa_propagate_frequency): Declare.
17401 * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
17402 data-streamer.h, value-prof.h.
17403 (symtab_remove_unreachable_nodes): Update profile.
17404 (struct histogram_entry, histogram, histogram_pool, histogram_hash,
17405 account_time_size, cmp_counts, dump_histogram,
17406 ipa_profile_generate_summary, ipa_profile_write_summary,
17407 ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
17408 pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
17409 Move to ipa-profile.c.
17411 2013-09-01 John David Anglin <danglin@gcc.gnu.org>
17413 * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
17415 2013-09-01 Jan Hubicka <jh@suse.cz>
17417 * common.opt (fdevirtualize-speculatively): New function.
17418 * invoke.texi (fdevirtualize-speculatively): Document.
17419 * ipa-devirt.c: Include ipa-inline.h
17420 (likely_target_p): New function.
17421 (ipa_devirt): New function.
17422 (gate_ipa_devirt): New function.
17423 (pass_data_ipa_devirt): New static var.
17424 (pass_ipa_devirt): Likewise.
17425 (make_pass_ipa_devirt): New function.
17426 * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
17427 (common_handle_option): Disable devirtualization when
17428 value range profiling is available.
17429 * passes.def (pass_ipa_devirt): Add.
17430 * timever.def (TV_IPA_DEVIRT): New timevar.
17431 * tree-pass.h (make_pass_ipa_devirt):
17433 2013-09-01 Iain Sandoe <iain@codesourcery.com>
17435 * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
17436 include sanitize(undefined).
17438 2013-08-31 Diego Novillo <dnovillo@google.com>
17440 * Makefile.in (TREE_CORE_H): Define.
17442 (GTFILES): Add tree-core.h.
17443 * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
17445 * tree-core.h: New file.
17446 Move all data structures, enum, typedefs, global
17447 declarations and constants from ...
17448 * tree.h: ... here.
17450 2013-08-31 Jan Hubicka <jh@suse.cz>
17452 * bulitins.c (expand_builtin): Do not early exit for gcov
17453 instrumented functions.
17455 2013-08-31 Marek Polacek <polacek@redhat.com>
17457 * ubsan.c: Include tm_p.h.
17459 2013-08-31 Jan Hubicka <jh@suse.cz>
17461 * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
17464 * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
17465 * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
17466 * tree-cfg.c (verify_gimple_label): ... here.
17467 * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
17468 (ipa_merge_profiles): New function.
17469 * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
17470 (lto_input_function_body): Likewise.
17471 * ipa-utils.h (ipa_merge_profiles): Declare.
17472 * lto-streamer.h (lto_input_function_body): Update prototype.
17473 (emit_label_in_global_context_p): Remove.
17474 * lto-symtab.c: Include ipa-utils.h
17475 (lto_cgraph_replace_node): Use ipa_merge_profiles.
17477 2013-08-31 Jan Hubicka <jh@suse.cz>
17479 * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
17481 2013-08-31 Jan Hubicka <jh@suse.cz>
17483 * basic-block.h (apply_scale): Make scale parmeter gcov_type.
17485 2013-08-31 Uros Bizjak <ubizjak@gmail.com>
17487 * config/alpha/alpha.c (alpha_emit_conditional_move): Update
17488 "cmp" RTX before signed_comparison_operator check to account
17489 for "code" changes.
17491 2013-08-30 Jan Hubicka <jh@suse.cz>
17493 * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
17494 (detect_type_change_1): Rename to ...
17495 (detect_type_change): ... this one; early return on non-polymorphic
17497 (detect_type_change_ssa): Add comp_type parameter; update
17498 use of detect_type_change.
17499 (compute_complex_assign_jump_func): Add param_type parameter;
17500 update use of detect_type_change_ssa.
17501 (compute_complex_ancestor_jump_func): Likewise.
17502 (ipa_get_callee_param_type): New function.
17503 (ipa_compute_jump_functions_for_edge): Compute parameter type;
17504 update calls to the jump function computation functions.
17506 2013-08-30 Teresa Johnson <tejohnson@google.com>
17507 Steven Bosscher <steven@gcc.gnu.org>
17509 * cfgrtl.c (fixup_new_cold_bb): New routine.
17510 (commit_edge_insertions): Invoke fixup_partitions.
17511 (find_partition_fixes): New routine.
17512 (fixup_partitions): Ditto.
17513 (verify_hot_cold_block_grouping): Update comments.
17514 (rtl_verify_edges): Invoke find_partition_fixes.
17515 (rtl_verify_bb_pointers): Update comments.
17516 (rtl_verify_bb_layout): Ditto.
17517 * basic-block.h (probably_never_executed_edge_p): Declare.
17518 (fixup_partitions): Ditto.
17519 * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
17520 * bb-reorder.c (sanitize_hot_paths): New function.
17521 (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
17522 sanitize_hot_paths.
17523 * predict.c (probably_never_executed_edge_p): New routine.
17524 * cfg.c (check_bb_profile): Add partition insanity warnings.
17526 2013-08-30 Meador Inge <meadori@codesourcery.com>
17528 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
17530 2013-08-30 Marek Polacek <polacek@redhat.com>
17532 * Makefile.in (ubsan.o): Add.
17533 (c-family/c-ubsan.o): Add.
17534 (builtins.o): Add ubsan.h dependency.
17535 * ubsan.h: New file.
17536 * ubsan.c: New file.
17537 * common.opt: Add -fsanitize=undefined option.
17538 (flag_sanitize): Add variable.
17539 (fsanitize=): Add option. Add Driver.
17540 (fsanitize=thread): Remove option.
17541 (fsanitize=address): Likewise.
17542 (static-libubsan): New option.
17543 * doc/invoke.texi: Document the new flag and -static-libubsan.
17544 * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
17545 (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
17546 * builtin-attrs.def (ATTR_COLD): Define.
17547 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
17548 * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
17549 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
17550 * flag-types.h (sanitize_code): New enum.
17551 * opts.c (common_handle_option): Parse command line arguments
17552 of -fsanitize=. Add -fsanitize=unreachable option.
17553 * varasm.c (get_variable_section): Adjust.
17554 (assemble_noswitch_variable): Likewise.
17555 (assemble_variable): Likewise.
17556 (output_constant_def_contents): Likewise.
17557 (categorize_decl_for_section): Likewise.
17558 (place_block_symbol): Likewise.
17559 (output_object_block): Likewise.
17560 * builtins.def: Likewise.
17561 * toplev.c (compile_file): Likewise.
17562 (process_options): Likewise.
17563 * cppbuiltin.c: Likewise.
17564 * tsan.c (tsan_pass): Likewise.
17565 (tsan_gate): Likewise.
17566 (tsan_gate_O0): Likewise.
17567 * cfgexpand.c (partition_stack_vars): Likewise.
17568 (expand_stack_vars): Likewise.
17569 (defer_stack_allocation): Likewise.
17570 (expand_used_vars): Likewise.
17571 * cfgcleanup.c (old_insns_match_p): Likewise.
17572 * asan.c (asan_finish_file): Likewise.
17573 (asan_instrument): Likewise.
17574 (gate_asan): Likewise.
17575 (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
17576 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
17577 (asan_global_struct): Use pointer_sized_int_node instead
17578 calling build_nonstandard_integer_type.
17579 (initialize_sanitizer_builtins): Likewise.
17580 (asan_finish_file): Likewise.
17581 * gcc.c: Document %{%:function(args):X}.
17582 (static_spec_functions): Add sanitize.
17583 (handle_spec_function): Add retval_nonnull argument and if non-NULL,
17584 store funcval != NULL there.
17585 (do_spec_1): Adjust handle_spec_function caller.
17586 (handle_braces): Allow %:function(args) as condition.
17587 (sanitize_spec_function): New function.
17588 (ADD_STATIC_LIBUBSAN_LIBS): Define.
17589 (LIBUBSAN_SPEC): Likewise.
17590 (LIBUBSAN_EARLY_SPEC): Likewise.
17591 (SANITIZER_SPEC): Handle libubsan.
17592 (SANITIZER_EARLY_SPEC): Likewise.
17593 * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
17594 instead of fsanitize=address.
17595 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
17596 instead of fsanitize=address*.
17597 * builtins.c: Include ubsan.h.
17598 (fold_builtin_0): Instrument __builtin_unreachable.
17599 * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
17600 instead of flag_asan.
17601 * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
17602 (pointer_sized_int_node): Define.
17603 * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
17605 2013-08-30 Mike Stump <mikestump@comcast.net>
17607 * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
17610 2013-08-29 Jan Hubicka <jh@suse.cz>
17612 * cgraph.c (cgraph_function_body_availability): Handle weakref
17614 * passes.def: Remove pass_fixup_cfg.
17615 * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
17616 track when we need to remove functions.
17617 (gate_ipa_inline): Execute inlining always; add comment why.
17618 (pass_data_ipa_inline): Remove TODO_remove_functions.
17619 * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
17620 do not produce summaries.
17621 * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
17622 (symtab_nonoverwritable_alias): Assert we are not called on weakref.
17623 * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
17624 constant pool and vtable.
17626 2013-08-30 Tejas Belagod <tejas.belagod@arm.com>
17628 * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
17629 New arm_neon.h's internal macros to specify 64-bit constants.
17630 Avoid using stdint.h's macros.
17632 2013-08-30 Joern Rennecke <joern.rennecke@embecosm.com>
17634 * recog.c (verify_changes): Verify that changes[i].old is non-zero
17635 before applying REG_P.
17637 2013-08-30 Jakub Jelinek <jakub@redhat.com>
17639 PR tree-optimization/58277
17640 * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
17641 after seeing too many stmts with vdef in between dombb and current
17642 bb, invalidate everything.
17644 2013-08-30 Richard Biener <rguenther@suse.de>
17646 * fold-const.c (fold_single_bit_test): Fix overflow test.
17648 2013-08-30 Eric Botcazou <ebotcazou@adacore.com>
17650 * function.c (assign_parm_setup_reg): For a parameter passed by pointer
17651 and which can live in a register, always retrieve the value on entry.
17652 * var-tracking.c (add_stores): Treat the copy on entry for a parameter
17653 passed by invisible reference specially.
17654 (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
17655 (vt_add_function_parameter): Correctly deal with a parameter passed by
17656 invisible reference.
17658 2013-08-30 Jan Hubicka <jh@suse.cz>
17660 * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
17662 2013-08-30 Richard Biener <rguenther@suse.de>
17664 PR tree-optimization/58228
17665 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
17666 allow invariant loads in nested loop vectorization.
17668 2013-08-30 Richard Biener <rguenther@suse.de>
17670 PR tree-optimization/58223
17671 * tree-loop-distribution.c (has_anti_dependence): Rename to ...
17672 (has_anti_or_output_dependence): ... this and adjust to also
17673 look for output dependences.
17674 (mark_nodes_having_upstream_mem_writes): Adjust.
17675 (rdg_flag_uses): Likewise.
17677 2013-08-30 Richard Biener <rguenther@suse.de>
17679 PR tree-optimization/58010
17680 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
17681 assert that we have a loop-closed PHI.
17683 2013-08-29 Jan Hubicka <jh@suse.cz>
17685 * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
17686 * cgraph.c (cgraph_release_function_body): Free decl_in_state.
17687 * lto-section-in.c (lto_free_function_in_decl_state): New function.
17688 (lto_free_function_in_decl_state_for_node): New function.
17690 2013-08-29 Xinliang David Li <davidxl@google.com>
17692 * loop-unroll.c (report_unroll_peel): Minor message change.
17693 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
17694 Emit alignment peeling message with default -fopt-info.
17695 (vect_loop_versioning): Emit loop version info message.
17696 * tree-vectorizer.c (vectorize_loops): Minor message change.
17697 (execute_vect_slp): Ditto.
17699 2013-08-29 Eric Botcazou <ebotcazou@adacore.com>
17701 * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
17702 of the clone from the DECL_NAME of the original function.
17704 2013-08-29 Oleg Endo <olegendo@gcc.gnu.org>
17706 * passes.c (register_pass): Add overload.
17707 * tree-pass.h (register_pass): Forward declare it. Add comment.
17709 2013-08-29 Jan Hubicka <jh@suse.cz>
17711 * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
17712 DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
17713 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
17714 DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
17715 (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
17716 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
17717 Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
17718 (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
17720 2013-08-29 Teresa Johnson <tejohnson@google.com>
17722 * dumpfile.c (dump_loc): Output column number.
17723 * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
17724 * doc/invoke.texi: Document optall -fopt-info flag.
17725 * profile.c (read_profile_edge_counts): Use new dump framework.
17726 (compute_branch_probabilities): Ditto.
17727 * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
17728 when pass not in any opt group.
17729 * pass_manager.h (pass_manager::get_pass_profile): New method.
17730 * value-prof.c (check_counter): Use new dump framework.
17731 (check_ic_target): Ditto.
17732 * coverage.c (get_coverage_counts): Ditto.
17733 (coverage_init): Setup new dump framework.
17735 2013-08-29 Richard Biener <rguenther@suse.de>
17737 PR tree-optimization/58246
17738 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
17739 handle the dominance check inside a basic-block.
17741 2013-08-29 Richard Biener <rguenther@suse.de>
17743 PR middle-end/57287
17744 * tree-ssa-copy.c (may_propagate_copy): Allow propagating
17745 of default defs that appear in abnormal PHI nodes.
17747 2013-08-29 Richard Biener <rguenther@suse.de>
17749 PR tree-optimization/57685
17750 * tree-vrp.c (register_edge_assert_for_1): Recurse only for
17751 single-use operands to avoid exponential complexity.
17753 2013-08-28 Dehao Chen <dehao@google.com>
17755 * ipa-inline.c (edge_badness): Fix integer underflow.
17757 2013-08-28 Uros Bizjak <ubizjak@gmail.com>
17759 * gtm-builtins.def (_ITM_free): Declare leaf.
17761 2013-08-28 Jakub Jelinek <jakub@redhat.com>
17764 * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
17765 (*tls_local_dynamic_base_64_largepic): Likewise.
17766 (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
17767 Remove predicate from call operand.
17768 * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
17769 return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
17771 2013-08-28 Jeff Law <law@redhat.com>
17773 * tree-ssa-threadedge.c (thread_around_empty_block): Remove
17774 checks for the number of predecessors and successors allowed.
17775 * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
17776 which require copying a joiner block if there is a request which
17777 is a subpath that requires no joiner block copying.
17779 2013-08-28 Jan Hubicka <jh@suse.cz>
17781 * lto-streamer-out.c (DFS_write_tree_body): Drop
17782 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
17783 (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
17784 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
17785 * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
17786 Do not read DECL_ERROR_ISSUED.
17787 (unpack_ts_decl_with_vis_value_fields): Do not read
17789 (lto_input_ts_binfo_tree_pointers): Do not read
17790 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
17791 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
17792 write DECL_ERROR_ISSUED..
17793 (pack_ts_decl_with_vis_value_fields): Do not write
17795 (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
17796 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
17797 * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
17798 * tree.h (tree_decl_common): Update comment.
17799 (DECL_ERROR_ISSUED): Remove.
17801 2013-08-28 Jakub Jelinek <jakub@redhat.com>
17803 PR middle-end/58257
17804 * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
17806 2013-08-28 Jan Hubicka <jh@suse.cz>
17808 * builtins.def (free): Declare leaf.
17810 2013-08-27 David Malcolm <dmalcolm@redhat.com>
17812 * gdbhooks.py: New.
17813 * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
17814 * configure: Regenerate.
17816 2013-08-27 Martin Jambor <mjambor@suse.cz>
17818 * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
17819 (ipa_ancestor_jf_data): Likewise.
17820 (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
17821 (ipa_get_jf_pass_through_type_preserved): New function.
17822 (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
17823 (ipa_get_jf_ancestor_type_preserved): New function.
17824 * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
17825 (ipa_get_jf_ancestor_result): Likewise.
17826 (propagate_vals_accross_pass_through): Use
17827 ipa_get_jf_pass_through_result to do all the value mappings.
17828 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
17829 type_preserved flag.
17830 (ipa_set_jf_cst_copy): New function.
17831 (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
17832 (ipa_set_jf_arith_pass_through): Likewise.
17833 (ipa_set_ancestor_jf): Likewise.
17834 (compute_complex_assign_jump_func): Set type_preserved instead of
17836 (ipa_compute_jump_functions_for_edge): Likewise.
17837 (combine_known_type_and_ancestor_jfs): Honor type_preserved.
17838 (update_jump_functions_after_inlining): Update type_preserved.
17839 Explicitely create jump functions when combining one with pass_through.
17840 (ipa_write_jump_function): Stream the type_preserved flags.
17841 (ipa_read_jump_function): Likewise.
17843 2013-08-27 Jakub Jelinek <jakub@redhat.com>
17844 Aldy Hernandez <aldyh@redhat.com>
17846 * Makefile.in (omp-low.o): Depend on $(TARGET_H).
17847 * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
17848 * function.h (struct function): Add has_force_vect_loops and
17850 * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
17851 * gimple.c (gimple_build_omp_critical): Add KIND argument and
17853 * gimple.def: Update CLAUSES comments.
17854 * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
17855 (gimple_build_omp_for): Add argument to prototype.
17856 (gimple_omp_for_kind): New.
17857 (gimple_omp_for_set_kind): New.
17858 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
17859 GOVD_DATA_SHARE_CLASS.
17860 (enum omp_region_type): Add ORT_SIMD.
17861 (gimple_add_tmp_var): Handle ORT_SIMD.
17862 (gimplify_var_or_parm_decl): Same.
17863 (is_gimple_stmt): Same.
17864 (omp_firstprivatize_variable): Same.
17865 (omp_add_variable): Only use splay_tree_insert if lookup failed.
17866 (omp_notice_variable): Handle ORT_SIMD.
17867 (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
17868 (omp_check_private): Handle ORT_SIMD.
17869 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
17870 OMP_CLAUSE_SAFELEN.
17871 (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
17872 Handle OMP_CLAUSE_LASTPRIVATE.
17873 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
17874 OMP_CLAUSE_SAFELEN.
17875 (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
17876 (gimplify_expr): Handle OMP_SIMD.
17877 * internal-fn.c (expand_GOMP_SIMD_LANE): New.
17878 (expand_GOMP_SIMD_VF): New.
17879 (expand_GOMP_SIMD_LAST_LANE): New.
17880 * internal-fn.def (GOMP_SIMD_LANE): New.
17881 (GOMP_SIMD_VF): New.
17882 (GOMP_SIMD_LAST_LANE): New.
17883 * omp-low.c: Include target.h.
17884 (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
17885 OMP_CLAUSE_SAFELEN.
17886 (check_omp_nesting_restrictions): Same.
17888 (lower_rec_simd_input_clauses): New.
17889 (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
17891 (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
17892 GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
17893 (expand_omp_build_assign): New.
17894 (expand_omp_for_init_counts): New.
17895 (expand_omp_for_init_vars): New.
17896 (extract_omp_for_update_vars): New.
17897 (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
17898 and rewrite accordingly.
17899 (expand_omp_simd): New.
17900 (expand_omp_for): Use expand_omp_simd.
17901 (lower_omp_for_lastprivate): Unshare vinit when appropriate.
17902 (lower_omp_for): Do not lower the body.
17903 * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
17904 in their own loops.
17905 * tree-flow.h (find_omp_clause): Remove prototype.
17906 * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
17907 forcing vectorization of the loop, or if flag_tree_vectorize.
17908 (gate_tree_if_conversion): Similarly.
17909 * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
17910 gimple_build_omp_for.
17911 (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
17912 * tree-parloops (create_parallel_loop): Pass kind argument to
17913 gimple_build_omp_for.
17914 * tree-pretty-print.c (dump_omp_clause): Add cases for
17915 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
17916 OMP_CLAUSE__SIMDUID_.
17917 (dump_generic_node): Handle OMP_SIMD.
17918 * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
17919 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
17920 unroll OMP_SIMD loops here.
17921 * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
17922 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
17924 (vect_analyze_data_refs): Handle simd loops.
17925 * tree-vect-loop.c (vectorizable_live_operation): Handle
17927 * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
17928 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
17929 (vectorizable_load): Same.
17930 * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
17931 (struct simduid_to_vf): New.
17932 (simduid_to_vf::hash): New.
17933 (simduid_to-vf::equal): New.
17934 (struct simd_array_to_simduid): New.
17935 (simd_array_to_simduid::hash): New.
17936 (simd_array_to_simduid::equal): New.
17937 (adjust_simduid_builtins): New.
17938 (struct note_simd_array_uses_struct): New.
17939 (note_simd_array_uses_cb): New.
17940 (note_simd_array_uses): New.
17941 (vectorize_loops): Handle simd hints and adjust simd builtins
17943 * tree-vectorizer.h (struct _stmt_vec_info): Add
17944 simd_lane_access_p field.
17945 (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
17946 * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
17947 OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
17948 (omp_clause_code_name): Same.
17949 (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
17950 OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
17951 * tree.def (OMP_SIMD): New entry.
17952 * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
17953 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
17954 (OMP_CLAUSE_DECL): Adjust range for new clauses.
17955 (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
17956 (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
17957 (OMP_CLAUSE_LINEAR_STEP): New.
17958 (OMP_CLAUSE_SAFELEN_EXPR): New.
17959 (OMP_CLAUSE__SIMDUID__DECL): New.
17960 (find_omp_clause): New prototype.
17962 2013-08-27 H.J. Lu <hongjiu.lu@intel.com>
17964 * config/i386/driver-i386.c (host_detect_local_cpu): Update
17965 Haswell processor detection.
17967 2013-08-27 Christian Widmer <shadow@umbrox.de>
17970 * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
17971 of Ivy Bridge and Haswell processors. Assume core-avx2 for unknown
17972 AVX2 capable processors.
17974 2013-08-27 Tejas Belagod <tejas.belagod@arm.com>
17976 * config/aarch64/arm_neon.h: Replace all inline asm implementations
17977 of vget_low_* with implementations in terms of other intrinsics.
17979 2013-08-27 Marc Glisse <marc.glisse@inria.fr>
17981 PR middle-end/57219
17982 * doc/extend.texi (__builtin_isinf_sign): Restrict the return
17983 values to -1, 0 and 1.
17985 2013-08-27 Vidya Praveen <vidyapraveen@arm.com>
17987 * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
17988 UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
17989 (<optab><mode>3_insn): Remove.
17990 (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
17991 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
17992 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
17993 (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
17994 (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
17995 (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
17996 (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
17997 (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
17998 (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
17999 (ror<mode>3_insn): Likewise.
18000 * config/aarch64/predicates.md (aarch64_simd_register): New.
18002 2013-08-27 Richard Biener <rguenther@suse.de>
18004 PR tree-optimization/57521
18005 * tree-if-conv.c (if_convertible_bb_p): Verify that at least
18006 one edge is non-critical.
18007 (find_phi_replacement_condition): Make sure to use a non-critical
18008 edge. Cleanup and remove old bug workarounds.
18009 (bb_postdominates_preds): Remove.
18010 (if_convertible_loop_p_1): Do not compute post-dominators.
18011 (combine_blocks): Do not free post-dominators.
18012 (main_tree_if_conversion): Likewise.
18013 (pass_data_if_conversion): Add TODO_verify_ssa.
18015 2013-08-27 DJ Delorie <dj@redhat.com>
18017 * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
18019 2013-08-27 Yufeng Zhang <yufeng.zhang@arm.com>
18021 * function.c (assign_parm_find_data_types): Set passed_mode and
18022 nominal_mode to the TYPE_MODE of nominal_type for the built
18023 pointer type in case of the struct-pass-by-reference.
18025 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
18027 * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
18028 (UINT16_TYPE): Change default to "unsigned int".
18030 * config/avr/avr.opt (mfract-convert-truncate): New option.
18031 * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
18032 is set, round negative fractional integers according to n1169
18033 when converting to integer types.
18035 2013-08-26 Jan Hubicka <jh@suse.cz>
18037 * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
18038 methods can not be called indirectly when their address is not taken.
18040 2013-08-26 Jan Hubicka <jh@suse.cz>
18042 * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
18045 2013-08-26 Jan Hubicka <jh@suse.cz>
18047 * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
18050 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
18052 * reload.c (find_valid_class): Allow classes that do not include
18053 FIRST_PSEUDO_REGISTER - 1.
18055 2013-08-26 Jan Hubicka <jh@suse.cz>
18057 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
18058 fix edge count/frequency when speculation failed; fix type check
18059 for the direct call.
18061 2013-08-26 Jan Hubicka <jh@suse.cz>
18063 * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
18065 2013-08-26 Jan Hubicka <jh@suse.cz>
18067 * ipa-inline-transform.c (inline_transform): Be ready for basic block
18068 to be changed by edge redirection.
18070 2013-08-26 Jan Hubicka <jh@suse.cz>
18072 * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
18073 formating; add sanity check.
18074 (cgraph_resolve_speculation): Add FIXME about scaling profiles.
18075 (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
18076 * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
18077 (resolve_noninline_speculation): Update callee keys, too.
18079 2013-08-26 Jan Hubicka <jh@suse.cz>
18081 * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
18082 (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
18084 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
18086 * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
18089 2013-08-26 Uros Bizjak <ubizjak@gmail.com>
18091 * config/i386/i386.c (ix86_debug_options): Remove prototype.
18092 (x86_64_elf_select_section): Ditto.
18093 (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
18095 (ix86_pass_by_reference): Ditto.
18096 (output_set_got): Ditto.
18097 (ix86_unary_operator_ok): Ditto.
18098 (ix86_expand_builtin): Ditto.
18100 2013-08-23 Jan Hubicka <jh@suse.cz>
18102 * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
18104 2013-08-23 Jan Hubicka <jh@suse.cz>
18106 * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
18107 (tree_decl_with_vis): Add FINAL field.
18109 2013-08-23 Jeff Law <law@redhat.com>
18111 * tree-ssa-pre.c (do_regular_insertion): Include the expression in
18112 the debugging dump when the expression is fully redundant.
18114 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
18116 * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
18117 * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
18118 * pretty-print.c (pp_formatted_text_data): Likewise.
18119 (pp_write_text_to_stream): Likewise.
18120 (pp_write_text_as_dot_label_to_stream): Likewise.
18121 (pp_append_r): Likewise.
18122 (pp_format): Likewise.
18123 (pp_flush): Likewise.
18124 (pp_clear_output_area): Likewise.
18125 (pp_append_text): Likewise.
18126 (pp_formatted_text): Likewise.
18127 (pp_remaining_character_count_for_line): Likewise.
18128 (pp_newline): Likewise.
18129 (pp_character): Likewise.
18130 (output_buffer::~output_buffer): Define.
18131 (pretty_printer::~pretty_printer): Destruct output buffer.
18132 * pretty-print.h (output_buffer::~output_buffer): Declare.
18133 (pretty_printer::~pretty_printer): Declare virtual.
18135 2013-08-24 Marc Glisse <marc.glisse@inria.fr>
18138 * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
18139 HOST_WIDE_INT_M1U): New macros.
18140 * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
18141 fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
18142 unsigned -1 for lshift.
18143 * cse.c (cse_insn): Likewise.
18144 * double-int.c (rshift_double, lshift_double): Likewise.
18145 * builtins.c (fold_builtin_bitop): Likewise.
18146 * combine.c (force_to_mode): Likewise.
18147 * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
18148 * simplify-rtx.c (simplify_const_unary_operation,
18149 simplify_const_binary_operation): Likewise.
18150 * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
18151 check_va_list_escapes): Likewise.
18152 * rtlanal.c (nonzero_bits1): Likewise.
18153 * expmed.c (expand_smod_pow2): Likewise.
18154 * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
18156 2013-08-23 Jan Hubicka <jh@suse.cz>
18158 * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
18159 as having address taken.
18161 2013-08-23 Jan Hubicka <jh@suse.cz>
18163 * ipa-utils.h (method_class_type): Declare.
18164 * ipa-devirt.c (method_class_type): Export.
18166 * cgraphunit.c (analyze_functions): Do basic devirtualization;
18167 do not walk base classes of anonymous types.
18169 2013-08-23 Kaz Kojima <kkojima@gcc.gnu.org>
18171 PR rtl-optimization/58220
18172 PR regression/58221
18173 * final.c (reemit_insn_block_notes): Use NEXT_INSN to
18174 handle SEQUENCE insns properly.
18176 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
18178 * pretty-print.h (pp_newline_and_flush): Declare. Remove macro
18180 (pp_newline_and_indent): Likewise.
18181 (pp_separate_with): Likewise.
18182 * pretty-print.c (pp_newline_and_flush): Define.
18183 (pp_newline_and_indent): Likewise.
18184 (pp_separate_with): Likewise.
18186 2013-08-23 Jakub Jelinek <jakub@redhat.com>
18189 * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
18190 * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
18192 2013-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
18194 * config/i386/predicates.md (ext_sse_reg_operand): New.
18195 * config/i386/i386.md (*movti_internal): Use
18196 predicate to determine if EVEX is needed.
18197 (*movsi_internal): Ditto.
18198 (*movdf_internal): Ditto.
18199 (*movsf_internal): Ditto.
18200 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
18202 2013-08-23 Jakub Jelinek <jakub@redhat.com>
18204 PR tree-optimization/58209
18205 * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
18206 (find_tail_calls): Give up for pointer result types if m is non-NULL.
18207 (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
18208 emit POINTER_PLUS_EXPR.
18209 (create_tailcall_accumulator): For pointer result type accumulate in
18212 2013-08-22 Paolo Carlini <paolo.carlini@oracle.com>
18214 * configure.ac: Add backslashes missing from the last change.
18215 * configure: Regenerate.
18217 2013-08-22 Jan Hubicka <jh@susue.cz>
18219 * ipa.c (function_and_variable_visibility): First remember function
18220 was global and then make it local.
18222 2013-08-22 Julian Brown <julian@codesourcery.com>
18224 * configure.ac: Add aarch64 to list of arches which use "nop" in
18226 * configure: Regenerate.
18228 2013-08-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18230 * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
18231 gnu_libc_has_function.
18232 * config/s390/tpf.h: Likewise.
18234 2013-08-22 Jan Hubicka <jh@susue.cz>
18236 * timevar.c (validate_phases): Add cast.
18238 2013-08-22 Jan Hubicka <jh@susue.cz>
18240 * timevar.c (validate_phases): Use size_t for memory.
18241 * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
18243 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
18245 * pretty-print.h (output_buffer::output_buffer): Declare.
18246 (pretty_printer::pretty_printer): Likewise.
18247 (pp_construct): Remove.
18248 * pretty-print.c (output_buffer::output_buffer): Define.
18249 (pretty_printer::pretty_printer): Rename from pp_construct. Simplify.
18250 * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
18251 (print_gimple_expr): Likewise.
18252 (print_gimple_seq): Likewise.
18253 (gimple_dump_bb): Likewise.
18254 * sched-vis.c (dump_value_slim): Likewise.
18255 (dump_insn_slim): Likewise.
18256 (dump_rtl_slim): Likewise.
18257 (str_pattern_slim): Likewise.
18258 * tree-mudflap.c (mf_varname_tree): Likewise.
18259 * graph.c (print_graph_cfg): Likewise.
18260 (start_graph_dump): Likewise.
18261 * tree-pretty-print.c (maybe_init_pretty_print): Likewise. Use
18263 * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
18264 pretty printer initialization.
18265 * coretypes.h (diagnostic_context): Remove superflous type alias
18267 (pretty_printer): Likewise. Declare directly as a class.
18268 (pretty_print_info): Remove declaration as class.
18269 * asan.c (asan_emit_stack_protection): Remove call to pp_construct
18270 and pp_clear_output_area.
18271 (asan_add_global): Likewise.
18273 2013-08-22 Jan Hubicka <jh@suse.cz>
18275 * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
18276 * ipa-utils.h (update_type_inheritance_graph): Declare.
18277 (possible_polymorphic_call_target_p): Declare.
18278 (possible_polymorphic_call_target_p): New.
18279 * ipa-devirt.c: Update toplevel comments.
18280 (cached_polymorphic_call_targets): Move up.
18281 (odr_type_d): Move ID down.
18282 (polymorphic_type_binfo_p): Update comment.
18283 (odr_hasher::remove): Likewise;
18284 (get_odr_type): Set anonymous_namespace.
18285 (dump_odr_type): Dump it.
18286 (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
18287 (maybe_record_node): Record node in cached_polymorphic_call_targets.
18288 (record_binfo): Add comment.
18289 (free_polymorphic_call_targets_hash): Do not ICE when cache is not
18291 (devirt_node_removal_hook): Do not iCE when cache is freed.
18292 (possible_polymorphic_call_target_p): New predicate.
18293 (update_type_inheritance_graph): New function.
18295 2013-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
18296 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18297 Sergey Lega <sergey.s.lega@intel.com>
18298 Anna Tikhonova <anna.tikhonova@intel.com>
18299 Ilya Tocar <ilya.tocar@intel.com>
18300 Andrey Turetskiy <andrey.turetskiy@intel.com>
18301 Ilya Verbin <ilya.verbin@intel.com>
18302 Kirill Yukhin <kirill.yukhin@intel.com>
18303 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18305 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
18306 (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
18307 (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
18308 (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
18309 (OPTION_MASK_ISA_AVX2_UNSET): Update.
18310 (OPTION_MASK_ISA_AVX512F_UNSET): New.
18311 (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
18312 (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
18313 (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
18314 (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
18315 OPT_mavx512pf, OPT_mavx512er cases.
18316 * config/i386/constraints.md (v): New constraint.
18317 (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
18318 * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
18319 (bit_AVX512CD): New.
18320 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
18321 AVX512F, AVX512ER, AVX512PF, AVX512CD features.
18322 * config/i386/i386-c.c (ix86_target_macros_internal):
18323 Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
18325 * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
18326 (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
18327 * config/i386/i386.c (regclass_map, dbx_register_map)
18328 (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
18329 (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
18330 (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
18331 -mavx512pf options.
18332 (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
18333 PTA_AVX512PF, PTA_AVX512CD. Handle -mavx512f, -mavx512er, -mavx512cd,
18334 -mavx512pf options. Fix formatting.
18335 (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
18336 targets. Squash EVEX_SSE_REGS if AVX512F is disabled.
18337 (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
18338 -mavx512cd, -mavx512pf options.
18339 (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
18340 (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
18341 (ix86_preferred_output_reload_class): Replace SSE_REGS with
18343 (ix86_hard_regno_mode_ok): Support 512-bit registers.
18344 (ix86_set_reg_reg_cost): Ditto.
18345 (x86_order_regs_for_local_alloc): Ditto.
18346 (MAX_VECT_LEN): Extend to 64-byte.
18347 (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
18348 * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
18349 (TARGET_AVX512ER, TARGET_AVX512CD): New.
18350 (BIGGEST_ALIGNMENT): Extend to 512-bits.
18351 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
18352 (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
18353 (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
18354 (SSE_REG_MODE_P): Support new modes.
18355 (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
18356 (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
18357 (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
18358 (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
18359 (REG_CLASS_CONTENTS): Add new registers.
18360 (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
18361 (EXT_REX_SSE_REGNO_P): New.
18362 (HI_REGISTER_NAMES): Add new registers.
18363 * config/i386/i386.md: Define constants for new registers.
18364 (mode): Add new 512-bit modes.
18365 (prefix): Support evex prefix.
18366 (isa): Support avx512f, noavx512f, fma_avx512f.
18367 (ssemodesuffix): Add new 512-bit modes.
18369 (*movxi_internal_avx512f): Ditto.
18370 (*movdi_internal): Replace constraint "x" with the new constraint "v".
18372 (*movsi_internal): Likewise.
18373 (*movdf_internal): Likewise.
18374 (*movsf_internal): Likewise.
18375 (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
18376 (<code><mode>3): Likewise.
18377 * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
18379 * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
18380 with the new constraint "v".
18381 * config/i386/sse.md (*mov<mode>_internal): Support new registers and
18383 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
18384 with the new constraint "v".
18385 (<sse2>_loaddqu<avxsizesuffix>): Likewise.
18386 (<sse2>_storedqu<avxsizesuffix>): Likewise.
18387 (*<plusminus_insn><mode>3): Likewise.
18388 (<sse>_vm<plusminus_insn><mode>3): Likewise.
18389 (*mul<mode>3): Likewise.
18390 (<sse>_vmmul<mode>3): Likewise.
18391 (<sse>_div<mode>3): Likewise.
18392 (<sse>_vmdiv<mode>3): Likewise.
18393 (<sse>_sqrt<mode>2): Likewise.
18394 (<sse>_vmsqrt<mode>2): Likewise.
18395 (*<code><mode>3_finite): Likewise.
18396 (*<code><mode>3) <smaxmin>: Likewise.
18397 (<sse>_vm<code><mode>3): Likewise.
18398 (*<code><mode>3) <any_logic>: Likewise.
18399 (*fma_fmadd_<mode>): Likewise.
18400 (*fma_fmsub_<mode>): Likewise.
18401 (*fma_fnmadd_<mode>): Likewise.
18402 (*fma_fnmsub_<mode>): Likewise.
18403 (*fma_fmaddsub_<mode>): Likewise.
18404 (*fma_fmsubadd_<mode>): Likewise.
18405 (*fmai_fmadd_<mode>): Likewise.
18406 (*fmai_fmsub_<mode>): Likewise.
18407 (*fmai_fnmadd_<mode>): Likewise.
18408 (*fmai_fnmsub_<mode>): Likewise.
18409 (sse_cvtsi2ss): Likewise.
18410 (sse_cvtsi2ssq): Likewise.
18411 (sse_cvtss2si): Likewise.
18412 (sse_cvtss2si_2): Likewise.
18413 (sse_cvtss2siq): Likewise.
18414 (sse_cvtss2siq_2): Likewise.
18415 (sse_cvttss2si): Likewise.
18416 (sse_cvtss2siq_2): Likewise.
18417 (float<sseintvecmodelower><mode>2): Likewise.
18418 (sse2_cvtsd2si_2): Likewise.
18419 (sse2_cvtsd2siq_2): Likewise.
18420 (*<plusminus_insn><mode>3): Likewise.
18421 (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
18422 (*<sse4_1_avx2>_mul<mode>3): Likewise.
18423 (ashr<mode>3): Likewise.
18424 (<shift_insn><mode>3): Likewise.
18425 (avx2_<code><mode>3): Likewise.
18426 (*avx2_<code><mode>3): Likewise.
18427 (*andnot<mode>3): Likewise.
18428 (*<code><mode>3) <any_logic>: Likewise.
18429 (abs<mode>2): Likewise.
18430 (avx2_permvar<mode>): Likewise.
18431 (avx2_perm<mode>_1): Likewise.
18432 (*avx_vpermilp<mode>): Likewise.
18433 (avx_vpermilvar<mode>3): Likewise.
18434 (avx2_ashrv<mode>): Likewise.
18435 (avx2_<shift_insn>v<mode>): Likewise.
18436 * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
18438 * doc/rtl.texi: Document XImode.
18440 2013-08-21 Jeff Law <law@redhat.com>
18442 * tree-flow.h (register_jump_thread): Pass vector of edges
18443 instead of each important edge.
18444 * tree-ssa-threadedge.c (thread_across_edge): Build the jump
18445 thread path into a vector and pass that to register_jump_thread.
18446 * tree-ssa-threadupdate.c (register_jump_thread): Conver the
18447 passed in edge vector to the current 3-edge form.
18450 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
18452 * dce.c (fini_dce): Call df_analyze again just in case
18453 delete_unmarked_insns removed anything.
18455 2013-08-21 Joern Rennecke <joern.rennecke@embecosm.com>
18457 * reload.h (struct reg_equivs): Rename to ..
18458 (struct reg_equivs_s): .. this.
18460 2013-08-20 Martin Liska <marxin.liska@gmail.com>
18462 * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
18464 2013-08-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18466 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
18468 2013-08-21 Jeff Law <law@redhat.com>
18470 * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
18471 simplify assignments too. If the RHS collapses to a singleton
18472 range, then return the value for the range.
18474 2013-08-21 Kirill Yukhin <kirill.yukhin@intel.com>
18476 * config/i386/sse.md (V16): Rename to...
18478 (mov<mode>): Update iterator name.
18479 (*mov<mode>_internal): Ditto.
18480 (push<mode>1): Ditto.
18481 (movmisalign<mode>): Ditto.
18483 2013-08-20 Jan Hubicka <jh@suse.cz>
18486 * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
18487 entry for direct edges.
18488 (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
18490 2013-08-20 David Malcolm <dmalcolm@redhat.com>
18492 Revert my last two changes, r201865 and r201864:
18495 2013-08-20 David Malcolm <dmalcolm@redhat.com>
18497 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
18498 instances can own GC refs.
18500 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
18501 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
18502 (gcc::context::gt_pch_nx): Likewise.
18503 (gcc::context::gt_pch_nx): Likewise.
18504 * ggc.h (gt_ggc_mx <T>): New.
18505 (gt_pch_nx_with_op <T>): New.
18506 (gt_pch_nx <T>): New.
18507 * passes.c (opt_pass::gt_ggc_mx): New.
18508 (opt_pass::gt_pch_nx): New.
18509 (opt_pass::gt_pch_nx_with_op): New.
18510 (pass_manager::gt_ggc_mx): New.
18511 (pass_manager::gt_pch_nx): New.
18512 (pass_manager::gt_pch_nx_with_op): New.
18513 (pass_manager::operator new): Use
18514 ggc_internal_cleared_alloc_stat rather than xcalloc.
18515 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
18516 (pass_manager::gt_ggc_mx): New.
18517 (pass_manager::gt_pch_nx): New.
18518 (pass_manager::gt_pch_nx_with_op): New.
18519 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
18520 (opt_pass::operator new): New.
18521 (opt_pass::gt_ggc_mx): New.
18522 (opt_pass::gt_pch_nx): New.
18523 (opt_pass::gt_pch_nx_with_op): New.
18526 2013-08-20 David Malcolm <dmalcolm@redhat.com>
18528 * Makefile.in (GTFILES): Add context.h.
18529 * context.c (gcc::context::operator new): New.
18530 (gcc::context::gt_ggc_mx): New.
18531 (gcc::context::gt_pch_nx): New.
18532 (gcc::context::gt_pch_nx): New.
18533 * context.h (gcc::context): Add GTY((user)) marking.
18534 (gcc::context::operator new): New.
18535 (gcc::context::gt_ggc_mx): New.
18536 (gcc::context::gt_pch_nx): New.
18537 (gcc::context::gt_pch_nx): New.
18538 (g): Add GTY marking.
18539 (gt_ggc_mx (gcc::context *)): New.
18540 (gt_pch_nx (gcc::context *)): New.
18541 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
18542 void *cookie)): New.
18543 * gengtype.c (open_base_files) <ifiles>: Add context.h.
18545 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
18547 * dce.c (fini_dce): Call df_analyze again just in case
18548 delete_unmarked_insns removed anything.
18550 2013-08-20 Teresa Johnson <tejohnson@google.com>
18552 PR rtl-optimizations/57451
18553 * final.c (reemit_insn_block_notes): Prevent lexical blocks
18554 from crossing split section boundaries.
18556 2013-08-20 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
18558 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
18559 * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
18560 with MULTLIB_DEFAULTS.
18562 2013-08-20 Nick Clifton <nickc@redhat.com>
18564 * target.def (narrow_volatile_bitfield): Note that the default
18565 value is false, not !TARGET_STRICT_ALIGN.
18566 * doc/tm.texi: Regenerate.
18568 2013-08-20 Pavel Chupin <pavel.v.chupin@intel.com>
18570 Fix LIB_SPEC for systems without libpthread.
18572 * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
18573 * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
18575 * config/i386/linux-common.h: Likewise.
18576 * config/mips/linux-common.h: Likewise.
18578 2013-08-20 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
18580 * tree-ssa-ccp.c (get_default_value): Remove redundant condition
18583 2013-08-20 David Malcolm <dmalcolm@redhat.com>
18585 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
18586 instances can own GC refs.
18588 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
18589 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
18590 (gcc::context::gt_pch_nx): Likewise.
18591 (gcc::context::gt_pch_nx): Likewise.
18592 * ggc.h (gt_ggc_mx <T>): New.
18593 (gt_pch_nx_with_op <T>): New.
18594 (gt_pch_nx <T>): New.
18595 * passes.c (opt_pass::gt_ggc_mx): New.
18596 (opt_pass::gt_pch_nx): New.
18597 (opt_pass::gt_pch_nx_with_op): New.
18598 (pass_manager::gt_ggc_mx): New.
18599 (pass_manager::gt_pch_nx): New.
18600 (pass_manager::gt_pch_nx_with_op): New.
18601 (pass_manager::operator new): Use
18602 ggc_internal_cleared_alloc_stat rather than xcalloc.
18603 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
18604 (pass_manager::gt_ggc_mx): New.
18605 (pass_manager::gt_pch_nx): New.
18606 (pass_manager::gt_pch_nx_with_op): New.
18607 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
18608 (opt_pass::operator new): New.
18609 (opt_pass::gt_ggc_mx): New.
18610 (opt_pass::gt_pch_nx): New.
18611 (opt_pass::gt_pch_nx_with_op): New.
18613 2013-08-20 David Malcolm <dmalcolm@redhat.com>
18615 * Makefile.in (GTFILES): Add context.h.
18616 * context.c (gcc::context::operator new): New.
18617 (gcc::context::gt_ggc_mx): New.
18618 (gcc::context::gt_pch_nx): New.
18619 (gcc::context::gt_pch_nx): New.
18620 * context.h (gcc::context): Add GTY((user)) marking.
18621 (gcc::context::operator new): New.
18622 (gcc::context::gt_ggc_mx): New.
18623 (gcc::context::gt_pch_nx): New.
18624 (gcc::context::gt_pch_nx): New.
18625 (g): Add GTY marking.
18626 (gt_ggc_mx (gcc::context *)): New.
18627 (gt_pch_nx (gcc::context *)): New.
18628 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
18629 void *cookie)): New.
18630 * gengtype.c (open_base_files) <ifiles>: Add context.h.
18632 2013-08-20 Alan Modra <amodra@gmail.com>
18635 * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
18636 (rs6000_emit_epilogue): Likewise.
18638 2013-08-19 Dehao Chen <dehao@google.com>
18640 * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
18642 2013-08-19 Peter Bergner <bergner@vnet.ibm.com>
18643 Jakub Jelinek <jakub@redhat.com>
18645 * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
18646 (BUILT_IN_FABSD64): Likewise.
18647 (BUILT_IN_FABSD128): Likewise.
18648 * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
18649 (fold_builtin_1): Likewise.
18650 * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
18651 destination and source operands.
18652 (*abstd2_fpr): Likewise.
18653 (*nabstd2_fpr): Likewise.
18655 2013-08-19 Richard Sandiford <rdsandiford@googlemail.com>
18657 * config/mips/mips.c (mips_adjust_insn_length): Add checks for
18660 2013-08-19 Aldy Hernandez <aldyh@redhat.com>
18662 * doc/invoke.texi (-fcilkplus): Clarify that implementation is
18665 2013-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
18667 * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
18668 * builtins.c (default_libc_has_function): New.
18669 (gnu_libc_has_function): Ditto.
18670 (no_c99_libc_has_function): Ditto.
18671 (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
18672 instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
18673 (fold_builtin_sincos): Likewise.
18674 (fold_builtin_cexp): Likewise.
18675 * builtins.def (DEF_C94_BUILTIN): Likewise.
18676 (DEF_C99_BUILTIN): Likewise.
18677 (DEF_C99_C90RES_BUILTIN): Likewise.
18678 (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
18679 definitions to using this define.
18680 * config/darwin-protos.h (darwin_libc_has_function): New.
18681 * config/darwin.c (darwin_libc_has_function): Ditto.
18682 * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
18683 TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
18684 * config/darwin.h: Ditto.
18685 * config/elfos.h: Ditto.
18686 * config/freebsd.h: Ditto.
18687 * config/i386/cygming.h: Ditto.
18688 * config/i386/djgpp.h: Ditto.
18689 * config/i386/i386-interix.h: Ditto.
18690 * config/microblaze/microblaze.h: Ditto.
18691 * config/mmix/mmix.h: Ditto.
18692 * config/gnu-user.h: Ditto.
18693 * config/ia64/hpux.h: Ditto.
18694 * config/pa/pa-hpux.h: Ditto.
18695 * config/pdp11/pdp11.h: Ditto.
18696 * config/picochip/picochip.h: Ditto.
18697 * config/linux.h: Ditto.
18698 * config/netbsd.h: Ditto.
18699 * config/openbsd.h: Ditto.
18700 * config/rs6000/aix43.h: Ditto.
18701 * config/rs6000/aix51.h: Ditto.
18702 * config/rs6000/aix52.h: Ditto.
18703 * config/rs6000/aix53.h: Ditto.
18704 * config/rs6000/aix61.h: Ditto.
18705 * config/rs6000/darwin.h: Ditto.
18706 * config/rs6000/linux.h: Ditto.
18707 * config/rs6000/linux64.h: Ditto.
18708 * config/s390/tpf.h: Ditto.
18709 * config/sol2-10.h: Ditto.
18710 * config/sol2.h: Ditto.
18711 * config/vms/vms.h: Ditto.
18712 * config/vxworks.h: Ditto.
18713 * config/linux-android.c (linux_android_libc_has_function):
18714 New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
18715 * config/linux-protos.h (linux_android_libc_has_function):
18717 * config/i386/i386.c (ix86_libc_has_function): New.
18718 * config/i386/i386-protos.h
18719 (ix86_libc_has_function): New declaration.
18720 * config/i386/i386.md
18721 ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
18722 ("isinf<mode>2): Likewise.
18723 * convert.c (convert_to_integer): Using new target hook
18724 TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
18725 TARGET_C99_FUNCTIONS.
18726 * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
18727 * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
18728 * coretypes.h (function_class): New enum for different
18729 classes of functions.
18730 * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
18731 * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
18732 (TARGET_HAS_SINCOS): Likewise.
18733 (TARGET_LIBC_HAS_FUNCTION): New.
18734 * doc/tm.texi: Regenerated.
18735 * targhooks.h (default_libc_has_function): New declaration.
18736 (no_c99_libc_has_function): Ditto.
18737 (gnu_libc_has_function): Ditto.
18738 * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
18739 and TARGET_HAS_SINCOS.
18741 2013-08-18 Jan Hubicka <jh@suse.cz>
18743 * Makeifle-in (ipa-devirt.o): New.
18744 (GTFILES): Add ipa-utils.h and ipa-devirt.c
18745 * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
18746 (analyze_functions): Look into possible targets of polymorphic call.
18747 * dumpfile.c (dump_files): Add type-inheritance dump.
18748 * dumpfile.h (TDI_inheritance): New.
18749 * ipa-devirt.c: New file.
18750 * ipa-utils.h (odr_type_d): Forward declare.
18751 (odr_type): New type.
18752 (build_type_inheritance_graph): Declare.
18753 (possible_polymorphic_call_targets): Declare and introduce inline
18754 variant when only edge is pased.
18755 (dump_possible_polymorphic_call_targets): Likewise.
18756 * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
18757 * tree.c (type_in_anonymous_namespace_p): Break out from ...
18758 (types_same_for_odr): ... here.
18759 * tree.h (type_in_anonymous_namespace_p): Declare.
18761 2013-08-18 Jakub Jelinek <jakub@redhat.com>
18763 PR tree-optimization/58006
18764 * tree-parloops.c (take_address_of): Don't ICE if get_name
18766 (eliminate_local_variables_stmt): Remove clobber stmts.
18768 2013-08-18 Eric Botcazou <ebotcazou@adacore.com>
18770 * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
18771 error message is issued for an alias to undefined symbol.
18773 2013-08-18 Jan Hubicka <jh@suse.cz>
18775 * cgraph.c (cgraph_create_indirect_edge): Discover
18776 polymorphic calls and record basic info into indirect_info.
18777 * gimple-fold.c (gimple_fold_call): When doing BINFO based
18778 devirtualization, ignore objc function calls.
18779 * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
18780 call with no parm index info.
18781 * ipa-prop.c (ipa_analyze_call_uses): Likewise.
18782 * tree.c (virtual_method_call_p): New function.
18783 * tree.h (virtual_method_call_p): Declare.
18785 2013-08-16 Jan Hubicka <jh@suse.cz>
18787 PR middle-end/58179
18788 * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
18790 2013-08-16 David Edelsohn <dje.gcc@gmail.com>
18792 * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
18795 2013-08-16 David Malcolm <dmalcolm@redhat.com>
18797 * gengtype.c (type_for_name): Add special-case support for
18798 locating types within the "gcc::" namespace.
18799 (open_base_files): Emit a "using namespace gcc" directive.
18801 2013-08-16 Michael Meissner <meissner@linux.vnet.ibm.com>
18804 * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
18805 memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
18807 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
18808 array instead of each individual operand as a separate argument.
18809 (emit_fusion_gpr_load): Likewise.
18810 (expand_fusion_gpr_load): Add new function declaration.
18812 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
18813 signature to have the operands passed as an array, instead of as
18814 separate arguments. Allow ZERO_EXTEND to be in the memory
18815 address, and also SIGN_EXTEND if -mpower8-fusion-sign. Do not
18816 depend on the register live/dead flags when peepholes are run.
18817 (expand_fusion_gpr_load): New function to be called from the
18818 peephole2 pass, to change the register that addis sets to be the
18820 (emit_fusion_gpr_load): Change the calling signature to have the
18821 operands passed as an array, instead of as separate arguments.
18822 Allow ZERO_EXTEND to be in the memory address, and also
18823 SIGN_EXTEND if -mpower8-fusion-sign.
18825 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
18826 unspec enumeration.
18827 (power8 fusion peephole/peephole2): Rework the fusion peepholes to
18828 adjust the register addis loads up in the peephole2 pass. Do not
18829 depend on the register live/dead state when the peephole pass is done.
18831 2013-08-16 David Malcolm <dmalcolm@redhat.com>
18833 * gengtype.c (create_user_defined_type): Ensure that the kind
18834 is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
18835 declaration is seen before the GTY((user)) marking.
18837 2013-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
18840 * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
18842 2013-08-16 Jan Hubicka <jh@suse.cz>
18844 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
18845 arugment expected_type.
18846 (gimple_fold_call): Use it.
18847 * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
18848 * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
18849 * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
18850 (try_make_edge_direct_virtual_call): Likewise.
18851 * tree.c (obj_type_ref_class): New.
18852 * tree.h (obj_type_ref_class): Use it.
18854 2013-08-16 Gabriel Dos Reis <gdr@integrable-solutions.net>
18856 * sched-vis.c (rtl_slim_pp_initialized): Remove.
18857 (rtl_slim_pp): Likewise.
18858 (init_rtl_slim_pretty_print): Likewise.
18859 (dump_value_slim): Don't call it. Use local pretty printer.
18860 (dump_insn_slim): Likewise.
18861 (dump_rtl_slim): Likewise.
18862 (str_pattern_slim): Likewise.
18863 * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
18866 2013-08-16 Jakub Jelinek <jakub@redhat.com>
18868 PR tree-optimization/58164
18869 * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
18870 walk gimple_goto_dest of GIMPLE_GOTO.
18872 PR tree-optimization/58165
18873 * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
18874 bi_call must be the last stmt in a bb, don't split_block, instead
18875 use fallthru edge from it and give up if there is none.
18876 Release conds vector when returning early.
18878 2013-08-14 Xinliang David Li <davidxl@google.com>
18880 * config/i386/i386.c (ix86_option_override_internal):
18881 Remove unused variable and field.
18883 2013-08-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18886 * doc/invoke.texi: Add documentation of mcompat-align-parm option.
18887 * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
18888 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
18889 and Linux, correct BLKmode alignment when 128-bit alignment is
18890 required and compatibility flag is not set.
18891 (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
18892 for zero-size arguments when compatibility flag is not set.
18894 2013-08-14 Jakub Jelinek <jakub@redhat.com>
18896 PR tree-optimization/58145
18897 * tree-sra.c (build_ref_for_offset): If prev_base has
18898 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
18900 2013-08-14 Xinliang David Li <davidxl@google.com>
18902 * config/i386/i386.c (ix86_option_override_internal):
18903 Fix uninitialized variable error.
18905 2013-08-14 Xinliang David Li <davidxl@google.com>
18907 * config/i386/i386.opt: Define two new options.
18908 * config/i386/x86-tune.def: Add arch selector field in macros.
18909 * config/i386/i386.h: Adjust macro definition.
18910 * config/i386/i386.c (ix86_option_override_internal):
18912 (parse_mtune_ctrl_str): New function.
18913 (set_ix86_tune_features): New function.
18914 (ix86_function_specific_restore): Call the new helper function.
18916 2013-08-14 Andrey Belevantsev <abel@ispras.ru>
18918 PR rtl-optimization/57662
18919 * sel-sched.c (code_motion_process_successors): When the current insn
18920 is removed after the recursive traversal, break from the loop.
18921 Add comments and debug printouts.
18923 2013-08-14 Jakub Jelinek <jakub@redhat.com>
18924 Alexandre Oliva <aoliva@redhat.com>
18927 * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
18928 and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
18929 there also UNSPEC_PLTOFF.
18931 2013-08-14 Marek Polacek <polacek@redhat.com>
18933 * ipa-inline-analysis.c (add_clause): Avoid shifting integer
18934 NUM_CONDITIONS bit positions.
18936 2013-08-13 Cary Coutant <ccoutant@google.com>
18938 * dwarf2out.c (CHECKSUM_BLOCK): New macro.
18939 (attr_checksum): Hash vector contents instead of pointer.
18940 (attr_checksum_ordered): Likewise.
18942 2013-08-13 Uros Bizjak <ubizjak@gmail.com>
18944 * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
18945 when Pmode != word_mode. Add length_address attribute.
18946 (sse3_monitor_<mode>): Merge from sse3_monitor and
18947 sse3_monitor64_<mode> insn patterns. Emit addr32 prefix when
18948 Pmode != word_mode. Update insn length attribute.
18949 * config/i386/i386.c (ix86_option_override_internal): Update
18950 ix86_gen_monitor selection for merged sse3_monitor insn.
18952 2013-08-13 Julian Brown <julian@codesourcery.com>
18954 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
18955 perform invalid legitimization on greater-than-word-size modes for
18956 TARGET_E500_DOUBLE.
18958 2013-08-13 Vladimir Makarov <vmakarov@redhat.com>
18960 * ira.c (setup_class_translate_array): Use aclass instead of cl
18961 for classes not fully covered by allocno classes.
18963 2013-08-13 Jakub Jelinek <jakub@redhat.com>
18965 PR tree-optimization/57661
18966 * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
18967 * tree-inline.c (tree_function_versioning): Initialize it.
18968 (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
18969 if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
18970 that is not being copied.
18973 * asan.c (instrument_strlen_call): Fix typo in comment.
18974 Use char * type even for the lhs of POINTER_PLUS_EXPR.
18976 2013-08-13 Steve Ellcey <sellcey@mips.com>
18978 * config/mips/mips.md (prefetch): Use lw instead of ld on
18979 loongson in 32bit mode.
18981 2013-08-13 Nick Clifton <nickc@redhat.com>
18983 * config.gcc: (avr-linux): Allow for tmake_file not being empty.
18985 2013-08-13 Jan Hubicka <jh@suse.cz>
18987 * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
18988 introduced edge; fix typo in sanity check.
18989 (cgraph_resolve_speculation): Export; improve diagnostic.
18990 (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
18991 speculation at type mismatch.
18992 * cgraph.h (cgraph_turn_edge_to_speculative): Update.
18993 (cgraph_resolve_speculation): Declare.
18994 (symtab_can_be_discarded): New function.
18995 * value-prof.c (gimple_ic_transform): Remove actual transform code.
18996 * ipa-inline-transform.c (speculation_removed): New global var.
18997 (clone_inlined_nodes): See if speculation can be removed.
18998 (inline_call): If speculations was removed, we growths may not match.
18999 * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
19000 (speculation_useful_p): New function.
19001 (resolve_noninline_speculation): New function.
19002 (inline_small_functions): Resolve useless speculations.
19003 * ipa-inline.h (speculation_useful_p): Declare
19004 * ipa.c (can_replace_by_local_alias): Simplify.
19005 (ipa_profile): Produce speculative calls in non-lto, too;
19006 add simple cost model; produce local aliases.
19008 2013-08-13 David Malcolm <dmalcolm@redhat.com>
19010 * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
19013 2013-08-12 Paolo Carlini <paolo.carlini@oracle.com>
19015 * config/i386/i386.c (ix86_function_versions): Use error + inform.
19017 2013-08-12 Uros Bizjak <ubizjak@gmail.com>
19019 * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
19020 iterator instead of X87MODEF.
19022 2013-08-12 Perez Read <netfirewall@gmail.com>
19025 * config/i386/i386.md (*movabs<mode>_1): Add <ptrsize> PTR before
19026 operand 0 for intel asm alternative.
19027 (*movabs<mode>_2): Ditto for operand 1.
19029 2013-08-12 James Greenhalgh <james.greenhalgh@arm.com>
19031 * config/aarch64/arm_none.h
19032 (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
19034 2013-08-12 Nick Clifton <nickc@redhat.com>
19036 * config.gcc (m32r-linux): Allow for tmake_file not being empty.
19038 2013-08-12 Yuri Rumyantsev <ysrumyan@gmail.com>
19040 * config/i386/i386.md (floatunssi<mode>2 expand): Add new
19041 expand for QI/HImode operand to produce more effictive code for
19042 unsigned char(short) --> float(double) conversion.
19044 2013-08-12 Alexander Monakov <amonakov@ispras.ru>
19046 * doc/invoke.texi: Mention that -ftls-model does not force the final
19049 2013-08-12 Marek Polacek <polacek@redhat.com>
19050 Marc Glisse <marc.glisse@inria.fr>
19052 PR tree-optimization/57980
19053 * tree-tailcall.c (process_assignment): Call build_minus_one_cst
19054 when creating -1 constant.
19056 2013-08-10 Jan Hubicka <jh@suse.cz>
19058 Workaround binutils PR14342.
19059 * tree-profile.c (init_ic_make_global_vars): Add LTO path.
19060 (gimple_init_edge_profiler): Likewise.
19061 (gimple_gen_ic_func_profiler): Likewise.
19063 2013-08-09 Jan Hubicka <jh@suse.cz>
19065 * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
19067 2013-08-09 Xinliang David Li <davidxl@google.com>
19069 * config/i386/stringop.def: New file.
19070 * config/i386/stringop.opt: New file.
19071 * config/i386/i386-opts.h: Include stringopt.def.
19072 * config/i386/i386.opt: Include stringopt.opt.
19073 * config/i386/i386.c (ix86_option_override_internal):
19074 Override default size based stringop inline strategies with options.
19075 * config/i386/i386.c (ix86_parse_stringop_strategy_string):
19078 2013-08-09 Jan Hubicka <jh@suse.cz>
19080 * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
19082 2013-08-09 Jan Hubicka <jh@suse.cz>
19084 * cgraph.c (cgraph_resolve_speculation): Cut frequency to
19086 (dump_cgraph_node): Dump profile-id.
19087 * cgraph.h (cgraph_indirect_call_info): Add common_target_id
19088 and common_target_probability.
19089 * lto-cgraph.c (lto_output_edge): Stream common targets.
19090 (lto_output_node): Stream profile ids.
19091 (input_node): Stream profile ids.
19092 (input_edge): Stream common targets.
19093 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
19094 * ipa.c: Include value-prof.h
19095 (ipa_profile_generate_summary): Turn indirect call statement histograms
19096 into common targets.
19097 (ipa_profile): Turn common targets into speculative edges.
19099 2013-08-09 Jan Hubicka <jh@suse.cz>
19101 * cgraph.h (cgraph_node): Add profile_id.
19102 * value-prof.c (cgraph_node_map): Turn into pointer_map.
19103 (init_node_map): Rewrite to handle hashes increas of incremental IDs.
19104 (del_node_map): Update.
19105 (find_func_by_funcdef_no): Replace by ...
19106 (find_func_by_profile_id): ... this one.
19107 (gimple_ic_transform): Do not remove useful histograms when
19108 speculation is not done; dump info when indirect call removal
19110 * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
19111 * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
19112 (__gcov_indirect_call_profiler_v2): .. this one.
19113 * profile.h (init_node_map): Update.
19114 * coverage.c (coverage_compute_profile_id): New function.
19115 * coverage.h (coverage_compute_profile_id): Declare.
19116 * tree-profile.c (init_ic_make_global_vars): Make
19117 __gcov_indirect_call_callee and __gcov_indirect_call_counters global.
19118 (gimple_init_edge_profiler): Update prototype of
19119 __gcov_indirect_call_profiler.
19120 (gimple_gen_ic_func_profiler): Simplify.
19121 (tree_profiling): Use init_node_map
19123 2013-08-09 Jan Hubicka <jh@suse.cz>
19125 * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
19126 non-speculative refs.
19127 * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
19128 (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
19129 (cgraph_set_call_stmt): Likewise.
19130 (cgraph_create_edge_1): Fix release checking compilatoin;
19131 clear lto_stmt_uid.
19132 (cgraph_free_edge): Free indirect info.
19133 (cgraph_turn_edge_to_speculative): New function.
19134 (cgraph_speculative_call_info): New function.
19135 (cgraph_make_edge_direct): Return direct edge; handle speculation.
19136 (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
19137 (dump_cgraph_node): Dump speculation.
19138 (verify_edge_count_and_frequency): Accept speculative edges.
19139 (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
19140 (verify_cgraph_node): Handle speculation.
19141 * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
19142 (cgraph_set_call_stmt): Update prototype.
19143 (cgraph_make_edge_direct): Update prototype.
19144 (cgraph_speculative_call_info): Declare.
19145 * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
19146 to change; update call of ipa_find_references.
19147 * ipa-ref.c (ipa_record_reference): Fix return value; clear
19148 lto_stmt_uid and speculative flags.
19149 (ipa_dump_references): Dump speculation.
19150 (ipa_clone_references): Clone speculative flag.
19151 (ipa_clone_referring): Likewise.
19152 (ipa_clone_ref): New function.
19153 (ipa_find_reference): Look into lto_stmt_uids
19154 (ipa_clear_stmts_in_references): Do not clear speculative calls.
19155 * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
19156 (ipa_find_reference): Update declaration.
19157 (ipa_clone_ref): Declare.
19158 * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
19159 stream speculative flag.
19160 (lto_output_ref): Stream statements uids and speculation.
19161 (input_ref): Likewise.
19162 (input_edge): Stream speuclation.
19163 * cgraphclones.c (cgraph_clone_edge): Clone speculation.
19164 (cgraph_set_call_stmt_including_clones): Handle speculation.
19165 * ipa-inline.c (heap_edge_removal_hook): New function.
19166 (inline_small_functions): Register it.
19167 * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
19168 also initialize refs.
19169 * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
19171 (try_make_edge_direct_simple_call): Likewise.
19172 (try_make_edge_direct_simple_call): Likewise.
19173 (update_indirect_edges_after_inlining): Likewise.
19174 (remove_described_reference): Look proper lto_stmt_uid.
19175 (propagate_controlled_uses): Likewise.
19176 (propagate_controlled_uses): Liekwise.
19177 * tree-inline.c (copy_bb): Copy speculative edges.
19178 (redirect_all_calls): New function.
19179 (copy_cfg_body): Do redirection after loop info is updated.
19180 (delete_unreachable_blocks_update_callgraph): Updadte speculation.
19182 2013-08-09 Jan Hubicka <jh@suse.cz>
19184 * lto-streamer-out.c (output_function): Renumber PHIs.
19185 * lto-streamer-in.c (input_function): Likewise.
19187 2013-08-09 James Greenhalgh <james.greenhalgh@arm.com>
19189 * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
19190 (get_lane_unsigned): Likewise.
19191 (dup_lane_scalar): Likewise.
19192 (get_lane): enable for VALL.
19193 * config/aarch64/aarch64-simd.md
19194 (aarch64_dup_lane_scalar<mode>): Remove.
19195 (aarch64_get_lane_signed<mode>): Likewise.
19196 (aarch64_get_lane_unsigned<mode>): Likewise.
19197 (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
19198 (aarch64_get_lane_zero_extendsi<mode>): Likewise.
19199 (aarch64_get_lane<mode>): Enable for all vector modes.
19200 (aarch64_get_lanedi): Remove misleading constraints.
19201 * config/aarch64/arm_neon.h
19202 (__aarch64_vget_lane_any): Define.
19203 (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
19204 (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
19205 (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
19206 * config/aarch64/iterators.md (VDQQH): New.
19207 (VDQQHS): Likewise.
19208 (vwcore): Likewise.
19210 2013-08-09 Eric Botcazou <ebotcazou@adacore.com>
19212 * configure.ac: Add GAS check for LEON instructions on SPARC.
19213 * configure: Regenerate.
19214 * config.in: Likewise.
19215 * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
19217 * config/sparc/sparc.opt (LEON, LEON3): New masks.
19218 * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
19220 (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
19221 (AS_LEON_FLAG): New macro.
19222 * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
19223 and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
19224 Deal with LEON and LEON3 for the memory model.
19225 * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
19226 (atomic_compare_and_swap<mode>_1): Likewise.
19227 (*atomic_compare_and_swap<mode>_1): Likewise.
19229 2013-08-09 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19231 * config/arm/neon.md (vcond): Fix floating-point vector
19232 comparisons against 0.
19234 2013-08-08 Vladimir Makarov <vmakarov@redhat.com>
19236 * lra-constraints.c (emit_spill_move): Remove assert.
19237 (process_alt_operands): Add more debugging
19238 output. Increase reject for spilling into memory. Decrease
19239 reject for reloading scratch.
19240 (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
19242 2013-08-08 Steve Ellcey <sellcey@mips.com>
19244 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
19245 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
19246 micromips incompatible. Add nan2008.
19247 (MULTILIB_DIRNAMES): Add nan2008.
19248 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
19249 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
19250 and micromips incompatible. Add nan2008.
19251 (MULTILIB_DIRNAMES): Add nan2008.
19252 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
19254 2013-08-08 Richard Sandiford <rdsandiford@googlemail.com>
19256 PR rtl-optimization/58079
19257 * combine.c (combine_simplify_rtx): Avoid using SUBST if
19258 simplify_comparison has widened a comparison with an integer.
19260 2013-08-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19262 * config/arm/neon.md (movmisalign<mode>): Disable when we
19263 don't allow unaligned accesses.
19264 (*movmisalign<mode>_neon_store): Likewise.
19265 (*movmisalign<mode>_neon_load): Likewise.
19266 (*movmisalign<mode>_neon_store): Likewise.
19267 (*movmisalign<mode>_neon_load): Likewise.
19269 2013-08-08 Jan Hubicka <jh@suse.cz>
19271 * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
19272 (make_pass_rebuild_cgraph_edges): Also clear references.
19273 * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
19274 * ipa-inline-transform.c (inline_transform): Remove all references
19276 * cgraphunit.c (expand_function): Remove all references after
19278 * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
19279 (ipa_find_reference): Rewrite to iterator.
19280 (remove_stmt_references): Likewise.
19281 (ipa_clear_stmts_in_references): New function.
19282 * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
19283 * cgraphclones.c (cgraph_materialize_all_clones): Remove or
19285 * ipa-split.c (split_function): Remove references in split function.
19287 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
19290 * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
19291 (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
19293 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
19296 * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
19297 suggested mode for the assignment isn't compatible with the
19298 registers required.
19300 2013-08-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
19303 * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
19305 2013-08-07 Xinliang David Li <davidxl@google.com>
19307 * config/i386/i386.opt: New option -mtune-ctrl=.
19308 * config/i386/x86-tune.def: New file.
19309 * config/i386/i386.h: include x86-tune.def.
19310 * config/i386/i386.c (ix86_option_override_internal):
19311 Parsing -mtune-ctrl= option and set tune features.
19313 2013-08-07 Oleg Endo <olegendo@gcc.gnu.org>
19316 * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
19317 (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
19320 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
19322 * rtl.h (update_alignments): Declare.
19323 * final.c (grow_label_align): New function extracted from...
19324 (shorten_branches): ...here. Call it.
19325 (update_alignments): New function.
19326 * reorg.c (sibling_labels): New variable.
19327 (get_label_before): Add SIBLING parameter. If it is non-zero, push
19328 the new label along with it onto the sibling_labels vector.
19329 (fill_simple_delay_slots): Adjust call to get_label_before.
19330 (fill_slots_from_thread): Likewise.
19331 (relax_delay_slots): Likewise.
19332 (make_return_insns): Likewise.
19333 (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
19335 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
19337 * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
19338 document its semantics.
19339 (diagnostic_report_diagnostic): Adjust accordingly.
19341 2013-08-07 David Malcolm <dmalcolm@redhat.com>
19343 * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
19344 (sparc_option_override): ...and port to new C++ pass API.
19345 * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
19347 2013-08-07 Peter Bergner <bergner@vnet.ibm.com>
19349 * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
19351 2013-08-06 Caroline Tice <cmtice@google.com>
19353 * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
19354 (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
19355 * tree-pass.h: Add pass_vtable_verify.
19356 * varasm.c (assemble_variable): Add code to properly set the comdat
19357 section and name for the .vtable_map_vars section.
19358 (assemble_vtyv_preinit_initializer): New function.
19359 (default_sectin_type_flags): Make sure .vtable_map_vars section has
19361 * output.h: Add function decl for assemble_vtv_preinit_initializer.
19362 * vtable-verify.c: New file.
19363 * vtable-verify.h: New file.
19364 * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
19365 initialiation levels.
19366 * timevar.def (TV_VTABLE_VERIFICATION): New definition.
19367 * passes.def: Insert pass_vtable_verify.
19368 * aclocal.m4: Reorder includes.
19369 * doc/invoke.texi: Document the -fvtable-verify=, -fvtv-debug, and
19370 -fvtv-counts options.
19371 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
19372 as appropriate, if -fvtable-verify=... is used.
19373 (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
19374 -fvtable-verify=... is used.
19375 * Makefile.in (OBJS): Add vtable-verify.o to list.
19376 (vtable-verify.o): Add new build rule.
19377 (GTFILES): Add vtable-verify.c to list.
19378 * common.opt (fvtable-verify=): New flag.
19379 (vtv_priority): Values for fvtable-verify= flag.
19380 (fvtv-counts): New flag.
19381 (fvtv-debug): New flag.
19382 * tree.h (save_vtable_map_decl): New extern function decl.
19384 2013-08-07 David Malcolm <dmalcolm@redhat.com>
19386 * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
19387 (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
19388 (pass_data_rl78_devirt): ...new pass_data instance and...
19389 (make_pass_rl78_devirt): ...new function.
19390 (rl78_asm_file_start): Port pass registration to new C++ API.
19392 2013-08-07 David Malcolm <dmalcolm@redhat.com>
19394 * coretypes.h (rtl_opt_pass): Add.
19395 (gcc::context): Add.
19396 * config/epiphany/epiphany.c (pass_mode_switch_use): New.
19397 (epiphany_init): Port to new C++ pass API.
19398 (epiphany_optimize_mode_switching): Likewise.
19399 * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
19400 (pass_manager::get_pass_mode_switching): New.
19401 (pass_manager::get_pass_peephole2): New.
19402 * mode-switching.c (pass_mode_switching): Add clone method.
19403 * recog.c (pass_peephole2): Add clone method.
19404 (pass_split_all_insns): Add clone method.
19406 2013-08-06 David Malcolm <dmalcolm@redhat.com>
19408 * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
19409 (mips_option_override): ...here, porting to new C++ API for passes.
19411 2013-08-06 Jan Hubicka <jh@suse.cz>
19413 * cgraph.c (cgraph_get_body): New function based on lto.c
19415 * cgraph.h (cgraph_get_body): Declare.
19416 * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
19418 * cgraphunit.c (expand_function): Get body prior expanding.
19419 * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
19420 * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
19422 * passes.c (do_per_function_toporder): Get body.
19423 * tree-inline.c (expand_call_inline): Get body prior inlining it.
19424 * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
19426 2013-08-06 Martin Jambor <mjambor@suse.cz>
19429 * cgraphunit.c (cgraph_finalize_function): Assert that nested function
19430 is not re-finalized. Rename second parameter to no_collect.
19432 2013-08-06 Martin Jambor <mjambor@suse.cz>
19434 PR middle-end/58041
19435 * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
19436 MEM_REF has proper alignment information.
19438 2013-08-05 Oleg Endo <olegendo@gcc.gnu.org>
19441 * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
19443 * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
19444 rtx (*) (rtx, ...) with insn_gen_fn.
19445 * genoutput.c (output_insn_data): Cast gen_? function pointers to
19446 insn_gen_fn::stored_funcptr. Add initializer braces.
19448 2013-08-05 David Malcolm <dmalcolm@redhat.com>
19450 Rewrite how instances of passes are cloned to remove assumptions
19451 about their sizes (thus allowing pass subclasses to have
19452 additional data fields, albeit non-GC-managed ones at this point).
19454 * passes.c (make_pass_instance): Now that passes have clone
19455 methods, rewrite this function to eliminate XNEW and memcpy
19456 calls that used hardcoded sizes. Since this function no longer
19457 creates pass instances, rename it to...
19458 (add_pass_instance): ...this. Document the old way that passes were
19459 numbered and flagged, and rework this function to continue using it.
19460 (next_pass_1): Add an initial_pass argument for use by
19462 (position_pass): When adding multiple instances of a pass, use
19463 the pass's clone method, rather than relying on the XNEW/memcpy
19464 within the former make_pass_instance (now add_pass_instance).
19465 (pass_manager::pass_manager): When invoking next_pass_1, also supply
19466 the initial instance of the current pass within the pass manager.
19468 2013-08-05 David Malcolm <dmalcolm@redhat.com>
19470 This is the automated part of the conversion of passes from C
19471 structs to C++ classes.
19473 Patch autogenerated by refactor_passes.py from
19474 https://github.com/davidmalcolm/gcc-refactoring-scripts
19475 revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
19477 * asan.c (pass_asan): Convert from a global struct to a subclass of
19478 gimple_opt_pass along with...
19479 (pass_data_asan): ...new pass_data instance and...
19480 (make_pass_asan): ...new function.
19481 (pass_asan_O0): Convert from a global struct to a subclass of
19482 gimple_opt_pass along with...
19483 (pass_data_asan_O0): ...new pass_data instance and...
19484 (make_pass_asan_O0): ...new function.
19485 * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
19486 subclass of rtl_opt_pass along with...
19487 (pass_data_inc_dec): ...new pass_data instance and...
19488 (make_pass_inc_dec): ...new function.
19489 * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
19490 a subclass of rtl_opt_pass along with...
19491 (pass_data_reorder_blocks): ...new pass_data instance and...
19492 (make_pass_reorder_blocks): ...new function.
19493 (pass_duplicate_computed_gotos): Convert from a global struct to a
19494 subclass of rtl_opt_pass along with...
19495 (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
19496 (make_pass_duplicate_computed_gotos): ...new function.
19497 (pass_partition_blocks): Convert from a global struct to a subclass of
19498 rtl_opt_pass along with...
19499 (pass_data_partition_blocks): ...new pass_data instance and...
19500 (make_pass_partition_blocks): ...new function.
19501 * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
19502 struct to a subclass of rtl_opt_pass along with...
19503 (pass_data_branch_target_load_optimize1): ...new pass_data instance
19505 (make_pass_branch_target_load_optimize1): ...new function.
19506 (pass_branch_target_load_optimize2): Convert from a global struct to a
19507 subclass of rtl_opt_pass along with...
19508 (pass_data_branch_target_load_optimize2): ...new pass_data instance
19510 (make_pass_branch_target_load_optimize2): ...new function.
19511 * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
19512 of rtl_opt_pass along with...
19513 (pass_data_jump): ...new pass_data instance and...
19514 (make_pass_jump): ...new function.
19515 (pass_jump2): Convert from a global struct to a subclass of
19516 rtl_opt_pass along with...
19517 (pass_data_jump2): ...new pass_data instance and...
19518 (make_pass_jump2): ...new function.
19519 * cfgexpand.c (pass_expand): Convert from a global struct to a
19520 subclass of rtl_opt_pass along with...
19521 (pass_data_expand): ...new pass_data instance and...
19522 (make_pass_expand): ...new function.
19523 * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
19524 of rtl_opt_pass along with...
19525 (pass_data_free_cfg): ...new pass_data instance and...
19526 (make_pass_free_cfg): ...new function.
19527 (pass_into_cfg_layout_mode): Convert from a global struct to a
19528 subclass of rtl_opt_pass along with...
19529 (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
19530 (make_pass_into_cfg_layout_mode): ...new function.
19531 (pass_outof_cfg_layout_mode): Convert from a global struct to a
19532 subclass of rtl_opt_pass along with...
19533 (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
19534 (make_pass_outof_cfg_layout_mode): ...new function.
19535 * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
19536 struct to a subclass of gimple_opt_pass along with...
19537 (pass_data_build_cgraph_edges): ...new pass_data instance and...
19538 (make_pass_build_cgraph_edges): ...new function.
19539 (pass_rebuild_cgraph_edges): Convert from a global struct to a
19540 subclass of gimple_opt_pass along with...
19541 (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
19542 (make_pass_rebuild_cgraph_edges): ...new function.
19543 (pass_remove_cgraph_callee_edges): Convert from a global struct to a
19544 subclass of gimple_opt_pass along with...
19545 (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
19547 (make_pass_remove_cgraph_callee_edges): ...new function.
19548 * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
19549 struct to a subclass of rtl_opt_pass along with...
19550 (pass_data_stack_adjustments): ...new pass_data instance and...
19551 (make_pass_stack_adjustments): ...new function.
19552 * combine.c (pass_combine): Convert from a global struct to a subclass
19553 of rtl_opt_pass along with...
19554 (pass_data_combine): ...new pass_data instance and...
19555 (make_pass_combine): ...new function.
19556 * compare-elim.c (pass_compare_elim_after_reload): Convert from a
19557 global struct to a subclass of rtl_opt_pass along with...
19558 (pass_data_compare_elim_after_reload): ...new pass_data instance
19560 (make_pass_compare_elim_after_reload): ...new function.
19561 * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
19562 of rtl_opt_pass along with...
19563 (pass_data_rtl_cprop): ...new pass_data instance and...
19564 (make_pass_rtl_cprop): ...new function.
19565 * cse.c (pass_cse): Convert from a global struct to a subclass of
19566 rtl_opt_pass along with...
19567 (pass_data_cse): ...new pass_data instance and...
19568 (make_pass_cse): ...new function.
19569 (pass_cse2): Convert from a global struct to a subclass of
19570 rtl_opt_pass along with...
19571 (pass_data_cse2): ...new pass_data instance and...
19572 (make_pass_cse2): ...new function.
19573 (pass_cse_after_global_opts): Convert from a global struct to a
19574 subclass of rtl_opt_pass along with...
19575 (pass_data_cse_after_global_opts): ...new pass_data instance and...
19576 (make_pass_cse_after_global_opts): ...new function.
19577 * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
19578 of rtl_opt_pass along with...
19579 (pass_data_ud_rtl_dce): ...new pass_data instance and...
19580 (make_pass_ud_rtl_dce): ...new function.
19581 (pass_fast_rtl_dce): Convert from a global struct to a subclass of
19582 rtl_opt_pass along with...
19583 (pass_data_fast_rtl_dce): ...new pass_data instance and...
19584 (make_pass_fast_rtl_dce): ...new function.
19585 * df-core.c (pass_df_initialize_opt): Convert from a global struct to
19586 a subclass of rtl_opt_pass along with...
19587 (pass_data_df_initialize_opt): ...new pass_data instance and...
19588 (make_pass_df_initialize_opt): ...new function.
19589 (pass_df_initialize_no_opt): Convert from a global struct to a
19590 subclass of rtl_opt_pass along with...
19591 (pass_data_df_initialize_no_opt): ...new pass_data instance and...
19592 (make_pass_df_initialize_no_opt): ...new function.
19593 (pass_df_finish): Convert from a global struct to a subclass of
19594 rtl_opt_pass along with...
19595 (pass_data_df_finish): ...new pass_data instance and...
19596 (make_pass_df_finish): ...new function.
19597 * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
19598 rtl_opt_pass along with...
19599 (pass_data_rtl_dse1): ...new pass_data instance and...
19600 (make_pass_rtl_dse1): ...new function.
19601 (pass_rtl_dse2): Convert from a global struct to a subclass of
19602 rtl_opt_pass along with...
19603 (pass_data_rtl_dse2): ...new pass_data instance and...
19604 (make_pass_rtl_dse2): ...new function.
19605 * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
19606 subclass of rtl_opt_pass along with...
19607 (pass_data_dwarf2_frame): ...new pass_data instance and...
19608 (make_pass_dwarf2_frame): ...new function.
19609 * except.c (pass_set_nothrow_function_flags): Convert from a global
19610 struct to a subclass of rtl_opt_pass along with...
19611 (pass_data_set_nothrow_function_flags): ...new pass_data instance
19613 (make_pass_set_nothrow_function_flags): ...new function.
19614 (pass_convert_to_eh_region_ranges): Convert from a global struct to a
19615 subclass of rtl_opt_pass along with...
19616 (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
19618 (make_pass_convert_to_eh_region_ranges): ...new function.
19619 * final.c (pass_compute_alignments): Convert from a global struct to a
19620 subclass of rtl_opt_pass along with...
19621 (pass_data_compute_alignments): ...new pass_data instance and...
19622 (make_pass_compute_alignments): ...new function.
19623 (pass_final): Convert from a global struct to a subclass of
19624 rtl_opt_pass along with...
19625 (pass_data_final): ...new pass_data instance and...
19626 (make_pass_final): ...new function.
19627 (pass_shorten_branches): Convert from a global struct to a subclass of
19628 rtl_opt_pass along with...
19629 (pass_data_shorten_branches): ...new pass_data instance and...
19630 (make_pass_shorten_branches): ...new function.
19631 (pass_clean_state): Convert from a global struct to a subclass of
19632 rtl_opt_pass along with...
19633 (pass_data_clean_state): ...new pass_data instance and...
19634 (make_pass_clean_state): ...new function.
19635 * function.c (pass_instantiate_virtual_regs): Convert from a global
19636 struct to a subclass of rtl_opt_pass along with...
19637 (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
19638 (make_pass_instantiate_virtual_regs): ...new function.
19639 (pass_leaf_regs): Convert from a global struct to a subclass of
19640 rtl_opt_pass along with...
19641 (pass_data_leaf_regs): ...new pass_data instance and...
19642 (make_pass_leaf_regs): ...new function.
19643 (pass_thread_prologue_and_epilogue): Convert from a global struct to a
19644 subclass of rtl_opt_pass along with...
19645 (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
19647 (make_pass_thread_prologue_and_epilogue): ...new function.
19648 (pass_match_asm_constraints): Convert from a global struct to a
19649 subclass of rtl_opt_pass along with...
19650 (pass_data_match_asm_constraints): ...new pass_data instance and...
19651 (make_pass_match_asm_constraints): ...new function.
19652 * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
19653 subclass of rtl_opt_pass along with...
19654 (pass_data_rtl_fwprop): ...new pass_data instance and...
19655 (make_pass_rtl_fwprop): ...new function.
19656 (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
19657 rtl_opt_pass along with...
19658 (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
19659 (make_pass_rtl_fwprop_addr): ...new function.
19660 * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
19661 rtl_opt_pass along with...
19662 (pass_data_rtl_pre): ...new pass_data instance and...
19663 (make_pass_rtl_pre): ...new function.
19664 (pass_rtl_hoist): Convert from a global struct to a subclass of
19665 rtl_opt_pass along with...
19666 (pass_data_rtl_hoist): ...new pass_data instance and...
19667 (make_pass_rtl_hoist): ...new function.
19668 * gimple-low.c (pass_lower_cf): Convert from a global struct to a
19669 subclass of gimple_opt_pass along with...
19670 (pass_data_lower_cf): ...new pass_data instance and...
19671 (make_pass_lower_cf): ...new function.
19672 * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
19673 from a global struct to a subclass of gimple_opt_pass along with...
19674 (pass_data_strength_reduction): ...new pass_data instance and...
19675 (make_pass_strength_reduction): ...new function.
19676 * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
19677 of rtl_opt_pass along with...
19678 (pass_data_rtl_ifcvt): ...new pass_data instance and...
19679 (make_pass_rtl_ifcvt): ...new function.
19680 (pass_if_after_combine): Convert from a global struct to a subclass of
19681 rtl_opt_pass along with...
19682 (pass_data_if_after_combine): ...new pass_data instance and...
19683 (make_pass_if_after_combine): ...new function.
19684 (pass_if_after_reload): Convert from a global struct to a subclass of
19685 rtl_opt_pass along with...
19686 (pass_data_if_after_reload): ...new pass_data instance and...
19687 (make_pass_if_after_reload): ...new function.
19688 * init-regs.c (pass_initialize_regs): Convert from a global struct to
19689 a subclass of rtl_opt_pass along with...
19690 (pass_data_initialize_regs): ...new pass_data instance and...
19691 (make_pass_initialize_regs): ...new function.
19692 * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
19693 of ipa_opt_pass_d along with...
19694 (pass_data_ipa_cp): ...new pass_data instance and...
19695 (make_pass_ipa_cp): ...new function.
19696 * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
19697 global struct to a subclass of gimple_opt_pass along with...
19698 (pass_data_inline_parameters): ...new pass_data instance and...
19699 (make_pass_inline_parameters): ...new function.
19700 * ipa-inline.c (pass_early_inline): Convert from a global struct to a
19701 subclass of gimple_opt_pass along with...
19702 (pass_data_early_inline): ...new pass_data instance and...
19703 (make_pass_early_inline): ...new function.
19704 (pass_ipa_inline): Convert from a global struct to a subclass of
19705 ipa_opt_pass_d along with...
19706 (pass_data_ipa_inline): ...new pass_data instance and...
19707 (make_pass_ipa_inline): ...new function.
19708 * ipa-pure-const.c (pass_local_pure_const): Convert from a global
19709 struct to a subclass of gimple_opt_pass along with...
19710 (pass_data_local_pure_const): ...new pass_data instance and...
19711 (make_pass_local_pure_const): ...new function.
19712 (pass_ipa_pure_const): Convert from a global struct to a subclass of
19713 ipa_opt_pass_d along with...
19714 (pass_data_ipa_pure_const): ...new pass_data instance and...
19715 (make_pass_ipa_pure_const): ...new function.
19716 * ipa-reference.c (pass_ipa_reference): Convert from a global struct
19717 to a subclass of ipa_opt_pass_d along with...
19718 (pass_data_ipa_reference): ...new pass_data instance and...
19719 (make_pass_ipa_reference): ...new function.
19720 * ipa-split.c (pass_split_functions): Convert from a global struct to
19721 a subclass of gimple_opt_pass along with...
19722 (pass_data_split_functions): ...new pass_data instance and...
19723 (make_pass_split_functions): ...new function.
19724 (pass_feedback_split_functions): Convert from a global struct to a
19725 subclass of gimple_opt_pass along with...
19726 (pass_data_feedback_split_functions): ...new pass_data instance and...
19727 (make_pass_feedback_split_functions): ...new function.
19728 * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
19729 global struct to a subclass of simple_ipa_opt_pass along with...
19730 (pass_data_ipa_function_and_variable_visibility): ...new pass_data
19732 (make_pass_ipa_function_and_variable_visibility): ...new function.
19733 (pass_ipa_free_inline_summary): Convert from a global struct to a
19734 subclass of simple_ipa_opt_pass along with...
19735 (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
19736 (make_pass_ipa_free_inline_summary): ...new function.
19737 (pass_ipa_whole_program_visibility): Convert from a global struct to a
19738 subclass of ipa_opt_pass_d along with...
19739 (pass_data_ipa_whole_program_visibility): ...new pass_data instance
19741 (make_pass_ipa_whole_program_visibility): ...new function.
19742 (pass_ipa_profile): Convert from a global struct to a subclass of
19743 ipa_opt_pass_d along with...
19744 (pass_data_ipa_profile): ...new pass_data instance and...
19745 (make_pass_ipa_profile): ...new function.
19746 (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
19747 ipa_opt_pass_d along with...
19748 (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
19749 (make_pass_ipa_cdtor_merge): ...new function.
19750 * ira.c (pass_ira): Convert from a global struct to a subclass of
19751 rtl_opt_pass along with...
19752 (pass_data_ira): ...new pass_data instance and...
19753 (make_pass_ira): ...new function.
19754 (pass_reload): Convert from a global struct to a subclass of
19755 rtl_opt_pass along with...
19756 (pass_data_reload): ...new pass_data instance and...
19757 (make_pass_reload): ...new function.
19758 * jump.c (pass_cleanup_barriers): Convert from a global struct to a
19759 subclass of rtl_opt_pass along with...
19760 (pass_data_cleanup_barriers): ...new pass_data instance and...
19761 (make_pass_cleanup_barriers): ...new function.
19762 * loop-init.c (pass_loop2): Convert from a global struct to a subclass
19763 of rtl_opt_pass along with...
19764 (pass_data_loop2): ...new pass_data instance and...
19765 (make_pass_loop2): ...new function.
19766 (pass_rtl_loop_init): Convert from a global struct to a subclass of
19767 rtl_opt_pass along with...
19768 (pass_data_rtl_loop_init): ...new pass_data instance and...
19769 (make_pass_rtl_loop_init): ...new function.
19770 (pass_rtl_loop_done): Convert from a global struct to a subclass of
19771 rtl_opt_pass along with...
19772 (pass_data_rtl_loop_done): ...new pass_data instance and...
19773 (make_pass_rtl_loop_done): ...new function.
19774 (pass_rtl_move_loop_invariants): Convert from a global struct to a
19775 subclass of rtl_opt_pass along with...
19776 (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
19777 (make_pass_rtl_move_loop_invariants): ...new function.
19778 (pass_rtl_unswitch): Convert from a global struct to a subclass of
19779 rtl_opt_pass along with...
19780 (pass_data_rtl_unswitch): ...new pass_data instance and...
19781 (make_pass_rtl_unswitch): ...new function.
19782 (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
19783 subclass of rtl_opt_pass along with...
19784 (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
19786 (make_pass_rtl_unroll_and_peel_loops): ...new function.
19787 (pass_rtl_doloop): Convert from a global struct to a subclass of
19788 rtl_opt_pass along with...
19789 (pass_data_rtl_doloop): ...new pass_data instance and...
19790 (make_pass_rtl_doloop): ...new function.
19791 * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
19792 a subclass of rtl_opt_pass along with...
19793 (pass_data_lower_subreg): ...new pass_data instance and...
19794 (make_pass_lower_subreg): ...new function.
19795 (pass_lower_subreg2): Convert from a global struct to a subclass of
19796 rtl_opt_pass along with...
19797 (pass_data_lower_subreg2): ...new pass_data instance and...
19798 (make_pass_lower_subreg2): ...new function.
19799 * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
19800 struct to a subclass of ipa_opt_pass_d along with...
19801 (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
19802 (make_pass_ipa_lto_gimple_out): ...new function.
19803 (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
19804 of ipa_opt_pass_d along with...
19805 (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
19806 (make_pass_ipa_lto_finish_out): ...new function.
19807 * mode-switching.c (pass_mode_switching): Convert from a global struct
19808 to a subclass of rtl_opt_pass along with...
19809 (pass_data_mode_switching): ...new pass_data instance and...
19810 (make_pass_mode_switching): ...new function.
19811 * modulo-sched.c (pass_sms): Convert from a global struct to a
19812 subclass of rtl_opt_pass along with...
19813 (pass_data_sms): ...new pass_data instance and...
19814 (make_pass_sms): ...new function.
19815 * omp-low.c (pass_expand_omp): Convert from a global struct to a
19816 subclass of gimple_opt_pass along with...
19817 (pass_data_expand_omp): ...new pass_data instance and...
19818 (make_pass_expand_omp): ...new function.
19819 (pass_lower_omp): Convert from a global struct to a subclass of
19820 gimple_opt_pass along with...
19821 (pass_data_lower_omp): ...new pass_data instance and...
19822 (make_pass_lower_omp): ...new function.
19823 (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
19824 of gimple_opt_pass along with...
19825 (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
19826 (make_pass_diagnose_omp_blocks): ...new function.
19827 * passes.c (pass_early_local_passes): Convert from a global struct to
19828 a subclass of simple_ipa_opt_pass along with...
19829 (pass_data_early_local_passes): ...new pass_data instance and...
19830 (make_pass_early_local_passes): ...new function.
19831 (pass_all_early_optimizations): Convert from a global struct to a
19832 subclass of gimple_opt_pass along with...
19833 (pass_data_all_early_optimizations): ...new pass_data instance and...
19834 (make_pass_all_early_optimizations): ...new function.
19835 (pass_all_optimizations): Convert from a global struct to a subclass
19836 of gimple_opt_pass along with...
19837 (pass_data_all_optimizations): ...new pass_data instance and...
19838 (make_pass_all_optimizations): ...new function.
19839 (pass_all_optimizations_g): Convert from a global struct to a subclass
19840 of gimple_opt_pass along with...
19841 (pass_data_all_optimizations_g): ...new pass_data instance and...
19842 (make_pass_all_optimizations_g): ...new function.
19843 (pass_rest_of_compilation): Convert from a global struct to a subclass
19844 of rtl_opt_pass along with...
19845 (pass_data_rest_of_compilation): ...new pass_data instance and...
19846 (make_pass_rest_of_compilation): ...new function.
19847 (pass_postreload): Convert from a global struct to a subclass of
19848 rtl_opt_pass along with...
19849 (pass_data_postreload): ...new pass_data instance and...
19850 (make_pass_postreload): ...new function.
19851 * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
19852 subclass of rtl_opt_pass along with...
19853 (pass_data_gcse2): ...new pass_data instance and...
19854 (make_pass_gcse2): ...new function.
19855 * postreload.c (pass_postreload_cse): Convert from a global struct to
19856 a subclass of rtl_opt_pass along with...
19857 (pass_data_postreload_cse): ...new pass_data instance and...
19858 (make_pass_postreload_cse): ...new function.
19859 * predict.c (pass_profile): Convert from a global struct to a subclass
19860 of gimple_opt_pass along with...
19861 (pass_data_profile): ...new pass_data instance and...
19862 (make_pass_profile): ...new function.
19863 (pass_strip_predict_hints): Convert from a global struct to a subclass
19864 of gimple_opt_pass along with...
19865 (pass_data_strip_predict_hints): ...new pass_data instance and...
19866 (make_pass_strip_predict_hints): ...new function.
19867 * recog.c (pass_peephole2): Convert from a global struct to a subclass
19868 of rtl_opt_pass along with...
19869 (pass_data_peephole2): ...new pass_data instance and...
19870 (make_pass_peephole2): ...new function.
19871 (pass_split_all_insns): Convert from a global struct to a subclass of
19872 rtl_opt_pass along with...
19873 (pass_data_split_all_insns): ...new pass_data instance and...
19874 (make_pass_split_all_insns): ...new function.
19875 (pass_split_after_reload): Convert from a global struct to a subclass
19876 of rtl_opt_pass along with...
19877 (pass_data_split_after_reload): ...new pass_data instance and...
19878 (make_pass_split_after_reload): ...new function.
19879 (pass_split_before_regstack): Convert from a global struct to a
19880 subclass of rtl_opt_pass along with...
19881 (pass_data_split_before_regstack): ...new pass_data instance and...
19882 (make_pass_split_before_regstack): ...new function.
19883 (pass_split_before_sched2): Convert from a global struct to a subclass
19884 of rtl_opt_pass along with...
19885 (pass_data_split_before_sched2): ...new pass_data instance and...
19886 (make_pass_split_before_sched2): ...new function.
19887 (pass_split_for_shorten_branches): Convert from a global struct to a
19888 subclass of rtl_opt_pass along with...
19889 (pass_data_split_for_shorten_branches): ...new pass_data instance
19891 (make_pass_split_for_shorten_branches): ...new function.
19892 * ree.c (pass_ree): Convert from a global struct to a subclass of
19893 rtl_opt_pass along with...
19894 (pass_data_ree): ...new pass_data instance and...
19895 (make_pass_ree): ...new function.
19896 * reg-stack.c (pass_stack_regs): Convert from a global struct to a
19897 subclass of rtl_opt_pass along with...
19898 (pass_data_stack_regs): ...new pass_data instance and...
19899 (make_pass_stack_regs): ...new function.
19900 (pass_stack_regs_run): Convert from a global struct to a subclass of
19901 rtl_opt_pass along with...
19902 (pass_data_stack_regs_run): ...new pass_data instance and...
19903 (make_pass_stack_regs_run): ...new function.
19904 * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
19905 subclass of rtl_opt_pass along with...
19906 (pass_data_cprop_hardreg): ...new pass_data instance and...
19907 (make_pass_cprop_hardreg): ...new function.
19908 * reginfo.c (pass_reginfo_init): Convert from a global struct to a
19909 subclass of rtl_opt_pass along with...
19910 (pass_data_reginfo_init): ...new pass_data instance and...
19911 (make_pass_reginfo_init): ...new function.
19912 * regmove.c (pass_regmove): Convert from a global struct to a subclass
19913 of rtl_opt_pass along with...
19914 (pass_data_regmove): ...new pass_data instance and...
19915 (make_pass_regmove): ...new function.
19916 * regrename.c (pass_regrename): Convert from a global struct to a
19917 subclass of rtl_opt_pass along with...
19918 (pass_data_regrename): ...new pass_data instance and...
19919 (make_pass_regrename): ...new function.
19920 * reorg.c (pass_delay_slots): Convert from a global struct to a
19921 subclass of rtl_opt_pass along with...
19922 (pass_data_delay_slots): ...new pass_data instance and...
19923 (make_pass_delay_slots): ...new function.
19924 (pass_machine_reorg): Convert from a global struct to a subclass of
19925 rtl_opt_pass along with...
19926 (pass_data_machine_reorg): ...new pass_data instance and...
19927 (make_pass_machine_reorg): ...new function.
19928 * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
19929 of rtl_opt_pass along with...
19930 (pass_data_sched): ...new pass_data instance and...
19931 (make_pass_sched): ...new function.
19932 (pass_sched2): Convert from a global struct to a subclass of
19933 rtl_opt_pass along with...
19934 (pass_data_sched2): ...new pass_data instance and...
19935 (make_pass_sched2): ...new function.
19936 * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
19937 to a subclass of rtl_opt_pass along with...
19938 (pass_data_stack_ptr_mod): ...new pass_data instance and...
19939 (make_pass_stack_ptr_mod): ...new function.
19940 * store-motion.c (pass_rtl_store_motion): Convert from a global struct
19941 to a subclass of rtl_opt_pass along with...
19942 (pass_data_rtl_store_motion): ...new pass_data instance and...
19943 (make_pass_rtl_store_motion): ...new function.
19944 * tracer.c (pass_tracer): Convert from a global struct to a subclass
19945 of gimple_opt_pass along with...
19946 (pass_data_tracer): ...new pass_data instance and...
19947 (make_pass_tracer): ...new function.
19948 * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
19949 to a subclass of gimple_opt_pass along with...
19950 (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
19951 (make_pass_diagnose_tm_blocks): ...new function.
19952 (pass_lower_tm): Convert from a global struct to a subclass of
19953 gimple_opt_pass along with...
19954 (pass_data_lower_tm): ...new pass_data instance and...
19955 (make_pass_lower_tm): ...new function.
19956 (pass_tm_init): Convert from a global struct to a subclass of
19957 gimple_opt_pass along with...
19958 (pass_data_tm_init): ...new pass_data instance and...
19959 (make_pass_tm_init): ...new function.
19960 (pass_tm_mark): Convert from a global struct to a subclass of
19961 gimple_opt_pass along with...
19962 (pass_data_tm_mark): ...new pass_data instance and...
19963 (make_pass_tm_mark): ...new function.
19964 (pass_tm_edges): Convert from a global struct to a subclass of
19965 gimple_opt_pass along with...
19966 (pass_data_tm_edges): ...new pass_data instance and...
19967 (make_pass_tm_edges): ...new function.
19968 (pass_tm_memopt): Convert from a global struct to a subclass of
19969 gimple_opt_pass along with...
19970 (pass_data_tm_memopt): ...new pass_data instance and...
19971 (make_pass_tm_memopt): ...new function.
19972 (pass_ipa_tm): Convert from a global struct to a subclass of
19973 simple_ipa_opt_pass along with...
19974 (pass_data_ipa_tm): ...new pass_data instance and...
19975 (make_pass_ipa_tm): ...new function.
19976 * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
19977 subclass of gimple_opt_pass along with...
19978 (pass_data_call_cdce): ...new pass_data instance and...
19979 (make_pass_call_cdce): ...new function.
19980 * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
19981 subclass of gimple_opt_pass along with...
19982 (pass_data_build_cfg): ...new pass_data instance and...
19983 (make_pass_build_cfg): ...new function.
19984 (pass_split_crit_edges): Convert from a global struct to a subclass of
19985 gimple_opt_pass along with...
19986 (pass_data_split_crit_edges): ...new pass_data instance and...
19987 (make_pass_split_crit_edges): ...new function.
19988 (pass_warn_function_return): Convert from a global struct to a
19989 subclass of gimple_opt_pass along with...
19990 (pass_data_warn_function_return): ...new pass_data instance and...
19991 (make_pass_warn_function_return): ...new function.
19992 (pass_warn_function_noreturn): Convert from a global struct to a
19993 subclass of gimple_opt_pass along with...
19994 (pass_data_warn_function_noreturn): ...new pass_data instance and...
19995 (make_pass_warn_function_noreturn): ...new function.
19996 (pass_warn_unused_result): Convert from a global struct to a subclass
19997 of gimple_opt_pass along with...
19998 (pass_data_warn_unused_result): ...new pass_data instance and...
19999 (make_pass_warn_unused_result): ...new function.
20000 * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
20001 a subclass of gimple_opt_pass along with...
20002 (pass_data_merge_phi): ...new pass_data instance and...
20003 (make_pass_merge_phi): ...new function.
20004 * tree-complex.c (pass_lower_complex): Convert from a global struct to
20005 a subclass of gimple_opt_pass along with...
20006 (pass_data_lower_complex): ...new pass_data instance and...
20007 (make_pass_lower_complex): ...new function.
20008 (pass_lower_complex_O0): Convert from a global struct to a subclass of
20009 gimple_opt_pass along with...
20010 (pass_data_lower_complex_O0): ...new pass_data instance and...
20011 (make_pass_lower_complex_O0): ...new function.
20012 * tree-eh.c (pass_lower_eh): Convert from a global struct to a
20013 subclass of gimple_opt_pass along with...
20014 (pass_data_lower_eh): ...new pass_data instance and...
20015 (make_pass_lower_eh): ...new function.
20016 (pass_refactor_eh): Convert from a global struct to a subclass of
20017 gimple_opt_pass along with...
20018 (pass_data_refactor_eh): ...new pass_data instance and...
20019 (make_pass_refactor_eh): ...new function.
20020 (pass_lower_resx): Convert from a global struct to a subclass of
20021 gimple_opt_pass along with...
20022 (pass_data_lower_resx): ...new pass_data instance and...
20023 (make_pass_lower_resx): ...new function.
20024 (pass_lower_eh_dispatch): Convert from a global struct to a subclass
20025 of gimple_opt_pass along with...
20026 (pass_data_lower_eh_dispatch): ...new pass_data instance and...
20027 (make_pass_lower_eh_dispatch): ...new function.
20028 (pass_cleanup_eh): Convert from a global struct to a subclass of
20029 gimple_opt_pass along with...
20030 (pass_data_cleanup_eh): ...new pass_data instance and...
20031 (make_pass_cleanup_eh): ...new function.
20032 * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
20033 to a subclass of simple_ipa_opt_pass along with...
20034 (pass_data_ipa_lower_emutls): ...new pass_data instance and...
20035 (make_pass_ipa_lower_emutls): ...new function.
20036 * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
20037 a subclass of gimple_opt_pass along with...
20038 (pass_data_if_conversion): ...new pass_data instance and...
20039 (make_pass_if_conversion): ...new function.
20040 * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
20041 subclass of gimple_opt_pass along with...
20042 (pass_data_build_ssa): ...new pass_data instance and...
20043 (make_pass_build_ssa): ...new function.
20044 * tree-loop-distribution.c (pass_loop_distribution): Convert from a
20045 global struct to a subclass of gimple_opt_pass along with...
20046 (pass_data_loop_distribution): ...new pass_data instance and...
20047 (make_pass_loop_distribution): ...new function.
20048 * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
20049 subclass of gimple_opt_pass along with...
20050 (pass_data_mudflap_1): ...new pass_data instance and...
20051 (make_pass_mudflap_1): ...new function.
20052 (pass_mudflap_2): Convert from a global struct to a subclass of
20053 gimple_opt_pass along with...
20054 (pass_data_mudflap_2): ...new pass_data instance and...
20055 (make_pass_mudflap_2): ...new function.
20056 * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
20057 subclass of gimple_opt_pass along with...
20058 (pass_data_mudflap_1): ...new pass_data instance and...
20059 (make_pass_mudflap_1): ...new function.
20060 (pass_mudflap_2): Convert from a global struct to a subclass of
20061 gimple_opt_pass along with...
20062 (pass_data_mudflap_2): ...new pass_data instance and...
20063 (make_pass_mudflap_2): ...new function.
20064 * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
20065 gimple_opt_pass along with...
20066 (pass_data_nrv): ...new pass_data instance and...
20067 (make_pass_nrv): ...new function.
20068 (pass_return_slot): Convert from a global struct to a subclass of
20069 gimple_opt_pass along with...
20070 (pass_data_return_slot): ...new pass_data instance and...
20071 (make_pass_return_slot): ...new function.
20072 * tree-object-size.c (pass_object_sizes): Convert from a global struct
20073 to a subclass of gimple_opt_pass along with...
20074 (pass_data_object_sizes): ...new pass_data instance and...
20075 (make_pass_object_sizes): ...new function.
20076 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
20077 global struct to a subclass of gimple_opt_pass along with...
20078 (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
20080 (make_pass_cleanup_cfg_post_optimizing): ...new function.
20081 (pass_fixup_cfg): Convert from a global struct to a subclass of
20082 gimple_opt_pass along with...
20083 (pass_data_fixup_cfg): ...new pass_data instance and...
20084 (make_pass_fixup_cfg): ...new function.
20085 * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
20086 (make_pass_mudflap_1): ...new function.
20087 (pass_mudflap_2): Replace declaration with that of...
20088 (make_pass_mudflap_2): ...new function.
20089 (pass_asan): Replace declaration with that of...
20090 (make_pass_asan): ...new function.
20091 (pass_asan_O0): Replace declaration with that of...
20092 (make_pass_asan_O0): ...new function.
20093 (pass_tsan): Replace declaration with that of...
20094 (make_pass_tsan): ...new function.
20095 (pass_tsan_O0): Replace declaration with that of...
20096 (make_pass_tsan_O0): ...new function.
20097 (pass_lower_cf): Replace declaration with that of...
20098 (make_pass_lower_cf): ...new function.
20099 (pass_refactor_eh): Replace declaration with that of...
20100 (make_pass_refactor_eh): ...new function.
20101 (pass_lower_eh): Replace declaration with that of...
20102 (make_pass_lower_eh): ...new function.
20103 (pass_lower_eh_dispatch): Replace declaration with that of...
20104 (make_pass_lower_eh_dispatch): ...new function.
20105 (pass_lower_resx): Replace declaration with that of...
20106 (make_pass_lower_resx): ...new function.
20107 (pass_build_cfg): Replace declaration with that of...
20108 (make_pass_build_cfg): ...new function.
20109 (pass_early_tree_profile): Replace declaration with that of...
20110 (make_pass_early_tree_profile): ...new function.
20111 (pass_cleanup_eh): Replace declaration with that of...
20112 (make_pass_cleanup_eh): ...new function.
20113 (pass_sra): Replace declaration with that of...
20114 (make_pass_sra): ...new function.
20115 (pass_sra_early): Replace declaration with that of...
20116 (make_pass_sra_early): ...new function.
20117 (pass_early_ipa_sra): Replace declaration with that of...
20118 (make_pass_early_ipa_sra): ...new function.
20119 (pass_tail_recursion): Replace declaration with that of...
20120 (make_pass_tail_recursion): ...new function.
20121 (pass_tail_calls): Replace declaration with that of...
20122 (make_pass_tail_calls): ...new function.
20123 (pass_tree_loop): Replace declaration with that of...
20124 (make_pass_tree_loop): ...new function.
20125 (pass_tree_loop_init): Replace declaration with that of...
20126 (make_pass_tree_loop_init): ...new function.
20127 (pass_lim): Replace declaration with that of...
20128 (make_pass_lim): ...new function.
20129 (pass_tree_unswitch): Replace declaration with that of...
20130 (make_pass_tree_unswitch): ...new function.
20131 (pass_predcom): Replace declaration with that of...
20132 (make_pass_predcom): ...new function.
20133 (pass_iv_canon): Replace declaration with that of...
20134 (make_pass_iv_canon): ...new function.
20135 (pass_scev_cprop): Replace declaration with that of...
20136 (make_pass_scev_cprop): ...new function.
20137 (pass_empty_loop): Replace declaration with that of...
20138 (make_pass_empty_loop): ...new function.
20139 (pass_record_bounds): Replace declaration with that of...
20140 (make_pass_record_bounds): ...new function.
20141 (pass_graphite): Replace declaration with that of...
20142 (make_pass_graphite): ...new function.
20143 (pass_graphite_transforms): Replace declaration with that of...
20144 (make_pass_graphite_transforms): ...new function.
20145 (pass_if_conversion): Replace declaration with that of...
20146 (make_pass_if_conversion): ...new function.
20147 (pass_loop_distribution): Replace declaration with that of...
20148 (make_pass_loop_distribution): ...new function.
20149 (pass_vectorize): Replace declaration with that of...
20150 (make_pass_vectorize): ...new function.
20151 (pass_slp_vectorize): Replace declaration with that of...
20152 (make_pass_slp_vectorize): ...new function.
20153 (pass_complete_unroll): Replace declaration with that of...
20154 (make_pass_complete_unroll): ...new function.
20155 (pass_complete_unrolli): Replace declaration with that of...
20156 (make_pass_complete_unrolli): ...new function.
20157 (pass_parallelize_loops): Replace declaration with that of...
20158 (make_pass_parallelize_loops): ...new function.
20159 (pass_loop_prefetch): Replace declaration with that of...
20160 (make_pass_loop_prefetch): ...new function.
20161 (pass_iv_optimize): Replace declaration with that of...
20162 (make_pass_iv_optimize): ...new function.
20163 (pass_tree_loop_done): Replace declaration with that of...
20164 (make_pass_tree_loop_done): ...new function.
20165 (pass_ch): Replace declaration with that of...
20166 (make_pass_ch): ...new function.
20167 (pass_ccp): Replace declaration with that of...
20168 (make_pass_ccp): ...new function.
20169 (pass_phi_only_cprop): Replace declaration with that of...
20170 (make_pass_phi_only_cprop): ...new function.
20171 (pass_build_ssa): Replace declaration with that of...
20172 (make_pass_build_ssa): ...new function.
20173 (pass_build_alias): Replace declaration with that of...
20174 (make_pass_build_alias): ...new function.
20175 (pass_build_ealias): Replace declaration with that of...
20176 (make_pass_build_ealias): ...new function.
20177 (pass_dominator): Replace declaration with that of...
20178 (make_pass_dominator): ...new function.
20179 (pass_dce): Replace declaration with that of...
20180 (make_pass_dce): ...new function.
20181 (pass_dce_loop): Replace declaration with that of...
20182 (make_pass_dce_loop): ...new function.
20183 (pass_cd_dce): Replace declaration with that of...
20184 (make_pass_cd_dce): ...new function.
20185 (pass_call_cdce): Replace declaration with that of...
20186 (make_pass_call_cdce): ...new function.
20187 (pass_merge_phi): Replace declaration with that of...
20188 (make_pass_merge_phi): ...new function.
20189 (pass_split_crit_edges): Replace declaration with that of...
20190 (make_pass_split_crit_edges): ...new function.
20191 (pass_pre): Replace declaration with that of...
20192 (make_pass_pre): ...new function.
20193 (pass_profile): Replace declaration with that of...
20194 (make_pass_profile): ...new function.
20195 (pass_strip_predict_hints): Replace declaration with that of...
20196 (make_pass_strip_predict_hints): ...new function.
20197 (pass_lower_complex_O0): Replace declaration with that of...
20198 (make_pass_lower_complex_O0): ...new function.
20199 (pass_lower_complex): Replace declaration with that of...
20200 (make_pass_lower_complex): ...new function.
20201 (pass_lower_vector): Replace declaration with that of...
20202 (make_pass_lower_vector): ...new function.
20203 (pass_lower_vector_ssa): Replace declaration with that of...
20204 (make_pass_lower_vector_ssa): ...new function.
20205 (pass_lower_omp): Replace declaration with that of...
20206 (make_pass_lower_omp): ...new function.
20207 (pass_diagnose_omp_blocks): Replace declaration with that of...
20208 (make_pass_diagnose_omp_blocks): ...new function.
20209 (pass_expand_omp): Replace declaration with that of...
20210 (make_pass_expand_omp): ...new function.
20211 (pass_expand_omp_ssa): Replace declaration with that of...
20212 (make_pass_expand_omp_ssa): ...new function.
20213 (pass_object_sizes): Replace declaration with that of...
20214 (make_pass_object_sizes): ...new function.
20215 (pass_strlen): Replace declaration with that of...
20216 (make_pass_strlen): ...new function.
20217 (pass_fold_builtins): Replace declaration with that of...
20218 (make_pass_fold_builtins): ...new function.
20219 (pass_stdarg): Replace declaration with that of...
20220 (make_pass_stdarg): ...new function.
20221 (pass_early_warn_uninitialized): Replace declaration with that of...
20222 (make_pass_early_warn_uninitialized): ...new function.
20223 (pass_late_warn_uninitialized): Replace declaration with that of...
20224 (make_pass_late_warn_uninitialized): ...new function.
20225 (pass_cse_reciprocals): Replace declaration with that of...
20226 (make_pass_cse_reciprocals): ...new function.
20227 (pass_cse_sincos): Replace declaration with that of...
20228 (make_pass_cse_sincos): ...new function.
20229 (pass_optimize_bswap): Replace declaration with that of...
20230 (make_pass_optimize_bswap): ...new function.
20231 (pass_optimize_widening_mul): Replace declaration with that of...
20232 (make_pass_optimize_widening_mul): ...new function.
20233 (pass_warn_function_return): Replace declaration with that of...
20234 (make_pass_warn_function_return): ...new function.
20235 (pass_warn_function_noreturn): Replace declaration with that of...
20236 (make_pass_warn_function_noreturn): ...new function.
20237 (pass_cselim): Replace declaration with that of...
20238 (make_pass_cselim): ...new function.
20239 (pass_phiopt): Replace declaration with that of...
20240 (make_pass_phiopt): ...new function.
20241 (pass_forwprop): Replace declaration with that of...
20242 (make_pass_forwprop): ...new function.
20243 (pass_phiprop): Replace declaration with that of...
20244 (make_pass_phiprop): ...new function.
20245 (pass_tree_ifcombine): Replace declaration with that of...
20246 (make_pass_tree_ifcombine): ...new function.
20247 (pass_dse): Replace declaration with that of...
20248 (make_pass_dse): ...new function.
20249 (pass_nrv): Replace declaration with that of...
20250 (make_pass_nrv): ...new function.
20251 (pass_rename_ssa_copies): Replace declaration with that of...
20252 (make_pass_rename_ssa_copies): ...new function.
20253 (pass_sink_code): Replace declaration with that of...
20254 (make_pass_sink_code): ...new function.
20255 (pass_fre): Replace declaration with that of...
20256 (make_pass_fre): ...new function.
20257 (pass_check_data_deps): Replace declaration with that of...
20258 (make_pass_check_data_deps): ...new function.
20259 (pass_copy_prop): Replace declaration with that of...
20260 (make_pass_copy_prop): ...new function.
20261 (pass_vrp): Replace declaration with that of...
20262 (make_pass_vrp): ...new function.
20263 (pass_uncprop): Replace declaration with that of...
20264 (make_pass_uncprop): ...new function.
20265 (pass_return_slot): Replace declaration with that of...
20266 (make_pass_return_slot): ...new function.
20267 (pass_reassoc): Replace declaration with that of...
20268 (make_pass_reassoc): ...new function.
20269 (pass_rebuild_cgraph_edges): Replace declaration with that of...
20270 (make_pass_rebuild_cgraph_edges): ...new function.
20271 (pass_remove_cgraph_callee_edges): Replace declaration with that of...
20272 (make_pass_remove_cgraph_callee_edges): ...new function.
20273 (pass_build_cgraph_edges): Replace declaration with that of...
20274 (make_pass_build_cgraph_edges): ...new function.
20275 (pass_local_pure_const): Replace declaration with that of...
20276 (make_pass_local_pure_const): ...new function.
20277 (pass_tracer): Replace declaration with that of...
20278 (make_pass_tracer): ...new function.
20279 (pass_warn_unused_result): Replace declaration with that of...
20280 (make_pass_warn_unused_result): ...new function.
20281 (pass_diagnose_tm_blocks): Replace declaration with that of...
20282 (make_pass_diagnose_tm_blocks): ...new function.
20283 (pass_lower_tm): Replace declaration with that of...
20284 (make_pass_lower_tm): ...new function.
20285 (pass_tm_init): Replace declaration with that of...
20286 (make_pass_tm_init): ...new function.
20287 (pass_tm_mark): Replace declaration with that of...
20288 (make_pass_tm_mark): ...new function.
20289 (pass_tm_memopt): Replace declaration with that of...
20290 (make_pass_tm_memopt): ...new function.
20291 (pass_tm_edges): Replace declaration with that of...
20292 (make_pass_tm_edges): ...new function.
20293 (pass_split_functions): Replace declaration with that of...
20294 (make_pass_split_functions): ...new function.
20295 (pass_feedback_split_functions): Replace declaration with that of...
20296 (make_pass_feedback_split_functions): ...new function.
20297 (pass_strength_reduction): Replace declaration with that of...
20298 (make_pass_strength_reduction): ...new function.
20299 (pass_ipa_lower_emutls): Replace declaration with that of...
20300 (make_pass_ipa_lower_emutls): ...new function.
20301 (pass_ipa_function_and_variable_visibility): Replace declaration with
20303 (make_pass_ipa_function_and_variable_visibility): ...new function.
20304 (pass_ipa_tree_profile): Replace declaration with that of...
20305 (make_pass_ipa_tree_profile): ...new function.
20306 (pass_early_local_passes): Replace declaration with that of...
20307 (make_pass_early_local_passes): ...new function.
20308 (pass_ipa_whole_program_visibility): Replace declaration with that
20310 (make_pass_ipa_whole_program_visibility): ...new function.
20311 (pass_ipa_lto_gimple_out): Replace declaration with that of...
20312 (make_pass_ipa_lto_gimple_out): ...new function.
20313 (pass_ipa_increase_alignment): Replace declaration with that of...
20314 (make_pass_ipa_increase_alignment): ...new function.
20315 (pass_ipa_inline): Replace declaration with that of...
20316 (make_pass_ipa_inline): ...new function.
20317 (pass_ipa_free_lang_data): Replace declaration with that of...
20318 (make_pass_ipa_free_lang_data): ...new function.
20319 (pass_ipa_free_inline_summary): Replace declaration with that of...
20320 (make_pass_ipa_free_inline_summary): ...new function.
20321 (pass_ipa_cp): Replace declaration with that of...
20322 (make_pass_ipa_cp): ...new function.
20323 (pass_ipa_reference): Replace declaration with that of...
20324 (make_pass_ipa_reference): ...new function.
20325 (pass_ipa_pure_const): Replace declaration with that of...
20326 (make_pass_ipa_pure_const): ...new function.
20327 (pass_ipa_pta): Replace declaration with that of...
20328 (make_pass_ipa_pta): ...new function.
20329 (pass_ipa_lto_finish_out): Replace declaration with that of...
20330 (make_pass_ipa_lto_finish_out): ...new function.
20331 (pass_ipa_tm): Replace declaration with that of...
20332 (make_pass_ipa_tm): ...new function.
20333 (pass_ipa_profile): Replace declaration with that of...
20334 (make_pass_ipa_profile): ...new function.
20335 (pass_ipa_cdtor_merge): Replace declaration with that of...
20336 (make_pass_ipa_cdtor_merge): ...new function.
20337 (pass_cleanup_cfg_post_optimizing): Replace declaration with that
20339 (make_pass_cleanup_cfg_post_optimizing): ...new function.
20340 (pass_init_datastructures): Replace declaration with that of...
20341 (make_pass_init_datastructures): ...new function.
20342 (pass_fixup_cfg): Replace declaration with that of...
20343 (make_pass_fixup_cfg): ...new function.
20344 (pass_expand): Replace declaration with that of...
20345 (make_pass_expand): ...new function.
20346 (pass_instantiate_virtual_regs): Replace declaration with that of...
20347 (make_pass_instantiate_virtual_regs): ...new function.
20348 (pass_rtl_fwprop): Replace declaration with that of...
20349 (make_pass_rtl_fwprop): ...new function.
20350 (pass_rtl_fwprop_addr): Replace declaration with that of...
20351 (make_pass_rtl_fwprop_addr): ...new function.
20352 (pass_jump): Replace declaration with that of...
20353 (make_pass_jump): ...new function.
20354 (pass_jump2): Replace declaration with that of...
20355 (make_pass_jump2): ...new function.
20356 (pass_lower_subreg): Replace declaration with that of...
20357 (make_pass_lower_subreg): ...new function.
20358 (pass_cse): Replace declaration with that of...
20359 (make_pass_cse): ...new function.
20360 (pass_fast_rtl_dce): Replace declaration with that of...
20361 (make_pass_fast_rtl_dce): ...new function.
20362 (pass_ud_rtl_dce): Replace declaration with that of...
20363 (make_pass_ud_rtl_dce): ...new function.
20364 (pass_rtl_dce): Replace declaration with that of...
20365 (make_pass_rtl_dce): ...new function.
20366 (pass_rtl_dse1): Replace declaration with that of...
20367 (make_pass_rtl_dse1): ...new function.
20368 (pass_rtl_dse2): Replace declaration with that of...
20369 (make_pass_rtl_dse2): ...new function.
20370 (pass_rtl_dse3): Replace declaration with that of...
20371 (make_pass_rtl_dse3): ...new function.
20372 (pass_rtl_cprop): Replace declaration with that of...
20373 (make_pass_rtl_cprop): ...new function.
20374 (pass_rtl_pre): Replace declaration with that of...
20375 (make_pass_rtl_pre): ...new function.
20376 (pass_rtl_hoist): Replace declaration with that of...
20377 (make_pass_rtl_hoist): ...new function.
20378 (pass_rtl_store_motion): Replace declaration with that of...
20379 (make_pass_rtl_store_motion): ...new function.
20380 (pass_cse_after_global_opts): Replace declaration with that of...
20381 (make_pass_cse_after_global_opts): ...new function.
20382 (pass_rtl_ifcvt): Replace declaration with that of...
20383 (make_pass_rtl_ifcvt): ...new function.
20384 (pass_into_cfg_layout_mode): Replace declaration with that of...
20385 (make_pass_into_cfg_layout_mode): ...new function.
20386 (pass_outof_cfg_layout_mode): Replace declaration with that of...
20387 (make_pass_outof_cfg_layout_mode): ...new function.
20388 (pass_loop2): Replace declaration with that of...
20389 (make_pass_loop2): ...new function.
20390 (pass_rtl_loop_init): Replace declaration with that of...
20391 (make_pass_rtl_loop_init): ...new function.
20392 (pass_rtl_move_loop_invariants): Replace declaration with that of...
20393 (make_pass_rtl_move_loop_invariants): ...new function.
20394 (pass_rtl_unswitch): Replace declaration with that of...
20395 (make_pass_rtl_unswitch): ...new function.
20396 (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
20397 (make_pass_rtl_unroll_and_peel_loops): ...new function.
20398 (pass_rtl_doloop): Replace declaration with that of...
20399 (make_pass_rtl_doloop): ...new function.
20400 (pass_rtl_loop_done): Replace declaration with that of...
20401 (make_pass_rtl_loop_done): ...new function.
20402 (pass_web): Replace declaration with that of...
20403 (make_pass_web): ...new function.
20404 (pass_cse2): Replace declaration with that of...
20405 (make_pass_cse2): ...new function.
20406 (pass_df_initialize_opt): Replace declaration with that of...
20407 (make_pass_df_initialize_opt): ...new function.
20408 (pass_df_initialize_no_opt): Replace declaration with that of...
20409 (make_pass_df_initialize_no_opt): ...new function.
20410 (pass_reginfo_init): Replace declaration with that of...
20411 (make_pass_reginfo_init): ...new function.
20412 (pass_inc_dec): Replace declaration with that of...
20413 (make_pass_inc_dec): ...new function.
20414 (pass_stack_ptr_mod): Replace declaration with that of...
20415 (make_pass_stack_ptr_mod): ...new function.
20416 (pass_initialize_regs): Replace declaration with that of...
20417 (make_pass_initialize_regs): ...new function.
20418 (pass_combine): Replace declaration with that of...
20419 (make_pass_combine): ...new function.
20420 (pass_if_after_combine): Replace declaration with that of...
20421 (make_pass_if_after_combine): ...new function.
20422 (pass_ree): Replace declaration with that of...
20423 (make_pass_ree): ...new function.
20424 (pass_partition_blocks): Replace declaration with that of...
20425 (make_pass_partition_blocks): ...new function.
20426 (pass_match_asm_constraints): Replace declaration with that of...
20427 (make_pass_match_asm_constraints): ...new function.
20428 (pass_regmove): Replace declaration with that of...
20429 (make_pass_regmove): ...new function.
20430 (pass_split_all_insns): Replace declaration with that of...
20431 (make_pass_split_all_insns): ...new function.
20432 (pass_fast_rtl_byte_dce): Replace declaration with that of...
20433 (make_pass_fast_rtl_byte_dce): ...new function.
20434 (pass_lower_subreg2): Replace declaration with that of...
20435 (make_pass_lower_subreg2): ...new function.
20436 (pass_mode_switching): Replace declaration with that of...
20437 (make_pass_mode_switching): ...new function.
20438 (pass_sms): Replace declaration with that of...
20439 (make_pass_sms): ...new function.
20440 (pass_sched): Replace declaration with that of...
20441 (make_pass_sched): ...new function.
20442 (pass_ira): Replace declaration with that of...
20443 (make_pass_ira): ...new function.
20444 (pass_reload): Replace declaration with that of...
20445 (make_pass_reload): ...new function.
20446 (pass_clean_state): Replace declaration with that of...
20447 (make_pass_clean_state): ...new function.
20448 (pass_branch_prob): Replace declaration with that of...
20449 (make_pass_branch_prob): ...new function.
20450 (pass_value_profile_transformations): Replace declaration with that
20452 (make_pass_value_profile_transformations): ...new function.
20453 (pass_postreload_cse): Replace declaration with that of...
20454 (make_pass_postreload_cse): ...new function.
20455 (pass_gcse2): Replace declaration with that of...
20456 (make_pass_gcse2): ...new function.
20457 (pass_split_after_reload): Replace declaration with that of...
20458 (make_pass_split_after_reload): ...new function.
20459 (pass_branch_target_load_optimize1): Replace declaration with that
20461 (make_pass_branch_target_load_optimize1): ...new function.
20462 (pass_thread_prologue_and_epilogue): Replace declaration with that
20464 (make_pass_thread_prologue_and_epilogue): ...new function.
20465 (pass_stack_adjustments): Replace declaration with that of...
20466 (make_pass_stack_adjustments): ...new function.
20467 (pass_peephole2): Replace declaration with that of...
20468 (make_pass_peephole2): ...new function.
20469 (pass_if_after_reload): Replace declaration with that of...
20470 (make_pass_if_after_reload): ...new function.
20471 (pass_regrename): Replace declaration with that of...
20472 (make_pass_regrename): ...new function.
20473 (pass_cprop_hardreg): Replace declaration with that of...
20474 (make_pass_cprop_hardreg): ...new function.
20475 (pass_reorder_blocks): Replace declaration with that of...
20476 (make_pass_reorder_blocks): ...new function.
20477 (pass_branch_target_load_optimize2): Replace declaration with that
20479 (make_pass_branch_target_load_optimize2): ...new function.
20480 (pass_leaf_regs): Replace declaration with that of...
20481 (make_pass_leaf_regs): ...new function.
20482 (pass_split_before_sched2): Replace declaration with that of...
20483 (make_pass_split_before_sched2): ...new function.
20484 (pass_compare_elim_after_reload): Replace declaration with that of...
20485 (make_pass_compare_elim_after_reload): ...new function.
20486 (pass_sched2): Replace declaration with that of...
20487 (make_pass_sched2): ...new function.
20488 (pass_stack_regs): Replace declaration with that of...
20489 (make_pass_stack_regs): ...new function.
20490 (pass_stack_regs_run): Replace declaration with that of...
20491 (make_pass_stack_regs_run): ...new function.
20492 (pass_df_finish): Replace declaration with that of...
20493 (make_pass_df_finish): ...new function.
20494 (pass_compute_alignments): Replace declaration with that of...
20495 (make_pass_compute_alignments): ...new function.
20496 (pass_duplicate_computed_gotos): Replace declaration with that of...
20497 (make_pass_duplicate_computed_gotos): ...new function.
20498 (pass_variable_tracking): Replace declaration with that of...
20499 (make_pass_variable_tracking): ...new function.
20500 (pass_free_cfg): Replace declaration with that of...
20501 (make_pass_free_cfg): ...new function.
20502 (pass_machine_reorg): Replace declaration with that of...
20503 (make_pass_machine_reorg): ...new function.
20504 (pass_cleanup_barriers): Replace declaration with that of...
20505 (make_pass_cleanup_barriers): ...new function.
20506 (pass_delay_slots): Replace declaration with that of...
20507 (make_pass_delay_slots): ...new function.
20508 (pass_split_for_shorten_branches): Replace declaration with that of...
20509 (make_pass_split_for_shorten_branches): ...new function.
20510 (pass_split_before_regstack): Replace declaration with that of...
20511 (make_pass_split_before_regstack): ...new function.
20512 (pass_convert_to_eh_region_ranges): Replace declaration with that
20514 (make_pass_convert_to_eh_region_ranges): ...new function.
20515 (pass_shorten_branches): Replace declaration with that of...
20516 (make_pass_shorten_branches): ...new function.
20517 (pass_set_nothrow_function_flags): Replace declaration with that of...
20518 (make_pass_set_nothrow_function_flags): ...new function.
20519 (pass_dwarf2_frame): Replace declaration with that of...
20520 (make_pass_dwarf2_frame): ...new function.
20521 (pass_final): Replace declaration with that of...
20522 (make_pass_final): ...new function.
20523 (pass_rtl_seqabstr): Replace declaration with that of...
20524 (make_pass_rtl_seqabstr): ...new function.
20525 (pass_release_ssa_names): Replace declaration with that of...
20526 (make_pass_release_ssa_names): ...new function.
20527 (pass_early_inline): Replace declaration with that of...
20528 (make_pass_early_inline): ...new function.
20529 (pass_inline_parameters): Replace declaration with that of...
20530 (make_pass_inline_parameters): ...new function.
20531 (pass_update_address_taken): Replace declaration with that of...
20532 (make_pass_update_address_taken): ...new function.
20533 (pass_convert_switch): Replace declaration with that of...
20534 (make_pass_convert_switch): ...new function.
20535 * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
20536 to a subclass of simple_ipa_opt_pass along with...
20537 (pass_data_ipa_tree_profile): ...new pass_data instance and...
20538 (make_pass_ipa_tree_profile): ...new function.
20539 * tree-sra.c (pass_sra_early): Convert from a global struct to a
20540 subclass of gimple_opt_pass along with...
20541 (pass_data_sra_early): ...new pass_data instance and...
20542 (make_pass_sra_early): ...new function.
20543 (pass_sra): Convert from a global struct to a subclass of
20544 gimple_opt_pass along with...
20545 (pass_data_sra): ...new pass_data instance and...
20546 (make_pass_sra): ...new function.
20547 (pass_early_ipa_sra): Convert from a global struct to a subclass of
20548 gimple_opt_pass along with...
20549 (pass_data_early_ipa_sra): ...new pass_data instance and...
20550 (make_pass_early_ipa_sra): ...new function.
20551 * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
20552 subclass of gimple_opt_pass along with...
20553 (pass_data_ccp): ...new pass_data instance and...
20554 (make_pass_ccp): ...new function.
20555 (pass_fold_builtins): Convert from a global struct to a subclass of
20556 gimple_opt_pass along with...
20557 (pass_data_fold_builtins): ...new pass_data instance and...
20558 (make_pass_fold_builtins): ...new function.
20559 * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
20560 subclass of gimple_opt_pass along with...
20561 (pass_data_copy_prop): ...new pass_data instance and...
20562 (make_pass_copy_prop): ...new function.
20563 * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
20564 global struct to a subclass of gimple_opt_pass along with...
20565 (pass_data_rename_ssa_copies): ...new pass_data instance and...
20566 (make_pass_rename_ssa_copies): ...new function.
20567 * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
20568 subclass of gimple_opt_pass along with...
20569 (pass_data_dce): ...new pass_data instance and...
20570 (make_pass_dce): ...new function.
20571 (pass_dce_loop): Convert from a global struct to a subclass of
20572 gimple_opt_pass along with...
20573 (pass_data_dce_loop): ...new pass_data instance and...
20574 (make_pass_dce_loop): ...new function.
20575 (pass_cd_dce): Convert from a global struct to a subclass of
20576 gimple_opt_pass along with...
20577 (pass_data_cd_dce): ...new pass_data instance and...
20578 (make_pass_cd_dce): ...new function.
20579 * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
20580 subclass of gimple_opt_pass along with...
20581 (pass_data_dominator): ...new pass_data instance and...
20582 (make_pass_dominator): ...new function.
20583 (pass_phi_only_cprop): Convert from a global struct to a subclass of
20584 gimple_opt_pass along with...
20585 (pass_data_phi_only_cprop): ...new pass_data instance and...
20586 (make_pass_phi_only_cprop): ...new function.
20587 * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
20588 subclass of gimple_opt_pass along with...
20589 (pass_data_dse): ...new pass_data instance and...
20590 (make_pass_dse): ...new function.
20591 * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
20592 a subclass of gimple_opt_pass along with...
20593 (pass_data_forwprop): ...new pass_data instance and...
20594 (make_pass_forwprop): ...new function.
20595 * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
20596 struct to a subclass of gimple_opt_pass along with...
20597 (pass_data_tree_ifcombine): ...new pass_data instance and...
20598 (make_pass_tree_ifcombine): ...new function.
20599 * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
20600 subclass of gimple_opt_pass along with...
20601 (pass_data_ch): ...new pass_data instance and...
20602 (make_pass_ch): ...new function.
20603 * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
20604 subclass of gimple_opt_pass along with...
20605 (pass_data_tree_loop): ...new pass_data instance and...
20606 (make_pass_tree_loop): ...new function.
20607 (pass_tree_loop_init): Convert from a global struct to a subclass of
20608 gimple_opt_pass along with...
20609 (pass_data_tree_loop_init): ...new pass_data instance and...
20610 (make_pass_tree_loop_init): ...new function.
20611 (pass_lim): Convert from a global struct to a subclass of
20612 gimple_opt_pass along with...
20613 (pass_data_lim): ...new pass_data instance and...
20614 (make_pass_lim): ...new function.
20615 (pass_tree_unswitch): Convert from a global struct to a subclass of
20616 gimple_opt_pass along with...
20617 (pass_data_tree_unswitch): ...new pass_data instance and...
20618 (make_pass_tree_unswitch): ...new function.
20619 (pass_predcom): Convert from a global struct to a subclass of
20620 gimple_opt_pass along with...
20621 (pass_data_predcom): ...new pass_data instance and...
20622 (make_pass_predcom): ...new function.
20623 (pass_vectorize): Convert from a global struct to a subclass of
20624 gimple_opt_pass along with...
20625 (pass_data_vectorize): ...new pass_data instance and...
20626 (make_pass_vectorize): ...new function.
20627 (pass_graphite): Convert from a global struct to a subclass of
20628 gimple_opt_pass along with...
20629 (pass_data_graphite): ...new pass_data instance and...
20630 (make_pass_graphite): ...new function.
20631 (pass_graphite_transforms): Convert from a global struct to a subclass
20632 of gimple_opt_pass along with...
20633 (pass_data_graphite_transforms): ...new pass_data instance and...
20634 (make_pass_graphite_transforms): ...new function.
20635 (pass_check_data_deps): Convert from a global struct to a subclass of
20636 gimple_opt_pass along with...
20637 (pass_data_check_data_deps): ...new pass_data instance and...
20638 (make_pass_check_data_deps): ...new function.
20639 (pass_iv_canon): Convert from a global struct to a subclass of
20640 gimple_opt_pass along with...
20641 (pass_data_iv_canon): ...new pass_data instance and...
20642 (make_pass_iv_canon): ...new function.
20643 (pass_scev_cprop): Convert from a global struct to a subclass of
20644 gimple_opt_pass along with...
20645 (pass_data_scev_cprop): ...new pass_data instance and...
20646 (make_pass_scev_cprop): ...new function.
20647 (pass_record_bounds): Convert from a global struct to a subclass of
20648 gimple_opt_pass along with...
20649 (pass_data_record_bounds): ...new pass_data instance and...
20650 (make_pass_record_bounds): ...new function.
20651 (pass_complete_unroll): Convert from a global struct to a subclass of
20652 gimple_opt_pass along with...
20653 (pass_data_complete_unroll): ...new pass_data instance and...
20654 (make_pass_complete_unroll): ...new function.
20655 (pass_complete_unrolli): Convert from a global struct to a subclass of
20656 gimple_opt_pass along with...
20657 (pass_data_complete_unrolli): ...new pass_data instance and...
20658 (make_pass_complete_unrolli): ...new function.
20659 (pass_parallelize_loops): Convert from a global struct to a subclass
20660 of gimple_opt_pass along with...
20661 (pass_data_parallelize_loops): ...new pass_data instance and...
20662 (make_pass_parallelize_loops): ...new function.
20663 (pass_loop_prefetch): Convert from a global struct to a subclass of
20664 gimple_opt_pass along with...
20665 (pass_data_loop_prefetch): ...new pass_data instance and...
20666 (make_pass_loop_prefetch): ...new function.
20667 (pass_iv_optimize): Convert from a global struct to a subclass of
20668 gimple_opt_pass along with...
20669 (pass_data_iv_optimize): ...new pass_data instance and...
20670 (make_pass_iv_optimize): ...new function.
20671 (pass_tree_loop_done): Convert from a global struct to a subclass of
20672 gimple_opt_pass along with...
20673 (pass_data_tree_loop_done): ...new pass_data instance and...
20674 (make_pass_tree_loop_done): ...new function.
20675 * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
20676 struct to a subclass of gimple_opt_pass along with...
20677 (pass_data_cse_reciprocals): ...new pass_data instance and...
20678 (make_pass_cse_reciprocals): ...new function.
20679 (pass_cse_sincos): Convert from a global struct to a subclass of
20680 gimple_opt_pass along with...
20681 (pass_data_cse_sincos): ...new pass_data instance and...
20682 (make_pass_cse_sincos): ...new function.
20683 (pass_optimize_bswap): Convert from a global struct to a subclass of
20684 gimple_opt_pass along with...
20685 (pass_data_optimize_bswap): ...new pass_data instance and...
20686 (make_pass_optimize_bswap): ...new function.
20687 (pass_optimize_widening_mul): Convert from a global struct to a
20688 subclass of gimple_opt_pass along with...
20689 (pass_data_optimize_widening_mul): ...new pass_data instance and...
20690 (make_pass_optimize_widening_mul): ...new function.
20691 * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
20692 subclass of gimple_opt_pass along with...
20693 (pass_data_phiopt): ...new pass_data instance and...
20694 (make_pass_phiopt): ...new function.
20695 (pass_cselim): Convert from a global struct to a subclass of
20696 gimple_opt_pass along with...
20697 (pass_data_cselim): ...new pass_data instance and...
20698 (make_pass_cselim): ...new function.
20699 * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
20700 subclass of gimple_opt_pass along with...
20701 (pass_data_phiprop): ...new pass_data instance and...
20702 (make_pass_phiprop): ...new function.
20703 * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
20704 subclass of gimple_opt_pass along with...
20705 (pass_data_pre): ...new pass_data instance and...
20706 (make_pass_pre): ...new function.
20707 (pass_fre): Convert from a global struct to a subclass of
20708 gimple_opt_pass along with...
20709 (pass_data_fre): ...new pass_data instance and...
20710 (make_pass_fre): ...new function.
20711 * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
20712 subclass of gimple_opt_pass along with...
20713 (pass_data_reassoc): ...new pass_data instance and...
20714 (make_pass_reassoc): ...new function.
20715 * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
20716 subclass of gimple_opt_pass along with...
20717 (pass_data_sink_code): ...new pass_data instance and...
20718 (make_pass_sink_code): ...new function.
20719 * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
20720 subclass of gimple_opt_pass along with...
20721 (pass_data_strlen): ...new pass_data instance and...
20722 (make_pass_strlen): ...new function.
20723 * tree-ssa-structalias.c (pass_build_alias): Convert from a global
20724 struct to a subclass of gimple_opt_pass along with...
20725 (pass_data_build_alias): ...new pass_data instance and...
20726 (make_pass_build_alias): ...new function.
20727 (pass_build_ealias): Convert from a global struct to a subclass of
20728 gimple_opt_pass along with...
20729 (pass_data_build_ealias): ...new pass_data instance and...
20730 (make_pass_build_ealias): ...new function.
20731 (pass_ipa_pta): Convert from a global struct to a subclass of
20732 simple_ipa_opt_pass along with...
20733 (pass_data_ipa_pta): ...new pass_data instance and...
20734 (make_pass_ipa_pta): ...new function.
20735 * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
20736 subclass of gimple_opt_pass along with...
20737 (pass_data_uncprop): ...new pass_data instance and...
20738 (make_pass_uncprop): ...new function.
20739 * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
20740 global struct to a subclass of gimple_opt_pass along with...
20741 (pass_data_late_warn_uninitialized): ...new pass_data instance and...
20742 (make_pass_late_warn_uninitialized): ...new function.
20743 * tree-ssa.c (pass_init_datastructures): Convert from a global struct
20744 to a subclass of gimple_opt_pass along with...
20745 (pass_data_init_datastructures): ...new pass_data instance and...
20746 (make_pass_init_datastructures): ...new function.
20747 (pass_early_warn_uninitialized): Convert from a global struct to a
20748 subclass of gimple_opt_pass along with...
20749 (pass_data_early_warn_uninitialized): ...new pass_data instance and...
20750 (make_pass_early_warn_uninitialized): ...new function.
20751 (pass_update_address_taken): Convert from a global struct to a
20752 subclass of gimple_opt_pass along with...
20753 (pass_data_update_address_taken): ...new pass_data instance and...
20754 (make_pass_update_address_taken): ...new function.
20755 * tree-ssanames.c (pass_release_ssa_names): Convert from a global
20756 struct to a subclass of gimple_opt_pass along with...
20757 (pass_data_release_ssa_names): ...new pass_data instance and...
20758 (make_pass_release_ssa_names): ...new function.
20759 * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
20760 subclass of gimple_opt_pass along with...
20761 (pass_data_stdarg): ...new pass_data instance and...
20762 (make_pass_stdarg): ...new function.
20763 * tree-switch-conversion.c (pass_convert_switch): Convert from a
20764 global struct to a subclass of gimple_opt_pass along with...
20765 (pass_data_convert_switch): ...new pass_data instance and...
20766 (make_pass_convert_switch): ...new function.
20767 * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
20768 to a subclass of gimple_opt_pass along with...
20769 (pass_data_tail_recursion): ...new pass_data instance and...
20770 (make_pass_tail_recursion): ...new function.
20771 (pass_tail_calls): Convert from a global struct to a subclass of
20772 gimple_opt_pass along with...
20773 (pass_data_tail_calls): ...new pass_data instance and...
20774 (make_pass_tail_calls): ...new function.
20775 * tree-vect-generic.c (pass_lower_vector): Convert from a global
20776 struct to a subclass of gimple_opt_pass along with...
20777 (pass_data_lower_vector): ...new pass_data instance and...
20778 (make_pass_lower_vector): ...new function.
20779 (pass_lower_vector_ssa): Convert from a global struct to a subclass of
20780 gimple_opt_pass along with...
20781 (pass_data_lower_vector_ssa): ...new pass_data instance and...
20782 (make_pass_lower_vector_ssa): ...new function.
20783 * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
20784 to a subclass of gimple_opt_pass along with...
20785 (pass_data_slp_vectorize): ...new pass_data instance and...
20786 (make_pass_slp_vectorize): ...new function.
20787 (pass_ipa_increase_alignment): Convert from a global struct to a
20788 subclass of simple_ipa_opt_pass along with...
20789 (pass_data_ipa_increase_alignment): ...new pass_data instance and...
20790 (make_pass_ipa_increase_alignment): ...new function.
20791 * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
20792 gimple_opt_pass along with...
20793 (pass_data_vrp): ...new pass_data instance and...
20794 (make_pass_vrp): ...new function.
20795 * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
20796 subclass of simple_ipa_opt_pass along with...
20797 (pass_data_ipa_free_lang_data): ...new pass_data instance and...
20798 (make_pass_ipa_free_lang_data): ...new function.
20799 * tsan.c (pass_tsan): Convert from a global struct to a subclass of
20800 gimple_opt_pass along with...
20801 (pass_data_tsan): ...new pass_data instance and...
20802 (make_pass_tsan): ...new function.
20803 (pass_tsan_O0): Convert from a global struct to a subclass of
20804 gimple_opt_pass along with...
20805 (pass_data_tsan_O0): ...new pass_data instance and...
20806 (make_pass_tsan_O0): ...new function.
20807 * var-tracking.c (pass_variable_tracking): Convert from a global
20808 struct to a subclass of rtl_opt_pass along with...
20809 (pass_data_variable_tracking): ...new pass_data instance and...
20810 (make_pass_variable_tracking): ...new function.
20811 * web.c (pass_web): Convert from a global struct to a subclass of
20812 rtl_opt_pass along with...
20813 (pass_data_web): ...new pass_data instance and...
20814 (make_pass_web): ...new function.
20815 * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
20816 declaration with that of...
20817 (make_pass_mode_switch_use): ...new function.
20818 (pass_resolve_sw_modes): Replace declaration with that of...
20819 (make_pass_resolve_sw_modes): ...new function.
20820 * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
20821 from a global struct to a subclass of rtl_opt_pass along with...
20822 (pass_data_mode_switch_use): ...new pass_data instance and...
20823 (make_pass_mode_switch_use): ...new function.
20824 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
20825 from a global struct to a subclass of rtl_opt_pass along with...
20826 (pass_data_resolve_sw_modes): ...new pass_data instance and...
20827 (make_pass_resolve_sw_modes): ...new function.
20828 * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
20829 struct to a subclass of rtl_opt_pass along with...
20830 (pass_data_insert_vzeroupper): ...new pass_data instance and...
20831 (make_pass_insert_vzeroupper): ...new function.
20832 * config/sparc/sparc.c (pass_work_around_errata): Convert from a
20833 global struct to a subclass of rtl_opt_pass along with...
20834 (pass_data_work_around_errata): ...new pass_data instance and...
20835 (make_pass_work_around_errata): ...new function.
20836 * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
20837 struct to a subclass of rtl_opt_pass along with...
20838 (pass_data_mips_machine_reorg2): ...new pass_data instance and...
20839 (make_pass_mips_machine_reorg2): ...new function.
20841 2013-08-05 David Malcolm <dmalcolm@redhat.com>
20843 * passes.c (pass_manager::operator new): New.
20845 2013-08-05 David Malcolm <dmalcolm@redhat.com>
20847 Handwritten part of conversion of passes to C++ classes.
20849 * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
20850 (toplev.o): Add dep on PASS_MANAGER_H.
20851 * cgraphunit.c (cgraph_process_new_functions): Rework invocation
20852 of early local pases to reflect this moving from a global to a
20853 member of gcc::pass_manager.
20854 (cgraph_add_new_function): Likewise.
20855 * lto-cgraph.c (lto_output_node): Update for conversion of
20856 struct ipa_opt_pass_d to a C++ subclass of opt_pass.
20857 * passes.c (opt_pass::clone): New.
20858 (opt_pass::gate): New.
20859 (opt_pass::execute): New.
20860 (opt_pass::opt_pass): New.
20861 (pass_manager::execute_early_local_passes): New.
20862 (pass_manager::execute_pass_mode_switching): new.
20863 (finish_optimization_passes): Convert to...
20864 (pass_manager::finish_optimization_passes): ...this.
20865 (finish_optimization_passes): Update for conversion of passes to
20867 (register_dump_files_1): Use has_gate since we cannot portably
20868 check a vtable entry against NULL.
20869 (dump_one_pass): Likewise.
20870 (ipa_write_summaries_2): Likewise.
20871 (ipa_write_optimization_summaries_1): Likewise.
20872 (ipa_read_summaries_1): Likewise.
20873 (ipa_read_optimization_summaries_1): Likewise.
20874 (execute_ipa_stmt_fixups): Likewise.
20875 (pass_manager::pass_manager): Rewrite pass-creation, invoking
20876 pass-creation functions rather than wiring up globals, and
20877 storing the results in fields of pass_manager generated using
20878 pass-instances.def.
20879 (pass_manager::dump_profile_report): Update for conversion of
20880 passes to C++ classes.
20881 (pass_manager::execute_ipa_summary_passes): Likewise.
20882 (execute_one_ipa_transform_pass): Likewise.
20883 (execute_one_pass): Use has_gate and has_execute since we cannot
20884 portably check a vtable entry against NULL.
20885 * pass_manager.h (pass_manager::finish_optimization_passes): New.
20886 (pass_manager): Use pass-instances.def to add fields for the
20887 various pass instances.
20888 * toplev.c (finalize): Update for move of
20889 finish_optimization_passes to a method of gcc::pass_manager.
20890 * toplev.h (finish_optimization_passes): Move to method of class
20892 * tree-pass.h (struct pass_data): New.
20893 (opt_pass): Convert to C++ class, make it a subclass of pass_data.
20894 (opt_pass::gate): Convert to virtual function.
20895 (opt_pass::~opt_pass): New.
20896 (opt_pass::clone): New.
20897 (opt_pass::execute): Convert to virtual function.
20898 (opt_pass::opt_pass): New.
20899 (opt_pass::ctxt_): new.
20900 (gimple_opt_pass): Convert to subclass of opt_pass.
20901 (gimple_opt_pass::gimple_opt_pass): New.
20902 (rtl_opt_pass): Convert to subclass of opt_pass.
20903 (rtl_opt_pass::rtl_opt_pass): New.
20904 (ipa_opt_pass_d): Convert to subclass of opt_pass.
20905 (ipa_opt_pass_d::ipa_opt_pass_d): New.
20906 (simple_ipa_opt_pass): Convert to subclass of opt_pass.
20907 (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
20908 * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
20909 invocation of pass_mode_switching to reflect this moving from a
20910 global to a member of gcc::pass_manager.
20911 (ix86_option_override): Rework how pass_insert_vzeroupper is
20912 added to the pass_manager to reflect autogenerated changes.
20913 * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
20915 2013-08-05 Richard Earnshaw <rearnsha@arm.com>
20917 PR rtl-optimization/57708
20918 * recog.c (peep2_find_free_register): Validate all regs in a
20921 2013-08-05 Jan Hubicka <jh@suse.cz>
20924 * cgraph.c (verify_cgraph_node): Accept local flags from other
20926 * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
20927 (function_and_variable_visibility): Likewise.
20928 * trans-mem.c (ipa_tm_create_version): TM versions are not local.
20930 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
20932 * graph.c (init_graph_slim_pretty_print): Remove.
20933 (print_graph_cfg): Do not call it. Use local pretty printer.
20934 (start_graph_dump): Likewise.
20936 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
20938 * gimple-pretty-print.c (buffer): Remove.
20939 (initialized): Likewise.
20940 (maybe_init_pretty_print): Likewise.
20941 (print_gimple_stmt): Do not call it. Use non-static local
20942 pretty_printer variable.
20943 (print_gimple_expr): Likewise.
20944 (print_gimple_seq): Likewise.
20945 (gimple_dump_bb): Likewise.
20947 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
20949 * asan.c (asan_pp): Remove.
20950 (asan_pp_initialized): Likewise.
20951 (asan_pp_initialize): Likewise.
20952 (asan_pp_string): Take a pretty_printer parameter. Adjust callers.
20953 (asan_emit_stack_protection): Tidy. Use local pretty printer.
20954 (asan_add_global): Likewise.
20956 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
20958 * pretty-print.h (pp_base): Remove. Adjust dependent macros.
20959 * diagnostic.h (diagnostic_flush_buffer): Adjust.
20960 * pretty-print.c (pp_formatted_text_data): Likewise.
20961 (pp_indent): Rename from pp_base_indent.
20962 (pp_format): Rename from pp_base_format.
20963 (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
20964 (pp_format_verbatim): Rename from pp_base_format_verbatim.
20965 (pp_flush): Rename from pp_base_flush.
20966 (pp_set_line_maximum_length): Rename from
20967 pp_base_set_line_maximum_length.
20968 (pp_clear_output_area): Rename from pp_base_clear_output_area.
20969 (pp_set_prefix): Rename from pp_base_set_prefix.
20970 (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
20971 (pp_emit_prefix): Rename from pp_base_emit_prefix.
20972 (pp_append_text): Rename from pp_base_append_text.
20973 (pp_formatted_text): Rename from pp_base_formatted_text.
20974 (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
20975 (pp_remaining_character_count_for_line): Rename from
20976 pp_base_remaining_character_count_for_line.
20977 (pp_newline): Rename from pp_base_newline.
20978 (pp_character): Rename from pp_base_character.
20979 (pp_string): Rename from pp_base_string.
20980 (pp_maybe_space): Rename from pp_base_maybe_space.
20981 * asan.c (asan_pp_string): Adjust.
20982 (asan_emit_stack_protection): Likewise.
20983 (asan_add_global): Likewise.
20984 * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
20985 * tree-mudflap.c (mf_varname_tree): Likewise.
20986 * tree-pretty-print.c (pp_tree_identifier): Rename from
20987 pp_base_tree_identifier.
20988 * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
20989 Declare as function.
20991 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
20993 * pretty-print.h (pp_bar_bar): New.
20994 (pp_ampersand_ampersand): Likewise.
20995 (pp_less_equal): Likewise.
20996 (pp_greater_equal): Likewise.
20997 * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
20998 printer functions instead of pp_string or operators and punctuators.
20999 (dump_gimple_call): Likewise.
21000 (dump_gimple_omp_for): Likewise.
21001 (dump_gimple_transaction): Likewise.
21002 (dump_gimple_phi): Likewise.
21003 (pp_gimple_stmt_1): Likewise.
21004 * sched-vis.c (print_insn): Likewise.
21005 * tree-mudflap.c (mf_varname_tree): Likewise.
21006 * tree-pretty-print.c (dump_block_node): Likewise.
21007 (dump_generic_node): Likewise.
21009 2013-08-02 Jan Hubicka <jh@suse.cz>
21011 * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
21013 * lto-streamer-out.c (tree_is_indexable): Results decls and
21014 parm decls are not indexable.
21015 (DFS_write_tree_body): Do not follow args and results.
21016 (hash_tree): Likewise.
21017 (output_functions): Rearrange so struct function is needed
21018 only when real body is output; be able to also ouptut abstract
21019 functions; output DECL_ARGUMENTS and DECL_RESULT.
21020 (lto_output): When not in WPA, ale store abstract functions.
21021 (write_symbol): Do not care about RESULT_DECL.
21022 (output_symbol_p): Handle correctly sbtract decls.
21023 * lto-streamer-in.c (input_function): Rearrange so struct
21024 function can be NULL at entry; allow streaming of
21025 functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
21026 * ipa.c (symtab_remove_unreachable_nodes): Silence confused
21027 sanity check during LTO.
21028 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
21029 RESULT_DECl and DECL_ARGUMENTS.
21030 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
21033 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
21035 * pretty-print.h (pp_underscore): New.
21037 * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
21038 printer functions instead of pp_character.
21039 (dump_binary_rhs): Likewise.
21040 (dump_ternary_rhs): Likewise.
21041 (dump_gimple_call_args): Likewise.
21042 (pp_points_to_solution): Likewise.
21043 (dump_gimple_call): Likewise.
21044 (dump_gimple_switch): Likewise.
21045 (dump_gimple_cond): Likewise.
21046 (dump_gimple_bind): Likewise.
21047 (dump_gimple_try): Likewise.
21048 (dump_gimple_omp_for): Likewise.
21049 (dump_gimple_omp_continue): Likewise.
21050 (dump_gimple_omp_single): Likewise.
21051 (dump_gimple_omp_sections): Likewise.
21052 (dump_gimple_omp_block): Likewise.
21053 (dump_gimple_omp_critical): Likewise.
21054 (dump_gimple_transaction): Likewise.
21055 (dump_gimple_asm): Likewise.
21056 (dump_gimple_phi): Likewise.
21057 (dump_gimple_omp_parallel): Likewise.
21058 (dump_gimple_omp_task): Likewise.
21059 (dump_gimple_omp_atomic_load): Likewise.
21060 (dump_gimple_omp_atomic_store): Likewise.
21061 (dump_gimple_mem_ops): Likewise.
21062 (pp_gimple_stmt_1): Likewise.
21063 (pp_cfg_jump): Likewise.
21064 (dump_implicit_edges): Likewise.
21065 (gimple_dump_bb_for_graph): Likewise.
21066 * graph.c (draw_cfg_node): Likewise.
21067 * langhooks.c (lhd_print_error_function): Likewise.
21068 * sched-vis.c (print_exp): Likewise.
21069 (print_value): Likewise.
21070 (print_pattern): Likewise.
21071 (print_insn): Likewise.
21072 (rtl_dump_bb_for_graph): Likewise.
21073 * tree-pretty-print.c (dump_function_declaration): Likewise.
21074 (dump_array_domain): Likewise.
21075 (dump_omp_clause): Likewise.
21076 (dump_location): Likewise.
21077 (dump_generic_node): Likewise.
21078 (print_struct_decl): Likewise.
21079 * diagnostic.c (diagnostic_show_locus): Use pp_space.
21081 2013-08-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
21083 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
21084 candidate table when replacing a candidate statement.
21085 (replace_rhs_if_not_dup): Likewise.
21086 (replace_one_candidate): Likewise.
21088 2013-08-02 Jan Hubicka <jh@suse.cz>
21089 Martin Liska <marxin.liska@gmail.com>
21091 * cgraphunit.c (add_new_function): Fix logic when adding from
21093 (assemble_thunk): Rename to ...
21094 (expand_thunk); .. this one; export; get it working with
21095 general functions; make produced gimple valid.
21096 * cgraph.h (expand_thunk): Declare.
21098 2013-08-02 Jan Hubicka <jh@suse.cz>
21100 * ipa-cp.c (gather_context_independent_values): Use
21101 ipa_get_param_move_cost.
21102 (get_replacement_map): Remove PARAM; move parameter folding
21104 (create_specialized_node): Update.
21105 * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
21106 assert that we have gimple body; update move_cost.
21107 (count_formal_params): Assert that we have gimple body.
21108 (ipa_dump_param): New function.
21109 (ipa_alloc_node_params): Break out from ...
21110 (ipa_initialize_node_params): ... here.
21111 (ipa_get_vector_of_formal_parms): ICE when used in WPA.
21112 (ipa_write_node_info): Stream move costs.
21113 (ipa_read_node_info): Read move costs.
21114 (ipa_update_after_lto_read): Do not recompute node params.
21115 * ipa-prop.h (ipa_param_descriptor): Add move_cost.
21116 (ipa_get_param): Check we are not in WPA.
21117 (ipa_get_param_move_cost): New.
21118 * tree-inline.c (tree_function_versioning): Fold replacement as needed.
21119 * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
21120 parm numbers to be present.
21122 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
21124 PR rtl-optimization/58048
21125 * lra-constraints.c (process_alt_operands): Don't check asm
21126 operand on register.
21128 2013-08-02 Eric Botcazou <ebotcazou@adacore.com>
21130 * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
21131 the implied StoreLoad barrier for atomic operations if before.
21133 2013-08-02 Jan Hubicka <jh@suse.cz>
21134 Martin Liska <marxin.liska@gmail.com>
21136 * cgraph.c (cgraph_function_body_availability): Do not check
21138 * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
21139 symtab_node_availability): Declare.
21140 * ipa.c (can_replace_by_local_alias): New.
21141 (function_and_variable_visibility): Use it.
21142 * symtab.c (symtab_for_node_and_aliases,
21143 symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
21145 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
21147 PR rtl-optimization/57963
21148 * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
21149 (lra_constraints): Use them.
21151 2013-08-02 Sofiane Naci <sofiane.naci@arm.com>
21153 * config/arm/types.md (define_attr "type"): Add "load_acq"
21155 * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
21157 (cortex_a53_store1): Likewise.
21159 2013-08-01 Jan Hubicka <jh@suse.cz>
21161 * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
21162 partitions are not needed.
21164 2013-08-01 Uros Bizjak <ubizjak@gmail.com>
21166 * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
21167 * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
21168 MAYBE_NON_Q_CLASS_P where appropriate.
21170 2013-08-01 Jan Hubicka <jh@suse.cz>
21172 * cgraph.h (release_function_body): Declare.
21173 * tree.c (free_lang_data_in_decl): Free, parameters and return values
21174 of unused delcarations.
21176 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21178 * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
21179 RTL form when subtracting a constant.
21181 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21183 * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
21184 Generate canonical plus rtx with negated immediate instead of minus
21186 * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
21188 2013-08-01 Jan Hubicka <jh@suse.cz>
21190 * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
21191 (cgraph_release_function_body): Likewise.
21192 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
21193 * cgraph.h (cgrpah_node): Rename abstract_and_needed
21194 to used_as_abstract_origin.
21195 * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
21196 symbols used as abstract origins.
21197 * cgraphunit.c (analyze_functions): Update.
21198 * ipa.c (symtab_remove_unreachable_nodes): Recompute
21199 used_as_abstract_origin.
21200 * tree-inline.c (tree_function_versioning): Update
21201 used_as_abstract_origin; be ready for DECL_RESULT and
21202 DECL_ARGUMENTS to be NULL.
21204 * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
21205 for abstract functions.
21206 * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
21209 2013-08-01 Jan Hubicka <jh@suse.cz>
21211 * profile.c (compute_value_histograms): Fix thinko.
21213 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
21215 * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs. Add
21216 aarch-common-protos.h to extra_headers.
21217 (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
21218 * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
21219 * config/aarch64/t-aarch64 (aarch-common.o): Define.
21221 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
21223 * config/aarch64/aarch64.md (define_attr "type"): Delete.
21224 Include "../arm/types.md". Define "type" attribute for all patterns.
21225 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
21228 2013-07-31 Michael Meissner <meissner@linux.vnet.ibm.com>
21230 * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
21231 to support power8 load fusion.
21232 (fusion_gpr_mem_load): Likewise.
21234 * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
21236 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
21237 declarations for power8 load fusion.
21238 (emit_fusion_gpr_load): Likewise.
21240 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
21241 tuning for power8, turn on fusion mode by default. Turn on sign
21242 extending fusion mode if normal fusion mode is on, and we are at
21244 (fusion_gpr_load_p): New function, return true if we can fuse an
21245 addis instruction with a dependent load to a GPR.
21246 (emit_fusion_gpr_load): Emit the instructions for power8 load
21249 * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
21250 (VSX load fusion peepholes): New peepholes to fuse together an
21251 addi instruction with a VSX load instruction.
21253 * config/rs6000/rs6000.md (GPR load fusion peepholes): New
21254 peepholes to fuse an addis instruction with a load to a GPR base
21255 register. If we are supporting sign extending fusions, convert
21256 sign extending loads to zero extending loads and add an explicit
21259 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
21261 * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs. Add
21262 aarch-common-protos.h to extra_headers.
21263 (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
21264 * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
21265 (arm_early_store_addr_dep): Likewise.
21266 (arm_no_early_alu_shift_dep): Likewise.
21267 (arm_no_early_alu_shift_value_dep): Likewise.
21268 (arm_no_early_mul_dep): Likewise.
21269 (arm_no_early_store_addr_dep): Likewise.
21270 (arm_mac_accumulator_is_mul_result): Likewise.
21271 (arm_mac_accumulator_is_result): Likewise.
21272 * config/arm/aarch-common.c: ... here. New file.
21273 * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
21275 (arm_early_store_addr_dep): Likewise.
21276 (arm_no_early_alu_shift_dep): Likewise.
21277 (arm_no_early_alu_shift_value_dep): Likewise.
21278 (arm_no_early_mul_dep): Likewise.
21279 (arm_no_early_store_addr_dep): Likewise.
21280 (arm_mac_accumulator_is_mul_result): Likewise.
21281 (arm_mac_accumulator_is_result): Likewise.
21282 * config/arm/aarch-common-protos.h: ... here. New file.
21283 * config/arm/t-arm (aarch-common.o): Define.
21285 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
21287 * config/arm/arm.md: Include new file "types.md".
21288 (define_attr "type"): Move from here to ...
21289 (define_attr "mul32"): Likewise.
21290 (define_attr "mul64"): Likewise.
21291 * config/arm/types.md: ... here. New file.
21293 2013-07-31 Sebastian Huber <sebastian.huber@embedded-brains.de>
21295 * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
21296 * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
21298 2013-07-31 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21300 * gen-pass-instances.awk: Fix offset of substr().
21302 2013-07-31 David Malcolm <dmalcolm@redhat.com>
21304 * Makefile.in (pass-instances.def): New.
21305 (passes.o): Replace dependency on passes.def with one on
21308 * gen-pass-instances.awk: New.
21310 * passes.c (pass_manager::pass_manager): Use pass-instances.def
21311 rather than passes.def, updating local definition of NEXT_PASS
21312 macro to add an extra NUM parameter (currently unused).
21314 2013-07-30 David Malcolm <dmalcolm@redhat.com>
21316 * Makefile.in (PASS_MANAGER_H): New.
21317 (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
21318 (passes.o): Likewise.
21319 (statistics.o): Likewise.
21320 (cgraphunit.o): Likewise.
21321 (context.o): Depend on PASS_MANAGER_H.
21323 * pass_manager.h: New.
21325 * cgraphunit.c (cgraph_add_new_function): Update for moves
21326 of globals to fields of pass_manager.
21327 (analyze_function): Likewise.
21328 (expand_function): Likewise.
21329 (ipa_passes): Likewise.
21330 (compile): Likewise.
21332 * context.c (context::context): New.
21333 * context.h (context::context): New.
21334 (context::get_passes): New.
21335 (context::passes_): New.
21337 * lto-cgraph.c (input_node): Update for moves of globals to
21338 fields of pass_manager.
21340 * passes.c (all_passes): Remove, in favor of a field of the
21341 same name within the new class pass_manager.
21342 (all_small_ipa_passes): Likewise.
21343 (all_lowering_passes): Likewise.
21344 (all_regular_ipa_passes): Likewise.
21345 (all_late_ipa_passes): Likewise.
21346 (all_lto_gen_passes): Likewise.
21347 (passes_by_id): Likewise.
21348 (passes_by_id_size): Likewise.
21349 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
21350 the new class pass_manager.
21351 (set_pass_for_id): Convert to...
21352 (pass_manager::set_pass_for_id): ...method.
21353 (get_pass_for_id): Convert to...
21354 (pass_manager::get_pass_for_id): ...method.
21355 (register_one_dump_file): Move body of implementation into...
21356 (pass_manager::register_one_dump_file): ...here.
21357 (register_dump_files_1): Convert to...
21358 (pass_manager::register_dump_files_1): ...method.
21359 (register_dump_files): Convert to...
21360 (pass_manager::register_dump_files): ...method.
21361 (create_pass_tab): Update for moves of globals to fields of
21363 (dump_passes): Move body of implementation into...
21364 (pass_manager::dump_passes): ...here.
21365 (register_pass): Move body of implementation into...
21366 (pass_manager::register_pass): ...here.
21367 (init_optimization_passes): Convert into...
21368 (pass_manager::pass_manager): ...constructor for new
21369 pass_manager class, and initialize the pass_lists array.
21370 (check_profile_consistency): Update for moves of globals to
21371 fields of pass_manager.
21372 (dump_profile_report): Move body of implementation into...
21373 (pass_manager::dump_profile_report): ...here.
21374 (ipa_write_summaries_1): Update for moves of pass lists from
21375 being globals to fields of pass_manager.
21376 (ipa_write_optimization_summaries): Likewise.
21377 (ipa_read_summaries): Likewise.
21378 (ipa_read_optimization_summaries): Likewise.
21379 (execute_all_ipa_stmt_fixups): Likewise.
21381 * statistics.c (statistics_fini): Update for moves of globals to
21382 fields of pass_manager.
21384 * toplev.c (general_init): Replace call to
21385 init_optimization_passes with construction of the pass_manager
21388 * tree-pass.h (all_passes): Remove, in favor of a field of the
21389 same name within the new class pass_manager.
21390 (all_small_ipa_passes): Likewise.
21391 (all_lowering_passes): Likewise.
21392 (all_regular_ipa_passes): Likewise.
21393 (all_lto_gen_passes): Likewise.
21394 (all_late_ipa_passes): Likewise.
21395 (passes_by_id): Likewise.
21396 (passes_by_id_size): Likewise.
21397 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
21398 the new class pass_manager.
21399 (get_pass_for_id): Remove.
21401 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
21403 * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
21406 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
21408 * arm.md (mulhi3): New expand pattern.
21410 2013-07-30 Jan Hubicka <jh@suse.cz>
21411 Martin Liska <marxin.liska@gmail.com>
21413 * profile.c (compute_value_histograms): Do not ICE when
21414 there is mismatch only on some counters.
21416 2013-07-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21418 PR rtl-optimization/57637
21419 * function.c (move_insn_for_shrink_wrap): Also check the
21420 GEN set of the LIVE problem for the liveness analysis
21421 if it exists, otherwise give up.
21423 2013-07-29 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
21425 PR tree-optimization/57993
21426 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
21427 replaced statement in the candidate table.
21428 (phi_add_costs): Return infinite cost when the hidden basis does
21429 not dominate all phis on which the candidate is dependent.
21430 (replace_one_candidate): Record replaced statement in the
21433 2013-07-29 Joern Rennecke <joern.rennecke@embecosm.com>
21435 * config/epiphany/epiphany.md (*isub_i+2): New peephole.
21436 (ashlv2si3): New expander.
21437 (*ashlv2si3_i): New define_insn_and_split.
21438 * predicates.md (float_operation): Allow patterns with three
21439 basic sub-patterns.
21441 PR rtl-optimization/58021
21442 * mode-switching.c (create_pre_exit): Always split off preceding
21443 insns if we are not at the basic block head.
21445 2013-07-29 Maciej W. Rozycki <macro@codesourcery.com>
21447 * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
21448 (UCLIBC_DYNAMIC_LINKER): New macro.
21449 * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
21451 (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
21452 (UCLIBC_DYNAMIC_LINKER32): Undefine macro first. Handle
21454 (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
21455 (UCLIBC_DYNAMIC_LINKERN32): Likewise.
21456 * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
21457 for SF and DF modes. Use ieee_quad_format for TF mode.
21458 * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
21459 * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
21460 (mips_option_override): Handle `-mnan=legacy'.
21461 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
21462 `-mabs=2008' and `-mnan=2008'.
21463 (OPTION_DEFAULT_SPECS): Add "nan" default.
21464 (ASM_SPEC): Handle `-mnan='.
21465 [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
21466 * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
21467 comment accordingly.
21468 (neg<mode>2): Likewise.
21469 * config/mips/mips.opt (mabs, mnan): New options.
21470 * doc/install.texi (Configuration): Document `--with-nan=' option.
21471 * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
21473 (MIPS Options): Document them.
21474 * config.gcc <mips*-*-*>: Handle `--with-nan='.
21475 * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
21476 * configure: Regenerate.
21477 * config.in: Regenerate.
21479 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
21481 * config/i386/i386.md (float post-reload splitters): Do not check
21482 for subregs of SSE registers.
21484 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
21485 H.J. Lu <hongjiu.lu@intel.com>
21489 * config/i386/i386.md (post-reload splitter
21490 to avoid partial SSE reg dependency stalls): New pattern.
21492 2013-07-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
21494 * config/s390/s390.md ("movcc"): Swap load and store instructions.
21496 2013-07-27 Joern Rennecke <joern.rennecke@embecosm.com>
21498 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
21499 Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
21501 2013-07-26 Cary Coutant <ccoutant@google.com>
21503 * dwarf2out.c (die_checksum_ordered): Don't include template
21504 instantiations in signature.
21505 (is_template_parameter): New function.
21506 (is_template_instantiation): New function.
21507 (generate_skeleton_bottom_up): Don't include template instantiations
21509 (generate_skeleton): Likewise.
21510 (break_out_comdat_types): Move recursive call to break out nested
21512 (prune_unused_types_mark_generic_parms_dies): Call
21513 is_template_parameter.
21515 2013-07-26 Ian Bolton <ian.bolton@arm.com>
21517 * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
21518 uses vector registers.
21519 * config/aarch64/iterators.md: Add attributes rtn and vas.
21521 2013-07-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21522 Richard Earnshaw <richard.earnshaw@arm.com>
21524 * combine.c (simplify_comparison): Re-canonicalize operands
21526 * config/arm/arm.md (movcond_addsi): New splitter.
21528 2013-07-25 Sterling Augustine <saugustine@google.com>
21530 * dwarf2out.c (size_of_pubnames): Move code to...
21531 (include_pubname_in_output): ...here. New.
21532 (want_pubnames): Rearrange.
21533 (output_pubnames): Call include_pubname_in_output. Move assertion.
21535 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
21537 * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
21539 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
21542 * doc/extend.texi: Remove obsolete builtins. Fix
21543 typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
21545 2013-07-25 Jan Hubicka <jh@suse.cz>
21547 * cgraph.c (release_function_body): Break out from ...
21548 (cgraph_release_function_body): ... this one; also release DECL_RESULT
21549 and DECL_ARGUMENTS.
21550 * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
21551 old_tree in the map.
21552 (create_specialized_node): Update.
21553 * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
21555 * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
21556 DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
21557 * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
21558 * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
21561 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21563 * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
21564 addsi3_carryin_alt2_<optab>): Correct output template.
21566 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21568 * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
21569 Adjust for arm_restrict_it.
21570 Remove trailing whitespace.
21572 2013-07-25  Mark Kettenis  <kettenis@openbsd.org>
21574 * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
21575 libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
21577 * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
21579 2013-07-25 Vladimir Makarov <vmakarov@redhat.com>
21581 PR rtl-optimization/57960
21582 * lra-constraints.c (process_alt_operands): Use the right mode
21583 when checking strict_low.
21585 2013-07-25 Jan Hubicka <jh@suse.cz>
21587 * lto-symtab.c (lto_cgraph_replace_node): Release function body.
21588 * cgraph.c (cgraph_remove_node): Do not release function body
21589 when in cgraph streaming.
21590 * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
21591 in other partitions are not considered reachable; fix handling of
21594 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21596 * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
21598 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21603 * config/arm/arm.md ("*sibcall_insn): Replace use of
21604 Ss with US. Adjust output for v5 and v4t.
21605 (*sibcall_value_insn): Likewise and loosen predicate on operand0.
21607 * config/arm/constraints.md ("Ss"): Rename to US.
21609 2013-07-25 Terry Guo <terry.guo@arm.com>
21611 * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
21612 shift_add/shift_sub0/shift_sub1 RTXs.
21614 2013-07-24 Bill Schmidt <wschmidt@linux.ibm.com>
21615 Anton Blanchard <anton@au1.ibm.com>
21617 * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
21618 (altivec_vpks<VI_char>ss): Likewise.
21619 (altivec_vpks<VI_char>us): Likewise.
21620 (altivec_vpku<VI_char>us): Likewise.
21621 (altivec_vpku<VI_char>um): Likewise.
21623 2013-07-24 David Malcolm <dmalcolm@redhat.com>
21625 Introduce context class.
21627 * Makefile.in (CONTEXT_H): New.
21628 (OBJS): Add context.o.
21629 (toplev.o): Add CONTEXT_H to dependencies.
21632 * toplev.c (general_init): Create the singleton gcc::context instance.
21638 2013-07-24 Joern Rennecke <joern.rennecke@embecosm.com>
21640 PR rtl-optimization/57968
21641 * mode-switching.c (create_pre_exit): Allow instructions that
21642 don't set a return register to need a non-exit mode.
21644 2013-07-24 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
21645 Anton Blanchard <anton@au1.ibm.com>
21647 * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
21648 operands to vperm for little endian.
21649 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
21650 of lvsl to create the control mask for a vperm for little endian.
21652 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21653 Anton Blanchard <anton@au1.ibm.com>
21655 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
21656 two operands for little-endian.
21658 2013-07-23 Steve Ellcey <sellcey@mips.com>
21660 * config/mips/mips.c (mips_case_values_threshold): New.
21661 (TARGET_CASE_VALUES_THRESHOLD): Define.
21663 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21664 Anton Blanchard <anton@au1.ibm.com>
21666 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
21667 selection of field for vector splat in little endian mode.
21669 2013-07-23 Michael Meissner <meissner@linux.vnet.ibm.com>
21671 * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
21672 expanders to rs6000.md.
21673 (ior<mode>3): Likewise.
21674 (and<mode>3): Likewise.
21675 (one_cmpl<mode>2): Likewise.
21676 (nor<mode>3): Likewise.
21677 (andc<mode>3): Likewise.
21678 (eqv<mode>3): Likewise.
21679 (nand<mode>3): Likewise.
21680 (orc<mode>3): Likewise.
21682 * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
21685 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
21686 to split multi-word logical operations.
21687 (rs6000_split_logical_di): Likewise.
21688 (rs6000_split_logical): Likewise.
21690 * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
21691 (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
21692 and allow TImode operations in 32-bit.
21693 (vsx_and<mode>3_64bit): Likewise.
21694 (vsx_ior<mode>3_32bit): Likewise.
21695 (vsx_ior<mode>3_64bit): Likewise.
21696 (vsx_xor<mode>3_32bit): Likewise.
21697 (vsx_xor<mode>3_64bit): Likewise.
21698 (vsx_one_cmpl<mode>2_32bit): Likewise.
21699 (vsx_one_cmpl<mode>2_64bit): Likewise.
21700 (vsx_nor<mode>3_32bit): Likewise.
21701 (vsx_nor<mode>3_64bit): Likewise.
21702 (vsx_andc<mode>3_32bit): Likewise.
21703 (vsx_andc<mode>3_64bit): Likewise.
21704 (vsx_eqv<mode>3_32bit): Likewise.
21705 (vsx_eqv<mode>3_64bit): Likewise.
21706 (vsx_nand<mode>3_32bit): Likewise.
21707 (vsx_nand<mode>3_64bit): Likewise.
21708 (vsx_orc<mode>3_32bit): Likewise.
21709 (vsx_orc<mode>3_64bit): Likewise.
21711 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
21712 logical types in GPRs.
21714 * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
21715 logical insns to rs6000.md, and allow TImode operations in
21717 (altivec_ior<mode>3): Likewise.
21718 (altivec_xor<mode>3): Likewise.
21719 (altivec_one_cmpl<mode>2): Likewise.
21720 (altivec_nor<mode>3): Likewise.
21721 (altivec_andc<mode>3): Likewise.
21723 * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
21724 attributes for moving the 128-bit logical operations into
21726 (BOOL_REGS_OUTPUT): Likewise.
21727 (BOOL_REGS_OP1): Likewise.
21728 (BOOL_REGS_OP2): Likewise.
21729 (BOOL_REGS_UNARY): Likewise.
21730 (BOOL_REGS_AND_CR0): Likewise.
21731 (one_cmpl<mode>2): Add support for DI logical operations on
21732 32-bit, splitting the operations to 32-bit.
21733 (anddi3): Likewise.
21734 (iordi3): Likewise.
21735 (xordi3): Likewise.
21736 (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
21737 changes to combine the 32/64-bit code, allow logical operations on
21738 TI mode in 32-bit, and to use similar match_operator patterns like
21739 scalar mode uses. Combine the Altivec and VSX code for logical
21740 operations, and move it here.
21741 (ior<mode>3, 128-bit types): Likewise.
21742 (xor<mode>3, 128-bit types): Likewise.
21743 (one_cmpl<mode>3, 128-bit types): Likewise.
21744 (nor<mode>3, 128-bit types): Likewise.
21745 (andc<mode>3, 128-bit types): Likewise.
21746 (eqv<mode>3, 128-bit types): Likewise.
21747 (nand<mode>3, 128-bit types): Likewise.
21748 (orc<mode>3, 128-bit types): Likewise.
21749 (and<mode>3_internal): Likewise.
21750 (bool<mode>3_internal): Likewise.
21751 (boolc<mode>3_internal1): Likewise.
21752 (boolc<mode>3_internal2): Likewise.
21753 (boolcc<mode>3_internal1): Likewise.
21754 (boolcc<mode>3_internal2): Likewise.
21755 (eqv<mode>3_internal1): Likewise.
21756 (eqv<mode>3_internal2): Likewise.
21757 (one_cmpl1<mode>3_internal): Likewise.
21759 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
21761 * config/microblaze/microblaze.c (microblaze_expand_prologue):
21762 Rename flag_stack_usage to flag_stack_usage_info.
21764 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
21766 * config/microblaze/sync.md: New file.
21767 * config/microblaze/microblaze.md: Include sync.md
21768 * config/microblaze/microblaze.c: Add print_operand 'y'.
21769 * config/microblaze/constraints.md: Add memory_contraint
21770 'Q' which is a single register.
21772 2013-07-23 Eric Botcazou <ebotcazou@adacore.com>
21774 * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
21776 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
21778 * reload.c (find_reloads): Exit loop once we find this operand
21779 cannot be reloaded somehow for this alternative.
21781 * reload.c (find_reloads): Exit loop once we find a hard register.
21783 * rtlanal.c (computed_jump_p): Exit loop once we find label
21786 * i386.c (ix86_pad_returns): Exit loop after setting replace.
21788 * cfgloopmanip.c (remove_path): Exit loop after setting
21791 * gensupport.c (subst_dup): Avoid loop if code is not
21792 MATCH_DUP nor MATCH_OP_DUP.
21794 2013-07-23 Nicklas Bo Jensen <nbjensen@gmail.com>
21796 * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
21798 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
21800 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
21801 true for SP_REGNUM if mode == ptr_mode.
21802 * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
21803 with value R0_REGNUM + 31.
21805 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
21807 * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
21808 pad pointer-typed argument downward.
21810 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
21812 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
21813 and __ILP32__ when the ILP32 model is in use.
21815 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
21817 * config/aarch64/aarch64.c (POINTER_BYTES): New define.
21818 (aarch64_load_symref_appropriately): In the case of
21819 SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
21820 to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
21821 (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
21822 change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
21823 if 'mode' doesn't equal to 'ptr_mode'.
21824 (aarch64_output_mi_thunk): Add an assertion on the alignment of
21825 'vcall_offset'; change to call aarch64_emit_move differently depending
21826 on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
21827 to calculate the upper bound of 'vcall_offset'.
21828 (aarch64_cannot_force_const_mem): Change to also return true if
21830 (aarch64_legitimize_reload_address): In the case of large
21831 displacements, add new local variable 'xmode' and an assertion
21832 based on it; change to use 'xmode' to generate the new rtx and
21834 (aarch64_asm_trampoline_template): Change to generate the template
21835 differently depending on TARGET_ILP32 or not; change to use
21836 'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
21837 (aarch64_trampoline_size): Removed.
21838 (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
21839 and replace immediate literals with it. Change to use 'ptr_mode'
21840 instead of 'DImode' and call convert_memory_address if the mode
21841 of 'fnaddr' doesn't equal to 'ptr_mode'.
21842 (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
21844 (aarch64_elf_asm_destructor): Likewise.
21845 * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
21846 on TARGET_ILP32 instead of aarch64_trampoline_size.
21847 * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
21848 of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
21849 (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
21850 (loadwb_pair<GPI:mode>_<P:mode>): ... this. Replace PTR with P.
21851 (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
21852 (storewb_pair<GPI:mode>_<P:mode>): ... this.
21853 (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
21854 depending on the value of 'mode'.
21855 (add_losym_<mode>): New.
21856 (ldr_got_small_<mode>): New, based on ldr_got_small.
21857 (ldr_got_small): Remove.
21858 (ldr_got_small_sidi): New.
21859 * config/aarch64/iterators.md (P): New.
21860 (PTR): Change to 'ptr_mode' in the condition.
21862 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
21864 * config.gcc (aarch64*-*-*): Support --with-abi.
21865 (aarch64*-*-elf): Support --with-multilib-list.
21866 (aarch64*-*-linux*): Likewise.
21867 (supported_defaults): Add abi to aarch64*-*-*.
21868 * configure.ac: Mention AArch64 for --with-multilib-list.
21869 * configure: Re-generated.
21870 * config/aarch64/biarchilp32.h: New file.
21871 * config/aarch64/biarchlp64.h: New file.
21872 * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
21874 (MULTILIB_DEFAULTS): Ditto.
21875 (DRIVER_SELF_SPECS): Ditto.
21876 (ASM_SPEC): Update to also substitute -mabi.
21877 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
21878 file whose name depends on -mabi= and -mbig-endian.
21879 * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
21881 (POINTER_SIZE): New define.
21882 (POINTERS_EXTEND_UNSIGNED): Ditto.
21883 (enum aarch64_abi_type): New enumeration tag.
21884 (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
21885 (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
21886 (TARGET_ILP32): New define.
21887 * config/aarch64/aarch64.opt (mabi): New.
21888 (aarch64_abi): New.
21889 (ilp32, lp64): New values for -mabi.
21890 * config/aarch64/t-aarch64 (comma): New define.
21891 (MULTILIB_OPTIONS): Ditto.
21892 (MULTILIB_DIRNAMES): Ditto.
21893 * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
21894 * doc/invoke.texi: Document -mabi for AArch64.
21896 2013-07-23 Georg-Johann Lay <avr@gjlay.de>
21898 * config/avr/avr.md: Explain asm print modifier 'r' for REG.
21900 2013-07-22 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
21901 Anton Blanchard <anton@au1.ibm.com>
21903 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
21904 endianness when selecting field to splat.
21906 2013-07-22 Eric Christopher <echristo@gmail.com>
21908 * dwarf2out.c (die_odr_checksum): New function to use
21909 CHECKSUM_ macros and ULEB128 for DIE tag.
21910 (generate_type_signature): Use.
21912 2013-07-22 Eric Botcazou <ebotcazou@adacore.com>
21914 * config.gcc (sparc*-*-*): Accept leon3 processor.
21915 (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
21916 * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
21917 * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
21918 * config/sparc/sparc.opt (enum processor_type): Add leon3.
21919 (mfix-ut699): Adjust comment.
21920 * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
21921 (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
21922 (CPP_CPU_SPEC): Likewise.
21923 (ASM_CPU_SPEC): Likewise.
21924 * config/sparc/sparc.c (leon3_cost): New constant.
21925 (sparc_option_override): Add leon3 support.
21926 (mem_ref): New function.
21927 (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
21928 (sparc_do_work_around_errata): Look into the instruction in the delay
21929 slot and adjust accordingly. Add fix for the data cache nullify issues
21930 of the UT699. Change insertion position for the NOP.
21931 * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
21932 (leon3_load): New reservation.
21933 (leon_store): Bump latency to 2.
21934 (grfpu): New automaton.
21935 (grfpu_alu): New unit.
21936 (grfpu_ds): Likewise.
21937 (leon_fp_alu): Adjust.
21938 (leon_fp_mult): Delete.
21939 (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
21940 (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
21941 * config/sparc/sparc.md (cpu): Add leon3.
21942 * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
21943 (swapsi): Likewise.
21944 (atomic_test_and_set): Likewise.
21945 (ldstub): Likewise.
21947 2013-07-22 Jürgen Urban <JuergenUrban@gmx.de>
21949 * config.gcc (mips*-*-*): Add --with-fpu support. Make single the
21950 default for R5900 targets.
21951 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
21952 (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
21953 * config/mips/mips.c (mips_option_override): Report an error for
21954 -march=r5900 -mhard-float -mdouble-float. Use spu_single_format
21955 for -march=r5900 -mhard-float.
21957 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
21959 * df-problems.c (can_move_insns_across): Exit loop once we
21960 find a non-fixed, non-global register.
21962 * ipa-pure-const.c (propagate_nothrow): Exit loop after
21965 * omega.c (omega_eliminate_red): Break after setting red_found.
21966 (omega_problem_has_red_equations): Similarly after setting found.
21967 (omega_query_variable): Similarly after setting coupled.
21969 2013-07-22 Marek Polacek <polacek@redhat.com>
21971 * gimplify.c: Don't include gimple.h twice.
21973 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21975 * config/arm/constraints.md (Pd): Allow TARGET_THUMB
21976 instead of TARGET_THUMB1.
21977 (Pz): New constraint.
21978 * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
21980 (compare_negsi_si): Likewise.
21981 (compare_addsi2_op0): Likewise.
21982 (compare_addsi2_op1): Likewise.
21983 (addsi3_carryin_<optab>): Likewise.
21984 (addsi3_carryin_alt2_<optab>): Likewise.
21985 (addsi3_carryin_shift_<optab>): Disable cond_exec variant
21986 for arm_restrict_it.
21987 (subsi3_carryin): Likewise.
21988 (arm_subsi3_insn): Add alternatives for 16-bit encoding.
21989 (minmax_arithsi): Disable for arm_restrict_it.
21990 (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
21991 (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
21992 (satsi_<SAT:code>_shift): Likewise.
21993 (arm_shiftsi3): Add alternative for 16-bit encoding.
21994 (arm32_movhf): Disable for arm_restrict_it.
21995 (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
21996 (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
21998 2013-07-22 Sofiane Naci <sofiane.naci@arm.com>
22000 * config/arm/arm.md (attribute "insn"): Delete.
22001 (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
22002 "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
22003 (not_shiftsi): Update for attribute change.
22004 (not_shiftsi_compare0): Likewise.
22005 (not_shiftsi_compare0_scratch): Likewise.
22006 (arm_one_cmplsi2): Likewise.
22007 (thumb1_one_cmplsi2): Likewise.
22008 (notsi_compare0): Likewise.
22009 (notsi_compare0_scratch): Likewise.
22010 (thumb1_movdi_insn): Likewise.
22011 (arm_movsi_insn): Likewise.
22012 (movhi_insn_arch4): Likewise.
22013 (movhi_bytes): Likewise.
22014 (arm_movqi_insn): Likewise.
22015 (thumb1_movqi_insn): Likewise.
22016 (arm32_movhf): Likewise.
22017 (thumb1_movhf): Likewise.
22018 (arm_movsf_soft_insn): Likewise.
22019 (thumb1_movsf_insn): Likewise.
22020 (thumb_movdf_insn): Likewise.
22021 (movsicc_insn): Likewise.
22022 (movsfcc_soft_insn): Likewise.
22023 (and_scc): Likewise.
22024 (cond_move): Likewise.
22025 (if_move_not): Likewise.
22026 (if_not_move): Likewise.
22027 (if_shift_move): Likewise.
22028 (if_move_shift): Likewise.
22029 (if_shift_shift): Likewise.
22030 (if_not_arith): Likewise.
22031 (if_arith_not): Likewise.
22032 (cond_move_not): Likewise.
22033 * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
22034 (neon_mov<mode>): Likewise.
22035 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
22036 (thumb2_movsi_vfp): Likewise.
22037 (movsf_vfp): Likewise.
22038 (thumb2_movsf_vfp): Likewise.
22039 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
22041 (cortexa7_older_only): Likewise.
22042 (cortexa7_younger): Likewise.
22043 * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
22044 (1020alu_shift_op): Likewise.
22045 (1020alu_shift_reg_op): Likewise.
22046 * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
22047 (alu_shift_op): Likewise.
22048 (alu_shift_reg_op): Likewise.
22049 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
22050 (11_alu_shift_op): Likewise.
22051 (11_alu_shift_reg_op): Likewise.
22052 * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
22053 (9_alu_shift_reg_op): Likewise.
22054 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
22056 (cortex_a15_alu_shift): Likewise.
22057 (cortex_a15_alu_shift_reg): Likewise.
22058 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
22059 (cortex_a5_alu_shift): Likewise.
22060 * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
22062 (cortex_a53_alu_shift): Likewise.
22063 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
22065 (cortex_a7_alu_reg): Likewise.
22066 (cortex_a7_alu_shift): Likewise.
22067 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
22068 (cortex_a8_alu_shift): Likewise.
22069 (cortex_a8_alu_shift_reg): Likewise.
22070 (cortex_a8_mov): Likewise.
22071 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
22072 (cortex_a9_dp_shift): Likewise.
22073 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
22074 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
22075 (cortex_r4_mov): Likewise.
22076 (cortex_r4_alu_shift): Likewise.
22077 (cortex_r4_alu_shift_reg): Likewise.
22078 * config/arm/fa526.md (526_alu_op): Update for attribute change.
22079 (526_alu_shift_op): Likewise.
22080 * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
22081 * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
22082 (626te_alu_shift_op): Likewise.
22083 * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
22084 (726te_alu_op): Likewise.
22085 (726te_alu_shift_op): Likewise.
22086 (726te_alu_shift_reg_op): Likewise.
22087 * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
22088 (mp626_alu_shift_op): Likewise.
22089 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
22090 (pj4_alu_e1_conds): Likewise.
22091 (pj4_alu): Likewise.
22092 (pj4_alu_conds): Likewise.
22093 (pj4_shift): Likewise.
22094 (pj4_shift_conds): Likewise.
22095 (pj4_alu_shift): Likewise.
22096 (pj4_alu_shift_conds): Likewise.
22098 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22100 * config/arm/predicates.md (shiftable_operator_strict_it):
22102 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
22103 Disable cond_exec version for arm_restrict_it.
22104 (thumb2_smaxsi3): Convert to generate cond_exec.
22105 (thumb2_sminsi3): Likewise.
22106 (thumb32_umaxsi3): Likewise.
22107 (thumb2_uminsi3): Likewise.
22108 (thumb2_abssi2): Adjust constraints for arm_restrict_it.
22109 (thumb2_neg_abssi2): Likewise.
22110 (thumb2_mov_scc): Add alternative for 16-bit encoding.
22111 (thumb2_movsicc_insn): Adjust alternatives.
22112 (thumb2_mov_negscc): Disable for arm_restrict_it.
22113 (thumb2_mov_negscc_strict_it): New pattern.
22114 (thumb2_mov_notscc_strict_it): New pattern.
22115 (thumb2_mov_notscc): Disable for arm_restrict_it.
22116 (thumb2_ior_scc): Likewise.
22117 (thumb2_ior_scc_strict_it): New pattern.
22118 (thumb2_cond_move): Adjust for arm_restrict_it.
22119 (thumb2_cond_arith): Disable for arm_restrict_it.
22120 (thumb2_cond_arith_strict_it): New pattern.
22121 (thumb2_cond_sub): Adjust for arm_restrict_it.
22122 (thumb2_movcond): Likewise.
22123 (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
22124 (thumb2_zero_extendhisi2_v6): Likewise.
22125 (thumb2_zero_extendqisi2_v6): Likewise.
22126 (orsi_notsi_si): Likewise.
22127 (orsi_not_shiftsi_si): Likewise.
22129 2013-07-22 Georg-Johann Lay <avr@gjlay.de>
22131 * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
22132 instruction sequence is 1 byte shorter.
22134 2013-07-22 Uros Bizjak <ubizjak@gmail.com>
22136 * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
22137 it is not needed after split.
22139 2013-07-20 Iain Sandoe <iain@codesourcery.com>
22142 * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
22143 second label for nonlocal goto receivers. Don't output pic base labels
22144 unless we're producing PIC; mark that action unreachable().
22145 (ix86_save_reg): If the function contains a nonlocal label, save the
22147 * config/darwin-protos.h (machopic_should_output_picbase_label): New.
22148 * config/darwin.c (emitted_pic_label_num): New GTY.
22149 (update_pic_label_number_if_needed): New.
22150 (machopic_output_function_base_name): Adjust for nonlocal receiver
22152 (machopic_should_output_picbase_label): New.
22153 * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
22154 (nonlocal_goto_receiver): New insn and split.
22156 2013-07-20 James Greenhalgh <james.greenhalgh@arm.com>
22158 * config/aarch64/aarch64-builtins.c
22159 (aarch64_fold_builtin): Fold abs in all modes.
22160 * config/aarch64/aarch64-simd-builtins.def
22161 (abs): Enable for all modes.
22162 * config/aarch64/arm_neon.h
22163 (vabs<q>_s<8,16,32,64): Rewrite using builtins.
22164 (vabs_f64): Add missing intrinsic.
22166 2013-07-19 Ian Bolton <ian.bolton@arm.com>
22168 * config/aarch64/arm_neon.h (vabs_s64): New function
22170 2013-07-19 Georg-Johann Lay <avr@gjlay.de>
22173 * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
22174 * config/avr/avr.md (adjust_len): Add `round'.
22175 * config/avr/avr-protos.h (avr_out_round): New prototype.
22176 (avr_out_plus): Add `out_label' argument.
22177 * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
22178 (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
22179 Handle the case where `insn' is just a pattern.
22180 (avr_out_bitop): Handle the case where `insn' is just a pattern.
22181 (avr_out_round): New function.
22182 (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
22184 2013-07-18 David Holsgrove <david.holsgrove@xilinx.com>
22186 * config/microblaze/microblaze.c (microblaze_expand_prologue):
22187 Add check for flag_stack_usage to handle -fstack-usage support
22189 2013-07-18 Pat Haugen <pthaugen@us.ibm.com>
22191 * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
22192 interaction for new Power8 flags and VSX.
22194 2013-07-18 Sriraman Tallam <tmsriram@google.com>
22196 PR middle-end/57698
22197 * tree-inline.c (expand_call_inline): Emit errors during
22198 early_inlining only if optimization is not turned on.
22200 2013-07-18 David Malcolm <dmalcolm@redhat.com>
22204 * passes.c (init_optimization_passes): Move the construction of
22205 the pass hierarchy into a new passes.def file.
22207 * Makefile.in (passes.o): Add dependency on passes.def.
22209 2013-07-18 David Malcolm <dmalcolm@redhat.com>
22211 * passes.c (init_optimization_passes): Introduce macros for
22212 constructing the tree of passes (INSERT_PASSES_AFTER,
22213 PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
22214 TERMINATE_PASS_LIST).
22216 2013-07-18 Vladimir Makarov <vmakarov@redhat.com>
22217 Wei Mi <wmi@google.com>
22219 PR rtl-optimization/57878
22220 * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
22222 (reload_pseudo_compare_func): Check nregs first for reload
22225 2013-07-18 David Malcolm <dmalcolm@redhat.com>
22227 * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
22229 2013-07-18 Po-Chun Chang <pchang9@cs.wisc.edu>
22231 * read-rtl.c (validate_const_int): Once an invalid character is
22232 seen, quit the loop.
22234 * gengtype.c (write_roots): Similarly once we find the "deletable"
22235 or "if_marked" option.
22237 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
22239 * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
22240 "xtab" and "sat". Move value "clz" from here to ...
22241 (attriubte "type"): ... here.
22242 (satsi_<SAT:code>): Delete "insn" attribute.
22243 (satsi_<SAT:code>_shift): Likewise.
22244 (arm_zero_extendqisi2addsi): Likewise.
22245 (arm_extendqisi2addsi): Likewise.
22246 (clzsi2): Update for attribute changes.
22247 (rbitsi2): Likewise.
22248 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
22250 (arm_usatsihi): Likewise.
22251 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
22253 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
22255 * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
22256 "arlo_imm". Rename "alu_reg" to "arlo_reg". Rename "simple_alu_shift"
22257 to "extend". Split "alu_shift" into "shift" and "arlo_shift". Split
22258 "alu_shift_reg" into "shift_reg" and "arlo_shift_reg". List types
22259 in alphabetical order.
22260 (attribute "core_cycles"): Update for attribute changes.
22261 (arm_addsi3): Likewise.
22262 (addsi3_compare0): Likewise.
22263 (addsi3_compare0_scratch): Likewise.
22264 (addsi3_compare_op1): Likewise.
22265 (addsi3_compare_op2): Likewise.
22266 (compare_addsi2_op0): Likewise.
22267 (compare_addsi2_op1): Likewise.
22268 (addsi3_carryin_shift_<optab>): Likewise.
22269 (subsi3_carryin_shift): Likewise.
22270 (rsbsi3_carryin_shift): Likewise.
22271 (arm_subsi3_insn): Likewise.
22272 (subsi3_compare0): Likewise.
22273 (subsi3_compare): Likewise.
22274 (arm_andsi3_insn): Likewise.
22275 (thumb1_andsi3_insn): Likewise.
22276 (andsi3_compare0): Likewise.
22277 (andsi3_compare0_scratch): Likewise.
22278 (zeroextractsi_compare0_scratch
22279 (andsi_not_shiftsi_si): Likewise.
22280 (iorsi3_insn): Likewise.
22281 (iorsi3_compare0): Likewise.
22282 (iorsi3_compare0_scratch): Likewise.
22283 (arm_xorsi3): Likewise.
22284 (thumb1_xorsi3_insn): Likewise.
22285 (xorsi3_compare0): Likewise.
22286 (xorsi3_compare0_scratch): Likewise.
22287 (satsi_<SAT:code>_shift): Likewise.
22289 (arm_shiftsi3): Likewise.
22290 (shiftsi3_compare0): Likewise.
22291 (not_shiftsi): Likewise.
22292 (not_shiftsi_compare0): Likewise.
22293 (not_shiftsi_compare0_scratch): Likewise.
22294 (arm_one_cmplsi2): Likewise.
22295 (thumb_one_complsi2): Likewise.
22296 (notsi_compare0): Likewise.
22297 (notsi_compare0_scratch): Likewise.
22298 (thumb1_zero_extendhisi2): Likewise.
22299 (arm_zero_extendhisi2): Likewise.
22300 (arm_zero_extendhisi2_v6): Likewise.
22301 (arm_zero_extendhisi2addsi): Likewise.
22302 (thumb1_zero_extendqisi2): Likewise.
22303 (thumb1_zero_extendqisi2_v6): Likewise.
22304 (arm_zero_extendqisi2): Likewise.
22305 (arm_zero_extendqisi2_v6): Likewise.
22306 (arm_zero_extendqisi2addsi): Likewise.
22307 (thumb1_extendhisi2): Likewise.
22308 (arm_extendhisi2): Likewise.
22309 (arm_extendhisi2_v6): Likewise.
22310 (arm_extendqisi): Likewise.
22311 (arm_extendqisi_v6): Likewise.
22312 (arm_extendqisi2addsi): Likewise.
22313 (thumb1_extendqisi2): Likewise.
22314 (thumb1_movdi_insn): Likewise.
22315 (arm_movsi_insn): Likewise.
22316 (movsi_compare0): Likewise.
22317 (movhi_insn_arch4): Likewise.
22318 (movhi_bytes): Likewise.
22319 (arm_movqi_insn): Likewise.
22320 (thumb1_movqi_insn): Likewise.
22321 (arm32_movhf): Likewise.
22322 (thumb1_movhf): Likewise.
22323 (arm_movsf_soft_insn): Likewise.
22324 (thumb1_movsf_insn): Likewise.
22325 (movdf_soft_insn): Likewise.
22326 (thumb_movdf_insn): Likewise.
22327 (arm_cmpsi_insn): Likewise.
22328 (cmpsi_shiftsi): Likewise.
22329 (cmpsi_shiftsi_swp): Likewise.
22330 (arm_cmpsi_negshiftsi_si): Likewise.
22331 (movsicc_insn): Likewise.
22332 (movsfcc_soft_insn): Likewise.
22333 (arith_shiftsi): Likewise.
22334 (arith_shiftsi_compare0
22335 (arith_shiftsi_compare0_scratch
22336 (sub_shiftsi): Likewise.
22337 (sub_shiftsi_compare0
22338 (sub_shiftsi_compare0_scratch
22339 (and_scc): Likewise.
22340 (cond_move): Likewise.
22341 (if_plus_move): Likewise.
22342 (if_move_plus): Likewise.
22343 (if_move_not): Likewise.
22344 (if_not_move): Likewise.
22345 (if_shift_move): Likewise.
22346 (if_move_shift): Likewise.
22347 (if_shift_shift): Likewise.
22348 (if_not_arith): Likewise.
22349 (if_arith_not): Likewise.
22350 (cond_move_not): Likewise.
22351 (thumb1_ashlsi3): Set type attribute.
22352 (thumb1_ashrsi3): Likewise.
22353 (thumb1_lshrsi3): Likewise.
22354 (thumb1_rotrsi3): Likewise.
22355 (shiftsi3_compare0_scratch): Likewise.
22356 * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
22357 (neon_mov<mode>): Likewise.
22358 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
22360 (thumb2_movsi_insn): Likewise.
22361 (thumb2_cmpsi_neg_shiftsi): Likewise.
22362 (thumb2_extendqisi_v6): Likewise.
22363 (thumb2_zero_extendhisi2_v6): Likewise.
22364 (thumb2_zero_extendqisi2_v6): Likewise.
22365 (thumb2_shiftsi3_short): Likewise.
22366 (thumb2_addsi3_compare0_scratch): Likewise.
22367 (orsi_not_shiftsi_si): Likewise.
22368 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
22369 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
22371 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
22372 (1020alu_shift_op): Likewise.
22373 (1020alu_shift_reg_op): Likewise.
22374 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
22375 (alu_shift_op): Likewise.
22376 (alu_shift_reg_op): Likewise.
22377 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
22378 (11_alu_shift_op): Likewise.
22379 (11_alu_shift_reg_op): Likewise.
22380 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
22381 (9_alu_shift_reg_op): Likewise.
22382 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
22384 (cortex_a15_alu_shift): Likewise.
22385 (cortex_a15_alu_shift_reg): Likewise.
22386 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
22388 (cortex_a5_alu_shift): Likewise.
22389 * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
22391 (cortex_a53_alu_shift): Likewise.
22392 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
22394 (cortex_a7_alu_reg): Likewise.
22395 (cortex_a7_alu_shift): Likewise.
22396 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
22398 (cortex_a8_alu_shift): Likewise.
22399 (cortex_a8_alu_shift_reg): Likewise.
22400 (cortex_a8_mov): Likewise.
22401 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
22402 (cortex_a9_dp_shift): Likewise.
22403 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
22405 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
22407 (cortex_r4_mov): Likewise.
22408 (cortex_r4_alu_shift): Likewise.
22409 (cortex_r4_alu_shift_reg): Likewise.
22410 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
22411 (526_alu_shift_op): Likewise.
22412 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
22413 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
22414 (626te_alu_shift_op): Likewise.
22415 * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
22416 (726te_alu_op): Likewise.
22417 (726te_alu_shift_op): Likewise.
22418 (726te_alu_shift_reg_op): Likewise.
22419 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
22420 (mp626_alu_shift_op): Likewise.
22421 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
22422 (pj4_alu_e1_conds): Likewise.
22423 (pj4_alu): Likewise.
22424 (pj4_alu_conds): Likewise.
22425 (pj4_shift): Likewise.
22426 (pj4_shift_conds): Likewise.
22427 (pj4_alu_shift): Likewise.
22428 (pj4_alu_shift_conds): Likewise.
22429 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
22431 (cortexa7_older_only): Likewise.
22432 (cortexa7_younger): Likewise.
22434 2013-07-18 David Malcolm <dmalcolm@redhat.com>
22436 * ipa-pure-const.c (generate_summary): Rename to...
22437 (pure_const_generate_summary): ... this.
22439 2013-07-17 Iain Sandoe <iain@codesourcery.com>
22441 * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
22443 2013-07-17 Yvan Roux <yvan.roux@linaro.org>
22446 * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
22449 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22451 * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
22452 enabled without -march=zEC12.
22453 * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
22456 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
22458 * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
22459 (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
22460 (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
22461 terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
22462 (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
22463 * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
22464 ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
22466 <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
22467 and ISA_HAS_NMADD3_NMSUB3.
22468 * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
22469 (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
22470 (nmsub4<mode>, nmsub3<mode>): Likewise.
22471 (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
22473 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
22475 * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
22476 TARGET_MIPS5400 checking.
22478 2013-07-16 Jakub Jelinek <jakub@redhat.com>
22479 Peter Bergner <bergner@vnet.ibm.com>
22481 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
22482 registers in the comment.
22483 (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
22484 (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
22485 rather than FIRST_PSEUDO_REGISTERS.
22487 2013-07-16 Peter Bergner <bergner@vnet.ibm.com>
22489 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
22490 enable extra ISA flags with TARGET_HTM.
22492 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
22494 * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
22497 2013-07-15 Cong Hou <congh@google.com>
22499 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
22500 in compare function for sorting.
22502 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
22504 * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
22505 * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
22506 * config/rs6000/rs6000.opt: Add -mhtm option.
22507 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
22508 (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
22509 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
22510 __HTM__ if the HTM instructions are available.
22511 * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
22512 htm_spr_reg_operand): New define_predicates.
22513 * config/rs6000/rs6000.md (define_attr "type"): Add htm.
22514 (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
22516 * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
22517 BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
22518 HTM builtin functions.
22519 * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
22520 (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
22521 (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
22522 (rs6000_builtin_mask_calculate): Likewise.
22523 (rs6000_option_override_internal): Likewise.
22524 (bdesc_htm): Add new HTM builtin support.
22525 (htm_spr_num): New function.
22526 (htm_spr_regno): Likewise.
22527 (rs6000_htm_spr_icode): Likewise.
22528 (htm_expand_builtin): Likewise.
22529 (htm_init_builtins): Likewise.
22530 (rs6000_expand_builtin): Add support for HTM builtin functions.
22531 (rs6000_init_builtins): Likewise.
22532 (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
22534 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
22535 (TARGET_HTM, MASK_HTM): Define macros.
22536 (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
22537 (FIXED_REGISTERS): Likewise.
22538 (CALL_USED_REGISTERS): Likewise.
22539 (CALL_REALLY_USED_REGISTERS): Likewise.
22540 (REG_ALLOC_ORDER): Likewise.
22541 (enum reg_class): Likewise.
22542 (REG_CLASS_NAMES): Likewise.
22543 (REG_CLASS_CONTENTS): Likewise.
22544 (REGISTER_NAMES): Likewise.
22545 (ADDITIONAL_REGISTER_NAMES): Likewise.
22546 (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
22547 RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
22548 (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
22549 * config/rs6000/htm.md: New file.
22550 * config/rs6000/htmintrin.h: New file.
22551 * config/rs6000/htmxlintrin.h: New file.
22553 2013-07-15 Marcus Shawcroft <marcus.shawcroft@arm.com>
22555 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
22556 Define SYMBOL_TINY_GOT, update comment.
22557 * config/aarch64/aarch64.c
22558 (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
22559 (aarch64_expand_mov_immediate): Likewise.
22560 (aarch64_print_operand): Likewise.
22561 (aarch64_classify_symbol): Likewise.
22562 * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
22563 (ldr_got_tiny): Define.
22565 2013-07-13 Tobias Grosser <tobias@grosser.es>
22567 PR tree-optimization/54094
22568 * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
22569 scheduling dimension for the parallelism check from the polyhedral
22570 information in the AST.
22571 * graphite-dependences.c (carries_deps): Do not assume the schedule is
22574 2013-07-13 Jason Merrill <jason@redhat.com>
22576 * print-tree.c (debug_vec_tree): Use debug_raw.
22577 (debug_raw (vec<tree, va_gc> &)): New.
22578 (debug_raw (vec<tree, va_gc> *)): New.
22579 * tree.h: Declare them.
22581 2013-07-13 Bin Cheng <bin.cheng@arm.com>
22583 * ifcvt.c (ifcvt_after_combine): New static variable.
22584 (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
22586 (if_convert): New parameter after_combine. Set ifcvt_after_combine.
22587 (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
22588 rest_of_handle_if_after_reload): Pass new argument for if_convert.
22590 2013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
22592 * config/mips/mips.c (mips_expand_call): Remove empty statement.
22594 2013-07-12 Michael Matz <matz@suse.de>
22596 PR middle-end/55771
22597 * convert.c (convert_to_real): Reject non-float inner types.
22599 2013-07-12 Tejas Belagod <tejas.belagod@arm.com>
22601 * config/aarch64/aarch64-protos.h
22602 (aarch64_simd_immediate_valid_for_move): Remove.
22603 * config/aarch64/aarch64.c (simd_immediate_info): New member.
22604 (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
22606 (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
22608 2013-07-11 Steve Ellcey <sellcey@mips.com>
22610 * config/mips/mips.c (mips_conditional_register_usage): Do not
22611 use t[0-7] registers in MIPS16 mode when optimizing for size.
22613 2013-07-11 Sriraman Tallam <tmsriram@google.com>
22615 * config/i386/i386.c (dispatch_function_versions): Fix array
22616 indexing of function_version_info to match actual_versions.
22618 2013-07-11 Teresa Johnson <tejohnson@google.com>
22620 * vec.h (struct va_gc): Move release out-of-line.
22621 (va_gc::release): Call ggc_free on released vec.
22623 2013-07-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22625 * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
22626 Require GOT register as additional operand in UNSPEC.
22627 ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
22628 ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
22629 ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
22630 ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
22631 ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
22632 ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
22633 ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
22635 2013-07-11 Georg-Johann Lay <avr@gjlay.de>
22638 * config/avr/avr.c (avr_set_current_function): Sanity-check signal
22639 name seen by assembler/linker rather if available.
22641 2013-07-11 Andreas Schwab <schwab@suse.de>
22643 * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
22645 2013-07-10 Vladimir Makarov <vmakarov@redhat.com>
22647 * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
22649 2013-07-10 Joseph Myers <joseph@codesourcery.com>
22651 * doc/tm.texi.in: Move hook documentation to ....
22652 * target.def: ... here.
22654 * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
22655 text on @hook line.
22656 * doc/tm.texi: Regenerate.
22658 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
22661 * doc/invoke.texi: Document -Wconditionally-supported.
22663 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
22666 * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
22669 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
22672 * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
22673 (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
22674 (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
22675 Remove duplicate devices.
22676 * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
22677 * config/avr/t-multilib: Regenerate.
22678 * config/avr/avr-tables.opt: Regenerate.
22679 * doc/avr-mmcu.texi: Regenerate.
22681 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
22684 * config/avr/avr.opt (Waddr-space-convert): Fix typo.
22686 2013-07-10 Graham Stott <graham.stott@btinternet.com>
22688 * config/mips/mips.c (mips_rtx_costs): Very slightly increase
22689 the cost of MULT when optimizing for size.
22691 2013-07-10 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22693 * config/cr16/cr16-protos.h: Don't include target.h.
22695 2013-07-09 Joseph Myers <joseph@codesourcery.com>
22697 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
22698 adjust register size for TDmode and TFmode for VSX registers.
22700 2013-07-08 Kai Tietz <ktietz@redhat.com>
22703 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
22704 hook_bool_const_tree_true.
22706 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22708 * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
22709 * config/s390/s390.h: Remove F*_REGNUM macro definitions.
22710 * config/s390/s390.md: Define FPR*_REGNUM constants.
22711 Fix FPR2_REGNUM constant (18 -> 17).
22712 ("*trunc<BFP:mode><DFP_ALL:mode>2")
22713 ("*trunc<DFP_ALL:mode><BFP:mode>2")
22714 ("trunc<BFP:mode><DFP_ALL:mode>2")
22715 ("trunc<DFP_ALL:mode><BFP:mode>2")
22716 ("*extend<BFP:mode><DFP_ALL:mode>2")
22717 ("*extend<DFP_ALL:mode><BFP:mode>2")
22718 ("extend<BFP:mode><DFP_ALL:mode>2")
22719 ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
22722 2013-07-08 Graham Stott <graham.stott@btinternet.com>
22724 * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
22726 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22728 * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
22729 and cfun_fpr_bit_p to cfun_fpr_save_p.
22730 (s390_frame_area, s390_register_info, s390_frame_info)
22731 (s390_emit_prologue, s390_emit_epilogue)
22732 (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
22734 * config/s390/s390.h: Define *_REGNUM macros for floating point
22737 2013-07-08 Eric Botcazou <ebotcazou@adacore.com>
22739 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
22741 2013-07-08 Po-Chun Chang <pchang9@cs.wisc.edu>
22743 PR rtl-optimization/57786
22744 * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
22745 and break out of the loop when it is set to false.
22747 2013-07-08 Jakub Jelinek <jakub@redhat.com>
22750 * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
22751 Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
22752 (const_int 63)) 0)).
22753 * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
22754 using simplify_gen_unary instead of gen_rtx_*_EXTEND.
22755 * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
22757 PR rtl-optimization/57829
22758 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
22759 mask bits outside of mode are just sign-extension from mode to HWI.
22761 2013-07-08 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
22763 * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
22764 * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
22765 adjust_address instead of change_address to keep info about alignment.
22766 (emit_strmov): Remove.
22767 (emit_memmov): New function.
22768 (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
22769 (expand_movmem_epilogue): Likewise and return updated rtx for
22771 (expand_constant_movmem_prologue): Likewise and return updated rtx for
22772 destination and source.
22773 (decide_alignment): Refactor, handle vector_loop.
22774 (ix86_expand_movmem): Likewise.
22775 (ix86_expand_setmem): Likewise.
22776 * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
22778 2013-07-07 Uros Bizjak <ubizjak@gmail.com>
22780 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
22781 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
22783 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
22785 * config/i386/sse.md (sse_movlhps): Change alternative 3
22786 of operand 2 to "m".
22788 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
22791 * config/i386/sse.md (iptr): New mode attribute.
22792 (sse2_movq128): Add pointer size overrides for Intel asm dialect.
22793 (<sse>_vm<plusminus_insn><mode>3): Ditto.
22794 (<sse>_vmmul<mode>3): Ditto.
22795 (<sse>_vmdiv<mode>3): Ditto.
22796 (sse_vmrcpv4sf2): Ditto.
22797 (<sse>_vmsqrt<mode>2): Ditto.
22798 (sse_vmrsqrtv4sf2): Ditto.
22799 (<sse>_vm<code><mode>3): Ditto.
22800 (avx_vmcmp<mode>3): Ditto.
22801 (<sse>_vmmaskcmp<mode>3): Ditto.
22802 (<sse>_comi): Ditto.
22803 (<sse>_ucomi): Ditto.
22804 (*xop_vmfrcz_<mode>): Ditto.
22805 (*fmai_fmadd_<mode>): Ditto.
22806 (*fmai_fmsub_<mode>): Ditto.
22807 (*fmai_fnmadd_<mode>): Ditto.
22808 (*fmai_fnmsub_<mode>): Ditto.
22809 (*fma4i_vmfmadd_<mode>): Ditto.
22810 (*fma4i_vmfmsub_<mode>): Ditto.
22811 (*fma4i_vmfnmadd_<mode>): Ditto.
22812 (*fma4i_vmfnmsub_<mode>): Ditto.
22813 (*xop_vmfrcz_<mode>): Ditto.
22814 (sse_cvtps2pi): Ditto.
22815 (sse_cvttps2pi): Ditto.
22816 (sse_cvtss2si): Ditto.
22817 (sse_cvtss2si_2): Ditto.
22818 (sse_cvtss2siq_2): Ditto.
22819 (sse_cvttss2si): Ditto.
22820 (sse_cvttss2siq): Ditto.
22821 (sse_cvtsd2si): Ditto.
22822 (sse_cvtsd2si_2): Ditto.
22823 (sse_cvtsd2siq_2): Ditto.
22824 (sse_cvttsd2si): Ditto.
22825 (sse_cvttsd2siq): Ditto.
22826 (sse_cvtsd2ss): Ditto.
22827 (sse_cvtss2sd): Ditto.
22828 (avx2_pbroadcast<mode>): Ditto.
22829 (avx2_pbroadcast<mode>_1): Ditto.
22830 (*avx_vperm_broadcast_v4sf): Ditto.
22832 (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
22833 (sse_movlhps): Ditto.
22834 (sse_storehps): Ditto.
22835 (sse_loadhps): Ditto.
22836 (sse_storelps): Ditto.
22837 (sse_loadlps): Ditto.
22838 (*vec_concatv4sf): Ditto.
22839 (*vec_interleave_highv2df): Ditto.
22840 (*vec_interleave_lowv2df): Ditto.
22841 (*vec_extractv2df_1_sse): Ditto.
22842 (*vec_extractv2df_0_sse): Ditto.
22843 (sse2_storelpd): Ditto.
22844 (sse2_loadlpd): Ditto.
22845 (sse2_movsd): Ditto.
22846 (*vec_concatv4si): Ditto.
22847 (vec_concatv2di): Ditto.
22849 * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
22850 for Intel asm dialect.
22851 (mmx_punpcklwd): Ditto.
22852 (mmx_punpckldq): Ditto.
22854 * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
22855 for intel assembler dialect.
22857 2013-07-06 Jakub Jelinek <jakub@redhat.com>
22860 * fold-const.c (tree_call_nonnegative_warnv_p): Return true
22861 for BUILT_IN_C{LZ,LRSB}*.
22862 * tree.h (CASE_INT_FN): Add FN##IMAX case.
22863 * tree-vrp.c (extract_range_basic): Handle
22864 BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*. For
22865 BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
22866 fall thru to code calling set_value*.
22867 * builtins.c (expand_builtin): Remove *IMAX cases.
22868 (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
22869 if width is bigger than 2*HWI.
22871 2013-07-05 Vladimir Makarov <vmakarov@redhat.com>
22873 PR rtl-optimization/55342
22874 * lra-int.h (lra_subreg_reload_pseudos): New.
22875 * lra.c: Add undoing optional reloads to the block diagram.
22876 (lra_subreg_reload_pseudos): New.
22877 (lra_optional_reload_pseudos): Change comments.
22878 (lra): Init and clear lra_subreg_reload_pseudos. Clear
22879 lra_optional_reload_pseudos after undo transformations.
22880 * lra-assigns.c (pseudo_prefix_title): New.
22881 (lra_setup_reg_renumber): Use it.
22882 (spill_for): Ditto. Check subreg reload pseudos too.
22883 (assign_by_spills): Consider subreg reload pseudos too.
22884 * lra-constraints.c (simplify_operand_subreg): Use
22885 lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
22886 (curr_insn_transform): Recognize and do optional reloads.
22887 (undo_optional_reloads): New.
22888 (lra_undo_inheritance): Call undo_optional_reloads.
22890 2013-07-05 Thomas Quinot <quinot@adacore.com>
22892 * tree-complex.c (expand_complex_operations_1): Fix typo.
22894 2013-07-04 Tejas Belagod <tejas.belagod@arm.com>
22896 * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
22897 (tune_params): New member 'const vec_costs'.
22898 * config/aarch64/aarch64.c (generic_vector_cost): New.
22899 (generic_tunings): New member 'generic_vector_cost'.
22900 (aarch64_builtin_vectorization_cost): New.
22901 (aarch64_add_stmt_cost): New.
22902 (TARGET_VECTORIZE_ADD_STMT_COST): New.
22903 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
22905 2013-07-03 Jakub Jelinek <jakub@redhat.com>
22908 * config/i386/predicates.md (vsib_address_operand): Disallow
22909 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
22911 2013-07-03 Hans-Peter Nilsson <hp@bitrange.com>
22913 PR middle-end/55030
22914 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
22915 expand_builtin_setjmp_receiver.
22916 (expand_label): Adjust, call expand_builtin_setjmp_receiver
22917 with NULL for the label parameter.
22918 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
22919 the frame-pointer. Adjust comments.
22920 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
22921 only if LABEL is non-NULL.
22923 2013-07-03 Yufeng Zhang <yufeng.zhang@arm.com>
22925 * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
22926 (ARM_ABI_AAPCS64): Ditto.
22928 (ARM_DEFAULT_ABI): Ditto.
22930 2013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
22932 * config/aarch64/aarch64-builtins.c
22933 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
22934 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
22936 * config/aarch64/aarch64-simd.md
22937 (aarch64_ld1<VALL:mode>): New.
22938 (aarch64_st1<VALL:mode>): Likewise.
22939 * config/aarch64/arm_neon.h
22940 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
22942 2013-07-02 Sriraman Tallam <tmsriram@google.com>
22944 * config/i386/i386.c (gate_insert_vzeroupper): Check if
22946 (ix86_option_override_internal):Turn on all -mavx target flags by
22947 default as they are dependent on AVX anyway.
22949 2013-07-02 Cary Coutant <ccoutant@google.com>
22951 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
22952 deterministic hash.
22953 (loc_checksum_ordered): Likewise.
22954 (hash_loc_operands): Remove inline keyword.
22956 2013-07-02 Jakub Jelinek <jakub@redhat.com>
22958 PR tree-optimization/57741
22959 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
22960 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
22961 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
22962 Allow REAL_CST step_exprs if flag_associative_math.
22963 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
22965 2013-07-02 Ian Bolton <ian.bolton@arm.com>
22967 * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
22969 2013-07-02 Ian Bolton <ian.bolton@arm.com>
22971 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
22973 2013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22975 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
22977 (iorsi3_insn): Likewise.
22978 (arm_xorsi3): Likewise.
22980 2013-07-01 Sofiane Naci <sofiane.naci@arm.com>
22982 * arm.md (attribute "wtype"): Delete. Move attribute values from here
22984 (attribute "type"): ... here, and prefix with "wmmx_".
22985 (attribute "core_cycles"): Update for attribute changes.
22986 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
22987 (tbcstv4hi): Likewise.
22988 (tbcstv2si): Likewise.
22989 (iwmmxt_iordi3): Likewise.
22990 (iwmmxt_xordi3): Likewise.
22991 (iwmmxt_anddi3): Likewise.
22992 (iwmmxt_nanddi3): Likewise.
22993 (iwmmxt_arm_movdi): Likewise.
22994 (iwmmxt_movsi_insn): Likewise.
22995 (mov<mode>_internal): Likewise.
22996 (and<mode>3_iwmmxt): Likewise.
22997 (ior<mode>3_iwmmxt): Likewise.
22998 (xor<mode>3_iwmmxt): Likewise.
22999 (add<mode>3_iwmmxt): Likewise.
23000 (ssaddv8qi3): Likewise.
23001 (ssaddv4hi3): Likewise.
23002 (ssaddv2si3): Likewise.
23003 (usaddv8qi3): Likewise.
23004 (usaddv4hi3): Likewise.
23005 (usaddv2si3): Likewise.
23006 (sub<mode>3_iwmmxt): Likewise.
23007 (sssubv8qi3): Likewise.
23008 (sssubv4hi3): Likewise.
23009 (sssubv2si3): Likewise.
23010 (ussubv8qi3): Likewise.
23011 (ussubv4hi3): Likewise.
23012 (ussubv2si3): Likewise.
23013 (mulv4hi3_iwmmxt): Likewise.
23014 (smulv4hi3_highpart): Likewise.
23015 (umulv4hi3_highpart): Likewise.
23016 (iwmmxt_wmacs): Likewise.
23017 (iwmmxt_wmacsz): Likewise.
23018 (iwmmxt_wmacu): Likewise.
23019 (iwmmxt_wmacuz): Likewise.
23020 (iwmmxt_clrdi): Likewise.
23021 (iwmmxt_clrv8qi): Likewise.
23022 (iwmmxt_clr4hi): Likewise.
23023 (iwmmxt_clr2si): Likewise.
23024 (iwmmxt_uavgrndv8qi3): Likewise.
23025 (iwmmxt_uavgrndv4hi3): Likewise.
23026 (iwmmxt_uavgv8qi3): Likewise.
23027 (iwmmxt_uavgv4hi3): Likewise.
23028 (iwmmxt_tinsrb): Likewise.
23029 (iwmmxt_tinsrh): Likewise.
23030 (iwmmxt_tinsrw): Likewise.
23031 (iwmmxt_textrmub): Likewise.
23032 (iwmmxt_textrmsb): Likewise.
23033 (iwmmxt_textrmuh): Likewise.
23034 (iwmmxt_textrmsh): Likewise.
23035 (iwmmxt_textrmw): Likewise.
23036 (iwmxxt_wshufh): Likewise.
23037 (eqv8qi3): Likewise.
23038 (eqv4hi3): Likewise.
23039 (eqv2si3): Likewise.
23040 (gtuv8qi3): Likewise.
23041 (gtuv4hi3): Likewise.
23042 (gtuv2si3): Likewise.
23043 (gtv8qi3): Likewise.
23044 (gtv4hi3): Likewise.
23045 (gtv2si3): Likewise.
23046 (smax<mode>3_iwmmxt): Likewise.
23047 (umax<mode>3_iwmmxt): Likewise.
23048 (smin<mode>3_iwmmxt): Likewise.
23049 (umin<mode>3_iwmmxt): Likewise.
23050 (iwmmxt_wpackhss): Likewise.
23051 (iwmmxt_wpackwss): Likewise.
23052 (iwmmxt_wpackdss): Likewise.
23053 (iwmmxt_wpackhus): Likewise.
23054 (iwmmxt_wpackwus): Likewise.
23055 (iwmmxt_wpackdus): Likewise.
23056 (iwmmxt_wunpckihb): Likewise.
23057 (iwmmxt_wunpckihh): Likewise.
23058 (iwmmxt_wunpckihw): Likewise.
23059 (iwmmxt_wunpckilb): Likewise.
23060 (iwmmxt_wunpckilh): Likewise.
23061 (iwmmxt_wunpckilw): Likewise.
23062 (iwmmxt_wunpckehub): Likewise.
23063 (iwmmxt_wunpckehuh): Likewise.
23064 (iwmmxt_wunpckehuw): Likewise.
23065 (iwmmxt_wunpckehsb): Likewise.
23066 (iwmmxt_wunpckehsh): Likewise.
23067 (iwmmxt_wunpckehsw): Likewise.
23068 (iwmmxt_wunpckelub): Likewise.
23069 (iwmmxt_wunpckeluh): Likewise.
23070 (iwmmxt_wunpckeluw): Likewise.
23071 (iwmmxt_wunpckelsb): Likewise.
23072 (iwmmxt_wunpckelsh): Likewise.
23073 (iwmmxt_wunpckelsw): Likewise.
23074 (ror<mode>3): Likewise.
23075 (ashr<mode>3_iwmmxt): Likewise.
23076 (lshr<mode>3_iwmmxt): Likewise.
23077 (ashl<mode>3_iwmmxt): Likewise.
23078 (ror<mode>3_di): Likewise.
23079 (ashr<mode>3_di): Likewise.
23080 (lshr<mode>3_di): Likewise.
23081 (ashl<mode>3_di): Likewise.
23082 (iwmmxt_wmadds): Likewise.
23083 (iwmmxt_wmaddu): Likewise.
23084 (iwmmxt_tmia): Likewise.
23085 (iwmmxt_tmiaph): Likewise.
23086 (iwmmxt_tmiabb): Likewise.
23087 (iwmmxt_tmiatb): Likewise.
23088 (iwmmxt_tmiabt): Likewise.
23089 (iwmmxt_tmiatt): Likewise.
23090 (iwmmxt_tmovmskb): Likewise.
23091 (iwmmxt_tmovmskh): Likewise.
23092 (iwmmxt_tmovmskw): Likewise.
23093 (iwmmxt_waccb): Likewise.
23094 (iwmmxt_wacch): Likewise.
23095 (iwmmxt_waccw): Likewise.
23096 (iwmmxt_waligni): Likewise.
23097 (iwmmxt_walignr): Likewise.
23098 (iwmmxt_walignr0): Likewise.
23099 (iwmmxt_walignr1): Likewise.
23100 (iwmmxt_walignr2): Likewise.
23101 (iwmmxt_walignr3): Likewise.
23102 (iwmmxt_wsadb): Likewise.
23103 (iwmmxt_wsadh): Likewise.
23104 (iwmmxt_wsadbz): Likewise.
23105 (iwmmxt_wsadhz): Likewise.
23106 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
23107 (iwmmxt_wabsdiffb): Likewise.
23108 (iwmmxt_wabsdiffh): Likewise.
23109 (iwmmxt_wabsdiffw): Likewise.
23110 (iwmmxt_waddsubhx): Likewise
23111 (iwmmxt_wsubaddhx): Likewise.
23112 (addc<mode>3): Likewise.
23113 (iwmmxt_avg4): Likewise.
23114 (iwmmxt_avg4r): Likewise.
23115 (iwmmxt_wmaddsx): Likewise.
23116 (iwmmxt_wmaddux): Likewise.
23117 (iwmmxt_wmaddsn): Likewise.
23118 (iwmmxt_wmaddun): Likewise.
23119 (iwmmxt_wmulwsm): Likewise.
23120 (iwmmxt_wmulwum): Likewise.
23121 (iwmmxt_wmulsmr): Likewise.
23122 (iwmmxt_wmulumr): Likewise.
23123 (iwmmxt_wmulwsmr): Likewise.
23124 (iwmmxt_wmulwumr): Likewise.
23125 (iwmmxt_wmulwl): Likewise.
23126 (iwmmxt_wqmulm): Likewise.
23127 (iwmmxt_wqmulwm): Likewise.
23128 (iwmmxt_wqmulmr): Likewise.
23129 (iwmmxt_wqmulwmr): Likewise.
23130 (iwmmxt_waddbhusm): Likewise.
23131 (iwmmxt_waddbhusl): Likewise.
23132 (iwmmxt_wqmiabb): Likewise.
23133 (iwmmxt_wqmiabt): Likewise.
23134 (iwmmxt_wqmiatb): Likewise.
23135 (iwmmxt_wqmiatt): Likewise.
23136 (iwmmxt_wqmiabbn): Likewise.
23137 (iwmmxt_wqmiabtn): Likewise.
23138 (iwmmxt_wqmiatbn): Likewise.
23139 (iwmmxt_wqmiattn): Likewise.
23140 (iwmmxt_wmiabb): Likewise.
23141 (iwmmxt_wmiabt): Likewise.
23142 (iwmmxt_wmiatb): Likewise.
23143 (iwmmxt_wmiatt): Likewise.
23144 (iwmmxt_wmiabbn): Likewise.
23145 (iwmmxt_wmiabtn): Likewise.
23146 (iwmmxt_wmiatbn): Likewise.
23147 (iwmmxt_wmiattn): Likewise.
23148 (iwmmxt_wmiawbb): Likewise.
23149 (iwmmxt_wmiawbt): Likewise.
23150 (iwmmxt_wmiawtb): Likewise.
23151 (iwmmxt_wmiawtt): Likewise.
23152 (iwmmxt_wmiawbbn): Likewise.
23153 (iwmmxt_wmiawbtn): Likewise.
23154 (iwmmxt_wmiawtbn): Likewise.
23155 (iwmmxt_wmiawttn): Likewise.
23156 (iwmmxt_wmerge): Likewise.
23157 (iwmmxt_tandc<mode>3): Likewise.
23158 (iwmmxt_torc<mode>3): Likewise.
23159 (iwmmxt_torvsc<mode>3): Likewise.
23160 (iwmmxt_textrc<mode>3): Likewise.
23161 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
23162 (wmmxt_pack): Likewise.
23163 (wmmxt_mult_c1): Likewise.
23164 (wmmxt_mult_c2): Likewise.
23165 (wmmxt_alu_c1): Likewise.
23166 (wmmxt_alu_c2): Likewise.
23167 (wmmxt_alu_c3): Likewise.
23168 (wmmxt_transfer_c1): Likewise.
23169 (wmmxt_transfer_c2): Likewise.
23170 (wmmxt_transfer_c3): Likewise.
23171 (marvell_f_iwmmxt_wstr): Likewise.
23172 (marvell_f_iwmmxt_wldr): Likewise.
23174 2013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
23176 * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
23178 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
23181 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
23182 * lra-constraints.c (need_for_split_p): Check call used hard regs
23183 living through calls.
23185 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
23186 call used regs for call insn.
23188 2013-06-28 Jakub Jelinek <jakub@redhat.com>
23191 * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
23192 mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
23194 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
23196 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
23198 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
23200 * lra-constraints.c (need_for_split_p): Check call used hard regs
23201 living through calls.
23203 2013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
23206 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
23207 to tie with any other modes. Eliminate Altivec vector mode tests,
23208 since these are a subset of ALTIVEC or VSX vector modes. Simplify
23209 code, to return 0 if testing MODE2 for a condition, if we've
23210 already tested MODE1 for the same condition.
23212 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
23214 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
23217 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
23219 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
23220 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
23222 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
23224 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
23226 (aarch64_symbolic_constant_p): Remove.
23227 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
23228 static. Fix line length and white space.
23229 (aarch64_symbolic_constant_p): Remove.
23230 * config/aarch64/predicates.md (aarch64_valid_symref):
23231 Use aarch64_classify_symbol_expression.
23233 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23235 * config/arm/constraints.md (Ts): New constraint.
23236 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
23238 (compare_scc): Use "Ts" constraint for operand 0.
23239 (ior_scc_scc): Likewise.
23240 (and_scc_scc): Likewise.
23241 (and_scc_scc_nodom): Likewise.
23242 (ior_scc_scc_cmp): Likewise for operand 7.
23243 (and_scc_scc_cmp): Likewise.
23244 * config/arm/thumb2.md (thumb2_movsi_insn):
23245 Add alternatives for 16-bit encodings.
23246 (thumb2_movhi_insn): Likewise.
23247 (thumb2_movsicc_insn): Likewise.
23248 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
23249 (thumb2_negscc): Use "Ts" constraint.
23250 Move mvn instruction outside cond_exec block.
23251 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
23252 for 16-bit encodings.
23254 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23256 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
23258 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
23259 (mulsi3subsi): Likewise.
23260 (mulsidi3adddi): Likewise.
23261 (mulsidi3_v6): Likewise.
23262 (umulsidi3_v6): Likewise.
23263 (umulsidi3adddi_v6): Likewise.
23264 (smulsi3_highpart_v6): Likewise.
23265 (umulsi3_highpart_v6): Likewise.
23266 (mulhisi3tb): Likewise.
23267 (mulhisi3bt): Likewise.
23268 (mulhisi3tt): Likewise.
23269 (maddhisi4): Likewise.
23270 (maddhisi4tb): Likewise.
23271 (maddhisi4tt): Likewise.
23272 (maddhidi4): Likewise.
23273 (maddhidi4tb): Likewise.
23274 (maddhidi4tt): Likewise.
23275 (zeroextractsi_compare0_scratch): Likewise.
23276 (insv_zero): Likewise.
23277 (insv_t2): Likewise.
23278 (anddi_notzesidi_di): Likewise.
23279 (anddi_notsesidi_di): Likewise.
23280 (andsi_notsi_si): Likewise.
23281 (iordi_zesidi_di): Likewise.
23282 (xordi_zesidi_di): Likewise.
23283 (andsi_iorsi3_notsi): Likewise.
23284 (smax_0): Likewise.
23285 (smax_m1): Likewise.
23286 (smin_0): Likewise.
23287 (not_shiftsi): Likewise.
23288 (unaligned_loadsi): Likewise.
23289 (unaligned_loadhis): Likewise.
23290 (unaligned_loadhiu): Likewise.
23291 (unaligned_storesi): Likewise.
23292 (unaligned_storehi): Likewise.
23293 (extv_reg): Likewise.
23294 (extzv_t2): Likewise.
23295 (divsi3): Likewise.
23296 (udivsi3): Likewise.
23297 (arm_zero_extendhisi2addsi): Likewise.
23298 (arm_zero_extendqisi2addsi): Likewise.
23299 (compareqi_eq0): Likewise.
23300 (arm_extendhisi2_v6): Likewise.
23301 (arm_extendqisi2addsi): Likewise.
23302 (arm_movt): Likewise.
23303 (thumb2_ldrd): Likewise.
23304 (thumb2_ldrd_base): Likewise.
23305 (thumb2_ldrd_base_neg): Likewise.
23306 (thumb2_strd): Likewise.
23307 (thumb2_strd_base): Likewise.
23308 (thumb2_strd_base_neg): Likewise.
23309 (arm_negsi2): Add alternative for 16-bit encoding.
23310 (arm_one_cmplsi2): Likewise.
23312 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23314 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
23315 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
23316 (movdfcc): Likewise.
23317 * config/arm/vfp.md (*thumb2_movsf_vfp):
23318 Disable predication for arm_restrict_it.
23319 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
23320 (*thumb2_movdfcc_vfp): Likewise.
23321 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
23322 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
23323 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
23324 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
23325 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
23326 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
23327 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
23328 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
23329 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
23330 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
23331 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
23332 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
23333 Disable predication for arm_restrict_it.
23335 2013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
23337 * config/i386/bmiintrin.h (_bextr_u32): New.
23338 (_bextr_u64): Ditto.
23340 2013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
23342 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
23343 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
23344 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
23345 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
23346 * config/mips/n32-elf.h: ...this new file.
23348 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
23351 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
23352 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
23354 2013-06-27 Catherine Moore <clm@codesourcery.com>
23356 * config/mips/mips-tables.opt: Regenerate.
23357 * config/mips/mips-cpus.def: Add m14ke and m14kec.
23358 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
23359 * doc/invoke.texi: Add -m14kc.
23361 2013-06-27 Jakub Jelinek <jakub@redhat.com>
23364 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
23365 constraints of operand 1 and 2.
23368 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
23369 to match RTL canonicalization. Swap predicates and
23370 constraints of operand 1 and 2.
23372 2013-06-27 Vladimir Makarov <vmakarov@redhat.com>
23374 * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
23375 Process OP_INOUT regs for splitting too.
23377 2013-06-27 Jakub Jelinek <jakub@redhat.com>
23379 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
23380 decl before the loop, initialize to NULL.
23381 (vectorizable_load): Initialize ptr_incr to NULL.
23383 2013-06-27 Martin Jambor <mjambor@suse.cz>
23386 * ipa-ref.h (ipa_maybe_record_reference): Declare.
23387 * ipa-ref.c (ipa_maybe_record_reference): New function.
23388 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
23389 * ipa-cp.c (create_specialized_node): Record potential references from
23391 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
23393 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
23395 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
23396 parameter 'mode' of type 'enum machine_mode mode'; change to pass
23397 'mode' to force_reg.
23398 (aarch64_add_offset): Update calls to aarch64_force_temporary.
23399 (aarch64_expand_mov_immediate): Likewise.
23401 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
23403 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
23404 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
23406 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23408 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
23409 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
23410 (struct machine_function): Add tbegin_p.
23411 (s390_canonicalize_comparison): Fold CC mode compares to
23412 conditional jump if possible.
23413 (s390_emit_jump): Return the emitted jump.
23414 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
23415 Handle CCRAWmode compares.
23416 (s390_option_override): Default to -mhtm if available.
23417 (s390_reg_clobbered_rtx): Handle floating point regs as well.
23418 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
23419 FPRs instead of df_regs_ever_live_p.
23420 (s390_optimize_nonescaping_tx): New function.
23421 (s390_init_frame_layout): Extend clobbered_regs array to cover
23423 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
23424 (s390_expand_tbegin): New function.
23425 (enum s390_builtin): New enum definition.
23426 (code_for_builtin): New array definition.
23427 (s390_init_builtins): New function.
23428 (s390_expand_builtin): New function.
23429 (TARGET_INIT_BUILTINS): Define.
23430 (TARGET_EXPAND_BUILTIN): Define.
23431 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
23432 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
23433 (s390_alc_comparison): Likewise.
23434 * config/s390/s390-modes.def: Add CCRAWmode.
23435 * config/s390/s390.h (processor_flags): Add PF_TX.
23436 (TARGET_CPU_HTM): Define macro.
23437 (TARGET_HTM): Define macro.
23438 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
23439 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
23440 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
23441 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
23442 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
23443 (TBEGIN_MASK, TBEGINC_MASK): New constants.
23444 ("*cc_to_int"): Move up.
23445 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
23446 constants other than 0.
23447 ("*ccraw_to_int"): New insn and splitter definition.
23448 ("tbegin", "tbegin_nofloat", "tbegin_retry")
23449 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
23450 ("tx_assist"): New expander.
23451 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
23452 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
23453 * config/s390/s390.opt: Add -mhtm option.
23454 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
23455 * config/s390/htmxlintrin.h: New file.
23456 * config/s390/htmintrin.h: New file.
23457 * config/s390/s390intrin.h: New file.
23458 * doc/extend.texi: Document htm builtins.
23459 * config.gcc: Add the new header files to extra_headers.
23461 2013-06-26 Thomas Schwinge <thomas@codesourcery.com>
23463 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
23464 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
23466 2013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
23467 Pat Haugen <pthaugen@us.ibm.com>
23468 Peter Bergner <bergner@vnet.ibm.com>
23470 * config/rs6000/power8.md: New.
23471 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
23472 setting for power8 entry.
23473 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
23474 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
23475 test for Power4/Power5 only.
23476 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
23478 (force_new_group): Adjust comment.
23479 * config/rs6000/rs6000.md: Include power8.md.
23481 2013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
23483 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
23484 * config/arm/arm-protos.h (arm_max_conditional_execute): New
23486 (tune_params): Update comment.
23487 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
23488 (arm_max_conditional_execute): New function.
23489 (thumb2_final_prescan_insn): Use max_insn_skipped and
23490 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
23492 2013-06-25 Jakub Jelinek <jakub@redhat.com>
23494 PR tree-optimization/57705
23495 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
23496 SSA_NAME step, provided that it is not defined inside the loop.
23497 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
23498 (get_initial_def_for_induction): Handle SSA_NAME IV step.
23500 2013-06-25 Martin Jambor <mjambor@suse.cz>
23502 PR middle-end/57670
23503 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
23504 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
23506 (ipa_note_param_call): Initialize member_ptr flag.
23507 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
23508 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
23509 (ipa_write_indirect_edge_info): Stream member_ptr flag.
23510 (ipa_read_indirect_edge_info): Likewise.
23512 2013-06-25 Richard Biener <rguenther@suse.de>
23514 PR middle-end/56977
23515 * passes.c (init_optimization_passes): Move pass_fold_builtins
23516 and pass_dce earlier with -Og.
23518 2013-06-25 Eric Botcazou <ebotcazou@adacore.com>
23520 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
23521 <BIT_FIELD_REF>: Remove trailing TAB.
23522 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
23525 2013-06-24 Martin Jambor <mjambor@suse.cz>
23527 PR tree-optimization/57358
23528 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
23529 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
23530 (ipa_analyze_params_uses): Generate pessimistic info when true.
23532 2013-06-24 Martin Jambor <mjambor@suse.cz>
23534 PR tree-optimization/57539
23535 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
23536 global.inlined_to of the new node to it. All callers changed.
23537 * ipa-inline-transform.c (clone_inlined_nodes): New variable
23538 inlining_into, pass it to cgraph_clone_node.
23539 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
23540 ipa_free_edge_args_substructures.
23541 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
23542 rdesc linked list. Do not assert rdesc edges have inlined caller.
23543 Assert we have found an rdesc in the rdesc list.
23545 2013-06-24 Richard Biener <rguenther@suse.de>
23547 * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
23548 (pointer_set_lookup): Declare.
23549 (class pointer_map): New template class implementing a
23550 generic pointer to T map.
23551 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
23552 pointer_map<T>::contains, pointer_map<T>::insert,
23553 pointer_map<T>::traverse): New functions.
23554 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
23555 (pointer_set_lookup): New function.
23556 (pointer_set_contains): Use pointer_set_lookup.
23557 (pointer_set_insert): Likewise.
23558 (insert_aux): Remove.
23559 (struct pointer_map_t): Embed a pointer_set_t.
23560 (pointer_map_create): Adjust.
23561 (pointer_map_destroy): Likewise.
23562 (pointer_map_contains): Likewise.
23563 (pointer_map_insert): Likewise.
23564 (pointer_map_traverse): Likewise.
23565 * tree-streamer.h (struct streamer_tree_cache_d): Use a
23566 pointer_map<unsigned> instead of a pointer_map_t.
23567 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
23568 (streamer_tree_cache_lookup): Likewise.
23569 (streamer_tree_cache_create): Likewise.
23570 (streamer_tree_cache_delete): Likewise.
23571 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
23572 pointer_map<unsigned> instead of a pointer_map_t.
23573 (lto_init_tree_ref_encoder): Adjust.
23574 (lto_destroy_tree_ref_encoder): Likewise.
23575 * lto-section-out.c (lto_output_decl_index): Likewise.
23576 (lto_record_function_out_decl_state): Likewise.
23577 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
23579 2013-06-24 Richard Biener <rguenther@suse.de>
23581 PR tree-optimization/57488
23582 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
23584 2013-06-24 Alan Modra <amodra@gmail.com>
23586 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
23587 (gen_easy_altivec_constant): Likewise.
23588 * config/rs6000/predicates.md (easy_vector_constant_add_self,
23589 easy_vector_constant_msb): Likewise.
23591 2013-06-23 Jakub Jelinek <jakub@redhat.com>
23594 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
23595 add missing return true.
23597 2013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
23600 * config/sh/predicates.md (general_extend_operand): Invoke
23601 general_movsrc_operand for memory operands.
23602 (general_movsrc_operand): Allow reg+reg addressing, do not use
23603 general_operand for memory operands.
23605 2013-06-23 Sriraman Tallam <tmsriram@google.com>
23607 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
23608 when current target options does not apply.
23609 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
23610 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
23611 * config/i386/bmiintrin.h: Pass appropriate target
23612 attributes to header.
23613 * config/i386/mmintrin.h: Ditto.
23614 * config/i386/nmmintrin.h: Ditto.
23615 * config/i386/avx2intrin.h: Ditto.
23616 * config/i386/fxsrintrin.h: Ditto.
23617 * config/i386/tbmintrin.h: Ditto.
23618 * config/i386/xsaveintrin.h: Ditto.
23619 * config/i386/f16cintrin.h: Ditto.
23620 * config/i386/xtestintrin.h: Ditto.
23621 * config/i386/xsaveoptintrin.h: Ditto.
23622 * config/i386/bmi2intrin.h: Ditto.
23623 * config/i386/lzcntintrin.h: Ditto.
23624 * config/i386/smmintrin.h: Ditto.
23625 * config/i386/wmmintrin.h: Ditto.
23626 * config/i386/x86intrin.h: Remove all header include guards.
23627 * config/i386/prfchwintrin.h: Ditto.
23628 * config/i386/pmmintrin.h: Ditto.
23629 * config/i386/tmmintrin.h: Ditto.
23630 * config/i386/xmmintrin.h: Ditto.
23631 * config/i386/popcntintrin.h: Ditto.
23632 * config/i386/rdseedintrin.h: Ditto.
23633 * config/i386/ammintrin.h: Ditto.
23634 * config/i386/emmintrin.h: Ditto.
23635 * config/i386/immintrin.h: Remove all header include guards.
23636 * config/i386/fma4intrin.h: Ditto.
23637 * config/i386/lwpintrin.h: Ditto.
23638 * config/i386/xopintrin.h: Ditto.
23639 * config/i386/ia32intrin.h: Ditto.
23640 * config/i386/avxintrin.h: Ditto.
23641 * config/i386/rtmintrin.h: Ditto.
23642 * config/i386/fmaintrin.h: Ditto.
23643 * config/i386/mm3dnow.h: Ditto.
23645 2013-06-22 Sriraman Tallam <tmsriram@google.com>
23647 * common/config/i386/i386-common.c: Handle LZCNT.
23649 2013-06-22 Andi Kleen <ak@linux.intel.com>
23651 * doc/extend.texi: Use __atomic_store_n instead of
23652 __atomic_store in HLE example.
23654 2013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
23656 * config/sh/sh.c: Remove <cstdlib> workaround.
23658 2013-06-21 Andi Kleen <ak@linux.intel.com>
23660 * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo.
23662 2013-06-21 Andi Kleen <ak@linux.intel.com>
23664 * doc/extend.texi: Document that __atomic_clear and
23665 __atomic_test_and_set should only be used with bool.
23667 2013-06-20 Jan Hubicka <jh@suse.cz>
23669 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
23670 types_same_for_odr.
23671 * tree.c (decls_same_for_odr): New function.
23672 (same_for_edr): New function.
23673 (types_same_for_odr): New function.
23674 (get_binfo_at_offset): Use it.
23675 * tree.h (types_same_for_odr): Declare.
23677 2013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
23678 Jason Merrill <jason@redhat.com>
23680 * system.h: Include <cstdlib> as well as <stdlib.h>.
23682 2013-06-20 Uros Bizjak <ubizjak@gmail.com>
23685 * config/i386/i386.c (construct_container): Report error if
23686 long double is used with disabled x87 float returns.
23688 2013-06-20 Jan Hubicka <jh@suse.cz>
23690 * lto-cgraph.c (input_symtab): Do not set cgraph state.
23692 2013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
23694 PR rtl-optimization/57425
23695 PR rtl-optimization/57569
23696 * alias.c (write_dependence_p): Remove parameters mem_mode and
23697 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
23698 Changed all callers.
23699 (canon_anti_dependence): Get comments and semantics in sync.
23700 Add parameter mem_canonicalized. Changed all callers.
23701 * rtl.h (canon_anti_dependence): Update prototype.
23703 2013-06-20 Richard Biener <rguenther@suse.de>
23705 * data-streamer-in.c (streamer_read_uhwi): Optimize single
23706 byte case, inline streamer_read_uchar and defer section
23709 2013-06-20 Richard Biener <rguenther@suse.de>
23711 PR tree-optimization/57584
23712 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
23713 SSA names into the expanded expression that take part in
23714 abnormal coalescing.
23716 2013-06-19 Sharad Singhai <singhai@google.com>
23718 * gcov.c (print_usage): Handle new option.
23719 (process_args): Ditto.
23720 (get_gcov_intermediate_filename): New function.
23721 (output_intermediate_file): New function.
23722 (output_gcov_file): New function
23723 (generate_results): Handle new option.
23724 (release_function): Relase demangled name.
23725 (read_graph_file): Handle demangled name.
23726 (output_lines): Ditto.
23727 * doc/gcov.texi: Document gcov intermediate format.
23729 2013-06-19 Vladimir Makarov <vmakarov@redhat.com>
23732 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
23733 (lra_emit_add): Use the functions. Add comment about Y as an
23736 2013-06-19 David Edelsohn <dje.gcc@gmail.com>
23739 * collect2.c (collect_atexit): New.
23740 (collect_exit): Delete.
23741 (main): Register collect_atexit with atexit.
23742 (collect_wait): Change collect_exit to exit.
23744 * collect2.h (collect_exit): Delete.
23745 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
23747 2013-06-19 Wei Mi <wmi@google.com>
23749 PR rtl-optimization/57518
23750 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
23751 if regno is used in paradoxical subreg.
23752 (update_equiv_regs): Check pdx_subregs[regno] before
23753 set a reg to be equivalent with a mem.
23755 2013-06-19 Matthias Klose <doko@ubuntu.com>
23758 * file-find.h (find_a_file): Add a mode parameter.
23759 * file-find.c (find_a_file): Likewise.
23760 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
23761 with X_OK for the executables.
23762 * collect2.c (main): Call find_a_file with X_OK.
23764 2013-06-19 Steve Ellcey <sellcey@mips.com>
23767 * config/mips/mips.md (casesi_internal_mips16_<mode>):
23768 Use NEXT_INSN instead of next_real_insn.
23770 2013-06-19 Jan Hubicka <jh@suse.cz>
23772 * cgraph.h (const_value_known_p): Replace by ...
23773 (ctor_for_folding): .. this one.
23774 * cgraphunit.c (process_function_and_variable_attributes): Use it.
23775 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
23776 * expr.c (expand_expr_real_1): Likewise.
23777 (string_constant): Likewise.
23778 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
23779 * ipa.c (process_references): Likewise.
23780 (symtab_remove_unreachable_nodes): Likewise.
23781 * ipa-inline-analysis.c (param_change_prob): Likewise.
23782 * gimple-fold.c (canonicalize_constructor_val): Likewise.
23783 (get_base_constructor): Likwise.
23784 * varpool.c (varpool_remove_node): Likewise.
23785 (varpool_remove_initializer): LIkewise.
23786 (dump_varpool_node): LIkwise.
23787 (const_value_known_p): Rewrite to ...
23788 (ctor_for_folding): ... this one.
23790 2013-06-19 Jakub Jelinek <jakub@redhat.com>
23793 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
23794 PERSONALITY in $PATH derived prefixes.
23796 2013-06-19 Jeff Law <law@redhat.com>
23798 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
23801 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
23802 (simplify_bitwise_binary): Use it to simpify certain binary ops on
23805 2013-06-19 Sofiane Naci <sofiane.naci@arm.com>
23807 * config/arm/vfp.md: Move VFP instruction classification documentation
23809 * config/arm/arm.md: ... here. Update instruction classification
23812 2013-06-19 Richard Earnshaw <rearnsha@arm.com>
23814 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
23815 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
23816 pattern. Use more efficient sequences on ARMv5 and Thumb2.
23818 2013-06-19 Steven Bosscher <steven@gcc.gnu.org>
23821 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
23822 with NEXT_INSN. Use tablejump_p to check for jump table data
23825 2013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
23828 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
23829 that now in C++ the value is correct per the C++ standards.
23831 2013-06-19 Richard Biener <rguenther@suse.de>
23833 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
23834 for global context.
23836 2013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23839 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23842 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
23843 with next_active_insn.
23845 2013-06-18 Sriraman Tallam <tmsriram@google.com>
23847 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
23848 functions are inlined during failures to flag an error.
23849 * tree-inline.c (expand_call_inline): Allow the error to be flagged
23850 in early inline pass.
23852 2013-06-18 H.J. Lu <hongjiu.lu@intel.com>
23854 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
23857 2013-06-18 Julian Brown <julian@codesourcery.com>
23859 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
23860 Permit virtual register pre-reload if !strict.
23861 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
23863 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
23865 * config/arm/neon.md (movmisalign<mode>): Use
23866 neon_perm_struct_or_reg_operand instead of
23867 neon_struct_or_register_operand.
23868 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
23869 neon_permissive_struct_operand instead of neon_struct_operand.
23870 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
23871 neon_vector_mem_operand.
23872 * config/arm/predicates.md (neon_struct_operand): Adjust call to
23873 neon_vector_mem_operand.
23874 (neon_permissive_struct_operand): New.
23875 (neon_struct_or_register_operand): Rename to...
23876 (neon_perm_struct_or_reg_operand): This. Adjust call to
23877 neon_vector_mem_operand.
23879 2013-06-18 Richard Biener <rguenther@suse.de>
23881 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
23882 * lto-streamer.h: Include pointer-set.h.
23883 (struct lto_decl_slot): Remove.
23884 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
23885 Remove next_index entry.
23886 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
23887 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
23888 (lto_init_tree_ref_encoder): Adjust.
23889 (lto_destroy_tree_ref_encoder): Likewise.
23890 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
23891 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
23892 (lto_output_decl_index): Adjust.
23893 (lto_new_out_decl_state): Likewise.
23894 (lto_record_function_out_decl_state): Likewise.
23895 * lto-streamer-out.c (copy_function): Likewise.
23897 2013-06-18 Richard Biener <rguenther@suse.de>
23899 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
23900 * cgraphunit.c: Include cfgloop.h.
23901 (init_lowered_empty_function): Initialize the loop tree.
23902 (assemble_thunk): Insert new BBs into loops.
23904 2013-06-18 Richard Biener <rguenther@suse.de>
23906 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
23907 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
23908 the map from cache entry to cache index optional.
23909 (streamer_tree_cache_replace_tree): Adjust accordingly.
23910 (streamer_tree_cache_append): Likewise.
23911 (streamer_tree_cache_delete): Likewise.
23912 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
23913 streamer cache map from cache entry to cache index.
23914 * lto-streamer-out.c (create_output_block): Adjust.
23916 2013-06-18 Sofiane Naci <sofiane.naci@arm.com>
23918 * config/arm/arm.md (attribute "insn"): Move multiplication and
23919 division attributes to...
23920 (attribute "type"): ... here. Remove mult.
23921 (attribute "mul32"): New attribute.
23922 (attribute "mul64"): Add umaal.
23923 (*arm_mulsi3): Update attributes.
23924 (*arm_mulsi3_v6): Likewise.
23925 (*thumb_mulsi3): Likewise.
23926 (*thumb_mulsi3_v6): Likewise.
23927 (*mulsi3_compare0): Likewise.
23928 (*mulsi3_compare0_v6): Likewise.
23929 (*mulsi_compare0_scratch): Likewise.
23930 (*mulsi_compare0_scratch_v6): Likewise.
23931 (*mulsi3addsi): Likewise.
23932 (*mulsi3addsi_v6): Likewise.
23933 (*mulsi3addsi_compare0): Likewise.
23934 (*mulsi3addsi_compare0_v6): Likewise.
23935 (*mulsi3addsi_compare0_scratch): Likewise.
23936 (*mulsi3addsi_compare0_scratch_v6): Likewise.
23937 (*mulsi3subsi): Likewise.
23938 (*mulsidi3adddi): Likewise.
23939 (*mulsi3addsi_v6): Likewise.
23940 (*mulsidi3adddi_v6): Likewise.
23941 (*mulsidi3_nov6): Likewise.
23942 (*mulsidi3_v6): Likewise.
23943 (*umulsidi3_nov6): Likewise.
23944 (*umulsidi3_v6): Likewise.
23945 (*umulsidi3adddi): Likewise.
23946 (*umulsidi3adddi_v6): Likewise.
23947 (*smulsi3_highpart_nov6): Likewise.
23948 (*smulsi3_highpart_v6): Likewise.
23949 (*umulsi3_highpart_nov6): Likewise.
23950 (*umulsi3_highpart_v6): Likewise.
23951 (mulhisi3): Likewise.
23952 (*mulhisi3tb): Likewise.
23953 (*mulhisi3bt): Likewise.
23954 (*mulhisi3tt): Likewise.
23955 (maddhisi4): Likewise.
23956 (*maddhisi4tb): Likewise.
23957 (*maddhisi4tt): Likewise.
23958 (maddhidi4): Likewise.
23959 (*maddhidi4tb): Likewise.
23960 (*maddhidi4tt): Likewise.
23961 (divsi3): Likewise.
23962 (udivsi3): Likewise.
23963 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
23964 (thumb2_mulsi_short_compare0): Likewise.
23965 (thumb2_mulsi_short_compare0_scratch): Likewise.
23966 * config/arm/arm1020e.md (1020mult1): Update attribute change.
23967 (1020mult2): Likewise.
23968 (1020mult3): Likewise.
23969 (1020mult4): Likewise.
23970 (1020mult5): Likewise.
23971 (1020mult6): Likewise.
23972 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
23974 (cortex_a15_mult64): Likewise.
23975 (cortex_a15_sdiv): Likewise.
23976 (cortex_a15_udiv): Likewise.
23977 * config/arm/arm1026ejs.md (mult1): Update attribute change.
23983 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
23984 (pj4_ir_div): Likewise.
23985 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
23986 (11_mult2): Likewise.
23987 (11_mult3): Likewise.
23988 (11_mult4): Likewise.
23989 (11_mult5): Likewise.
23990 (11_mult6): Likewise.
23991 (11_mult7): Likewise.
23992 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
23993 (cortex_a8_mla): Likewise.
23994 (cortex_a8_mull): Likewise.
23995 (cortex_a8_smulwy): Likewise.
23996 (cortex_a8_smlald): Likewise.
23997 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
23998 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
23999 (cortex_r4_mul_3): Likewise.
24000 (cortex_r4_mla_4): Likewise.
24001 (cortex_r4_mla_3): Likewise.
24002 (cortex_r4_smlald): Likewise.
24003 (cortex_r4_mull): Likewise.
24004 (cortex_r4_sdiv): Likewise.
24005 (cortex_r4_udiv): Likewise.
24006 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
24007 (cortex_a7_idiv): Likewise.
24008 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
24009 (9_mult2): Likewise.
24010 (9_mult3): Likewise.
24011 (9_mult4): Likewise.
24012 (9_mult5): Likewise.
24013 (9_mult6): Likewise.
24014 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
24015 (cortex_a53_sdiv): Likewise.
24016 (cortex_a53_udiv): Likewise.
24017 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
24018 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
24019 (mp626_mult2): Likewise.
24020 (mp626_mult3): Likewise.
24021 (mp626_mult4): Likewise.
24022 * config/arm/fa526.md (526_mult1): Update attribute change.
24023 (526_mult2): Likewise.
24024 * config/arm/arm-generic.md (mult): Update attribute change.
24025 (mult_ldsched_strongarm): Likewise.
24026 (mult_ldsched): Likewise.
24027 (multi_cycle): Likewise.
24028 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
24029 * config/arm/fa606te.md (606te_mult1): Update attribute change.
24030 (606te_mult2): Likewise.
24031 (606te_mult3): Likewise.
24032 (606te_mult4): Likewise.
24033 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
24034 (cortex_a9_mac16): Likewise.
24035 (cortex_a9_multiply): Likewise.
24036 (cortex_a9_mac): Likewise.
24037 (cortex_a9_multiply_long): Likewise.
24038 * config/arm/fa626te.md (626te_mult1): Update attribute change.
24039 (626te_mult2): Likewise.
24040 (626te_mult3): Likewise.
24041 (626te_mult4): Likewise.
24043 2013-06-18 Richard Biener <rguenther@suse.de>
24046 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
24048 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24051 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
24052 with next_active_insn.
24054 2013-06-18 Alan Modra <amodra@gmail.com>
24056 * config/rs6000/rs6000.h (enum data_align): New.
24057 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
24058 (DATA_ABI_ALIGNMENT): Define.
24059 (CONSTANT_ALIGNMENT): Correct comment.
24060 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
24061 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
24063 2013-06-17 David Malcolm <dmalcolm@redhat.com>
24065 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
24066 ATTRIBUTE_UNUSED marking.
24068 2013-06-17 Sofiane Naci <sofiane.naci@arm.com>
24070 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
24071 alternative and update.
24072 (aarch64_dup_lanedi): Delete.
24073 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
24074 * config/aarch64/aarch64-simd-builtins.def: Update.
24076 2013-06-17 Richard Biener <rguenther@suse.de>
24078 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
24079 (lto_input_scc): Declare.
24080 (lto_input_tree_1): Likewise.
24081 (struct lto_stats_d): Add num_tree_bodies_output and
24082 num_pickle_refs_output.
24083 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
24084 (lto_read_tree_1): Split out from ...
24085 (lto_read_tree): ... this.
24086 (lto_input_scc): New function.
24087 (lto_input_tree_1): Split out from ...
24088 (lto_input_tree): ... this. Handle LTO_tree_scc.
24089 (lto_data_in_create): Create the streamer cache without hashes.
24090 * lto-streamer-out.c (create_output_block): Create the streamer
24091 cache with hashes when not doing WPA.
24092 (lto_write_tree_1): Split out from ...
24093 (lto_write_tree): ... this.
24094 (get_symbol_initial_value): New function.
24095 (lto_output_tree_1): Split out from ...
24096 (lto_output_tree): ... this. Write trees as series of SCCs
24097 using a DFS walk via DFS_write_tree.
24098 (struct sccs, struct scc_entry): New types.
24099 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
24100 (DFS_write_tree_body): New function.
24101 (DFS_write_tree): Likewise.
24102 (hash_tree): Likewise.
24103 (scc_entry_compare): Likewise.
24104 (hash_scc): Likewise.
24105 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
24106 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
24107 TREE_CHAIN as regular reference.
24108 (streamer_read_integer_cst): Remove.
24109 (streamer_get_pickled_tree): Adjust.
24110 * tree-streamer-out.c (streamer_write_chain): Disable streaming
24111 of DECL_EXTERNALs in BLOCK_VARS for now.
24112 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
24114 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
24115 Add hash value argument and record that if hashes are recorded
24117 (streamer_tree_cache_insert_1): Adjust.
24118 (streamer_tree_cache_insert): Likewise.
24119 (streamer_tree_cache_insert_at): Rename to ...
24120 (streamer_tree_cache_replace_tree): ... this and adjust.
24121 (streamer_tree_cache_append): Adjust.
24122 (record_common_node): Likewise.
24123 (streamer_tree_cache_create): Add argument whether to
24124 record hash values together with trees.
24125 (streamer_tree_cache_delete): Adjust.
24126 * tree-streamer.h (struct streamer_tree_cache_d): Add
24128 (streamer_read_integer_cst): Remove.
24129 (streamer_tree_cache_insert): Adjust.
24130 (streamer_tree_cache_append): Likewise.
24131 (streamer_tree_cache_insert_at): Rename to ...
24132 (streamer_tree_cache_replace_tree): ... this and adjust.
24133 (streamer_tree_cache_create): Add argument whether to record hashes.
24134 (streamer_tree_cache_get): Rename to ...
24135 (streamer_tree_cache_get_tree): ... this.
24136 (streamer_tree_cache_get_hash): New function.
24137 * tree.c (cache_integer_cst): New function.
24138 * tree.h (cache_integer_cst): Declare.
24139 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
24140 * lto-symtab.c (lto_varpool_replace_node): Only release
24141 DECL_INITIAL of non-prevailing decls.
24142 * varpool.c (varpool_remove_initializer): Do not release
24143 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
24145 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
24147 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
24148 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
24149 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
24150 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
24151 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
24152 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
24153 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
24154 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
24155 instead of TARGET_64BIT.
24156 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
24157 Require ISA_HAS_<D>DIV.
24159 2013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
24161 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
24162 (mips*-*-linux*): Move default with_llsc setting to where other
24164 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
24166 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
24167 Likewise. Remove default with_tune setting. Move default float
24168 setting to its own block. Handle with_llsc in the same block as above.
24170 2013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
24172 PR rtl-optimization/57425
24173 PR rtl-optimization/57569
24174 * alias.c (write_dependence_p): Add new parameters mem_mode,
24175 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
24176 Changed all callers.
24177 (canon_anti_dependence): New function.
24178 * cse.c (check_dependence): Use canon_anti_dependence.
24179 * cselib.c (cselib_invalidate_mem): Likewise.
24180 * rtl.h (canon_anti_dependence): Declare.
24182 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
24184 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
24185 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
24186 ".set mips3" for 64-bit targets.
24188 2013-06-15 Dehao Chen <dehao@google.com>
24190 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
24191 * gimple-low.c (gimple_check_call_matching_types): Likewise.
24192 (gimple_check_call_args): Likewise.
24193 * value-prof.c (check_ic_target): Likewise.
24194 * ipa-inline.c (early_inliner): Likewise.
24195 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
24196 * cgraph.c (cgraph_create_edge_1): Likewise.
24197 (cgraph_make_edge_direct): Likewise.
24199 2013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
24202 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
24203 rs6000_output_move_128bit to handle emitting quad memory
24204 operations. Set attribute length to 8 bytes.
24206 2013-06-14 Vidya Praveen <vidyapraveen@arm.com>
24208 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
24210 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
24211 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
24212 (aarch64_<su>mlsl<mode>): Likewise.
24214 2013-06-14 Mike Stump <mikestump@comcast.net>
24216 * Makefile.in (TARGET_H): Add insn-codes.h.
24218 2013-06-14 Alan Modra <amodra@gmail.com>
24220 PR middle-end/57134
24221 PR middle-end/57586
24222 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
24223 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
24224 bitfield expansion when EXPAND_MEMORY.
24225 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
24227 2013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
24229 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
24230 test for clearing quad memory on 32-bit later.
24232 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
24234 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
24235 (fold_negate_expr): Likewise.
24236 (fold_real_zero_addition_p): Handle vectors.
24237 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
24239 2013-06-14 Alan Modra <amodra@gmail.com>
24241 * varasm.c (force_const_mem): Revert 2013-06-07 change.
24243 2013-06-13 Jan Hubicka <jh@suse.cz>
24245 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
24246 Local comdats are not externally visible.
24247 * symtab.c (dump_symtab_base): Dump externally visible.
24248 (verify_symtab_base): Verify back links in the symtab hash.
24250 2013-06-13 Bin Cheng <bin.cheng@arm.com>
24252 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
24253 CONVERT_EXPR as equal nodes.
24255 2013-06-13 Bin Cheng <bin.cheng@arm.com>
24257 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
24259 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
24261 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
24262 Generalize to complex and vector.
24263 * tree.c (build_all_ones_cst): New function.
24264 * tree.h (build_all_ones_cst): Declare it.
24266 2013-06-13 Alan Modra <amodra@gmail.com>
24268 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
24269 * config/rs6000/rs6000.md (signbittf2): New insn.
24270 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
24271 (abstf2_internal, cmptf_internal2): Likewise.
24272 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
24274 2013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
24275 Pat Haugen <pthaugen@us.ibm.com>
24276 Peter Bergner <bergner@vnet.ibm.com>
24278 * config/rs6000/rs6000.c (emit_load_locked): Add support for
24279 power8 byte, half-word, and quad-word atomic instructions.
24280 (emit_store_conditional): Likewise.
24281 (rs6000_expand_atomic_compare_and_swap): Likewise.
24282 (rs6000_expand_atomic_op): Likewise.
24284 * config/rs6000/sync.md (larx): Add new modes for power8.
24286 (AINT): New mode iterator to include TImode as well as normal
24287 integer modes on power8.
24288 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
24289 that VSX registers are not considered. Use AINT mode iterator
24290 instead of INT1 to allow inclusion of quad word atomic operations
24292 (load_locked<mode>): Likewise.
24293 (store_conditional<mode>): Likewise.
24294 (atomic_compare_and_swap<mode>): Likewise.
24295 (atomic_exchange<mode>): Likewise.
24296 (atomic_nand<mode>): Likewise.
24297 (atomic_fetch_<fetchop_name><mode>): Likewise.
24298 (atomic_nand_fetch<mode>): Likewise.
24299 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
24301 (ATOMIC): On power8, add QImode, HImode modes.
24302 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
24303 modes that promote to SImode.
24304 (load_lockedti): Convert TImode arguments to PTImode, so that we
24305 get a guaranteed even/odd register pair.
24306 (load_lockedpti): Likewise.
24307 (store_conditionalti): Likewise.
24308 (store_conditionalpti): Likewise.
24310 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
24311 atomic load/store instructions.
24314 2013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
24316 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
24318 (insn_count): New attribute, with most cases extracted from...
24319 (length): ...here. Redefine most cases in terms of insn_count.
24320 (single_insn): Delete.
24321 (can_delay): Use insn_count to check for single instructions.
24322 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
24323 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
24324 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
24325 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
24326 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
24327 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
24328 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
24329 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
24330 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
24331 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
24332 rather than "length".
24333 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
24334 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
24335 Use "insn_count" rather than "length".
24336 * config/mips/mips-dsp.md
24337 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
24338 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
24341 2013-06-12 Marc Glisse <marc.glisse@inria.fr>
24343 PR tree-optimization/57361
24344 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
24346 2013-06-12 Sofiane Naci <sofiane.naci@arm.com>
24348 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
24350 (aarch64_simd_combine<mode>): New instruction expansion.
24351 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
24352 function prototype.
24353 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
24354 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
24356 2013-06-12 Jan Hubicka <jh@suse.cz>
24358 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
24359 decl has when in streaming stage.
24360 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
24361 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
24363 2013-06-12 Roland Stigge <stigge@antcom.de>
24366 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
24368 2013-06-12 Jakub Jelinek <jakub@redhat.com>
24370 PR tree-optimization/57537
24371 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
24372 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
24374 2013-06-12 Richard Biener <rguenther@suse.de>
24376 * data-streamer.h (streamer_write_char_stream): CSE
24377 obs->current_pointer.
24378 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
24379 streamer_write_char_stream manually and optimize the resulting loop.
24380 (streamer_write_hwi_stream): Likewise.
24382 2013-06-12 Jan Hubicka <jh@suse.cz>
24384 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
24385 * cgraph.h (varpool_create_empty_node): Declare.
24386 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
24388 * symtab.c (symtab_unregister_node): Be lax about missin entries
24390 (symtab_get_node): Update comment.
24391 * varpool.c (varpool_create_empty_node): Break out from ...
24392 (varpool_node_for_decl): ... here.
24393 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
24395 2013-06-12 Eric Botcazou <ebotcazou@adacore.com>
24397 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
24398 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
24399 part. Use straight-line flow at the end.
24400 <COMPONENT_REF>: Remove superfluous else.
24401 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
24403 2013-06-12 Jakub Jelinek <jakub@redhat.com>
24406 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
24407 target hook even for !TREE_PUBLIC decls. If no resolution info
24408 is available, return false for common and external decls.
24410 2013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
24412 * config/rl78/constraints.md (U): New constraint.
24413 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
24416 2013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
24419 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
24420 to allow returning address to AT_PLATFORM name.
24422 2013-06-11 Jan Hubicka <jh@suse.cz>
24424 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
24425 * cgraph.h (symtab_node_base): Add weakref flag.
24426 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
24427 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
24428 (output_weakrefs): Use weakref flag.
24429 * fold-const.c (simple_operand_p): Handle WEAK.
24430 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
24431 * ipa.c (varpool_externally_visible_p): Drop weakref.
24432 (function_and_variable_visibility): Update comment; fix weakref
24433 sanity checks; do not clear DECL_WEAK on them.
24434 * lto-cgraph.c (lto_output_node): update.
24435 (lto_output_varpool_node): Update.
24436 (input_overwrite_node): Update.
24437 (input_node): Update.
24438 (input_varpool_node): Update.
24439 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
24440 (lto_symtab_merge_symbols): Add sanity check.
24441 (lto_symtab_prevailing_decl): Do not special case weakrefs.
24442 * passes.c (rest_of_decl_compilation): Set static flag, too.
24443 * symtab.c (dump_symtab_base): Dump weakref.
24444 (verify_symtab_base): Sanity check weakrefs.
24445 (symtab_make_decl_local): Remove duplicated code.
24446 (symtab_alias_ultimate_target): Simplify.
24447 * varpool.c (varpool_create_variable_alias): Set weakref flag.
24449 2013-06-11 Tom de Vries <tom@codesourcery.com>
24451 * genautomata.c (gen_regexp_sequence): Handle els_num == -1. Handle
24452 sequence_vect == NULL.
24454 2013-06-11 DJ Delorie <dj@redhat.com>
24456 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
24457 (rl78_unwind_word_mode): New.
24459 2013-06-11 David Malcolm <dmalcolm@redhat.com>
24461 * final.c (debug_prefix_maps): Make static.
24463 2013-06-11 David Malcolm <dmalcolm@redhat.com>
24465 * function.c (initial_trampoline): Remove stray copy.
24467 2013-06-11 Sofiane Naci <sofiane.naci@arm.com>
24469 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
24471 2013-06-11 Martin Jambor <mjambor@suse.cz>
24473 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
24474 within bounds at the beginning of the function.
24476 2013-06-11 Alan Modra <amodra@gmail.com>
24478 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
24480 (get_named_section): Don't NULL !DECL_P decl.
24482 2013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
24484 * doc/invoke.texi (core-avx2): Document.
24486 (atom): Updated with MOVBE.
24488 2013-06-11 Richard Biener <rguenther@suse.de>
24490 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
24492 2013-06-11 Anton Blanchard <anton@samba.org>
24494 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
24495 correct shift value in little-endian mode.
24497 2013-06-11 Jakub Jelinek <jakub@redhat.com>
24500 * varasm.c (get_variable_align): Move #endif to the right place.
24502 2013-06-10 Cary Coutant <ccoutant@google.com>
24504 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
24505 for hash so that hash table traversal order is deterministic.
24507 2013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
24508 Pat Haugen <pthaugen@us.ibm.com>
24509 Peter Bergner <bergner@vnet.ibm.com>
24511 * config/rs6000/vector.md (GPR move splitter): Do not split moves
24512 of vectors in GPRS if they are direct moves or quad word load or
24515 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
24517 (direct_move_p): Likewise.
24518 (quad_load_store_p): Likewise.
24520 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
24521 classes into bins based on the physical register type.
24522 (reg_class_to_reg_type): Likewise.
24523 (IS_STD_REG_TYPE): Likewise.
24524 (IS_FP_VECT_REG_TYPE): Likewise.
24525 (reload_fpr_gpr): Arrays to determine what insn to use if we can
24526 use direct move instructions.
24527 (reload_gpr_vsx): Likewise.
24528 (reload_vsx_gpr): Likewise.
24529 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
24530 information that is a simplification of register classes. Also
24531 precalculate direct move reload helpers.
24532 (direct_move_p): New function to return true if the operation can
24533 be done as a direct move instruciton.
24534 (quad_load_store_p): New function to return true if the operation
24535 is a quad memory operation.
24536 (rs6000_legitimize_address): If quad memory, only allow register
24537 indirect for TImode addresses.
24538 (rs6000_legitimate_address_p): Likewise.
24539 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
24540 (rs6000_reload_register_type): Likewise.
24541 (register_to_reg_type): Return register type.
24542 (rs6000_secondary_reload_simple_move): New helper function for
24543 secondary reload and secondary memory needed to identify anything
24544 that is a simple move, and does not need reloading.
24545 (rs6000_secondary_reload_direct_move): New helper function for
24546 secondary reload to identify cases that can be done with several
24547 instructions via the direct move instructions.
24548 (rs6000_secondary_reload_move): New helper function for secondary
24549 reload to identify moves between register types that can be done.
24550 (rs6000_secondary_reload): Add support for quad memory operations
24551 and for direct move.
24552 (rs6000_secondary_memory_needed): Likewise.
24553 (rs6000_debug_secondary_memory_needed): Change argument names.
24554 (rs6000_output_move_128bit): New function to return the move to
24555 use for 128-bit moves, including knowing about the various
24556 limitations of quad memory operations.
24558 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
24559 memory operations. call rs6000_output_move_128bit for the actual
24560 instruciton(s) to generate.
24561 (vsx_movti_64bit): Likewise.
24563 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
24564 (UNSPEC_P8V_MTVSRWZ): Likewise.
24565 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
24566 (UNSPEC_P8V_MTVSRD): Likewise.
24567 (UNSPEC_P8V_XXPERMDI): Likewise.
24568 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
24569 (UNSPEC_FUSION_GPR): Likewise.
24570 (FMOVE128_GPR): New iterator for direct move.
24571 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
24572 (f32_sv): Likewise.
24573 (f32_dm): Likewise.
24574 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
24575 loads and direct move instructions.
24576 (zero_extendsidi2_lfiwzx): Likewise.
24577 (extendsidi2_lfiwax): Likewise.
24578 (extendsidi2_nocell): Likewise.
24579 (floatsi<mode>2_lfiwax): Likewise.
24580 (lfiwax): Likewise.
24581 (floatunssi<mode>2_lfiwzx): Likewise.
24582 (lfiwzx): Likewise.
24583 (fix_trunc<mode>_stfiwx): Likewise.
24584 (fixuns_trunc<mode>_stfiwx): Likewise.
24585 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
24586 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
24587 (parity<mode>2_cmpb): Set length/type attr.
24588 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
24589 for 'mr.' to fast_compare.
24590 (bpermd_<mode>): Change type attr to popcnt.
24591 (p8_fmrgow_<mode>): New insns for power8 direct move support.
24592 (p8_mtvsrwz_1): Likewise.
24593 (p8_mtvsrwz_2): Likewise.
24594 (reload_fpr_from_gpr<mode>): Likewise.
24595 (p8_mtvsrd_1): Likewise.
24596 (p8_mtvsrd_2): Likewise.
24597 (p8_xxpermdi_<mode>): Likewise.
24598 (reload_vsx_from_gpr<mode>): Likewise.
24599 (reload_vsx_from_gprsf): Likewise.
24600 (p8_mfvsrd_3_<mode>): LIkewise.
24601 (reload_gpr_from_vsx<mode>): Likewise.
24602 (reload_gpr_from_vsxsf): Likewise.
24603 (p8_mfvsrd_4_disf): Likewise.
24604 (multi-word GPR splits): Do not split direct moves or quad memory
24607 2013-06-10 David Malcolm <dmalcolm@redhat.com>
24609 * tree-into-ssa.c (interesting_blocks): Make static.
24611 2013-06-10 Jakub Jelinek <jakub@redhat.com>
24614 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
24615 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
24616 Use DATA_ABI_ALIGNMENT for that case instead if defined.
24617 (get_variable_align): New function.
24618 (get_variable_section, emit_bss, emit_common,
24619 assemble_variable_contents, place_block_symbol): Use
24620 get_variable_align instead of DECL_ALIGN.
24621 (assemble_noswitch_variable): Add align argument, use it
24622 instead of DECL_ALIGN.
24623 (assemble_variable): Adjust caller. Use get_variable_align
24624 instead of DECL_ALIGN.
24625 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
24627 (DATA_ABI_ALIGNMENT): Define.
24628 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
24629 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
24630 opt is false, only return the psABI mandated alignment increase.
24631 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
24632 (DATA_ABI_ALIGNMENT): ... this.
24633 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
24634 (DATA_ABI_ALIGNMENT): ... this.
24635 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
24636 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
24637 (DATA_ABI_ALIGNMENT): ... this.
24638 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
24639 * doc/tm.texi: Regenerated.
24641 2013-06-10 Uros Bizjak <ubizjak@gmail.com>
24643 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
24644 cmp_code to construct REG_EQUAL note.
24646 2013-06-09 Jakub Jelinek <jakub@redhat.com>
24649 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
24650 that operands[2] doesn't overlap with operands[0].
24652 2013-06-09 David Edelsohn <dje.gcc@gmail.com>
24653 Jan Hubicka <jh@suse.cz>
24655 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
24656 hack to mark symbols as used.
24658 2013-06-08 Vladimir Makarov <vmakarov@redhat.com>
24660 PR rtl-optimization/57559
24661 * lra-constraints.c (process_alt_operands): Don't discourage
24662 memory with known offset for offsetable memory constraint.
24663 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
24665 2013-06-08 Eric Botcazou <ebotcazou@adacore.com>
24667 * varasm.c (struct oc_local_state): Reorder fields.
24668 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
24669 and adjust accordingly.
24670 (output_constructor): Reorder initialization code and adjust call to
24671 output_constructor_bitfield.
24673 2013-06-07 Jan Hubicka <jh@suse.cz>
24675 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
24677 2013-06-07 David Malcolm <dmalcolm@redhat.com>
24679 * tree-object-size.c (unknown): Make const.
24681 2013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24683 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
24684 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
24685 for last alternative in the cpu_facility attribute.
24687 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24690 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
24691 (xordi3): Change operand 2 constraint to arm_xordi_operand.
24692 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
24693 * config/arm/constraints.md (Dg): New constraint.
24694 * config/arm/neon.md (xordi3_neon): Remove.
24695 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
24696 * config/arm/predicates.md (arm_xordi_operand): New predicate.
24698 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24700 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
24701 Clean up alternatives.
24703 2013-06-07 Alan Modra <amodra@gmail.com>
24705 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
24708 2013-06-07 Alan Modra <amodra@gmail.com>
24710 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
24712 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24714 * config/arm/constraints.md (Df): New constraint.
24715 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
24716 Correct length attribute for last two alternatives.
24718 2013-06-07 Alan Modra <amodra@gmail.com>
24720 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
24721 override user -mfp-in-toc.
24722 (offsettable_ok_by_alignment): Consider just the current access
24723 rather than the whole object, unless BLKmode. Handle
24724 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
24725 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
24726 for -mcmodel=medium.
24727 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
24728 override user -mfp-in-toc or -msum-in-toc. Default to
24729 -mno-fp-in-toc for -mcmodel=medium.
24731 2013-06-06 DJ Delorie <dj@redhat.com>
24733 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
24734 TARGET_VALID_POINTER_MODE.
24736 2013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
24737 Pat Haugen <pthaugen@us.ibm.com>
24738 Peter Bergner <bergner@vnet.ibm.com>
24740 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
24741 Document new power8 builtins.
24743 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
24744 condition code register, to allow 128-bit logical operations to be
24745 done in the VSX or GPR registers.
24746 (nor<mode>3): Use the canonical form for nor.
24747 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
24748 vclz*, and vpopcnt* vector instructions.
24749 (nand<mode>3): Likewise.
24750 (orc<mode>3): Likewise.
24751 (clz<mode>2): LIkewise.
24752 (popcount<mode>2): Likewise.
24754 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
24755 that only the GPRs are recognized.
24757 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
24758 support for new power8 builtins.
24760 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
24762 (xscvdpspn): Likewise.
24768 (vpopcnt): Likewise.
24769 (vpopcntb): Likewise.
24770 (vpopcnth): Likewise.
24771 (vpopcntw): Likewise.
24772 (vpopcntd): Likewise.
24774 (vmrgew): Likewise.
24775 (vmrgow): Likewise.
24777 (eqv_v16qi3): Likewise.
24778 (eqv_v8hi3): Likewise.
24779 (eqv_v4si3): Likewise.
24780 (eqv_v2di3): Likewise.
24781 (eqv_v4sf3): Likewise.
24782 (eqv_v2df3): Likewise.
24784 (nand_v16qi3): Likewise.
24785 (nand_v8hi3): Likewise.
24786 (nand_v4si3): Likewise.
24787 (nand_v2di3): Likewise.
24788 (nand_v4sf3): Likewise.
24789 (nand_v2df3): Likewise.
24791 (orc_v16qi3): Likewise.
24792 (orc_v8hi3): Likewise.
24793 (orc_v4si3): Likewise.
24794 (orc_v2di3): Likewise.
24795 (orc_v4sf3): Likewise.
24796 (orc_v2df3): Likewise.
24798 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
24799 allow power8 quad mode in 64-bit.
24800 (rs6000_builtin_vectorized_function): Add support to vectorize
24801 ISA 2.07 count leading zeros, population count builtins.
24802 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
24803 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
24804 (builtin_function_type): Add vgbbd builtin function which takes an
24806 (altivec_expand_vec_perm_const): Add support for new power8 merge
24809 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
24810 that does not include TImdoe for use with 32-bit.
24811 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
24813 (UNSPEC_VSX_CVDPSPN): Likewise.
24814 (vsx_xscvdpspn): Likewise.
24815 (vsx_xscvspdpn): Likewise.
24816 (vsx_xscvdpspn_scalar): Likewise.
24817 (vsx_xscvspdpn_directmove): Likewise.
24818 (vsx_and<mode>3): Split logical operations into 32-bit and
24819 64-bit. Add support to do logical operations on TImode as well as
24820 VSX vector types. Allow logical operations to be done in either
24821 VSX registers or in general purpose registers in 64-bit mode. Add
24822 splitters if GPRs were used. For AND, add clobber of CCmode to
24823 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
24825 (vsx_and<mode>3_32bit): Likewise.
24826 (vsx_and<mode>3_64bit): Likewise.
24827 (vsx_ior<mode>3): Likewise.
24828 (vsx_ior<mode>3_32bit): Likewise.
24829 (vsx_ior<mode>3_64bit): Likewise.
24830 (vsx_xor<mode>3): Likewise.
24831 (vsx_xor<mode>3_32bit): Likewise.
24832 (vsx_xor<mode>3_64bit): Likewise.
24833 (vsx_one_cmpl<mode>2): Likewise.
24834 (vsx_one_cmpl<mode>2_32bit): Likewise.
24835 (vsx_one_cmpl<mode>2_64bit): Likewise.
24836 (vsx_nor<mode>3): Likewise.
24837 (vsx_nor<mode>3_32bit): Likewise.
24838 (vsx_nor<mode>3_64bit): Likewise.
24839 (vsx_andc<mode>3): Likewise.
24840 (vsx_andc<mode>3_32bit): Likewise.
24841 (vsx_andc<mode>3_64bit): Likewise.
24842 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
24843 and xxlorc instructions.
24844 (vsx_eqv<mode>3_64bit): Likewise.
24845 (vsx_nand<mode>3_32bit): Likewise.
24846 (vsx_nand<mode>3_64bit): Likewise.
24847 (vsx_orc<mode>3_32bit): Likewise.
24848 (vsx_orc<mode>3_64bit): Likewise.
24850 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
24852 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
24854 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
24855 (p8_vmrgow): Likewise.
24856 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
24857 GPRs to be split under VSX.
24858 (p8v_clz<mode>2): Add power8 count leading zero support.
24859 (p8v_popcount<mode>2): Add power8 population count support.
24860 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
24863 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
24866 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
24868 (vec_nand): Likewise.
24869 (vec_vclz): Likewise.
24870 (vec_vclzb): Likewise.
24871 (vec_vclzd): Likewise.
24872 (vec_vclzh): Likewise.
24873 (vec_vclzw): Likewise.
24874 (vec_vgbbd): Likewise.
24875 (vec_vmrgew): Likewise.
24876 (vec_vmrgow): Likewise.
24877 (vec_vpopcnt): Likewise.
24878 (vec_vpopcntb): Likewise.
24879 (vec_vpopcntd): Likewise.
24880 (vec_vpopcnth): Likewise.
24881 (vec_vpopcntw): Likewise.
24883 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
24885 PR rtl-optimization/57468
24886 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
24889 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
24891 PR rtl-optimization/57459
24892 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
24893 type when setting live regs.
24895 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
24897 * config/s390/s390.opt (mlra): New option.
24898 * config/s390/s390.c (s390_decompose_address): Check displacement
24899 for all registers for LRA.
24900 (s390_secondary_reload): Don't used secondary reloads for LRA.
24901 (s390_lra_p): New function.
24902 (TARGET_LRA_P): Define.
24903 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
24904 of attribute cpu_facility to zarch for the last alternative.
24905 (*cmpmem_short): Ditto.
24907 2013-06-06 Eric Botcazou <ebotcazou@adacore.com>
24909 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
24910 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
24911 (arm_expand_prologue): Likewise.
24913 2013-06-06 Teresa Johnson <tejohnson@google.com>
24916 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
24917 as this is now done by redirect_edge_and_branch_force.
24918 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
24919 barriers, and fix interaction with splitting.
24920 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
24921 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
24922 reflect changes made in the routine.
24923 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
24924 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
24925 since this is called in cfglayout mode, and replace partition fixup
24926 with assert as that is now done by force_nonfallthru_and_redirect.
24927 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
24928 already be marked with region crossing note.
24929 (insert_section_boundary_note): Make non-static, gate on flag
24930 has_bb_partition, rewrite to also check for multiple partitions.
24931 (rest_of_handle_reorder_blocks): Remove call to
24932 insert_section_boundary_note, now done later during free_cfg.
24933 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
24934 * bb-reorder.h (insert_section_boundary_note): Declare.
24935 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
24936 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
24937 invoke insert_section_boundary_note.
24938 (try_redirect_by_replacing_jump): Remove unnecessary
24939 check for region crossing note.
24940 (fixup_partition_crossing): New function.
24941 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
24942 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
24943 in non-cfglayout mode.
24944 (force_nonfallthru_and_redirect): Fixup partition boundaries,
24945 remove old code that tried to do this. Emit barrier correctly
24946 when we are in cfglayout mode.
24947 (last_bb_in_partition): New function.
24948 (rtl_split_edge): Correctly fixup partition boundaries.
24949 (commit_one_edge_insertion): Remove old code that tried to
24950 fixup region crossing edge since this is now handled in
24951 split_block, and set up insertion point correctly since
24952 block may now end in a jump.
24953 (verify_hot_cold_block_grouping): Guard against checking when not in
24954 linearized RTL mode.
24955 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
24957 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
24958 rtl_verify_flow_info, so not called in cfglayout mode.
24959 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
24960 (fixup_reorder_chain): Remove old code that attempted to fixup region
24961 crossing note as this is now handled in force_nonfallthru_and_redirect.
24962 (duplicate_insn_chain): Don't duplicate switch section notes.
24963 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
24965 * basic-block.h (emit_barrier_after_bb): Declare.
24967 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24969 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
24970 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
24971 arm_usatsihi): Adjust alternatives for arm_restrict_it.
24973 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24975 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
24977 * config/arm/ldmstm.md: Regenerate.
24979 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24981 * config/arm/sync.md (atomic_loaddi_1):
24982 Disable predication for arm_restrict_it.
24983 (arm_load_exclusive<mode>): Likewise.
24984 (arm_load_exclusivesi): Likewise.
24985 (arm_load_exclusivedi): Likewise.
24986 (arm_load_acquire_exclusive<mode>): Likewise.
24987 (arm_load_acquire_exclusivesi): Likewise.
24988 (arm_load_acquire_exclusivedi): Likewise.
24989 (arm_store_exclusive<mode>): Likewise.
24990 (arm_store_exclusive<mode>): Likewise.
24991 (arm_store_release_exclusivedi): Likewise.
24992 (arm_store_release_exclusive<mode>): Likewise.
24994 2013-06-06 Richard Biener <rguenther@suse.de>
24996 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
24998 (lto_tag_is_tree_code_p): Adjust.
24999 (lto_tag_is_gimple_code_p): Likewise.
25000 (lto_gimple_code_to_tag): Likewise.
25001 (lto_tag_to_gimple_code): Likewise.
25002 (lto_tree_code_to_tag): Likewise.
25003 (lto_tag_to_tree_code): Likewise.
25004 * data-streamer.h (streamer_write_hwi_in_range): Use
25005 uhwi streaming to stream the normalized range.
25006 (streamer_read_hwi_in_range): Likewise.
25008 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25010 * config/arm/arm.md (enabled_for_depr_it): New attribute.
25011 (predicable_short_it): Likewise.
25012 (predicated): Likewise.
25013 (enabled): Handle above.
25014 (define_cond_exec): Set predicated attribute to yes.
25016 2013-06-05 Mike Stump <mikestump@comcast.net>
25018 * gdbinit.in (__FUNCTION__): Add.
25020 2013-06-05 Uros Bizjak <ubizjak@gmail.com>
25022 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
25023 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
25025 2013-06-05 Jan Hubicka <jh@suse.cz>
25027 * varasm.c (mark_decl_referenced): Revert the removal until targets
25030 2013-06-05 David Edelsohn <dje.gcc@gmail.com>
25032 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
25033 instead of mark_decl_referenced.
25035 2013-06-05 Jan Hubicka <jh@suse.cz>
25037 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
25038 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
25039 and symtab_used_from_object_file_p.
25040 (cgraph_make_node_local_1): Clear forced_by_abi.
25041 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
25042 * cgraph.h (symtab_node_base): Add forced_by_abi.
25043 (decide_is_variable_needed): Remove.
25044 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
25045 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
25046 (decide_is_symbol_needed): ... this one; handle symbols in general;
25047 always analyze virtuals; honnor forced_by_abi.
25048 (cgraph_finalize_function): Update.
25049 (varpool_finalize_decl): Update.
25050 (symbol_defined_and_needed): Remove.
25051 (analyze_functions): Update.
25052 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
25053 output_refs, input_overwrite_node): Handle forced_by_abi.
25054 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
25055 (address_taken_from_non_vtable_p): ... this one.
25056 (comdat_can_be_unshared_p_1): New function.
25057 (cgraph_comdat_can_be_unshared_p): Rename to ...
25058 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
25059 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
25060 (function_and_variable_visibility): Clear forced_by_abi as needed.
25061 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
25062 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
25063 * symtab.c (dump_symtab_base): Dump forced_by_abi.
25064 * varpool.c (decide_is_variable_needed): Remove.
25066 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25068 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
25069 (arm_option_override): Override arm_restrict_it where appropriate.
25070 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
25071 * config/arm/arm.opt (mrestrict-it): New command-line option.
25072 * doc/invoke.texi: Document -mrestrict-it.
25074 2013-06-05 David Malcolm <dmalcolm@redhat.com>
25076 * tsan.c (tsan_atomic_table): Make const.
25078 2013-06-05 Richard Biener <rguenther@suse.de>
25080 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
25081 index associated with the tree we are supposed to replace.
25082 * tree-streamer-out.c (pack_ts_base_value_fields): Output
25083 TREE_ASM_WRITTEN as zero for everything but SSA names.
25085 2013-06-05 David Malcolm <dmalcolm@redhat.com>
25087 * tree-ssa-structalias.c (call_stmt_vars): Make static.
25089 2013-06-04 Jan Hubicka <jh@suse.cz>
25091 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
25092 (input_node, input_varpool_node): Handle correctly external same
25094 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
25095 nodes at ltrans stage.
25097 2013-06-04 Jan Hubicka <jh@suse.cz>
25099 * ipa-inline.c (update_caller_keys): Fix availability test.
25100 (update_callee_keys): Likewise.
25101 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
25102 to follow ELF standard.
25104 2013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
25106 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
25107 (mips64r5900el-*-elf*): New configurations.
25108 * config/mips/mips-cpus.def (r5900): New processor.
25109 * config/mips/mips-tables.opt: Regenerate.
25110 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
25111 (mips_issue_rate): Handle PROCESSOR_R5900.
25112 (mips_reorg_process_insns): Force reorder mode for the R5900.
25113 * config/mips/mips.h (TARGET_MIPS5900): Define.
25114 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
25116 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
25118 * config/mips/mips.md (processor): Add r5900.
25119 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
25121 2013-06-04 Ian Bolton <ian.bolton@arm.com>
25123 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
25124 into function to generate MOVI instruction.
25125 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
25126 (aarch64_preferred_simd_mode): Turn into wrapper.
25127 (aarch64_output_scalar_simd_mov_immediate): New function.
25128 * config/aarch64/aarch64-protos.h: Add prototype for above.
25130 2013-06-04 Ian Bolton <ian.bolton@arm.com>
25132 * config/aarch64/aarch64.c (simd_immediate_info): Remove
25133 element_char member.
25134 (sizetochar): Return signed char.
25135 (aarch64_simd_valid_immediate): Remove elchar and other
25136 unnecessary variables.
25137 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
25138 Calculate element_char as required.
25139 * config/aarch64/aarch64-protos.h: Update and move prototype
25140 for aarch64_output_simd_mov_immediate.
25141 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
25144 2013-06-04 Ian Bolton <ian.bolton@arm.com>
25146 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
25147 information completed by aarch64_simd_valid_immediate.
25148 (aarch64_legitimate_constant_p): Update arguments.
25149 (aarch64_simd_valid_immediate): Work with struct rather than many
25151 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
25152 (aarch64_simd_make_constant): Update arguments.
25153 (aarch64_output_simd_mov_immediate): Work with struct rather than
25154 many pointers. Output immediate directly rather than as operand.
25155 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
25157 * config/aarch64/constraints.md (Dn): Update arguments.
25159 2013-06-04 Ian Bolton <ian.bolton@arm.com>
25161 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
25163 (aarch64_simd_immediate_valid_for_move): Remove.
25164 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
25165 (aarch64_simd_make_constant): Update call.
25166 (aarch64_output_simd_mov_immediate): Update call.
25167 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
25169 * config/aarch64/constraints.md (Dn): Update call.
25171 2013-06-04 Ian Bolton <ian.bolton@arm.com>
25173 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
25174 return type to bool for prototype.
25175 (aarch64_legitimate_constant_p): Check for true instead of not -1.
25176 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
25177 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
25179 2013-06-04 Catherine Moore <clm@codesourcery.com>
25181 * config/mips/mips.opt (meva): New.
25182 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
25183 (ASM_SPEC): Handle -meva.
25184 * doc/invoke.texi (meva): Document.
25186 2013-06-04 Alan Modra <amodra@gmail.com>
25188 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
25191 2013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25193 * rtl.def: Add extra fourth optional field to define_cond_exec.
25194 * gensupport.c (process_one_cond_exec): Process attributes from
25196 * doc/md.texi: Document fourth field in define_cond_exec.
25198 2013-06-04 Eric Botcazou <ebotcazou@adacore.com>
25200 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
25201 out the processing order as in store_bit_field_1.
25203 2013-06-04 Jan Hubicka <jh@suse.cz>
25205 PR middle-end/57500
25206 * cgraphunit.c (cgraph_process_same_body_aliases): Create
25207 non-VAR_DECL node if it does not exist yet.
25209 2013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
25211 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
25212 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
25213 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
25214 target_cpu_default setting.
25216 2013-06-03 Teresa Johnson <tejohnson@google.com>
25218 * dumpfile.c (opt_info_switch_p): Change -fopt-info
25219 default to -fopt-info=optimized instead of all.
25220 * doc/invoke.texi: Ditto.
25221 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
25222 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
25223 (execute_vect_slp): Emit BB vectorization success under
25224 MSG_OPTIMIZED_LOCATIONS.
25225 * tree-vect-slp.c (vect_slp_transform_bb): Change
25226 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
25227 * tree-vect-loop.c (vect_transform_loop): Ditto.
25229 2013-06-03 Jason Merrill <jason@redhat.com>
25232 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
25233 Use TARGET_EXPR for C++.
25235 2013-06-03 Jakub Jelinek <jakub@redhat.com>
25237 PR rtl-optimization/57268
25238 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
25239 if DEBUG_INSN_P (insn).
25242 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
25244 PR rtl-optimization/57268
25245 * sched-deps.c (sched_analyze_2): Flush dependence lists if
25246 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
25248 2013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
25250 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
25251 (ix86_avoid_lea_for_addr): Likewise.
25252 (exact_dependency_1): Likewise.
25253 (ix86_adjust_cost): Likewise.
25254 (swap_top_of_ready_list): Fix formatting and !reload_completed check
25256 (do_reorder_for_imul): Fix typo, formatting and
25257 !reload_completed check removed.
25258 (ix86_sched_reorder): Fix typo and formatting.
25259 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
25262 2013-06-03 Sofiane Naci <sofiane.naci@arm.com>
25264 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
25266 2013-06-03 Eric Botcazou <ebotcazou@adacore.com>
25268 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
25269 <STRING_CST>: Likewise.
25270 <VECTOR_CST>: Likewise.
25272 2013-06-01 Janus Weil <janus@gcc.gnu.org>
25273 Mikael Morin <mikael@gcc.gnu.org>
25275 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
25276 * config.in: Regenerated.
25277 * configure: Regenerated.
25279 2013-06-01 Jan Hubicka <jh@suse.cz>
25281 PR middle-end/57366
25282 * cgraphunit.c (compile): When weakref is not supported,
25283 set up transparent aliases before final output pass.
25284 * varasm.c (assemble_alias): Do not try to do it here.
25286 2013-06-01 Jan Hubicka <jh@suse.cz>
25288 PR middle-end/57467
25289 * passes.c (for_per_function): Skip unanalyzed functions.
25291 2013-06-01 Jan Hubicka <jh@suse.cz>
25293 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
25294 (lto_symtab_merge_symbols_1): ... this one.
25295 (lto_symtab_merge_cgraph_nodes): Rename to ...
25296 (lto_symtab_merge_symbols): ... this one; simplify.
25297 * cgraph.c (same_body_aliases_done): Rename to ...
25298 (cpp_implicit_aliases_done): ... this one.
25299 (cgraph_create_function_alias): Update.
25300 (cgraph_same_body_alias): Update.
25301 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
25302 (verify_edge_corresponds_to_fndecl): Simplify.
25303 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
25304 (cgraph_node): Remove same_body_alias.
25305 (varpool_node): Remove alias_of and extra_name_alias.
25306 (same_body_aliases_done): Rename to ..
25307 (cpp_implicit_aliases_done): ... this one.
25308 (symtab_alias_ultimate_target): Add default parameter.
25309 (symtab_resolve_alias): New function.
25310 (fixup_same_cpp_alias_visibility): Declare.
25311 (cgraph_function_node): Add default parameter.
25312 (cgraph_node_asm_name): Likewise.
25313 (cgraph_function_or_thunk_node): Add default parameter; do
25314 not ICE when it is NULL.
25315 (varpool_variable_node): Likewise.
25316 * tree-emutls.c (create_emultls_var): Update.
25317 (ipa_lower_emutls): Update.
25318 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
25319 (cgraph_reset_node): Reset alias info.
25320 (cgraph_finalize_function): Update.
25321 (fixup_same_cpp_alias_visibility): Move to symtab.c.
25322 (analyze_function): Simplify.
25323 (cgraph_process_same_body_aliases): Simplify.
25324 (analyze_functions): Fixup same body aliases.
25325 (handle_alias_pairs): Simplify.
25326 (assemble_thunk): Update.
25327 (assemble_thunks_and_aliases): Update.
25328 (output_weakrefs): Rewrite.
25329 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
25330 (lto_output_varpool_node): Likewise.
25331 (compute_ltrans_boundary): Remve assert.
25332 (get_alias_symbol): New functoin.
25333 (input_node): Rewrite alias handling.
25334 (input_varpool_node): Likewise.
25335 * ipa-pure-const.c (propagate_pure_const): Fix formating.
25336 * ipa.c (process_references): Handle weakrefs correctly.
25337 (symtab_remove_unreachable_nodes): Likewise.
25338 * trans-mem.c (get_cg_data): Update.
25339 (ipa_tm_create_version_alias): Update.
25340 (ipa_tm_execute): Update.
25341 * symtab.c (dump_symtab_base): Dump aliases.
25342 (verify_symtab_base): Verify aliases.
25343 (symtab_node_availability): New function.
25344 (symtab_alias_ultimate_target): Simplify.
25345 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
25346 handle all the fixup cases.
25347 (symtab_resolve_alias): New function.
25348 * passes.c (ipa_write_summaries): Handle weakrefs.
25349 * varpool.c (varpool_analyze_node): Simplify.
25350 (assemble_aliases): Update.
25351 (varpool_create_variable_alias): Simplify.
25352 (varpool_extra_name_alias): Simplify.
25353 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
25354 (lto_symtab_merge_symbols): ... this one.
25356 2013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
25359 PR rtl-optimization/57268
25360 * sched-deps.c (sched_analyze_2): Flush dependence lists if
25361 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
25363 2013-06-01 Tobias Burnus <burnus@net-b.de>
25365 Partially reverted:
25366 2013-05-31 Tobias Burnus <burnus@net-b.de>
25368 PR middle-end/57073
25369 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
25372 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
25374 PR rtl-optimization/57268
25375 * sched-deps.c (sched_analyze_2): Flush dependence lists if
25376 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
25378 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
25380 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
25381 unordered comparison operators when -fno-trapping-math is in effect
25383 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
25384 and implement unordered comparison operators properly on the e500.
25386 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
25388 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
25389 for constant scalar integers.
25390 (simplify_relational_operation_1): Likewise.
25392 2013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
25394 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
25395 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
25398 2013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
25399 Igor Zamyatin <igor.zamyatin@intel.com>
25401 Silvermont (SLM) architecture performance tuning.
25402 * config/i386/i386.h (enum ix86_tune_indices): Add
25403 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
25404 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
25406 * config/i386/i386.c (initial_ix86_tune_features)
25407 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
25408 (ix86_lea_outperforms): Handle Silvermont tuning.
25409 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
25411 (ix86_use_lea_for_mov): Likewise.
25412 (ix86_avoid_lea_for_addr): Likewise.
25413 (ix86_lea_for_add_ok): Likewise.
25414 (exact_dependency_1): New function.
25415 (exact_store_load_dependency): Likewise.
25416 (ix86_adjust_cost): Handle Silvermont tuning.
25417 (do_reoder_for_imul): Likewise.
25418 (swap_top_of_ready_list): New function.
25419 (ix86_sched_reorder): Changed to handle Silvermont tuning.
25421 * config/i386/i386.md (peepholes that split memory operand in fp
25424 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
25426 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
25427 Remove un-necessary braces.
25429 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
25431 * config/aarch64/aarch64.c (aarch64_classify_symbol):
25432 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
25434 2013-05-31 Tobias Burnus <burnus@net-b.de>
25436 PR middle-end/57073
25437 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
25439 2013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25442 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
25443 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
25444 * config/arm/neon.md (iordi3_neon): Remove.
25445 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
25446 * config/arm/predicates.md (imm_for_neon_logic_operand):
25447 Move to earlier in the file.
25448 (neon_logic_op2): Likewise.
25449 (arm_iordi_operand_neon): New predicate.
25451 2013-05-31 Richard Biener <rguenther@suse.de>
25453 PR tree-optimization/57478
25454 PR tree-optimization/57453
25455 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
25458 2013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
25460 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
25461 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
25463 2013-05-30 Tobias Burnus <burnus@net-b.de>
25464 Thomas Koenig <tkoenig@gcc.gnu.org>
25466 PR middle-end/57073
25467 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
25468 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
25470 2013-05-30 Steven Bosscher <steven@gcc.gnu.org>
25472 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
25474 2013-05-30 Vladimir Makarov <vmakarov@redhat.com>
25476 * target.def (register_usage_leveling_p): New hook.
25477 * targhooks.c (default_register_usage_leveling_p): New.
25478 * targhooks.h (default_register_usage_leveling_p): New prototype.
25479 * lra-assigns.c (register_usage_leveling_p): Use the hook.
25480 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
25481 * doc/tm.texi: Update.
25482 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
25484 2013-05-30 Ian Bolton <ian.bolton@arm.com>
25486 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
25487 (*insv_reg<mode>): New define_insn.
25489 2013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
25491 PR rtl-optimization/57439
25492 * postreload.c (move2add_valid_value_p): Check that we have
25493 a zero subreg_regno_offset when accessing the register in
25494 the requested mode.
25496 2013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
25497 Igor Zamyatin <igor.zamyatin@intel.com>
25499 Silvermont (SLM) architecture pipeline model, tuning and
25501 * config.gcc: Add slm config options and target.
25503 * config/i386/slm.md: New.
25505 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
25507 * config/i386/i386-c.c (ix86_target_macros_internal): New case
25509 (ix86_target_macros_internal): Likewise.
25511 * config/i386/i386.c (slm_cost): New cost.
25512 (m_SLM): New macro flag.
25513 (initial_ix86_tune_features): Set m_SLM.
25514 (x86_accumulate_outgoing_args): Likewise.
25515 (x86_arch_always_fancy_math_387): Likewise.
25516 (processor_target_table): Add slm cost.
25517 (cpu_names): Add slm cpu name.
25518 (x86_option_override_internal): Set SLM ISA.
25519 (ix86_issue_rate): New case PROCESSOR_SLM.
25520 (ia32_multipass_dfa_lookahead): Likewise.
25521 (fold_builtin_cpu): Add slm.
25523 * config/i386/i386.h (TARGET_SLM): New target macro.
25524 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
25525 (processor_type): Add PROCESSOR_SLM.
25527 * config/i386/i386.md (cpu): Add new value "slm".
25528 (slm.md): Include slm.md.
25530 2013-05-30 Bernd Schmidt <bernds@codesourcery.com>
25531 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25533 * config/arm/arm-protos.h: Add and update function protos.
25534 * config/arm/arm.c (use_simple_return_p): New added.
25535 (thumb2_expand_return): Check simple_return flag.
25536 * config/arm/arm.md: Add simple_return and conditional simple_return.
25537 * config/arm/iterators.md: Add iterator for return and simple_return.
25539 2013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25541 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
25542 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
25543 (arm_emit_vfp_multi_reg_pop): Likewise.
25544 (thumb2_emit_ldrd_pop): Likewise.
25545 (arm_expand_epilogue): Add misc REG_CFA notes.
25546 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
25548 2013-05-29 Lawrence Crowl <crowl@google.com>
25550 * config/arm/t-arm: Update for below.
25552 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
25553 Change type to hash_table. Update dependent calls and types.
25555 * config/i386/t-cygming: Update for below.
25557 * config/i386/t-interix: Update for below.
25559 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
25560 Change type to hash_table. Update dependent calls and types.
25561 (i386_find_on_wrapper_list::wrappers): Likewise.
25563 * config/ia64/t-ia64: Update for below.
25565 * config/ia64/ia64.c (bundle_state_table):
25566 Change type to hash_table. Update dependent calls and types.
25568 * config/mips/mips.c (mips_reorg_process_insns::htab):
25569 Change type to hash_table. Update dependent calls and types.
25571 * config/sol2.c (solaris_comdat_htab):
25572 Change type to hash_table. Update dependent calls and types.
25574 * config/t-sol2: Update for above.
25576 2013-05-29 Teresa Johnson <tejohnson@google.com>
25578 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
25579 functions are not yet marked as defined.
25581 2013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
25582 Pat Haugen <pthaugen@us.ibm.com>
25583 Peter Bergner <bergner@vnet.ibm.com>
25585 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
25589 (vrotl<mode>3): Likewise.
25590 (vashl<mode>3): Likewise.
25591 (vlshr<mode>3): Likewise.
25592 (vashr<mode>3): Likewise.
25594 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
25595 support for power8 V2DI builtins.
25597 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
25598 power8 V2DI builtins.
25599 (vupkhsw): Likewise.
25600 (vupklsw): Likewise.
25601 (vaddudm): Likewise.
25602 (vminsd): Likewise.
25603 (vmaxsd): Likewise.
25604 (vminud): Likewise.
25605 (vmaxud): Likewise.
25606 (vpkudum): Likewise.
25607 (vpksdss): Likewise.
25608 (vpkudus): Likewise.
25609 (vpksdus): Likewise.
25614 (vsubudm): Likewise.
25615 (vcmpequd): Likewise.
25616 (vcmpgtsd): Likewise.
25617 (vcmpgtud): Likewise.
25618 (vcmpequd_p): Likewise.
25619 (vcmpgtsd_p): Likewise.
25620 (vcmpgtud_p): Likewise.
25621 (vupkhsw): Likewise.
25622 (vupklsw): Likewise.
25623 (vaddudm): Likewise.
25624 (vmaxsd): Likewise.
25625 (vmaxud): Likewise.
25626 (vminsd): Likewise.
25627 (vminud): Likewise.
25628 (vpksdss): Likewise.
25629 (vpksdus): Likewise.
25630 (vpkudum): Likewise.
25631 (vpkudus): Likewise.
25636 (vsubudm): Likewise.
25638 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
25639 support for power8 V2DI instructions.
25641 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
25642 power8 V2DI instructions. Combine pack and unpack insns to use an
25643 iterator for each mode. Check whether a particular mode supports
25644 Altivec instructions instead of just checking TARGET_ALTIVEC.
25645 (UNSPEC_VPKUWUM): Likewise.
25646 (UNSPEC_VPKSHSS): Likewise.
25647 (UNSPEC_VPKSWSS): Likewise.
25648 (UNSPEC_VPKUHUS): Likewise.
25649 (UNSPEC_VPKSHUS): Likewise.
25650 (UNSPEC_VPKUWUS): Likewise.
25651 (UNSPEC_VPKSWUS): Likewise.
25652 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
25653 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
25654 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
25655 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
25656 (UNSPEC_VUPKHSB): Likewise.
25657 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
25658 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
25659 (UNSPEC_VUPKHSH): Likewise.
25660 (UNSPEC_VUPKLSB): Likewise.
25661 (UNSPEC_VUPKLSH): Likewise.
25663 (VI_char): Likewise.
25664 (VI_scalar): Likewise.
25665 (VI_unit): Likewise.
25667 (VP_small): Likewise.
25668 (VP_small_lc): Likewise.
25669 (VU_char): Likewise.
25670 (add<mode>3): Likewise.
25671 (altivec_vaddcuw): Likewise.
25672 (altivec_vaddu<VI_char>s): Likewise.
25673 (altivec_vadds<VI_char>s): Likewise.
25674 (sub<mode>3): Likewise.
25675 (altivec_vsubcuw): Likewise.
25676 (altivec_vsubu<VI_char>s): Likewise.
25677 (altivec_vsubs<VI_char>s): Likewise.
25678 (altivec_vavgs<VI_char>): Likewise.
25679 (altivec_vcmpbfp): Likewise.
25680 (altivec_eq<mode>): Likewise.
25681 (altivec_gt<mode>): Likewise.
25682 (altivec_gtu<mode>): Likewise.
25683 (umax<mode>3): Likewise.
25684 (smax<mode>3): Likewise.
25685 (umin<mode>3): Likewise.
25686 (smin<mode>3): Likewise.
25687 (altivec_vpkuhum): Likewise.
25688 (altivec_vpkuwum): Likewise.
25689 (altivec_vpkshss): Likewise.
25690 (altivec_vpkswss): Likewise.
25691 (altivec_vpkuhus): Likewise.
25692 (altivec_vpkshus): Likewise.
25693 (altivec_vpkuwus): Likewise.
25694 (altivec_vpkswus): Likewise.
25695 (altivec_vpks<VI_char>ss): Likewise.
25696 (altivec_vpks<VI_char>us): Likewise.
25697 (altivec_vpku<VI_char>us): Likewise.
25698 (altivec_vpku<VI_char>um): Likewise.
25699 (altivec_vrl<VI_char>): Likewise.
25700 (altivec_vsl<VI_char>): Likewise.
25701 (altivec_vsr<VI_char>): Likewise.
25702 (altivec_vsra<VI_char>): Likewise.
25703 (altivec_vsldoi_<mode>): Likewise.
25704 (altivec_vupkhsb): Likewise.
25705 (altivec_vupkhs<VU_char>): Likewise.
25706 (altivec_vupkls<VU_char>): Likewise.
25707 (altivec_vupkhsh): Likewise.
25708 (altivec_vupklsb): Likewise.
25709 (altivec_vupklsh): Likewise.
25710 (altivec_vcmpequ<VI_char>_p): Likewise.
25711 (altivec_vcmpgts<VI_char>_p): Likewise.
25712 (altivec_vcmpgtu<VI_char>_p): Likewise.
25713 (abs<mode>2): Likewise.
25714 (vec_unpacks_hi_v16qi): Likewise.
25715 (vec_unpacks_hi_v8hi): Likewise.
25716 (vec_unpacks_lo_v16qi): Likewise.
25717 (vec_unpacks_hi_<VP_small_lc>): Likewise.
25718 (vec_unpacks_lo_v8hi): Likewise.
25719 (vec_unpacks_lo_<VP_small_lc>): Likewise.
25720 (vec_pack_trunc_v8h): Likewise.
25721 (vec_pack_trunc_v4si): Likewise.
25722 (vec_pack_trunc_<mode>): Likewise.
25724 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
25726 (vec_vmaxsd): Likewise.
25727 (vec_vmaxud): Likewise.
25728 (vec_vminsd): Likewise.
25729 (vec_vminud): Likewise.
25730 (vec_vpksdss): Likewise.
25731 (vec_vpksdus): Likewise.
25732 (vec_vpkudum): Likewise.
25733 (vec_vpkudus): Likewise.
25734 (vec_vrld): Likewise.
25735 (vec_vsld): Likewise.
25736 (vec_vsrad): Likewise.
25737 (vec_vsrd): Likewise.
25738 (vec_vsubudm): Likewise.
25739 (vec_vupkhsw): Likewise.
25740 (vec_vupklsw): Likewise.
25742 2013-05-29 Jan Hubicka <jh@suse.cz>
25744 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
25745 flags; reorder rest of fields in more consistent way.
25746 (varpool_node): Remove analyzed, finalized and alias.
25747 (cgraph_ndoe): Likewise.
25748 (symtab_alias_ultimate_target): New function.
25749 (cgraph_function_node): Move offline.
25750 (cgraph_reset_node): Declare.
25751 (cgraph_comdat_can_be_unshared_p): Remove.
25752 (varpool_remove_initializer): Declare.
25753 (varpool_first_defined_variable, varpool_next_defined_variable
25754 cgraph_first_defined_function, cgraph_next_defined_function): Update.
25755 (cgraph_function_with_gimple_body_p): Update.
25756 (varpool_all_refs_explicit_p): Update.
25757 (symtab_alias_target): New function.
25758 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
25759 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
25760 (cgraph_function_or_thunk_node): Simplify using
25761 symtab_alias_ultimate_target.
25762 (varpool_variable_node): Likewise.
25763 * cgraph.c (cgraph_create_function_alias): Update.
25764 (cgraph_add_thunk): Update.
25765 (cgraph_remove_node): Update.
25766 (dump_cgraph_node): Do not dump removed flags.
25767 (cgraph_function_body_availability): Update.
25768 (cgraph_propagate_frequency): Update.
25769 (verify_cgraph_node): Check sanity of local flag.
25770 (cgraph_function_node): Move here from cgraph.h; revamp for
25771 cgraph_function_or_thunk_node.
25772 * lto-symtab.c (lto_varpool_replace_node): Update.
25773 (lto_symtab_resolve_can_prevail_p): Update.
25774 (lto_symtab_merge_cgraph_nodes): Update.
25775 * ipa-cp.c (determine_versionability, initialize_node_lattices,
25776 propagate_constants_accross_call, devirtualization_time_bonus,
25777 ipcp_propagate_stage): Update.
25778 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
25779 * ipa-inline-transform.c (clone_inlined_nodes,
25780 preserve_function_body_p): Update.
25781 * ipa-reference.c (propagate): Update.
25782 (write_node_summary_p): Update.
25783 * toplev.c (wrapup_global_declaration_2): Update.
25784 * cgraphunit.c (cgraph_analyze_function): Rename to ...
25785 (analyze_function) ... this one.
25786 (cgraph_process_new_functions): Update.
25787 (cgraph_reset_node): Export.
25788 (cgraph_finalize_function): Update.
25789 (cgraph_add_new_function): Update.
25790 (process_function_and_variable_attributes): Update.
25791 (varpool_finalize_decl): Update.
25792 (symbol_finalized): Remove.
25793 (symbol_finalized_and_needed): Rename to ...
25794 (symbol_defined_and_needed): ... update.
25795 (cgraph_analyze_functions): Update.
25796 (handle_alias_pairs): Update.
25797 (mark_functions_to_output): Update.
25798 (assemble_thunk): Update.
25799 (output_in_order): Update.
25800 (output_weakrefs): Update.
25801 (finalize_compilation_unit): Update.
25802 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
25803 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
25804 input_node, input_varpool_node): Update.
25805 * dbxout.c (dbxout_expand_expr): Update.
25806 * cgraphclones.c (cgraph_clone_node): Update.
25807 (cgraph_copy_node_for_versioning): Update.
25808 (cgraph_materialize_clone): Update.
25809 (cgraph_materialize_all_clones): Update.
25810 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
25811 propagate_pure_const, propagate_nothrow): Update.
25812 * lto-streamer-out.c (lto_output, write_symbol): Update.
25813 * ipa-utils.c (ipa_reverse_postorder): Update.
25814 * ipa-inline.c (can_inline_edge_p): Update.
25815 (update_caller_keys, ipa_inline): Update.
25816 * dwarf2out.c (reference_to_unused,
25817 premark_types_used_by_global_vars_helper): Update.
25818 * tree-eh.c (tree_could_trap_p): Update.
25819 * ipa-split.c (consider_split, execute_split_functions): Update.
25820 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
25821 has_addr_references_p): Update; move ahead in file for better
25823 (process_references): Simplify.
25824 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
25825 bodies are removed.
25826 (cgraph_comdat_can_be_unshared_p): Make static.
25827 (cgraph_externally_visible_p): Update.
25828 (varpool_externally_visible_p): Update.
25829 (function_and_variable_visibility): Update.
25830 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
25831 ipa_tm_mark_force_output_node): Update.
25832 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
25833 estimate_edge_devirt_benefit, inline_generate_summary,
25834 inline_write_summary): Update.
25835 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
25836 * ipa-prop.c (ipa_compute_jump_functions): Update.
25837 (ipa_print_node_params, ipa_prop_read_section,
25838 ipa_update_after_lto_read, read_replacements_section): Update.
25839 * varasm.c (mark_decl_referenced): Update.
25840 (assemble_alias, dump_tm_clone_pairs): Update.
25841 * tree-inline.c (copy_bb): Update.
25842 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
25844 * symtab.c (dump_symtab_base): Print new flags.
25845 (verify_symtab_base): Verify new flags.
25846 (symtab_alias_ultimate_target): New function.
25847 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
25848 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
25850 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
25852 * i386.c (ix86_get_function_versions_dispatcher,
25853 ix86_generate_version_dispatcher_body): Update.
25854 (fold_builtin_cpu): Use varpool_add_new_variable.
25855 * varpool.c (varpool_remove_initializer): Break out from ...
25856 (varpool_remove_node): ... this one.
25857 (dump_varpool_node, varpool_node_for_asm,
25858 cgraph_variable_initializer_availability, varpool_analyze_node,
25859 varpool_assemble_decl, varpool_remove_unreferenced_decls,
25860 varpool_finalize_named_section_flags, varpool_create_variable_alias):
25863 2013-05-29 Jan Hubicka <jh@suse.cz>
25865 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
25867 2013-05-29 Easwaran Raman <eraman@google.com>
25869 PR tree-optimization/57442
25870 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
25871 when control exits the main loop.
25873 2013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
25875 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
25877 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
25878 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
25879 * rx/t-rx: Add rx100 under multi library matches option for nofpu
25882 2013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25884 PR tree-optimization/57441
25885 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
25886 Don't limit size of incr_vec to number of candidates.
25888 2013-05-29 Steve Ellcey <sellcey@imgtec.com>
25890 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
25891 and mips16 directories.
25892 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
25893 (MULTILIB_DIRNAMES): Ditto.
25894 (MULTILIB_EXCEPTIONS): Add new exceptions.
25895 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
25896 (MULTILIB_DIRNAMES): Ditto.
25897 (MULTILIB_EXCEPTIONS): Add new exceptions.
25899 2012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
25900 Marcus Shawcroft <marcus.shawcroft@arm.com>
25902 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
25903 SYMBOL_TINY_ABSOLUTE.
25904 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
25905 SYMBOL_TINY_ABSOLUTE.
25906 (aarch64_expand_mov_immediate): Likewise.
25907 (aarch64_classify_symbol): Likewise.
25908 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
25909 Permit SYMBOL_TINY_ABSOLUTE.
25910 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
25912 2013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
25913 Marcus Shawcroft <marcus.shawcroft@arm.com>
25915 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
25916 Refactor if/switch. Replace gcc_assert with if.
25918 2013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
25920 * config/i386/i386.c (initial_ix86_tune_features): Enable
25921 FP Reassociation for AMD bdver1 and bdver2.
25923 2013-05-29 Martin Jambor <mjambor@suse.cz>
25925 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
25926 and IMAGPART_EXPR do not occur within other handled_components.
25928 2013-05-29 Richard Biener <rguenther@suse.de>
25930 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
25931 access on whether the use is in the BB we currently try to
25933 (vect_bb_vectorization_profitable_p): Pass the BB we currently
25934 vectorize to vect_bb_slp_scalar_cost.
25936 2013-05-29 Richard Biener <rguenther@suse.de>
25938 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
25939 computing scalar cost offsetted by stmts that are kept live
25941 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
25942 for computation of scalar cost.
25944 2013-05-28 Steve Ellcey <sellcey@mips.com>
25946 * config/mips/mips-cpus.def (mips32r2): Change processor type.
25948 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
25950 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
25951 array notation built-in reduction functions.
25952 * doc/passes.texi (Passes): Added documentation about changes done
25954 * doc/invoke.texi (C Dialect Options): Added documentation about
25955 the -fcilkplus flag.
25956 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
25957 (BUILTINS_DEF): Depend on cilkplus.def.
25958 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
25959 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
25960 * cilkplus.def: New file.
25962 2013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
25964 PR rtl-optimization/57439
25965 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
25967 2013-05-28 Easwaran Raman <eraman@google.com>
25969 PR tree-optimization/57337
25970 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
25971 (find_insert_point): Correctly identify the insertion point
25972 when two statements with the same UID is compared.
25974 2013-05-28 Richard Biener <rguenther@suse.de>
25976 PR tree-optimization/56787
25977 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
25978 from the list of data references.
25979 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
25981 (vect_analyze_loop_operations): Likewise.
25982 (vect_transform_loop): Remove clobbers.
25984 2013-05-28 Martin Jambor <mjambor@suse.cz>
25986 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
25987 and REALPART_EXPRs have scalar type.
25989 2013-05-28 Richard Biener <rguenther@suse.de>
25991 PR tree-optimization/57411
25992 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
25994 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
25995 virtual operand propagation.
25997 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
25999 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
26000 destination register for bmasksi_vis.
26001 (vector_init_bshuffle): Likewise.
26002 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
26004 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
26006 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
26007 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
26008 mode if the instruction isn't available in the original mode.
26009 * config/sparc/sparc.opt (mfix-ut699): New option.
26010 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
26011 (divdf3): Turn into expander.
26012 (divdf3_nofix): New insn.
26013 (divdf3_fix): Likewise.
26014 (divsf3): Disable if -mfix-ut699.
26015 (sqrtdf2): Turn into expander.
26016 (sqrtdf2_nofix): New insn.
26017 (sqrtdf2_fix): Likewise.
26018 (sqrtsf2): Disable if -mfix-ut699.
26020 2013-05-27 Richard Biener <rguenther@suse.de>
26022 PR middle-end/57412
26023 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
26024 block for the new loop.
26026 2013-05-27 Richard Biener <rguenther@suse.de>
26028 PR tree-optimization/57343
26029 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
26030 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
26031 (number_of_iterations_cond): Do not build the folded tree.
26033 2013-05-27 Richard Biener <rguenther@suse.de>
26036 PR middle-end/57381
26037 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
26038 OEP_CONSTANT_ADDRESS_OF retained.
26040 PR tree-optimization/57417
26041 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
26042 for unchanged base.
26043 (set_ssa_val_to): Compare addresses using
26044 get_addr_base_and_unit_offset.
26046 2013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
26048 PR rtl-optimization/56833
26049 * postreload.c (move2add_record_mode): New function.
26050 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
26051 (move2add_use_add2_insn): Use move2add_record_sym_value.
26052 (move2add_use_add3_insn): Likewise.
26053 (reload_cse_move2add): Use move2add_valid_value_p and
26054 move2add_record_mode. Invalidate call-clobbered and REG_INC
26055 affected regs by setting reg_mode to VOIDmode.
26056 (move2add_note_store): Don't pretend the inside of a SUBREG is
26057 the actual destination. Invalidate single/leading registers by
26058 setting reg_mode to VOIDmode.
26059 Use move2add_record_sym_value, move2add_valid_value_p and
26060 move2add_record_mode.
26062 2013-05-27 Richard Biener <rguenther@suse.de>
26064 PR tree-optimization/57396
26065 * tree-affine.c (double_int_constant_multiple_p): Properly
26066 return false for val == 0 and div != 0.
26068 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
26070 * config/mips/mips.h: Use #elif in preprocessor conditions.
26072 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
26075 * config/mips/constraints.md (kl): New constraint.
26076 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
26077 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
26078 constraint for operand 0. Split after CSE for MIPS16. Emit a move
26079 from LO for MIPS16.
26080 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
26082 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
26085 * config/mips/mips.c (mips_can_inline_p): New function.
26086 (TARGET_CAN_INLINE_P): Define.
26088 2013-05-25 Steven Bosscher <steven@gcc.gnu.org>
26090 * sched-int.h (ds_t, dw_t): Make unsigned int.
26091 Fix documentation that describes how all the ds_t bits are used.
26092 Reserve the last bit for delayed-branch scheduling.
26093 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
26094 (BITS_PER_DEP_WEAK): Fix definition and documentation.
26095 (gen_dep_weak_1): Remove prototype.
26096 * sched-deps.c (get_dep_weak_1): Make static.
26097 * target.def (speculate_insn, needs_block_p, gen_spec_check,
26098 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
26099 * doc/tm.texi: Regenerate.
26100 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
26102 2013-05-24 Steven Bosscher <steven@gcc.gnu.org>
26105 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
26107 2013-05-24 Nathan Sidwell <nathan@codesourcery.com>
26108 Sandra Loosemore <sandra@codesourcery.com>
26110 * config.gcc (powerpc-*): Allow native for with-cpu.
26112 2013-05-24 Jeff Law <law@redhat.com>
26114 PR tree-optimization/57124
26115 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
26116 conversion feeding a condition if the range has an overflow
26117 if -fstrict-overflow. Add warnings for when we do make the
26120 2013-05-24 Dehao Chen <dehao@google.com>
26122 * tree-cfg.c (locus_discrim_map): Fix the typo.
26123 (locus_discrim_hasher): Likewise.
26124 (locus_discrim_hasher::hash): Likewise.
26125 (locus_discrim_hasher::equal): Likewise.
26127 2013-05-24 Martin Jambor <mjambor@suse.cz>
26129 PR tree-optimization/57294
26130 * cgraph.h (ipa_record_stmt_references): Declare.
26131 * cgraphbuild.c (ipa_record_stmt_references): New function.
26132 (build_cgraph_edges): Use ipa_record_stmt_references.
26133 (rebuild_cgraph_edges): Likewise.
26134 (cgraph_rebuild_references): Likewise.
26135 * ipa-prop.c (ipa_modify_call_arguments): Discard references
26136 associated with the old statement and build references from the
26137 newly built statements.
26138 * ipa-ref.c (ipa_remove_stmt_references): New function.
26139 * ipa-ref.h (ipa_remove_stmt_references): Declare.
26141 2013-05-24 Vladimir Makarov <vmakarov@redhat.com>
26143 * lra-constraints.c (emit_spill_move): Use smaller mode for
26145 (check_and_process_move): Consider mem-reg moves for secondary
26147 (curr_insn_transform): Don't lose insns emitted before for
26148 secondary memory moves.
26149 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
26150 reg set up in the current insn.
26152 2013-05-24 Dehao Chen <dehao@google.com>
26154 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
26156 (locus_descrim_hasher::equal): Likewise.
26157 (build_gimple_cfg): New discriminator assignment algorithm.
26158 (make_edges): Likewise.
26159 (next_discriminator_for_locus): Likewise.
26160 (same_line_p): Likewise.
26161 (assign_discriminators): Likewise.
26162 (make_cond_expr_edges): Likewise.
26163 (make_gimple_switch_edges): Likewise.
26164 (make_goto_expr_edges): Likewise.
26165 (make_gimple_asm_edges): Likewise.
26167 2013-05-24 Ian Bolton <ian.bolton@arm.com>
26169 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
26170 X format specifier to only display bottom 16 bits.
26171 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
26172 immediate to match for operand 2, since it will be masked.
26174 2013-05-24 Richard Biener <rguenther@suse.de>
26176 PR tree-optimization/57287
26177 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
26178 all SSA names that occur in abnormal PHIs.
26180 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
26183 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
26184 that index is not negative.
26186 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
26188 PR rtl-optimization/55177
26189 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
26190 (simplify_byte_swapping_operation): New.
26191 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
26192 (simplify_relational_operation_1): Deal with BSWAP.
26194 2013-05-23 Richard Henderson <rth@redhat.com>
26197 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
26198 (ix86_reorg): Call it.
26200 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
26203 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
26204 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
26205 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
26207 2013-05-23 Christian Bruel <christian.bruel@st.com>
26210 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
26212 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
26213 Marcus Shawcroft <marcus.shawcroft@arm.com>
26215 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
26216 * config/aarch64/constraints.md (Usa): Remove.
26217 * doc/md.texi (AArch64 Usa): Remove.
26219 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
26220 Marcus Shawcroft <marcus.shawcroft@arm.com>
26222 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
26223 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
26224 * config/aarch64/predicates.md (aarch64_const_address): Remove.
26225 (aarch64_mov_operand): Use aarch64_mov_operand_p.
26227 2013-05-23 Vidya Praveen <vidyapraveen@arm.com>
26229 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
26230 instruction (AdvSIMD).
26231 * config/aarch64/aarch64-builtins.c
26232 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
26233 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
26235 2013-05-23 Martin Jambor <mjambor@suse.cz>
26237 PR middle-end/57347
26238 * tree.h (contains_bitfld_component_ref_p): Declare.
26239 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
26240 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
26242 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
26243 not access a bit-field. Assert all final offsets are byte-aligned.
26245 2013-05-23 Richard Biener <rguenther@suse.de>
26247 PR tree-optimization/57380
26248 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
26249 least one invariant or re-used load.
26250 * passes.c (init_optimization_passes): Move pass_phiprop before
26253 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
26255 * config/aarch64/aarch64-simd.md
26256 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
26258 2013-05-23 Richard Biener <rguenther@suse.de>
26260 PR middle-end/57381
26261 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
26262 OEP_CONSTANT_ADDRESS_OF retained.
26264 2013-05-23 Jakub Jelinek <jakub@redhat.com>
26266 PR middle-end/57344
26267 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
26268 don't lower unit. Handle unit not being always BITS_PER_WORD.
26270 2013-05-23 Richard Biener <rguenther@suse.de>
26272 PR rtl-optimization/57341
26273 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
26274 instead of true_dependence.
26276 2013-05-22 David Malcolm <dmalcolm@redhat.com>
26278 * bb-reorder.c (branch_threshold): Make const.
26279 (exec_threshold): Ditto.
26281 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
26282 Pat Haugen <pthaugen@us.ibm.com>
26283 Peter Bergner <bergner@vnet.ibm.com>
26285 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
26286 documentation for the power8 crypto builtins.
26288 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
26290 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
26291 macros for defining power8 builtin functions.
26292 (BU_P8V_AV_2): Likewise.
26293 (BU_P8V_AV_P): Likewise.
26294 (BU_P8V_VSX_1): Likewise.
26295 (BU_P8V_OVERLOAD_1): Likewise.
26296 (BU_P8V_OVERLOAD_2): Likewise.
26297 (BU_CRYPTO_1): Likewise.
26298 (BU_CRYPTO_2): Likewise.
26299 (BU_CRYPTO_3): Likewise.
26300 (BU_CRYPTO_OVERLOAD_1): Likewise.
26301 (BU_CRYPTO_OVERLOAD_2): Likewise.
26302 (XSCVSPDP): Fix typo, point to the correct instruction.
26303 (VCIPHER): Add power8 crypto builtins.
26304 (VCIPHERLAST): Likewise.
26305 (VNCIPHER): Likewise.
26306 (VNCIPHERLAST): Likewise.
26307 (VPMSUMB): Likewise.
26308 (VPMSUMH): Likewise.
26309 (VPMSUMW): Likewise.
26310 (VPERMXOR_V2DI): Likewise.
26311 (VPERMXOR_V4SI: Likewise.
26312 (VPERMXOR_V8HI: Likewise.
26313 (VPERMXOR_V16QI: Likewise.
26314 (VSHASIGMAW): Likewise.
26315 (VSHASIGMAD): Likewise.
26316 (VPMSUM): Likewise.
26317 (VPERMXOR): Likewise.
26318 (VSHASIGMA): Likewise.
26320 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
26321 __CRYPTO__ if the crypto instructions are available.
26322 (altivec_overloaded_builtins): Add support for overloaded power8
26325 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
26326 support for power8 crypto builtins.
26327 (builtin_function_type): Likewise.
26328 (altivec_init_builtins): Add support for builtins that take vector
26329 long long (V2DI) arguments.
26331 * config/rs6000/crypto.md: New file, define power8 crypto
26334 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
26335 Pat Haugen <pthaugen@us.ibm.com>
26336 Peter Bergner <bergner@vnet.ibm.com>
26338 * doc/invoke.texi (Option Summary): Add power8 options.
26339 (RS/6000 and PowerPC Options): Likewise.
26341 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
26342 constraints.md instead of rs6000.h. Reorder w* constraints. Add
26343 wm, wn, wr documentation.
26345 * config/rs6000/constraints.md (wm): New constraint for VSX
26346 registers if direct move instructions are enabled.
26347 (wn): New constraint for no registers.
26348 (wq): New constraint for quad word even GPR registers.
26349 (wr): New constraint if 64-bit instructions are enabled.
26350 (wv): New constraint if power8 vector instructions are enabled.
26351 (wQ): New constraint for quad word memory locations.
26353 * config/rs6000/predicates.md (const_0_to_15_operand): New
26354 constraint for 0..15 for crypto instructions.
26355 (gpc_reg_operand): If VSX allow registers in VSX registers as well
26356 as GPR and floating point registers.
26357 (int_reg_operand): New predicate to match only GPR registers.
26358 (base_reg_operand): New predicate to match base registers.
26359 (quad_int_reg_operand): New predicate to match even GPR registers
26360 for quad memory operations.
26361 (vsx_reg_or_cint_operand): New predicate to allow vector logical
26362 operations in both GPR and VSX registers.
26363 (quad_memory_operand): New predicate for quad memory operations.
26364 (reg_or_indexed_operand): New predicate for direct move support.
26366 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
26367 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
26368 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
26369 (POWERPC_MASKS): Add power8 options.
26370 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
26373 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
26374 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
26376 * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
26377 (-mpower8-fusion): New power8 options.
26378 (-mpower8-fusion-sign): Likewise.
26379 (-mpower8-vector): Likewise.
26380 (-mcrypto): Likewise.
26381 (-mdirect-move): Likewise.
26382 (-mquad-memory): Likewise.
26384 * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
26385 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
26387 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
26388 (rs6000_debug_vector_unit): Add p8_vector.
26389 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
26390 definitions. Also print fusion state.
26391 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
26392 (rs6000_builtin_mask_calculate): Add power8 builtin support.
26393 (rs6000_option_override_internal): Add support for power8.
26394 (rs6000_common_init_builtins): Add debugging for skipped builtins
26395 if -mdebug=builtin.
26396 (rs6000_adjust_cost): Add power8 support.
26397 (rs6000_issue_rate): Likewise.
26398 (insn_must_be_first_in_group): Likewise.
26399 (insn_must_be_last_in_group): Likewise.
26400 (force_new_group): Likewise.
26401 (rs6000_register_move_cost): Likewise.
26402 (rs6000_opt_masks): Likewise.
26404 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
26405 power8 capable assembler, default to power7 options.
26406 (TARGET_DIRECT_MOVE): Likewise.
26407 (TARGET_CRYPTO): Likewise.
26408 (TARGET_P8_VECTOR): Likewise.
26409 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
26410 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
26411 (VECTOR_MEM_P8_VECTOR_P): Likewise.
26412 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
26413 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
26414 (TARGET_XSCVDPSPN): Likewise.
26415 (TARGET_XSCVSPDPN): Likewsie.
26416 (TARGET_SYNC_HI_QI): Likewise.
26417 (TARGET_SYNC_TI): Likewise.
26418 (MASK_CRYPTO): Likewise.
26419 (MASK_DIRECT_MOVE): Likewise.
26420 (MASK_P8_FUSION): Likewise.
26421 (MASK_P8_VECTOR): Likewise.
26422 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
26423 temporary used by some of the direct move instructions to get two FP
26424 temporary registers does not force creation of a stack frame.
26425 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
26426 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
26427 that any VSX registers are tieable, even if they are also an
26428 Altivec vector mode.
26429 (r6000_reg_class_enum): Add wm, wr, wv constraints.
26430 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
26431 (RS6000_BTM_CRYPTO): Likewise.
26432 (RS6000_BTM_COMMON): Likewise.
26434 * config/rs6000/rs6000.md (cpu attribute): Add power8.
26435 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
26436 (enum rs6000_vector): Add power8 vector support.
26438 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26442 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
26443 (any_sibcall_could_use_r3): this and handle indirect calls.
26444 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
26446 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26448 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
26450 2013-05-22 Richard Biener <rguenther@suse.de>
26452 PR middle-end/57349
26453 * profile.c (branch_prob): Do not split blocks that are
26454 abnormally receiving from ECF_RETURNS_TWICE functions.
26456 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26458 * recog.c (offsettable_address_addr_space_p): Fix calculation of
26459 address mode. Move pointer mode initialization to the same place.
26461 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
26463 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
26464 while it has any effect.
26466 2013-05-21 Easwaran Raman <eraman@google.com>
26468 PR tree-optimization/57322
26469 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
26470 UID of the statement added to the BB to be 1.
26472 2013-05-21 Jakub Jelinek <jakub@redhat.com>
26474 PR tree-optimization/57331
26475 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
26476 of conversion from pointer type to integral type with integer.
26478 2013-05-21 Martin Jambor <mjambor@suse.cz>
26481 * ipa-prop.c (ipa_read_node_info): Process param_used and
26482 controlled_uses in the same order as when writing.
26484 2013-05-21 Magnus Granberg <baldrick@free.fr>
26487 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
26489 2013-05-21 Richard Biener <rguenther@suse.de>
26491 PR tree-optimization/57318
26492 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
26493 estimate stmts with side-effects as likely eliminated.
26495 2013-05-21 Richard Biener <rguenther@suse.de>
26497 PR tree-optimization/57330
26498 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
26499 preserve the call stmts fntype.
26501 2013-05-21 Richard Biener <rguenther@suse.de>
26503 PR tree-optimization/57303
26504 * tree-ssa-sink.c (statement_sink_location): Improve killing
26505 stmt detection and properly handle self-assignments.
26507 2013-05-21 Christian Bruel <christian.bruel@st.com>
26509 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
26510 spanning registers. LEAF_REG_REMAP is supported only for contiguous
26511 registers. Set register size out of the PARALLEL loop.
26513 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
26516 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
26517 (*fmasf4, *fmasf4_media): New insns.
26519 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
26521 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
26522 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
26523 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
26524 (mips_idiv_insns): Update the comments to say that the returned
26525 instruction counts are in units of BASE_INSN_LENGTH.
26526 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
26527 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
26528 using 2 rather than 4 as the length of indirect MIPS16 and
26529 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
26530 length of a NOP. Don't divide MIPS16 lengths by 2.
26531 (mips16_split_long_branches): Assume a branch is long if the
26532 length is greater than 4 rather than 8.
26533 * config/mips/mips.md (length): Give MIPS16 lengths directly,
26534 rather than multiplying them by 2. Multiply instruction counts
26535 by BASE_INSN_LENGTH rather than 4.
26536 (*jump_mips16, tls_get_tp_mips16_<mode>)
26537 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
26539 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
26541 * config/mips/mips.md (extended_mips16): Remove branch case.
26542 (length): Remove duplicated extended_mips16 test.
26544 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
26546 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
26548 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
26550 * recog.h (Recog_data): Rename to...
26551 (recog_data_d): ...this.
26552 (recog_data): Update accordingly.
26553 * recog.c (recog_data): Likewise.
26554 * reload.c (save_recog_data): Likewise.
26555 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
26556 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
26558 2013-05-17 Julian Brown <julian@codesourcery.com>
26560 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
26561 found in a REG_EQUAL note, invalidate it.
26563 2013-05-17 Easwaran Raman <eraman@google.com>
26565 * tree-ssa-reassoc.c (find_insert_point): New function.
26566 (insert_stmt_after): Likewise.
26567 (get_def_stmt): Likewise.
26568 (ensure_ops_are_available): Likewise.
26569 (not_dominated_by): Likewise.
26570 (rewrite_expr_tree): Do not move statements beyond what is
26571 necessary. Remove call to swap_ops_for_binary_stmt...
26572 (reassociate_bb): ... and move it here.
26573 (build_and_add_sum): Assign UIDs for new statements.
26574 (linearize_expr): Likewise.
26575 (do_reassoc): Renumber gimple statement UIDs.
26577 2013-05-17 Jan Hubicka <jh@suse.cz>
26579 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
26581 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
26582 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
26584 (output_weakrefs): Update.
26586 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
26587 Martin Jambor <mjambor@suse.cz>
26589 PR middle-end/57276
26590 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
26591 value that corresponds to the given aggval is found in values vector.
26593 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
26595 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
26596 sse, sse2, sse3, ssse3 and sse4a flags to options.
26598 2013-05-17 David Malcolm <dmalcolm@redhat.com>
26600 * gengtype-state.c: (s_expr_writer): New class, to handle
26601 prettifying of output layout of s-expressions.
26602 (state_writer): New class, to write out gtype.state.
26603 (state_written_type_count): Move this variable into member data of
26605 (s_expr_writer::s_expr_writer): New code: constructor for new class
26606 (state_writer::state_writer(): ditto
26607 (s_expr_writer::write_new_line): New function
26608 (s_expr_writer::write_any_indent): ditto
26609 (s_expr_writer::begin_s_expr): ditto
26610 (s_expr_writer::end_s_expr): ditto
26611 (write_state_fileloc): convert to method of state_writer...
26612 (state_writer:: write_state_fileloc): ...and use methods of
26613 s_expr_writer to write indentation into the gtype.state output file
26614 to visually represent the hierarchical structure of the list
26616 (write_state_fields): ditto, renaming to...
26617 (state_writer::write_state_fields)
26618 (write_state_a_string): ditto, renaming to...
26619 (state_writer::write_state_a_string)
26620 (write_state_string_option): ditto, renaming to...
26621 (state_writer::write_state_string_option)
26622 (write_state_type_option): ditto, renaming to...
26623 (state_writer::write_state_type_option)
26624 (write_state_nested_option): ditto, renaming to...
26625 (state_writer::write_state_nested_option)
26626 (write_state_option): ditto, renaming to...
26627 (state_writer::write_state_option)
26628 (write_state_options): ditto, renaming to...
26629 (state_writer::write_state_options)
26630 (write_state_lang_bitmap): ditto, renaming to...
26631 (state_writer::write_state_lang_bitmap)
26632 (write_state_version): ditto, renaming to...
26633 (state_writer::write_state_version)
26634 (write_state_scalar_type): ditto, renaming to...
26635 (state_writer::write_state_scalar_type)
26636 (write_state_string_type): ditto, renaming to...
26637 (state_writer::write_state_string_type)
26638 (write_state_undefined_type): ditto, renaming to...
26639 (state_writer::write_state_undefined_type)
26640 (write_state_struct_union_type): ditto, renaming to...
26641 (state_writer::write_state_struct_union_type)
26642 (write_state_struct_type): ditto, renaming to...
26643 (state_writer::write_state_struct_type)
26644 (write_state_user_struct_type): ditto, renaming to...
26645 (state_writer::write_state_user_struct_type)
26646 (write_state_lang_struct_type): ditto, renaming to...
26647 (state_writer::write_state_lang_struct_type)
26648 (write_state_param_struct_type): ditto, renaming to...
26649 (state_writer::write_state_param_struct_type)
26650 (write_state_pointer_type): ditto, renaming to...
26651 (state_writer::write_state_pointer_type)
26652 (write_state_array_type): ditto, renaming to...
26653 (state_writer::write_state_array_type)
26654 (write_state_gc_used): ditto, renaming to...
26655 (state_writer::write_state_gc_used)
26656 (write_state_common_type_content): ditto, renaming to...
26657 (state_writer::write_state_common_type_content)
26658 (write_state_type): ditto, renaming to...
26659 (state_writer::write_state_type)
26660 (write_state_pair_list): ditto, renaming to...
26661 (state_writer::write_state_pair_list)
26662 (write_state_pair): ditto, renaming to...
26663 (state_writer::write_state_pair)
26664 (write_state_typedefs): ditto, renaming to...
26665 (state_writer::write_state_typedefs)
26666 (write_state_structures): ditto, renaming to...
26667 (state_writer::write_state_structures)
26668 (write_state_param_structs): ditto, renaming to...
26669 (state_writer::write_state_param_structs)
26670 (write_state_variables): ditto, renaming to...
26671 (state_writer::write_state_variables)
26672 (write_state_srcdir): ditto, renaming to...
26673 (state_writer::write_state_srcdir)
26674 (write_state_files_list): ditto, renaming to...
26675 (state_writer::write_state_files_list)
26676 (write_state_languages): ditto, renaming to...
26677 (state_writer::write_state_languages)
26678 (write_state): create a state_writer instance and use it when
26679 writing out the state file
26681 2013-05-17 Mike Stump <mikestump@comcast.net>
26683 PR rtl-optimization/57304
26684 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
26685 accessing DF_REF_REAL_LOC.
26687 2013-05-17 Jakub Jelinek <jakub@redhat.com>
26689 PR rtl-optimization/57281
26690 PR rtl-optimization/57300
26691 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
26692 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
26693 what the other splitter did if the registers are dead.
26695 2013-05-17 Richard Biener <rguenther@suse.de>
26697 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
26700 2013-05-17 Jakub Jelinek <jakub@redhat.com>
26702 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
26705 2013-05-17 Marek Polacek <polacek@redhat.com>
26707 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
26708 length when doing non-zero store of storing '\0' to '\0'.
26710 2013-05-17 Jakub Jelinek <jakub@redhat.com>
26712 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
26713 vect_external_def oprnd1 with loop_vinfo, try to emit
26714 optional cast, negation and and stmts on the loop preheader
26715 edge instead of into the pattern def seq.
26717 PR tree-optimization/57051
26718 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
26719 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
26721 2013-05-16 Nick Clifton <nickc@redhat.com>
26723 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
26724 (rl78_is_naked_func): New function.
26725 (rl78_expand_prologue): Skip prologue generation for naked functions.
26726 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
26727 * doc/extend.texi (naked): Add RL78 to the list of processors
26728 that supports this attribute.
26730 2013-05-16 Jeff Law <law@redhat.com>
26732 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
26734 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
26736 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
26737 cache parameters using detect_caches_amd also for CYRIX,
26738 NSC and TM2 signatures.
26740 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
26741 Dzianis Kahanovich <mahatma@eu.by>
26745 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
26746 VIA/Centaur processors and determine their cache parameters
26747 using detect_caches_amd.
26749 2013-05-16 Teresa Johnson <tejohnson@google.com>
26751 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
26752 (rtl_verify_edges): New function.
26753 (rtl_verify_bb_insns): Ditto.
26754 (rtl_verify_bb_pointers): Ditto.
26755 (rtl_verify_bb_insn_chain): Ditto.
26756 (rtl_verify_fallthru): Ditto.
26757 (rtl_verify_bb_layout): Ditto.
26758 (rtl_verify_flow_info_1): Outline checks into new functions.
26759 (rtl_verify_flow_info): Ditto.
26761 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
26763 * cfghooks.c (copy_bbs): Add update_dominance argument.
26764 * cfghooks.h (copy_bbs): Update prototype.
26765 * tree-cfg.c (gimple_duplicate_sese_region):
26766 Add update_dominance argument.
26767 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
26768 * tree-ssa-loop-ch.c (copy_loop_headers): Update
26769 gimple_duplicate_sese_region call.
26770 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
26771 Update copy_bbs call.
26772 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
26773 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
26775 2013-05-16 Jakub Jelinek <jakub@redhat.com>
26777 * tree-vectorizer.h (NUM_PATTERNS): Increment.
26778 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
26779 vect_recog_rotate_pattern.
26780 (vect_recog_rotate_pattern): New function.
26782 2013-05-16 Jason Merrill <jason@redhat.com>
26784 * Makefile.in (LLINKER): New variable.
26785 (mostlyclean): Remove link mutex.
26786 * configure.ac: Handle --enable-link-mutex.
26787 * lock-and-run.sh: New script.
26789 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26792 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
26795 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26797 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
26799 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
26801 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
26802 * config/arm/arm.c (next_consecutive_mem): New function.
26803 (gen_movmem_ldrd_strd): Likewise.
26804 * config/arm/arm.md (movmemqi): Update condition and code.
26805 (unaligned_loaddi, unaligned_storedi): New patterns.
26807 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26809 * config.gcc: Obsolete *-*-solaris2.9*.
26810 * doc/install.texi (Specific, *-*-solaris2*): Document it.
26812 2013-05-16 Richard Biener <rguenther@suse.de>
26814 * passes.c (init_optimization_passes): Move pass_parallelize_loops
26815 earlier, after GRAPHITE transforms and IV canonicalization.
26817 2013-05-16 Jakub Jelinek <jakub@redhat.com>
26819 * omp-low.c (extract_omp_for_data): For collapsed loops,
26820 if at least one of the loops is known at compile time to
26821 iterate zero times, set count to 0.
26822 (expand_omp_regimplify_p): New function.
26823 (expand_omp_for_generic): For collapsed loops, if at least
26824 one of the loops isn't known to iterate at least once,
26825 add runtime check with setting count to 0.
26826 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
26827 For unsigned types if it isn't known at compile time that
26828 the loop will iterate at least once, add runtime check to bypass
26829 the whole loop if initial condition isn't true.
26831 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
26833 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
26835 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
26837 PR middle-end/57286
26838 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
26839 transformations to avoid an infinite loop.
26841 2013-05-16 Marek Polacek <polacek@redhat.com>
26843 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
26845 2013-05-15 Leif Ekblad <leif@rdos.net>
26847 * config/i386/i386.c (ix86_decompose_address): Use
26848 DEFAULT_TLS_SEG_REG to access TLS segment register.
26849 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
26850 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
26851 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
26853 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
26856 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
26857 sibling calls to functions that would normally be lazily bound,
26858 unless $gp is call-clobbered.
26860 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
26862 * config/i386/i386.c (ix86_option_override_internal): Update
26863 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
26864 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
26865 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
26866 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
26868 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
26870 2013-05-15 Andreas Schwab <schwab@suse.de>
26872 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
26873 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
26876 2013-05-15 Teresa Johnson <tejohnson@google.com>
26878 * loop-unroll.c (report_unroll_peel): Check decision before
26879 emitting unroll/peel message.
26881 2013-05-15 Teresa Johnson <tejohnson@google.com>
26883 * function.h (has_bb_partition): New rtl_data flag.
26884 (bb_reorder_complete): Ditto.
26885 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
26886 instead of flag_reorder_blocks_and_partition.
26887 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
26888 with some enhancements.
26889 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
26890 * bb-reorder.c (connect_traces): Check for has_bb_partition
26891 instead of flag_reorder_blocks_and_partition.
26892 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
26893 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
26894 verify_hot_cold_block_grouping.
26895 (partition_hot_cold_basic_blocks): Set has_bb_partition.
26897 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26900 * config/arm/predicates.md (call_insn_operand): New predicate.
26901 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
26902 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
26903 if insn is not a tail call.
26904 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
26906 * config/arm/arm.h (enum reg_class): New caller save register class.
26907 (REG_CLASS_NAMES): Likewise.
26908 (REG_CLASS_CONTENTS): Likewise.
26909 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
26912 2013-05-15 Richard Biener <rguenther@suse.de>
26914 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
26915 of MSG_OPTIMIZED_LOCATIONS.
26916 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
26917 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
26919 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
26920 of MSG_OPTIMIZED_LOCATIONS.
26921 (execute_vect_slp): Likewise.
26922 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
26923 (vect_create_cond_for_alias_checks): Likewise.
26924 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
26925 (vect_recog_widen_mult_pattern): Likewise.
26926 (vect_recog_widen_sum_pattern): Likewise.
26927 (vect_recog_over_widening_pattern): Likewise.
26928 (vect_recog_widen_shift_pattern): Likewise.
26929 (vect_recog_vector_vector_shift_pattern): Likewise.
26930 (vect_recog_divmod_pattern): Likewise.
26931 (vect_recog_mixed_size_cond_pattern): Likewise.
26932 (vect_recog_bool_pattern): Likewise.
26933 (vect_pattern_recog_1): Likewise.
26935 2013-05-15 Martin Jambor <mjambor@suse.cz>
26937 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
26938 non-functions to builtin_unreachable.
26939 * ipa-inline-transform.c (inline_call): Do not assert estimates were
26940 correct when new direct edges were discovered.
26942 2013-05-15 Martin Jambor <mjambor@suse.cz>
26944 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
26945 header, print symbol order instead of node uid, print more information
26946 about indirect edge targets.
26947 (ipa_make_edge_direct_to_target): Print symbol order instead of node
26949 (ipa_make_edge_direct_to_target): Likewise.
26950 (remove_described_reference): Likewise.
26951 (propagate_controlled_uses): Likewise.
26952 (ipa_print_node_params): Also print symbol order.
26953 (ipcp_transform_function): Print symbol order instead of node uids.
26954 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
26955 (cgraph_get_create_real_symbol_node): Likewise.
26956 * ipa-cp.c (print_lattice): Likewise.
26957 (print_all_lattices): Likewise.
26958 (determine_versionability): Likewise.
26959 (initialize_node_lattices): Likewise.
26960 (estimate_local_effects): Likewise.
26961 (update_profiling_info): Likewise.
26962 (create_specialized_node): Likewise.
26963 (perhaps_add_new_callers): Likewise.
26964 (decide_about_value): Likewise.
26965 (decide_whether_version_node): Likewise.
26966 (identify_dead_nodes): Likewise.
26967 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
26968 (dump_inline_summary): Likewise.
26969 (estimate_node_size_and_time): Likewise.
26970 (inline_analyze_function): Likewise.
26971 * ipa-inline.c (report_inline_failed_reason): Likewise.
26972 (want_early_inline_function_p): Likewise.
26973 (edge_badness): Likewise.
26974 (update_edge_key): Likewise.
26975 (inline_small_functions): Likewise. Add dumping of order to two other
26977 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
26978 instead of node uids.
26979 (propagate_pure_const): Likewise.
26980 (propagate_pure_const): Likewise.
26981 * ipa-utils.c (dump_cgraph_node_set): Likewise.
26982 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
26983 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
26985 * tree-pretty-print.c (dump_function_header): Likewise.
26986 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
26987 Print symbol order instead of node uids.
26989 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26991 * config/s390/s390.c (s390_register_move_cost): Don't impose the
26992 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
26994 2013-05-15 Richard Biener <rguenther@suse.de>
26996 PR tree-optimization/57275
26997 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
26998 return value for fail to do runtime alias checks for gather loads.
27000 2013-05-15 Jan Hubicka <jh@suse.cz>
27004 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
27005 weakrefs are not external.
27006 (lto_symtab_merge_decls): Fix thinko when dealing with
27007 non-lto_symtab decls.
27008 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
27009 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
27010 * varpool.c (dump_varpool_node): Dump more flags.
27012 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
27014 * config/i386/i386.c (processor_alias_table): Add instruction
27015 FSGSBASE for AMD bdver3 architecture.
27017 2013-05-14 Jakub Jelinek <jakub@redhat.com>
27019 * tree.c (warn_deprecated_use): Print file:line using locus color.
27020 * diagnostic.c (diagnostic_report_current_module): Print file:line
27021 and file:line:column using locus color.
27023 2013-05-14 Mike Stump <mikestump@comcast.net>
27025 * gdbinit.in: Add __null.
27027 2013-05-14 Mike Stump <mikestump@comcast.net>
27029 * recog.h: Rename struct recog_data to Recog_data.
27030 * recog.c: Likewise.
27031 * reload.c (can_reload_into): Likewise.
27032 * config/picochip/picochip.c: Likewise.
27034 2013-05-14 Mike Stump <mikestump@comcast.net>
27036 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
27038 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
27040 * resource.h (struct resources): Remove unch_memory member.
27041 (CLEAR_RESOURCE): Don't clear unch_memory.
27042 * resource.c (mark_referenced_resources): Don't set it.
27043 (mark_set_resources): Likewise.
27044 (mark_target_live_regs): Don't clear it.
27045 (init_resource_info): Likewise.
27046 * reorg.c (resource_conflicts_p): Don't compare it.
27047 (redundant_insn): Don't set it.
27049 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
27051 * emit-rtl.c (next_label): Remove unused function.
27052 (skip_consecutive_labels, link_cc0_insns): Move to ...
27053 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
27054 only place where these functions are used, and make them static.
27056 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
27058 * fold-const.c (fold_negate_expr): Handle vectors.
27059 (fold_truth_not_expr): Make it static.
27060 (fold_invert_truthvalue): New static function.
27061 (invert_truthvalue_loc): Handle vectors. Do not call
27062 fold_truth_not_expr directly.
27063 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
27064 <TRUTH_NOT_EXPR>: Do not cast to boolean.
27065 (fold_comparison): Handle vector constants.
27066 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
27067 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
27068 * tree.h (fold_truth_not_expr): Remove declaration.
27070 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
27072 * config/aarch64/aarch64-simd.md
27073 (aarch64_vcond_internal<mode>): Rename to...
27074 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
27075 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
27076 float modes. Clarify all iterator modes.
27077 (vcond<mode><mode>): Use new name for vcond expanders.
27078 (vcond<v_cmp_result><mode>): Likewise.
27079 (vcondu<mode><mode>: Likewise.
27080 * config/aarch64/iterators.md (VDQF_COND): New.
27082 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
27085 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
27086 variable for the shift amount. Check that we shift by non-negative
27089 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
27092 * config/arm/arm.h (EPILOGUE_USES): Only return true
27093 for LR_REGNUM after epilogue_completed.
27095 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
27097 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
27098 is error_mark_node.
27100 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27103 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
27104 and Solaris 11+/x86 with gld.
27105 * configure: Regenerate.
27107 2013-05-14 Jakub Jelinek <jakub@redhat.com>
27109 * expmed.c (expand_shift_1): Canonicalize rotates by
27110 constant bitsize / 2 to bitsize - 1.
27111 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
27112 case ROTATERT>: Likewise.
27115 2013-05-10 Jakub Jelinek <jakub@redhat.com>
27117 * config/i386/i386.md (rotateinv): New code attr.
27118 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
27119 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
27120 roll $31, %eax, etc.
27122 2013-05-14 Richard Biener <rguenther@suse.de>
27124 PR middle-end/57235
27125 * tree-eh.c (sink_clobbers): Give up for successors with
27126 multiple predecessors and no virtual uses.
27128 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
27130 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
27131 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
27133 2013-05-14 Jakub Jelinek <jakub@redhat.com>
27135 PR middle-end/57251
27136 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
27137 the case when both op0 and op1 have VOIDmode.
27139 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
27141 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
27142 in multiply-accumulate mode.
27144 2013-05-13 Guozhi Wei <carrot@google.com>
27146 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
27148 2013-05-13 Kai Tietz <ktietz@redhat.com>
27151 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
27152 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
27153 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
27154 * config/i386/i386.c (ix86_option_override_internal): Likewise.
27155 (ix86_expand_prologue): Likewise.
27156 (ix86_expand_split_stack_prologue): Likewise.
27157 (legitimate_pic_address_disp_p): Likewise.
27158 (legitimize_pic_address): Likewise.
27159 (legitimize_tls_address): Likewise.
27160 (legitimize_pe_coff_symbol): Likewise.
27161 (output_pic_addr_const): Likewise.
27162 (construct_plt_address): Likewise.
27163 (ix86_expand_call): Likewise.
27164 (x86_output_mi_thunk): Likewise.
27165 (x86_function_profiler): Likewise.
27167 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
27169 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
27170 similar switch cases.
27171 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
27172 (aarch64_simd_mov_to_<mode>low): Delete.
27173 (aarch64_simd_mov_to_<mode>high): Delete.
27174 (move_lo_quad_<mode>): Add w<-r alternative.
27175 (aarch64_simd_move_hi_quad_<mode>): Likewise.
27176 (aarch64_simd_mov_from_*): Update type attribute.
27177 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
27180 2013-05-13 Jan Hubicka <jh@suse.cz>
27182 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
27183 * config/i386/i386.c (ix86_compute_frame_layout,
27184 ix86_expand_epilogue, emit_i387_cw_initialization,
27185 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
27186 ix86_local_alignment): Fix use of size/speed predicates.
27188 2013-05-13 Jakub Jelinek <jakub@redhat.com>
27190 PR tree-optimization/45216
27191 PR tree-optimization/57157
27192 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
27193 the (-Y) & (B - 1) variant if OP is |.
27194 * expmed.c (expand_shift_1): For rotations by const0_rtx just
27195 return shifted. Use (-op1) & (prec - 1) as other_amount
27196 instead of prec - op1.
27198 2013-05-13 Martin Jambor <mjambor@suse.cz>
27200 PR middle-end/42371
27201 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
27202 (ipa_constant_data): New type.
27203 (ipa_jump_func): Use ipa_constant_data to hold information about
27204 constant jump functions.
27205 (ipa_get_jf_constant): Adjust to jump function type changes.
27206 (ipa_get_jf_constant_rdesc): New function.
27207 (ipa_param_descriptor): New field controlled_uses.
27208 (ipa_get_controlled_uses): New function.
27209 (ipa_set_controlled_uses): Likewise.
27210 * ipa-ref.h (ipa_find_reference): Declare.
27211 * ipa-prop.c (ipa_cst_ref_desc): New type.
27212 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
27214 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
27215 New parameter cs. Adjust all callers.
27216 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
27217 (remove_described_reference): New function.
27218 (jfunc_rdesc_usable): Likewise.
27219 (try_make_edge_direct_simple_call): Decrement controlled use count,
27220 attempt to remove reference if it hits zero.
27221 (combine_controlled_uses_counters): New function.
27222 (propagate_controlled_uses): Likewise.
27223 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
27224 (ipa_edge_duplication_hook): Duplicate reference descriptions.
27225 (ipa_print_node_params): Print described use counter.
27226 (ipa_write_jump_function): Adjust to jump function type changes.
27227 (ipa_read_jump_function): New parameter CS, pass it to
27228 ipa_set_jf_constant. Adjust caller.
27229 (ipa_write_node_info): Stream controlled use count
27230 (ipa_read_node_info): Likewise.
27231 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
27233 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
27234 count. Remove cloning-added reference if it reaches zero.
27235 * ipa-ref.c (ipa_find_reference): New function.
27237 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
27239 * config/i386/i386.c (processor_target_table): Modified default
27240 alignment values for AMD BD and BT architectures.
27242 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
27244 * tree-vect-generic.c (uniform_vector_p): Move ...
27245 * tree.c (uniform_vector_p): ... here.
27246 * tree.h (uniform_vector_p): Declare it.
27247 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
27250 2013-05-13 Jakub Jelinek <jakub@redhat.com>
27252 PR tree-optimization/57230
27253 * tree-ssa-strlen.c (handle_char_store): Record length for
27254 array store from STRING_CST.
27256 PR tree-optimization/57230
27257 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
27260 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
27262 * config/epiphany/epiphany.c (epiphany_init): Check size of
27263 NUM_MODES_FOR_MODE_SWITCHING.
27264 (epiphany_expand_prologue):
27265 Remove CONFIG_REGNUM initial value handling code.
27266 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
27267 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
27268 (emit_set_fp_mode, epiphany_mode_after): Likewise.
27269 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
27270 Don't return 1 for FP_MODE_NONE.
27271 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
27272 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
27273 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
27274 * config/epiphany/epiphany.md (save_config): New pattern.
27276 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
27278 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
27280 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
27282 * config/i386/i386.md (memory): Handle sseishft1.
27283 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
27284 (*vec_extractv2di_1): Ditto.
27286 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
27288 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
27291 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
27293 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
27294 Add mthumb/march=armv7-a multilib.
27295 Add mthumb/march=armv7-r multilib.
27296 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
27298 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
27300 * config/v850/t-rtems: Add more multilibs.
27302 2013-05-10 Richard Biener <rguenther@suse.de>
27304 PR tree-optimization/57214
27305 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
27306 not propagate from SSA names that occur in abnormal PHI nodes.
27308 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
27310 * stor-layout.c (element_precision): New function.
27311 * machmode.h (element_precision): Declare it.
27312 * tree.c (build_minus_one_cst): New function.
27313 (element_precision): Likewise.
27314 * tree.h (build_minus_one_cst): Declare new function.
27315 (element_precision): Likewise.
27316 * fold-const.c (operand_equal_p): Use element_precision.
27317 (fold_binary_loc): Handle vector types.
27318 * convert.c (convert_to_integer): Use element_precision.
27319 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
27322 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
27324 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
27325 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
27326 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
27327 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
27328 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
27329 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
27330 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
27331 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
27332 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
27333 (Uuw8): New constraints.
27334 (Usb4): Move into alphabetical order.
27335 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
27336 (sd8_operand, ub8_operand, uw8_operand): New predicates.
27337 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
27338 previously unnamed patterns.
27339 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
27340 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
27341 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
27342 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
27343 of set_attr_alternative/if_then_else. Use extended_mips16 instead
27344 of specific lengths.
27346 2013-05-10 Jakub Jelinek <jakub@redhat.com>
27348 * config/i386/i386.md (rotateinv): New code attr.
27349 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
27350 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
27351 roll $31, %eax, etc.
27353 PR tree-optimization/45216
27354 PR tree-optimization/57157
27355 * tree-ssa-forwprop.c (simplify_rotate): New function.
27356 (ssa_forward_propagate_and_combine): Call it.
27358 2013-05-10 Richard Biener <rguenther@suse.de>
27360 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
27361 disable peeling when we version for aliasing.
27362 (vector_alignment_reachable_p): Honor explicit user alignment.
27363 (vect_supportable_dr_alignment): Likewise.
27364 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
27365 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
27366 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
27367 then peeling to arrange for the cost-model check to come first.
27369 2013-05-10 Alan Modra <amodra@gmail.com>
27371 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
27372 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
27373 * configure: Regenerate.
27375 2013-05-10 Alan Modra <amodra@gmail.com>
27378 * varasm.c (default_elf_select_section): Move !DECL_P check..
27379 (get_named_section): ..to here before calling get_section_name.
27381 (default_section_type_flags): Add DECL_P check.
27382 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
27383 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
27385 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
27387 * config/epiphany/epiphany.c (epiphany_expand_prologue):
27388 When using gen_stack_adjust_str with a register offset, add a
27389 REG_FRAME_RELATED_EXPR note.
27391 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
27393 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
27394 (*vec_extractv4si_zext_mem): Ditto.
27395 (*vec_extractv2di): Add 0->x and x->x alternatives.
27396 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
27397 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
27399 2013-05-09 Jason Merrill <jason@redhat.com>
27401 N3639 C++1y VLA support
27402 * gimplify.c (gimplify_vla_decl): Don't touch an existing
27405 * tree.c (build_constructor_va): New.
27406 * tree.h: Declare it.
27408 2013-05-09 Martin Jambor <mjambor@suse.cz>
27411 * gimple-fold.c (canonicalize_constructor_val): Call
27412 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
27414 2013-05-09 Jan Hubicka <jh@suse.cz>
27415 Richard Biener <rguenther@suse.de>
27418 * symtab.c (symtab_make_decl_local): Do not add private names.
27420 2013-05-09 Jan Hubicka <jh@suse.cz>
27423 * symtab.c (insert_to_assembler_name_hash): Handle clones.
27424 (unlink_from_assembler_name_hash): Likewise.
27425 (symtab_prevail_in_asm_name_hash, symtab_register_node,
27426 symtab_unregister_node, symtab_initialize_asm_name_hash,
27427 change_decl_assembler_name): Update.
27429 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
27431 * config/aarch64/aarch64.md: New movtf split.
27432 (*movtf_aarch64): Update.
27433 (aarch64_movdi_tilow): Handle TF modes and rename to
27434 aarch64_movdi_<mode>low.
27435 (aarch64_movdi_tihigh): Handle TF modes and rename to
27436 aarch64_movdi_<mode>high
27437 (aarch64_movtihigh_di): Handle TF modes and rename to
27438 aarch64_mov<mode>high_di
27439 (aarch64_movtilow_di): Handle TF modes and rename to
27440 aarch64_mov<mode>low_di
27441 (aarch64_movtilow_tilow): Remove spurious whitespace.
27442 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
27444 (aarch64_print_operand): Update.
27446 2013-05-09 Alan Modra <amodra@gmail.com>
27448 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
27450 * configure: Regenerate.
27452 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
27454 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
27455 splitter preparation statements.
27456 * config/i386/sse.md (*vec_extract* splitters): Ditto.
27457 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
27460 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27462 * gimple-ssa-strength-reduction.c (count_candidates): Change
27463 return value to int.
27464 (analyze_candidates_and_replace): Change type of length to int.
27466 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
27468 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
27469 (*vec_extract<mode>): Use VI12_128 mode iterator.
27470 (*vec_extract<mode>_mem): Ditto.
27471 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
27474 2013-05-08 Diego Novillo <dnovillo@google.com>
27479 2012-08-17 Diego Novillo <dnovillo@google.com>
27482 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
27483 * config.in: Regenerate.
27484 * configure: Regenerate.
27485 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
27487 2013-05-08 Jan Hubicka <jh@suse.cz>
27490 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
27491 * cgraph.h (symtab_node_base): Add unique_name.
27492 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
27493 input_overwrite_node, input_varpool_node): Stream unique_name.
27494 * cgraphclones.c (cgraph_create_virtual_clone,
27495 cgraph_function_versioning): Set unique_name.
27496 * ipa.c (function_and_variable_visibility): Set unique_name.
27498 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27500 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
27501 (alloc_cand_and_find_basis): Restrict conditional candidate
27502 processing to CAND_MULTs.
27504 2013-05-08 Jan Hubicka <jh@suse.cz>
27507 lto-symtab.c (lto_symtab_symbol_p): New function.
27508 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
27509 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
27510 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
27511 Skip static symbols.
27513 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
27515 PR tree-optimization/57200
27516 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
27517 Only call inform if the preceding warning_at returns true.
27519 2013-05-07 Han Shen <shenhan@google.com>
27521 * cfgexpand.c (record_or_union_type_has_array_p): New function.
27522 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
27523 * common.opt (fstack-protector-strong): New option.
27524 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
27525 * doc/invoke.texi (Optimization Options): Document
27526 "-fstack-protector-strong".
27527 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
27529 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
27531 * config/mips/mips.c (mips_machine_reorg2): Return 0.
27533 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
27535 * ira.c (update_equiv_regs): Add insn having equiv memory even if
27536 it is not lhs of the insn.
27537 (setup_reg_equiv): Remove insn having equiv memory which it is not
27539 * lra-constraints.c (process_address): Try to improve generation
27540 code for address base + disp.
27541 (lra_constraints): Make correct the code for checking insn setting
27542 up backward equivalence. Remove insn only if it is in the init
27544 * lra-eliminations.c (update_reg_eliminate): Change return value.
27545 (lra_eliminate): Use the result.
27547 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
27549 * config/i386/sse.md (ssescalarnummask): New mode attribute.
27550 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
27551 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
27552 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
27553 register target operands.
27554 (*vec_extractv8hi_sse2): New pattern.
27555 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
27556 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
27557 (*vec_extract<mode>_mem): New insn and split pattern.
27559 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
27561 * config/arm/arm.c (arm_asan_shadow_offset): New function.
27562 (TARGET_ASAN_SHADOW_OFFSET): Define.
27563 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
27564 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
27566 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27568 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
27569 (incr_vec_index): Return -1 if increment not found.
27570 (create_add_on_incoming_edge): Assert if increment not found.
27571 (record_increment): Limit number of increments recorded.
27572 (all_phi_incrs_profitable): Return false if an increment not found.
27573 (replace_profitable_candidates): Don't process increments that were
27575 (analyze_candidates_and_replace): Limit size of incr_vec.
27577 2013-05-07 Richard Biener <rguenther@suse.de>
27579 * calls.c (special_function_p): setjmp-like functions are leaf.
27580 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
27581 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
27583 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
27585 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
27586 (aarch64_simd_mov<mode>): New expander.
27587 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
27588 (aarch64_simd_mov_to_<mode>high): Likewise.
27589 (aarch64_simd_mov_from_<mode>low): Likewise.
27590 (aarch64_simd_mov_from_<mode>high): Likewise.
27591 (aarch64_dup_lane<mode>): Update.
27592 (aarch64_dup_lanedi): New instruction pattern.
27593 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
27594 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
27596 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27598 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
27599 (replace_mult_candidate): Remove unnecessary argument; remove
27600 unnecessary parameter from call to introduce_cast_before_cand.
27601 (replace_unconditional_candidate): Remove unnecessary parameter
27602 from call to replace_mult_candidate.
27603 (replace_conditional_candidate): Likewise.
27604 (insert_initializers): Use make_temp_ssa_name.
27605 (introduce_cast_before_cand): Remove unnecessary argument; use
27606 make_temp_ssa_name.
27607 (replace_one_candidate): Remove unnecessary argument; remove
27608 unnecessary parameter from calls to introduce_cast_before_cand.
27609 (replace_profitable_candidates): Remove unnecessary parameters
27610 from calls to replace_one_candidate.
27612 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27614 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
27615 phi def as possibly hiding a basis for a CAND_ADD whose operands
27616 have been commuted in the analysis.
27617 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
27619 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
27621 * config/aarch64/aarch64.md
27622 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
27623 shift value between 0-4.
27625 2013-05-07 Richard Biener <rguenther@suse.de>
27627 * double-int.h (rshift): New overload.
27628 * double-int.c (rshift): New function.
27629 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
27630 (create_reference_ops_from_ref): Remove.
27631 (vn_reference_insert): Use shared ops for constructing the
27632 reference and copy it.
27634 2013-05-07 Richard Biener <rguenther@suse.de>
27636 PR middle-end/57190
27637 * tree-eh.c (sink_clobbers): Properly propagate
27638 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
27640 2013-05-07 Jakub Jelinek <jakub@redhat.com>
27642 PR tree-optimization/57149
27643 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
27644 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
27645 collect_phi_def_edges, execute_late_warn_uninitialized): Use
27646 uninit_undefined_value_p instead of ssa_undefined_value_p.
27649 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
27650 for modifier == EXPAND_INITIALIZER.
27652 2013-05-07 Anton Blanchard <anton@samba.org>
27654 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
27655 for powerpc64 little endian.
27656 * configure: Regenerate.
27658 2013-05-06 Graham Stott <grahams@btinternet.com>
27660 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
27661 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
27662 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
27663 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
27665 2013-05-06 Graham Stott <grahams@btinternet.com>
27667 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
27668 codes which allow non-lvalues.
27670 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
27672 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
27673 components are all 1s.
27674 (integer_minus_onep): New function.
27675 * tree.h (integer_minus_onep): Declare it.
27676 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
27677 integer_minus_onep instead of integer_all_onesp.
27679 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
27682 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
27683 variations of these patterns.
27685 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
27687 * config/i386/i386.md (isa): Add x64_sse4 member.
27688 (enabled): Handle x64_sse4.
27689 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
27690 instruction for 64bit SSE4_1 targets. Update insn attributes.
27691 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
27692 instruction for SSE4_1 targets. Update insn attributes.
27693 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
27694 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
27695 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
27697 (*vec_extractv4si): Rename from *sse4_1_pextrd.
27698 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
27699 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
27701 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
27704 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
27706 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
27708 * final.c (do_assembler_dialects): Don't handle curly braces and
27709 vertical bar escaped by % as dialect delimiters.
27710 (output_asm_insn): Print curly braces and vertical bar if escaped
27711 by % and ASSEMBLER_DIALECT defined.
27712 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
27713 * doc/tm.texi: Regenerated.
27715 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
27717 * config/mips/mips.c: Include tree-pass.h.
27718 (mips_reorg): Split in pre- and post-dbr_schedule parts.
27719 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
27720 (pass_mips_machine_reorg2): New machine specific pass.
27721 (insert_pass_mips_machine_reorg2): New pass plugin definition.
27722 (mips_option_override): Register the new pass.
27723 * rtl.h (cleanup_barriers): Remove prototype.
27724 (dbr_schedule): Likewise.
27725 * jump.c (cleanup_barriers): Make static.
27726 * reorg.c (dbr_schedule): Likewise.
27728 2013-05-06 Richard Biener <rguenther@suse.de>
27730 PR tree-optimization/57185
27731 * tree-parloops.c (add_field_for_reduction): Handle anonymous
27732 SSA names properly.
27734 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
27737 * config/i386/i386.c (add_parameter_dependencies): Add dependence
27738 between "first_arg" and "insn", not "last" and "insn".
27740 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27742 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
27743 (find_candidates_in_block): Re-enable slsr_process_phi.
27744 (create_phi_basis): Fix double counting of candidate adjustment.
27746 2013-05-06 Richard Biener <rguenther@suse.de>
27748 PR middle-end/57147
27749 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
27750 the edge is also fallthru, preserve it and just clear the
27752 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
27753 also complex, preserve that and just clear the fallthru flag.
27754 * tree-inline.c (update_ssa_across_abnormal_edges): Also
27755 update virtual operands.
27757 2013-05-06 Alan Modra <amodra@gmail.com>
27759 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
27760 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
27761 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
27762 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
27763 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
27764 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
27766 2013-05-06 Alan Modra <amodra@gmail.com>
27768 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
27769 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
27770 (DEFAULT_ASM_ENDIAN): Define.
27771 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
27772 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
27773 Update -K PIC clause from sysv4.h.
27774 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
27775 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
27777 2013-05-06 Alan Modra <amodra@gmail.com>
27779 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
27780 twice for little-endian.
27781 (ashrdi3_no_power, ashrdi3): Support little-endian.
27783 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
27786 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
27787 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
27789 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
27790 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
27791 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
27794 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
27795 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27797 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
27798 * config/pa/pa.opt: Make mbig-switch a no-op.
27799 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
27800 (CASE_VECTOR_MODE): Always return SImode.
27801 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
27802 for the !TARGET_BIG_SWITCH case.
27803 * config/pa/pa-linux.h: Likewise.
27804 * config/pa/pa-openbsd.h: Likewise.
27805 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
27806 * config/pa/pa.md (short_jump): Remove define_insn.
27807 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
27808 (casesi0): Remove define_insn.
27809 (type): Remove btable_branch.
27810 (pa_combine_type): Likewise.
27811 (in_nullified_branch_delay): Likewise.
27812 (in_call_delay): Likewise.
27813 (define_delay): Likewise.
27814 (define_insn_reservation "Z3"): Likewise.
27815 (define_insn_reservation "Z4"): Likewise.
27816 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
27817 (pa_adjust_insn_length): Remove adjustment for btable branches.
27818 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
27821 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
27823 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
27824 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
27825 Add m->r,x alternatives.
27826 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
27827 splitters using SWI48x mode iterator.
27828 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
27829 TARGET_64BIT. Add m->x alternative.
27830 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
27831 Add o->x alternative. Enable for TARGET_SSE.
27832 (sse_storeq): Remove expander.
27833 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
27834 with memory input operand.
27835 (*vec_extractv2di_1 splitter): New.
27836 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
27837 * config/i386/i386.md (ssevecmodelower): New mode attribute.
27839 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
27841 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
27842 (INT_LOWPART): Delete.
27843 (extract_MB): Adjust.
27844 (extract_ME): Adjust.
27845 (print_operand): Adjust.
27847 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
27849 * config/rs6000/predicates.md (reg_or_add_cint_operand,
27850 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
27851 (reg_or_logical_cint_operand, easy_fp_constant,
27852 logical_const_operand): Delete "CONST_DOUBLE" case.
27853 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
27854 "HOST_BITS_PER_WIDE_INT == 64" test.
27855 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
27856 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
27857 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
27858 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
27860 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
27861 CONST_DOUBLE DImode/VOIDmode case.
27862 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
27863 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
27864 CONST_DOUBLE VOIDmode case.
27865 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
27866 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
27867 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
27868 Delete CONST_DOUBLE case.
27869 (splitters for mov FMOVE64 const_double): Delete
27870 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
27871 "HOST_BITS_PER_WIDE_INT >= 64" test.
27872 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
27874 (mov DI const_double): Delete.
27876 2013-05-04 Jakub Jelinek <jakub@redhat.com>
27878 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
27879 on op shows all bits zero in mode of a lowpart subreg, return zero.
27881 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
27884 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
27885 to save TFmode registers and DImode to save TImode registers for
27886 caller save operations.
27887 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
27888 mark being partially clobbered since they only use the first
27891 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
27892 and TDmode only use the upper 64-bits of each VSX register.
27894 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27896 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
27897 (find_candidates_in_block): Disable slsr_process_phi.
27899 2013-05-03 Guozhi Wei <carrot@google.com>
27901 * coverage.c (coverage_obj_init): Move the construction of gcov
27903 (build_init_ctor): ... here.
27905 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27907 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
27908 (slsr_cand_d): Redefine def_phi.
27909 (stride_status, phi_adjust_status, count_phis_status): New enums.
27910 (find_phi_def): New.
27911 (find_basis_for_base_expr): New.
27912 (find_basis_for_candidate): Handle hidden bases.
27913 (alloc_cand_and_find_basis): Handle phi candidates.
27914 (slsr_process_phi): New.
27915 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
27916 (create_mul_imm_cand): Likewise.
27917 (create_add_ssa_cand): Exclude phi base candidates.
27918 (create_add_imm_cand): Likewise.
27919 (slsr_process_cast): Likewise.
27920 (slsr_process_copy): Likewise.
27921 (find_candidates_in_block): Handle phi candidates.
27922 (dump_candidate): Likewise.
27923 (unconditional_cands): Delete.
27924 (unconditional_cands_with_known_stride_p): Delete.
27925 (phi_dependent_cand_p): New.
27926 (cand_increment): Handle phi-dependent candidates.
27927 (replace_dependent): Delete.
27928 (replace_mult_candidate): New.
27929 (replace_unconditional_candidate): New.
27930 (incr_vec_index): Move to avoid forward reference.
27931 (create_add_on_incoming_edge): New.
27932 (create_phi_basis): New.
27933 (replace_dependents): Delete.
27934 (replace_conditional_candidate): New.
27935 (phi_add_costs): New.
27936 (replace_uncond_cands_and_profitable_phis): New.
27937 (record_increment): Handle phi adjustments.
27938 (record_phi_increments): New.
27939 (record_increments): Handle phi adjustments.
27940 (phi_incr_cost): New.
27941 (lowest_cost_path): Handle phis.
27942 (total_savings): Likewise.
27943 (analyze_increments): Likewise.
27944 (ncd_with_phi): New.
27945 (ncd_of_cand_and_phis): New.
27946 (nearest_common_dominator_for_cands): Handle phi increments.
27947 (all_phi_incrs_profitable): New.
27948 (replace_profitable_candidates): Handle phi-dependent candidates.
27949 (analyze_candidates_and_replace): Likewise.
27951 2013-05-03 Teresa Johnson <tejohnson@google.com>
27954 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
27955 do not exceed REG_BR_PROB_BASE.
27957 2013-05-03 Jeff Law <law@redhat.com>
27959 PR tree-optimization/57144
27960 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
27961 operand of the condition will bit into the new type when eliminating
27962 a cast feeding a condition.
27964 2013-05-03 Jakub Jelinek <jakub@redhat.com>
27966 PR rtl-optimization/57130
27967 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
27968 of COMPARE as in_code to the recursive call if needed.
27970 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
27972 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
27973 (enabled): Handle new members.
27974 * config/i386/sse.md (*vec_concatv2si): Merge from
27975 *vec_concatv2si_sse2 and vec_concatv2si_sse.
27976 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
27978 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
27980 PR tree-optimization/57027
27981 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
27982 for fnms opportunity, check we got the prerequisite kind
27983 of tree / gimple before using accessor functions.
27985 2013-05-03 Richard Biener <rguenther@suse.de>
27987 * double-int.h (lshift): New overload without precision
27988 and arith argument.
27989 (operator *=, operator +=, operator -=): Move ...
27990 * double-int.c (operator *=, operator +=, operator -=): ... here
27991 and implement more efficiently.
27992 (mul_double_with_sign): Remove.
27993 (lshift_double): Adjust to take unsinged shift argument, push
27994 dispatching code to callers.
27995 (mul_double_wide_with_sign): Add early out for callers that
27996 are not interested in high parts or overflow.
27997 (lshift): New function.
27998 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
27999 dispatch code here.
28000 (lrotate, rrotate): Use logical shifts.
28001 * expr.c (get_inner_reference): Use lshift.
28002 * fixed-value.c (do_fixed_divide): Likewise.
28003 * tree-dfa.c (get_ref_base_and_extent): Likewise.
28004 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
28005 (indirect_refs_may_alias_p): Likewise.
28006 (stmt_kills_ref_p_1): Likewise.
28008 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
28010 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
28012 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
28014 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
28015 scalar form of FABD instruction.
28017 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
28019 * lra-constraints.c (process_alt_operands): Add checking alt
28020 number to choose the best alternative.
28022 2013-05-02 Richard Biener <rguenther@suse.de>
28024 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
28025 bitmap and its handling.
28026 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
28028 2013-05-02 Richard Biener <rguenther@suse.de>
28030 PR middle-end/57140
28031 * tree-inline.c (copy_loops): Properly handle removed loops.
28032 (copy_cfg_body): Mark destination loops for fixup if source
28033 loops needed fixup.
28035 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
28038 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
28039 generating simple_return for naked functions.
28041 2013-05-02 Martin Jambor <mjambor@suse.cz>
28043 PR middle-end/56988
28044 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
28045 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
28047 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
28048 ipa_agg_replacement_value structures.
28049 (known_aggs_to_agg_replacement_list): Likewise.
28050 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
28051 (read_agg_replacement_chain): Likewise.
28052 (ipcp_transform_function): Also check that by_ref flags match.
28054 2013-05-02 Richard Biener <rguenther@suse.de>
28056 * graphds.h (struct graph): Add obstack member.
28057 * graphds.c (new_graph): Initialize obstack and allocate
28059 (add_edge): Allocate edge from the obstack.
28060 (free_graph): Free the obstack instead of all edges and vertices.
28062 2013-05-02 Teresa Johnson <tejohnson@google.com>
28064 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
28066 * cfg.c (update_bb_profile_for_threading): Ditto.
28067 * tree-inline.c (copy_bb): Ditto.
28068 (copy_edges_for_bb): Ditto.
28069 (initialize_cfun): Ditto.
28070 (copy_cfg_body): Ditto.
28071 (expand_call_inline): Ditto.
28072 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
28073 (estimate_node_size_and_time): Ditto.
28074 (inline_merge_summary): Ditto.
28075 * cgraphclones.c (cgraph_clone_edge): Ditto.
28076 (cgraph_clone_node): Ditto.
28077 * sched-rgn.c (compute_dom_prob_ps): Ditto.
28078 (compute_trg_info): Ditto.
28080 2013-05-02 Ian Bolton <ian.bolton@arm.com>
28082 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
28083 S reg when fp attribute set.
28084 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
28086 2013-05-02 Ian Bolton <ian.bolton@arm.com>
28088 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
28090 (*and_one_cmplsi3_compare0_uxtw): Likewise.
28091 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
28092 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
28094 2013-05-02 Richard Biener <rguenther@suse.de>
28096 * tree-scalar-evolution.c (scev_info_hasher): Remove.
28097 (struct instantiate_cache_entry): New type.
28098 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
28099 (struct instantiate_cache_type): New type.
28100 (set_instantiated_value, get_instantiated_value): Remove.
28101 (get_instantiated_value_entry): New function.
28102 (instantiate_scev_name): Use the new cache and adjust.
28103 (instantiate_scev_poly): Adjust.
28104 (instantiate_scev_binary): Likewise.
28105 (instantiate_array_ref): Likewise.
28106 (instantiate_scev_convert): Likewise.
28107 (instantiate_scev_not): Likewise.
28108 (instantiate_scev_3): Likewise.
28109 (instantiate_scev_2): Likewise.
28110 (instantiate_scev_r): Likewise.
28111 (instantiate_scev): Likewise.
28112 (resolve_mixers): Likewise.
28114 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
28117 * lra-constraints.c (best_small_class_operands_num): Remove.
28118 (process_alt_operands): Remove small_class_operands_num. Take
28119 small classes operands into losers and only if the operand is not
28120 matched. Modify debugging output.
28121 (curr_insn_transform): Remove best_small_class_operands_num.
28124 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28126 * config/aarch64/aarch64-builtins.c
28127 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
28128 * config/aarch64/aarch64-simd-builtins.def
28129 (reduc_splus_): Add new modes.
28130 (reduc_uplus_): New.
28131 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
28132 (reduc_uplus_v4sf): Likewise.
28133 (reduc_splus_v4sf): Likewise.
28134 (aarch64_addv<mode>): Likewise.
28135 (reduc_uplus_<mode>): Likewise.
28136 (reduc_splus_<mode>): Likewise.
28137 (aarch64_addvv2di): Likewise.
28138 (reduc_uplus_v2di): Likewise.
28139 (reduc_splus_v2di): Likewise.
28140 (aarch64_addvv2si): Likewise.
28141 (reduc_uplus_v2si): Likewise.
28142 (reduc_splus_v2si): Likewise.
28143 (reduc_<sur>plus_<mode>): New.
28144 (reduc_<sur>plus_v2di): Likewise.
28145 (reduc_<sur>plus_v2si): Likewise.
28146 (reduc_<sur>plus_v4sf): Likewise.
28147 (aarch64_addpv4sf): Likewise.
28148 * config/aarch64/arm_neon.h
28149 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
28150 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
28151 add UNSPEC_SADDV, UNSPEC_UADDV.
28153 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
28155 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28157 * config/aarch64/arm_neon.h
28158 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
28160 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28162 * config/aarch64/aarch64-builtins
28163 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
28165 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28167 * config/aarch64/aarch64-simd-builtins.def
28168 (reduc_smax_): New.
28169 (reduc_smin_): Likewise.
28170 (reduc_umax_): Likewise.
28171 (reduc_umin_): Likewise.
28172 (reduc_smax_nan_): Likewise.
28173 (reduc_smin_nan_): Likewise.
28176 (smax): Update for V2SF, V4SF and V2DF modes.
28179 (smin_nan): Likewise.
28180 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
28181 (<su><maxmin><mode>3): ...This, refactor.
28182 (s<maxmin><mode>3): New.
28183 (<maxmin_uns><mode>3): Likewise.
28184 (reduc_<maxmin_uns>_<mode>): Refactor.
28185 (reduc_<maxmin_uns>_v4sf): Likewise.
28186 (reduc_<maxmin_uns>_v2si): Likewise.
28187 (aarch64_<fmaxmin><mode>: Remove.
28188 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
28190 (vmin<q>_f<32,64>): Likewise.
28191 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
28193 (su): Add mappings for smax, smin, umax, umin.
28195 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
28196 (FMAXMIN): Rename as...
28197 (FMAXMIN_UNS): ...This.
28199 (fmaxminv): Likewise.
28200 (fmaxmin): Likewise.
28202 (maxmin_uns_op): Likewise.
28204 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28206 * config/aarch64/arm_neon.h
28207 (vac<ge, gt><sd>_f<32, 64>): Rename to...
28208 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
28209 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
28211 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28213 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
28214 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
28216 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28218 * config/aarch64/aarch64-simd.md
28219 (vcond<mode>_internal): Handle special cases for constant masks.
28220 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
28221 (vcondu<mode><mode>): Likewise.
28222 (vcond<v_cmp_result><mode>): New.
28224 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28226 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
28227 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
28228 * config/aarch64/aarch64-simd-builtins.def
28229 (cmeq): Update to BUILTIN_VALLDI.
28234 * config/aarch64/arm_neon.h
28235 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
28236 to builtins or C as appropriate.
28238 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28240 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
28242 (cmhi): Rename to...
28244 * config/aarch64/aarch64-simd.md
28245 (simd_mode): Add SF.
28246 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
28247 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
28248 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
28249 (cstore<mode>_neg): ...This.
28250 * config/aarch64/iterators.md
28252 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
28253 (COMPARISONS): New.
28254 (UCOMPARISONS): Likewise.
28255 (optab): Add missing comparisons.
28261 (VCMP_S): Likewise.
28262 (VCMP_U): Likewise.
28263 (V_cmp_result): Add DF, SF modes.
28264 (v_cmp_result): Likewise.
28266 (vmtype): Likewise.
28267 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
28269 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
28271 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
28272 define_insn to define_insn_and_split.
28273 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
28274 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
28275 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
28276 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
28277 (thumb2_negscc): Likewise.
28279 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
28281 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
28283 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
28285 * config/arm/thumb2.md: Remove trailing whitespaces.
28287 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
28289 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
28290 Use gen_int_mode rather than GEN_INT.
28292 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
28294 * value-prof.c (stream_in_histogram_value): Remove the strayed
28297 2013-04-30 Richard Biener <rguenther@suse.de>
28299 PR middle-end/57122
28300 * cfghooks.c (split_edge): Properly check for the loop latch edge.
28302 2013-04-30 Richard Biener <rguenther@suse.de>
28304 PR middle-end/57107
28305 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
28307 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
28309 PR rtl-optimization/56957
28310 PR rtl-optimization/57105
28311 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
28312 variable. Use just INSN_UID for determining whether an insn
28313 should be only disconnected from the insn stream.
28314 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
28316 2013-04-30 Jakub Jelinek <jakub@redhat.com>
28318 PR tree-optimization/57104
28319 * tsan.c (instrument_expr): Don't instrument accesses to
28320 DECL_HARD_REGISTER VAR_DECLs.
28322 2013-04-30 Richard Biener <rguenther@suse.de>
28324 * function.h (loops_for_fn): New inline function.
28325 (set_loops_for_fn): Likewise.
28326 * cfgloop.h (place_new_loop): Add struct function parameter.
28327 (get_loop): Likewise.
28328 (get_loops): Likewise.
28329 (number_of_loops): Likewise.
28330 (fel_next): Adjust.
28331 (fel_init): Likewise.
28332 * cfg.c (get_loop_copy): Adjust.
28333 * cfgloop.c (flow_loops_dump): Likewise.
28334 (record_loop_exits): Likewise.
28335 (verify_loop_structure): Likewise.
28336 * cfgloopanal.c (mark_irreducible_loops): Likewise.
28337 (estimate_reg_pressure_cost): Likewise.
28338 (mark_loop_exit_edges): Likewise.
28339 * cfgloopmanip.c (place_new_loop): Likewise.
28340 (add_loop): Likewise.
28341 (duplicate_loop): Likewise.
28342 * graph.c (draw_cfg_nodes): Likewise.
28343 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
28344 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
28345 (extract_affine_chrec): Likewise.
28346 (build_scop_iteration_domain): Likewise.
28347 * graphite.c (graphite_initialize): Likewise.
28348 * ira-build.c (create_loop_tree_nodes): Likewise.
28349 (more_one_region_p): Likewise.
28350 (rebuild_regno_allocno_maps): Likewise.
28351 (mark_loops_for_removal): Likewise.
28352 (mark_all_loops_for_removal): Likewise.
28353 (remove_unnecessary_regions): Likewise.
28354 (ira_build): Likewise.
28355 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
28356 * loop-init.c (fix_loop_structure): Likewise.
28357 (gate_rtl_move_loop_invariants): Likewise.
28358 (gate_rtl_unswitch): Likewise.
28359 (gate_rtl_unroll_and_peel_loops): Likewise.
28360 (rtl_doloop): Likewise.
28361 * lto-streamer-in.c (input_cfg): Likewise.
28362 * lto-streamer-out.c (output_cfg): Likewise.
28363 * modulo-sched.c (sms_schedule): Likewise.
28364 * predict.c (tree_estimate_probability): Likewise.
28365 (tree_estimate_probability_driver): Likewise.
28366 (estimate_loops): Likewise.
28367 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
28368 (move_sese_region_to_fn): Likewise.
28369 (debug_loop_num): Likewise.
28370 * tree-chrec.c (chrec_evaluate): Likewise.
28371 (hide_evolution_in_other_loops_than_loop): Likewise.
28372 (chrec_component_in_loop_num): Likewise.
28373 (reset_evolution_in_loop): Likewise.
28374 (evolution_function_is_invariant_rec_p): Likewise.
28375 * tree-if-conv.c (main_tree_if_conversion): Likewise.
28376 * tree-inline.c (copy_loops): Likewise.
28377 (copy_cfg_body): Likewise.
28378 (tree_function_versioning): Likewise.
28379 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
28380 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
28382 (add_to_evolution_1): Likewise.
28383 (scev_const_prop): Likewise.
28384 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
28385 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
28386 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
28387 (tree_ssa_lim_initialize): Likewise.
28388 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
28389 (verify_loop_closed_ssa): Likewise.
28390 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
28391 (tree_ssa_loop_im): Likewise.
28392 (tree_ssa_loop_unswitch): Likewise.
28393 (tree_vectorize): Likewise.
28394 (check_data_deps): Likewise.
28395 (tree_ssa_loop_ivcanon): Likewise.
28396 (tree_ssa_loop_bounds): Likewise.
28397 (tree_complete_unroll): Likewise.
28398 (tree_complete_unroll_inner): Likewise.
28399 (tree_parallelize_loops): Likewise.
28400 (tree_ssa_loop_prefetch): Likewise.
28401 (tree_ssa_loop_ivopts): Likewise.
28402 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
28403 * tree-vectorizer.c (vectorize_loops): Likewise.
28405 2013-04-29 Mike Frysinger <vapier@gentoo.org>
28407 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
28408 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
28409 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
28410 with EABI_LINK_SPEC.
28412 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
28415 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
28418 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
28421 * lra-constraints.c (process_alt_operands): Discourage a bit more
28422 using memory for pseudos. Print cost dump for alternatives.
28423 Modify cost values for conflicts with early clobbers.
28424 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
28426 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
28429 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
28431 2013-04-29 Ian Bolton <ian.bolton@arm.com>
28433 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
28434 from/to S register.
28435 (movdi_aarch64): Support LDR/STR from/to D register.
28437 2013-04-29 Ian Bolton <ian.bolton@arm.com>
28439 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
28440 or higher by default.
28442 2013-04-29 Richard Biener <rguenther@suse.de>
28444 PR middle-end/57075
28445 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
28446 even if not adding abnormal edges for calls that can make
28449 2013-04-29 Richard Biener <rguenther@suse.de>
28451 PR middle-end/57103
28452 * tree-cfg.c (move_stmt_op): Fix condition under which to update
28454 (move_stmt_r): Remove redundant checking.
28456 2013-04-29 Teresa Johnson <tejohnson@google.com>
28459 * basic-block.h (apply_scale): New function.
28460 (apply_probability): Use apply_scale.
28461 * gimple-streamer-in.c (input_bb): Ditto.
28462 * lto-streamer-in.c (input_cfg): Ditto.
28463 * lto-cgraph.c (merge_profile_summaries): Ditto.
28464 * tree-optimize.c (execute_fixup_cfg): Ditto.
28465 * tree-inline.c (copy_bb): Update comment to use apply_scale.
28466 (copy_edges_for_bb): Ditto.
28467 (copy_cfg_body): Ditto.
28469 2013-04-29 Tom de Vries <tom@codesourcery.com>
28471 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
28472 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
28473 (tail_merge_optimize): Handle current_loops == NULL.
28475 2013-04-26 Jeff Law <law@redhat.com>
28477 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
28478 (simplify_cond_using_ranges): Generalize code to simplify
28479 COND_EXPRs where one argument is a constant and the other
28480 is an SSA_NAME created by an integral type conversion.
28482 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28484 * config/arm/arm.md (store_minmaxsi): Use only when
28485 optimize_insn_for_size_p.
28487 2013-04-29 Christian Bruel <christian.bruel@st.com>
28490 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
28492 2013-04-29 Richard Biener <rguenther@suse.de>
28494 PR middle-end/57089
28495 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
28496 loop tree make sure to schedule a fixup for the child as well.
28497 (expand_omp_for_generic): Properly add loops.
28498 (expand_omp_for_static_nochunk): Likewise.
28499 (expand_omp_for_static_chunk): Likewise.
28500 (expand_omp_for): For the degenerate case fixup loops.
28501 (expand_omp_sections): Fix default bb placement in loops.
28502 (expand_omp_atomic_pipeline): Properly add loops.
28504 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28506 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
28508 2013-04-29 Tom de Vries <tom@codesourcery.com>
28510 * tree-ssa-tail-merge.c: Update header comment.
28512 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28514 * config/aarch64/arm_neon.h
28515 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
28516 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
28517 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
28518 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
28519 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
28520 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
28521 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
28522 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
28524 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28526 * config/aarch64/aarch64-simd.md
28527 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
28528 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
28529 fix_trunc, fixuns_trunc.
28530 (ftrunc<VDQF:mode>2): New.
28531 * config/aarch64/iterators.md (optab): Add fix, fixuns.
28532 (fix_trunc_optab): New.
28534 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28536 * config/aarch64/aarch64-builtins.c
28537 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
28538 iceilf, lround, iroundf.
28540 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
28543 * config/i386/i386.h (enum ix86_tune_indices)
28544 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
28545 New, split from X86_TUNE_INTER_UNIT_MOVES.
28546 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
28547 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
28548 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
28549 (TARGET_INTER_UNIT_MOVES): Remove.
28550 * config/i386/i386.c (initial_ix86_tune_features): Update.
28551 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
28552 (ix86_expand_convert_uns_didf_sse): Use
28553 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
28554 (ix86_expand_vector_init_one_nonzero): Ditto.
28555 (ix86_expand_vector_init_interleave): Ditto.
28556 (inline_secondary_memory_needed): Return true for moves from SSE class
28557 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
28558 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
28559 * config/i386/constraints.md (Yi, Ym): Depend on
28560 TARGET_INTER_UNIT_MOVES_TO_VEC.
28561 (Yj, Yn): New constraints.
28562 * config/i386/i386.md (*movdi_internal): Change constraints of
28563 operand 1 from Yi to Yj and from Ym to Yn.
28564 (*movsi_internal): Ditto.
28565 (*movdf_internal): Ditto.
28566 (*movsf_internal): Ditto.
28567 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
28568 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
28569 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
28570 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
28571 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
28572 * config/i386/sse.md (movdi_to_sse): Ditto.
28573 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
28574 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
28575 TARGET_INTER_UNIT_MOVES.
28576 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
28577 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
28578 instead of TARGET_INTER_UNIT_MOVES.
28579 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
28580 operand 1 from Yi to Yj and from Ym to Yn.
28582 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28584 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
28585 (float_truncate_hi_): Likewise.
28586 (float_extend_lo_): Likewise.
28587 (float_truncate_lo_): Likewise.
28588 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
28589 (aarch64_float_extend_lo_v2df): Likewise.
28590 (vec_unpacks_hi_v4sf): Likewise.
28591 (aarch64_float_truncate_lo_v2sf): Likewise.
28592 (aarch64_float_truncate_hi_v4sf): Likewise.
28593 (vec_pack_trunc_v2df): Likewise.
28594 (vec_pack_trunc_df): Likewise.
28596 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28598 * config/aarch64/aarch64-builtins.c
28599 (aarch64_fold_builtin): Fold float conversions.
28600 * config/aarch64/aarch64-simd-builtins.def
28601 (floatv2si, floatv4si, floatv2di): New.
28602 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
28603 * config/aarch64/aarch64-simd.md
28604 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
28605 * config/aarch64/iterators.md (FLOATUORS): New.
28606 (optab): Add float, floatuns.
28607 (su_optab): Likewise.
28609 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28611 * config/aarch64/aarch64-builtins.c
28612 (aarch64_builtin_vectorized_function): Use new names for
28614 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
28615 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
28616 (fcvtzu): Split as...
28617 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
28618 (fcvtas): Split as...
28619 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
28620 (fcvtau): Split as...
28621 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
28622 (fcvtps): Split as...
28623 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
28624 (fcvtpu): Split as...
28625 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
28626 (fcvtms): Split as...
28627 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
28628 (fcvtmu): Split as...
28629 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
28630 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
28631 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
28632 (lfrintnusf, lfrintnudf): Likewise.
28633 * config/aarch64/aarch64-simd.md
28634 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
28636 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
28637 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
28638 (fcvt_pattern): Likewise.
28640 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28642 * config/aarch64/aarch64-simd.md
28643 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
28644 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
28646 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28648 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
28649 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
28650 (vrnd<a,m,n,p>_f32): Implement using builtins.
28651 (vrnd<i,x><q>_f<32, 64>): New.
28653 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28655 * config/aarch64/aarch64-builtins.c
28656 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
28657 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
28658 (frintz): Rename to...
28660 (frintp): Rename to...
28662 (frintm): Rename to...
28664 (frinti): Rename to...
28665 (nearbyint): ...this.
28666 (frintx): Rename to...
28668 (frinta): Rename to...
28670 * config/aarch64/aarch64-simd.md
28671 (aarch64_frint<frint_suffix><mode>): Delete.
28672 (<frint_pattern><mode>2): Convert to insn.
28673 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
28674 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
28675 (frint_pattern): Likewise.
28676 (frint_suffix): Likewise.
28678 2013-04-29 Richard Biener <rguenther@suse.de>
28680 PR tree-optimization/57081
28681 * loop-init.c: Include tree-flow.h.
28682 (loop_optimizer_finalize): Free number of iteration estimates.
28683 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
28685 2013-04-29 Jakub Jelinek <jakub@redhat.com>
28687 PR tree-optimization/57083
28688 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
28689 non-singleton shift count range, zero extend low_bound for uns case.
28691 * config/i386/predicates.md (general_vector_operand): New predicate.
28692 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
28693 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
28694 if they aren't nonimmediate operands. If their original values
28695 satisfy const_vector_equal_evenodd_p, don't shift them.
28696 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
28697 predicates. For the SSE4.1 case force operands[{1,2}] into registers
28698 if not nonimmediate_operand.
28699 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
28700 instead of register_operand.
28701 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
28703 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
28705 * stor-layout.c (finalize_size_functions): Allocate a structure and
28706 reset cfun before dumping the functions.
28708 2013-04-27 Jakub Jelinek <jakub@redhat.com>
28710 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
28713 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
28714 use xop_pmacsdqh if uns_p.
28715 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
28716 the immediate rotate count.
28718 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
28720 * rtl.h (struct rtx_def): Add comment for field jump.
28721 (LRA_SUBREG_P): New macro.
28722 * recog.c (register_operand): Check LRA_SUBREG_P.
28723 * lra.c (lra): Add note at the end of RTL code. Align non-empty
28725 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
28726 (lra_final_code_change): Skip subreg change for operators.
28727 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
28728 if there are no operand changes.
28729 * lra-constraints.c (curr_insn_set): New.
28730 (match_reload): Set LRA_SUBREG_P.
28731 (emit_spill_move): Ditto.
28732 (check_and_process_move): Use curr_insn_set. Process only single
28733 set insns. Don't initialize sec_mem_p and change_p.
28734 (simplify_operand_subreg): Use LRA_SUBREG_P.
28735 (reg_in_class_p): New function.
28736 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
28737 of #ifdef. Add code to remove cycling.
28738 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
28739 non-null disp. Reload inner instead of disp when base and index
28740 are null. Try to put lo_sum into register.
28741 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
28742 (check_and_process_move): Move code for move cost check to
28743 simple_move_p. Remove equiv_substitution.
28744 (simple_move_p): New function.
28745 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
28746 curr_insn_set. Call check_and_process_move only for single set
28747 insns. Use the new function. Move call of check_and_process_move
28748 after operand equiv substitution and address process.
28750 2013-04-26 Jakub Jelinek <jakub@redhat.com>
28753 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
28754 with nonlocal goto receivers or returns twice calls, ignore
28755 unininitialized values from abnormal edges to nl goto receiver
28756 or returns twice call.
28758 2013-04-26 Jakub Jelinek <jakub@redhat.com>
28760 PR tree-optimization/57051
28761 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
28762 and VEC_RSHIFT_EXPR if shift count is a multiple of element
28765 2013-04-26 Richard Biener <rguenther@suse.de>
28767 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
28768 (expand_omp_taskreg): Likewise. Mark loops for fixup.
28769 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
28770 (fixup_loop_arrays_after_move): New function.
28771 (move_sese_region_to_fn): Properly outline the loop tree parts
28772 of the SESE region.
28774 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
28776 * config/i386/i386.md (type, unit): Fix long lines.
28778 2013-04-26 Richard Biener <rguenther@suse.de>
28780 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
28781 (lto-streamer-out.o): Likewise.
28782 * cfgloop.c (init_loops_structure): Export, add struct function
28783 argument and adjust.
28784 (flow_loops_find): Adjust.
28785 * cfgloop.h (enum loop_estimation): Add EST_LAST.
28786 (init_loops_structure): Declare.
28787 * lto-streamer-in.c: Include cfgloop.h.
28788 (input_cfg): Input the loop tree.
28789 * lto-streamer-out.c: Include cfgloop.h.
28790 (output_cfg): Output the loop tree.
28791 (output_struct_function_base): Do not drop PROP_loops.
28793 2013-03-26 Richard Biener <rguenther@suse.de>
28795 * tree-cfg.c (execute_build_cfg): Build the loop tree.
28796 (pass_build_cfg): Provide PROP_loops.
28797 (move_sese_region_to_fn): Remove loops that are outlined into fn
28799 * tree-inline.c: Include cfgloop.h.
28800 (initialize_cfun): Do not drop PROP_loops.
28801 (copy_loops): New function.
28802 (copy_cfg_body): Copy loop structure.
28803 (tree_function_versioning): Initialize destination loop tree.
28804 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
28805 (pass_parallelize_loops): Do IL verification.
28806 * loop-init.c (loop_optimizer_init): Fixup loops if required.
28807 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
28808 the CFG make sure we fixup loops as well.
28809 * tree-ssa-tail-merge.c: Include cfgloop.h.
28810 (replace_block_by): When merging loop latches mark loops for fixup.
28811 * lto-streamer-out.c (output_struct_function_base): Drop
28812 PROP_loops for now.
28813 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
28814 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
28815 * ipa-split.c: Include cfgloop.h.
28816 (split_function): Add the new return block to the loop tree root.
28817 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
28818 whether we have removed the forwarder block.
28819 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
28820 * cfgloop.h (place_new_loop): Declare.
28821 * cfgloopmanip.c (place_new_loop): Export.
28822 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
28823 (tree-switch-conversion.o): Likewise.
28824 (tree-complex.o): Likewise.
28825 (tree-inline.o): Likewise.
28826 (tree-ssa-tailmerge.o): Likewise.
28827 (ipa-split.o): Likewise.
28828 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
28829 (tree-ssa-copy.o): Likewise.
28830 * tree-switch-conversion.c: Include cfgloop.h
28831 (process_switch): If we emit a bit-test cascade, schedule loops
28833 * tree-complex.c: Include cfgloop.h.
28834 (expand_complex_div_wide): Properly add new basic-blocks to loops.
28835 * asan.c: Include cfgloop.h.
28836 (create_cond_insert_point): Properly add new basic-blocks to
28837 loops, schedule loop fixup.
28838 * cfgloop.c (verify_loop_structure): Check that looks are not
28840 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
28842 (expand_omp_for_generic): Likewise.
28843 (expand_omp_sections): Likewise.
28844 (expand_omp_atomic_pipeline): Schedule loops for fixup.
28845 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
28846 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
28847 is initialized, not when loops are present.
28848 * tree-parloops.c (parallelize_loops): Remove checking here.
28849 * passes.c (init_optimization_passes): Schedule a copy-propagation
28850 pass before complete unrolling of inner loops.
28852 2013-04-26 Jakub Jelinek <jakub@redhat.com>
28854 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
28855 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
28856 (colorize_init): Add argument to _WIN32 version.
28857 * toplev.c: Include diagnostic-color.h.
28858 (process_options): Default to -fdiagnostics-color=auto if
28859 GCC_COLORS env var is in the environment.
28860 * common.opt (fdiagnostics-color=): Add Var and Init.
28861 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
28862 env var is in the environment, the default is auto rather than never.
28864 * diagnostic.h (file_name_as_prefix): Add context argument.
28865 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
28866 the string as locus.
28867 * langhooks.c (lhd_print_error_function): Adjust caller.
28869 2013-04-25 Lawrence Crowl <crowl@google.com>
28871 * var-tracking.c (shared_hash_def::htab):
28872 Change type to hash_table. Update dependent calls and types.
28874 2013-04-25 Lawrence Crowl <crowl@google.com>
28876 * Makefile.in: Update as needed below.
28878 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
28879 Move declaration to after the type's method definitons.
28881 * attribs.c (htab_t scoped_attributes::attribute_hash):
28882 Change type to hash_table. Update dependent calls and types.
28884 * bitmap.c (htab_t bitmap_desc_hash):
28885 Change type to hash_table. Update dependent calls and types.
28887 * cselib.c (htab_t cselib_hash_table):
28888 Change type to hash_table. Update dependent calls and types.
28890 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
28891 (hash_string_slot_node): Move implementation into lto-streamer.h
28892 struct string_slot_hasher.
28893 (eq_string_slot_node): Likewise.
28895 * data-streamer-out.c: Update output_block::string_hash_table
28896 dependent calls and types.
28898 * dwarf2cfi.c (htab_t trace_index):
28899 Change type to hash_table. Update dependent calls and types.
28901 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
28902 Change type to hash_table. Update dependent calls and types.
28903 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
28904 (htab_t optimize_external_refs::map): Likewise.
28905 (htab_t output_comp_unit::extern_map): Likewise.
28906 (htab_t output_comdat_type_unit::extern_map): Likewise.
28907 (htab_t output_macinfo::macinfo_htab): Likewise.
28908 (htab_t optimize_location_lists::htab): Likewise.
28909 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
28911 * except.c (htab_t ehspec_hash_type):
28912 Change type to hash_table. Update dependent calls and types.
28913 (assign_filter_values::ttypes): Likewise.
28914 (assign_filter_values::ehspec): Likewise.
28915 (sjlj_assign_call_site_values::ar_hash): Likewise.
28916 (convert_to_eh_region_ranges::ar_hash): Likewise.
28918 * gcse.c (htab_t pre_ldst_table):
28919 Change type to hash_table. Update dependent calls and types.
28921 * ggc-common.c (htab_t saving_htab):
28922 Change type to hash_table. Update dependent calls and types.
28923 (htab_t loc_hash): Likewise.
28924 (htab_t ptr_hash): Likewise.
28925 (call_count): Rename ggc_call_count.
28926 (call_alloc): Rename ggc_call_alloc.
28927 (loc_descriptor): Rename make_loc_descriptor.
28928 (add_statistics): Rename ggc_add_statistics.
28930 * ggc-common.c (saving_htab):
28931 Change type to hash_table. Update dependent calls and types.
28933 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
28934 (push_gimplify_context): Likewise.
28935 (pop_gimplify_context): Likewise.
28936 (struct gimple_temp_hash_elt): Added.
28937 (struct gimplify_hasher): Likewise.
28938 (struct gimplify_ctx.temp_htab):
28939 Change type to hash_table. Update dependent calls and types.
28941 * gimple-fold.c: Include gimplify-ctx.h.
28943 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
28944 Change type to hash_table. Update dependent calls and types.
28945 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
28946 avoid potential global name collision.
28948 * gimplify.c: Include gimplify-ctx.h.
28949 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
28950 (htab_t gimplify_ctx::temp_htab):
28951 Update dependent calls and types for new type hash_table.
28952 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
28953 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
28955 * gimplify-ctx.h: New.
28956 (struct gimple_temp_hash_elt): Move from gimplify.c.
28957 (class gimplify_hasher): New.
28958 (struct gimplify_ctx): Move from gimple.h.
28959 (htab_t gimplify_ctx::temp_htab):
28960 Change type to hash_table. Update dependent calls and types.
28962 * graphite-clast-to-gimple.c: Include graphite-htab.h.
28963 (htab_t ivs_params::newivs_index):
28964 Change type to hash_table. Update dependent calls and types.
28965 (htab_t ivs_params::params_index): Likewise.
28966 (htab_t print_generated_program::params_index): Likewise.
28967 (htab_t gloog::newivs_index): Likewise.
28968 (htab_t gloog::params_index): Likewise.
28970 * graphite.c: Include graphite-htab.h.
28971 4htab_t graphite_transform_loops::bb_pbb_mapping):
28972 Change type to hash_table. Update dependent calls and types.
28974 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
28975 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
28976 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
28978 * graphite-dependences.c: Include graphite-htab.h.
28979 (loop_is_parallel_p): Change hash table type of parameter.
28981 * graphite-htab.h: New.
28982 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
28983 (extern find_pbb_via_hash): Move from graphite-poly.h.
28984 (extern loop_is_parallel_p): Move from graphite-poly.h.
28985 (extern get_loop_body_pbbs): Move from graphite-poly.h.
28987 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
28988 (extern loop_is_parallel_p): Move to graphite-htab.h.
28989 (extern get_loop_body_pbbs): Move to graphite-htab.h.
28991 * haifa-sched.c (htab_t delay_htab):
28992 Change type to hash_table. Update dependent calls and types.
28993 (htab_t delay_htab_i2): Likewise.
28995 * ira-color.c (htab_t allocno_hard_regs_htab):
28996 Change type to hash_table. Update dependent calls and types.
28998 * ira-costs.c (htab_t cost_classes_htab):
28999 Change type to hash_table. Update dependent calls and types.
29001 * loop-invariant.c (htab_t merge_identical_invariants::eq):
29002 Change type to hash_table. Update dependent calls and types.
29004 * loop-iv.c (htab_t bivs):
29005 Change type to hash_table. Update dependent calls and types.
29007 * loop-unroll.c (htab_t opt_info::insns_to_split):
29008 Change type to hash_table. Update dependent calls and types.
29009 (htab_t opt_info::insns_with_var_to_expand): Likewise.
29011 * lto-streamer.h (struct string_slot): Move from data-streamer.h
29012 (struct string_slot_hasher): New.
29013 (htab_t output_block::string_hash_table):
29014 Change type to hash_table. Update dependent calls and types.
29016 * lto-streamer-in.c (freeing_string_slot_hasher): New.
29017 (htab_t file_name_hash_table):
29018 Change type to hash_table. Update dependent calls and types.
29020 * lto-streamer-out.c: Update output_block::string_hash_table dependent
29023 * lto-streamer.c (htab_t tree_htab):
29024 Change type to hash_table. Update dependent calls and types.
29026 * omp-low.c: Include gimplify-ctx.h.
29028 * passes.c (htab_t name_to_pass_map):
29029 Change type to hash_table. Update dependent calls and types.
29030 (pass_traverse): Rename to passes_pass_traverse.
29032 * plugin.c (htab_t event_tab):
29033 Change type to hash_table. Update dependent calls and types.
29035 * postreload-gcse.c (htab_t expr_table):
29036 Change type to hash_table. Update dependent calls and types.
29037 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
29039 * sese.c (debug_rename_map_1): Make extern.
29040 (htab_t copy_bb_and_scalar_dependences::rename_map):
29041 Change type to hash_table. Update dependent calls and types.
29043 * sese.h (extern debug_rename_map): Move to .c file.
29045 * store-motion.c (htab_t store_motion_mems_table):
29046 Change type to hash_table. Update dependent calls and types.
29048 * trans-mem.c (htab_t tm_new_mem_hash):
29049 Change type to hash_table. Update dependent calls and types.
29051 * tree-browser.c (htab_t TB_up_ht):
29052 Change type to hash_table. Update dependent calls and types.
29054 * tree-cfg.c (htab_t discriminator_per_locus):
29055 Change type to hash_table. Update dependent calls and types.
29057 * tree-complex.c: Include tree-hasher.h
29058 (htab_t complex_variable_components):
29059 Change type to hash_table. Update dependent calls and types.
29061 * tree-eh.c (htab_t finally_tree):
29062 Change type to hash_table. Update dependent calls and types.
29064 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
29065 struct int_tree_hasher.
29066 (extern int_tree_map_eq): Likewise.
29067 (uid_decl_map_hash): Removed.
29068 (extern decl_tree_map_eq): Likewise.
29070 * tree-hasher.h: New.
29071 (struct int_tree_hasher): New.
29072 (typedef int_tree_htab_type): New.
29074 * tree-inline.c: Include gimplify-ctx.h.
29076 * tree-mudflap.c: Include gimplify-ctx.h.
29078 * tree-parloops.c: Include tree-hasher.h.
29079 (htab_t eliminate_local_variables_stmt::decl_address):
29080 Change type to hash_table. Update dependent calls and types.
29081 (htab_t separate_decls_in_region::decl_copies): Likewise.
29083 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
29084 Change type to hash_table. Update dependent calls and types.
29086 * tree-sra.c (candidates):
29087 Change type to hash_table. Update dependent calls and types.
29089 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
29091 (int_tree_map_hash): Likewise.
29093 * tree-ssa-dom.c (htab_t avail_exprs):
29094 Change type to hash_table. Update dependent calls and types.
29096 * tree-ssa-live.c (var_map_base_init::tree_to_index):
29097 Change type to hash_table. Update dependent calls and types.
29099 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
29100 Change type to hash_table. Update dependent calls and types.
29102 * tree-ssa-phiopt.c (seen_ssa_names):
29103 Change type to hash_table. Update dependent calls and types.
29105 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
29106 Change type to hash_table. Update dependent calls and types.
29108 * tree-ssa-uncprop.c (equiv):
29109 Change type to hash_table. Update dependent calls and types.
29111 2013-04-25 Jakub Jelinek <jakub@redhat.com>
29113 PR rtl-optimization/57003
29114 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
29115 call note_stores with kill_clobbered_value callback again after
29116 killing regs_invalidated_by_call.
29118 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
29120 * config/aarch64/aarch64-simd.md
29121 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
29122 (aarch64_simd_bsl<mode>): Likewise.
29123 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
29125 2013-04-25 Marek Polacek <polacek@redhat.com>
29127 PR tree-optimization/57066
29128 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
29130 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
29132 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
29134 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
29136 * config/aarch64/aarch64-builtins.c
29137 (aarch64_fold_builtin): New.
29138 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
29139 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
29140 * config/aarch64/aarch64-simd-builtins.def (abs): New.
29141 * config/aarch64/arm_neon.h
29142 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
29144 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
29145 Tejas Belagod <tejas.belagod@arm.com>
29147 * config/aarch64/aarch64-builtins.c
29148 (aarch64_gimple_fold_builtin): New.
29149 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
29150 * config/aarch64/aarch64-simd-builtins.def (addv): New.
29151 * config/aarch64/aarch64-simd.md (addpv4sf): New.
29152 (addvv4sf): Update.
29153 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
29155 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29157 * config/aarch64/aarch64.md
29158 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
29160 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29162 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
29163 (*ngcsi_uxtw): New pattern.
29165 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29166 Julian Brown <julian@codesourcery.com>
29168 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
29169 (TB_DREG): Add T_V4HF.
29170 (v4hf_UP): New macro.
29171 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
29172 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
29173 Handle initialisation of V4HF. Adjust initialisation of reinterpret
29175 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
29176 (arm_vector_mode_supported_p): Handle V4HF.
29177 (arm_mangle_map): Handle V4HFmode.
29178 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
29179 * config/arm/arm_neon_builtins.def: Add entries for
29180 vcvtv4hfv4sf, vcvtv4sfv4hf.
29181 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
29182 (neon_vcvtv4hfv4sf): Likewise.
29183 * config/arm/neon-gen.ml: Handle half-precision floating point
29185 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
29186 * config/arm/arm_neon.h: Regenerate.
29187 * config/arm/neon.ml (type elts): Add F16.
29188 (type vectype): Add T_float16x4, T_floatHF.
29189 (type vecmode): Add V4HF.
29190 (type features): Add Requires_FP_bit feature.
29191 (elt_width): Handle F16.
29192 (elt_class): Likewise.
29193 (elt_of_class_width): Likewise.
29194 (mode_of_elt): Refactor.
29195 (type_for_elt): Handle F16, fix error messages.
29196 (vectype_size): Handle T_float16x4.
29197 (vcvt_sh): New function.
29198 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
29199 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
29200 (string_of_mode): Handle V4HF.
29201 * doc/arm-neon-intrinsics.texi: Regenerate.
29203 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
29205 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
29206 format specifier in 'X' case.
29208 2013-04-25 Alan Modra <amodra@gmail.com>
29211 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
29212 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
29213 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
29214 Repeat for many other rotate/shift and mask patterns using subregs.
29215 Name lshiftrt insns.
29216 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
29217 on WORDS_BIG_ENDIAN.
29219 2013-04-25 Alan Modra <amodra@gmail.com>
29221 * config.gcc: Support little-endian powerpc-linux targets.
29222 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
29223 (LINK_OS_LINUX_SPEC): Define.
29224 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
29225 Preserve MASK_LITTLE_ENDIAN.
29226 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
29227 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
29228 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
29229 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
29230 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
29231 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
29232 Correct fp word order for little-endian. Don't shift toc entries
29233 smaller than a word for little-endian.
29234 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
29235 (bswapdi2 splits): Correct low-part subreg for little-endian.
29236 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
29237 low/high where such is correct only for be.
29238 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
29239 little-endian for -mcall-aixdesc.
29241 2013-04-25 Alan Modra <amodra@gmail.com>
29243 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
29244 replace_equiv_address_nv.
29246 2013-04-25 Alan Modra <amodra@gmail.com>
29248 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
29250 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
29253 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
29254 * rtl.h (struct rtx_def): ...
29256 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
29258 PR rtl-optimizations/57046
29259 * lra-constraints (split_reg): Set up lra_risky_transformations_p
29260 for multi-reg splits.
29262 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
29264 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
29266 2013-04-24 Sterling Augustine <saugustine@google.com>
29268 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
29269 (comp_dir_string, debug_str_dwo_section): New.
29270 (DEBUG_STR_DWO_SECTION): Rename to ...
29271 (DEBUG_DWO_STR_SECTION): ... this.
29272 (DEBUG_NORM_STR_SECTION): Delete.
29273 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
29274 (DEBUG_STR_DWO_SECTION_FLAGS): New.
29275 (find_AT_string): Move most logic to ...
29276 (find_AT_string_in_table): ... here. New.
29277 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
29278 add_skeleton_AT_string. Delete logic.
29279 (output_skeleton_debug_sections): Remove call to
29280 add_top_level_skeleton_die_attrs.
29281 (add_comp_dir_attribute): Move logic to comp_dir_string.
29282 (dwarf2out_init): Initialize debug_str_dwo_section.
29283 (output_indirect_string): Call find_string_form.
29284 (output_indirect_strings): Rewrite.
29285 (prune_unused_types): Empty skeleton_debug_str_hash.
29286 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
29287 (dwarf2out_finish): Call output_indirect_strings.
29289 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
29291 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
29293 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
29295 * rtl.h (struct rtx_def): Add comment for field jump.
29296 (LRA_SUBREG_P): New macro.
29297 * recog.c (register_operand): Check LRA_SUBREG_P.
29298 * lra.c (lra): Add note at the end of RTL code. Align non-empty
29300 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
29301 (lra_final_code_change): Skip subreg change for operators.
29302 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
29303 if there are no operand changes.
29304 * lra-constraints.c (curr_insn_set): New.
29305 (match_reload): Set LRA_SUBREG_P.
29306 (emit_spill_move): Ditto.
29307 (check_and_process_move): Use curr_insn_set. Process only single
29308 set insns. Don't initialize sec_mem_p and change_p.
29309 (simplify_operand_subreg): Use LRA_SUBREG_P.
29310 (reg_in_class_p): New function.
29311 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
29312 of #ifdef. Add code to remove cycling.
29313 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
29314 non-null disp. Reload inner instead of disp when base and index
29315 are null. Try to put lo_sum into register.
29316 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
29317 (check_and_process_move): Move code for move cost check to
29318 simple_move_p. Remove equiv_substitution.
29319 (simple_move_p): New function.
29320 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
29321 curr_insn_set. Call check_and_process_move only for single set
29322 insns. Use the new function. Move call of check_and_process_move
29323 after operand equiv substitution and address process.
29325 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
29327 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
29328 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
29329 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
29331 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
29333 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
29335 2013-04-24 Marek Polacek <polacek@redhat.com>
29337 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
29338 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
29339 (select_loops_exit_conditions): Likewise.
29340 (number_of_iterations_for_all_loops): Likewise.
29341 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
29342 (scev_analysis): Likewise.
29344 2013-04-02 Catherine Moore <clm@codesourcery.com>
29345 Chao-ying Fu <fu@mips.com>
29347 * config/mips/micromips.md (jraddiusp): New pattern.
29348 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
29349 instruction if possible.
29351 2013-04-24 Alan Modra <amodra@gmail.com>
29353 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
29355 2013-04-24 Julian Brown <julian@codesourcery.com>
29356 Chung-Lin Tang <cltang@codesourcery.com>
29358 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
29359 dependency behavior in enumeration type DIE generation. Add TODO note
29360 to comments about future DW_FORM_sdata/udata re-work of related code.
29362 2013-04-23 Lawrence Crowl <crowl@google.com>
29364 * Makefile.in: Update as needed below.
29366 * hash-table.h (class hash_table):
29367 Correct many methods with parameter types compare_type to the correct
29368 value_type. (Correct code was unlikely to notice the change.)
29369 (hash_table::elements_with_deleted) New.
29370 (class hashtable::iterator): New.
29371 (hashtable::begin()): New.
29372 (hashtable::end()): New.
29373 (FOR_EACH_HASH_TABLE_ELEMENT): New.
29375 * statistics.c (statistics_hashes):
29376 Change type to hash_table. Update dependent calls and types.
29378 * tree-into-ssa.c (var_infos):
29379 Change type to hash_table. Update dependent calls and types.
29381 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
29382 Change type to hash_table. Update dependent calls and types.
29384 * tree-ssa-loop-im.c (struct mem_ref.refs):
29385 Change type to hash_table. Update dependent calls and types.
29387 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
29388 Change type to hash_table. Update dependent calls and types.
29390 * tree-ssa-sccvn.c (vn_tables_s::nary):
29391 Change type to hash_table. Update dependent calls and types.
29392 (vn_tables_s::phis): Likewise.
29393 (vn_tables_s::references): Likewise.
29395 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
29396 (vn_reference_eq): Update parameter and return types.
29398 * tree-ssa-structalias.c (pointer_equiv_class_table):
29399 Change type to hash_table. Update dependent calls and types.
29400 (location_equiv_class_table): Likewise.
29402 * tree-vect-data-refs.c: Consequential changes for making
29403 peeling a hash_table.
29405 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
29406 (destroy_loop_vec_info): Dependent hash_table update.
29408 * tree-vectorizer.h (peeling_htab):
29409 Change type to hash_table. Update dependent calls and types.
29411 2013-04-23 Shiva Chen <shiva0217@gmail.com>
29413 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
29414 to check the register content is equal or not.
29415 * lra-constraints.c (match_reload): Use lra_assign_reg_val
29416 to assign register content record.
29417 * lra-eliminations.c (update_reg_eliminate): Use
29418 lra_update_reg_val_offset to update register content offset.
29419 * lra-int.h (struct lra_reg): Add offset member.
29420 (lra_reg_val_equal_p): New static inline function.
29421 (lra_update_reg_val_offset): New static inline function.
29422 (lra_assign_reg_val): New static inline function.
29423 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
29424 to assign register content record.
29425 (initialize_lra_reg_info_element): Initial offset to zero.
29427 2013-04-23 Catherine Moore <clm@codesourcery.com>
29429 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
29430 operands. Record compression.
29432 2013-04-23 Xinliang David Li <davidxl@google.com>
29434 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
29436 2013-04-23 Richard Biener <rguenther@suse.de>
29438 PR middle-end/57036
29439 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
29440 parameter, only add abnormal goto edges from the copied body
29441 if the call could perform abnormal gotos.
29442 (copy_cfg_body): Adjust.
29444 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
29446 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
29448 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
29450 * coretypes.h (gimple_stmt_iterator): Add struct to make
29453 2013-04-23 Richard Biener <rguenther@suse.de>
29455 PR tree-optimization/57026
29456 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
29457 from SSA names occuring in abnormal PHI nodes.
29459 2013-04-22 Andi Kleen <ak@linux.intel.com>
29461 * lto/lto.c (print_lto_report_1): Fix LTO report names.
29463 2013-04-22 Andi Kleen <ak@linux.intel.com>
29465 * lto/lto.c (print_lto_report_1): Declare early.
29466 (read_cgraph_and_symbols): Call print_lto_report_1 early.
29468 2013-04-22 Andi Kleen <ak@linux.intel.com>
29470 * common.opt (-flto-report-wpa): Add.
29471 * doc/invoke.texi (-flto-report-wpa): Add.
29472 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
29475 2013-04-22 Xinliang David Li <davidxl@google.com>
29477 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
29478 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
29479 * Makefile.in: New dependency
29481 David Daney <ddaney.cavm@gmail.com>
29483 * configure.ac (gcc_cv_as_micromips_support): Use the
29484 --fatal-warnings option.
29485 * configure: Regenerate.
29487 2013-04-22 Marek Polacek <polacek@redhat.com>
29490 * tsan.c (instrument_expr): Don't instrument expression
29491 in case its size is zero.
29493 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
29497 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
29499 * config/alpha/alpha.c (TARGET_LRA_P): New define.
29501 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
29503 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
29504 (gimple_stmt_iterator): New typedef.
29505 * gimple.h (gimple_stmt_iterator): Rename to...
29506 (gimple_stmt_iterator_d): ... This.
29507 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
29508 trees be valid for GIMPLE and GENERIC.
29509 (TARGET_GIMPLE_FOLD_BUILTIN): New.
29510 * gimple-fold.c (gimple_fold_call): Call target hook
29511 gimple_fold_builtin.
29512 * hooks.c (hook_bool_gsiptr_false): New.
29513 * hooks.h (hook_bool_gsiptr_false): New.
29514 * target.def (fold_stmt): New.
29515 * doc/tm.texi: Regenerate.
29517 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
29520 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
29521 a set sp if no stack realignment.
29523 2013-04-22 Nick Clifton <nickc@redhat.com>
29525 * config.gcc (tilegx-linux): Extend extra_objs rather than
29527 (tilepro-linux): Likewise.
29529 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
29531 * config/aarch64/aarch64-builtins.c
29533 (CF0, CF1, CF2, CF3, CF4, CF10): New.
29534 (VAR<1-12>): Add MAP parameter.
29535 (BUILTIN_*): Likewise.
29536 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
29537 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
29538 (aarch64_ushl_n<mode>): Likewise.
29539 (aarch64_sshr_n<mode>): Likewise.
29540 (aarch64_ushr_n<mode>): Likewise.
29541 (aarch64_<maxmin><mode>): Likewise.
29542 (aarch64_sqrt<mode>): Likewise.
29543 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
29544 (vshr<q>_n_*): Likewise.
29546 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
29548 * config/aarch64/aarch64-builtins.c
29549 (aarch64_simd_builtin_type_mode): Handle SF types.
29551 (BUILTIN_GPF): Define.
29552 (aarch64_init_simd_builtins): Handle SF types.
29553 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
29554 (frecps): Likewise.
29555 (frecpx): Likewise.
29556 * config/aarch64/aarch64-simd.md
29557 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
29558 (aarch64_frecpe<mode>): New.
29559 (aarch64_frecps<mode>): Likewise.
29560 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
29561 (v8type): Add frecp<esx>.
29562 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
29563 (aarch64_frecps<mode>): Likewise.
29564 * config/aarch64/iterators.md (FRECP): New.
29565 (frecp_suffix): Likewise.
29566 * config/aarch64/arm_neon.h
29567 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
29569 2013-04-22 Christian Bruel <christian.bruel@st.com>
29572 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
29573 (REG_CLASS_NAMES): Idem.
29574 (REG_CLASS_CONTENTS): Idem.
29575 (REGCLASS_HAS_FP_REG): Idem.
29576 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
29577 (sh_conditional_register_usage): Idem.
29579 2013-04-21 Jeff Law <law@redhat.com>
29581 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
29582 (ssa_forward_propagate_and_combine): Use it.
29584 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
29586 * lra.c: Update the flow chart diagram.
29588 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
29590 PR rtl-optimization/56847
29591 * lra-constraints.c (process_alt_operands): Discourage alternative
29592 with non-matche doffsettable memory constraint fro memory with
29595 2013-04-19 Richard Biener <rguenther@suse.de>
29597 PR tree-optimization/56982
29598 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
29600 * gimplify.c (gimplify_call_expr): Notice special calls.
29601 (gimplify_modify_expr): Likewise.
29602 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
29603 abnormal control flow receivers.
29604 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
29605 in the same way as cfun->has_nonlocal_labels.
29606 (gimple_purge_dead_abnormal_call_edges): Likewise.
29607 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
29608 receivers start a basic-block.
29610 2013-04-19 Richard Biener <rguenther@suse.de>
29612 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
29614 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
29615 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
29616 (SLP_TREE_LOAD_PERMUTATION): Add.
29617 (vect_transform_slp_perm_load): Adjust prototype.
29618 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
29619 (vect_free_slp_instance): Likewise.
29620 (vect_create_new_slp_node): Likewise.
29621 (vect_supported_slp_permutation_p): Remove.
29622 (vect_slp_rearrange_stmts): Adjust.
29623 (vect_supported_load_permutation_p): Likewise. Inline
29624 vect_supported_slp_permutation_p here.
29625 (vect_analyze_slp_instance): Compute load permutations per
29626 slp node instead of per instance.
29627 (vect_get_slp_defs): Adjust.
29628 (vect_transform_slp_perm_load): Likewise.
29629 (vect_schedule_slp_instance): Remove redundant code.
29630 (vect_schedule_slp): Remove hack for PR56270, add it ...
29631 * tree-vect-stmts.c (vectorizable_load): ... here, do not
29632 CSE loads for SLP. Adjust.
29634 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
29636 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
29637 spelling in two comments.
29639 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
29642 * config/arm/arm.c (load_multiple_sequence): Require SP
29643 as base register for loads if SP is in the register list.
29645 2013-04-19 Martin Jambor <mjambor@suse.cz>
29647 PR tree-optimization/56718
29648 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
29649 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
29650 and made public. Adjusted all callers.
29651 (ipa_intraprocedural_devirtualization): New function.
29652 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
29653 (ipa_intraprocedural_devirtualization): Likewise.
29654 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
29656 2013-04-19 Richard Biener <rguenther@suse.de>
29658 PR tree-optimization/57000
29659 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
29661 2013-04-19 Terry Guo <terry.guo@arm.com>
29663 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
29665 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
29666 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
29667 (cortex_m4_fmacs): Use new reservations.
29668 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
29670 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
29672 PR rtl-optimization/56999
29673 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
29675 (lra_coalesce): Remove split_origin_bitmap and related code.
29676 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
29677 ranges if necessary.
29679 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
29681 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
29683 (ix86_expand_call): Remove clobbered_registers array and use
29684 x86_64_ms_sysv_extra_clobbered_registers instead.
29685 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
29687 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
29689 * config/i386/i386.md (*call_rex64_ms_sysv): Use
29690 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
29691 (*call_value_rex64_ms_sysv): Ditto.
29693 2013-04-18 Cary Coutant <ccoutant@google.com>
29695 * dwarf2out.c (output_pubnames): Check die_perennial_p of
29696 parent instead of die_mark.
29698 2013-04-18 Diego Novillo <dnovillo@google.com>
29700 * gimple.c (create_gimple_tmp): New.
29701 (get_expr_type): New.
29702 (build_assign): New.
29703 (build_type_cast): New.
29704 * gimple.h (enum ssa_mode): Define.
29705 (gimple_seq_set_location): New.
29706 * asan.c (build_check_stmt): Change some gimple_build_* calls
29707 to use build_assign and build_type_cast.
29709 2013-04-18 Richard Biener <rguenther@suse.de>
29711 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
29712 handle negative step. Remove redundant checks.
29713 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
29714 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
29715 for negative step and grouped loads fail to vectorize.
29717 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
29719 * emit-rtl.c (reset_insn_used_flags): New function.
29720 (reset_all_used_flags): Use it.
29721 (verify_insn_sharing): New function.
29722 (verify_rtl_sharing): Fix verification for SEQUENCEs.
29724 2013-04-18 Jakub Jelinek <jakub@redhat.com>
29726 PR tree-optimization/56984
29727 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
29728 and (x >> M) >= N don't register any assertion if N << M is the
29731 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
29733 * lower-subreg.c (resolve_simple_move): If called self-recursive,
29734 do not delete_insn insns that have not yet been emitted, only
29735 unlink them with remove_insn.
29736 * df-scan.c (df_insn_delete): Revert r197492.
29738 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
29740 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
29741 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
29743 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
29745 * config/arm/arm.md (movsicc_insn): Convert define_insn into
29746 define_insn_and_split.
29747 (and_scc,ior_scc,negscc): Likewise.
29748 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
29750 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
29752 * config/arm/arm.c (use_return_insn): Return 0 for targets that
29753 can benefit from using a sequence of LDRD instructions in epilogue
29754 instead of a single LDM instruction.
29756 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
29759 * doc/extend.texi: Fix typo.
29761 2013-04-17 Richard Biener <rguenther@suse.de>
29763 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
29764 (vect_build_slp_tree): ... here.
29765 (vect_build_slp_tree_1): Compute which stmts of the SLP group
29766 match. Remove special-casing of mismatched complex loads.
29767 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
29768 re-try the match with swapped commutative operands.
29769 (vect_supported_load_permutation_p): Remove special-casing of
29770 mismatched complex loads.
29771 (vect_analyze_slp_instance): Adjust.
29773 2013-04-17 Richard Biener <rguenther@suse.de>
29775 PR rtl-optimization/56921
29776 * cfgloop.h (struct loop): Add simple_loop_desc member.
29777 (struct niter_desc): Mark with GTY(()).
29778 (simple_loop_desc): Do not use aux field but simple_loop_desc.
29779 * loop-iv.c (get_simple_loop_desc): Likewise.
29780 (free_simple_loop_desc): Likewise.
29783 2013-04-16 Richard Biener <rguenther@suse.de>
29785 PR rtl-optimization/56921
29786 * loop-init.c (pass_rtl_move_loop_invariants): Add
29787 TODO_do_not_ggc_collect to todo_flags_finish.
29788 (pass_rtl_unswitch): Same.
29789 (pass_rtl_unroll_and_peel_loops): Same.
29790 (pass_rtl_doloop): Same.
29792 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
29794 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
29795 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
29796 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
29798 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
29799 * tree-streamer.c (record_common_node): Adjust reference in comment.
29801 2013-04-17 Terry Guo <terry.guo@arm.com>
29803 * config/arm/cortex-m4.md: Add a new bypass.
29805 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29807 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
29809 (*subs_<optab><mode>_multp2): New pattern.
29810 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
29811 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
29813 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29815 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
29816 (*subs_mul_imm_<mode>): New pattern.
29818 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
29821 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
29822 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
29823 (vsx_movti_32bit): Change j->wa to O->wa.
29825 2013-04-16 Richard Biener <rguenther@suse.de>
29827 PR rtl-optimization/56921
29828 * loop-init.c (pass_rtl_move_loop_invariants): Add
29829 TODO_do_not_ggc_collect to todo_flags_finish.
29830 (pass_rtl_unswitch): Same.
29831 (pass_rtl_unroll_and_peel_loops): Same.
29832 (pass_rtl_doloop): Same.
29834 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
29836 * config/arm/arm.c (emit_multi_reg_push): New declaration
29837 for an existing function.
29838 (arm_emit_strd_push): New function.
29839 (arm_expand_prologue): Used here.
29840 (arm_emit_ldrd_pop): New function.
29841 (arm_expand_epilogue): Used here.
29842 (arm_get_frame_offsets): Update condition.
29843 (arm_emit_multi_reg_pop): Add a special case for load of a single
29844 register with writeback.
29846 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
29848 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
29851 2013-04-16 Richard Biener <rguenther@suse.de>
29853 PR tree-optimization/56756
29854 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
29855 (first_mem_ref_loc): New.
29856 (execute_sm): Place the load temporarily before a previous
29857 access instead of in the latch edge to ensure its SSA dependencies
29858 are defined at points dominating the load.
29860 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
29862 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
29863 correct fix by moving header and footer insn to the footer of
29864 the merged basic block. Clear BB_END of the merged-away block.
29866 PR middle-end/43631
29867 * emit-rtl.c (make_note_raw): New function.
29868 (link_insn_into_chain): New static inline function.
29869 (add_insn): Use it.
29870 (add_insn_before, add_insn_after): Factor insn chain linking code...
29871 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
29872 using link_insn_into_chain.
29873 (note_outside_basic_block_p): New helper function for emit_note_after
29874 and emit_note_before.
29875 (emit_note_after): Use nobb variant of add_insn_after if the note
29876 should not be contained in a basic block.
29877 (emit_note_before): Use nobb variant of add_insn_before if the note
29878 should not be contained in a basic block.
29879 (emit_note_copy): Use make_note_raw.
29880 (emit_note): Likewise.
29881 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
29882 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
29883 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
29884 the moved barrier the tail of the basic block it follows.
29885 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
29887 2013-04-15 Jakub Jelinek <jakub@redhat.com>
29889 PR tree-optimization/56962
29890 * gimple-ssa-strength-reduction.c (record_increment): Only set
29891 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
29892 either rhs1 or rhs2 is equal to c->base_expr.
29894 2013-04-15 Richard Biener <rguenther@suse.de>
29896 PR tree-optimization/56933
29897 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
29899 (GROUP_READ_WRITE_DEPENDENCE): Remove.
29900 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
29901 * tree-vect-data-refs.c (vect_analyze_group_access): Move
29902 dependence check ...
29903 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
29905 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
29906 GROUP_READ_WRITE_DEPENDENCE.
29908 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29910 * emit-rtl.c (reset_all_used_flags): New function.
29911 (verify_rtl_sharing): Call reset_all_used_flags before and after
29912 performing the checks.
29914 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29916 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
29917 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
29918 * config/arm/constraints.md (De): New constraint.
29919 * config/arm/neon.md (anddi3_neon): Delete.
29920 (neon_vand<mode>): Expand to standard anddi3 pattern.
29921 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
29922 Move earlier in the file.
29923 (neon_inv_logic_op2): Likewise.
29924 (arm_anddi_operand_neon): New predicate.
29926 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29928 * configure.ac (gcc_cv_ld_as_needed): Set
29929 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
29930 Use -z ignore, -z record on *-*-solaris2*.
29931 (HAVE_LD_AS_NEEDED): Update comment.
29932 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
29933 * configure: Regenerate.
29934 * config.in: Regenerate.
29935 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
29936 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
29937 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
29938 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
29939 equivalents. Fix markup.
29940 * doc/tm.texi: Regenerate.
29942 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
29944 * config/i386/i386.opt: New option mstack-protector-guard=.
29945 * config/i386/i386-opts.h: Add enum stack_protector_guard.
29946 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
29947 TARGET_SSP_TLS_GUARD.
29948 * config/i386/i386.c (ix86_option_override_internal): Set
29949 ix86_stack_protector_guard.
29950 * config/i386/i386.md (stack_protect_set): Enable for
29951 TARGET_SSP_TLS_GUARD only.
29952 (stack_protect_set_<mode>): Ditto.
29953 (stack_protect_test): Ditto.
29954 (stack_protect_test_<mode>): Ditto.
29955 * doc/invoke.texi (i386 Option): Document.
29957 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
29960 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
29961 (S_MODES): Set H_MODE bit.
29962 (SF_MODES): Set only S_MODE and SF_MODE bits.
29963 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
29964 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
29965 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
29966 <MODE_FLOAT>: Likewise.
29968 2013-04-15 Joey Ye <joey.ye@arm.com>
29970 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
29972 2013-04-15 Joey Ye <joey.ye@arm.com>
29974 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
29976 (thumb_far_jump_used_p): Count instruction size and set
29979 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
29981 * reorg.c (fill_simple_delay_slots): Reindent block of code.
29982 * resource.c (mark_target_live_regs): Reformat conditional block.
29984 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
29986 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
29987 notes, they are emitted only just before final.
29988 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
29990 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
29992 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
29993 * cfgrtl.c (delete_insn): Call it here instead.
29994 * lra-spills.c (lra_final_code_change): Use delete_insn.
29995 * haifa-sched.c (sched_remove_insn): Likewise.
29996 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
29997 returning to the nop pool.
29998 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
29999 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
30001 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
30003 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
30004 * doc/tm.texi: Regenerated.
30006 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
30008 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
30011 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
30013 * df-core.c (df_find_def): Compare register numbers.
30014 (df_find_use): Likewise.
30016 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
30019 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
30020 lra_in_progress for return.
30022 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
30024 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
30025 define_insn into define_insn_and_split and emit movsicc patterns.
30027 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
30029 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
30031 2013-04-12 Richard Biener <rguenther@suse.de>
30033 * tree-pass.h (TODO_do_not_ggc_collect): New.
30034 * passes.c (execute_one_ipa_transform_pass): Honor
30035 TODO_do_not_ggc_collect.
30036 (execute_one_pass): Likewise.
30039 2013-04-10 Richard Biener <rguenther@suse.de>
30041 * passes.c (init_optimization_passes): Remove reload pass.
30042 * ira.c (do_reload): Merge into ...
30044 (rest_of_handle_reload): Remove.
30045 (pass_reload): Likewise.
30046 * config/i386/i386.c (ix86_option_override): Refer to ira instead
30047 of reload for vzeroupper pass placement.
30049 2013-04-12 Jakub Jelinek <jakub@redhat.com>
30051 PR tree-optimization/56918
30052 PR tree-optimization/56920
30053 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
30054 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
30055 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
30056 use wide_mul_with_sign method.
30058 2013-04-12 Richard Biener <rguenther@suse.de>
30060 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
30061 not be considered a gimple constant.
30063 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
30065 * fold-const.c (const_binop): Handle vector shifts by a scalar.
30066 (fold_binary_loc): Call const_binop also for mixed vector-scalar
30069 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
30070 Jakub Jelinek <jakub@redhat.com>
30072 * opts.c: Include diagnostic-color.h.
30073 (common_handle_option): Handle OPT_fdiagnostics_color_.
30074 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
30075 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
30076 (diagnostic-color.o): New.
30077 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
30078 (diagnostic_color_rule): New enum.
30079 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
30080 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
30081 the location string.
30082 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
30083 either NULL, or color kind.
30084 * diagnostic-color.c: New file.
30085 * diagnostic-color.h: New file.
30086 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
30088 * doc/invoke.texi (-fdiagnostics-color): Document.
30089 * pretty-print.h (pp_show_color): Define.
30090 (struct pretty_print_info): Add show_color field.
30091 * diagnostic.c: Include diagnostic-color.h.
30092 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
30093 macros. Colorize error:, warning: etc. strings and also the location
30095 (diagnostic_show_locus): Colorize the caret line.
30096 * pretty-print.c: Include diagnostic-color.h.
30097 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
30098 inside of %< %> quotes or quoted through q format modifier.
30100 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30102 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
30104 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
30106 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
30107 code in CC_NZ mode.
30108 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
30111 2013-04-11 Marek Polacek <polacek@redhat.com>
30113 PR tree-optimization/48184
30114 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
30116 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
30118 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
30119 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
30120 (skip_simple_arithmetic): Tidy up.
30121 * tree.h (skip_simple_constant_arithmetic): Declare.
30123 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
30125 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
30127 2013-04-11 Richard Biener <rguenther@suse.de>
30129 * tree-vect-loop.c (get_initial_def_for_induction): Properly
30130 generate vector constants.
30132 2013-04-11 Richard Biener <rguenther@suse.de>
30134 PR tree-optimization/56878
30135 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
30136 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
30138 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
30139 Prefer to align the DR with the most invariant base address.
30141 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
30143 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
30146 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
30148 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
30149 floating-point vector comparisons against 0.
30151 2013-04-11 Jakub Jelinek <jakub@redhat.com>
30153 PR tree-optimization/56899
30154 * fold-const.c (extract_muldiv_1): Apply distributive law
30155 only if TYPE_OVERFLOW_WRAPS (ctype).
30157 2013-04-11 Bin Cheng <bin.cheng@arm.com>
30160 * ira-costs.c (scan_one_insn): Check whether the source rtx of
30161 loading has side effect.
30163 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
30165 * config/sparc/sparc.c: Include tree-pass.h.
30166 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
30167 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
30168 head of file. Change return type. Split off gate function.
30169 (sparc_gate_work_around_errata): New function.
30170 (pass_work_around_errata): New pass definition.
30171 (insert_pass_work_around_errata) New pass insert definition to
30172 insert pass_work_around_errata just after delayed-branch scheduling.
30173 (sparc_option_override): Insert the pass.
30174 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
30176 2013-04-10 David S. Miller <davem@davemloft.net>
30178 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
30179 or -mcpu=hypersparc.
30181 * target.def (cstore_mode): New hook.
30182 * target.h: Include insn-codes.h
30183 * targhooks.c: Likewise.
30184 (default_cstore_mode): New function.
30185 * targhooks.h: Declare it.
30186 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
30187 * doc/tm.texi: Rebuild.
30188 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
30189 target hook, rather than inspecting the insn_data.
30190 * config/sparc/sparc.c (sparc_cstore_mode): New function.
30191 (TARGET_CSTORE_MODE): Redefine.
30192 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
30194 * config/sparc/predicates.md (cstore_result_operand): New special
30196 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
30197 Use it for operand 0.
30198 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
30199 (*snesi_special): Likewise.
30200 (*snesi_zero): Likewise.
30201 (*seqsi_zero): Likewise.
30202 (*sltu_insn): Likewise.
30203 (*sgeu_insn): Likewise.
30204 (*seqdi_special): Make operand 0 and comparison operation be of
30206 (*snedi_special): Likewise.
30207 (*snedi_special_vis3): Likewise.
30208 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
30209 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
30210 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
30211 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
30212 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
30213 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
30214 (*sltu_extend_sp64): Likewise.
30215 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
30216 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
30217 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
30218 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
30219 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
30221 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
30223 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
30224 (aarch64_start_file): Use the new function.
30226 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
30227 Jason Merrill <jason@redhat.com>
30229 * common.opt: Add -gdwarf.
30230 * opts.c (common_handle_option): Handle it.
30231 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
30233 2013-04-10 Richard Biener <rguenther@suse.de>
30235 * passes.c (execute_todo): Do not call ggc_collect conditional here.
30236 (execute_one_ipa_transform_pass): But unconditionally here.
30237 (execute_one_pass): And here.
30238 (init_optimization_passes): Remove reload pass.
30239 * tree-pass.h (TODO_ggc_collect): Remove.
30240 (pass_reload): Likewise.
30241 * ira.c (do_reload): Merge into ...
30243 (rest_of_handle_reload): Remove.
30244 (pass_reload): Likewise.
30245 * config/i386/i386.c (ix86_option_override): Refer to ira instead
30246 of reload for vzeroupper pass placement.
30247 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
30248 and todo_flags_finish of all passes.
30250 2013-04-10 Richard Biener <rguenther@suse.de>
30252 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
30253 first_const_oprnd field, rename first_def_type to first_op_type.
30254 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
30255 (vect_get_and_check_slp_defs): Always use the type of the
30256 operand. Allow mixed vect_external_def, vect_constant_def types.
30257 (vect_get_constant_vectors): Handle mixed vect_external_def,
30258 vect_constant_def types.
30260 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
30262 PR tree-optimization/55524
30263 * tree-ssa-math-opts.c
30264 (convert_mult_to_fma): Don't use an fms construct
30265 when we don't have an fms operation, but fnma, and it looks
30266 likely that we'll be able to use the latter.
30268 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
30270 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
30272 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
30273 inline fail caused by overwritable functions.
30275 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
30277 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
30278 unnecessary bits in the constant power of two case.
30280 2013-04-10 Richard Biener <rguenther@suse.de>
30282 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
30283 broken code swapping operands.
30284 (vect_build_slp_tree): Do not compute load permutations here.
30285 (vect_analyze_slp_instance): Compute load permutations here,
30286 after building the SLP tree.
30288 2013-04-09 Christian Bruel <christian.bruel@st.com>
30290 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
30291 of next/prev_real_insn.
30293 2013-04-09 Jan Hubicka <jh@suse.cz>
30295 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
30296 Drop aliased parameter.
30297 (function_and_variable_visibility): Do not handle alias pairs.
30298 * cgraph.c (varpool_externally_visible_p): Update prototype.
30299 * varpool.c (varpool_add_new_variable): Update.
30301 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30303 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
30305 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
30307 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
30309 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
30311 2013-04-09 Marek Polacek <polacek@redhat.com>
30313 PR tree-optimization/48762
30314 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
30316 2013-04-09 Richard Biener <rguenther@suse.de>
30318 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
30320 (vect_build_slp_tree): Likewise.
30321 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
30322 calculating the cost of a SLP instance.
30323 (vect_analyze_slp_instance): Use it from here, after building
30326 2013-04-09 Jakub Jelinek <jakub@redhat.com>
30328 PR middle-end/56883
30329 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
30330 expand_omp_for_static_chunk): Use simple_p = true in
30331 force_gimple_operand_gsi calls when assigning to addressable decls.
30333 2013-04-09 Jeff Law <law@redhat.com>
30335 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
30336 when the boolean was created by converting a wider object which
30337 had a boolean range.
30339 2013-04-09 Richard Biener <rguenther@suse.de>
30341 * tree-vectorizer.h (slp_void_p): Remove.
30342 (slp_tree): Typedef before _slp_tree declaration.
30343 (struct _slp_tree): Use a vector of slp_tree as children.
30344 (vect_get_place_in_interleaving_chain): Remove.
30345 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
30347 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
30349 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
30350 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
30351 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
30352 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
30353 Use slp_node instead of slp_void_p and adjust.
30355 2013-04-09 Richard Biener <rguenther@suse.de>
30357 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
30358 work that is not necessary.
30360 2013-04-09 Jakub Jelinek <jakub@redhat.com>
30362 PR tree-optimization/56854
30363 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
30364 forward into clobber stmts if it would change MEM_REF lhs into
30367 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
30369 * tree.c (type_hash_lookup, type_hash_add): Make static.
30370 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
30372 2013-04-09 Richard Biener <rguenther@suse.de>
30374 * tree.h (unsave_expr_now): Remove.
30375 * tree-inline.c (mark_local_for_remap_r): Remove.
30376 (unsave_expr_1): Likewise.
30377 (unsave_r): Likewise.
30378 (unsave_expr_now): Likewise.
30379 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
30380 (propagate_tree_value): Likewise.
30382 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
30384 * doc/rtl.texi (sequence): Rewrite documentation to match the
30385 current use of SEQUENCE rtl objects.
30386 * rtl.def (SEQUENCE): Likewise.
30388 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
30389 Update documentation.
30390 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
30391 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
30393 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
30395 2013-04-08 Teresa Johnson <tejohnson@google.com>
30397 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
30398 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
30400 (estimate_edge_size_and_time): Add comment to suggest using rounding
30402 (estimate_node_size_and_time): Ditto.
30403 (remap_edge_change_prob): Use helper rounding divide methods.
30404 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
30405 (gimple_mod_pow2_value_transform): Ditto.
30406 (gimple_mod_subtract_transform): Ditto.
30407 (gimple_ic_transform): Ditto.
30408 (gimple_stringops_transform): Ditto.
30409 * stmt.c (conditional_probability): Ditto.
30410 (emit_case_dispatch_table): Ditto.
30411 * lto-cgraph.c (merge_profile_summaries): Ditto.
30412 * tree-optimize.c (execute_fixup_cfg): Ditto.
30413 * cfgcleanup.c (try_forward_edges): Ditto.
30414 * cfgloopmanip.c (scale_loop_profile): Ditto.
30416 (duplicate_loop_to_header_edge): Ditto.
30417 (lv_adjust_loop_entry_edge): Ditto.
30418 * tree-vect-loop.c (vect_transform_loop): Ditto.
30419 * profile.c (compute_branch_probabilities): Ditto.
30420 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
30421 * lto-streamer-in.c (input_cfg): Ditto.
30422 * gimple-streamer-in.c (input_bb): Ditto.
30423 * ipa-cp.c (update_profiling_info): Ditto.
30424 (update_specialized_profile): Ditto.
30425 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
30426 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
30428 * sched-rgn.c (compute_dom_prob_ps): Ditto.
30429 (compute_trg_info): Ditto.
30430 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
30431 (purge_dead_edges): Ditto.
30432 * loop-unswitch.c (unswitch_loop): Ditto.
30433 * cgraphclones.c (cgraph_clone_edge): Ditto.
30434 (cgraph_clone_node): Ditto.
30435 * tree-inline.c (copy_bb): Ditto.
30436 (copy_edges_for_bb): Ditto.
30437 (initialize_cfun): Ditto.
30438 (copy_cfg_body): Ditto.
30439 (expand_call_inline): Ditto.
30441 2013-04-08 Kai Tietz <ktietz@redhat.com>
30443 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
30444 TARGET_CYGWIN64 by TARGET_64BIT.
30446 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
30448 * config/epiphany/epiphany.md (GPR_1): New constant.
30449 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
30450 * config/epiphany/epiphany.c (gen_compare_reg):
30451 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
30452 is already in place.
30453 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
30454 Don't require being called during rtl expansion; If y operlaps r0,
30456 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
30457 (epiphany_expand_epilogue): Likewise.
30459 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
30460 Don't use CC_FPmode for ORDERED / UNORDERED.
30461 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
30463 * config/epiphany/constraints.md (CnL): New constraint.
30464 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
30465 * config/epiphany/predicates.md (add_operand): Allow 1024.
30467 * config/epiphany/epiphany.md (logical_op): New code iterator.
30468 (op_mnc): New code attribute.
30469 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
30470 (mov_f+1, mov_f+2): New peephole2 patterns.
30472 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
30473 (cstoresi4): Also allow re-use of zero result when doing a NE
30474 comparison to a non-zero operand.
30475 Use (clobber (scratch)) for first insn if the gpr output is not needed.
30477 * config/epiphany/epiphany.md (<insn_opname>v2si3):
30478 Use gen_addsi3_i / gen_subsi3_i.
30480 2013-04-08 Jakub Jelinek <jakub@redhat.com>
30484 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
30485 contain anything but clobbers, at most one __builtin_stack_restore,
30486 optionally debug stmts and final resx, and if it has at least one
30487 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
30488 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
30489 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
30490 which isn't defaut definition, remove them.
30491 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
30492 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
30493 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
30494 with MEM_REF LHS with SSA_NAME address.
30496 2013-04-08 Jeff Law <law@redhat.com>
30498 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
30500 2013-04-08 Richard Biener <rguenther@suse.de>
30502 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
30504 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
30505 determined vector type.
30506 (vect_analyze_data_refs): Likewise.
30507 (vect_get_new_vect_var): Adjust.
30508 (vect_create_destination_var): Preserve SSA name versions.
30509 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
30510 not dump anything here.
30512 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
30514 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
30515 Add member lr_slot_known.
30516 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
30518 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
30519 Remove code that sets lr_slot_offset according to what a previous
30520 version of epiphany_emit_save_restore used to do.
30521 (epiphany_emit_save_restore): When doing an lr save or restore,
30522 set/verify lr_slot_known and lr_slot_offset.
30524 2013-04-08 Xinyu Qi <xyqi@marvell.com>
30527 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
30530 2013-04-08 Richard Biener <rguenther@suse.de>
30532 * alias.c (find_base_term): Fix thinko in previous change.
30534 2013-04-08 Jakub Jelinek <jakub@redhat.com>
30536 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
30537 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
30538 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
30539 if possible to compute val.
30540 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
30541 For QImode integers don't require anything about precision. Use
30542 const_with_all_bytes_same to find out if the constant doesn't have
30543 repeated bytes in it.
30545 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30547 * config/s390/s390.c (s390_expand_insv): Only accept insertions
30550 2013-04-08 Marek Polacek <polacek@redhat.com>
30552 PR rtl-optimization/48182
30553 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
30556 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
30559 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
30560 nuses, make sure we have a label.
30562 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30565 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
30566 (rs6000_emit_swdiv_low_precision): Remove.
30567 (rs6000_emit_swdiv): Rewrite to handle between one and four
30568 iterations of Newton-Raphson generally; modify required number of
30569 iterations for some cases.
30570 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
30572 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
30574 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
30575 set-but-unused variable.
30577 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
30578 basic blocks of released function bodies garbage-collectable.
30580 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
30581 (struct rtl_opt_pass): Add TODO_df_finish.
30583 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
30585 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30587 * config/arm/constraints.md (q): New constraint.
30588 * config/arm/ldrdstrd.md: New file.
30589 * config/arm/arm.md (ldrdstrd.md) New include.
30590 (arm_movdi): Use "q" instead of "r" constraint
30591 for double-word memory access.
30592 (movdf_soft_insn): Likewise.
30593 * config/arm/vfp.md (movdi_vfp): Likewise.
30594 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
30595 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
30596 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
30597 (mem_ok_for_ldrd_strd): Likewise.
30598 (output_move_double): Update assertion.
30600 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30602 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
30604 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30606 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
30607 define_insn_and_split.
30608 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
30610 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30612 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
30613 define_insn_and_split.
30614 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
30615 (shiftsi3_compare): New pattern.
30616 (rrx): New pattern.
30617 * config/arm/unspecs.md (UNSPEC_RRX): New.
30619 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30621 * config/arm/arm.md (negdi_extendsidi): New pattern.
30622 (negdi_zero_extendsidi): Likewise.
30624 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30626 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
30627 define_insn_and_split.
30628 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
30629 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
30631 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30633 * config/arm/arm.md (arm_subdi3): Convert define_insn into
30634 define_insn_and_split.
30635 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
30636 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
30638 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30640 * config/arm/arm.md (subsi3_carryin): New pattern.
30641 (subsi3_carryin_const): Likewise.
30642 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
30643 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
30645 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30647 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
30649 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30651 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
30652 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
30654 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30656 * config/arm/arm.c (arm_expand_builtin): Change fcode
30657 type to unsigned int.
30659 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30661 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
30663 2013-04-04 Ian Lance Taylor <iant@google.com>
30665 * doc/standards.texi (Standards): The Go frontend supports the Go 1
30668 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
30670 PR middle-end/56729
30671 * df-scan.c (df_insn_delete): Disable failing assert.
30673 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30675 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
30676 New function prototype.
30677 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
30678 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
30679 (arm_builtin_vectorized_function): New function.
30681 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30683 * config/arm/arm_neon_builtins.def: New file.
30684 * config/arm/arm.c (neon_builtin_data): Move contents to
30685 arm_neon_builtins.def.
30686 (enum arm_builtins): Include neon builtin definitions.
30687 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
30688 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
30690 2013-04-04 Marek Polacek <polacek@redhat.com>
30692 PR tree-optimization/48186
30693 * predict.c (maybe_hot_frequency_p): Return false if
30694 HOT_BB_FREQUENCY_FRACTION is 0.
30695 (cgraph_maybe_hot_edge_p): Likewise.
30697 2013-04-04 Richard Biener <rguenther@suse.de>
30699 PR tree-optimization/56826
30700 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
30703 2013-04-04 Richard Biener <rguenther@suse.de>
30705 PR tree-optimization/56213
30706 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
30707 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
30709 2013-04-04 Richard Biener <rguenther@suse.de>
30711 PR tree-optimization/56837
30712 * tree-loop-distribution.c (classify_partition): For non-zero
30713 values require that the value has the same precision as its
30714 mode to be useful as memset value.
30716 2013-04-03 Nick Clifton <nickc@redhat.com>
30718 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
30719 (fmssf4): Use fmsf.s on E3V5 architectures.
30720 (fnmasf4): Use fnmaf.s on E3V5 architectures.
30721 (fnmssf4): Use fnmsf.s on E3V5 architectures.
30723 2013-04-03 Jeff Law <law@redhat.com>
30725 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
30726 (lra-eliminations.o): Likewise.
30728 2013-04-03 Teresa Johnson <tejohnson@google.com>
30730 * gcov-io.c (compute_working_sets): Moved most of body of old
30731 compute_working_sets here from profile.c.
30732 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
30733 (gcov_working_set_t): Moved typedef here from basic-block.h
30734 (compute_working_set): Declare.
30735 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
30736 (get_working_sets): Renamed from compute_working_set,
30737 replace most of body with call to new compute_working_sets.
30738 (get_exec_counts): Replace call to compute_working_sets
30739 to get_working_sets.
30740 * profile.h (get_working_sets): Renamed from compute_working_set.
30741 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
30742 to get_working_sets.
30743 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
30744 * gcov-dump.c (dump_working_sets): New function.
30746 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
30748 * hwint.c (sext_hwi, zext_hwi): New functions.
30749 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
30750 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
30751 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
30752 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
30753 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
30754 (sext_hwi, zext_hwi): New functions.
30756 2013-04-03 Jeff Law <law@redhat.com>
30758 PR tree-optimization/56799
30759 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
30760 back test for widening conversion erroneously dropped in prior change.
30762 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30765 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
30766 instead of next_real_insn.
30768 2013-04-03 Marek Polacek <polacek@redhat.com>
30771 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
30773 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30776 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
30778 (thumb1_output_casesi): Likewise.
30779 (thumb2_output_casesi): Likewise.
30781 2013-04-03 Richard Biener <rguenther@suse.de>
30783 PR tree-optimization/56817
30784 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
30786 (tree_unroll_loops_completely_1): ... new function to manually
30787 walk the loop tree, properly defering outer loops of unrolled
30788 loops to later iterations.
30790 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
30792 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
30793 (vectorizable_load): Likewise.
30794 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
30795 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
30797 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
30799 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
30802 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30804 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
30806 2013-04-03 Bin Cheng <bin.cheng@arm.com>
30808 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
30810 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
30812 PR tree-optimization/56790
30813 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
30816 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
30818 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
30820 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
30821 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
30824 2013-04-03 Jakub Jelinek <jakub@redhat.com>
30827 * tree.h (force_folding_builtin_constant_p): New decl.
30828 * builtins.c (force_folding_builtin_constant_p): New variable.
30829 (fold_builtin_constant_p): Fold immediately also if
30830 force_folding_builtin_constant_p.
30832 2013-04-03 Richard Biener <rguenther@suse.de>
30834 PR tree-optimization/56812
30835 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
30836 DRs of the same interleaving chain are independent.
30838 2013-04-02 Jason Merrill <jason@redhat.com>
30840 * gdbinit.in (pbb): Use debug fn.
30842 2013-04-02 Lawrence Crowl <crowl@google.com>
30844 * sese.h (struct ivtype_map_elt_s): Remove unused.
30845 (extern debug_ivtype_map): Remove unused.
30846 (extern eq_ivtype_map_elts): Remove unused.
30847 * sese.c (debug_ivtype_map): Removed unused.
30848 (debug_ivtype_map_1): Removed unused.
30849 (debug_ivtype_elt): Remove unused.
30850 (eq_ivtype_map_elts): Remove unused.
30852 2013-04-02 Kai Tietz <ktietz@redhat.com>
30855 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
30856 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
30857 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
30859 (legitimize_pe_coff_symbol): Likewise.
30860 (is_imported_p): New helper-function.
30861 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
30862 for Windows x64 targets.
30863 (ix86_expand_prologue): Optimize for pe-coff targets.
30864 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
30865 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
30866 medium/large code-model.
30867 (legitimize_pic_address): Likewise.
30868 (legitimize_tls_address): Likewise.
30869 (ix86_expand_call): Likewise.
30870 (x86_output_mi_thunk): Likewise.
30871 (get_dllimport_decl): Add new beimport argument.
30872 (construct_plt_address): Don't assert for x64 pe-coff targets.
30873 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
30875 (SYMBOL_FLAG_STUBVAR): New macro.
30876 (SYMBOL_REF_STUBVAR_P): Likewise.
30877 * config/i386/winnt.c (stub_list): New structure.
30878 (stub_head): New local variable.
30879 (i386_pe_record_stub): New function.
30880 (i386_pe_file_end): Emit refptr-stubs.
30882 2013-04-02 Jakub Jelinek <jakub@redhat.com>
30884 PR rtl-optimization/56745
30885 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
30886 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
30889 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
30890 and both of them are MEM_REFs, just compare first argument for
30891 equality and attempt to deal even with differing offsets.
30894 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
30895 of gimple_clobber_p to be MEM_REF.
30896 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
30897 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
30898 after gimplification.
30899 * asan.c (get_mem_ref_of_assignment): Don't instrument
30900 gimple_clobber_p stmts.
30901 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
30902 gimple_clobber_p stmt if they have MEM_REF lhs and
30903 are dead because of another gimple_clobber_p stmt.
30904 * tree-ssa-live.c (clear_unused_block_pointer): Treat
30905 gimple_clobber_p stmts like debug stmts.
30906 (remove_unused_locals): Remove clobbers with MEM_REF lhs
30907 that refer to unused VAR_DECLs or uninitialized values.
30908 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
30909 gimple_clobber_p stmts if they refer to removed parameters.
30910 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
30913 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
30915 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
30916 using SWI48 mode attribute.
30918 2013-04-02 Wei Mi <wmi@google.com>
30920 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
30921 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
30922 *<rotate_insn><mode>3_mask in i386.md.
30924 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
30926 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
30928 2013-04-02 Richard Biener <rguenther@suse.de>
30930 PR tree-optimization/56778
30931 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
30932 Runtime alias tests are not supported for gather loads.
30933 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
30934 stmts referenced from SSA operands before updating SSA form.
30936 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
30937 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30939 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
30940 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
30941 * config/arm/cortex-a53.md: New file.
30942 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
30943 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
30944 * config/arm/arm.c (arm_issue_rate): Likewise.
30945 * config/arm/arm-tune.md: Regenerate
30946 * config/arm/arm-tables.opt: Regenerate.
30947 * config/arm/arm-cores.def: Add cortex-a53.
30949 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
30951 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
30954 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
30956 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
30957 scalar load/store operations using B/H registers.
30958 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
30960 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
30962 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
30964 * config/aarch64/aarch64.c
30965 (aarch64_simd_scalar_immediate_valid_for_move): New.
30966 * config/aarch64/aarch64-protos.h
30967 (aarch64_simd_scalar_immediate_valid_for_move): New.
30968 * config/aarch64/constraints.md (Dh, Dq): New.
30969 * config/aarch64/iterators.md (hq): New.
30971 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
30973 * reorg.c (get_branch_condition): Deal with conditional returns.
30974 (fill_simple_delay_slots): Remove dead code dealing with jumps.
30976 2013-04-01 Wei Mi <wmi@google.com>
30978 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
30979 Truncate operand 2 using %b asm operand modifier.
30980 (*<shift_insn><mode>3_mask): Ditto.
30981 (*<rotate_insn><mode>3_mask): Ditto.
30983 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
30985 PR middle-end/56798
30986 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
30988 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
30990 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
30992 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
30994 2013-03-30 Lawrence Crowl <crowl@google.com>
30996 * dse.c (clear_alias_sets): Remove never set.
30997 (disqualified_clear_alias_sets): Remove never set.
30998 (clear_alias_mode_pool): Remove never set.
30999 (dse_step0): Remove condition that is never true.
31000 (canon_address): Remove condition that is never true.
31001 (dse_step7): Remove condition that is never true.
31002 (rest_of_handle_dse): Remove condition that is never true.
31003 (rest_of_handle_dse::did_global): Remove never read from above.
31004 (dse_step2_spill): Remove never called from above.
31005 (dse_step5_spill): Remove never called from above.
31007 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
31009 * doc/md.texi (Standard Names) <casesi>: Update documentation for
31010 JUMP_TABLE_DATA changes.
31011 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
31012 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
31013 (Insns) <jump_table_data>: New entry.
31014 * doc/tm.texi: Regenerate.
31016 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
31018 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
31019 for table jump at the end of a basic block using tablejump_p.
31020 * targhooks.c (default_invalid_within_doloop): Likewise.
31021 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
31022 target hook implementation that is identical to the default hook.
31023 (rs6000_invalid_within_doloop): Remove.
31025 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
31026 unused variable from tablejump_p call.
31028 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
31029 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
31030 (INSN_DELETED_P): Likewise.
31031 (emit_jump_table_data): New prototype.
31032 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
31033 after 4th as unused.
31034 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
31035 * sched-vis.c (print_insn): Likewise.
31036 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
31037 insn for compatibility with back ends that use next_active_insn to
31038 identify jump table data.
31039 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
31040 (remove_insn): Likewise.
31041 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
31043 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
31044 (emit_jump_table_data): New function.
31046 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
31047 basic block, a JUMP_TABLE_DATA never is.
31048 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
31049 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
31050 off from code handling real insns.
31051 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
31052 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
31053 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
31054 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
31055 is not a NONDEBUG_INSN_P.
31056 * ira-costs.c (scan_one_insn): Likewise.
31057 * jump.c (mark_all_labels): Likewise.
31058 (mark_jump_label_1): Likewise.
31059 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
31060 * lra.c (get_insn_freq): Expect all insns reaching here to be in
31062 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
31063 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
31064 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
31065 JUMP_TABLE_DATA_P insns.
31066 (calculate_elim_costs_all_insns): Likewise.
31067 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
31068 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
31069 (delete_output_reload): Code style fixups.
31070 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
31071 insn flags on this non-insn.
31072 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
31073 as scheduling barriers, for pre-change compatibility.
31074 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
31075 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
31077 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
31078 redundant JUMP_TABLE_DATA_P test.
31079 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
31080 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
31081 (frv_for_each_packet): Likewise.
31082 * config/i386/i386.c (min_insn_size): Likewise.
31083 (ix86_avoid_jump_mispredicts): Likewise.
31084 * config/m32r/m32r.c (m32r_is_insn): Likewise.
31085 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
31086 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
31087 (mips16_insn_length): Robustify.
31088 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
31089 (mips16_split_long_branches): Likewise.
31090 * config/pa/pa.c (pa_combine_instructions): Likewise.
31091 * config/rs6000/rs6000.c (get_next_active_insn): Treat
31092 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
31093 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
31094 as contributing to pool range lengths.
31095 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
31096 Remove redundant JUMP_TABLE_DATA_P test.
31097 (sh_loop_align): Likewise.
31098 (split_branches): Likewise.
31099 (sh_insn_length_adjustment): Likewise.
31100 * config/spu/spu.c (get_branch_target): Likewise.
31102 2013-03-29 Jan Hubicka <jh@suse.cz>
31104 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
31105 gcov streaming; stream hot bb threshold to ltrans.
31106 * predict.c (get_hot_bb_threshold): Break out from ....
31107 (maybe_hot_count_p): ... here.
31108 (set_hot_bb_threshold): New function.
31109 * lto-section-in.c (lto_section_name): Add profile.
31110 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
31111 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
31112 and data-streamer.h
31113 (histogram_entry): New structure.
31114 (histogram, histogram_pool): New global vars.
31115 (histogram_hash): New structure.
31116 (histogram_hash::hash): New method.
31117 (histogram_hash::equal): Likewise.
31118 (account_time_size): New function.
31119 (cmp_counts): New function.
31120 (dump_histogram): New function.
31121 (ipa_profile_generate_summary): New function.
31122 (ipa_profile_write_summary): New function.
31123 (ipa_profile_read_summary): New function.
31124 (ipa_profile): Decide on threshold.
31125 (pass_ipa_profile): Add ipa_profile_write_summary and
31126 ipa_profile_read_summary.
31127 * Makefile.in (ipa.o): Update dependencies.
31128 * lto-streamer.h (LTO_section_ipa_profile): New section.
31130 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
31132 * tree.h (VAR_P): New.
31134 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
31137 * doc/invoke.texi ([-fwhole-program]): Fix typo.
31139 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
31141 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
31142 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
31143 (control_flow_insn_p): Likewise.
31144 * cfgrtl.c (duplicate_insn_chain): Likewise.
31145 * final.c (get_attr_length_1): Likewise.
31146 (shorten_branches): Likewise.
31147 (final_scan_insn): Likewise.
31148 * function.c (instantiate_virtual_regs): Likewise.
31149 * gcse.c (insert_insn_end_basic_block): Likewise.
31150 * ira-costs.c (scan_one_insn): Likewise.
31151 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
31152 * lra.c (check_rtl): Likewise.
31153 * reload1.c (elimination_costs_in_insn): Likewise.
31154 * reorg.c (follow_jumps): Likewise.
31156 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
31157 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
31158 (thumb_far_jump_used_p): Likewise.
31159 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
31160 (workaround_speculation): Likewise.
31161 (add_sched_insns_for_speculation): Likewise.
31162 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
31163 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
31164 (frv_for_each_packet): Likewise.
31165 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
31166 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
31167 (final_emit_insn_group_barriers): Likewise.
31168 * config/m32r/m32r.c (m32r_is_insn): Likewise.
31169 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
31170 (mips16_insn_length): Likewise.
31171 * config/pa/pa.c (pa_reorg): Likewise.
31172 (pa_combine_instructions): Likewise.
31173 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
31174 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
31175 (sh_reorg): Likewise.
31176 (split_branches): Likewise.
31177 * config/spu/spu.c (get_branch_target): Likewise.
31179 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
31182 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
31184 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
31185 Fix declaration name.
31187 2013-03-28 Lawrence Crowl <crowl@google.com>
31189 * graphds.h (struct graph.indicies): Remove unused.
31190 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
31191 (SCOP_ORIGINAL_PDDRS): Remove unused.
31192 * sese.h (extern insert_loop_close_phis): Removed unused.
31193 (extern insert_guard_phis): Removed unused.
31194 (extern ivtype_map_elt_info): Removed unused.
31195 (new_ivtype_map_elt): Removed unused.
31196 * sese.c (ivtype_map_elt_info): Removed unused.
31198 2013-03-28 Lawrence Crowl <crowl@google.com>
31200 * Makefile.in: Add several missing include dependences.
31202 (test-dump.o): New. This object is not added to any executable,
31203 but is present for ad-hoc testing.
31205 (debug (const bitmap_head_def &)): New.
31206 (debug (const bitmap_head_def *)): New.
31208 (extern debug (const bitmap_head_def &)): New.
31209 (extern debug (const bitmap_head_def *)): New.
31211 (debug (edge_def &)): New.
31212 (debug (edge_def *)): New.
31214 (debug (basic_block_def &)): New.
31215 (debug (basic_block_def *)): New.
31217 (dump_node (const_tree, int, FILE *)): Correct source file.
31219 (debug (die_struct &)): New.
31220 (debug (die_struct *)): New.
31222 (extern debug (die_struct &)): New.
31223 (extern debug (die_struct *)): New.
31224 * gimple-pretty-print.c
31225 (debug (gimple_statement_d &)): New.
31226 (debug (gimple_statement_d *)): New.
31227 * gimple-pretty-print.h
31228 (extern debug (gimple_statement_d &)): New.
31229 (extern debug (gimple_statement_d *)): New.
31231 (debug (ira_allocno_copy &)): New.
31232 (debug (ira_allocno_copy *)): New.
31233 (debug (ira_allocno &)): New.
31234 (debug (ira_allocno *)): New.
31236 (extern debug (ira_allocno_copy &)): New.
31237 (extern debug (ira_allocno_copy *)): New.
31238 (extern debug (ira_allocno &)): New.
31239 (extern debug (ira_allocno *)): New.
31241 (debug (live_range &)): New.
31242 (debug (live_range *)): New.
31244 (debug (lra_live_range &)): New.
31245 (debug (lra_live_range *)): New.
31247 (debug (lra_live_range &)): New.
31248 (debug (lra_live_range *)): New.
31250 (debug (omega_pb_d &)): New.
31251 (debug (omega_pb_d *)): New.
31253 (extern debug (omega_pb_d &)): New.
31254 (extern debug (omega_pb_d *)): New.
31256 (debug (const rtx_def &)): New.
31257 (debug (const rtx_def *)): New.
31259 (debug_tree (tree): Move within file.
31260 (debug_raw (const tree_node &)): New.
31261 (debug_raw (const tree_node *)): New.
31262 (dump_tree_via_hooks (const tree_node *, int)): New.
31263 (debug (const tree_node &)): New.
31264 (debug (const tree_node *)): New.
31265 (debug_verbose (const tree_node &)): New.
31266 (debug_verbose (const tree_node *)): New.
31267 (debug_head (const tree_node &)): New.
31268 (debug_head (const tree_node *)): New.
31269 (debug_body (const tree_node &)): New.
31270 (debug_body (const tree_node *)): New.
31271 (debug_vec_tree (tree): Move and reimplement in terms of dump.
31272 (debug (vec<tree, va_gc> &)): New.
31273 (debug (vec<tree, va_gc> *)): New.
31275 (extern debug (const rtx_def &)): New.
31276 (extern debug (const rtx_def *)): New.
31278 (debug_raw (simple_bitmap_def &)): New.
31279 (debug_raw (simple_bitmap_def *)): New.
31280 (debug (simple_bitmap_def &)): New.
31281 (debug (simple_bitmap_def *)): New.
31283 (extern debug (simple_bitmap_def &)): New.
31284 (extern debug (simple_bitmap_def *)): New.
31285 (extern debug_raw (simple_bitmap_def &)): New.
31286 (extern debug_raw (simple_bitmap_def *)): New.
31288 (debug (vinsn_def &)): New.
31289 (debug (vinsn_def *)): New.
31290 (debug_verbose (vinsn_def &)): New.
31291 (debug_verbose (vinsn_def *)): New.
31292 (debug (expr_def &)): New.
31293 (debug (expr_def *)): New.
31294 (debug_verbose (expr_def &)): New.
31295 (debug_verbose (expr_def *)): New.
31296 (debug (vec<rtx> &)): New.
31297 (debug (vec<rtx> *)): New.
31299 (extern debug (vinsn_def &)): New.
31300 (extern debug (vinsn_def *)): New.
31301 (extern debug_verbose (vinsn_def &)): New.
31302 (extern debug_verbose (vinsn_def *)): New.
31303 (extern debug (expr_def &)): New.
31304 (extern debug (expr_def *)): New.
31305 (extern debug_verbose (expr_def &)): New.
31306 (extern debug_verbose (expr_def *)): New.
31307 (extern debug (vec<rtx> &)): New.
31308 (extern debug (vec<rtx> *)): New.
31310 (_list_iter_cond_expr): Make inline instead of static.
31312 (debug (sreal &)): New.
31313 (debug (sreal *)): New.
31315 (extern debug (sreal &)): New.
31316 (extern debug (sreal *)): New.
31318 (extern debug_raw (const tree_node &)): New.
31319 (extern debug_raw (const tree_node *)): New.
31320 (extern debug (const tree_node &)): New.
31321 (extern debug (const tree_node *)): New.
31322 (extern debug_verbose (const tree_node &)): New.
31323 (extern debug_verbose (const tree_node *)): New.
31324 (extern debug_head (const tree_node &)): New.
31325 (extern debug_head (const tree_node *)): New.
31326 (extern debug_body (const tree_node &)): New.
31327 (extern debug_body (const tree_node *)): New.
31328 (extern debug (vec<tree, va_gc> &)): New.
31329 (extern debug (vec<tree, va_gc> *)): New.
31331 (debug (struct loop &)): New.
31332 (debug (struct loop *)): New.
31333 (debug_verbose (struct loop &)): New.
31334 (debug_verbose (struct loop *)): New.
31335 * tree-dump.c: Add header dependence.
31337 (extern debug (struct loop &)): New.
31338 (extern debug (struct loop *)): New.
31339 (extern debug_verbose (struct loop &)): New.
31340 (extern debug_verbose (struct loop *)): New.
31342 (debug (data_reference &)): New.
31343 (debug (data_reference *)): New.
31344 (debug (vec<data_reference_p> &)): New.
31345 (debug (vec<data_reference_p> *)): New.
31346 (debug (vec<ddr_p> &)): New.
31347 (debug (vec<ddr_p> *)): New.
31349 (extern debug (data_reference &)): New.
31350 (extern debug (data_reference *)): New.
31351 (extern debug (vec<data_reference_p> &)): New.
31352 (extern debug (vec<data_reference_p> *)): New.
31353 (extern debug (vec<ddr_p> &)): New.
31354 (extern debug (vec<ddr_p> *)): New.
31356 (debug (pt_solution &)): New.
31357 (debug (pt_solution *)): New.
31359 (extern debug (pt_solution &)): New.
31360 (extern debug (pt_solution *)): New.
31362 (debug (_var_map &)): New.
31363 (debug (_var_map *)): New.
31364 (debug (tree_live_info_d &)): New.
31365 (debug (tree_live_info_d *)): New.
31367 (extern debug (_var_map &)): New.
31368 (extern debug (_var_map *)): New.
31369 (extern debug (tree_live_info_d &)): New.
31370 (extern debug (tree_live_info_d *)): New.
31372 2013-03-28 Jan Hubicka <jh@suse.cz>
31374 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
31376 2013-03-28 Ian Bolton <ian.bolton@arm.com>
31378 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
31379 record only when desired or required.
31381 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
31383 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
31384 *vec_extractv2di_1_rex64. Use x64 isa attribute.
31386 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31388 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
31389 (*andsi3_compare0_uxtw): New pattern.
31390 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
31391 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
31393 2013-03-28 Jan Hubicka <jh@suse.cz>
31395 * data-streamer-in.c (streamer_read_gcov_count): New function.
31396 * gimple-streamer-out.c: Include value-prof.h.
31397 (output_gimple_stmt): Output histogram.
31398 (output_bb): Use streamer_write_gcov_count.
31399 * value-prof.c: Include data-streamer.h
31400 (dump_histogram_value): Add HIST_TYPE_MAX.
31401 (stream_out_histogram_value): New function.
31402 (stream_in_histogram_value): New function.
31403 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
31404 (stream_out_histogram_value, stream_in_histogram_value): Declare.
31405 * data-streamer-out.c (streamer_write_gcov_count): New function.
31406 (streamer_write_gcov_count_stream): New function.
31407 * lto-cgraph.c (lto_output_edge): Update counter streaming.
31408 (lto_output_node): Likewise.
31409 (input_node, input_edge): Likewise.
31410 * lto-streamer-out.c (output_cfg): Update streaming.
31411 * lto-streamer-in.c (input_cfg): Likewise.
31412 * data-streamer.h (streamer_write_gcov_count,
31413 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
31414 * gimple-streamer-in.c: Include value-prof.h
31415 (input_gimple_stmt): Input histograms.
31416 (input_bb): Update profile streaming.
31418 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
31420 * genmodes.c (emit_max_int): New function.
31421 (emit_insn_modes_h): Added call to emit_max_function.
31422 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
31424 * machmode.def: Fixed comment.
31426 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
31428 * combine.c (try_combine): Removed useless assert.
31429 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
31431 2013-03-28 Marek Polacek <polacek@redhat.com>
31432 Richard Biener <rguenther@suse.de>
31434 PR tree-optimization/56695
31435 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
31436 build signed result of a vector comparison.
31437 * tree-cfg.c (verify_gimple_comparison): Check that a result
31438 of a vector comparison has signed type.
31440 2013-03-28 Richard Biener <rguenther@suse.de>
31442 PR tree-optimization/37021
31443 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
31444 do not restrict gaps between groups.
31445 * tree-vect-stmts.c (vectorizable_load): Properly account for
31446 a gap between groups.
31448 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
31450 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
31451 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
31454 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
31456 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
31457 * doc/extend.texi (Named Address Spaces): Ditto.
31458 (Variable Attributes): Ditto.
31460 2013-03-27 Kai Tietz <ktietz@redhat.com>
31462 * config.build: Add support for cygwin x64 target.
31463 * config.gcc: Likewise.
31464 * config.host: Likewise.
31465 * configure.ac: Likewise
31466 * configure: Regenerated.
31468 2013-03-27 Kai Tietz <ktietz@redhat.com>
31470 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
31471 * config/i386/t-cygwin-w64: New file.
31472 * config/i386/cygwin-w64.h: New file.
31473 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
31474 and add support for x64-cygwin target.
31475 (CPP_SPEC): Likewise.
31476 (CXX_WRAP_SPEC_LIST): Undefine before define.
31477 (LIBGCJ_SONAME): Use 15 as version.
31479 2013-03-27 Richard Biener <rguenther@suse.de>
31481 PR tree-optimization/56716
31482 * tree-ssa-structalias.c (perform_var_substitution): Adjust
31483 dumping for ref nodes.
31485 2013-03-27 Martin Jambor <mjambor@suse.cz>
31487 PR tree-optimization/55334
31488 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
31489 restricted pointers to arrays.
31491 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
31493 * Makefile.in (.SUFFIXES): Add .cc.
31494 (.c.o): Apply same recipe for implicit rule .cc.o.
31496 2013-03-27 Richard Biener <rguenther@suse.de>
31498 PR tree-optimization/37021
31499 * tree-vect-data-refs.c (vect_check_strided_load): Allow
31500 REALPART/IMAGPART_EXPRs around the supported refs.
31501 * tree-ssa-structalias.c (find_func_aliases): Assume that
31502 floating-point values are not used to transfer pointers.
31504 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
31506 * target.def (TARGET_HAS_IFUNC_P): New target hook.
31507 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
31508 * doc/tm.texi: Regenerate.
31509 * targhooks.h (default_has_ifunc_p): New.
31510 * targhooks.c (default_has_ifunc_p): Ditto.
31511 * config/linux-protos.h: New file.
31512 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
31513 hook for linux which disables support of indirect functions in android.
31514 * config/linux-android.c: New file.
31515 * config/t-linux-android.c: Ditto.
31516 * config.gcc: Added new object file linux-android.o.
31517 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
31518 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
31519 * varasm.c (do_assemble_alias): Likewise.
31520 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
31521 doesn't support indirect functions.
31522 * configure: Regenerate.
31524 2013-03-27 Bin Cheng <bin.cheng@arm.com>
31527 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
31528 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
31531 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31533 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
31535 2013-03-27 Terry Guo <terry.guo@arm.com>
31537 * config/arm/arm-cores.def: Added core cortex-r7.
31538 * config/arm/arm-tune.md: Regenerated.
31539 * config/arm/arm-tables.opt: Regenerated.
31540 * doc/invoke.texi: Added entry for core cortex-r7.
31542 2013-03-27 Walter Lee <walt@tilera.com>
31544 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
31545 double-decrement of next_scratch_regno.
31547 2013-03-27 Walter Lee <walt@tilera.com>
31549 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
31551 (insn_v1mulus): Ditto.
31552 (insn_v2muls): Ditto.
31554 2013-03-27 Walter Lee <walt@tilera.com>
31556 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
31557 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
31559 2013-03-27 Walter Lee <walt@tilera.com>
31561 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
31562 (*sibcall_value): Ditto.
31564 2013-03-27 Walter Lee <walt@tilera.com>
31566 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
31567 (insn_mnz_v8qi): ... this ...
31568 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
31570 (insn_v<n>mnz): Replaced by ...
31571 (insn_v1mnz): ... this ...
31572 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
31574 (insn_mz_<mode>): Replaced by ...
31575 (insn_mz_v8qi): ... this ...
31576 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
31578 (insn_v<n>mz): Replaced by ...
31579 (insn_v1mz): ... this ...
31580 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
31583 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
31585 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
31587 2013-03-26 Roland McGrath <mcgrathr@google.com>
31589 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
31590 than fprintf with a non-constant, non-format string.
31592 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
31594 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
31595 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
31596 operand 0 predicate.
31597 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
31598 attribute. Use general_x64nomem_operand as operand 1 predicate.
31599 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
31600 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
31601 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
31602 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
31603 (mov<mode>_insv_1): Remove expander. Merge insn with
31604 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
31605 Use general_x64nomem_operand as operand 1 predicate.
31606 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
31607 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
31608 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
31609 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
31610 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
31611 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
31612 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
31613 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
31614 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
31615 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
31616 (general_x64nomem_operand): Ditto.
31618 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
31620 * config/rtems.opt: Add -pthread option.
31622 2013-03-26 Richard Biener <rguenther@suse.de>
31624 * alias.c (find_base_term): Avoid redundant and not used recursion.
31625 (base_alias_check): Get the initial base term from the caller.
31626 (true_dependence_1): Compute and pass base terms to base_alias_check.
31627 (write_dependence_p): Likewise.
31628 (may_alias_p): Likewise.
31630 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
31632 * config/aarch64/aarch64.c (aarch64_classify_address): Support
31633 PC-relative load in SI modes and above only.
31635 2013-03-26 Xinyu Qi <xyqi@marvell.com>
31637 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
31638 * config/arm/iwmmxt.md (WCGR0): Update.
31639 (WCGR1, WCGR2, WCGR3): Likewise.
31641 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
31643 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
31644 Use x64 and nox64 isa attributes.
31646 2013-03-26 Richard Biener <rguenther@suse.de>
31648 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
31649 alignment computations and rely on get_object_alignment_1
31650 for the !TYPE_P case.
31651 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
31653 2013-03-26 Walter Lee <walt@tilera.com>
31655 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
31656 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
31658 2013-03-25 Jeff Law <law@redhat.com>
31660 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
31661 check for INTEGRAL_TYPE_P that was missing due to checking in
31662 wrong version of prior patch.
31664 2013-03-25 Walter Lee <walt@tilera.com>
31666 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
31667 TILEGX_INSN_SHUFFLEBYTES1.
31668 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
31670 (tilegx_builtins): Ditto.
31671 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
31673 2013-03-25 Walter Lee <walt@tilera.com>
31675 * config/tilegx/tilegx.md (floatsisf2): New pattern.
31676 (floatunssisf2): New pattern.
31677 (floatsidf2): New pattern.
31678 (floatunssidf2): New pattern.
31680 2013-03-25 Walter Lee <walt@tilera.com>
31682 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
31683 tests for constraint J, K, N, P.
31685 2013-03-25 Walter Lee <walt@tilera.com>
31687 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
31688 Use indirect/pcrel encoding.
31689 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
31692 2013-03-25 Steve Ellcey <sellcey@mips.com>
31694 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
31695 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
31696 * config/mips/mips.c (mips_option_override): Set IMADD default.
31697 * config/mips/mips.h (PTF_AVOID_IMADD): New.
31698 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
31699 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
31700 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
31701 * doc/invoke.texi (-mimadd/-mno-imadd): New.
31703 2013-03-25 Jeff Law <law@redhat.com>
31705 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
31706 slightly to avoid creating and folding useless trees. Simplify
31707 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
31709 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
31711 * config/i386/i386.md (*zero_extendsidi2): Merge with
31712 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
31713 * config/i386/predicates.md (x86_64_zext_operand): Rename from
31714 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
31715 targets. Clarify comment.
31717 2013-03-25 Martin Jambor <mjambor@suse.cz>
31719 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
31720 pass-through jump functions differently.
31721 (ipa_read_jump_function): Likewise. Also use setter functions to set
31724 2013-03-25 Martin Jambor <mjambor@suse.cz>
31726 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
31727 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
31729 (ipa_get_indirect_edge_target): New function.
31730 (devirtualization_time_bonus): New parameter known_aggs, pass it to
31731 ipa_get_indirect_edge_target. Update all callers.
31732 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
31733 ipa_get_indirect_edge_target_1 instead of calling
31734 ipa_get_indirect_edge_target.
31735 (create_specialized_node): Pass aggvlas to
31736 ipcp_discover_new_direct_edges.
31738 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31740 * config/arm/arm.md (f_sels, f_seld): New types.
31741 (*cmov<mode>): New pattern.
31742 * config/arm/predicates.md (arm_vsel_comparison_operator): New
31745 2013-03-25 Kai Tietz <ktietz@redhat.com>
31747 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
31748 POSIX-printf for mingw-hosted builds.
31750 2013-03-25 Richard Biener <rguenther@suse.de>
31752 PR middle-end/56694
31753 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
31754 must-not-throw stmt location.
31756 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31758 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
31759 Emit load-acquire versions when acq is true.
31760 (arm_emit_store_exclusive): Add rel parameter.
31761 Emit store-release versions when rel is true.
31762 (arm_split_compare_and_swap): Use acquire-release instructions
31764 of barriers when appropriate.
31765 (arm_split_atomic_op): Likewise.
31766 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
31767 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
31768 (VUNSPEC_SLX): Likewise.
31769 (VUNSPEC_LDA): Likewise.
31770 (VUNSPEC_STL): Likewise.
31771 * config/arm/sync.md (atomic_load<mode>): New pattern.
31772 (atomic_store<mode>): Likewise.
31773 (arm_load_acquire_exclusive<mode>): Likewise.
31774 (arm_load_acquire_exclusivesi): Likewise.
31775 (arm_load_acquire_exclusivedi): Likewise.
31776 (arm_store_release_exclusive<mode>): Likewise.
31778 2013-03-25 Catherine Moore <clm@codesourcery.com>
31780 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
31781 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
31782 * config/mip/predicates.md (lwsp_swsp_operand,
31783 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
31784 sb16_operand, db4_operand, db7_operand, ib3_operand,
31785 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
31786 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
31787 andi16_operand): New predicates.
31788 * config/mips/mips.md (compression): New attribute.
31789 (enabled): New attribute.
31790 (length): Consider compression in computing length.
31791 (shift_compression): New code attribute.
31792 (*add<mode>3): New operands. Record compression.
31793 (sub<mode>3): Likewise.
31794 (one_cmpl<mode>2): Likewise.
31795 (*and<mode>3): Likewise.
31796 (*ior<mode>3): Likewise.
31797 (unnamed pattern for xor): Likewise.
31798 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
31799 (*<optab><mode>3): Likewise.
31800 (*mov<mode>_internal: Likewise.
31801 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
31802 (mips_unsigned_immediate_p): New.
31803 (umips_lwsp_swsp_address_p): New.
31804 (m16_based_address_p): New.
31805 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
31806 (mips_unsigned_immediate_p): New prototype.
31807 (lwsp_swsp_address_p): New prototype.
31808 (m16_based_address_p): New prototype.
31809 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
31810 (mips_signed_immediate_p): New function.
31811 (m16_based_address_p): New function.
31812 (lwsp_swsp_address_p): New function.
31813 (mips_print_operand_punctuation): Recognize short delay slot insns
31814 for microMIPS.add<mode>3"
31816 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31819 * config/arm/iterators.md (v_cmp_result): New mode attribute.
31820 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
31822 2013-03-25 Richard Biener <rguenther@suse.de>
31824 PR tree-optimization/56689
31825 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
31828 2013-03-25 Richard Biener <rguenther@suse.de>
31830 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
31832 (memory_references): Likewise.
31833 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
31834 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
31835 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
31836 (gather_mem_refs_in_loops): Fold into ...
31837 (analyze_memory_references): ... this. Move initialization
31838 to tree_ssa_lim_initialize.
31839 (fill_always_executed_in): Rename to ...
31840 (fill_always_executed_in_1): ... this.
31841 (fill_always_executed_in): Move contains_call computation to
31842 this new function from ...
31843 (tree_ssa_lim_initialize): ... here.
31844 (tree_ssa_lim): Call fill_always_executed_in.
31846 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
31848 * postreload.c (reload_combine): Fix code detecting returns.
31850 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
31852 * function.c (emit_use_return_register_into_block): On cc0 targets,
31853 do not emit the sequence between cc0 setter and user.
31855 2013-03-25 Kai Tietz <ktietz@redhat.com>
31857 * config/i386/predicates.md (local_symbolic_operand): Interpret
31858 dll-imported symbols as none-local.
31860 2013-03-25 Richard Biener <rguenther@suse.de>
31862 * tree-ssa-loop-im.c (struct depend): Remove.
31863 (struct lim_aux_data): Make depends a vec of gimples.
31864 (free_lim_aux_data): Adjust.
31865 (add_dependency): Likewise.
31866 (set_level): Likewise.
31868 2013-03-25 Richard Biener <rguenther@suse.de>
31870 PR middle-end/56434
31871 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
31872 the pointer returned by calls with ECF_MALLOC set.
31874 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
31876 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
31878 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
31880 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
31881 using MMXMODE mode iterator.
31882 (*move<mode>_internal): Merge with *movv2sf_internal and
31883 *movv2sf_internal_rex64 using MMXMODE mode iterator.
31885 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
31887 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
31888 (record_last_mem_set_info): Likewise.
31890 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
31891 of XNEWVEC followed by memset.
31892 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
31894 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
31896 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
31897 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
31898 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
31899 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
31900 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
31901 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
31902 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
31903 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
31904 BARRIER_P instead of GET_CODE.
31906 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
31908 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
31909 inaccuracy in the probing code.
31911 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
31912 (ctrapdi4): Likewise.
31914 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
31916 * calls.c (expand_call): Add missing guard to code handling return
31917 of non-BLKmode structures in MSB.
31918 * function.c (expand_function_end): Likewise.
31920 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
31922 * combine.c (try_combine): Adjust comment. Do not add the set of
31923 insn #0 if the destination indirectly is set or dies in insn #2.
31924 Tidy up code to distribute a new note.
31926 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
31928 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
31929 also for alternatives 16 and 17.
31931 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
31933 * config/i386/sse.md (*mov<mode>_internal): Merge with
31934 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
31935 Emit insn template depending on type attribute. Use
31936 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
31937 movd instead of movq mnemonic for interunit moves. Rewrite mode
31938 attribute calculation. Remove unit attribute calculation.
31939 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
31940 Set prefix_data16 attribute for DImode ssemov types.
31941 Use Ym instead of y for SSE-MMX conversion alternatives.
31942 Reorder operand constraints.
31944 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
31946 * df.h (df_insn_delete): Adjust prototype.
31947 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
31948 and let it decide whether mark the basic block dirty.
31949 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
31950 * df-scan.c (df_insn_info_delete): New helper function, split
31951 off from df_insn_delete.
31952 (df_scan_free_bb_info): Use it.
31953 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
31955 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
31956 that the insn is actually an insn and it has a non-NULL basic block.
31957 Do not mark basic block dirty if only deleting a DEBUG_INSN.
31959 2013-03-22 Richard Biener <rguenther@suse.de>
31961 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
31963 (mem_ref_alloc): Do not allocate them.
31964 (refs_independent_p): Do not query or maintain a cache.
31966 2013-03-22 Richard Biener <rguenther@suse.de>
31968 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
31969 (gather_mem_refs_in_loops): Do not compute it.
31970 (analyze_memory_references): Do not allocate it.
31971 (tree_ssa_lim_finalize): Do not free it.
31972 (for_all_locs_in_loop): Do not query all_refs_in_loop.
31974 2013-03-22 Richard Biener <rguenther@suse.de>
31976 * is-a.h (as_a): Use gcc_checking_assert.
31978 2013-03-22 Ian Bolton <ian.bolton@arm.com>
31980 * config/aarch64/aarch64.c (aarch64_print_operand): New
31981 format specifier for printing a constant in hex.
31982 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
31983 format specifier for printing second operand.
31985 2013-03-22 Richard Biener <rguenther@suse.de>
31987 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
31989 (gather_mem_refs_in_loops): Perform store accumulation here.
31990 (create_vop_ref_mapping_loop): Remove.
31991 (create_vop_ref_mapping): Likewise.
31992 (analyze_memory_references): Initialize refs_stored_in_loop.
31993 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
31994 (record_indep_loop): Remove.
31995 (record_dep_loop): New function.
31996 (ref_indep_loop_p_1): Adjust to only walk over references
31997 in the loop, not its subloops.
31998 (ref_indep_loop_p): Rename to ...
31999 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
32000 maintaining a more fine-grained cache.
32001 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
32002 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
32004 2013-03-22 Richard Biener <rguenther@suse.de>
32006 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
32007 (struct mem_ref): Make accesses_in_loop a vec of a vec of
32008 aggregate mem_ref_loc.
32009 (free_mem_ref_locs): Inline into ...
32010 (memref_free): ... this and adjust.
32011 (mem_ref_alloc): Adjust.
32012 (mem_ref_locs_alloc): Remove.
32013 (record_mem_ref_loc): Adjust.
32014 (get_all_locs_in_loop): Rewrite into ...
32015 (for_all_locs_in_loop): ... this iterator.
32016 (rewrite_mem_ref_loc): New functor.
32017 (rewrite_mem_refs): Use for_all_locs_in_loop.
32018 (sm_set_flag_if_changed): New functor.
32019 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
32020 (ref_always_accessed): New functor.
32021 (ref_always_accessed_p): Use for_all_locs_in_loop.
32023 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
32025 * tree-pass.h (PROP_gimple_lvec): New.
32026 * passes.c (dump_properties): Handle PROP_gimple_lvec.
32027 (init_optimization_passes): Move pass_lower_vector.
32028 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
32030 (pass_lower_vector): Provide PROP_gimple_lvec.
32031 (pass_lower_vector_ssa): Likewise.
32032 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
32034 2013-03-21 Mark Wielaard <mjw@redhat.com>
32036 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
32038 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
32040 * config/i386/i386.md (*movdi_internal): Disparage slightly
32041 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
32042 conversion alternatives.
32044 2013-03-21 Jakub Jelinek <jakub@redhat.com>
32046 PR middle-end/48087
32047 * diagnostic.def (DK_WERROR): New kind.
32048 * diagnostic.h (werrorcount): Define.
32049 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
32050 promoted to DK_ERROR, increment DK_WERROR counter instead of
32052 * toplev.c (toplev_main): Call print_ignored_options even if
32053 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
32054 even if just werrorcount is non-zero.
32057 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
32059 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
32060 (string_cst_pool_decl): New function.
32061 (optimize_one_addr_into_implicit_ptr): New function.
32062 (resolve_addr_in_expr): Optimize DWARF location expression
32063 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
32064 which doesn't live in memory, but has DW_AT_location or
32065 DW_AT_const_value, or refers to a string literal, into
32066 DW_OP_GNU_implicit_pointer.
32067 (optimize_location_into_implicit_ptr): New function.
32068 (resolve_addr): If removing DW_AT_location of a variable because
32069 it was DW_OP_addr of address of the variable, but the variable doesn't
32070 live in memory, try to emit const value attribute for the initializer.
32072 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
32074 * tree.h (VECTOR_TYPE_P): New macro.
32075 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
32076 TYPE_MODE): Use it.
32077 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
32078 VEC_COND_EXPR cannot be lvalues.
32079 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
32081 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
32083 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
32084 Restrict the transformation to equal modes.
32086 2013-03-21 Richard Biener <rguenther@suse.de>
32088 PR tree-optimization/39326
32089 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
32090 (MEM_ANALYZABLE): Adjust.
32091 (record_mem_ref_loc): Move bitmap ops ...
32092 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
32093 unanalyzable refs, do not record locations for it.
32094 (analyze_memory_references): Allocate ref zero as shared
32096 (refs_independent_p): Do not test for unanalyzed mems here.
32097 (ref_indep_loop_p_1): Special-case disambiguation against
32098 the unanalyzed ref.
32099 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
32101 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
32103 * config/arm/arm-protos.h (tune_params): Add
32104 prefer_neon_for_64bits field.
32105 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
32106 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
32107 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
32108 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
32109 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
32110 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
32111 (arm_option_override): Handle -mneon-for-64bits new option.
32112 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
32113 (prefer_neon_for_64bits): Declare new variable.
32114 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
32115 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
32116 (arch_enabled): Handle new arch types. Remove support for onlya8
32118 (one_cmpldi2): Use new arch names.
32119 (zero_extend<mode>di2, extend<mode>di2): Ditto.
32120 * config/arm/arm.opt (mneon-for-64bits): Add option.
32121 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
32122 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
32123 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
32125 * doc/invoke.texi (-mneon-for-64bits): Document.
32127 2013-03-21 Richard Biener <rguenther@suse.de>
32129 PR tree-optimization/39326
32130 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
32131 (sort_bbs_in_loop_postorder_cmp): New function.
32132 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
32134 2013-03-21 Richard Biener <rguenther@suse.de>
32136 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
32137 (vect_insert_into_interleaving_chain): Likewise.
32138 (vect_drs_dependent_in_basic_block): Inline ...
32139 (vect_slp_analyze_data_ref_dependence): ... here. New function,
32141 (vect_analyze_data_ref_dependence): ... here. Simplify.
32142 (vect_check_interleaving): Simplify.
32143 (vect_analyze_data_ref_dependences): Likewise. Split out ...
32144 (vect_slp_analyze_data_ref_dependences): ... this new function.
32145 (dr_group_sort_cmp): New function.
32146 (vect_analyze_data_ref_accesses): Compute data-reference groups
32147 here instead of in vect_analyze_data_ref_dependence. Use
32148 a more efficient algorithm.
32149 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
32150 vect_slp_analyze_data_ref_dependences. Call
32151 vect_analyze_data_ref_accesses earlier.
32152 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
32153 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
32154 (vect_slp_analyze_data_ref_dependences): New prototype.
32156 2013-03-21 Richard Biener <rguenther@suse.de>
32158 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
32159 ref is stored in the loop.
32160 (find_refs_for_sm): Walk only over all stores.
32161 (store_motion_loop): Allocate from lim_bitmap_obstack.
32162 (store_motion): Likewise.
32164 2013-03-21 Richard Biener <rguenther@suse.de>
32166 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
32167 Update virtual SSA form.
32169 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32171 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
32172 * configure: Regenerate.
32173 * config.in: Regenerate.
32174 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
32175 if !HAVE_LD_EH_FRAME_CIEV3.
32177 2013-03-21 Richard Biener <rguenther@suse.de>
32179 * tree-cfg.c (verify_expr_no_block): New function.
32180 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
32181 nor DECL_VALUE_EXPR have locations with associated blocks.
32182 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
32183 (clear_unused_block_pointer): Remove code dealing with
32184 blocks in DECL_DEBUG_EXPR locations.
32186 2013-03-21 Richard Biener <rguenther@suse.de>
32188 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
32189 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
32190 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
32191 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
32192 instead of DECL_DEBUG_EXPR_IS_FROM.
32193 * gimplify.c (gimplify_modify_expr): Likewise.
32194 * tree-cfg.c (verify_expr_location_1): Likewise.
32195 * tree-complex.c (create_one_component_var): Likewise.
32196 * tree-sra.c (create_access_replacement): Likewise.
32197 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
32198 (clear_unused_block_pointer): Likewise.
32199 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
32200 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
32201 * var-tracking.c (var_debug_decl): Likewise.
32202 (track_expr_p): Likewise.
32203 * tree-inline.c (add_local_variables): Likewise. Set
32204 DECL_HAS_DEBUG_EXPR_P after copying it.
32205 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
32206 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
32208 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
32211 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
32212 * configure: Regenerate.
32213 * config.in: Regenerate.
32214 * config/i386/i386.md (*movdf_internal): Use
32215 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
32216 movd instead of movq mnemonic for interunit moves.
32217 (*movdi_internal): Ditto.
32219 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32221 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
32222 (abd<mode>_3): New pattern.
32223 (aba<mode>_3): New pattern.
32224 (fabd<mode>_3): New pattern.
32226 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32228 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
32229 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
32230 occurrence of REGISTER_PREFIX as its empty string.
32232 2013-03-20 Jeff Law <law@redhat.com>
32234 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
32235 addititional equivalences for equality comparisons between an SSA_NAME
32236 and a constant where the SSA_NAME was set from a widening conversion.
32238 2013-03-20 Walter Lee <walt@tilera.com>
32240 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
32242 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
32244 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
32245 depending on type attribute.
32246 (*movti_internal): Ditto.
32247 (*movtf_internal): Ditto.
32248 (*movxf_internal): Ditto.
32249 (*movdf_internal): Ditto.
32250 (*movsf_internal): Ditto.
32252 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
32254 * config/i386/i386.md (*movti_internal): Set prefix attribute to
32255 maybe_vex for sselog1 and ssemov types.
32256 (*movdi_internal): Reorder operand constraints.
32257 (*movsi_internal): Ditto. Set prefix attribute to
32258 maybe_vex for sselog1 and ssemov types.
32259 (*movtf_internal): Set prefix attribute to maybe_vex
32260 for sselog1 and ssemov types.
32261 (*movdf_internal): Ditto. Set prefix_data16 attribute for
32262 DImode ssemov types. Reorder operand constraints.
32263 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
32264 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
32265 attribute for SImode ssemov types. Reorder operand constraints.
32267 2013-03-20 Martin Jambor <mjambor@suse.cz>
32269 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
32270 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
32272 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
32274 * config/rs6000/predicates.md (indexed_address, update_address_mem
32275 update_indexed_address_mem): New predicates.
32276 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
32277 attribute for load/store instructions.
32278 * config/rs6000/dfp.md (movsd_store): Likewise.
32279 (movsd_load): Likewise.
32280 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
32281 (unnamed HI->DI extend define_insn): Likewise.
32282 (unnamed SI->DI extend define_insn): Likewise.
32283 (unnamed QI->SI extend define_insn): Likewise.
32284 (unnamed QI->HI extend define_insn): Likewise.
32285 (unnamed HI->SI extend define_insn): Likewise.
32286 (unnamed HI->SI extend define_insn): Likewise.
32287 (extendsfdf2_fpr): Likewise.
32288 (movsi_internal1): Likewise.
32289 (movsi_internal1_single): Likewise.
32290 (movhi_internal): Likewise.
32291 (movqi_internal): Likewise.
32292 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
32293 attribute for load/store instructions.
32294 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
32296 (mov<mode>_softfloat): Likewise.
32297 (mov<mode>_hardfloat32): Likewise.
32298 (mov<mode>_hardfloat64): Likewise.
32299 (mov<mode>_softfloat64): Likewise.
32300 (movdi_internal32): Likewise.
32301 (movdi_internal64): Likewise.
32302 (probe_stack_<mode>): Likewise.
32304 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
32306 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
32307 floating point, and decimal floating point to reload iterator.
32309 * config/rs6000/constraints.md (wl constraint): New constraints to
32310 return FLOAT_REGS if certain options are used to reduce the number
32311 of separate patterns that exist in the file.
32312 (wx constraint): Likewise.
32313 (wz constraint): Likewise.
32315 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
32316 -mdebug=reg, print wg, wl, wx, and wz constraints.
32317 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
32318 Initialize the reload functions for 64-bit binary/decimal floating
32320 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
32321 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
32322 create the buffer on the stack to overcome not having a 32-bit
32324 (rs6000_emit_move): Likewise.
32325 (rs6000_secondary_memory_needed_rtx): Likewise.
32326 (rs6000_alloc_sdmode_stack_slot): Likewise.
32327 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
32328 via xxlxor, just like DFmode 0.0.
32330 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
32331 define as 1 if we are running on a power7 or newer.
32332 (enum r6000_reg_class_enum): Add new constraints.
32334 * config/rs6000/dfp.md (movsd): Delete, combine with binary
32335 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
32336 with other moves by using conditional constraits (wg). Use LFIWZX
32337 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
32338 (movsd splitter): Likewise.
32339 (movsd_hardfloat): Likewise.
32340 (movsd_softfloat): Likewise.
32342 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
32343 binary and decimal floating point moves.
32344 (fmove_ok): New attributes to combine binary and decimal floating
32345 point moves, and to combine power6x (mfpgpr) moves along normal
32347 (real_value_to_target): Likewise.
32348 (f32_lr): Likewise.
32349 (f32_lm): Likewise.
32350 (f32_li): Likewise.
32351 (f32_sr): Likewise.
32352 (f32_sm): Likewise.
32353 (f32_si): Likewise.
32354 (movsf): Combine binary and decimal floating point moves. Combine
32355 power6x (mfpgpr) moves with other moves by using conditional
32356 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
32357 (mov<mode> for SFmode/SDmode); Likewise.
32358 (SFmode/SDmode splitters): Likewise.
32359 (movsf_hardfloat): Likewise.
32360 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
32361 (movsf_softfloat): Likewise.
32362 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
32364 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
32365 wx and wz constraints.
32367 * config/rs6000/constraints.md (wg constraint): New constraint to
32368 return FLOAT_REGS if -mmfpgpr (power6x) was used.
32370 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
32373 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
32374 -mdebug=reg, print wg, wl, wx, and wz constraints.
32375 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
32376 Initialize the reload functions for 64-bit binary/decimal floating
32378 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
32379 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
32380 create the buffer on the stack to overcome not having a 32-bit
32382 (rs6000_emit_move): Likewise.
32383 (rs6000_secondary_memory_needed_rtx): Likewise.
32384 (rs6000_alloc_sdmode_stack_slot): Likewise.
32385 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
32386 via xxlxor, just like DFmode 0.0.
32388 * config/rs6000/dfp.md (movdd): Delete, combine with binary
32389 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
32390 with other moves by using conditional constraits (wg). Use LFIWZX
32391 and STFIWX for loading SDmode on power7.
32392 (movdd splitters): Likewise.
32393 (movdd_hardfloat32): Likewise.
32394 (movdd_softfloat32): Likewise.
32395 (movdd_hardfloat64_mfpgpr): Likewise.
32396 (movdd_hardfloat64): Likewise.
32397 (movdd_softfloat64): Likewise.
32399 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
32400 64-bit binary and decimal floating point moves.
32401 (FMOVE64X): Likewise.
32402 (movdf): Combine 64-bit binary and decimal floating point moves.
32403 Combine power6x (mfpgpr) moves with other moves by using
32404 conditional constraits (wg).
32405 (mov<mode> for DFmode/DDmode): Likewise.
32406 (DFmode/DDmode splitters): Likewise.
32407 (movdf_hardfloat32): Likewise.
32408 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
32409 (movdf_softfloat32): Likewise.
32410 (movdf_hardfloat64_mfpgpr): Likewise.
32411 (movdf_hardfloat64): Likewise.
32412 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
32413 (movdf_softfloat64): Likewise.
32414 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
32415 (reload_<mode>_load): Move to later in the file so they aren't in
32416 the middle of the floating point move insns.
32417 (reload_<mode>_store): Likewise.
32419 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
32422 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
32423 constraint if -mdebug=reg.
32424 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
32425 Enable using dd reload support if needed.
32427 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
32428 binary and decimal floating point moves in rs6000.md.
32429 (movtd_internal): Likewise.
32431 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
32432 decimal floating point moves.
32434 (movtf_internal): Likewise.
32435 (mov<mode>_internal, TDmode/TFmode): Likewise.
32436 (movtf_softfloat): Likewise.
32437 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
32439 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
32440 movdi_internal64, using wg constraint for move direct operations.
32441 (movdi_internal64): Likewise.
32443 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
32444 MODES_TIEABLE_P for selected modes. Print the numerical value of
32445 the various virtual registers. Use GPR/FPR first/last values,
32446 instead of hard coding the register numbers. Print which modes
32447 have reload functions registered.
32448 (rs6000_option_override_internal): If -mdebug=reg, trace the options
32449 settings before/after setting cpu, target and subtarget settings.
32450 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
32451 and for secondary reload failures in rs6000_secondary_reload_inner.
32452 (rs6000_secondary_reload_fail): Likewise.
32453 (rs6000_secondary_reload_inner): Likewise.
32455 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
32456 macros for first/last GPR and FPR registers.
32457 (LAST_GPR_REGNO): Likewise.
32458 (FIRST_FPR_REGNO): Likewise.
32459 (LAST_FPR_REGNO): Likewise.
32461 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
32462 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
32463 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
32464 (vcond<mode><mode>): Likewise.
32465 (vcondu<mode><mode>): Likewise.
32466 (vector_gtu<mode>): Likewise.
32467 (vector_gte<mode>): Likewise.
32468 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
32469 to prevent the compiler from converting DImode operations to TImode.
32470 (ior<mode>3): Likewise.
32471 (and<mode>3): Likewise.
32472 (one_cmpl<mode>2): Likewise.
32473 (nor<mode>3): Likewise.
32474 (andc<mode>3): Likewise.
32476 * config/rs6000/constraints.md (wt constraint): New constraint
32477 that returns VSX_REGS if TImode is allowed in VSX registers.
32479 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
32480 constant under VSX.
32482 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
32483 similar to TImode, but it is restricted to being in the GPRs.
32485 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
32486 TImode to occupy a single VSX register.
32488 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
32489 -mvsx-timode for power7/power8.
32490 (power7 cpu): Likewise.
32491 (power8 cpu): Likewise.
32493 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
32494 sure that TFmode/TDmode take up two registers if they are ever
32495 allowed in the upper VSX registers.
32496 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
32498 (rs6000_init_hard_regno_mode_ok): Likewise.
32499 (rs6000_debug_reg_global): Add debugging for PTImode and wt
32500 constraint. Print if LRA is turned on.
32501 (rs6000_option_override_internal): Give an error if -mvsx-timode
32502 and VSX is not enabled.
32503 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
32504 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
32505 to reg+offset addressing. Use PTImode when checking offset
32506 addresses for validity.
32507 (reg_offset_addressing_ok_p): Likewise.
32508 (rs6000_legitimate_offset_address_p): Likewise.
32509 (rs6000_legitimize_address): Likewise.
32510 (rs6000_legitimize_reload_address): Likewise.
32511 (rs6000_legitimate_address_p): Likewise.
32512 (rs6000_eliminate_indexed_memrefs): Likewise.
32513 (rs6000_emit_move): Likewise.
32514 (rs6000_secondary_reload): Likewise.
32515 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
32516 reloads to fpr registers to continue to use reg+offset addressing,
32517 but 64-bit reloads to altivec registers need reg+reg addressing.
32518 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
32519 it. Treat LO_SUM like a PLUS operation.
32520 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
32521 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
32522 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
32523 registers to share a register with a smaller sized type, since VSX
32524 puts scalars in the upper 64-bits.
32525 (print_operand): Add support for PTImode.
32526 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
32527 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
32528 registers, but don't have arithmetic support.
32529 (rs6000_memory_move_cost): Add test for VSX.
32530 (rs6000_opt_masks): Add -mvsx-timode.
32532 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
32535 (VSr): Use wt constraint for TImode.
32536 (VSv): Drop TImode support.
32537 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
32538 (vsx_movti_64bit): Likewise.
32539 (vsx_movti_32bit): Likewise.
32540 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
32541 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
32542 one '?' on the appropriate output constraint. Do not allow TImode
32543 logical operations on 32-bit systems.
32544 (vsx_ior<mode>3): Likewise.
32545 (vsx_xor<mode>3): Likewise.
32546 (vsx_one_cmpl<mode>2): Likewise.
32547 (vsx_nor<mode>3): Likewise.
32548 (vsx_andc<mode>3): Likewise.
32549 (vsx_concat_<mode>): Likewise.
32550 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
32552 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
32553 OPTION_MASK_VSX_TIMODE.
32554 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
32555 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
32557 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
32558 (TI2 iterator): New iterator for TImode, PTImode.
32559 (wd mode attribute): Add values for vector types.
32560 (movti_string): Replace TI move operations with operations for TImode
32561 and PTImode. Add support for TImode being allowed in VSX registers.
32562 (mov<mode>_string, TImode/PTImode): Likewise.
32563 (movti_ppc64): Likewise.
32564 (mov<mode>_ppc64, TImode/PTImode): Likewise.
32565 (TI mode splitters): Likewise.
32567 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
32570 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
32572 PR tree-optimization/56355
32573 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
32574 Also handle integers with undefined overflow.
32576 2013-03-20 Catherine Moore <clm@codesourcery.com>
32577 Maciej W. Rozycki <macro@codesourcery.com>
32578 Tom de Vries <tom@codesourcery.com>
32579 Nathan Sidwell <nathan@codesourcery.com>
32580 Iain Sandoe <iain@codesourcery.com>
32581 Nathan Froyd <froydnj@codesourcery.com>
32582 Chao-ying Fu <fu@mips.com>
32584 * doc/extend.texi: (micromips, nomicromips, nocompression):
32585 Document new function attributes.
32586 * doc/invoke.texi (minterlink-compressed, mmicromips,
32587 m14k, m14ke, m14kec): Document new options.
32588 (minterlink-mips16): Update documentation.
32589 * doc/md.texi (ZC, ZD): Document new constraints.
32590 * configure.ac (gcc_cv_as_micromips): Check if linker
32591 supports the .set micromips directive.
32592 * configure: Regenerate.
32593 * config.in: Regenerate.
32594 * config/mips/mips-tables.opt: Regenerate.
32595 * config/mips/micromips.md: New file.
32596 * constraints.md (ZC, ZD): New constraints.
32597 * config/mips/predicates.md (movep_src_register): New predicate.
32598 (movep_src_operand): New predicate.
32599 (non_volatile_mem_operand): New predicate.
32600 * config/mips/mips.md (multimem): New type.
32601 (length): Differentiate between 17-bit and 18-bit branch offsets.
32602 (MOVEP1, MOVEP2): New mode iterator.
32603 (mov_<load>l): Use ZC constraint.
32604 (mov_<load>r): Likewise.
32605 (mov_<store>l): Likewise.
32606 (mov_<store>r): Likewise.
32607 (*branch_equality<mode>_inverted): Add microMIPS support.
32608 (*branch_equality<mode>): Likewise.
32609 (*jump_absolute): Likewise.
32610 (indirect_jump_<mode>): Likewise.
32611 (tablejump_<mode>): Likewise.
32612 (<optab>_internal): Likewise.
32613 (sibcall_internal): Likewise.
32614 (sibcall_value_internal): Likewise.
32615 (prefetch): Use constraint ZD.
32616 * config/mips/mips.opt (minterlink-compressed): New option.
32617 (minterlink-mips16): Now an alias for minterlink-compressed.
32618 (mmicromips): New option.
32619 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
32620 (compare_and_swap_12): Likewise.
32621 (sync_add<mode>): Likewise.
32622 (sync_<optab>_12): Likewise.
32623 (sync_old_<optab>_12): Likewise.
32624 (sync_new_<optab>_12): Likewise.
32625 (sync_nand_12): Likewise.
32626 (sync_old_nand_12): Likewise.
32627 (sync_new_nand_12): Likewise.
32628 (sync_sub<mode>): Likewise.
32629 (sync_old_add<mode>): Likewise.
32630 (sync_old_sub<mode>): Likewise.
32631 (sync_new_add<mode>): Likewise.
32632 (sync_new_sub<mode>): Likewise.
32633 (sync_<optab><mode>): Likewise.
32634 (sync_old_<optab><mode>): Likewise.
32635 (sync_new_<optab><mode>): Likewise.
32636 (sync_nand<mode>): Likewise.
32637 (sync_old_nand<mode>): Likewise.
32638 (sync_new_nand<mode>): Likewise.
32639 (sync_lock_test_and_set<mode>): Likewise.
32640 (test_and_set_12): Likewise.
32641 (atomic_compare_and_swap<mode>): Likewise.
32642 (atomic_exchange<mode>_llsc): Likewise.
32643 (atomic_fetch_add<mode>_llsc): Likewise.
32644 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
32645 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
32646 (umips_save_restore_pattern_p): Likewise.
32647 (umips_load_store_pair_p): Likewise.
32648 (umips_output_load_store_pair): Likewise.
32649 (umips_movep_target_p): Likewise.
32650 (umips_12bit_offset_address_p): Likewise.
32651 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
32652 (mips_base_mips16): Rename this...
32653 (mips_base_compression_flags): ...to this. Update all uses.
32654 (mips_attribute_table): Add micromips, nomicromips and nocompression.
32655 (mips_mips16_decl_p): Delete.
32656 (mips_nomips16_decl_p): Delete.
32657 (mips_get_compress_on_flags): New function.
32658 (mips_get_compress_off_flags): New function.
32659 (mips_get_compress_mode): New function.
32660 (mips_get_compress_on_name): New function.
32661 (mips_get_compress_off_name): New function.
32662 (mips_insert_attributes): Support multiple compression types.
32663 (mips_merge_decl_attributes): Likewise.
32664 (umips_12bit_offset_address_p): New function.
32665 (mips_start_function_definition): Emit .set micromips directive.
32666 (mips_call_may_need_jalx_p): New function.
32667 (mips_function_ok_for_sibcall): Add microMIPS support.
32668 (mips_print_operand_punctuation): Support short delay slots and
32670 (umips_swm_mask, umips_swm_encoding): New.
32671 (umips_build_save_restore): New function.
32672 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
32673 (was_mips16_p): Remove.
32674 (old_compression_mode): New.
32675 (mips_set_compression_mode): New function.
32676 (mips_set_current_function): Add microMIPS support.
32677 (mips_option_override): Likewise.
32678 (umips_save_restore_pattern_p): New function.
32679 (umips_output_save_restore): New function.
32680 (umips_load_store_pair_p_1): New function.
32681 (umips_load_store_pair_p): New function.
32682 (umips_output_load_store_pair_1): New function.
32683 (umips_output_load_store_pair): New function.
32684 (umips_movep_target_p) New function.
32685 (mips_prepare_pch_save): Add microMIPS support.
32686 * config/mips/mips.h (TARGET_COMPRESSION): New.
32687 (TARGET_CPU_CPP_BUILTINS): Update macro
32688 to use new compression flags and to support microMIPS.
32689 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
32690 (MIPS_ARCH_FLOAT_SPEC): Likewise.
32691 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
32692 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
32693 (ASM_SPEC): Support mmicromips and mno-micromips.
32694 (M16STORE_REG_P): New macro.
32695 (MIPS_CALL): Support TARGET_MICROMIPS.
32696 (MICROMIPS_J): New macro.
32697 (mips_base_mips16): Rename this...
32698 (mips_base_compression_flags): ...to this.
32699 (UMIPS_12BIT_OFFSET_P): New macro.
32700 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
32701 (MULTILIB_DIRNAMES): Likewise.
32702 2013-03-20 Richard Biener <rguenther@suse.de>
32704 PR tree-optimization/56661
32705 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
32706 the result does not have to be distinct.
32708 2013-03-20 Richard Biener <rguenther@suse.de>
32710 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
32713 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32714 Steven Bosscher <steven@gcc.gnu.org>
32716 PR rtl-optimization/56605
32717 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
32719 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
32722 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
32723 that require movd instead of movq.
32725 2013-03-20 Richard Biener <rguenther@suse.de>
32727 * tree-ssa-structalias.c (struct variable_info): Add pointer
32728 to the first field of an aggregate with sub-vars. Make
32729 this and the pointer to the next subfield its ID.
32730 (vi_next): New function.
32731 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
32732 storedanything_id, integer_id): Increment by one.
32733 (new_var_info, get_call_vi, lookup_call_clobber_vi,
32734 get_call_clobber_vi): Adjust.
32735 (solution_set_expand): Simplify and speedup.
32736 (solution_set_add): Inline into ...
32737 (set_union_with_increment): ... this. Adjust accordingly.
32738 (do_sd_constraint): Likewise.
32739 (do_ds_constraint): Likewise.
32740 (do_complex_constraint): Simplify.
32741 (build_pred_graph): Adjust.
32742 (solve_graph): Likewise. Simplify and speedup.
32743 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
32744 get_constraint_for_component_ref, get_constraint_for_1,
32745 first_vi_for_offset, first_or_preceding_vi_for_offset,
32746 create_function_info_for, create_variable_info_for_1,
32747 create_variable_info_for, intra_create_variable_infos): Adjust.
32748 (init_base_vars): Push NULL for ID zero.
32749 (compute_points_to_sets): Adjust.
32751 2013-03-20 Richard Biener <rguenther@suse.de>
32753 * cfgloop.c (verify_loop_structure): Streamline and avoid
32754 ICEing on corrupt loop tree.
32755 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
32758 2013-03-20 Richard Biener <rguenther@suse.de>
32760 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
32761 check whether an SSA update is needed.
32763 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
32765 * config/mips/constraints.md (T): Rename to...
32769 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
32770 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
32772 2013-03-19 Ian Bolton <ian.bolton@arm.com>
32774 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
32775 (*subsi3_carryin_uxtw): Likewise.
32777 2013-03-19 Ian Bolton <ian.bolton@arm.com>
32779 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
32780 (*rorsi3_insn_uxtw): Likewise.
32782 2013-03-19 Ian Bolton <ian.bolton@arm.com>
32784 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
32785 (*extrsi5_insn_uxtw): Likewise.
32787 2013-03-19 Richard Biener <rguenther@suse.de>
32789 PR tree-optimization/56273
32790 * passes.c (init_optimization_passes): Move second VRP after DOM.
32792 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
32794 * config/i386/i386.md (*movti_internal): Merge from
32795 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
32796 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
32797 nox64 isa attributes.
32799 2013-03-18 Richard Biener <rguenther@suse.de>
32801 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
32803 (merge_node_constraints): Likewise.
32804 (build_succ_graph): Likewise.
32805 (valid_graph_edge): Inline into single caller.
32806 (unify_nodes): Likewise. Use bitmap_set_bit return value
32808 (scc_visit): Fix formatting and variable use.
32809 (do_sd_constraint): Use gcc_checking_assert.
32810 (do_ds_constraint): Likewise.
32811 (do_complex_constraint): Likewise.
32812 (condense_visit): Likewise. Cleanup.
32813 (dump_pred_graph): New function.
32814 (perform_var_substitution): Dump the pred-graph before
32815 variable substitution.
32816 (find_equivalent_node): Use gcc_checking_assert.
32817 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
32819 2013-03-18 Richard Biener <rguenther@suse.de>
32821 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
32822 Remove cond_expr_stmt_list argument and do not gimplify the
32824 (vect_loop_versioning): Adjust.
32825 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
32826 Cleanup to use less temporaries.
32827 (vect_create_data_ref_ptr): Cleanup.
32829 2013-03-18 Jakub Jelinek <jakub@redhat.com>
32831 PR tree-optimization/56635
32832 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
32833 require types_compatible_p types.
32835 2013-03-18 Nick Clifton <nickc@redhat.com>
32837 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
32838 spurious backslash.
32840 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
32841 Add missing line to comment describing function.
32843 2013-03-18 Richard Biener <rguenther@suse.de>
32845 PR tree-optimization/56210
32846 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
32847 Handle string / character search functions.
32848 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
32850 2013-03-18 Richard Biener <rguenther@suse.de>
32852 PR middle-end/56483
32853 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
32854 and implement properly.
32855 * gimple.h (gimple_cond_single_var_p): Remove.
32857 2013-03-18 Richard Biener <rguenther@suse.de>
32859 * tree-data-ref.h (find_data_references_in_loop): Declare.
32860 * tree-data-ref.c (get_references_in_stmt): Use a stack
32861 vector pre-allocated in the callers.
32862 (find_data_references_in_stmt): Adjust.
32863 (graphite_find_data_references_in_stmt): Likewise.
32864 (create_rdg_vertices): Likewise.
32865 (find_data_references_in_loop): Export.
32866 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
32867 Compute dependences here...
32868 (vect_analyze_data_refs): ...not here. When we encounter
32869 a non-vectorizable data reference in basic-block vectorization
32870 truncate the data reference vector. Do not bother to
32871 fixup data-dependence information for gather loads.
32872 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
32873 of data references, as reported.
32875 2013-03-18 Richard Biener <rguenther@suse.de>
32877 PR tree-optimization/3713
32878 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
32879 has_constants and expr.
32880 (stmt_has_constants): Properly valueize SSA names when deciding
32881 whether the stmt has constants.
32883 2013-03-18 Richard Biener <rguenther@suse.de>
32885 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
32886 whole function when there is nothing to do.
32887 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
32888 * tree-vectorizer.c (vectorize_loops): Update virtual and
32889 loop-closed SSA once.
32890 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
32892 2013-03-18 Richard Biener <rguenther@suse.de>
32894 PR middle-end/56113
32895 * domwalk.c (bb_postorder): New global static.
32896 (cmp_bb_postorder): New function.
32897 (walk_dominator_tree): Replace scheme imposing an order for
32898 visiting dominator sons by one sorting them at the time they
32899 are pushed on the stack.
32901 2013-03-18 Richard Biener <rguenther@suse.de>
32903 PR tree-optimization/39326
32904 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
32905 (struct mem_ref): Replace mem member with ao_ref typed member.
32906 (MEM_ANALYZABLE): Adjust.
32907 (memref_eq): Likewise.
32908 (mem_ref_alloc): Likewise.
32909 (gather_mem_refs_stmt): Likewise.
32910 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
32911 (execute_sm_if_changed_flag_set): Adjust.
32912 (execute_sm): Likewise.
32913 (ref_always_accessed_p): Likewise.
32914 (refs_independent_p): Likewise.
32915 (can_sm_ref_p): Likewise.
32917 2013-03-18 Jakub Jelinek <jakub@redhat.com>
32920 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
32921 return 1 even for !unsignedp.
32923 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
32925 * config/i386/i386.md (isa): Add x64 and nox64.
32926 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
32927 (*pushtf): Enable *roF alternative for x64 isa only.
32928 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
32929 mode attribute of integer alternatives to DImode for TARGET_64BIT.
32930 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
32931 (*movtf_internal): Merge from *movtf_internal_rex64 and
32932 *movtf_internal_sse. Use x64 and nox64 isa attributes.
32933 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
32934 nox64 isa attributes.
32935 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
32936 nox64 isa attributes.
32937 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
32939 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
32941 * config/alpha/alpha.c (TARGET_LRA_P): New define.
32943 2013-03-17 Jakub Jelinek <jakub@redhat.com>
32946 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
32947 class names. Remove trailing comma after "ALL_REGS".
32949 2013-03-16 Jan Hubicka <jh@suse.cz>
32951 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
32952 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
32953 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
32954 of cgraph_get_create_node.
32955 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
32957 2013-03-16 Jason Merrill <jason@redhat.com>
32960 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
32961 with DW_AT_default_value.
32963 2013-03-16 Jakub Jelinek <jakub@redhat.com>
32965 * BASE-VER: Set to 4.9.0.
32967 2013-03-14 Andi Kleen <ak@linux.intel.com>
32970 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
32971 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
32972 Document _x* TSX intrinsics.
32974 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
32975 David Holsgrove <david.holsgrove@xilinx.com>
32977 * configure.ac: Add MicroBlaze TLS support detection.
32978 * configure: Regenerate.
32979 * config/microblaze/microblaze-protos.h
32980 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
32981 symbol_mentioned_p, label_mentioned_p): Add prototypes.
32982 * config/microblaze/microblaze.c (microblaze_address_type): Add
32983 ADDRESS_TLS and tls_reloc address types.
32984 (microblaze_address_info): Add tls_reloc.
32985 (TARGET_HAVE_TLS): Define.
32986 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
32987 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
32988 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
32989 load_tls_operand, microblaze_call_tls_get_addr,
32990 microblaze_legitimize_tls_address): New functions.
32991 (microblaze_classify_unspec): Handle UNSPEC_TLS.
32992 (get_base_reg): Use microblaze_tls_symbol_p.
32993 (microblaze_classify_address): Handle TLS.
32994 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
32995 label_mentioned_p and microblaze_tls_referenced_p.
32996 (microblaze_legitimize_address): Handle TLS.
32997 (microblaze_address_insns): Handle ADDRESS_TLS.
32998 (pic_address_needs_scratch): Handle TLS.
32999 (print_operand_address): Handle TLS.
33000 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
33001 (microblaze_expand_move): Handle TLS.
33002 (microblaze_legitimate_constant_p): Check
33003 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
33004 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
33005 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
33006 (PIC_OFFSET_TABLE_REGNUM): Set.
33007 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
33008 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
33009 (addsi3, movsi_internal2, movdf_internal): Update constraints
33010 * config/microblaze/predicates.md (arith_plus_operand): Define
33011 (move_operand): Redefine as move_src_operand,
33012 check microblaze_tls_referenced_p.
33014 2013-03-14 Ian Bolton <ian.bolton@arm.com>
33016 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
33017 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
33019 2013-03-14 Ian Bolton <ian.bolton@arm.com>
33021 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
33024 2013-03-14 Jakub Jelinek <jakub@redhat.com>
33026 PR tree-optimization/53265
33027 * common.opt (Waggressive-loop-optimizations): New option.
33028 * tree-ssa-loop-niter.c: Include tree-pass.h.
33029 (do_warn_aggressive_loop_optimizations): New function.
33030 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
33031 if number_of_latch_executions returned constant.
33032 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
33033 early. If number_of_latch_executions returned constant, set
33034 nb_iterations_upper_bound back to it.
33035 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
33037 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
33038 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
33040 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
33041 (MULTILIB_OSDIRNAMES): Set.
33042 * genmultilib: If defaultosdirname doesn't start with :: , set
33043 defaultosdirname2 instead, clear it and emit two . multilib_raw
33044 entries instead of just one.
33046 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
33048 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
33049 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
33050 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
33051 (SUBTARGET_OVERRIDE_OPTIONS): New.
33053 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
33056 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
33057 (musermode): Convert to Var(TARGET_USERMODE).
33058 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
33059 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
33060 * config/sh/sh.c (sh_option_override): Use
33061 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
33062 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
33064 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
33066 (udivsi3_i4_single, divsi3_i4_single): Use
33067 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
33069 2013-03-13 Dave Korn <dave.korn.cygwin@gmail.com>
33071 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
33074 2013-03-13 Richard Biener <rguenther@suse.de>
33076 PR tree-optimization/56608
33077 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
33078 calls when vectorizing basic-blocks.
33080 2013-03-13 Jakub Jelinek <jakub@redhat.com>
33083 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
33086 2013-03-12 Jakub Jelinek <jakub@redhat.com>
33088 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
33090 2013-03-11 Jan Hubicka <jh@suse.cz>
33093 * lto-streamer-out.c (output_symbol_p): Skip references from
33094 constructors of external variables.
33096 2013-03-11 Jan Hubicka <jh@suse.cz>
33098 PR middle-end/56571
33099 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
33101 * emit-rtl.c (verify_rtx_sharing): Likewise.
33102 (copy_insn_1): Likewise.
33103 * rtl.c (copy_rtx): Likewise.
33105 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
33108 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
33109 output_operand_lossage message.
33111 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
33114 * arm.c (shift_op): Validate RTL pattern on the fly.
33115 (arm_print_operand, case 'S'): Don't use shift_operator to validate
33118 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33121 * config/pa/pa.md (call_value): Check for calls to powf and direct to
33122 new call patterns that clobber %fr12.
33123 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
33124 split and postreload patterns.
33125 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
33126 registers %fr12 and %fr12R as call used.
33128 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
33130 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
33131 (canon_address, record_store, replace_read, check_mem_read_rtx,
33132 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
33133 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
33134 rest_of_handle_dse): Likewise.
33136 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
33138 PR middle-end/56524
33139 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
33141 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
33142 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
33143 (save_optabs_if_changed): Replace with...
33144 (init_tree_optimization_optabs): ...this.
33145 * optabs.c (save_optabs_if_changed): Rename to...
33146 (init_tree_optimization_optabs): ...this. Take the optimization node
33147 as argument. Do nothing if the base optabs are already correct.
33148 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
33149 to recompute optabs.
33150 * function.h (function): Remove optabs field.
33151 * function.c (invoke_set_current_function_hook): Call
33152 init_tree_optimization_optabs. Use the result to initialize
33155 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
33157 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
33158 if GTMA_HAS_NO_INSTRUMENTATION.
33159 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
33160 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
33161 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
33162 * gimple-pretty-print.c (dump_gimple_transaction): Handle
33163 GTMA_HAS_NO_INSTRUMENTATION.
33165 2013-03-08 Jakub Jelinek <jakub@redhat.com>
33167 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
33170 2013-03-08 Marek Polacek <polacek@redhat.com>
33171 Jakub Jelinek <jakub@redhat.com>
33173 PR tree-optimization/56478
33174 * predict.c (is_comparison_with_loop_invariant_p): Change the
33175 type of loop_step to tree.
33176 (predict_loops): Adjust.
33177 (predict_iv_comparison): Perform the computations on double_ints.
33179 2013-03-08 Richard Biener <rguenther@suse.de>
33181 PR tree-optimization/56570
33182 * tree-cfg.c (verify_expr_location_1): Verify locations for
33184 * tree-sra.c (create_access_replacement): Strip locations
33185 from DECL_DEBUG_EXPRs.
33187 2013-03-08 Richard Biener <rguenther@suse.de>
33189 * tree-inline.c (expand_call_inline): Do not associate
33190 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
33191 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
33193 2013-03-08 Richard Biener <rguenther@suse.de>
33195 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
33196 or block changes with -Og. Fix for location / block encoding
33197 changes and PHI arguments with locations.
33199 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
33201 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
33203 (struct output_info): Likewise.
33204 (register_overhead): Remove bad gcc_assert.
33205 (bitmap_find_bit): If there is only a single bitmap element, do not
33206 count a miss as a search.
33207 (print_statistics): Update for counter type changes.
33208 (dump_bitmap_statistics): Likewise. Print headers such that they
33209 are properly lined up with the printed counters.
33211 2013-03-07 Jakub Jelinek <jakub@redhat.com>
33213 PR tree-optimization/56559
33214 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
33215 check that it has only a single use.
33217 2013-03-07 Richard Biener <rguenther@suse.de>
33219 * doc/invoke.texi (fwhole-program): Discourage use in combination
33222 2013-03-06 Jakub Jelinek <jakub@redhat.com>
33224 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
33226 PR tree-optimization/56539
33227 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
33228 instead of GSI_CONTINUE_LINKING as last argument to
33229 force_gimple_operand_gsi. Adjust function comment.
33231 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
33234 PR middle-end/56548
33235 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
33236 promoted mode, convert the result back to the original mode.
33238 2013-03-06 Richard Biener <rguenther@suse.de>
33240 PR middle-end/56294
33241 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
33242 (insert_updated_phi_nodes_compare_uids): New function.
33243 (update_ssa): Sort symbols_to_rename after UID before
33244 traversing it to insert PHI nodes.
33246 2013-03-06 Richard Biener <rguenther@suse.de>
33248 PR middle-end/50494
33249 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
33250 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
33253 2013-02-13 Richard Biener <rguenther@suse.de>
33256 * varasm.c (output_constant_def_1): Get the decl representing
33257 the constant as argument.
33258 (output_constant_def): Wrap output_constant_def_1.
33259 (make_decl_rtl): Use output_constant_def_1 with the decl
33260 representing the constant.
33261 (build_constant_desc): Optionally re-use a decl already
33262 representing the constant.
33263 (tree_output_constant_def): Adjust.
33265 2013-03-06 Joey Ye <joey.ye@arm.com>
33268 * gcc.c (convert_white_space): New function.
33269 (main): Handles white space in function name.
33271 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
33274 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
33275 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
33276 to SH_DIV_CALL_TABLE for TARGET_SH2.
33277 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
33279 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
33280 call-table options.
33282 2013-03-05 Sterling Augustine <saugustine@google.com>
33283 Cary Coutant <ccoutant@google.com>
33286 * dwarf2out.c (resolve_addr): Don't call
33287 remove_loc_list_addr_table_entries a second time for the same
33290 2013-03-05 Jakub Jelinek <jakub@redhat.com>
33293 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
33294 (avoid_complex_debug_insns): New function.
33295 (expand_debug_locations): Call it.
33297 PR rtl-optimization/56484
33298 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
33299 lifetimes of hard registers on small register class machines.
33301 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
33303 * config/microblaze/microblaze-protos.h: Rename
33304 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
33305 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
33307 (microblaze_fast_interrupt_function_p): New function.
33308 (microblaze_is_interrupt_handler): Rename to
33309 microblaze_is_interrupt_variant and add fast_interrupt check.
33310 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
33311 (save_restore_insns): Likewise.
33312 (compute_frame_size): Likewise.
33313 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
33314 (microblaze_globalize_label): Likewise.
33315 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
33316 * config/microblaze/microblaze.md: Use wrapper
33317 microblaze_is_interrupt_variant.
33319 2013-03-05 Kai Tietz <ktietz@redhat.com>
33321 * sdbout.c (sdbout_one_type): Switch to current function's section
33322 supporting cold/hot.
33324 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
33326 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
33329 2013-03-05 Jakub Jelinek <jakub@redhat.com>
33331 PR middle-end/56461
33332 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
33333 if VALGRIND_GET_VBITS is defined, temporarily make object
33334 memory all defined, and restore previous valgrind addressability
33335 and definability afterwards. Free this_object at the end.
33337 PR middle-end/56461
33338 * lra.c (lra): Call lra_clear_live_ranges if live_p,
33339 right before calling lra_create_live_ranges, also call it
33340 when clearing live_p. Only call lra_clear_live_ranges
33341 at the end if live_p.
33343 PR middle-end/56461
33344 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
33346 2013-03-05 Richard Biener <rguenther@suse.de>
33348 PR tree-optimization/56521
33349 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
33352 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
33355 * except.h (remove_unreachable_eh_regions): New prototype.
33356 * except.c (remove_eh_handler_splicer): New function, split out
33357 of remove_eh_handler.
33358 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
33359 warning about running it on many EH regions one at a time.
33360 (remove_unreachable_eh_regions_worker): New function, walk the
33361 EH tree in depth-first order and remove non-marked regions.
33362 (remove_unreachable_eh_regions): New function.
33363 * tree-eh.c (mark_reachable_handlers): New function, split out
33364 from remove_unreachable_handlers.
33365 (remove_unreachable_handlers): Use mark_reachable_handlers and
33366 remove_unreachable_eh_regions.
33367 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
33368 and remove_unreachable_eh_regions.
33370 2013-03-05 Richard Biener <rguenther@suse.de>
33372 PR middle-end/56525
33373 * loop-init.c (fix_loop_structure): Remove loops in two stages,
33374 not freeing them until the end.
33376 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33378 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
33380 2013-03-05 Richard Biener <rguenther@suse.de>
33382 PR tree-optimization/56270
33383 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
33384 of loads after scheduling an SLP instance.
33386 2013-03-05 Jakub Jelinek <jakub@redhat.com>
33388 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
33390 (check_gcc_parallelize): Run guality.exp as a separate job from
33391 vect.exp with unsorted.exp and $(dg_target_exps) separately from
33392 struct-layout-1.exp with stackalign.exp.
33394 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
33396 PR middle-end/56461
33397 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
33398 load_index sbitmap even if some bit in it isn't set.
33400 PR middle-end/56461
33401 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
33402 (discover_iteration_bound_by_body_walk): Change queues to
33403 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
33404 spelling in comment. Call safe_push on queues[bound_index] directly.
33405 Release queues[queue_index] in every iteration unconditionally.
33406 Release bounds vector.
33408 PR middle-end/56461
33409 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
33410 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
33411 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
33414 2013-03-05 Richard Biener <rguenther@suse.de>
33417 * tree-inline.c (remap_blocks_to_null): New function.
33418 (expand_call_inline): When expanding a call stmt without
33419 an associated block inline remap all callee blocks to NULL.
33421 2013-03-05 Jakub Jelinek <jakub@redhat.com>
33423 PR rtl-optimization/56494
33424 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
33425 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
33426 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
33428 PR middle-end/56461
33429 * sel-sched-ir.c (free_sched_pools): Release
33430 succs_info_pool.stack[succs_info_pool.max_top] vectors too
33431 if succs_info_pool.max_top isn't -1.
33434 * opts.c (opts_obstack, opts_concat): Moved to...
33435 * opts-common.c (opts_obstack, opts_concat): ... here.
33437 2013-03-04 Jakub Jelinek <jakub@redhat.com>
33439 PR middle-end/56461
33440 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
33442 2013-03-04 Martin Jambor <mjambor@suse.cz>
33444 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
33445 all appropriate places.
33447 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
33449 PR tree-optimization/56424
33450 * ipa-split.c (split_function): Do not set the RSO flag if result is
33451 not by reference and its type is a register type.
33453 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
33455 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
33456 (microblaze_legitimate_pic_operand): Likewise
33457 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
33458 new function microblaze_legitimate_pic_operand
33459 * config/microblaze/microblaze-protos.h
33460 (microblaze_legitimate_pic_operand): Declare.
33462 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
33464 * config/microblaze/predicates.md (call_insn_simple_operand):
33465 New predicate for supported rtx code types.
33466 * config/microblaze/microblaze.md (call_internal1): Use
33467 call_insn_simple_operand predicate.
33469 2013-03-04 Jakub Jelinek <jakub@redhat.com>
33471 PR middle-end/56461
33472 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
33473 partitions.ordered_remove.
33475 PR middle-end/56461
33476 * tree-vect-stmts.c (vectorizable_conversion): Don't call
33477 vec_oprnds0.create (1) for modifier == NONE.
33479 PR middle-end/56461
33480 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
33481 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
33482 vec_oprnds1 right before pushing anything to it for
33485 PR middle-end/56461
33486 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
33487 set nbbs to 0 instead of having separate code path.
33488 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
33489 instead of false as last argument if returning NULL.
33491 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
33493 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
33494 the attribute is now called "target" instead of "option".
33495 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
33496 * doc/tm.texi.in (Target Attributes): Likewise document the correct
33497 attribute/pragma name for TARGET_OPTION_VALID_P and
33498 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
33499 * doc/tm.texi: Regenerated.
33501 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
33503 * config/microblaze/microblaze.c:
33504 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
33505 * config/microblaze/microblaze.h: Add -mxl-reorder to
33507 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
33508 instructions emitted if TARGET_REORDER.
33509 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
33510 or 0 for -m/-mno case, but initialises as 2 to detect default use case
33513 2013-03-01 Xinliang David Li <davidxl@google.com>
33515 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
33518 2013-03-01 Jakub Jelinek <jakub@redhat.com>
33520 PR middle-end/56461
33521 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
33522 vector even when returning true. Fix up function comment formatting.
33524 PR middle-end/56461
33525 * ira-build.c (ira_loop_nodes_count): New variable.
33526 (create_loop_tree_nodes): Initialize it.
33527 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
33529 PR middle-end/56461
33530 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
33531 method on dr_chain and result_chain.
33532 * tree-vect-stmts.c (vectorizable_store): Only call
33533 result_chain.create if j == 0.
33535 PR middle-end/56461
33536 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
33537 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
33538 before overwriting it.
33540 2013-03-01 Tobias Burnus <burnus@net-b.de>
33542 * doc/extended.texi (C Extensions): Change order in @menu
33544 (Other MIPS Built-in Functions): Move last MIPS entry before
33545 "picoChip Built-in Functions".
33546 (SH Built-in Functions): Move after RX Built-in Functions.
33547 * doc/gcc.texi (Introduction): Change order in @menu
33549 * doc/md.texi (Constraints): Ditto.
33550 * gty.texi (Type Information): Ditto.
33551 (User-provided marking routines for template types): Make
33553 * doc/invoke.texi (AArch64 Options): Move before
33554 "Adapteva Epiphany Options".
33556 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
33557 Jakub Jelinek <jakub@redhat.com>
33560 * asan.c (gate_asan): Lookup no_sanitize_address instead of
33561 no_address_safety_analysis attribute.
33562 * doc/extend.texi (no_address_safety_attribute): Rename to
33563 no_sanitize_address attribute, mention no_address_safety_analysis
33564 attribute as deprecated alias.
33566 2013-02-28 Jakub Jelinek <jakub@redhat.com>
33568 PR middle-end/56461
33569 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
33570 type to vec<vec<tree> > *.
33571 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
33572 to be vec<tree> instead of vec<tree> *, set vec_defs
33573 to vNULL and call vec_defs.create (number_of_vects), adjust other
33575 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
33576 vectorizable_condition): Adjust vect_get_slp_defs callers.
33578 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
33580 * config/aarch64/aarch64.c
33581 (aarch64_float_const_representable): Remove unused variable.
33583 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
33585 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
33587 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
33589 * config/aarch64/aarch64-builtins.c
33590 (aarch64_init_simd_builtins): Make static.
33592 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
33594 * config/aarch64/aarch64.c
33595 (aarch64_simd_make_constant): Make static.
33597 2013-02-28 Martin Jambor <mjambor@suse.cz>
33599 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
33600 with no initialization to the RHS of debug statements.
33602 2013-02-28 Martin Jambor <mjambor@suse.cz>
33604 PR tree-optimization/56294
33605 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
33607 (get_access_replacement): Do not call create_access_replacement.
33608 Assert a replacement exists.
33609 (get_repl_default_def_ssa_name): Create the replacement declaration
33612 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33614 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
33615 final_end_function.
33617 2013-02-28 Marek Polacek <polacek@redhat.com>
33619 PR rtl-optimization/56466
33620 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
33621 if we're changing a loop.
33622 (peel_loops_completely): Likewise.
33624 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
33627 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
33629 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
33632 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
33633 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
33634 INTX_FTYPE_FX, FX_FTYPE_INTX.
33635 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
33637 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
33639 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
33640 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
33641 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
33642 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
33643 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
33644 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
33645 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
33646 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
33647 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
33648 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
33649 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
33650 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
33651 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
33652 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
33653 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
33654 (avrxmega6): Increase max flash segments from 5 to 6.
33655 * config/avr/t-multilib: Regenerate.
33656 * config/avr/avr-tables.opt: Regenerate.
33657 * doc/avr-mmcu.texi: Regenerate.
33659 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
33661 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
33662 (avr_device_to_arch): Rename to avr_device_to_ld.
33663 (avr_device_to_as): New prototype.
33664 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
33665 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
33666 * config/avr/driver-avr.c (avr_device_to_as): New.
33667 (avr_device_to_arch): Rename to avr_device_to_ld.
33669 2013-02-27 Jakub Jelinek <jakub@redhat.com>
33671 PR middle-end/56461
33672 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
33673 method on dr_chain and result_chain.
33675 PR middle-end/56461
33676 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
33677 pointer_set_destroy on not_executed_last_iteration.
33679 PR middle-end/56461
33680 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
33682 PR middle-end/56461
33683 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
33684 FOR_EACH_DEFINED_FUNCTION when freeing state.
33686 PR middle-end/56461
33687 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
33689 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
33692 PR middle-end/56461
33693 * ipa-cp.c (decide_whether_version_node): Call vec_free on
33694 known_aggs[i].items and release known_aggs vector.
33696 PR middle-end/56461
33697 * ipa-reference.c (propagate): Free node_info even for alias nodes.
33699 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
33701 * config/microblaze/microblaze.c (microblaze_emit_compare):
33702 Use xor for EQ/NE comparisions.
33703 * config/microblaze/microblaze.md (cstoresf4): Add constraints
33704 (cbranchsf4): Adjust operator to comparison_operator.
33706 2013-02-27 Jakub Jelinek <jakub@redhat.com>
33708 PR middle-end/56461
33709 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
33711 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
33712 vec_safe_push, always update *slot.
33713 (redirect_edge_var_map_clear): Use vec_free.
33714 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
33715 (free_var_map_entry): Use vec_free.
33716 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
33717 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
33719 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
33721 PR middle-end/45472
33722 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
33723 when the may_trap_p bit of the exprs being merged differs.
33724 Reorder tests for speculativeness in the logical and operator.
33726 2013-02-27 Jakub Jelinek <jakub@redhat.com>
33728 * incpath.c (add_standard_paths): Use reconcat instead of concat
33729 where appropriate and avoid leaking memory.
33731 * opts.h: Include obstack.h.
33732 (opts_concat): New prototype.
33733 (opts_obstack): New declaration.
33734 * opts.c (opts_concat): New function.
33735 (opts_obstack): New variable.
33736 (init_options_struct): Call gcc_init_obstack on opts_obstack.
33737 (finish_options): Use opts_concat instead of concat
33738 and XOBNEWVEC instead of XNEWVEC.
33739 * opts-common.c (generate_canonical_option, decode_cmdline_option,
33740 generate_option): Likewise.
33741 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
33742 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
33745 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
33746 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
33748 2013-02-26 Jakub Jelinek <jakub@redhat.com>
33750 PR middle-end/56461
33751 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
33753 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
33755 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
33756 (arm_block_move_unaligned_straight): Likewise.
33757 (arm_adjust_block_mem): Likewise.
33759 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
33762 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
33763 temp, cond and label.
33764 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
33767 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
33768 * config/c6x/c6x.h (dbx_register_map): Update declaration.
33771 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
33772 of prologue/epilogue functions.
33775 * config/tilegx/tilegx.c (tilegx_expand_prologue):
33776 Remove unused variable cfa_offset.
33777 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
33780 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
33781 type promotion to unsigned.
33784 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
33785 for HOST_WIDE_INT of 32 bit / same size as int.
33786 (arm_block_move_unaligned_straight): Likewise.
33787 (arm_adjust_block_mem): Likewise.
33790 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
33793 2013-02-26 Marek Polacek <polacek@redhat.com>
33795 PR tree-optimization/56426
33796 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
33798 2013-02-26 Richard Biener <rguenther@suse.de>
33801 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
33802 unused variable loops.
33804 2013-02-26 Jakub Jelinek <jakub@redhat.com>
33806 PR tree-optimization/56448
33807 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
33808 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
33809 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
33810 later operands of the references, or even first operand for
33811 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
33813 PR tree-optimization/56443
33814 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
33815 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
33816 to type_for_mode langhook.
33818 2013-02-25 Matt Turner <mattst88@gmail.com>
33820 * doc/invoke.texi: Document r4700.
33822 2013-02-25 Richard Biener <rguenther@suse.de>
33824 PR tree-optimization/56175
33825 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
33827 (simplify_bitwise_binary): ... here. Also guard the conversion
33828 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
33830 2013-02-25 Catherine Moore <clm@codesourcery.com>
33833 2013-02-24 Catherine Moore <clm@codesourcery.com>
33834 Maciej W. Rozycki <macro@codesourcery.com>
33835 Tom de Vries <tom@codesourcery.com>
33836 Nathan Sidwell <nathan@codesourcery.com>
33837 Iain Sandoe <iain@codesourcery.com>
33838 Nathan Froyd <froydnj@codesourcery.com>
33839 Chao-ying Fu <fu@mips.com>
33841 * doc/extend.texi: (micromips, nomicromips, nocompression):
33842 Document new function attributes.
33843 * doc/invoke.texi (minterlink-compressed, mmicromips,
33844 m14k, m14ke, m14kec): Document new options.
33845 (minterlink-mips16): Update documentation.
33846 * doc/md.texi (ZC, ZD): Document new constraints.
33847 * configure.ac (gcc_cv_as_micromips): Check if linker
33848 supports the .set micromips directive.
33849 * configure: Regenerate.
33850 * config.in: Regenerate.
33851 * config/mips/mips-tables.opt: Regenerate.
33852 * config/mips/micromips.md: New file.
33853 * constraints.md (ZC, AD): New constraints.
33854 * config/mips/predicates.md (movep_src_register): New predicate.
33855 (movep_src_operand): New predicate.
33856 (non_volatile_mem_operand): New predicate.
33857 * config/mips/mips.md (multimem): New type.
33858 (length): Differentiate between 17-bit and 18-bit branch offsets.
33859 (MOVEP1, MOVEP2): New mode iterator.
33860 (mov_<load>l): Use ZC constraint.
33861 (mov_<load>r): Likewise.
33862 (mov_<store>l): Likewise.
33863 (mov_<store>r): Likewise.
33864 (*branch_equality<mode>_inverted): Add microMIPS support.
33865 (*branch_equality<mode>): Likewise.
33866 (*jump_absolute): Likewise.
33867 (indirect_jump_<mode>): Likewise.
33868 (tablejump_<mode>): Likewise.
33869 (<optab>_internal): Likewise.
33870 (sibcall_internal): Likewise.
33871 (sibcall_value_internal): Likewise.
33872 (prefetch): Use constraint ZD.
33873 * config/mips/mips.opt (minterlink-compressed): New option.
33874 (minterlink-mips16): Now an alias for minterlink-compressed.
33875 (mmicromips): New option.
33876 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
33877 (compare_and_swap_12): Likewise.
33878 (sync_add<mode>): Likewise.
33879 (sync_<optab>_12): Likewise.
33880 (sync_old_<optab>_12): Likewise.
33881 (sync_new_<optab>_12): Likewise.
33882 (sync_nand_12): Likewise.
33883 (sync_old_nand_12): Likewise.
33884 (sync_new_nand_12): Likewise.
33885 (sync_sub<mode>): Likewise.
33886 (sync_old_add<mode>): Likewise.
33887 (sync_old_sub<mode>): Likewise.
33888 (sync_new_add<mode>): Likewise.
33889 (sync_new_sub<mode>): Likewise.
33890 (sync_<optab><mode>): Likewise.
33891 (sync_old_<optab><mode>): Likewise.
33892 (sync_new_<optab><mode>): Likewise.
33893 (sync_nand<mode>): Likewise.
33894 (sync_old_nand<mode>): Likewise.
33895 (sync_new_nand<mode>): Likewise.
33896 (sync_lock_test_and_set<mode>): Likewise.
33897 (test_and_set_12): Likewise.
33898 (atomic_compare_and_swap<mode>): Likewise.
33899 (atomic_exchange<mode>_llsc): Likewise.
33900 (atomic_fetch_add<mode>_llsc): Likewise.
33901 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
33902 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
33903 (umips_save_restore_pattern_p): Likewise.
33904 (umips_load_store_pair_p): Likewise.
33905 (umips_output_load_store_pair): Likewise.
33906 (umips_movep_target_p): Likewise.
33907 (umips_12bit_offset_address_p): Likewise.
33908 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
33909 (mips_base_mips16): Rename this...
33910 (mips_base_compression_flags): ...to this. Update all uses.
33911 (mips_attribute_table): Add micromips, nomicromips and nocompression.
33912 (mips_mips16_decl_p): Delete.
33913 (mips_nomips16_decl_p): Delete.
33914 (mips_get_compress_on_flags): New function.
33915 (mips_get_compress_off_flags): New function.
33916 (mips_get_compress_mode): New function.
33917 (mips_get_compress_on_name): New function.
33918 (mips_get_compress_off_name): New function.
33919 (mips_insert_attributes): Support multiple compression types.
33920 (mips_merge_decl_attributes): Likewise.
33921 (umips_12bit_offset_address_p): New function.
33922 (mips_start_function_definition): Emit .set micromips directive.
33923 (mips_call_may_need_jalx_p): New function.
33924 (mips_function_ok_for_sibcall): Add microMIPS support.
33925 (mips_print_operand_punctuation): Support short delay slots and
33927 (umips_swm_mask, umips_swm_encoding): New.
33928 (umips_build_save_restore): New function.
33929 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
33930 (was_mips16_p): Remove.
33931 (old_compression_mode): New.
33932 (mips_set_compression_mode): New function.
33933 (mips_set_current_function): Add microMIPS support.
33934 (mips_option_override): Likewise.
33935 (umips_save_restore_pattern_p): New function.
33936 (umips_output_save_restore): New function.
33937 (umips_load_store_pair_p_1): New function.
33938 (umips_load_store_pair_p): New function.
33939 (umips_output_load_store_pair_1): New function.
33940 (umips_output_load_store_pair): New function.
33941 (umips_movep_target_p) New function.
33942 (mips_prepare_pch_save): Add microMIPS support.
33943 * config/mips/mips.h (TARGET_COMPRESSION): New.
33944 (TARGET_CPU_CPP_BUILTINS): Update macro
33945 to use new compression flags and to support microMIPS.
33946 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
33947 (MIPS_ARCH_FLOAT_SPEC): Likewise.
33948 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
33949 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
33950 (ASM_SPEC): Support mmicromips and mno-micromips.
33951 (M16STORE_REG_P): New macro.
33952 (MIPS_CALL): Support TARGET_MICROMIPS.
33953 (MICROMIPS_J): New macro.
33954 (mips_base_mips16): Rename this...
33955 (mips_base_compression_flags): ...to this.
33956 (UMIPS_12BIT_OFFSET_P): New macro.
33957 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
33958 (MULTILIB_DIRNAMES): Likewise.
33960 2013-02-25 Tom de Vries <tom@codesourcery.com>
33962 PR rtl-optimization/56131
33963 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
33964 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
33965 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
33967 2013-02-25 Tobias Burnus <burnus@net-b.de>
33969 * doc/invoke.texi (-fsanitize=): Move from optimization
33970 to debugging options.
33972 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
33974 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
33976 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
33977 Alexander Monakov <amonakov@ispras.ru>
33979 PR middle-end/56077
33980 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
33981 flush pending lists also on non-jumps. Adjust comment.
33983 2013-02-24 Catherine Moore <clm@codesourcery.com>
33984 Maciej W. Rozycki <macro@codesourcery.com>
33985 Tom de Vries <tom@codesourcery.com>
33986 Nathan Sidwell <nathan@codesourcery.com>
33987 Iain Sandoe <iain@codesourcery.com>
33988 Nathan Froyd <froydnj@codesourcery.com>
33989 Chao-ying Fu <fu@mips.com>
33991 * doc/extend.texi: (micromips, nomicromips, nocompression):
33992 Document new function attributes.
33993 * doc/invoke.texi (minterlink-compressed, mmicromips,
33994 m14k, m14ke, m14kec): Document new options.
33995 (minterlink-mips16): Update documentation.
33996 * doc/md.texi (ZC, ZD): Document new constraints.
33997 * configure.ac (gcc_cv_as_micromips): Check if linker
33998 supports the .set micromips directive.
33999 * configure: Regenerate.
34000 * config.in: Regenerate.
34001 * config/mips/mips-tables.opt: Regenerate.
34002 * config/mips/micromips.md: New file.
34003 * constraints.md (ZC, AD): New constraints.
34004 * config/mips/predicates.md (movep_src_register): New predicate.
34005 (movep_src_operand): New predicate.
34006 (non_volatile_mem_operand): New predicate.
34007 * config/mips/mips.md (multimem): New type.
34008 (length): Differentiate between 17-bit and 18-bit branch offsets.
34009 (MOVEP1, MOVEP2): New mode iterator.
34010 (mov_<load>l): Use ZC constraint.
34011 (mov_<load>r): Likewise.
34012 (mov_<store>l): Likewise.
34013 (mov_<store>r): Likewise.
34014 (*branch_equality<mode>_inverted): Add microMIPS support.
34015 (*branch_equality<mode>): Likewise.
34016 (*jump_absolute): Likewise.
34017 (indirect_jump_<mode>): Likewise.
34018 (tablejump_<mode>): Likewise.
34019 (<optab>_internal): Likewise.
34020 (sibcall_internal): Likewise.
34021 (sibcall_value_internal): Likewise.
34022 (prefetch): Use constraint ZD.
34023 * config/mips/mips.opt (minterlink-compressed): New option.
34024 (minterlink-mips16): Now an alias for minterlink-compressed.
34025 (mmicromips): New option.
34026 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
34027 (compare_and_swap_12): Likewise.
34028 (sync_add<mode>): Likewise.
34029 (sync_<optab>_12): Likewise.
34030 (sync_old_<optab>_12): Likewise.
34031 (sync_new_<optab>_12): Likewise.
34032 (sync_nand_12): Likewise.
34033 (sync_old_nand_12): Likewise.
34034 (sync_new_nand_12): Likewise.
34035 (sync_sub<mode>): Likewise.
34036 (sync_old_add<mode>): Likewise.
34037 (sync_old_sub<mode>): Likewise.
34038 (sync_new_add<mode>): Likewise.
34039 (sync_new_sub<mode>): Likewise.
34040 (sync_<optab><mode>): Likewise.
34041 (sync_old_<optab><mode>): Likewise.
34042 (sync_new_<optab><mode>): Likewise.
34043 (sync_nand<mode>): Likewise.
34044 (sync_old_nand<mode>): Likewise.
34045 (sync_new_nand<mode>): Likewise.
34046 (sync_lock_test_and_set<mode>): Likewise.
34047 (test_and_set_12): Likewise.
34048 (atomic_compare_and_swap<mode>): Likewise.
34049 (atomic_exchange<mode>_llsc): Likewise.
34050 (atomic_fetch_add<mode>_llsc): Likewise.
34051 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
34052 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
34053 (umips_save_restore_pattern_p): Likewise.
34054 (umips_load_store_pair_p): Likewise.
34055 (umips_output_load_store_pair): Likewise.
34056 (umips_movep_target_p): Likewise.
34057 (umips_12bit_offset_address_p): Likewise.
34058 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
34059 (mips_base_mips16): Rename this...
34060 (mips_base_compression_flags): ...to this. Update all uses.
34061 (mips_attribute_table): Add micromips, nomicromips and nocompression.
34062 (mips_mips16_decl_p): Delete.
34063 (mips_nomips16_decl_p): Delete.
34064 (mips_get_compress_on_flags): New function.
34065 (mips_get_compress_off_flags): New function.
34066 (mips_get_compress_mode): New function.
34067 (mips_get_compress_on_name): New function.
34068 (mips_get_compress_off_name): New function.
34069 (mips_insert_attributes): Support multiple compression types.
34070 (mips_merge_decl_attributes): Likewise.
34071 (umips_12bit_offset_address_p): New function.
34072 (mips_start_function_definition): Emit .set micromips directive.
34073 (mips_call_may_need_jalx_p): New function.
34074 (mips_function_ok_for_sibcall): Add microMIPS support.
34075 (mips_print_operand_punctuation): Support short delay slots and
34077 (umips_swm_mask, umips_swm_encoding): New.
34078 (umips_build_save_restore): New function.
34079 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
34080 (was_mips16_p): Remove.
34081 (old_compression_mode): New.
34082 (mips_set_compression_mode): New function.
34083 (mips_set_current_function): Add microMIPS support.
34084 (mips_option_override): Likewise.
34085 (umips_save_restore_pattern_p): New function.
34086 (umips_output_save_restore): New function.
34087 (umips_load_store_pair_p_1): New function.
34088 (umips_load_store_pair_p): New function.
34089 (umips_output_load_store_pair_1): New function.
34090 (umips_output_load_store_pair): New function.
34091 (umips_movep_target_p) New function.
34092 (mips_prepare_pch_save): Add microMIPS support.
34093 * config/mips/mips.h (TARGET_COMPRESSION): New.
34094 (TARGET_CPU_CPP_BUILTINS): Update macro
34095 to use new compression flags and to support microMIPS.
34096 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
34097 (MIPS_ARCH_FLOAT_SPEC): Likewise.
34098 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
34099 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
34100 (ASM_SPEC): Support mmicromips and mno-micromips.
34101 (M16STORE_REG_P): New macro.
34102 (MIPS_CALL): Support TARGET_MICROMIPS.
34103 (MICROMIPS_J): New macro.
34104 (mips_base_mips16): Rename this...
34105 (mips_base_compression_flags): ...to this.
34106 (UMIPS_12BIT_OFFSET_P): New macro.
34107 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
34108 (MULTILIB_DIRNAMES): Likewise.
34110 2013-02-24 Jakub Jelinek <jakub@redhat.com>
34113 * target-globals.c (save_target_globals): For init_reg_sets and
34114 target_reinit remporarily set this_fn_optabs to this_target_optabs.
34116 2013-02-22 James Greenhalgh <james.greenhalgh@arm.com>
34118 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
34119 * config/aarch64/t-aarch64
34120 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
34122 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
34124 PR inline-asm/56148
34125 * lra-constraints.c (process_alt_operands): Reload operand
34126 conflicting with earlier clobber only if no more other conflicting
34129 2013-02-22 Jakub Jelinek <jakub@redhat.com>
34132 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
34133 if not linking a shared library.
34135 2013-02-22 Seth LaForge <sethml@google.com>
34137 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
34139 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
34141 * config/arm/arm.md (split for extendsidi): Update condition.
34142 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
34143 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
34144 (qhs_zextenddi_cstr): Likewise.
34146 2013-02-21 Jakub Jelinek <jakub@redhat.com>
34148 PR middle-end/56420
34149 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
34150 avoid signed wrapping.
34151 (expand_mult): Handle properly multiplication by
34152 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
34153 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
34154 in the compiler if coeff is HOST_WIDE_INT_MIN.
34155 (expand_divmod): Don't make ext_op1 static, change it's type to
34156 uhwi. Avoid undefined behavior in -INTVAL (op1).
34158 PR rtl-optimization/50339
34159 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
34161 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
34162 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
34163 into splitting_ashiftrt field.
34164 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
34166 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
34169 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
34171 PR middle-end/56108
34172 * trans-mem.c (execute_tm_mark): Do not expand transactions that
34173 are sure to go irrevocable.
34175 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
34177 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
34178 scalars are valid operands.
34180 2013-02-21 Martin Jambor <mjambor@suse.cz>
34182 PR tree-optimization/56310
34183 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
34184 only matching indices and non-negative final offsets.
34185 (intersect_aggregates_with_edge): Pass src_idx to
34186 agg_replacements_to_vector. Pass src_idx insstead of index to
34187 intersect_with_agg_replacements.
34189 2013-02-21 Martin Jambor <mjambor@suse.cz>
34191 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
34192 instead of hard-wired defaults.
34194 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
34196 * doc/invoke.texi (MIPS Options): Update documentation of the
34197 floating-point multiply-accumulate instruction restrictions.
34199 2013-02-21 Kostya Serebryany <kcc@google.com>
34201 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
34202 asan_shadow_offset on x86_64 linux.
34204 2013-02-21 Richard Biener <rguenther@suse.de>
34206 PR tree-optimization/56415
34208 2013-02-11 Richard Biener <rguenther@suse.de>
34210 PR tree-optimization/56273
34211 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
34214 2013-02-21 Jakub Jelinek <jakub@redhat.com>
34217 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
34220 PR inline-asm/56405
34221 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
34222 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
34224 2013-02-20 Jan Hubicka <jh@suse.cz>
34226 PR tree-optimization/56265
34227 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
34228 when target is referenced for first time.
34230 2013-02-20 Richard Biener <rguenther@suse.de>
34232 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
34233 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
34234 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
34235 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
34236 not return anything.
34237 (rename_ssa_copies): Do not remove unused locals.
34238 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
34239 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
34240 * passes.c (execute_function_todo): Do not schedule unused locals
34241 removal if cleanup_tree_cfg did something.
34242 * tree-ssa-live.c (remove_unused_locals): Dump statistics
34243 about the number of removed locals.
34245 2013-02-20 Richard Biener <rguenther@suse.de>
34247 PR tree-optimization/56398
34248 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
34250 2013-02-20 Martin Jambor <mjambor@suse.cz>
34252 PR tree-optimization/55334
34253 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
34254 restricted pointers to arrays.
34256 2013-02-20 Richard Biener <rguenther@suse.de>
34257 Jakub Jelinek <jakub@redhat.com>
34259 PR tree-optimization/56396
34260 * tree-ssa-ccp.c (n_const_val): New static variable.
34261 (get_value): Return NULL for SSA names we don't have a lattice
34263 (ccp_initialize): Initialize n_const_val.
34264 * tree-ssa-copy.c (n_copy_of): New static variable.
34265 (init_copy_prop): Initialize n_copy_of.
34266 (get_value): Return NULL_TREE for SSA names we don't have a
34269 2013-02-20 Martin Jambor <mjambor@suse.cz>
34271 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
34273 2013-02-20 Richard Biener <rguenther@suse.de>
34275 * genpreds.c (write_lookup_constraint): Do not compare first
34276 letter of the constraint again.
34278 2013-02-20 Richard Biener <rguenther@suse.de>
34280 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
34282 (get_use_iv_cost): Terminate hashtable walk when coming across
34285 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
34287 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
34288 reassociation for avx2 targets.
34290 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
34292 * config/microblaze/microblaze.c: microblaze_has_clz = 0
34293 Add version check for v8.10.a to enable microblaze_has_clz
34294 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
34295 version and TARGET_PATTERN_COMPARE check
34296 * config/microblaze/microblaze.md: New clzsi2 instruction
34298 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
34300 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
34301 function before branching.
34303 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
34305 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
34307 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
34309 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
34311 PR middle-end/55889
34312 * sel-sched.c: Include ira.h.
34313 (implicit_clobber_conflict_p): New function.
34314 (moveup_expr): Use it.
34315 * Makefile.in (sel-sched.o): Depend on ira.h.
34317 2013-02-19 Richard Biener <rguenther@suse.de>
34319 PR tree-optimization/56384
34320 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
34321 (vn_hash_type): Split out from ...
34322 (vn_hash_constant_with_type): ... here.
34323 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
34324 (vn_phi_eq): Compare types from vn_phi_s structure.
34325 (vn_phi_lookup): Populate vn_phi_s type.
34326 (vn_phi_insert): Likewise.
34328 2013-02-19 Jakub Jelinek <jakub@redhat.com>
34330 PR tree-optimization/56350
34331 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
34332 if haven't found reduction or nested cycle operand, rather than
34333 asserting we must find it.
34335 PR tree-optimization/56381
34336 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
34339 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
34340 Jakub Jelinek <jakub@redhat.com>
34343 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
34344 (swap_optab_enable): Same.
34345 (init_all_optabs): Use argument instead of global.
34346 * tree.h (struct tree_optimization_option): New field target_optabs.
34347 * expr.h (init_all_optabs): Add argument to prototype.
34348 (TREE_OPTIMIZATION_OPTABS): New.
34349 (save_optabs_if_changed): Protoize.
34350 * optabs.h: Declare this_fn_optabs.
34351 * optabs.c (save_optabs_if_changed): New.
34352 Declare this_fn_optabs.
34353 (init_optabs): Add argument to init_all_optabs() call.
34354 * function.c (invoke_set_current_function_hook): Handle per
34356 * function.h (struct function): New field optabs.
34357 * config/mips/mips.c (mips_set_mips16_mode): Handle when
34358 optimization_current_node has changed.
34359 * target-globals.h (save_target_globals_default_opts): Protoize.
34360 * target-globals.c (save_target_globals_default_opts): New.
34362 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
34365 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
34366 registers %fr12 and %fr12R as call used.
34369 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
34370 and HImode, require all displacements to be an integer multiple of
34372 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
34373 only allow QImode and HImode when reload is in progress and strict is
34374 true. Likewise for symbolic addresses. Use base14_operand to check
34375 displacements in REG+BASE addresses.
34377 2013-02-18 Richard Biener <rguenther@suse.de>
34379 PR tree-optimization/56366
34380 * tree-vect-loop.c (get_initial_def_for_induction): Properly
34381 handle sign-conversion of outer-loop initial induction value.
34383 2013-02-18 Richard Biener <rguenther@suse.de>
34385 PR middle-end/56349
34386 * cfghooks.c (merge_blocks): If we merge a latch into another
34387 block adjust references to it.
34388 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
34389 (verify_loop_structure): Verify that a recorded latch is in fact
34392 2013-02-18 Richard Biener <rguenther@suse.de>
34394 PR tree-optimization/56321
34395 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
34396 order SSA name release and virtual operand unlinking.
34398 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
34400 * config/microblaze/microblaze.md (save_stack_block): Define.
34401 (restore_stack_block): Likewise.
34403 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
34405 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
34406 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
34407 * config/microblaze/microblaze.c (microblaze_option_override):
34408 Bail out early for PIC modes when target does not support PIC.
34410 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
34412 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
34413 Replace with a microblaze version.
34414 (microblaze_trampoline_init): Adapt for microblaze.
34415 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
34418 2013-02-16 Jakub Jelinek <jakub@redhat.com>
34419 Dodji Seketeli <dodji@redhat.com>
34422 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
34423 (instrument_mem_region_access): Do not forget to always put
34424 instrumentation of the of 'base' and 'base + len' in a "if (len !=
34425 0) statement, even for cases where either 'base' or 'base + len'
34426 are not instrumented -- because they have been previously
34427 instrumented. Simplify the logic by putting all the statements
34428 instrument 'base + len' inside a sequence, and then insert that
34429 sequence right before the current insertion point. Then, to
34430 instrument 'base + len', just get an iterator on that statement.
34431 And do not forget to update the pointer to iterator the function
34432 received as argument.
34434 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
34436 PR rtl-optimization/56348
34437 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
34439 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
34441 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
34442 (clean_graph_dump_file): Pass base to start_graph_dump.
34444 2013-02-14 Richard Henderson <rth@redhat.com>
34447 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
34449 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
34451 * collect2-aix.h: Define F_LOADONLY.
34453 2013-02-14 Richard Biener <rguenther@suse.de>
34456 * varasm.c (output_constant_def_1): Get the decl representing
34457 the constant as argument.
34458 (output_constant_def): Wrap output_constant_def_1.
34459 (make_decl_rtl): Use output_constant_def_1 with the decl
34460 representing the constant.
34461 (build_constant_desc): Optionally re-use a decl already
34462 representing the constant.
34463 (tree_output_constant_def): Adjust.
34465 2013-02-14 Dodji Seketeli <dodji@redhat.com>
34468 * asan.c (instrument_builtin_call): Really put the length of the
34469 second source argument into src1_len.
34471 2013-02-13 Jakub Jelinek <jakub@redhat.com>
34473 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
34474 argument. If it is false, don't create edge from then_bb to
34476 (insert_if_then_before_iter): Pass true to it.
34477 (build_check_stmt): Pass false to it.
34478 (transform_statements): Flush hash table only on extended basic
34479 block boundaries, rather than at the beginning of every bb.
34480 Don't flush hash table on nonfreeing_call_p calls.
34481 * tree-flow.h (nonfreeing_call_p): New prototype.
34482 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
34484 2013-02-13 David S. Miller <davem@davemloft.net>
34486 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
34488 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
34491 * ira.c (max_regno_before_ira): Move from ...
34493 (fix_reg_equiv_init): Use max_regno_before_ira instead of
34496 2013-02-13 Jakub Jelinek <jakub@redhat.com>
34498 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
34500 2013-02-13 Richard Biener <rguenther@suse.de>
34503 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
34504 globals in MEM_REFs.
34506 2013-02-13 Richard Biener <rguenther@suse.de>
34508 * loop-init.c (loop_optimizer_init): Clear loop state when
34509 re-initializing preserved loops.
34510 * loop-unswitch.c (unswitch_single_loop): Return whether
34511 we unswitched the loop. Do not verify loop state here.
34512 (unswitch_loops): When we unswitched a loop discover new loops.
34514 2013-02-13 Kostya Serebryany <kcc@google.com>
34516 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
34518 * sanitizer.def: Rename __asan_init to __asan_init_v1.
34520 2013-02-12 Dodji Seketeli <dodji@redhat.com>
34522 Avoid instrumenting duplicated memory access in the same basic block
34523 * Makefile.in (asan.o): Add new dependency on hash-table.h
34524 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
34525 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
34526 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
34527 (free_mem_ref_resources, has_mem_ref_been_instrumented)
34528 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
34529 (get_mem_ref_of_assignment): New functions.
34530 (get_mem_refs_of_builtin_call): Extract from
34531 instrument_builtin_call and tweak a little bit to make it fit with
34533 (instrument_builtin_call): Use the new
34534 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
34535 of is_gimple_builtin_call.
34536 (instrument_derefs, instrument_mem_region_access): Insert the
34537 instrumented memory reference into the hash table.
34538 (maybe_instrument_assignment): Renamed instrument_assignment into
34539 this, and change it to advance the iterator when instrumentation
34540 actually happened and return true in that case. This makes it
34541 homogeneous with maybe_instrument_assignment, and thus give a
34542 chance to callers to be more 'regular'.
34543 (transform_statements): Clear the memory reference hash table
34544 whenever we enter a new BB, when we cross a function call, or when
34545 we are done transforming statements. Use
34546 maybe_instrument_assignment instead of instrumentation. No more
34547 need to special case maybe_instrument_assignment and advance the
34548 iterator after calling it; it's now handled just like
34549 maybe_instrument_call. Update comment.
34551 2013-02-13 Richard Biener <rguenther@suse.de>
34553 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
34554 Fix loop discovery code.
34556 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
34558 PR inline-asm/56148
34559 * lra-constraints.c (process_alt_operands): Match early clobber
34560 operand with itself. Check conflicts with earlyclobber only if
34561 the operand is not reloaded. Prefer to reload conflicting operand
34562 if earlyclobber and matching operands are the same.
34564 2013-02-12 Richard Biener <rguenther@suse.de>
34567 * lto-streamer-out.c (write_symbol): Do not output symbols
34568 for hard register variables.
34570 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
34573 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
34574 (umulsidi3_insn, mulsidi3_insn): New insns.
34576 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
34578 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
34579 (struct tune_params): Add vec_costs field.
34580 * config/arm/arm.c (arm_builtin_vectorization_cost)
34581 (arm_add_stmt_cost): New functions.
34582 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
34583 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
34584 (arm_default_vec_cost): New struct of type cpu_vec_costs.
34585 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
34586 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
34587 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
34588 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
34590 2013-02-12 Richard Biener <rguenther@suse.de>
34593 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
34594 decls again if possible.
34596 2013-02-12 Richard Biener <rguenther@suse.de>
34598 PR middle-end/56288
34599 * tree-ssa.c (verify_ssa_name): Fix check, move
34600 SSA_NAME_IN_FREE_LIST check up.
34602 2013-02-12 Jakub Jelinek <jakub@redhat.com>
34603 Steven Bosscher <steven@gcc.gnu.org>
34605 PR rtl-optimization/56151
34606 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
34607 equal to op0 or op1, and last_insn pattern is CODE operation
34608 with MEM dest and one of the operands matches that MEM.
34610 2013-02-11 Sriraman Tallam <tmsriram@google.com>
34612 * doc/extend.texi: Document Function Multiversioning and "default"
34613 parameter string to target attribute.
34614 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
34615 target attribute parameter is "default".
34616 (ix86_compare_version_priority): Remove checks for target attribute.
34617 (ix86_mangle_function_version_assembler_name): Change error to sorry.
34618 Remove check for target attribute equal to NULL. Add assert.
34619 (ix86_generate_version_dispatcher_body): Change error to sorry.
34621 2013-02-11 Iain Sandoe <iain@codesourcery.com>
34622 Jack Howarth <howarth@bromo.med.uc.edu>
34623 Patrick Marlier <patrick.marlier@gmail.com>
34626 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
34627 define ENDFILE_SPEC as TM_DESTRUCTOR.
34628 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
34630 2013-02-11 Alexander Potapenko <glider@google.com>
34631 Jack Howarth <howarth@bromo.med.uc.edu>
34632 Jakub Jelinek <jakub@redhat.com>
34635 * config/darwin.c (cdtor_record): Rename ctor_record.
34636 (sort_cdtor_records): Rename sort_ctor_records.
34637 (finalize_dtors): New routine to sort destructors by
34638 priority before use in assemble_integer.
34639 (machopic_asm_out_destructor): Use finalize_dtors if needed.
34641 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
34643 PR rtl-optimization/56275
34644 * simplify-rtx.c (avoid_constant_pool_reference): Check that
34645 offset is non-negative and less than cmode size before
34646 calling simplify_subreg.
34648 2013-02-11 Richard Biener <rguenther@suse.de>
34650 PR tree-optimization/56264
34651 * cfgloop.h (fix_loop_structure): Adjust prototype.
34652 * loop-init.c (fix_loop_structure): Return the number of
34653 newly discovered loops.
34654 * tree-cfgcleanup.c (repair_loop_structures): When new loops
34655 are discovered, do a full loop-closed SSA rewrite.
34657 2013-02-11 Richard Biener <rguenther@suse.de>
34659 PR tree-optimization/56273
34660 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
34662 (check_array_ref): Fix missing newline in dumps.
34663 (search_for_addr_array): Likewise.
34665 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
34667 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
34669 2013-02-09 Jakub Jelinek <jakub@redhat.com>
34672 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
34674 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
34676 PR rtl-optimization/56246
34677 * lra-constraints.c (simplify_operand_subreg): Try to reuse
34679 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
34680 constraints are satisfied.
34682 2013-02-08 Jeff Law <law@redhat.com>
34685 * emit-rtl.c (reg_is_parm_p): New function.
34686 * regs.h (reg_is_parm_p): New prototype.
34687 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
34688 callee-clobbered registers.
34690 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
34693 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
34694 If there is no implicit builtin declaration, just return NULL.
34696 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
34698 * config/i386/sse.md (FMAMODEM): New mode iterator.
34699 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
34700 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
34702 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
34704 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
34705 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
34706 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
34708 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
34710 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
34711 (microblaze*-*-elf): Likewise.
34712 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
34714 * config/microblaze/microblaze-c.c: Add builtin defines for
34715 _LITTLE_ENDIAN and _BIG_ENDIAN.
34716 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
34717 add to TARGET_DEFAULT flags.
34718 Expand ASM_SPEC and LINK_SPEC.
34719 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
34720 * config/microblaze/microblaze.md: Update extendsidi2 and
34721 movdi_internal instructions to use low-order / high-order reg
34723 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
34724 options and inversemask / mask of LITTLE_ENDIAN.
34725 * config/microblaze/t-microblaze: Expand multilib options to
34726 include mlittle-endian (le) and update exceptions patterns.
34728 2013-02-08 Jakub Jelinek <jakub@redhat.com>
34730 PR rtl-optimization/56195
34731 * lra-constraints.c (get_reload_reg): Don't reuse regs
34732 if they have smaller mode than requested, if they have
34733 wider mode than requested, try to return a SUBREG.
34735 PR tree-optimization/56250
34736 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
34737 if type is unsigned and code isn't MULT_EXPR.
34739 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
34741 PR tree-optimization/56064
34742 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
34743 bits according to mode.
34744 * fixed-value.h (fixed_from_double_int)
34745 (const_fixed_from_double_int): Adjust comments.
34747 2013-02-08 Richard Biener <rguenther@suse.de>
34750 * lto-streamer.h (struct data_in): Remove current_file, current_line
34751 and current_col members.
34752 * lto-streamer-out.c (lto_output_location): Stream changed bits
34753 en-block for efficiency.
34754 * lto-streamer-in.c (clear_line_info): Remove.
34755 (lto_input_location): Cache current file, line and column
34756 globally via local statics. Read changed bits en-block.
34757 (input_function): Do not call clear_line_info.
34758 (lto_read_body): Likewise.
34759 (lto_input_toplevel_asms): Likewise.
34761 2013-02-08 Michael Matz <matz@suse.de>
34763 PR tree-optimization/52448
34764 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
34765 (nt_call_phase): New static.
34766 (add_or_mark_expr): Only mark accesses with newer phase than any
34768 (nonfreeing_call_p): New.
34769 (nt_init_block): Update nt_call_phase, mark blocks as visited.
34770 (nt_fini_block): Keep blocks marked as visited.
34771 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
34773 2013-02-08 Richard Biener <rguenther@suse.de>
34775 * ira.c (ira): Free broken dominator information.
34777 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
34779 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
34781 2013-02-08 Marek Polacek <polacek@redhat.com>
34783 * cfgloop.c (verify_loop_structure): Add more checking of headers.
34785 2013-02-08 Richard Biener <rguenther@suse.de>
34787 PR middle-end/56181
34788 * cfgloop.h (flow_loops_find): Adjust.
34789 (bb_loop_header_p): Declare.
34790 * cfgloop.c (bb_loop_header_p): New function split out from ...
34791 (flow_loops_find): ... here. Adjust function signature,
34792 support incremental loop structure update.
34793 (verify_loop_structure): Cleanup. Verify a loop is a loop.
34794 * cfgloopmanip.c (fix_loop_structure): Move ...
34795 * loop-init.c (fix_loop_structure): ... here.
34796 (apply_loop_flags): Split out from ...
34797 (loop_optimizer_init): ... here.
34798 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
34799 in incremental mode, only remove dead loops here.
34801 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
34804 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
34805 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
34806 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
34807 (*round<mode>3.libgcc): New insns for fixed-modes.
34808 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
34809 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
34810 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
34811 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
34812 implementations. Define to __builtin_avr_absFX,
34813 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
34814 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
34815 __builtin_avr_countlsFX, respectively.
34816 * config/avr/avr-c.c (target.h): Include it.
34817 (enum avr_builtin_id): New enum.
34818 (avr_resolve_overloaded_builtin): New static function.
34819 (avr_register_target_pragmas): Use it to set
34820 targetm.resolve_overloaded_builtin.
34821 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
34822 tree nodes used by DEF_BUILTIN.
34823 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
34824 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
34825 <AVR_BUILTIN_xxBITS>: Same.
34827 2013-02-08 Richard Biener <rguenther@suse.de>
34829 * cfgloop.c (verify_loop_structure): Properly handle
34830 a loop exiting to another loop header.
34831 * ira-int.h (ira_loops): Remove.
34832 * ira.c (ira_loops): Remove.
34833 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
34834 (do_reload): Use loop_optimizer_finalize.
34835 * ira-build.c (create_loop_tree_nodes): Use get_loops and
34836 number_of_loops to access the loop tree.
34837 (more_one_region_p): Likewise.
34838 (finish_loop_tree_nodes): Likewise.
34839 (rebuild_regno_allocno_maps): Likewise.
34840 (mark_loops_for_removal): Likewise.
34841 (mark_all_loops_for_removal): Likewise.
34842 (remove_unnecessary_regions): Likewise.
34843 (ira_build): Likewise.
34844 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
34846 2013-02-08 Richard Biener <rguenther@suse.de>
34848 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
34849 * ipa-pure-const.c (analyze_function): Avoid calling
34850 mark_irreducible_loops twice.
34851 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
34853 2013-02-07 David S. Miller <davem@davemloft.net>
34855 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
34857 * var-tracking.c (vt_add_function_parameter): Test the presence of
34858 HAVE_window_save properly and do not remap argument registers when
34859 we have a leaf function.
34861 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
34864 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
34866 * config/i386/i386.c (ix86_print_operand): Ditto.
34868 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
34870 * lra-constraints.c (process_alt_operands): Fix recently added comment.
34872 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
34874 PR rtl-optimization/56225
34875 * lra-constraints.c (process_alt_operands): Check that reload hard
34876 reg can hold value for strict_low_part.
34878 2013-02-07 Jakub Jelinek <jakub@redhat.com>
34881 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
34882 dwarf2out_end_function.
34883 (in_first_function_p, maybe_at_text_label_p,
34884 first_loclabel_num_not_at_text_label): New variables.
34885 (dwarf2out_var_location): In the first function find out
34886 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
34887 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
34890 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
34892 PR rtl-optimization/56178
34893 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
34894 SUBREG of a register. Tidy up related block of code.
34895 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
34896 note if the source is a register or a SUBREG of a register.
34898 2013-02-07 Jakub Jelinek <jakub@redhat.com>
34901 * config/rs6000/rs6000.md (ptrm): New mode attr.
34902 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
34903 call_value_indirect_aix<pttrsize>,
34904 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
34907 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
34909 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
34910 if -bnortl. Convert to strcmp and strncmp.
34912 2013-02-07 Alan Modra <amodra@gmail.com>
34915 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
34916 addresses won't wrap when offsetting.
34917 (rs6000_secondary_reload): Provide secondary reloads needed for
34918 wrapping LO_SUM addresses.
34920 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
34922 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
34923 MACH, just __MACH__.
34925 2013-02-06 Richard Biener <rguenther@suse.de>
34927 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
34928 instead of calling fix_loop_structure.
34930 2013-02-06 Jakub Jelinek <jakub@redhat.com>
34932 PR middle-end/56217
34933 * omp-low.c (use_pointer_for_field): Return false if
34934 lower_send_shared_vars doesn't generate any copy-out code.
34936 2013-02-06 Tom de Vries <tom@codesourcery.com>
34938 PR rtl-optimization/56131
34939 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
34940 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
34941 of the label is NULL. Add comment.
34943 2013-02-05 Jakub Jelinek <jakub@redhat.com>
34945 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
34948 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
34949 (STATIC_LIBTSAN_LIBS): Likewise.
34950 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
34951 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
34952 is defined, don't add anything else beyond that.
34953 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
34954 (LINK_COMMAND_SPEC): Use them.
34956 PR tree-optimization/56205
34957 * tree-stdarg.c (check_all_va_list_escapes): Return true if
34958 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
34959 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
34961 2013-02-05 Richard Biener <rguenther@suse.de>
34963 PR tree-optimization/53342
34964 PR tree-optimization/53185
34965 * tree-vectorizer.h (vect_check_strided_load): Remove.
34966 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
34967 not disallow peeling for vectorized strided loads.
34968 (vect_check_strided_load): Make static and simplify.
34969 (vect_analyze_data_refs): Adjust.
34970 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
34971 correctly when vectorizing strided loads.
34973 2013-02-05 Richard Biener <rguenther@suse.de>
34975 * doc/install.texi: Refer to ISL, not PPL.
34977 2013-02-05 Jan Hubicka <jh@suse.cz>
34979 PR tree-optimization/55789
34980 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
34982 2013-02-05 Jan Hubicka <jh@suse.cz>
34984 PR tree-optimization/55789
34985 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
34986 the dead call anyway.
34988 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
34991 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
34993 2013-02-04 Alexander Potapenko <glider@google.com>
34994 Jack Howarth <howarth@bromo.med.uc.edu>
34995 Jakub Jelinek <jakub@redhat.com>
34998 * config/darwin.c (sort_ctor_records): Stabilized qsort
34999 on constructor priority by using original position.
35000 (finalize_ctors): New routine to sort constructors by
35001 priority before use in assemble_integer.
35002 (machopic_asm_out_constructor): Use finalize_ctors if needed.
35004 2013-02-04 Jakub Jelinek <jakub@redhat.com>
35007 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
35008 about visibility on artificial decls.
35009 * config/sol2.c (solaris_assemble_visibility): Likewise.
35011 2013-02-04 Kai Tietz <ktietz@redhat.com>
35014 * config/i386/i386.c (function_value_ms_64): Add additional valtype
35015 argument and improve checking of return-argument types for 16-byte
35017 (ix86_function_value_1): Add additional valtype argument on call
35018 of function_value_64.
35019 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
35020 handling infunction_value_64 function.
35022 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
35024 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
35026 2013-02-04 Richard Biener <rguenther@suse.de>
35028 PR tree-optimization/56188
35029 * tree-ssa-structalias.c (label_visit): Consider case with
35030 initially non-empty points-to set.
35031 (perform_var_substitution): Dump node mapping and clean up.
35033 2013-02-04 Richard Guenther <rguenther@suse.de>
35036 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
35037 node prevail as last resort.
35038 (lto_symtab_merge_decls): Remove guard on LTRANS here.
35039 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
35041 2013-02-04 Richard Biener <rguenther@suse.de>
35043 PR tree-optimization/56113
35044 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
35046 (equiv_class_lookup_or_add): ... this.
35047 (label_visit): Adjust and fix error in previous patch.
35048 (perform_var_substitution): Adjust.
35050 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
35052 * config/sh/divtab.c: Fix formatting and comments throughout the file.
35053 * config/sh/sh4-300.md: Likewise.
35054 * config/sh/sh4a.md: Likewise.
35055 * config/sh/constraints.md: Likewise.
35056 * config/sh/sh.md: Likewise.
35057 * config/sh/netbsd-elf.h: Likewise.
35058 * config/sh/predicates.md: Likewise.
35059 * config/sh/sh-protos.h: Likewise.
35060 * config/sh/ushmedia.h: Likewise.
35061 * config/sh/linux.h: Likewise.
35062 * config/sh/sh.c: Likewise.
35063 * config/sh/superh.h: Likewise.
35064 * config/sh/elf.h: Likewise.
35065 * config/sh/sh4.md: Likewise.
35066 * config/sh/sh.h: Likewise.
35068 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
35070 * config/pa/constraints.md: Adjust unused letters. Change "T"
35071 constraint to match_test floating_point_store_memory_operand().
35072 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
35073 (base14_operand): New.
35074 (floating_point_store_memory_operand): New.
35075 (integer_store_memory_operand): Revise to use base14_operand and
35076 reg_plus_base_memory_operand.
35077 (move_dest_operand): Allow symbolic_memory_operands.
35078 (symbolic_memory_operand): Check for LO_SOM.
35079 (symbolic_operand): Change default case to break.
35080 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
35081 CONST_DOUBLE values to be reloaded by putting them into memory when
35082 the destination is a floating point register.
35083 (movdf): Remove code to handle CONST_DOUBLE.
35085 (reload_indf_r1): New.
35086 (reload_insf_r1): New.
35087 Consistently use "Q" and "T" constraints with integer and floating
35088 point move instructions, respectively.
35089 (movdi): Remove FAIL.
35090 Change predicate for source operand unamed DImode move from
35091 general_operand to move_src_operand.
35092 (umulsidi3): Change predicate for destination operand to
35094 Likewise for similar unamed patterns.
35095 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
35096 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
35097 (hppa_legitimize_address): Simplify mask calculation.
35098 (pa_emit_move_sequence): Revised handling of secondary reloads from
35099 REG+D addresses for floating point loads and stores. Directly handle
35100 loading CONST0_RTX (mode) to a floating point register.
35101 (pa_secondary_reload): Handle reloading DF and SFmode constant values
35102 to floating point registers. Don't restrict secondary reloads to
35103 floating point registers to integer modes. Revise some comments and
35105 (TARGET_LEGITIMATE_ADDRESS_P): Define.
35106 (pa_legitimate_address_p): New.
35107 (pa_legitimize_reload_address): New.
35108 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
35109 (STRICT_REG_OK_FOR_BASE_P): New.
35110 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
35111 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
35113 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
35114 Andrew Dixie <andrewd@gentrack.com>
35116 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
35119 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
35121 * expmed.c (extract_bit_field_1): Pass the full width of the
35122 structure to get_best_reg_extraction_insn.
35124 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
35127 * configure.ac (use_cxa_atexit): Add AIX.
35128 * configure: Regenerate.
35130 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
35132 2013-02-01 Jakub Jelinek <jakub@redhat.com>
35135 * final.c (need_profile_function): New variable.
35136 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
35137 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
35138 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
35139 notes, targetm.asm_out.function_prologue doesn't emit anything,
35140 HAVE_prologue and profiler should be emitted before prologue,
35141 set need_profile_function instead of emitting it.
35142 (final_scan_insn): If need_profile_function, emit
35143 profile_function on the first NOTE_INSN_BASIC_BLOCK or
35144 NOTE_INSN_FUNCTION_BEG note.
35146 2013-02-01 Richard Henderson <rth@redhat.com>
35148 * config/rs6000/rs6000.md (smulditi3): New.
35151 * config/alpha/alpha.md (umulditi3): New.
35153 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
35155 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
35156 (ASM_OUTPUT_ALIGNED_LOCAL): New.
35158 2013-02-01 Richard Biener <rguenther@suse.de>
35160 PR tree-optimization/56113
35161 * tree-ssa-structalias.c (label_visit): Reduce work for
35162 single-predecessor nodes.
35164 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
35166 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
35167 range isn't testing for zero.
35169 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
35171 PR middle-end/56113
35172 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
35174 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
35175 Nick Clifton <nickc@redhat.com>
35177 * config/v850/constraints.md (Q): Define as a memory constraint.
35178 * config/v850/predicates.md (label_ref_operand): New predicate.
35179 (e3v5_shift_operand): New predicate.
35180 (ior_operator): New predicate.
35181 * config/v850/t-v850: Add e3v5 multilib.
35182 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
35183 (v850_gen_movdi): Prototype.
35184 * config/v850/v850.c: Add support for e3v5 architecture.
35185 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
35187 (construct_save_jarl): Add e3v5 long JARL support.
35188 (v850_adjust_insn_length): New function. Adjust length of call
35189 insns when using e3v5 instructions.
35190 (v850_gen_movdi): New function: Generate instructions to move a
35192 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
35193 (CPP_SPEC): Define __v850e3v5__ as appropriate.
35194 (TARGET_USE_FPU): Enable for e3v5.
35195 (CONST_OK_FOR_W): New macro.
35196 (ADJUST_INSN_LENGTH): Define.
35197 * config/v850/v850.md (UNSPEC_LOOP): Define.
35198 (attr cpu): Add v850e3v5.
35199 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
35200 (movdi): New pattern.
35201 (movdi_internal): New pattern.
35202 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
35203 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
35204 (cstoresf4): Likewise.
35205 (cstoredf4): Likewise.
35206 (insv): New pattern.
35207 (rotlso3_a): New pattern.
35208 (rotlsi3_b): New pattern
35209 (rotlsi3_v850e3v5): New pattern.
35210 (doloop_begin): New pattern.
35211 (fix_loop_counter): New pattern.
35212 (doloop_end): New pattern.
35213 (branch_normal): Add e3v5 long branch support.
35214 (branch_invert): Likewise.
35215 (branch_z_normal): Likewise.
35216 (branch_z_invert): Likewise.
35217 (branch_nz_normal): Likewise.
35218 (branch_nz_invert): Likewise.
35219 (call_internal_short): Add e3v5 register-indirect JARL support.
35220 (call_internal_long): Likewise.
35221 (call_value_internal_short): Likewise.
35222 (call_value_internal_long): Likewise.
35223 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
35224 (mloop): New option.
35225 * config.gcc: Add support for configuring v840e3v5 target.
35226 * doc/invoke.texi: Document new v850 specific command line options.
35228 2013-01-31 Paul Koning <ni1d@arrl.net>
35232 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
35233 children if parent is a class.
35234 (prune_unused_types_prune): Don't add DW_AT_declaration.
35236 2013-01-31 Richard Biener <rguenther@suse.de>
35238 PR tree-optimization/56157
35239 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
35240 match up operand with SLP child.
35242 2013-01-31 Jason Merrill <jason@redhat.com>
35245 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
35246 parameters the first time.
35247 (gen_scheduled_generic_parms_dies): Check completeness here.
35249 2013-01-31 Richard Biener <rguenther@suse.de>
35251 PR middle-end/53073
35252 * common.opt (faggressive-loop-optimizations): New flag,
35253 enabled by default.
35254 * doc/invoke.texi (faggressive-loop-optimizations): Document.
35255 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
35256 infer_loop_bounds_from_undefined by it.
35258 2013-01-31 Richard Biener <rguenther@suse.de>
35260 PR tree-optimization/56150
35261 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
35262 visit virtual operands.
35263 (find_uses_to_rename_bb): Likewise.
35265 2013-01-31 Richard Biener <rguenther@suse.de>
35267 PR tree-optimization/56150
35268 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
35269 mixed store non-store stmts.
35271 2013-01-30 Jakub Jelinek <jakub@redhat.com>
35274 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
35275 LIBASAN_EARLY_SPEC is defined.
35276 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
35277 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
35279 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
35282 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
35283 invalid args instead of ICEing on it.
35284 (ix86_valid_target_attribute_tree): Return error_mark_node if
35285 ix86_valid_target_attribute_inner_p failed.
35286 (ix86_valid_target_attribute_p): Return false only if
35287 ix86_valid_target_attribute_tree returned error_mark_node. Allow
35288 target("default") attribute.
35289 (sorted_attr_string): Change argument from const char * to tree,
35290 merge in all target attribute arguments rather than just one.
35291 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
35292 instead of free. Avoid using strcat.
35293 (ix86_mangle_function_version_assembler_name): Mangle
35294 target("default") as if no target attribute is present. Adjust
35295 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
35296 instead of xmalloc and XDELETEVEC instead of free.
35297 (ix86_function_versions): Don't return true if one of the decls
35298 doesn't have target attribute. If they don't and one of the decls
35299 is DECL_FUNCTION_VERSIONED, report an error. Adjust
35300 sorted_attr_string caller. Use XDELETEVEC instead of free.
35301 (ix86_supports_function_versions): Remove.
35302 (make_name): Fix up formatting.
35303 (make_dispatcher_decl): Remove resolver_name and its initialization.
35304 Avoid leaking memory.
35305 (is_function_default_version): Return true if there is
35306 target("default") attribute rather than no target attribute at all.
35307 (make_resolver_func): Avoid leaking memory.
35308 (ix86_generate_version_dispatcher_body): Likewise.
35309 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
35310 * target.def (supports_function_versions): Remove.
35311 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
35312 * doc/tm.texi: Regenerated.
35314 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
35316 PR rtl-optimization/56144
35317 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
35318 for values with side effects.
35320 2013-01-30 Richard Biener <rguenther@suse.de>
35322 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
35323 (sparseset_pop): Likewise.
35324 * cfganal.c (compute_idf): Likewise. Increase work-stack size
35325 to be able to use quick_push in the worker loop.
35327 2013-01-30 Marek Polacek <polacek@redhat.com>
35329 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
35331 2013-01-30 Richard Biener <rguenther@suse.de>
35334 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
35336 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
35338 PR tree-optimization/56064
35339 * fixed-value.c (fixed_from_double_int): New function.
35340 * fixed-value.h (fixed_from_double_int): New prototype.
35341 (const_fixed_from_double_int): New static inline function.
35342 * fold-const.c (native_interpret_fixed): New static function.
35343 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
35344 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
35345 (native_encode_fixed): New static function.
35346 (native_encode_expr) <FIXED_CST>: Use it.
35347 (native_interpret_int): Move double_int worker code to...
35348 * double-int.c (double_int::from_buffer): ...this new static method.
35349 * double-int.h (double_int::from_buffer): Prototype it.
35351 2013-01-30 Richard Biener <rguenther@suse.de>
35353 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
35354 New pointer-map and obstack.
35355 (init_alias_vars): Allocate pointer-map and obstack.
35356 (delete_points_to_sets): Free them.
35357 (find_what_var_points_to): Cache result.
35358 (find_what_p_points_to): Adjust for changed interface of
35359 find_what_var_points_to.
35360 (compute_points_to_sets): Likewise.
35361 (ipa_pta_execute): Likewise.
35363 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35365 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
35366 * configure: Regenerate.
35367 * config.in: Regenerate.
35368 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
35369 #nobits/#progbits if supported.
35371 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
35374 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
35375 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
35376 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
35378 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
35380 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
35381 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
35383 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
35385 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
35386 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
35388 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
35390 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
35392 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
35393 * config/arm/cortex-a7.md: New bypasses using
35394 arm_mac_accumulator_is_result.
35396 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
35398 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
35399 (cortex_a7_neon_mla): Likewise.
35400 (cortex_a7_fpfmad): New reservation.
35401 (cortex_a7_fpmacs): Use ffmas and update required units.
35402 (cortex_a7_fpmuld): Update required units and latency.
35403 (cortex_a7_fpmacd): Likewise.
35404 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
35405 (cortex_a7_neon). Likewise.
35406 (bypass) Update participating units.
35408 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
35410 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
35411 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
35413 * config/arm/vfp11.md (vfp_farith): Use ffmas.
35414 (vfp_fmul): Use ffmad.
35415 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
35416 (cortex_r4_fmacd): Use ffmad.
35417 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
35418 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
35419 (cortex_a9_fmacd): Use ffmad.
35420 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
35421 (cortex_a8_vfp_macd): Use ffmad.
35422 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
35423 (cortex_a5_fpmacd): Use ffmad.
35424 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
35425 (cortex_a15_vfp_macd): Use ffmad.
35426 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
35428 2013-01-29 Jason Merrill <jason@redhat.com>
35431 * varasm.c (default_assemble_visibility): Don't warn about
35432 visibility on artificial decls.
35434 2013-01-29 Richard Biener <rguenther@suse.de>
35436 PR tree-optimization/56113
35437 * tree-ssa-structalias.c (equiv_class_lookup): Also return
35439 (label_visit): Free duplicate bitmaps and record the leader instead.
35440 (perform_var_substitution): Adjust.
35442 2013-01-29 Richard Biener <rguenther@suse.de>
35444 PR tree-optimization/55270
35445 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
35446 the CFG, schedule loops for fixup.
35448 2013-01-29 Nick Clifton <nickc@redhat.com>
35450 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
35453 2013-01-28 Leif Ekblad <leif@rdos.net>
35455 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
35456 * config/i386/i386.h (TARGET_RDOS): New macro.
35457 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
35458 * config/i386/i386.c (ix86_option_override_internal): For 64bit
35459 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
35460 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
35461 DEFAULT_LARGE_SECTION_THRESHOLD.
35462 * config/i386/i386.md (R14_REG, R15_REG): New constants.
35463 * config/i386/rdos.h: New file.
35464 * config/i386/rdos64.h: New file.
35466 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
35469 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
35472 2013-01-28 Jakub Jelinek <jakub@redhat.com>
35474 PR rtl-optimization/56117
35475 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
35476 call cselib_lookup_from_insn on the MEM before calling
35477 add_insn_mem_dependence.
35479 2013-01-28 Richard Biener <rguenther@suse.de>
35481 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
35482 to a stmt that didn't have one.
35483 (copy_phis_for_bb): Likewise for PHI arguments.
35484 (copy_debug_stmt): Likewise for debug stmts.
35486 2013-01-28 Richard Biener <rguenther@suse.de>
35488 PR tree-optimization/56034
35489 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
35490 (partition_builtin_p): Adjust.
35491 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
35492 it is the last partition.
35493 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
35494 up the vertex for the definition.
35495 (classify_partition): Classify whether a partition is a
35496 PKIND_REDUCTION, thus has uses outside of the loop.
35497 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
35498 Merge all PKIND_REDUCTION partitions into the last partition.
35499 (tree_loop_distribution): Seed partitions from reductions as well.
35501 2013-01-28 Jakub Jelinek <jakub@redhat.com>
35503 PR tree-optimization/56125
35504 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
35505 pow(x,c) into sqrt(x) * powi(x, n/2) or
35506 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
35507 optimizing for size.
35508 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
35509 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
35512 PR tree-optimization/56094
35513 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
35514 to UNKNOWN_LOCATION while gimplifying expr.
35516 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
35519 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
35520 operand 0 in movabs insn template for -masm=intel asm alternative.
35521 (*movabs<mode>_2): Ditto for operand 1.
35523 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
35526 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
35529 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
35531 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
35534 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
35536 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
35537 Undef to avoid warning.
35539 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
35541 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
35542 * configure: Regenerate.
35544 2013-01-25 Jakub Jelinek <jakub@redhat.com>
35546 PR tree-optimization/56098
35547 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
35548 for stmts with volatile ops.
35549 (cond_store_replacement): Don't optimize if assign has volatile ops.
35550 (cond_if_else_store_replacement_1): Don't optimize if either
35551 then_assign or else_assign have volatile ops.
35552 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
35555 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
35557 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
35559 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
35561 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
35562 missing ':' in asm example.
35564 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
35566 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
35567 entries into lane and laneq entries.
35568 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
35569 Remove AdvSIMD scalar modes.
35570 (aarch64_sq<r>dmulh_laneq<mode>): New.
35571 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
35573 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
35574 builtin implementations to relfect changes in RTL in aarch64-simd.md.
35575 * config/aarch64/iterators.md (VCOND): New.
35578 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
35581 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
35582 Add NULL LIBNAME argument to existing definitions.
35583 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
35584 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
35585 * config/avr/avr.c (DEF_BUILTIN): Same.
35586 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
35587 (avr_expand_builtin): Expand to a vanilla call if a libgcc
35588 implementation is available (DECL_ASSEMBLER_NAME is set).
35589 (avr_fold_absfx): New static function.
35590 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
35591 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
35592 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
35593 AVR_BUILTIN_ABSLLK.
35594 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
35595 (abshk, absk, abslk, absllk): Provide as static inline functions.
35597 2013-01-25 Marek Polacek <polacek@redhat.com>
35599 PR tree-optimization/56035
35600 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
35602 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
35604 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
35605 (*movtf_internal_rex64): Add (!o,C) alternative
35606 (*movxf_internal_rex64): Ditto.
35607 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
35609 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
35611 * doc/invoke.texi: fix typo.
35612 * doc/objc.texi: fix typo.
35614 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
35616 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
35617 for the first two alternatives.
35619 2013-01-24 Diego Novillo <dnovillo@google.com>
35621 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
35622 (ggc-zone.o): Remove.
35623 * configure.ac: Remove option --with-gc.
35624 * configure: Re-generate.
35625 * doc/install.texi: Remove documentation for --with-gc.
35626 * gengtype.c (write_enum_defn): Remove. Update all users.
35627 (write_Types_process_field): Remove generation of gt_e_* argument.
35628 (output_type_enum): Remove. Update all users.
35629 (write_enum_defn): Remove. Update all users.
35630 (enum alloc_zone): Remove. Update all users.
35631 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
35632 * ggc-common.c (ggc_splay_alloc): Remove first argument.
35633 Update all callers.
35634 (struct ptr_data): Remove field TYPE. Update all users.
35635 (gt_pch_note_object): Remove argument TYPE. Update all users.
35636 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
35638 * ggc-none.c (ggc_alloc_typed_stat): Remove.
35639 (struct alloc_zone): Remove.
35640 (ggc_internal_alloc_zone_stat): Remove.
35641 (ggc_internal_cleared_alloc_zone_stat): Remove.
35642 * ggc-page.c (ggc_alloc_typed_stat): Remove.
35643 (ggc_pch_count_object): Remove last argument. Update all users.
35644 (ggc_pch_alloc_object): Remove last argument. Update all users.
35645 (struct alloc_zone): Remove.
35646 * ggc-zone.c: Remove.
35647 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
35648 (struct alloc_zone): Remove.
35649 (ggc_alloc_typed_stat): Remove.
35650 (ggc_alloc_typed): Remove.
35651 (ggc_splay_alloc): Remove first argument.
35652 (rtl_zone): Remove. Update all users.
35653 (tree_zone): Remove. Update all users.
35654 (tree_id_zone): Remove. Update all users.
35655 (ggc_internal_zone_alloc_stat): Remove. Update all users.
35656 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
35657 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
35658 * tree-ssanames.c: Remove references to zone allocator in comments.
35660 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
35662 * config/avr/avr.c (avr_out_fract): Make register numbers that
35663 might be outside of source operand signed.
35665 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
35667 * config/i386/constraints.md (Yf): New constraint.
35668 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
35669 of f constraint to conditionaly disable x87 register preferences.
35670 (*movdf_internal): Ditto.
35671 (*movsf_internal): Ditto.
35673 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
35675 PR inline-asm/55934
35676 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
35677 that have operands with impossible constraints.
35678 Add a FIXME for a speed-up opportunity.
35679 * lra-constraints.c (process_alt_operands): Verify that a class
35680 selected from constraints on asms is valid for the operand mode.
35681 (curr_insn_transform): Remove incorrect comment.
35683 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
35685 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
35686 TOC operand is a valid symbol ref in the constant pool.
35688 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
35690 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
35692 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
35695 * config/avr/stdfix.h: New file.
35696 * t-avr (stdfix-gcc.h): New rule to build it.
35697 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
35699 2013-01-23 Kostya Serebryany <kcc@google.com>
35701 * config/darwin.h: remove dependency on
35702 CoreFoundation (asan on Mac OS).
35704 2013-01-23 Jakub Jelinek <jakub@redhat.com>
35707 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
35708 instead of cmpdi_operand for first comparison operand.
35709 Don't assert that comparison operands aren't both constants.
35711 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
35713 * doc/install.texi (Downloading the Source): Update references to
35714 downloading separate components.
35716 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
35718 * doc/extend.texi (__int128): Improve grammar.
35720 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
35723 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
35724 alternative to (o,r).
35725 (*movdi_internal_rex64): Remove (!o,n) alternative.
35726 (DImode immediate->memory splitter): Remove.
35727 (DImode immediate->memory peephole2): Remove.
35728 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
35729 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
35730 alternative to (!o,*r).
35731 (*movtf_internal_sse): New pattern.
35732 (*movxf_internal_rex64): New pattern.
35733 (*movxf_internal): Disable for TARGET_64BIT.
35734 (*movdf_internal_rex64): Remove (!o,F) alternative.
35736 2013-01-22 Jakub Jelinek <jakub@redhat.com>
35738 PR middle-end/56074
35739 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
35740 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
35741 * tree-vect-loop-manip.c (find_loop_location): Also ignore
35742 stmt locations where LOCATION_LOCUS of the stmt location is
35743 UNKNOWN_LOCATION or BUILTINS_LOCATION.
35746 * config/i386/i386.md (UNSPEC_STOS): New.
35747 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
35748 *strsetqi_1): Add UNSPEC_STOS.
35750 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
35753 * doc/invoke.texi: Remove left over -Wsynth example.
35755 2013-01-21 Jakub Jelinek <jakub@redhat.com>
35757 PR tree-optimization/56051
35758 * fold-const.c (fold_binary_loc): Don't fold
35759 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
35760 a narrowing conversion, or widening conversion from signed
35763 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
35765 PR rtl-optimization/56023
35766 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
35767 dependent on debug instruction.
35769 2013-01-21 Martin Jambor <mjambor@suse.cz>
35771 PR middle-end/56022
35772 * function.c (allocate_struct_function): Call
35773 invoke_set_current_function_hook earlier.
35775 2013-01-21 Jakub Jelinek <jakub@redhat.com>
35777 * reload1.c (init_reload): Only initialize reload_obstack
35778 during the first call.
35780 2013-01-21 Marek Polacek <polacek@redhat.com>
35782 * cfgloop.c (verify_loop_structure): Fix up grammar.
35784 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
35786 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
35787 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
35789 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35792 * config/arm/marvell-pj4.md: Update copyright year.
35793 Fix up use of alu to alu_reg and simple_alu_imm.
35795 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
35797 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
35799 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
35802 * lra-constraints.c (curr_insn_transform): Don't reuse original
35803 insn for secondary memory move when memory mode should be different.
35805 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
35807 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
35808 atomic_storedi_1): New patterns.
35810 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
35812 btver2 pipeline descriptions.
35813 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
35815 * config/i386/i386.md (btver2_decode): New type attributes.
35816 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
35818 * config/i386/btver2.md: New file describing btver2 pipelines.
35820 2013-01-19 Andrew Pinski <apinski@cavium.com>
35822 PR tree-optimization/52631
35823 * tree-ssa-sccvn (visit_use): Before looking up the original
35824 statement, try looking up the simplified expression.
35826 2013-01-19 Anthony Green <green@moxielogic.com>
35828 * config/moxie/moxie.c (moxie_expand_prologue): Set
35829 current_function_static_stack_size.
35831 2013-01-18 Jakub Jelinek <jakub@redhat.com>
35833 PR tree-optimization/56029
35834 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
35835 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
35837 2013-01-18 Sharad Singhai <singhai@google.com>
35839 PR tree-optimization/55995
35840 * dumpfile.c (dump_loc): Print location only if available.
35841 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
35843 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
35846 * lra-constraints.c (curr_insn_transform): Reuse original insn for
35847 secondary memory move.
35848 (inherit_reload_reg): Use rclass instead of cl for
35849 check_secondary_memory_needed_p.
35851 2013-01-18 Jakub Jelinek <jakub@redhat.com>
35853 PR middle-end/56015
35854 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
35855 the case where writing real complex part of target modifies op1.
35857 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
35859 * config/aarch64/aarch64-simd.md
35860 (aarch64_vcond_internal<mode>): Handle unordered cases.
35861 * config/aarch64/iterators.md (v_cmp_result): New.
35863 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
35864 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35866 * config/arm/marvell-pj4.md: New file.
35867 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
35868 * config/arm/arm.md (generic_sched): Add marvell_pj4.
35869 (generic_vfp): Likewise.
35870 * config/arm/arm-cores.def: Add marvell-pj4.
35871 * config/arm/arm-tune.md: Regenerate.
35872 * config/arm/arm-tables.opt: Regenerate.
35873 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
35874 * doc/invoke.texi: Document marvell-pj4.
35876 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
35878 * config/aarch64/arm_neon.h: Map scalar types to standard types.
35880 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
35885 * var-tracking.c (negative_power_of_two_p): New.
35886 (global_get_addr_cache, local_get_addr_cache): New.
35887 (get_addr_from_global_cache, get_addr_from_local_cache): New.
35888 (vt_canonicalize_addr): Rewrite using the above. Adjust the
35890 (vt_stack_offset_p): Remove.
35891 (vt_canon_true_dep): Always canonicalize loc's address.
35892 (clobber_overlapping_mems): Make sure we have a MEM.
35893 (local_get_addr_clear_given_value): New.
35894 (val_reset): Clear local cached entries.
35895 (compute_bb_dataflow): Create and release the local cache.
35896 Disable duplicate MEMs clobbering.
35897 (emit_notes_in_bb): Clobber MEMs likewise.
35898 (vt_emit_notes): Create and release the local cache.
35899 (vt_initialize, vt_finalize): Create and release the global
35900 cache, respectively.
35901 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
35903 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
35905 PR libmudflap/53359
35906 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
35907 not found in the symtab.
35909 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
35912 PR rtl-optimization/55547
35913 PR rtl-optimization/53827
35916 * alias.c (offset_overlap_p): New, factored out of...
35917 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
35918 the conservative special case for symbolic constants. Don't
35919 adjust zero sizes on alignment.
35921 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
35923 PR rtl-optimization/52573
35924 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
35925 REG_UNUSED for the same register.
35927 2013-01-17 Richard Biener <rguenther@suse.de>
35928 Marek Polacek <polacek@redhat.com>
35930 PR rtl-optimization/55833
35931 * loop-unswitch.c (unswitch_loops): Move loop verification...
35932 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
35933 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
35934 Set it to true when we're removing a loop from hierarchy tree in
35935 an irreducible region.
35936 (fix_bb_placements): Adjust caller.
35937 (fix_loop_placements): Likewise.
35939 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
35941 * config/avr/builtins.def (DEF_BUILTIN): Factor out
35942 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
35943 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
35944 Remove ID. Adjust comments.
35945 * config/avr/avr-c.c (avr_builtin_name): Remove.
35946 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
35947 * config/avr/avr.c (avr_tolower): New static function.
35948 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
35949 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
35950 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
35953 2013-01-17 Jan Hubicka <jh@suse.cz>
35955 PR tree-optimization/55273
35956 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
35958 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
35961 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
35962 store through atomic_store<mode>_1.
35963 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
35965 2013-01-17 Martin Jambor <mjambor@suse.cz>
35967 PR tree-optimizations/55264
35968 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
35969 for virtual methods.
35970 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
35971 virtual methods before inlining is over.
35972 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
35974 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
35977 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
35979 PR rtl-optimization/56005
35980 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
35981 pending reads for prefetch.
35983 2013-01-16 Ian Bolton <ian.bolton@arm.com>
35985 * config/aarch64/aarch64.md
35986 (*cstoresi_neg_uxtw): New pattern.
35987 (*cmovsi_insn_uxtw): New pattern.
35988 (*<optab>si3_uxtw): New pattern.
35989 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
35990 (*<optab>si3_insn_uxtw): New pattern.
35991 (*bswapsi2_uxtw): New pattern.
35993 2013-01-16 Richard Biener <rguenther@suse.de>
35995 * tree-inline.c (tree_function_versioning): Remove set but
35996 never used variable.
35998 2013-01-16 Richard Biener <rguenther@suse.de>
36000 PR tree-optimization/55964
36001 * tree-flow.h (rename_variables_in_loop): Remove.
36002 (rename_variables_in_bb): Likewise.
36003 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
36004 (copy_loop_before): Adjust and delete update-ssa status.
36005 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
36006 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
36007 (rename_variables_in_loop): Remove.
36008 (slpeel_update_phis_for_duplicate_loop): Likewise.
36009 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
36010 use available cfg machinery instead of duplicating it.
36011 Update PHI nodes and perform poor-mans SSA update here.
36012 (slpeel_tree_peel_loop_to_edge): Adjust.
36014 2013-01-16 Richard Biener <rguenther@suse.de>
36016 PR tree-optimization/54767
36017 PR tree-optimization/53465
36018 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
36019 (vrp_visit_phi_node): For PHI arguments coming via backedges
36020 drop all symbolical range information.
36021 (execute_vrp): Compute backedges.
36023 2013-01-16 Richard Biener <rguenther@suse.de>
36025 * doc/install.texi: Update CLooG and ISL requirements to
36028 2013-01-16 Christian Bruel <christian.bruel@st.com>
36031 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
36032 (broken_move): Handle UNSPECV_SP_SWITCH_B.
36033 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
36035 2013-01-16 DJ Delorie <dj@redhat.com>
36037 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
36038 (UNSPECV_SP_SWITCH_E): New.
36039 (sp_switch_1): Change to an unspec.
36040 (sp_switch_2): Change to an unspec. Don't use post-inc when we
36043 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
36045 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
36046 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
36047 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
36048 (expand_mem_thread_fence): Ditto.
36049 (expand_mem_signal_fence): Ditto.
36050 (expand_atomic_load): Ditto.
36051 (expand_atomic_store): Ditto.
36053 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
36055 PR rtl-optimization/55547
36056 PR rtl-optimization/53827
36059 * alias.c (memrefs_conflict_p): Set sizes to negative after
36062 2013-01-15 Jakub Jelinek <jakub@redhat.com>
36065 * function.c (thread_prologue_and_epilogue_insns): Always
36066 add crtl->drap_reg to set_up_by_prologue.set, even if
36067 stack_realign_drap is false.
36069 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
36071 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
36072 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
36073 *call): Fix indention.
36075 2013-01-15 Tom de Vries <tom@codesourcery.com>
36078 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
36081 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
36083 PR rtl-optimization/55153
36084 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
36086 2013-01-15 Martin Jambor <mjambor@suse.cz>
36088 PR tree-optimization/55920
36089 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
36090 accesses as grp_to_be_debug_replaced.
36092 2013-01-15 Jakub Jelinek <jakub@redhat.com>
36094 PR tree-optimization/55920
36095 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
36096 there is non-useless type conversion needed from debug rhs to lhs,
36097 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
36099 2013-01-15 Joseph Myers <joseph@codesourcery.com>
36100 Mikael Pettersson <mikpe@it.uu.se>
36103 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
36105 (ASM_OUTPUT_CASE_LABEL): Remove.
36106 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
36107 * final.c (shorten_branches): Update alignment of labels before
36108 jump tables if CASE_VECTOR_SHORTEN_MODE.
36110 2013-01-15 Richard Biener <rguenther@suse.de>
36113 * system.h: Do not include gmp.h for building host tools.
36115 2013-01-15 Richard Biener <rguenther@suse.de>
36117 PR middle-end/55882
36118 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
36119 account for bitpos when computing alignment.
36121 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
36123 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
36124 (ix86_target_macros_internal): Likewise.
36126 * config/i386/i386.c (m_CORE2I7): Removed.
36127 (m_CORE_HASWELL): New macro.
36128 (m_CORE_ALL): Likewise.
36129 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
36130 (initial_ix86_arch_features): Likewise.
36131 (processor_target_table): Initializations for Core avx2.
36132 (cpu_names): New names "core-avx2".
36133 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
36134 PROCESSOR_CORE_HASWELL.
36135 (ix86_issue_rate): New case.
36136 (ia32_multipass_dfa_lookahead): Likewise.
36137 (ix86_sched_init_global): Likewise.
36139 * config/i386/i386.h (TARGET_HASWELL): New macro.
36140 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
36141 (processor_type): New PROCESSOR_HASWELL.
36143 2013-01-15 Jakub Jelinek <jakub@redhat.com>
36145 PR tree-optimization/55955
36146 * tree-vect-loop.c (vectorizable_reduction): Give up early on
36147 *SHIFT_EXPR and *ROTATE_EXPR codes.
36149 PR tree-optimization/48766
36150 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
36151 -ftrapv disable -fwrapv.
36153 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
36156 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
36157 etc. to 1 and not to __flash.
36158 Use LL suffix for __INT24_MAX__ with -mint8.
36159 Use ULL suffix for __UINT24_MAX__ with -mint8.
36161 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
36163 * config/avr/avr-arch.h
36164 (struct base_arch_s): Use typedef avr_arch_t instead.
36165 (struct arch_info_s): Use typedef avr_arch_info_t instead.
36166 (struct mcu_type_s): Use typedef avr_mcu_t instead.
36167 * config/avr/avr.c: Same.
36168 * config/avr/avr-devices.c: Same.
36169 * config/avr/driver-avr.c: Same.
36170 * config/avr/gen-avr-mmcu-texi.c: Same.
36171 * config/avr/avr-mcus.def: Adjust comment.
36173 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
36175 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
36176 * config/aarch64/iterators.md (VALLDI): New.
36178 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
36179 Andi Kleen <ak@linux.intel.com>
36182 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
36183 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
36186 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
36188 * config/avr/avr-stdint.h: Remove trailing blanks.
36189 * config/avr/avr-log.h: Same.
36190 * config/avr/avr-arch.h: Same.
36191 * config/avr/avr-devices.c: Same.
36192 * config/avr/avr-dimode.md: Same.
36193 * config/avr/predicates.md: Same.
36194 * config/avr/avr-c.c: Same. And fix typo.
36196 * config/avr/avr-protos.h: Same. And:
36197 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
36198 (init_cumulative_args): Rename to avr_init_cumulative_args.
36199 (expand_prologue): Rename to avr_expand_prologue.
36200 (expand_epilogue): Rename to avr_expand_epilogue.
36201 (adjust_insn_length): Rename to avr_adjust_insn_length.
36202 (notice_update_cc): Rename to avr_notice_update_cc.
36203 (final_prescan_insn): Rename to avr_final_prescan_insn.
36204 * config/avr/avr.c: Same.
36205 * config/avr/avr.h: Same.
36206 * config/avr/avr.md: Remove trailing blanks.
36207 (prologue): Use avr_expand_prologue.
36208 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
36210 2013-01-14 Richard Biener <rguenther@suse.de>
36212 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
36213 verify_location, collect_subblocks): New functions.
36214 (verify_gimple_in_cfg): Verify that locations only reference
36215 BLOCKs in the functions BLOCK tree.
36217 2013-01-14 Richard Biener <rguenther@suse.de>
36219 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
36221 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
36223 (insert_out_of_ssa_copy_on_edge): Likewise.
36224 (rewrite_close_phi_out_of_ssa): Likewise.
36225 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
36227 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
36228 propagated constants.
36229 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
36232 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
36234 * config/avr/avr-modes.def: Add GPL copyright notice.
36236 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
36238 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
36239 MEMMODEL_MASK to determine memory model.
36240 (atomic_store<mode>): Ditto from operands[2].
36241 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
36243 2013-01-13 Jakub Jelinek <jakub@redhat.com>
36246 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
36247 (fold_gimple_assign): Don't call unshare_expr here.
36248 (fold_ctor_reference): Call unshare_expr.
36250 2013-01-13 Terry Guo <terry.guo@arm.com>
36252 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
36253 * doc/fragments.texi: Document MULTILIB_REUSE.
36254 * gcc.c (multilib_reuse): New internal spec.
36255 (set_multilib_dir): Also search multilib from multilib_reuse.
36256 * genmultilib (tmpmultilib3): Refactor code.
36257 (tmpmultilib4): Ditto.
36258 (multilib_reuse): New multilib argument.
36260 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
36262 * Makefile.in: Update copyright.
36264 2013-01-12 Tom de Vries <tom@codesourcery.com>
36266 PR middle-end/55890
36267 * calls.c (expand_call): Check if arg_nr is valid.
36269 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
36271 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
36272 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
36273 documentation. Add missing '__' in front of
36274 __builtin_ia32_packssdw256.
36276 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36279 * config/s390/s390.c (s390_preferred_reload_class): Do not return
36280 NO_REGS for larl operands.
36281 (s390_reload_larl_operand): Use s390_load_address instead of
36284 2013-01-11 Richard Biener <rguenther@suse.de>
36286 * tree-cfg.c (verify_node_sharing_1): Split out from ...
36287 (verify_node_sharing): ... here.
36288 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
36290 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
36292 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
36293 Substitute TREECHECKING.
36294 * configure: Regenerate.
36295 * Makefile.in (TREECHECKING): New.
36297 2013-01-11 Richard Guenther <rguenther@suse.de>
36299 PR tree-optimization/44061
36300 * tree-vrp.c (extract_range_basic): Compute zero as
36301 value-range for __builtin_constant_p of function parameters.
36303 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
36305 Update copyright years.
36307 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
36309 PR rtl-optimization/55672
36310 * lra-eliminations.c (mark_not_eliminable): Permit addition with
36311 const to be eliminable.
36313 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
36315 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
36316 * configure: Regenerate.
36318 2013-01-10 Richard Biener <rguenther@suse.de>
36320 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
36322 2013-01-10 Richard Biener <rguenther@suse.de>
36325 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
36326 locations for virtual PHI arguments.
36327 (rewrite_update_phi_arguments): Likewise.
36329 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
36331 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
36334 2013-01-10 Jakub Jelinek <jakub@redhat.com>
36336 PR tree-optimization/55921
36337 * tree-complex.c (expand_complex_asm): New function.
36338 (expand_complex_operations_1): Call it for GIMPLE_ASM.
36340 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36343 * config/s390/s390.c (s390_symref_operand_p)
36344 (s390_loadrelative_operand_p): Merge the two functions.
36345 (s390_check_qrst_address, print_operand_address): Add parameters
36346 to s390_loadrelative_operand_p invokation.
36347 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
36348 (s390_reload_larl_operand, s390_secondary_reload): Use
36349 s390_loadrelative_operand_p instead of s390_symref_operand_p.
36350 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
36352 2013-01-09 Mike Stump <mikestump@comcast.net>
36354 * dse.c (record_store): Remove unnecessary assert.
36356 2013-01-09 Jan Hubicka <jh@suse.cz>
36358 PR tree-optimization/55569
36359 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
36360 * cfgloop.h (scale_loop_profile): Likewise.
36362 2013-01-09 Jan Hubicka <jh@suse.cz>
36365 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
36367 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
36369 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
36371 PR middle-end/55114
36372 * expr.h (maybe_emit_group_store): Declare.
36373 * expr.c (maybe_emit_group_store): New function.
36374 * builtins.c (expand_builtin_int_roundingfn): Call it.
36375 (expand_builtin_int_roundingfn_2): Likewise.
36377 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
36379 PR rtl-optimization/55829
36380 * lra-constraints.c (match_reload): Add code for absent output.
36381 (curr_insn_transform): Add code for reloads of matched inputs
36384 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
36386 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
36387 attribute of movddup insn to DF.
36388 (*vec_interleave_lowv2df): Ditto.
36389 (vec_dupv2df): Ditto.
36391 2013-01-09 Jan Hubicka <jh@suse.cz>
36393 PR tree-optimiation/55875
36394 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
36395 EVERY_ITERATION parameter.
36396 (number_of_iterations_exit): Check if exit is executed every iteration.
36397 (idx_infer_loop_bounds): Similarly here.
36398 (n_of_executions_at_most): Simplify
36399 to only test for cases where statement is dominated by the
36400 particular bound; handle correctly the "postdominance" test.
36401 (scev_probably_wraps_p): Use max loop iterations info
36402 as a global bound first.
36404 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
36405 Nick Clifton <nickc@redhat.com>
36407 * config/v850/v850.md (cbranchsf4): New pattern.
36408 (cstoresf4): New pattern.
36409 (cbranchdf4): New pattern.
36410 (cstoredf4): New pattern.
36411 (movsicc): Disallow floating point comparisons.
36412 (cmpsf_le_insn): Fix order of operators.
36413 (cmpsf_lt_insn): Likewise.
36414 (cmpsf_eq_insn): Likewise.
36415 (cmpdf_le_insn): Likewise.
36416 (cmpdf_lt_insn): Likewise.
36417 (cmpdf_eq_insn): Likewise.
36418 (cmpsf_ge_insn): Use LE comparison.
36419 (cmpdf_ge_insn): Likewise.
36420 (cmpsf_gt_insn): Use LT comparison.
36421 (cmpdf_gt_insn): Likewise.
36422 (cmpsf_ne_insn): Delete pattern.
36423 (cmpdf_ne_insn): Delete pattern.
36424 * config/v850/v850.c (v850_gen_float_compare): Use
36425 gen_cmpdf_eq_insn for NE comparison.
36426 (v850_float_z_comparison_operator)
36427 (v850_float_nz_comparison_operator): Move from here ...
36428 * config/v850/predicates.md: ... to here. Move GT and GE
36429 comparisons into v850_float_z_comparison_operator.
36430 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
36432 (v850_float_nz_comparison_operator): Likewise.
36434 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
36436 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
36437 with calls to gen_insvsi/gen_insvdi.
36439 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
36441 * config/i386/i386.c (initial_ix86_tune_features): Set up
36442 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
36444 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
36445 Jakub Jelinek <jakub@redhat.com>
36447 PR tree-optimization/48189
36448 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
36449 If nitercst is 0, don't predict the exit edge.
36451 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
36453 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
36454 in asm_fprintf with reg_names.
36455 (aarch64_print_operand_address): Likewise.
36456 (aarch64_return_addr): Likewise.
36457 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
36459 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
36461 * config/pa/pa.h (VAL_U6_BITS_P): Define.
36462 (INT_U6_BITS): Likewise.
36463 * config/pa/predicates.md (uint6_operand): New predicate.
36464 (shift5_operand, shift6_operand): Likewise.
36465 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
36467 (lshrdi3): Use shift6_operand.
36468 (shrpsi4, shrpdi4): New insn patterns.
36469 (extzv): Delete expander.
36470 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
36471 predicates in unamed zero extract patterns. Tighten common constraint.
36472 (extv): Delete expander.
36473 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
36474 predicates in unamed sign extract patterns. Tighten common constraint.
36475 (insv): Delete expander.
36476 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
36477 predicates in unamed insert patterns. Tighten common constraint.
36478 Change uint32_operand predicate to uint6_operand predicate in unamed
36479 DImode pattern to insert constant values of type 1...1xxxx.
36481 2013-01-04 Jan Hubicka <jh@suse.cz>
36483 PR tree-optimization/55823
36484 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
36487 2013-01-08 Jakub Jelinek <jakub@redhat.com>
36488 Uros Bizjak <ubizjak@gmail.com>
36490 PR rtl-optimization/55845
36491 * df-problems.c (can_move_insns_across): Stop scanning at
36492 volatile_insn_p source instruction or give up if
36493 across_from .. across_to range contains any volatile_insn_p
36496 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
36498 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
36499 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
36501 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
36502 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
36504 2013-01-08 Jakub Jelinek <jakub@redhat.com>
36507 * asan.c (asan_clear_shadow): New function.
36508 (asan_emit_stack_protection): Use it.
36510 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
36512 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
36513 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
36514 with tab instead of space.
36516 2013-01-08 Nick Clifton <nickc@redhat.com>
36518 * config/rl78/rl78.c (rl78_expand_prologue): Always select
36519 register bank 0 at the start of an interrupt handler.
36520 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
36523 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
36525 * config/aarch64/aarch64-simd.md
36526 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
36527 (aarch64_simd_bsl): Likewise.
36528 (aarch64_vcond_internal<mode>): Likewise.
36529 (vcond<mode><mode>): Likewise.
36530 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
36531 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
36533 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
36535 * config/aarch64/aarch64-builtins.c
36536 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
36538 2013-01-08 Martin Jambor <mjambor@suse.cz>
36541 * tree-sra.c (analyze_access_subtree): Return true also after
36542 potentially creating a debug-only replacement.
36544 2013-01-08 Jakub Jelinek <jakub@redhat.com>
36546 PR middle-end/55890
36547 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
36549 PR tree-optimization/54120
36550 * tree-vrp.c (range_fits_type_p): Don't allow
36551 src_precision < precision from signed vr to unsigned_p
36552 if vr->min or vr->max is negative.
36553 (simplify_float_conversion_using_ranges): Test can_float_p
36554 against CODE_FOR_nothing.
36556 2013-01-08 Jakub Jelinek <jakub@redhat.com>
36557 Richard Biener <rguenther@suse.de>
36559 PR middle-end/55851
36560 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
36561 types instead of just INTEGER_TYPE types.
36563 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
36565 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
36568 2013-01-07 Steve Ellcey <sellcey@mips.com>
36571 * config/mips/mips.opt: Change mad to mmad to match documentation.
36573 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
36576 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
36577 .progmemx.data now.
36579 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
36582 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
36583 (avr_addrspace_t): Add .section_name field.
36584 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
36586 (avr_addrspace): Same. Initialize .section_name. Remove last
36587 NULL entry. Put __memx into .progmemx.data.
36588 (progmem_section_prefix): Remove.
36589 (avr_asm_init_sections): No need to initialize progmem_section.
36590 (avr_asm_named_section): Use avr_addrspace[].section_name to get
36591 section name prefix.
36592 (avr_asm_select_section): Ditto. And use get_unnamed_section to
36593 retrieve the progmem section.
36594 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
36595 boundary to run over avr_addrspace[].
36596 (avr_register_target_pragmas): Ditto.
36598 2013-01-06 Jakub Jelinek <jakub@redhat.com>
36600 * varasm.c (output_constant_def_contents): For asan_protect_global
36601 protected strings, adjust DECL_ALIGN if needed, before testing for
36603 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
36604 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
36606 (output_object_block): For asan protected decls, emit asan padding
36607 after their contents.
36608 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
36609 (asan_finish_file): Test it here instead.
36611 2013-01-07 Nick Clifton <nickc@redhat.com>
36612 Matthias Klose <doko@debian.org>
36613 Doug Kwan <dougkwan@google.com>
36614 H.J. Lu <hongjiu.lu@intel.com>
36617 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
36619 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
36621 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
36623 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
36625 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
36627 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
36630 * doc/install.texi (Cross-Compiler-Specific Options): Document
36633 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
36635 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
36636 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
36637 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
36638 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
36639 vqmovun_high_s64): Fix source operand number and update copyright.
36641 2013-01-07 Richard Biener <rguenther@suse.de>
36643 PR middle-end/55890
36644 * gimple.h (gimple_call_builtin_p): New overload.
36645 * gimple.c (validate_call): New function.
36646 (gimple_call_builtin_p): Likewise.
36647 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
36648 Use gimple_call_builtin_p.
36649 (find_func_clobbers): Likewise.
36650 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
36651 (strlen_optimize_stmt): Likewise.
36653 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
36655 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
36656 (vld1q_dup_*): Likewise.
36657 (vld1_*): Likewise.
36658 (vld1q_*): Likewise.
36659 (vld1_lane_*): Likewise.
36660 (vld1q_lane_*): Likewise.
36662 2013-01-07 Richard Biener <rguenther@suse.de>
36664 * lto-streamer.h (LTO_minor_version): Bump to 2.
36666 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
36668 * config/aarch64/aarch64-protos.h
36669 (aarch64_const_double_zero_rtx_p): Rename to...
36670 (aarch64_float_const_zero_rtx_p): ...this.
36671 (aarch64_float_const_representable_p): New.
36672 (aarch64_output_simd_mov_immediate): Likewise.
36673 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
36674 move immediate case.
36675 * config/aarch64/aarch64.c
36676 (aarch64_const_double_zero_rtx_p): Rename to...
36677 (aarch64_float_const_zero_rtx_p): ...this.
36678 (aarch64_print_operand): Allow printing of new constants.
36679 (aarch64_valid_floating_const): New.
36680 (aarch64_legitimate_constant_p): Check for valid floating-point
36682 (aarch64_simd_valid_immediate): Likewise.
36683 (aarch64_vect_float_const_representable_p): New.
36684 (aarch64_float_const_representable_p): Likewise.
36685 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
36686 (aarch64_output_simd_mov_immediate): New.
36687 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
36688 (*movdf_aarch64): Likewise.
36689 * config/aarch64/constraints.md (Ufc): New.
36690 (Y): call aarch64_float_const_zero_rtx.
36691 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
36693 2013-01-07 Richard Biener <rguenther@suse.de>
36695 PR tree-optimization/55888
36696 PR tree-optimization/55862
36697 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
36698 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
36699 not if it is contained therein.
36701 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
36703 * config/avr/t-avr: Typo.
36705 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
36708 * config/avr/t-avr: Don't automatically rebuild
36709 $(srcdir)/config/avr/t-multilib
36710 $(srcdir)/config/avr/avr-tables.opt
36711 $(srcdir)/doc/avr-mmcu.texi
36712 (avr-mcus): New phony target to build them on request.
36713 (s-avr-mlib, s-avr-mmcu-texi): Remove.
36714 * avr/avr-mcus.def: Adjust comments.
36716 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
36718 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
36720 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
36722 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
36724 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
36726 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
36728 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
36730 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
36731 to generate profiling.
36732 * config/rs6000/aix64.h (LIB_SPEC): Same.
36734 2013-01-04 Andrew Pinski <apinski@cavium.com>
36736 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
36738 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
36740 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
36742 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
36744 (ix86_expand_move): Ditto.
36745 (ix86_zero_extend_to_Pmode): Ditto.
36746 (ix86_expand_call): Ditto.
36747 (ix86_expand_special_args_builtin): Ditto.
36748 (ix86_expand_builtin): Ditto.
36750 2013-01-04 Richard Biener <rguenther@suse.de>
36752 PR tree-optimization/55862
36753 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
36754 translating them through PHI nodes.
36756 2013-01-04 Martin Jambor <mjambor@suse.cz>
36758 PR tree-optimization/55755
36759 * tree-sra.c (sra_modify_assign): Do not check that an access has no
36760 children when trying to avoid producing a VIEW_CONVERT_EXPR.
36762 2013-01-04 Marek Polacek <polacek@redhat.com>
36764 PR middle-end/55859
36765 * opts.c (default_options_optimization): Clarify error message.
36767 2013-01-04 Richard Biener <rguenther@suse.de>
36769 PR middle-end/55863
36770 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
36773 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
36776 * config/pa/pa.md (movsi): Revert previous change.
36777 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
36780 2013-01-03 Richard Henderson <rth@redhat.com>
36782 * config/i386/i386.c (ix86_expand_move): Always assign to op1
36783 after eliminating TLS symbols.
36785 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
36788 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
36789 * graphite-poly.c (debug_gmp_value): Likewise.
36791 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
36794 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
36795 selected code model, define __code_mode_small__, __code_model_medium__,
36796 __code_model_large__, __code_model_32__ or __code_model_kernel__.
36797 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
36798 xchg temporary register with %k. Declare temporary register as
36800 [__x86_64__]: For medium and large code models, preserve %rbx register.
36802 2013-01-03 Richard Biener <rguenther@suse.de>
36804 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
36805 (dump_subscript): Adjust.
36806 (finalize_ddr_dependent): Do not dump redundant info.
36807 (analyze_siv_subscript): Adjust.
36808 (subscript_dependence_tester): Likewise.
36809 (compute_affine_dependence): Likewise.
36811 2013-01-03 Richard Biener <rguenther@suse.de>
36814 2013-01-03 Richard Biener <rguenther@suse.de>
36816 PR tree-optimization/55857
36817 * tree-vect-stmts.c (vectorizable_load): Do not setup
36818 re-alignment for invariant loads.
36820 2013-01-02 Richard Biener <rguenther@suse.de>
36822 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
36823 invariant load do not generate a vector load from the scalar location.
36825 2013-01-03 Richard Biener <rguenther@suse.de>
36827 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
36828 for not vectorizing.
36829 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
36830 not build INDIRECT_REFs, call get_name once only.
36831 (vect_create_data_ref_ptr): Likewise. Dump base object kind
36832 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
36834 2013-01-03 Richard Biener <rguenther@suse.de>
36836 PR tree-optimization/55857
36837 * tree-vect-stmts.c (vectorizable_load): Do not setup
36838 re-alignment for invariant loads.
36840 2013-01-03 Richard Biener <rguenther@suse.de>
36843 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
36844 prefer a built-in decl.
36846 2013-01-03 Jakub Jelinek <jakub@redhat.com>
36848 * gcc.c (process_command): Update copyright notice dates.
36849 * gcov.c (print_version): Likewise.
36850 * gcov-dump.c (print_version): Likewise.
36852 PR rtl-optimization/55838
36853 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
36854 iv0.step, iv1.step and step.
36856 2013-01-03 Jakub Jelinek <jakub@redhat.com>
36857 Marc Glisse <marc.glisse@inria.fr>
36859 PR tree-optimization/55832
36860 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
36861 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
36862 integer_{one,zero}_node.
36864 2013-01-03 Jakub Jelinek <jakub@redhat.com>
36867 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
36868 * var-tracking.c (reverse_op): Don't add reverse ops to
36869 VALUEs that have already
36870 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
36872 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
36874 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
36876 2013-01-02 Teresa Johnson <tejohnson@google.com>
36878 * dumpfile.c (dump_loc): Print filename with location.
36879 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
36880 new location_t parameter to emit complete unroll message with
36881 new dump framework.
36882 (canonicalize_loop_induction_variables): Compute loops location
36883 and pass to try_unroll_loop_completely.
36884 * loop-unroll.c (report_unroll_peel): New function.
36885 (peel_loops_completely): Use new dump format with location
36886 for main dumpfile message, and invoke report_unroll_peel on success.
36887 (decide_unrolling_and_peeling): Ditto.
36888 (decide_peel_once_rolling): Remove old dumpfile message subsumed
36889 by report_unroll_peel.
36890 (decide_peel_completely): Ditto.
36891 (decide_unroll_constant_iterations): Ditto.
36892 (decide_unroll_runtime_iterations): Ditto.
36893 (decide_peel_simple): Ditto.
36894 (decide_unroll_stupid): Ditto.
36895 * cfgloop.c (get_loop_location): New function.
36896 * cfgloop.h (get_loop_location): Declare.
36898 2013-01-02 Sriraman Tallam <tmsriram@google.com>
36900 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
36903 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
36905 PR middle-end/55198
36906 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
36907 BLKmode objects when EXPAND_MEMORY is specified.
36909 2013-01-02 Sriraman Tallam <tmsriram@google.com>
36911 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
36913 (fold_builtin_cpu): Do not share cpu model decls across statements.
36915 2013-01-02 Jason Merrill <jason@redhat.com>
36918 * tree.c (build_array_type_1): Revert earlier change.
36920 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
36922 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
36924 * config/aarch64/aarch64-tune.md: Re-generate.
36926 2013-01-02 Richard Biener <rguenther@suse.de>
36928 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
36929 invariant load do not generate a vector load from the scalar location.
36931 2013-01-02 Richard Biener <rguenther@suse.de>
36934 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
36935 * configure: Regenerate.
36937 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
36939 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
36940 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
36941 (expand_builtin_int_roundingfn_2): Keep the original target around
36942 for the fallback case.
36944 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
36946 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
36947 to be clear for sign changes.
36949 2013-01-01 Jan Hubicka <jh@suse.cz>
36951 * ipa-inline-analysis.c: Fix formatting.
36953 2013-01-01 Jakub Jelinek <jakub@redhat.com>
36955 PR tree-optimization/55831
36956 * tree-vect-loop.c (get_initial_def_for_induction): Use
36957 gsi_after_labels instead of gsi_start_bb.
36959 Copyright (C) 2013 Free Software Foundation, Inc.
36961 Copying and distribution of this file, with or without modification,
36962 are permitted in any medium without royalty provided the copyright
36963 notice and this notice are preserved.