1 2013-11-29 Yvan Roux <yvan.roux@linaro.org>
3 * config/arm/arm.h (THUMB_SECONDARY_INPUT_RELOAD_CLASS): Return NO_REGS
6 2013-11-29 Yvan Roux <yvan.roux@linaro.org>
8 * config/arm/arm.md (store_minmaxsi): Use only when
9 optimize_function_for_size_p.
11 2013-11-29 Jakub Jelinek <jakub@redhat.com>
12 Yury Gribov <y.gribov@samsung.com>
15 * config/gnu-user.h: Removed old code for setting up sanitizer
17 * gcc.c: Using libsanitizer spec instead of explicit libs.
19 2013-11-29 Ilya Enkovich <ilya.enkovich@intel.com>
22 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
23 * cgraph.h (varpool_node): Add need_bounds_init field.
24 * lto-cgraph.c (lto_output_varpool_node): Output
25 need_bounds_init value.
26 (input_varpool_node): Read need_bounds_init value.
27 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
30 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
31 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
32 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
33 (gen_type_die_with_usage): Skip pointer bounds.
34 (dwarf2out_global_decl): Likewise.
37 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
38 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
39 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
40 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
41 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
42 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
43 (gimple_call_with_bounds_p): New.
44 (gimple_call_set_with_bounds): New.
45 (gimple_call_num_nobnd_args): Remove.
46 (gimple_call_nobnd_arg): Remove.
47 * tree.h (CALL_WITH_BOUNDS_P): New.
48 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
51 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
52 * common.opt (fcheck-pointer-bounds): Move to ...
53 * c-family/c.opt: ... here.
54 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
55 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
56 * langhooks.h (lang_hooks): Remove chkp_supported field.
57 * toplev.c (process_options): Remove chkp_supported check.
60 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
61 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
62 * tree.h (POINTER_BOUNDS_P): New.
63 (BOUNDED_TYPE_P): New.
65 (pointer_bounds_type_node): New.
66 * tree.c (build_common_tree_nodes): Initialize
67 pointer_bounds_type_node.
68 * gimple.h (gimple_call_get_nobnd_arg_index): New.
69 (gimple_call_num_nobnd_args): New.
70 (gimple_call_nobnd_arg): New.
71 (gimple_return_retbnd): New.
72 (gimple_return_set_retbnd): New
73 * gimple.c (gimple_build_return): Increase number of ops
75 (gimple_call_get_nobnd_arg_index): New.
76 * gimple-pretty-print.c (dump_gimple_return): Print second op.
79 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
80 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
81 with "chkp ctor" and "bnd_legacy" attributes.
82 * gimplify.c (gimplify_init_constructor): Avoid infinite
83 loop during gimplification of bounds initializer.
86 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
87 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
88 (handle_bnd_legacy): New.
89 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
90 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
94 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
95 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
96 (BT_FN_PTR_CONST_PTR): New.
97 (BT_FN_CONST_PTR_CONST_PTR): New.
98 (BT_FN_PTR_CONST_PTR_SIZE): New.
99 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
100 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
101 (BT_FN_VOID_CONST_PTR_SIZE): New.
102 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
103 * chkp-builtins.def: New.
104 * builtins.def: include chkp-builtins.def.
105 (DEF_CHKP_BUILTIN): New.
106 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
107 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
108 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
109 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
110 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
111 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
112 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
113 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
114 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
115 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
116 * common.opt (fcheck-pointer-bounds): New.
117 * toplev.c (process_options): Check Pointer Bounds Checker is
119 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
122 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
123 * target.def (builtin_chkp_function): New.
124 (chkp_bound_type): New.
125 (chkp_bound_mode): New.
126 (fn_abi_va_list_bounds_size): New.
127 (load_bounds_for_arg): New.
128 (store_bounds_for_arg): New.
129 * targhooks.h (default_load_bounds_for_arg): New.
130 (default_store_bounds_for_arg): New.
131 (default_fn_abi_va_list_bounds_size): New.
132 (default_chkp_bound_type): New.
133 (default_chkp_bound_mode): New.
134 (default_builtin_chkp_function): New.
135 * targhooks.c (default_load_bounds_for_arg): New.
136 (default_store_bounds_for_arg): New.
137 (default_fn_abi_va_list_bounds_size): New.
138 (default_chkp_bound_type): New.
139 (default_chkp_bound_mode); New.
140 (default_builtin_chkp_function): New.
141 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
142 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
143 (TARGET_STORE_BOUNDS_FOR_ARG): New.
144 (TARGET_BUILTIN_CHKP_FUNCTION): New.
145 (TARGET_CHKP_BOUND_TYPE): New.
146 (TARGET_CHKP_BOUND_MODE): New.
147 * doc/tm.texi: Regenerated.
148 * langhooks.h (lang_hooks): Add chkp_supported field.
149 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
150 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
153 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
154 * config/i386/constraints.md (B): New.
157 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
158 * config/i386/i386-modes.def (BND32): New.
160 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
161 * config/i386/i386.c (isa_opts): Add mmpx.
162 (regclass_map): Add bound registers.
163 (dbx_register_map): Likewise.
164 (dbx64_register_map): Likewise.
165 (svr4_dbx_register_map): Likewise.
167 (ix86_option_override_internal): Support MPX ISA.
168 (ix86_conditional_register_usage): Support bound registers.
169 (print_reg): Likewise.
170 (ix86_code_end): Add MPX bnd prefix.
171 (output_set_got): Likewise.
172 (ix86_output_call_insn): Likewise.
173 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
174 (ix86_print_operand_punct_valid_p): Likewise.
175 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
177 (ix86_class_likely_spilled_p): Add bound regs support.
178 (ix86_hard_regno_mode_ok): Likewise.
179 (x86_order_regs_for_local_alloc): Likewise.
180 (ix86_bnd_prefixed_insn_p): New.
181 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
182 (FIXED_REGISTERS): Add bound registers.
183 (CALL_USED_REGISTERS): Likewise.
184 (REG_ALLOC_ORDER): Likewise.
185 (HARD_REGNO_NREGS): Likewise.
187 (VALID_BND_REG_MODE): New.
188 (FIRST_BND_REG): New.
190 (reg_class): Add BND_REGS.
191 (REG_CLASS_NAMES): Likewise.
192 (REG_CLASS_CONTENTS): Likewise.
194 (ANY_BND_REG_P): New.
196 (HI_REGISTER_NAMES): Add bound registers.
197 * config/i386/i386.md (UNSPEC_BNDMK): New.
198 (UNSPEC_BNDMK_ADDR): New.
199 (UNSPEC_BNDSTX): New.
200 (UNSPEC_BNDLDX): New.
201 (UNSPEC_BNDLDX_ADDR): New.
205 (UNSPEC_MPX_FENCE): New.
208 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
209 (length_immediate): Likewise.
210 (prefix_0f): Likewise.
212 (prefix_rep): Check for bnd prefix.
214 (length): Use length_nobnd if specified.
219 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
222 (simple_return_internal): Likewise.
223 (simple_return_pop_internal): Likewise.
224 (*indirect_jump): Add MPX bnd prefix.
225 (*tablejump_1): Likewise.
226 (simple_return_internal_long): Likewise.
227 (simple_return_indirect_internal): Likewise.
231 (*mov<mode>_internal_mpx): New.
232 (<mode>_<bndcheck>): New.
233 (*<mode>_<bndcheck>): New.
238 * config/i386/predicates.md (lea_address_operand): Rename to...
239 (address_no_seg_operand): ... this.
240 (address_mpx_no_base_operand): New.
241 (address_mpx_no_index_operand): New.
242 (bnd_mem_operator): New.
243 * config/i386/i386.opt (mmpx): New.
244 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
245 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
248 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
249 * mode-classes.def (MODE_POINTER_BOUNDS): New.
250 * tree.def (POINTER_BOUNDS_TYPE): New.
251 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
252 (POINTER_BOUNDS_MODE): New.
253 (make_pointer_bounds_mode): New.
254 * machmode.h (POINTER_BOUNDS_MODE_P): New.
255 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
256 (layout_type): Support POINTER_BOUNDS_TYPE.
257 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
258 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
259 (type_contains_placeholder_1): Likewise.
260 * tree.h (POINTER_BOUNDS_TYPE_P): New.
261 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
262 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
264 2013-11-29 Richard Biener <rguenther@suse.de>
267 * tree-cfg.c (verify_expr): Restrict bounds verification of
268 BIT_FIELD_REF arguments to non-aggregate typed base objects.
270 2013-11-29 Richard Biener <rguenther@suse.de>
272 PR tree-optimization/59334
273 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Fix bug
276 2013-11-29 Jakub Jelinek <jakub@redhat.com>
277 Richard Biener <rguenther@suse.de>
280 * omp-low.c (simd_clone_create): Return NULL if for definition
281 !cgraph_function_with_gimple_body_p (old_node). Call cgraph_get_body
282 before calling cgraph_function_versioning.
283 (expand_simd_clones): Look for "omp declare simd" attribute first.
284 Don't check targetm.simd_clone.compute_vecsize_and_simdlen here.
285 Punt if node->global.inlined_to.
286 (pass_omp_simd_clone::gate): Also enable if in_lto_p && !flag_wpa.
287 Disable pass if targetm.simd_clone.compute_vecsize_and_simdlen is NULL.
288 * lto-streamer-out.c (hash_tree): Handle OMP_CLAUSE.
290 2013-11-29 Jakub Jelinek <jakub@redhat.com>
293 * tree-core.h (enum omp_clause_schedule_kind): Add
294 OMP_CLAUSE_SCHEDULE_LAST.
295 (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_LAST.
296 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_LAST.
297 (enum omp_clause_map_kind): Add OMP_CLAUSE_MAP_LAST.
298 (enum omp_clause_proc_bind_kind): Add OMP_CLAUSE_PROC_BIND_LAST.
299 * lto-streamer-out.c (lto_is_streamable): Allow streaming
301 (DFS_write_tree_body): Handle OMP_CLAUSE.
302 * tree-streamer-out.c (pack_ts_omp_clause_value_fields): New
304 (streamer_pack_tree_bitfields): Call it for OMP_CLAUSE.
305 (write_ts_omp_clause_tree_pointers): New function.
306 (streamer_write_tree_body): Call it for OMP_CLAUSE.
307 (streamer_write_tree_header): For OMP_CLAUSE stream OMP_CLAUSE_CODE.
308 * tree-streamer-in.c (unpack_ts_omp_clause_value_fields): New
310 (unpack_value_fields): Call it for OMP_CLAUSE.
311 (streamer_alloc_tree): Handle OMP_CLAUSE.
312 (lto_input_ts_omp_clause_tree_pointers): New function.
313 (streamer_read_tree_body): Call it for OMP_CLAUSE.
315 2013-11-29 Joseph Myers <joseph@codesourcery.com>
317 * doc/implement-c.texi: Document C11 implementation-defined
318 behavior. Refer to -ffp-contract=fast for contraction behavior.
319 * doc/invoke.texi (-std=c99, std=c11): Update description of
321 (-std=gnu99): Don't mention as future default.
322 (-std=gnu11): Mention as intended future default.
323 * doc/standards.texi: Update descriptions of C99 and C11 support.
324 Limit statement about C99 facilities for freestanding
325 implementations to some platforms only.
327 2013-11-28 Jakub Jelinek <jakub@redhat.com>
330 * cfgexpand.c (expand_used_vars): Avoid warning on 32-bit
333 2013-11-28 Vladimir Makarov <vmakarov@redhat.com>
336 * ira.h (ira_setup_eliminable_regset): Remove parameter.
337 * ira.c (ira_setup_eliminable_regset): Ditto. Add
338 SUPPORTS_STACK_ALIGNMENT for crtl->stack_realign_needed.
339 Don't call lra_init_elimination.
340 (ira): Call ira_setup_eliminable_regset without arguments.
341 * loop-invariant.c (calculate_loop_reg_pressure): Remove argument
342 from ira_setup_eliminable_regset call.
343 * gcse.c (calculate_bb_reg_pressure): Ditto.
344 * haifa-sched.c (sched_init): Ditto.
345 * lra.h (lra_init_elimination): Remove the prototype.
346 * lra-int.h (lra_insn_recog_data): New member sp_offset. Move
347 used_insn_alternative upper.
348 (lra_eliminate_regs_1): Add one more parameter.
349 (lra-eliminate): Ditto.
350 * lra.c (lra_invalidate_insn_data): Set sp_offset.
351 (setup_sp_offset): New.
352 (lra_process_new_insns): Call setup_sp_offset.
353 (lra): Add argument to lra_eliminate calls.
354 * lra-constraints.c (get_equiv_substitution): Rename to get_equiv.
355 (get_equiv_with_elimination): New.
356 (process_addr_reg): Call get_equiv_with_elimination instead of
357 get_equiv_substitution.
358 (equiv_address_substitution): Ditto.
359 (loc_equivalence_change_p): Ditto.
360 (loc_equivalence_callback, lra_constraints): Ditto.
361 (curr_insn_transform): Ditto. Print the sp offset
362 (process_alt_operands): Prevent stack pointer reloads.
363 (lra_constraints): Remove one argument from lra_eliminate call.
364 Move it up. Mark used hard regs bfore it. Use
365 get_equiv_with_elimination instead of get_equiv_substitution.
366 * lra-eliminations.c (lra_eliminate_regs_1): Add parameter and
367 assert for param values combination. Use sp offset. Add argument
368 to lra_eliminate_regs_1 calls.
369 (lra_eliminate_regs): Add argument to lra_eliminate_regs_1 call.
370 (curr_sp_change): New static var.
371 (mark_not_eliminable): Add parameter. Update curr_sp_change.
372 Don't prevent elimination to sp if we can calculate its change.
373 Pass the argument to mark_not_eliminable calls.
374 (eliminate_regs_in_insn): Add a parameter. Use sp offset. Add
375 argument to lra_eliminate_regs_1 call.
376 (update_reg_eliminate): Move calculation of hard regs for spill
377 lower. Switch off lra_in_progress temporarily to generate regs
378 involved into elimination.
379 (lra_init_elimination): Rename to init_elimination. Make it
380 static. Set up insn sp offset, check the offsets at the end of
382 (process_insn_for_elimination): Add parameter. Pass its value to
383 eliminate_regs_in_insn.
384 (lra_eliminate): : Add parameter. Pass its value to
385 process_insn_for_elimination. Add assert for param values
386 combination. Call init_elimination. Don't update offsets in
387 equivalence substitutions.
388 * lra-spills.c (assign_mem_slot): Don't call lra_eliminate_regs_1
389 for created stack slot.
390 (remove_pseudos): Call lra_eliminate_regs_1 before changing memory
393 2013-11-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
395 * config/arm/iterators.md (vrint_conds): New int attribute.
396 * config/arm/vfp.md (<vrint_pattern><SDF:mode>2): Set conds attribute.
397 (smax<mode>3): Likewise.
398 (smin<mode>3): Likewise.
400 2013-11-28 Richard Sandiford <rdsandiford@googlemail.com>
402 * tree-core.h (tree_base): Document use of static_flag for SSA_NAME.
403 * tree.h (SSA_NAME_ANTI_RANGE_P, SSA_NAME_RANGE_TYPE): New macros.
404 * tree-ssanames.h (set_range_info): Add range_type argument.
405 (duplicate_ssa_name_range_info): Likewise.
406 * tree-ssanames.c (set_range_info): Take the range type as argument
407 and store it in SSA_NAME_ANTI_RANGE_P.
408 (duplicate_ssa_name_range_info): Likewise.
409 (get_range_info): Use SSA_NAME_ANTI_RANGE_P.
410 (set_nonzero_bits): Update call to set_range_info.
411 (duplicate_ssa_name_fn): Update call to duplicate_ssa_name_range_info.
412 * tree-ssa-copy.c (fini_copy_prop): Likewise.
413 * tree-vrp.c (remove_range_assertions): Update call to set_range_info.
414 (vrp_finalize): Likewise, passing anti-ranges directly.
416 2013-11-28 Richard Biener <rguenther@suse.de>
418 PR tree-optimization/59330
419 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Simplify
420 and fix delayed marking of free calls not necessary.
422 2013-11-28 Andrew MacLeod <amacleod@redhat.com>
424 * tree-ssa-propagate.c (valid_gimple_call_p): Pass TREE_TYPE to
426 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
428 2013-11-28 Terry Guo <terry.guo@arm.com>
430 * config/arm/arm.c (v7m_extra_costs): New table.
431 (arm_v7m_tune): Use it.
433 2013-11-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
435 * config/sol2.h (TIME_LIBRARY): Define.
437 2013-11-28 Richard Biener <rguenther@suse.de>
440 * lto-streamer-out.c (tree_is_indexable): TYPE_DECLs and
441 CONST_DECLs in function context are not indexable.
443 2013-11-28 Chung-Ju Wu <jasonwucj@gmail.com>
445 * config/nds32/nds32.c (nds32_rtx_costs): Adjust MULT cost if it is
446 not optimized for size.
448 2013-11-28 Jakub Jelinek <jakub@redhat.com>
450 * cfgexpand.c (struct stack_vars_data): Add asan_base and asan_alignb
452 (expand_stack_vars): For -fsanitize=address, use (and set initially)
453 data->asan_base as base for vars and update asan_alignb.
454 (expand_used_vars): Initialize data.asan_base and data.asan_alignb.
455 Pass them to asan_emit_stack_protection.
456 * asan.c (asan_detect_stack_use_after_return): New variable.
457 (asan_emit_stack_protection): Add pbase and alignb arguments.
458 Implement use after return sanitization.
459 * asan.h (asan_emit_stack_protection): Adjust prototype.
460 (ASAN_STACK_MAGIC_USE_AFTER_RET, ASAN_STACK_RETIRED_MAGIC): Define.
462 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
464 * common.opt: Introduced a new option -fsimd-cost-model.
465 * doc/invoke.texi: Introduced a new openmp-simd warning and
466 a new -fsimd-cost-model option.
467 * tree-vectorizer.h (unlimited_cost_model): Interface updated
468 to rely on the particular loop info.
469 * tree-vect-data-refs.c (vect_peeling_hash_insert): Ditto.
470 (vect_peeling_hash_choose_best_peeling): Ditto.
471 (vect_enhance_data_refs_alignment): Ditto.
472 * tree-vect-slp.c (vect_slp_analyze_bb_1): Ditto.
473 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Ditto
474 plus added openmp-simd warining.
476 2013-11-27 H.J. Lu <hongjiu.lu@intel.com>
478 PR rtl-optimization/59311
479 * dwarf2cfi.c (dwf_regno): Assert reg isn't pseudo register.
480 * lra-spills.c (spill_pseudos): Handle REG_XXX notes.
482 2013-11-27 Eric Botcazou <ebotcazou@adacore.com>
484 * var-tracking.c (track_expr_p): Do not track declarations for parts
485 of tracked parameters.
486 (add_stores): Do not track values for tracked parameters passed in
488 (vt_get_decl_and_offset): Handle PARALLEL.
489 (vt_add_function_parameter): Handle parameters with incoming PARALLEL.
491 2013-11-27 Jeff Law <law@redhat.com>
493 * tree-ssa-threadupdate.c (thread_through_all_blocks): Do not
494 clobber the loop structure thread_block was unsuccessful. If
495 thread_block was unsuccessful, cleanup appropriately.
497 2013-11-27 Chen Liqin <liqin.gcc@gmail.com>
499 * config/score/score.h (REG_CLASS_FROM_LETTER): Delete.
500 (score_char_to_class): Likewise.
502 2013-11-27 Kenneth Zadeck <zadeck@naturalbridge.com>
504 * fold-const.c (int_const_binop_1): Make INT_MIN % -1 return 0 with the
507 2013-11-27 Richard Biener <rguenther@suse.de>
510 * cgraphbuild.c (build_cgraph_edges): Do not build edges
512 (rebuild_cgraph_edges): Likewise.
513 * ipa-inline-analysis.c (estimate_function_body_sizes):
515 * tree-inline.c (estimate_num_insns): Estimate size of internal
517 (gimple_expand_calls_inline): Do not try inline-expanding
519 * lto-streamer-in.c (input_cfg): Stream loop safelen,
520 force_vect and simduid.
521 (input_struct_function_base): Stream has_force_vect_loops
522 and has_simduid_loops.
523 (input_function): Adjust.
524 * lto-streamer-out.c (output_cfg): Stream loop safelen,
525 force_vect and simduid.
526 (output_struct_function_base): Stream has_force_vect_loops
527 and has_simduid_loops.
529 2013-11-27 Kai Tietz <ktietz@redhat.com>
531 * config/i386/winnt.c (i386_pe_section_type_flags): Use const
534 2013-11-27 Kugan Vivekanandarajah <kuganv@linaro.org>
536 * doc/tm.texi.in (TARGET_HAS_NO_HW_DIVIDE): Define.
537 * doc/tm.texi (TARGET_HAS_NO_HW_DIVIDE): Regenerate.
539 2013-11-27 Marek Polacek <polacek@redhat.com>
542 * ubsan.c (instrument_null): Use gimple_store_p/gimple_assign_load_p
543 instead of walk_gimple_op.
544 (ubsan_pass): Adjust. Call instrument_null only if SANITIZE_NULL.
546 2013-11-27 Aldy Hernandez <aldyh@redhat.com>
547 Jakub Jelinek <jakub@redhat.com>
549 * cgraph.h (enum cgraph_simd_clone_arg_type): New.
550 (struct cgraph_simd_clone_arg, struct cgraph_simd_clone): New.
551 (struct cgraph_node): Add simdclone and simd_clones fields.
552 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen,
553 ix86_simd_clone_adjust, ix86_simd_clone_usable): New functions.
554 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
555 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Define.
556 * doc/tm.texi.in (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
557 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Add.
558 * doc/tm.texi: Regenerated.
559 * ggc.h (ggc_alloc_cleared_simd_clone_stat): New function.
560 * ipa-cp.c (determine_versionability): Fail if "omp declare simd"
561 attribute is present.
562 * omp-low.c: Include pretty-print.h, ipa-prop.h and tree-eh.h.
563 (simd_clone_vector_of_formal_parm_types): New function.
564 (simd_clone_struct_alloc, simd_clone_struct_copy,
565 simd_clone_vector_of_formal_parm_types, simd_clone_clauses_extract,
566 simd_clone_compute_base_data_type, simd_clone_mangle,
567 simd_clone_create, simd_clone_adjust_return_type,
568 create_tmp_simd_array, simd_clone_adjust_argument_types,
569 simd_clone_init_simd_arrays): New functions.
570 (struct modify_stmt_info): New type.
571 (ipa_simd_modify_stmt_ops, ipa_simd_modify_function_body,
572 simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone): New
574 (pass_data_omp_simd_clone): New variable.
575 (pass_omp_simd_clone): New class.
576 (make_pass_omp_simd_clone): New function.
577 * passes.def (pass_omp_simd_clone): New.
578 * target.def (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
579 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): New target
581 * target.h (struct cgraph_node, struct cgraph_simd_node): Declare.
582 * tree-core.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Document.
583 * tree.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Define.
584 * tree-pass.h (make_pass_omp_simd_clone): New prototype.
585 * tree-vect-data-refs.c: Include cgraph.h.
586 (vect_analyze_data_refs): Inline by hand find_data_references_in_loop
587 and find_data_references_in_bb, if find_data_references_in_stmt
588 fails, still allow calls to #pragma omp declare simd functions
589 in #pragma omp simd loops unless they contain data references among
590 the call arguments or in lhs.
591 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
593 (vect_transform_loop): Allow NULL STMT_VINFO_VECTYPE for calls without
595 * tree-vectorizer.h (enum stmt_vec_info_type): Add
596 call_simd_clone_vec_info_type.
597 (struct _stmt_vec_info): Add simd_clone_fndecl field.
598 (STMT_VINFO_SIMD_CLONE_FNDECL): Define.
599 * tree-vect-stmts.c: Include tree-ssa-loop.h,
600 tree-scalar-evolution.h and cgraph.h.
601 (vectorizable_call): Handle calls without lhs. Assert
602 !stmt_can_throw_internal instead of failing for it. Don't update
604 (struct simd_call_arg_info): New.
605 (vectorizable_simd_clone_call): New function.
606 (vect_transform_stmt): Call it.
607 (vect_analyze_stmt): Likewise. Allow NULL STMT_VINFO_VECTYPE for
609 * ipa-prop.c (ipa_add_new_function): Only call ipa_analyze_node
610 if cgraph_function_with_gimple_body_p is true.
612 2013-11-27 Tom de Vries <tom@codesourcery.com>
613 Marc Glisse <marc.glisse@inria.fr>
616 * fold-const.c (fold_indirect_ref_1): Don't create out-of-bounds
618 * gimple-fold.c (gimple_fold_indirect_ref): Same.
619 * tree-cfg.c (verify_expr): Give error if BIT_FIELD_REF is
622 2013-11-27 Eric Botcazou <ebotcazou@adacore.com>
625 * expr.c (emit_group_store): Don't write past the end of the structure.
626 (store_bit_field): Fix formatting.
628 2013-11-27 Richard Biener <rguenther@suse.de>
630 PR tree-optimization/59288
631 * tree-vect-loop.c (get_initial_def_for_induction): Do not
632 re-analyze the PHI but use STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
634 2013-11-27 Marek Polacek <polacek@redhat.com>
636 * ubsan.c (ubsan_type_descriptor): If varpool_get_node returns NULL
637 for a decl, recreate that decl. Save into the hash table VAR_DECLs
638 rather than ADDR_EXPRs.
640 2013-11-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
642 * config/ia64/hpux.h (TARGET_LIBC_HAS_FUNCTION): Fix typo.
644 2013-11-26 David Malcolm <dmalcolm@redhat.com>
646 * gengtype.c (struct seen_tag): New.
647 (already_seen_tag): New.
648 (mark_tag_as_seen): New.
649 (walk_subclasses): Support having multiple subclasses using the
650 same tag by tracking which tags have already been seen, and using
651 this to avoid adding duplicate cases to the "switch" statement.
652 The call to already_seen_tag introduces an O(N^2) when running
653 gengtype on N, the number of tags, due to the repeated linear
654 search, but currently max(N) is relatively small (the number of
655 GSS codes, which is 26).
656 (walk_type): Pass in a seen_tag for use by the walk_subclasses
659 * gimple.def (GIMPLE_OMP_ATOMIC_STORE, GIMPLE_OMP_RETURN): Rename
660 underlying GSS values for these codes (from GSS_OMP_ATOMIC_STORE to
661 GSS_OMP_ATOMIC_STORE_LAYOUT) to make clear that although
662 GIMPLE_OMP_RETURN happens to share the data layout of
663 GIMPLE_OMP_ATOMIC_STORE, they are not otherwise related.
664 (GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TARGET): Likewise, rename
665 underlying GSS value from GSS_OMP_PARALLEL to
666 GSS_OMP_PARALLEL_LAYOUT to make clear that these gimple codes are
667 not directly related; they merely share in-memory layout.
668 (GIMPLE_OMP_SINGLE, GIMPLE_OMP_TEAMS): Likewise, rename GSS values
669 for these two codes from GSS_OMP_SINGLE to GSS_OMP_SINGLE_LAYOUT.
671 * gsstruct.def (GSS_OMP_PARALLEL, gimple_statement_omp_parallel):
673 (GSS_OMP_PARALLEL_LAYOUT, gimple_statement_omp_parallel_layout):
675 (GSS_OMP_SINGLE, gimple_statement_omp_single): Rename to...
676 (GSS_OMP_SINGLE_LAYOUT, gimple_statement_omp_single_layout):
678 (GSS_OMP_ATOMIC_STORE, gimple_statement_omp_atomic_store): Rename
680 (GSS_OMP_ATOMIC_STORE_LAYOUT, gimple_statement_omp_atomic_store):
683 * gimple.h (gimple_statement_resx): New subclass of
684 gimple_statement_eh_ctrl, with the invariant that
685 stmt->code == GIMPLE_RESX.
686 (gimple_statement_eh_dispatch): New subclass of
687 gimple_statement_eh_ctrl, with the invariant that
688 stmt->code == GIMPLE_EH_DISPATH.
690 (gimple_statement_omp_parallel): The existing class expressed
691 a layout (GSS_OMP_PARALLEL), but the codes with that layout
692 are not all related, so it makes more sense for this class to
693 express a *code* (GIMPLE_OMP_PARALLEL). GSS_OMP_PARALLEL has
694 been renamed to GSS_OMP_PARALLEL_LAYOUT to express this, so
695 rename the existing gimple_statement_omp_parallel class to...
696 (gimple_statement_omp_parallel_layout): ...this, expressing
697 a statement of structure layout GSS_OMP_PARALLEL_LAYOUT.
698 (gimple_statement_omp_taskreg): New subclass of
699 gimple_statement_omp_parallel_layout, expressing the invariant
700 that the code is one of GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK,
701 as used by the various gimple_omp_taskreg_ accessors.
702 (gimple_statement_omp_parallel): Reintroduce this class, this time
703 as a subclass of gimple_statement_omp_taskreg to express the
704 invariant stmt->code == GIMPLE_OMP_PARALLEL.
705 (gimple_statement_omp_target) New class, subclassing
706 gimple_statement_omp_parallel_layout, to express the invariant
707 stmt->code == GIMPLE_OMP_TARGET.
708 (gimple_statement_omp_task): Update to inherit from
709 gimple_statement_omp_taskreg rather than
710 gimple_statement_omp_parallel.
712 (gimple_statement_omp_single): Rename to...
713 (gimple_statement_omp_single_layout): ...this, expressing the
714 invariant that the layout is GSS_OMP_SINGLE_LAYOUT.
715 (gimple_statement_omp_single): ...and reintroduce this name as
716 a subclass of gimple_statement_omp_single_layout, expressing
717 the invariant that code == GIMPLE_OMP_SINGLE.
718 (gimple_statement_omp_teams): New class, subclassing
719 gimple_statement_omp_single_layout, for the code GIMPLE_OMP_TEAMS.
721 (gimple_statement_omp_atomic_store): Rename to...
722 (gimple_statement_omp_atomic_store_layout): ...this, expressing
723 the invariant that the layout is GSS_OMP_ATOMIC_STORE_LAYOUT.
724 (gimple_statement_omp_atomic_store): ...and reintroduce this
725 name as a subclass of gimple_statement_omp_atomic_store_layout
726 with code == GIMPLE_OMP_ATOMIC_STORE.
727 (gimple_statement_omp_return): New class, subclassing
728 gimple_statement_omp_atomic_store_layout for the code
731 (is_a_helper <gimple_statement_eh_ctrl>::test): Delete.
732 (is_a_helper <gimple_statement_resx>::test): New.
733 (is_a_helper <gimple_statement_eh_dispatch>::test): New.
734 (is_a_helper <gimple_statement_omp_atomic_store>::test): Only
735 check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
736 (is_a_helper <gimple_statement_omp_return>::test): New.
737 (is_a_helper <gimple_statement_omp_taskreg>::test): New.
738 (is_a_helper <gimple_statement_omp_parallel>::test): Only check
739 for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
741 (is_a_helper <gimple_statement_omp_target>::test): New.
742 (is_a_helper <gimple_statement_omp_single>::test): Only check
743 for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
744 (is_a_helper <gimple_statement_omp_teams>::test): New.
746 (is_a_helper <const gimple_statement_eh_ctrl>::test): Delete.
747 (is_a_helper <const gimple_statement_resx>::test): New.
748 (is_a_helper <const gimple_statement_eh_dispatch>::test): New.
749 (is_a_helper <const gimple_statement_omp_atomic_store>::test): Only
750 check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
751 (is_a_helper <const gimple_statement_omp_return>::test): New.
752 (is_a_helper <const gimple_statement_omp_taskreg>::test): New.
753 (is_a_helper <const gimple_statement_omp_parallel>::test): Only
754 check for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
756 (is_a_helper <const gimple_statement_omp_target>::test): New.
757 (is_a_helper <const gimple_statement_omp_single>::test): Only
758 check for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
759 (is_a_helper <const gimple_statement_omp_teams>::test): New.
761 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
762 gimple_omp_return_lhs_ptr): Replace bogus downcasts to
763 gimple_statement_omp_atomic_store with downcasts to
764 gimple_statement_omp_return, thus requiring that the code be
766 (gimple_resx_region, gimple_resx_set_region): Replace bogus
767 downcasts to gimple_statement_eh_ctrl with downcasts to
768 gimple_statement_resx, thus requiring that the code be
770 (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region):
771 Replace bogus downcasts to const gimple_statement_eh_ctrl with
772 downcasts to gimple_statement_eh_dispatch, thus requiring that
773 the code be GIMPLE_EH_DISPATCH.
774 (gimple_omp_taskreg_clauses, gimple_omp_taskreg_clauses_ptr)
775 gimple_omp_taskreg_set_clauses, gimple_omp_taskreg_child_fn,
776 gimple_omp_taskreg_child_fn_ptr, gimple_omp_taskreg_set_child_fn,
777 gimple_omp_taskreg_data_arg, gimple_omp_taskreg_data_arg_ptr,
778 gimple_omp_taskreg_set_data_arg): Replace bogus downcasts to
779 gimple_statement_omp_parallel with downcasts to
780 gimple_statement_omp_taskreg, thus requiring that the code be
781 either GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK.
782 (gimple_omp_target_clauses, gimple_omp_target_clauses_ptr
783 gimple_omp_target_set_clauses, gimple_omp_target_child_fn
784 gimple_omp_target_child_fn_ptr, gimple_omp_target_set_child_fn
785 gimple_omp_target_data_arg, gimple_omp_target_data_arg_ptr
786 gimple_omp_target_set_data_arg): Replace bogus downcasts to
787 gimple_statement_omp_parallel with downcasts to
788 gimple_statement_omp_target, thus requiring that the code be
790 (gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr
791 gimple_omp_teams_set_clauses): Replace bogus downcasts to
792 gimple_statement_omp_single with downcasts to
793 gimple_statement_omp_teams, thus requiring that the code be
796 * gimple.c (gimple_build_resx): Fix bogus as_a<> to use
797 gimple_statement_resx.
798 (gimple_build_eh_dispatch): Fix bogus as_a<> to use
799 gimple_statement_eh_dispatch.
801 2013-11-26 Jakub Jelinek <jakub@redhat.com>
803 PR tree-optimization/59014
804 * tree-vrp.c (register_edge_assert_for_1): Don't look
805 through conversions from non-integral types or through
806 narrowing conversions.
809 * config/i386/i386.c (device_alg): Fix up formatting.
810 (ix86_expand_set_or_movmem): Handle max_size < epilogue_size_needed
811 similarly to count && count < epilogue_size_needed. Fix up
813 * builtins.c (determine_block_size): Fix comment typo.
816 * ubsan.c (ubsan_source_location): Don't add any location
817 to ADDR_EXPR in the ctor. Revert 2013-11-22 change.
818 (ubsan_create_data): Strip block info from LOC.
821 * tree-vect-generic.c (optimize_vector_constructor): Don't optimize
822 if there isn't optab handler for the corresponding vector PLUS_EXPR.
824 PR rtl-optimization/59166
825 * ira.c (find_moveable_pseudos): Use DF_REF_REAL_LOC instead of
826 DF_REF_LOC in validate_change call.
827 (split_live_ranges_for_shrink_wrap): Likewise.
830 * omp-low.c (lower_rec_input_clause): For reduction with placeholder
831 of references to constant size types in simd loops, defer emitting
832 initializer for the new_var, emit it later on only if not using
836 * omp-low.c (expand_omp_for_static_chunk): Don't set loop->latch
837 for the inner loop if collapse_bb is non-NULL.
838 (expand_omp_simd): Use cont_bb rather than e->dest as latch.
840 2013-11-26 Yufeng Zhang <yufeng.zhang@arm.com>
842 * config/arm/arm.c (arm_legitimize_address): Check xop1 is not
843 a constant immediate before force_reg.
845 2013-11-26 Richard Biener <rguenther@suse.de>
847 PR tree-optimization/59245
848 * tree-vrp.c (set_value_range): Assert that we don't have
849 overflowed constants (but our infinities).
850 (set_value_range_to_value): Drop all overflow flags.
851 (vrp_visit_phi_node): Likewise.
852 (vrp_visit_assignment_or_call): Use set_value_range_to_value
853 to set a constant range.
855 2013-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
858 * config/arm/arm.md (*zextendsidi_negsi): New pattern.
859 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost correctly
860 for zero_extend case.
862 2013-11-26 H.J. Lu <hongjiu.lu@intel.com>
865 * configure.ac (install_gold_as_default): New. Set to yes for
866 --disable-ld or --enable-gold=default.
867 (gcc_cv_ld_gold_srcdir): New.
868 (gcc_cv_ld): Also check in-tree gold if install_gold_as_default
870 (ORIGINAL_LD_BFD_FOR_TARGET): New AC_SUBST.
871 (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
872 * configure: Regenerated.
874 * exec-tool.in (ORIGINAL_LD_BFD_FOR_TARGET): New variable.
875 (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
876 (original) [collect-ld && -fuse-ld=bfd]: Set to
877 $ORIGINAL_LD_BFD_FOR_TARGET.
878 (original) [collect-ld && -fuse-ld=gold]: Set to
879 $ORIGINAL_LD_GOLD_FOR_TARGET.
880 (dir) [collect-ld && ../gold/ld-new]: Set to gold.
881 (fast_install) [collect-ld && ../gold/ld-new]: Set to yes.
883 2013-11-26 Terry Guo <terry.guo@arm.com>
885 * config/arm/arm.c (require_pic_register): Handle high pic base
886 register for thumb-1.
887 (arm_load_pic_register): Also initialize high pic base register.
888 * doc/invoke.texi: Update documentation for option -mpic-register.
890 2013-11-26 Oleg Endo <olegendo@gcc.gnu.org>
894 * config/sh/sh.c (max_mov_insn_displacement, disp_addr_displacement):
895 Prefix function names with 'sh_'. Make them non-static.
896 * config/sh/sh-protos.h (sh_disp_addr_displacement,
897 sh_max_mov_insn_displacement): Add declarations.
898 * config/sh/constraints.md (Q): Reject QImode.
899 (Sdd): Use match_code "mem".
900 (Snd): Fix erroneous matching of non-memory operands.
901 * config/sh/predicates.md (short_displacement_mem_operand): New
903 (general_movsrc_operand): Disallow PC relative QImode loads.
904 * config/sh/sh.md (*mov<mode>_reg_reg): Remove it.
905 (*movqi, *movhi): Merge both insns into...
906 (*mov<mode>): ... this new insn. Replace generic 'm' constraints with
907 'Snd' and 'Sdd' constraints. Calculate insn length dynamically based
908 on the operand types.
910 2013-11-26 Joern Rennecke <joern.rennecke@embecosm.com>
912 * config/epiphany/epiphany.c (epiphany_expand_prologue):
913 Remove unused variable save_config.
914 (epiphany_compute_frame_size): Avoid signed/unsigned comparison in
917 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
919 * config/aarch64/arm_neon.h (vtbx1_<psu>8): Emulate behaviour
920 using other intrinsics.
921 (vtbx3_<psu>8): Likewise.
923 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
925 * config/aarch64/aarch64-builtins.c
926 (aarch64_types_bsl_p_qualifiers): New.
927 (aarch64_types_bsl_s_qualifiers): Likewise.
928 (aarch64_types_bsl_u_qualifiers): Likewise.
929 (TYPES_BSL_P): Likewise.
930 (TYPES_BSL_S): Likewise.
931 (TYPES_BSL_U): Likewise.
932 (BUILTIN_VALLDIF): Likewise.
933 (BUILTIN_VDQQH): Likewise.
934 * config/aarch64/aarch64-simd-builtins.def (simd_bsl): New.
935 * config/aarch64/aarch64-simd.md
936 (aarch64_simd_bsl<mode>_internal): Handle more modes.
937 (aarch64_simd_bsl<mode>): Likewise.
938 * config/aarch64/arm_neon.h
939 (vbsl<q>_<fpsu><8,16,32,64): Implement using builtins.
940 * config/aarch64/iterators.md (VALLDIF): New.
941 (Vbtype): Handle more modes.
943 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
945 * config/aarch64/aarch64-builtins.c
946 (aarch64_type_qualifiers): Add qualifier_poly.
947 (aarch64_build_scalar_type): Also build Poly types.
948 (aarch64_build_vector_type): Likewise.
949 (aarch64_build_type): Likewise.
950 (aarch64_build_signed_type): New.
951 (aarch64_build_unsigned_type): Likewise.
952 (aarch64_build_poly_type): Likewise.
953 (aarch64_init_simd_builtins): Also handle Poly types.
955 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
957 * config/aarch64/aarch64-builtins.c
958 (VAR1): Use new naming scheme for aarch64_builtins.
959 (aarch64_builtin_vectorized_function): Use new
960 aarch64_builtins names.
962 2013-11-26 Richard Biener <rguenther@suse.de>
964 PR tree-optimization/59287
965 * tree-ssa-structalias.c (get_constraint_for_component_ref):
966 Remove no longer necessary special-casing of union accesses.
968 2013-11-26 Richard Biener <rguenther@suse.de>
970 * pretty-print.c (output_buffer::~output_buffer): Really
973 2013-11-25 Jeff Law <law@redhat.com>
975 * tree-ssa-threadupdate.c (thread_through_all_blocks): Selectively
976 invalidate loop information.
978 2013-11-25 Oleg Endo <olegendo@gcc.gnu.org>
980 * config/sh/sh.md (doloop_end_split): Add missing SI mode.
982 2013-11-25 Oleg Endo <olegendo@gcc.gnu.org>
986 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value): Update
988 (sh_optimize_sett_clrt::find_last_ccreg_values): Check stack of
989 previously visited basic blocks before recursing instead of only one
992 2013-11-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
994 * config/aarch64/aarch64.c (cortexa53_tuning): New struct.
995 * config/aarch64/aarch64-cores.def (cortex-a53):
996 Use cortexa53 tuning struct.
998 2013-11-25 Andrew Macleod <amacleod@redhat.com>
1001 * fold-const.c: Include hash-table.h.
1003 2013-11-25 Marek Polacek <polacek@redhat.com>
1006 * ubsan.c (ubsan_create_data): Increase the size of the fields array.
1008 2013-11-25 Richard Biener <rguenther@suse.de>
1010 * tree-dfa.c: Remove unused convert.h include.
1012 2013-11-25 Terry Guo <terry.guo@arm.com>
1014 * doc/invoke.texi (-mslow-flash-data): Document new option.
1015 * config/arm/arm.opt (mslow-flash-data): New option.
1016 * config/arm/arm-protos.h (arm_max_const_double_inline_cost): Declare
1018 * config/arm/arm.h (TARGET_USE_MOVT): Always true when literal pools
1020 (arm_disable_literal_pool): Declare it.
1021 * config/arm/arm.c (arm_disable_literal_pool): New variable.
1022 (arm_option_override): Handle new option.
1023 (thumb2_legitimate_address_p): Don't allow symbol references when
1024 literal pools are disabled.
1025 (arm_max_const_double_inline_cost): New function.
1026 * config/arm/arm.md (types.md): Include it before ...
1027 (use_literal_pool): New attribute.
1028 (enabled): Use new attribute.
1029 (split pattern): Replace symbol+offset with MOVW/MOVT.
1031 2013-11-24 Steven Bosscher <steven@gcc.gnu.org>
1034 Revert previous commit.
1036 2013-11-24 Steven Bosscher <steven@gcc.gnu.org>
1038 * jump.c (reset_insn_reg_label_operand_notes): New function,
1040 (init_label_info): ... here. Reset LABEL_NUSES in cfglayout mode.
1041 * cfgcleanup.c (delete_dead_jump_tables_between): New function,
1043 (delete_dead_jumptables): ... here. Handle cfglayout mode.
1044 (cleanup_cfg): Delete dead jump tables in cfglayout mode if an
1045 expensive CFG cleanup is called for.
1046 * cfgrtl.c (fixup_reorder_chain): Remove BARRIERs from fallthru paths.
1047 (cfg_layout_finalize): Delete dead jump tables before re-building
1049 * ira.c (ira): Rebuild jump labels *after* deleting unreachable
1050 basic blocks, not before.
1051 * loop-init.c (rtl_loop_done): Call for an expensive CFG cleanup.
1053 * modulo-sched.c (sms_schedule): Do not look for BARRIERs in the
1054 insns chain of a scheduling extended basic block, they cannot appear
1055 there in cfglayout mode.
1057 2013-11-24 Tobias Burnus <burnus@net-b.de>
1059 * doc/invoke.texi (-fsanitize=leak): Add link to the wiki page.
1061 2013-11-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1063 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Correct
1066 2013-11-24 H.J. Lu <hongjiu.lu@intel.com>
1068 * graphite-sese-to-poly.c: Don't include extra "expr.h".
1070 2013-11-23 Eric Botcazou <ebotcazou@adacore.com>
1072 * cilk-common.c (expand_builtin_cilk_detach): Dereference worker.
1074 2013-11-23 David Edelson <dje.gcc@gmail.com>
1075 Andrew Dixie <andrewd@gentrack.com>
1078 * config/rs6000/aix.h (COLLECT_SHARED_INIT_FUNC): Define.
1079 (COLLECT_SHARED_FINI_FUNC): Define.
1081 * collect2.c (aix_shared_initname): Declare.
1082 (aix_shared_fininame): Declare.
1083 (symkind): Add SYM_AIXI and SYM_AIXD.
1084 (scanfilter_masks): Add SCAN_AIXI and SCAN_AIXD.
1085 (struct names special): Add GLOBAL__AIXI_ and GLOBAL__AIXD_.
1086 (aixlazy_flag): Parse.
1087 (extract_init_priority): SYM_AIXI and SYM_AIXD have highest priority.
1088 (scan_prog_file, COFF): Handle SYM_AIXI and SYM_AIXD.
1090 2013-11-23 David Edelsohn <dje.gcc@gmail.com>
1092 * config/rs6000/rs6000.c (IN_NAMED_SECTION): New macro.
1093 (rs6000_xcoff_select_section): Place decls with stricter alignment
1094 into named sections.
1095 (rs6000_xcoff_unique_section): Allow unique sections for
1096 uninitialized data with strict alignment.
1098 2013-11-23 Jakub Jelinek <jakub@redhat.com>
1100 PR tree-optimization/59154
1101 * tree-ssa-reassoc.c (maybe_optimize_range_tests): When changing
1102 rhs1 of a cast and new_op is invariant, fold_convert it.
1103 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Only call
1104 simplify_conversion_from_bitmask if rhs1 is a SSA_NAME.
1106 2013-11-23 Uros Bizjak <ubizjak@gmail.com>
1109 * config/i386/i386.c (bdesc_multi_arg) <IX86_BUILTIN_VFRCZSS>:
1110 Declare as MULTI_ARG_1_SF instruction.
1111 <IX86_BUILTIN_VFRCZSD>: Decleare as MULTI_ARG_1_DF instruction.
1112 * config/i386/sse.md (*xop_vmfrcz<mode>2): Rename
1113 from *xop_vmfrcz_<mode>.
1114 * config/i386/xopintrin.h (_mm_frcz_ss): Use __builtin_ia32_movss
1115 to merge scalar result with __A.
1116 (_mm_frcz_sd): Use __builtin_ia32_movsd to merge scalar
1119 2013-11-23 Eric Botcazou <ebotcazou@adacore.com>
1121 * gimplify.h (recalculate_side_effects): Delete.
1122 * gimplify.c (recalculate_side_effects): Make static and add comment.
1124 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
1126 * config/sh/sh.md: Use nonimmediate_operand rather than general_operand
1127 for the destination of a define_peephole2. Likewise register_operand
1128 rather than arith_reg_operand. Remove constraints from
1131 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
1133 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation):
1135 (mn10300_store_multiple_operation_p): Declare.
1136 * config/mn10300/mn10300.c (mn10300_store_multiple_operation):
1138 (mn10300_store_multiple_operation_p): ...this and remove mode
1140 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
1143 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
1145 * config/bfin/bfin-protos.h (push_multiple_operation): Delete.
1146 (pop_multiple_operation): Delete.
1147 (analyze_push_multiple_operation): Declare.
1148 (analyze_pop_multiple_operation): Declare.
1149 * config/bfin/bfin.c (push_multiple_operation): Rename to...
1150 (analyze_push_multiple_operation): ...this and remove mode argument.
1151 (pop_multiple_operation): Rename to...
1152 (analyze_pop_multiple_operation): ...this and remove mode argument.
1153 * config/bfin/predicates.md (push_multiple_operation): Define.
1154 (pop_multiple_operation): Likewise.
1156 2013-11-23 Alan Modra <amodra@gmail.com>
1158 * config/rs6000/vsx.md (fusion peepholes): Disable when !TARGET_VSX.
1160 2013-11-22 Jakub Jelinek <jakub@redhat.com>
1163 * common.opt (static-liblsan): Add.
1164 * config/gnu-user.h (STATIC_LIBLSAN_LIBS, STATIC_LIBUBSAN_LIBS):
1166 * flag-types.h (enum sanitize_code): Add SANITIZE_LEAK. Renumber
1167 SANITIZE_SHIFT, SANITIZE_DIVIDE, SANITIZE_UNREACHABLE, SANITIZE_VLA,
1169 * opts.c (common_handle_option): Handle -fsanitize=leak.
1170 * gcc.c (ADD_STATIC_LIBLSAN_LIBS, LIBLSAN_SPEC): Define.
1171 (LIBUBSAN_SPEC): Don't test LIBUBSAN_EARLY_SPEC.
1172 (LIBUBSAN_EARLY_SPEC): Remove.
1173 (SANITIZER_EARLY_SPEC): Don't do anything for libubsan.
1174 (SANITIZER_SPEC): Add -fsanitize=leak handling.
1175 (sanitize_spec_function): Handle %sanitize(leak).
1176 * doc/invoke.texi (-static-liblsan, -fsanitize=leak): Document.
1178 2013-11-22 Aldy Hernandez <aldyh@redhat.com>
1179 Jakub Jelinek <jakub@redhat.com>
1181 * ipa.c (symtab_remove_unreachable_nodes): Fix up comment typos.
1182 * ipa-prop.c (get_vector_of_formal_parm_types): Renamed to ...
1183 (ipa_get_vector_of_formal_parm_types): ... this. No longer static.
1184 (ipa_modify_formal_parameters): Adjust caller. Remove
1185 synth_parm_prefix argument. Use operator enum instead of bit fields.
1186 Add assert for properly handling vector of references. Handle
1187 creating brand new parameters.
1188 (ipa_modify_call_arguments): Use operator enum instead of bit
1190 (ipa_combine_adjustments): Same. Assert that IPA_PARM_OP_NEW is not
1192 (ipa_modify_expr, get_ssa_base_param, ipa_get_adjustment_candidate):
1194 (ipa_dump_param_adjustments): Rename reduction to new_decl.
1195 Use operator enum instead of bit fields.
1196 * ipa-prop.h (enum ipa_parm_op): New.
1197 (struct ipa_parm_adjustment): New field op. Rename reduction
1198 to new_decl, new_arg_prefix to arg_prefix and remove remove_param
1200 (ipa_modify_formal_parameters): Remove last argument.
1201 (ipa_get_vector_of_formal_parm_types, ipa_modify_expr,
1202 ipa_get_adjustment_candidate): New prototypes.
1203 * tree-sra.c (turn_representatives_into_adjustments): Use operator
1204 enum. Set arg_prefix.
1205 (get_adjustment_for_base): Use operator enum.
1206 (sra_ipa_modify_expr): Rename to ipa_modify_expr and move to
1208 (sra_ipa_modify_assign): Rename sra_ipa_modify_expr to ipa_modify_expr.
1209 (ipa_sra_modify_function_body): Same. No longer static.
1210 (sra_ipa_reset_debug_stmts): Use operator enum.
1211 (modify_function): Do not pass prefix argument.
1213 2013-11-22 Jakub Jelinek <jakub@redhat.com>
1215 * ubsan.c (ubsan_source_location): Don't crash on unknown locations.
1216 (ubsan_pass): Ignore clobber stmts.
1218 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_MISSING_RETURN): New built-in.
1219 * opts.c (common_handle_option): Add -fsanitize=return.
1220 * flag-types.h (enum sanitize_code): Add SANITIZE_RETURN and
1221 or it into SANITIZE_UNDEFINED.
1223 * sanitizer.def (BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT,
1224 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT): New.
1225 * asan.c (instrument_derefs): Handle also VAR_DECL loads/stores.
1226 Don't instrument accesses to VAR_DECLs which are known to fit
1227 into their bounds and the vars are known to have shadow bytes
1228 indicating allowed access.
1229 (asan_dynamic_init_call): New function.
1230 (asan_add_global): If vnode->dynamically_initialized,
1231 set __has_dynamic_init to 1 instead of 0.
1232 (initialize_sanitizer_builtins): Add BT_FN_VOID_CONST_PTR var.
1233 * asan.h (asan_dynamic_init_call): New prototype.
1234 * cgraph.h (varpool_node): Add dynamically_initialized bitfield.
1236 2013-11-22 Martin Jambor <mjambor@suse.cz>
1238 PR rtl-optimization/10474
1239 * ira.c (interesting_dest_for_shprep_1): New function.
1240 (interesting_dest_for_shprep): Use interesting_dest_for_shprep_1,
1241 also check parallels.
1243 2013-11-22 Jeff Law <law@redhat.com>
1245 * tree-ssa-threadedge.c (record_temporary_equivalence): Handle
1246 NULL for RHS, which we used to invalidate equivalences.
1247 (record_temporary_equivalences_from_phis): New bitmap arguments
1248 and a boolean indicating if we have passed a backedge. If we
1249 have passed a backedge, then set the appropriate bit in the
1250 bitmaps for the SRC & DEST of PHIs creating equivalences.
1251 (invalidate_equivalences, dummy_simplify): New functions.
1252 (cond_arg_set_in_b): Remove.
1253 (record_temporary_equivalences_from_stmts_at_dest): New bitmap
1254 arguments and a boolean indicating if we have passed a backedge.
1255 If we have passed a backedge, then perform invalidations as needed.
1256 (thread_around_empty_blocks): If we have seen a backedge, then
1257 use the dummy simplify routine.
1258 (thread_through_normal_block): Likewise. Pass bitmaps and
1259 backedge status to children. Do not pessimize so much when
1260 traversing backedges in the CFG.
1261 (thread_across_edge): Manage the SRC_MAP/DST_MAP bitmaps.
1262 If we have seen a backedge, then use the dummy simplify routine.
1263 Do not pessimize so much when traversing backedges.
1265 2013-11-22 Hans-Peter Nilsson <hp@axis.com>
1267 * config/cris/cris.c (cris_atomic_align_for_mode): New function.
1268 (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
1270 2013-11-22 Yuri Rumyantsev <ysrumyan@gmail.com>
1272 * config/i386/i386.c(processor_alias_table): Enable PTA_AES,
1273 PTA_PCLMUL and PTA_RDRND for Silvermont.
1274 * config/i386/driver-i386.c (host_detect_local_cpu): Set up cpu
1277 * doc/invoke.texi: Mention AES, PCLMUL and RDRND for Silvermont.
1279 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
1281 * hooks.h (hook_uint_mode_0): Add Prototype.
1282 * hooks.c (hook_uint_mode_0): New default function.
1283 * target.def (atomic_align_for_mode): New target hook.
1284 * tree.c (build_atomic_base): Add alignment override parameter.
1285 (build_common_tree_nodes): Use atomic alignment override.
1286 * doc/tm.texi.in (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
1287 * doc/tm.texi (TARGET_ATOMIC_ALIGN_FOR_MODE): Add description.
1289 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
1291 * gimple.h: Remove all includes.
1292 (recalculate_side_effects): Move prototype to gimplify.h.
1293 * Makefile.in (PLUGIN_HEADERS): Add flattened gimple.h includes.
1294 * gengtype.c (open_base_files): Add gimple.h include list.
1295 * gimplify.h (recalculate_side_effects): Relocate prototype here.
1296 * gimple.c: Adjust include list.
1297 (recalculate_side_effects): Move to gimplify.c.
1298 * gimplify.c: Adjust include list.
1299 (recalculate_side_effects): Relocate from gimple.c.
1300 * alias.c: Add required include files removed from gimple.h.
1302 * builtins.c: Likewise.
1303 * calls.c: Likewise.
1304 * cfgexpand.c: Likewise.
1305 * cfgloop.c: Likewise.
1306 * cfgloopmanip.c: Likewise.
1307 * cgraphbuild.c: Likewise.
1308 * cgraph.c: Likewise.
1309 * cgraphclones.c: Likewise.
1310 * cgraphunit.c: Likewise.
1311 * cilk-common.c: Likewise.
1312 * data-streamer.c: Likewise.
1313 * data-streamer-in.c: Likewise.
1314 * data-streamer-out.c: Likewise.
1316 * dwarf2out.c: Likewise.
1317 * emit-rtl.c: Likewise.
1318 * except.c: Likewise.
1320 * fold-const.c: Likewise.
1321 * function.c: Likewise.
1322 * gimple-builder.c: Likewise.
1323 * gimple-expr.c: Likewise.
1324 * gimple-fold.c: Likewise.
1325 * gimple-iterator.c: Likewise.
1326 * gimple-low.c: Likewise.
1327 * gimple-pretty-print.c: Likewise.
1328 * gimple-ssa-isolate-paths.c: Likewise.
1329 * gimple-ssa-strength-reduction.c: Likewise.
1330 * gimple-streamer-in.c: Likewise.
1331 * gimple-streamer-out.c: Likewise.
1332 * gimple-walk.c: Likewise.
1333 * gimplify-me.c: Likewise.
1334 * graphite-blocking.c: Likewise.
1335 * graphite.c: Likewise.
1336 * graphite-clast-to-gimple.c: Likewise.
1337 * graphite-dependences.c: Likewise.
1338 * graphite-interchange.c: Likewise.
1339 * graphite-optimize-isl.c: Likewise.
1340 * graphite-poly.c: Likewise.
1341 * graphite-scop-detection.c: Likewise.
1342 * graphite-sese-to-poly.c: Likewise.
1343 * internal-fn.c: Likewise.
1345 * ipa-cp.c: Likewise.
1346 * ipa-devirt.c: Likewise.
1347 * ipa-inline-analysis.c: Likewise.
1348 * ipa-inline.c: Likewise.
1349 * ipa-profile.c: Likewise.
1350 * ipa-prop.c: Likewise.
1351 * ipa-pure-const.c: Likewise.
1352 * ipa-reference.c: Likewise.
1353 * ipa-split.c: Likewise.
1354 * ipa-utils.c: Likewise.
1355 * langhooks.c: Likewise.
1356 * lto-cgraph.c: Likewise.
1357 * lto-compress.c: Likewise.
1358 * lto-opts.c: Likewise.
1359 * lto-section-in.c: Likewise.
1360 * lto-section-out.c: Likewise.
1361 * lto-streamer.c: Likewise.
1362 * lto-streamer-in.c: Likewise.
1363 * lto-streamer-out.c: Likewise.
1364 * omp-low.c: Likewise.
1365 * opts-global.c: Likewise.
1366 * passes.c: Likewise.
1367 * predict.c: Likewise.
1368 * profile.c: Likewise.
1371 * stor-layout.c: Likewise.
1372 * symtab.c: Likewise.
1373 * targhooks.c: Likewise.
1374 * toplev.c: Likewise.
1375 * tracer.c: Likewise.
1376 * trans-mem.c: Likewise.
1377 * tree-affine.c: Likewise.
1379 * tree-call-cdce.c: Likewise.
1380 * tree-cfg.c: Likewise.
1381 * tree-cfgcleanup.c: Likewise.
1382 * tree-chrec.c: Likewise.
1383 * tree-complex.c: Likewise.
1384 * tree-data-ref.c: Likewise.
1385 * tree-dfa.c: Likewise.
1386 * tree-eh.c: Likewise.
1387 * tree-emutls.c: Likewise.
1388 * tree-if-conv.c: Likewise.
1389 * tree-inline.c: Likewise.
1390 * tree-into-ssa.c: Likewise.
1391 * tree-loop-distribution.c: Likewise.
1392 * tree-nested.c: Likewise.
1393 * tree-nrv.c: Likewise.
1394 * tree-object-size.c: Likewise.
1395 * tree-outof-ssa.c: Likewise.
1396 * tree-parloops.c: Likewise.
1397 * tree-phinodes.c: Likewise.
1398 * tree-predcom.c: Likewise.
1399 * tree-pretty-print.c: Likewise.
1400 * tree-profile.c: Likewise.
1401 * tree-scalar-evolution.c: Likewise.
1402 * tree-sra.c: Likewise.
1403 * tree-ssa-address.c: Likewise.
1404 * tree-ssa-alias.c: Likewise.
1405 * tree-ssa.c: Likewise.
1406 * tree-ssa-ccp.c: Likewise.
1407 * tree-ssa-coalesce.c: Likewise.
1408 * tree-ssa-copy.c: Likewise.
1409 * tree-ssa-copyrename.c: Likewise.
1410 * tree-ssa-dce.c: Likewise.
1411 * tree-ssa-dom.c: Likewise.
1412 * tree-ssa-dse.c: Likewise.
1413 * tree-ssa-forwprop.c: Likewise.
1414 * tree-ssa-ifcombine.c: Likewise.
1415 * tree-ssa-live.c: Likewise.
1416 * tree-ssa-loop.c: Likewise.
1417 * tree-ssa-loop-ch.c: Likewise.
1418 * tree-ssa-loop-im.c: Likewise.
1419 * tree-ssa-loop-ivcanon.c: Likewise.
1420 * tree-ssa-loop-ivopts.c: Likewise.
1421 * tree-ssa-loop-manip.c: Likewise.
1422 * tree-ssa-loop-niter.c: Likewise.
1423 * tree-ssa-loop-prefetch.c: Likewise.
1424 * tree-ssa-loop-unswitch.c: Likewise.
1425 * tree-ssa-math-opts.c: Likewise.
1426 * tree-ssanames.c: Likewise.
1427 * tree-ssa-operands.c: Likewise.
1428 * tree-ssa-phiopt.c: Likewise.
1429 * tree-ssa-phiprop.c: Likewise.
1430 * tree-ssa-pre.c: Likewise.
1431 * tree-ssa-propagate.c: Likewise.
1432 * tree-ssa-reassoc.c: Likewise.
1433 * tree-ssa-sccvn.c: Likewise.
1434 * tree-ssa-sink.c: Likewise.
1435 * tree-ssa-strlen.c: Likewise.
1436 * tree-ssa-structalias.c: Likewise.
1437 * tree-ssa-tail-merge.c: Likewise.
1438 * tree-ssa-ter.c: Likewise.
1439 * tree-ssa-threadedge.c: Likewise.
1440 * tree-ssa-threadupdate.c: Likewise.
1441 * tree-ssa-uncprop.c: Likewise.
1442 * tree-ssa-uninit.c: Likewise.
1443 * tree-stdarg.c: Likewise.
1444 * tree-streamer.c: Likewise.
1445 * tree-streamer-in.c: Likewise.
1446 * tree-streamer-out.c: Likewise.
1447 * tree-switch-conversion.c: Likewise.
1448 * tree-tailcall.c: Likewise.
1449 * tree-vect-data-refs.c: Likewise.
1450 * tree-vect-generic.c: Likewise.
1451 * tree-vect-loop.c: Likewise.
1452 * tree-vect-loop-manip.c: Likewise.
1453 * tree-vectorizer.c: Likewise.
1454 * tree-vect-patterns.c: Likewise.
1455 * tree-vect-slp.c: Likewise.
1456 * tree-vect-stmts.c: Likewise.
1457 * tree-vrp.c: Likewise.
1459 * ubsan.c: Likewise.
1460 * value-prof.c: Likewise.
1461 * varpool.c: Likewise.
1462 * var-tracking.c: Likewise.
1463 * vtable-verify.c: Likewise.
1464 * config/darwin.c: Likewise.
1465 * config/aarch64/aarch64-builtins.c: Likewise.
1466 * config/aarch64/aarch64.c: Likewise.
1467 * config/alpha/alpha.c: Likewise.
1468 * config/i386/i386.c: Likewise.
1469 * config/i386/winnt.c: Likewise.
1470 * config/ia64/ia64.c: Likewise.
1471 * config/m32c/m32c.c: Likewise.
1472 * config/mep/mep.c: Likewise.
1473 * config/mips/mips.c: Likewise.
1474 * config/rs6000/rs6000.c: Likewise.
1475 * config/s390/s390.c: Likewise.
1476 * config/sh/sh.c: Likewise.
1477 * config/sparc/sparc.c: Likewise.
1478 * config/spu/spu.c: Likewise.
1479 * config/stormy16/stormy16.c: Likewise.
1480 * config/tilegx/tilegx.c: Likewise.
1481 * config/tilepro/tilepro.c: Likewise.
1482 * config/xtensa/xtensa.c: Likewise.
1484 2013-11-22 Richard Earnshaw <rearnsha@arm.com>
1487 * arm.md (negdi_extendsidi): Fix invalid split.
1489 2013-11-22 Alex Velenko <Alex.Velenko@arm.com>
1491 * config/aarch64/arm_neon.h (vmov_n_f32): Implemented in C.
1492 (vmov_n_f64): Likewise.
1493 (vmov_n_p8): Likewise.
1494 (vmov_n_p16): Likewise.
1495 (vmov_n_s8): Likewise.
1496 (vmov_n_s16): Likewise.
1497 (vmov_n_s32): Likewise.
1498 (vmov_n_s64): Likewise.
1499 (vmov_n_u8): Likewise.
1500 (vmov_n_u16): Likewise.
1501 (vmov_n_u32): Likewise.
1502 (vmov_n_u64): Likewise.
1503 (vmovq_n_f32): Likewise.
1504 (vmovq_n_f64): Likewise.
1505 (vmovq_n_p8): Likewise.
1506 (vmovq_n_p16): Likewise.
1507 (vmovq_n_s8): Likewise.
1508 (vmovq_n_s16): Likewise.
1509 (vmovq_n_s32): Likewise.
1510 (vmovq_n_s64): Likewise.
1511 (vmovq_n_u8): Likewise.
1512 (vmovq_n_u16): Likewise.
1513 (vmovq_n_u32): Likewise.
1514 (vmovq_n_u64): Likewise.
1516 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
1518 * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
1519 vec_pack_trunc_v2df, vec_pack_trunc_df): Swap for big-endian.
1520 (reduc_<sur>plus_<mode>): Factorize V2DI into this.
1521 (reduc_<sur>plus_<mode>): Change this to reduc_splus_<mode> for floats
1522 and also change to float UNSPEC.
1523 (reduc_maxmin_uns>_<mode>): Remove V2DI.
1524 * config/aarch64/arm_neon.h (vaddv<q>_<suf><8,16,32,64>,
1525 vmaxv<q>_<suf><8,16,32,64>, vminv<q>_<suf><8,16,32,64>): Fix up scalar
1526 result access for big-endian.
1527 (__LANE0): New macro used to fix up lane access of 'across-lanes'
1528 intrinsics for big-endian.
1529 * config/aarch64/iterators.md (VDQV): Add V2DI.
1531 (vp): New mode attribute.
1533 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
1535 * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
1536 vec_pack_trunc_v2df, vec_pack_trunc_df): Swap source ops for
1539 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
1541 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Adjust
1542 for big-endian element order.
1543 (aarch64_simd_vec_setv2di): Likewise.
1544 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>,
1545 *aarch64_get_lane_zero_extendsi<mode>, aarch64_get_lane): Likewise.
1546 (vec_extract): Expand using aarch64_get_lane.
1547 * config/aarch64/aarch64.h (ENDIAN_LANE_N): New.
1549 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
1551 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Fix loads
1552 and stores to be ABI compliant.
1554 2013-11-22 David Malcolm <dmalcolm@redhat.com>
1556 * input.h (input_line): Remove.
1557 (input_filename): Likewise.
1558 (in_system_header): Likewise.
1559 * tree.h (EXPR_LOC_OR_HERE): Remove.
1560 * config/bfin/bfin.c (output_file_start): Remove use of
1561 input_filename macro.
1562 * builtins.c (c_strlen): Remove use of EXPR_LOC_OR_HERE macro.
1563 * gimplify.c (internal_get_tmp_var): Likewise.
1564 EXPR_LOC_OR_HERE macro.
1565 (shortcut_cond_expr): Likewise.
1566 * tree-diagnostic.c (diagnostic_report_current_function): Remove
1567 use of input_filename macro.
1568 * tree.c (get_file_function_name): Likewise.
1570 2013-11-22 Kenneth Zadeck <zadeck@naturalbridge.com>
1572 * store-layout.c (place-field): Fix hwi test and accessor mismatch.
1574 2013-11-22 Jakub Jelinek <jakub@redhat.com>
1576 * expr.c (store_constructor): Allow CONSTRUCTOR with VECTOR_TYPE
1577 (same sized) elements even if the type of the CONSTRUCTOR has
1578 vector mode and target is a REG.
1580 2013-11-22 Richard Biener <rguenther@suse.de>
1583 2013-11-21 Richard Biener <rguenther@suse.de>
1585 * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
1586 nb_iterations_upper_bound by one.
1588 2013-11-22 H.J. Lu <hongjiu.lu@intel.com>
1590 * config/i386/i386.c (processor_alias_table): Enable PTA_POPCNT
1593 * doc/invoke.texi: Mention POPCNT for corei7, corei7-avx,
1594 core-avx-i, core-avx2 and slm.
1596 2013-11-22 Eric Botcazou <ebotcazou@adacore.com>
1598 * print-rtl.c (print_rtx) <case MEM>: Output a space if no MEM_EXPR.
1600 2013-11-22 Richard Sandiford <rdsandiford@googlemail.com>
1602 * config/m32c/cond.md (stzx_16): Use register_operand for operand 0.
1603 (stzx_24_<mode>): Likewise mra_operand.
1605 2013-11-22 Jeff Law <law@redhat.com>
1607 * tree-ssa-threadupdate.c: Include tree-cfg.h and tree-pass.h
1608 (thread_block_1): Do not cancel jump threads which go from
1609 inside a loop, through the header, then back inside the loop.
1610 (bb_ends_with_multiway_branch): New function.
1611 (thread_through_all_blocks): Handle threading cases which start
1612 in a loop through the loop header to a point in the loop.
1614 * tree-ssa-threadedge.c (thread_across_edge): Mark the start of the
1615 jump thread path properly.
1617 2013-11-22 Trevor Saunders <tsaunders@mozilla.com>
1619 * vec.h (auto_vec): New class.
1620 * cfganal.c, cfgloop.c, cgraphunit.c, config/i386/i386.c, dwarf2out.c,
1621 function.c, genautomata.c, gimple.c, haifa-sched.c, ipa-inline.c,
1622 ira-build.c, loop-unroll.c, omp-low.c, ree.c, trans-mem.c,
1623 tree-call-cdce.c, tree-eh.c, tree-if-conv.c, tree-into-ssa.c,
1624 tree-loop-distribution.c, tree-predcom.c, tree-sra.c,
1625 tree-sssa-forwprop.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
1626 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
1627 tree-vect-loop.c, tree-vect-stmts.c: Use auto_vec and stack_vec as
1628 appropriate instead of vec for local variables.
1630 2013-11-21 Teresa Johnson <tejohnson@google.com>
1633 * cfgcleanup.c (outgoing_edges_match): Walk up past note instructions
1634 not understood by old_insns_match_p.
1636 2013-11-21 Bill Schmidt <wschmidt@vnet.ibm.com>
1638 * config/rs6000/vector.md (vec_pack_trunc_v2df): Revert previous
1639 little endian change.
1640 (vec_pack_sfix_trunc_v2df): Likewise.
1641 (vec_pack_ufix_trunc_v2df): Likewise.
1642 * config/rs6000/rs6000.c (rs6000_expand_interleave): Correct
1643 double checking of endianness.
1645 2013-11-22 Jakub Jelinek <jakub@redhat.com>
1647 * tree-vect-generic.c (optimize_vector_constructor): New function.
1648 (expand_vector_operations_1): Call it.
1650 2013-11-21 Uros Bizjak <ubizjak@gmail.com>
1652 * config/i386/i386.c (ix86_expand_special_args_builtin): Use
1653 ix86_zero_extend_to_Pmode where appropriate.
1654 (ix86_expand_builtin): Ditto.
1656 2013-11-21 Cary Coutant <ccoutant@google.com>
1658 * dwarf2out.c (want_pubnames): Don't do pubnames for -g1.
1659 (add_linkage_name): Don't add linkage name for -g1.
1660 (decls_for_scope): Process subblocks for -g1.
1661 (dwarf2out_source_line): Output line tables for -g1.
1662 (dwarf2out_finish): Likewise.
1663 * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
1664 unused scopes for -g1.
1665 * opts.c (common_handle_option): Handle -g same as -g2.
1666 * doc/invoke.texi: Update description for -g1.
1668 2013-11-21 Peter Bergner <bergner@vnet.ibm.com>
1670 * doc/extend.texi: Document htm builtins.
1672 2013-11-21 Jeff Law <law@redhat.com>
1674 PR tree-optimization/59221
1675 * tree-ssa-threadedge.c (thread_across_edge): Properly manage
1676 temporary equivalences when threading through joiner blocks.
1678 2013-11-21 Joseph Myers <joseph@codesourcery.com>
1680 PR rtl-optimization/55950
1681 * real.c (real_sqrt): Remove function.
1682 * real.h (real_sqrt): Remove prototype.
1683 * simplify-rtx.c (simplify_const_unary_operation): Do not fold
1684 SQRT using real_sqrt.
1686 2013-11-21 Richard Biener <rguenther@suse.de>
1688 PR tree-optimization/59058
1689 * tree-scalar-evolution.h (number_of_exit_cond_executions): Remove.
1690 * tree-scalar-evolution.c (number_of_exit_cond_executions): Likewise.
1691 * tree-vectorizer.h (LOOP_PEELING_FOR_ALIGNMENT): Rename to ...
1692 (LOOP_VINFO_PEELING_FOR_ALIGNMENT): ... this.
1693 (NITERS_KNOWN_P): Fold into ...
1694 (LOOP_VINFO_NITERS_KNOWN_P): ... this.
1695 (LOOP_VINFO_PEELING_FOR_NITER): Add.
1696 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
1697 Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
1698 (vect_do_peeling_for_alignment): Re-use precomputed niter
1699 instead of re-emitting it.
1700 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1701 Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
1702 * tree-vect-loop.c (vect_get_loop_niters): Use
1703 number_of_latch_executions.
1704 (new_loop_vec_info): Initialize LOOP_VINFO_PEELING_FOR_NITER.
1705 (vect_analyze_loop_form): Simplify.
1706 (vect_analyze_loop_operations): Move epilogue peeling code ...
1707 (vect_analyze_loop_2): ... here and adjust it to compute
1708 LOOP_VINFO_PEELING_FOR_NITER.
1709 (vect_estimate_min_profitable_iters): Use
1710 LOOP_VINFO_PEELING_FOR_ALIGNMENT.
1711 (vect_build_loop_niters): Emit on the preheader.
1712 (vect_generate_tmps_on_preheader): Likewise.
1713 (vect_transform_loop): Use LOOP_VINFO_PEELING_FOR_NITER instead
1714 of recomputing it. Adjust.
1716 2013-11-21 Richard Biener <rguenther@suse.de>
1718 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
1719 LOC_LINE): Remove wrappers and fix all users.
1720 (struct _loop_vec_info): Remove loop_line_number member.
1721 (LOOP_VINFO_LOC): Remove.
1722 * tree-parloops.c, tree-vect-loop-manip.c, tree-vect-slp.c,
1723 tree-vectorizer.c: Fix users of LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE
1726 2013-11-21 Richard Biener <rguenther@suse.de>
1728 * tree-ssa-forwprop.c (simplify_vce): New function.
1729 (ssa_forward_propagate_and_combine): Call it.
1731 2013-11-21 Richard Biener <rguenther@suse.de>
1733 * tree-vect-loop-manip.c (vect_build_loop_niters,
1734 vect_generate_tmps_on_preheader): Move ...
1735 * tree-vect-loop.c (vect_build_loop_niters,
1736 vect_generate_tmps_on_preheader): ... here and simplify.
1737 (vect_transform_loop): Call them here and pass down results
1739 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound):
1740 Get niter variables from caller.
1741 (vect_do_peeling_for_alignment): Likewise.
1742 * tree-vectorizer.h (vect_generate_tmps_on_preheader): Remove.
1743 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
1746 2013-11-21 Richard Biener <rguenther@suse.de>
1748 * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
1749 nb_iterations_upper_bound by one.
1751 2013-11-21 Richard Biener <rguenther@suse.de>
1753 PR tree-optimization/59058
1754 * tree-loop-distribution.c (struct partition_s): Add plus_one member.
1755 (build_size_arg_loc): Apply niter adjustment here.
1756 (generate_memset_builtin): Adjust.
1757 (generate_memcpy_builtin): Likewise.
1758 (classify_partition): Do not use number_of_exit_cond_executions
1759 but record whether niter needs to be adjusted.
1761 2013-11-21 Eric Botcazou <ebotcazou@adacore.com>
1763 * tree-ssa-tail-merge.c (stmt_local_def): Return false if the statement
1766 2013-11-21 Oleg Endo <olegendo@gcc.gnu.org>
1769 * config/sh/sh_optimize_sett_clrt.cc: New SH specific RTL pass.
1770 * config/sh/sh.c (register_sh_passes): Add sh_optimize_sett_clrt pass.
1771 * config/sh/sh/t-sh (sh_optimize_sett_clrt pass.o): New entry.
1772 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add
1773 sh_optimize_sett_clrt pass.o to extra_objs.
1775 2013-11-20 David Malcolm <dmalcolm@redhat.com>
1777 * cfg.c (dump_edge_info): Remove redundant comment.
1778 * cfgcleanup.c (outgoing_edges_match): Reword reference to
1779 EXIT_BLOCK_PTR in comment.
1780 (try_optimize_cfg): Likewise.
1781 * cfgrtl.c (last_bb_in_partition): Likewise.
1782 * cgraph.c (cgraph_node_cannot_return): Likewise.
1783 * function.c (thread_prologue_and_epilogue_insns): Likewise.
1784 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
1785 * ipa-split.c (consider_split): Likewise.
1786 * profile.c (find_spanning_tree): Likewise.
1787 * sched-int.h (common_sched_info_def.add_block): Likewise.
1788 * dominance.c (calc_dfs_tree_nonrec): Reword references in
1789 comments to now removed ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR macros.
1790 * tree-cfgcleanup.c (cleanup_control_flow_bb): Reword references
1791 in comments to now removed ENTRY_BLOCK_PTR macro.
1792 (tree_forwarder_block_p): Reword reference in comment to
1794 * tree-inline.c (copy_cfg_body): Reword references in comments to
1795 now removed ENTRY_BLOCK_PTR macro.
1796 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
1797 * tree-scalar-evolution.h ( block_before_loop): Likewise. Add
1798 a comma to the comment to clarify the meaning.
1800 2013-11-20 Andrew MacLeod <amacleod@redhat.com>
1802 * gimplify.h (gimplify_hasher:typed_free_remove, struct gimplify_ctx):
1804 (free_gimplify_stack): Add prototype.
1805 * gimplify.c (gimplify_hasher:typed_free_remove): Relocate here.
1806 (struct gimplify_ctx): Relocate here.
1807 (gimplify_ctxp): Make static.
1808 (ctx_pool, ctx_alloc, ctx_free, free_gimplify_stack): New. Manage a
1809 list of struct gimplify_ctx.
1810 (push_gimplify_context): Add default parameters and allocate a struct
1812 (pop_gimplify_context): Free a struct back to the pool.
1813 (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
1814 gimplify_omp_workshare, gimplify_transaction, gimplify_body): Don't
1815 use a local 'struct gimplify_ctx'.
1816 * cgraphunit.c (expand_all_functions): call free_gimplify_stack.
1817 * gimplify-me.c (force_gimple_operand_1, gimple_regimplify_operands):
1819 * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
1820 lower_omp_ordered, lower_omp_critical, lower_omp_for,
1821 create_task_copyfn, lower_omp_taskreg, lower_omp_target,
1822 lower_omp_teams, execute_lower_omp): Likewise.
1823 * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
1824 * tree-inline.c (optimize_inline_calls): Likewise.
1826 2013-11-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1828 * config/rs6000/vsx.md (vsx_set_<mode>): Adjust for little endian.
1829 (vsx_extract_<mode>): Likewise.
1830 (*vsx_extract_<mode>_one_le): New LE variant on
1831 *vsx_extract_<mode>_zero.
1832 (vsx_extract_v4sf): Adjust for little endian.
1834 2013-11-20 Vladimir Makarov <vmakarov@redhat.com>
1836 PR rtl-optimization/59133
1837 * lra.c (expand_reg_data): Add new argument. Set up ALL_REGS for
1839 (lra_create_new_reg_with_unique_value): Pass new argument value.
1840 (lra_emit_add, lra_emit_move): Ditto.
1841 * lra-constraints.c (in_class_p): Add check for move for a new insn.
1842 (change_class): Rename to lra_change_class. Move to lra-int.h.
1843 (get_reload_reg, narrow_reload_pseudo_class): Adjust calls of
1845 (process_addr_reg, process_addr): Ditto.
1846 (curr_insn_transform): Ditto. Add check on old pseudo for
1848 * lra-int.h (lra_get_regno_hard_regno): Move below.
1849 (lra_change_class): Renamed change_class from lra.c.
1851 2013-11-20 David Malcolm <dmalcolm@redhat.com>
1853 * gdbhooks.py (VecPrinter.children): Don't attempt to iterate
1854 the children of a NULL pointer.
1856 2013-11-20 Robert Suchanek <Robert.Suchanek@imgtec.com>
1858 * lra.c (lra): Set lra_in_progress before check_rtl call.
1859 * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
1860 adding clobber regs when LRA is running.
1862 2013-11-20 Maciej W. Rozycki <macro@codesourcery.com>
1864 * config/mips/mips.h (ISA_HAS_FP4): Remove TARGET_FLOAT64
1865 restriction for ISA_MIPS32R2.
1866 (ISA_HAS_LXC1_SXC1): New macro.
1867 (ISA_HAS_FP_MADD4_MSUB4): Remove ISA_MIPS32R2 special-casing.
1868 (ISA_HAS_NMADD4_NMSUB4): Likewise.
1869 (ISA_HAS_FP_RECIP_RSQRT): Likewise.
1870 (ISA_HAS_PREFETCHX): Redefine in terms of ISA_HAS_FP4.
1871 * config/mips/mips.md (*<ANYF:loadx>_<P:mode>): Use
1872 ISA_HAS_LXC1_SXC1 rather than ISA_HAS_FP4.
1873 (*<ANYF:storex>_<P:mode>): Likewise.
1875 2013-11-20 Maciej W. Rozycki <macro@codesourcery.com>
1877 * config/mips/mips.h (ISA_HAS_FP_RECIP_RSQRT): New macro.
1878 * config/mips/mips.c (mips_rtx_costs) <DIV>: Check for
1879 ISA_HAS_FP_RECIP_RSQRT rather than ISA_HAS_FP4.
1880 * config/mips/mips.md (recip_condition): Remove mode attribute.
1881 (div<mode>3): Use ISA_HAS_FP_RECIP_RSQRT rather than
1883 (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Likewise.
1885 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
1888 * config/sparc/sparc.c (sparc_fold_builtin) <case CODE_FOR_pdist_vis>:
1889 Make sure neg2_ovf is set before being used.
1891 2013-11-20 Basile Starynkevitch <basile@starynkevitch.net>
1893 * plugin.def: Add comment about register_callback and
1894 invoke_plugin_callbacks_full.
1896 * plugin.c (register_callback, invoke_plugin_callbacks_full):
1897 Handle PLUGIN_INCLUDE_FILE event.
1899 2013-11-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1901 * config/rs6000/rs6000.c (rs6000_cannot_change_mode_class): Do not
1902 allow subregs of TDmode in FPRs of smaller size in little-endian.
1903 (rs6000_split_multireg_move): When splitting an access to TDmode
1904 in FPRs, do not use simplify_gen_subreg.
1906 2013-11-20 Joseph Myers <joseph@codesourcery.com>
1909 * real.c: Remove comment about decimal string conversion and
1911 (real_from_string): Use MPFR to convert nonzero decimal constant
1914 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
1916 * config/arm/arm.c (arm_dwarf_register_span): Take into account the
1917 endianness of the D registers for the legacy encodings.
1919 2013-11-20 Richard Earnshaw <rearnsha@arm.com>
1921 PR rtl-optimization/54300
1922 * regcprop.c (copyprop_hardreg_forward_1): Ensure any unused
1923 outputs in a single-set are killed from the value chains.
1925 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
1927 * cgraph.h (varpool_node): Add need_bounds_init field.
1928 * lto-cgraph.c (lto_output_varpool_node): Output
1929 need_bounds_init value.
1930 (input_varpool_node): Read need_bounds_init value.
1931 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
1933 2013-11-20 Jan Hubicka <jh@suse.cz>
1935 * opts.c (finish_options): Imply -ffat-lto-objects with
1936 -fno-use-linker-plugin.
1937 * common.opt (fuse-linker-plugin): Add var.
1939 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
1941 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
1942 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
1943 (gen_type_die_with_usage): Skip pointer bounds.
1944 (dwarf2out_global_decl): Likewise.
1946 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
1948 * config/aarch64/aarch64.md: Remove "mode" and "mode2" attributes
1951 2013-11-20 Yuri Rumyantsev <ysrumyan@gmail.com>
1954 * config/i386/i386.c (ix86_option_override_internal): Add missed
1955 argument prefix for 'ix86_fpmath'.
1956 * config/i386/ssemath.h: Add missed definition of
1957 TARGET_FPMATH_DEFAULT_P macros.
1959 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
1960 Mike Stump <mikestump@comcast.net>
1961 Richard Sandiford <rdsandiford@googlemail.com>
1963 * alias.c (ao_ref_from_mem): Use tree_to_shwi and tree_to_uhwi
1964 instead of TREE_INT_CST_LOW, in cases where there is a protecting
1965 tree_fits_shwi_p or tree_fits_uhwi_p.
1966 * builtins.c (fold_builtin_powi): Likewise.
1967 * config/epiphany/epiphany.c (epiphany_special_round_type_align):
1969 * dbxout.c (dbxout_symbol): Likewise.
1970 * expr.c (expand_expr_real_1): Likewise.
1971 * fold-const.c (fold_single_bit_test, fold_plusminus_mult_expr)
1972 (fold_binary_loc): Likewise.
1973 * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
1974 * gimple-ssa-strength-reduction.c (stmt_cost): Likewise.
1975 * omp-low.c (lower_omp_for_lastprivate): Likewise.
1976 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
1977 * stor-layout.c (compute_record_mode): Likewise.
1978 * tree-cfg.c (verify_expr): Likewise.
1979 * tree-dfa.c (get_ref_base_and_extent): Likewise.
1980 * tree-pretty-print.c (dump_array_domain): Likewise.
1981 * tree-sra.c (build_user_friendly_ref_for_offset): Likewise.
1982 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
1983 * tree-ssa-loop-ivopts.c (get_loop_invariant_expr_id): Likewise.
1984 * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
1985 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
1986 * tree-ssa-reassoc.c (acceptable_pow_call): Likewise.
1987 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
1988 (ao_ref_init_from_vn_reference, vn_reference_fold_indirect): Likewise.
1989 (vn_reference_lookup_3, simplify_binary_expression): Likewise.
1990 * tree-ssa-structalias.c (bitpos_of_field): Likewise.
1991 (get_constraint_for_1, push_fields_onto_fieldstack): Likewise.
1992 (create_variable_info_for_1): Likewise.
1993 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
1994 (vect_verify_datarefs_alignment): Likewise.
1995 (vect_analyze_data_ref_accesses): Likewise.
1996 (vect_prune_runtime_alias_test_list): Likewise.
1997 * tree-vectorizer.h (NITERS_KNOWN_P): Likewise.
1999 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
2001 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Avoid signed
2002 overflow. Use tree_to_shwi.
2004 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
2006 * fold-const.c (fold_binary_loc): Use unsigned rather than signed
2007 HOST_WIDE_INTs when folding (x >> c) << c.
2009 2013-11-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2010 Dominik Vogt <vogt@linux.vnet.ibm.com>
2012 * config/s390/s390.c (s390_canonicalize_comparison): Don't fold
2013 int comparisons with an out of range condition code.
2014 (s390_optimize_nonescaping_tx): Skip empty BBs.
2015 Generate the new tbegin RTX when removing the FPR clobbers (with
2017 (s390_expand_tbegin): Fix the retry loop counter. Copy CC to the
2018 result before doing the retry calculations.
2019 (s390_init_builtins): Make tbegin "returns_twice" and tabort
2021 * config/s390/s390.md (UNSPECV_TBEGIN_TDB): New constant used for
2022 the TDB setting part of an tbegin.
2023 ("tbegin_1", "tbegin_nofloat_1"): Add a set for the TDB.
2024 ("tx_assist"): Set unused argument to an immediate zero instead of
2025 loading zero into a GPR and pass it as argument.
2026 * config/s390/htmxlintrin.h (__TM_simple_begin, __TM_begin):
2027 Remove inline and related attributes.
2028 (__TM_nesting_depth, __TM_is_user_abort, __TM_is_named_user_abort)
2029 (__TM_is_illegal, __TM_is_footprint_exceeded)
2030 (__TM_is_nested_too_deep, __TM_is_conflict): Fix format value check.
2032 2013-11-20 Richard Biener <rguenther@suse.de>
2035 * lto-opts.c (lto_write_options): Write defaults only if
2036 they were not explicitely specified. Also write
2037 -ffp-contract default.
2038 * lto-wrapper.c (merge_and_complain): Merge -ffp-contract
2040 (run_gcc): Pass through -ffp-contract.
2042 2013-11-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2044 * config/mips/mips.c (r10k_simplify_address): Eliminate macro usage.
2046 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
2048 * gcc/config/aarch64/aarch64-builtins.c
2049 (aarch64_simd_itype): Remove.
2050 (aarch64_simd_builtin_datum): Remove itype, add qualifiers pointer.
2051 (VAR1): Use qualifiers.
2052 (aarch64_build_scalar_type): New.
2053 (aarch64_build_vector_type): Likewise.
2054 (aarch64_build_type): Likewise.
2055 (aarch64_init_simd_builtins): Refactor, remove special cases,
2056 consolidate main loop.
2057 (aarch64_simd_expand_args): Likewise.
2059 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
2062 * doc/invoke.texi: Adding documentation about -Wfloat-conversion.
2064 2013-11-19 Miro Kropacek <miro.kropacek@gmail.com>
2066 * config/m68k/m68k.c (m68k_option_overrides): Fix typo.
2068 2013-11-19 David Malcolm <dmalcolm@redhat.com>
2070 * gdbhooks.py (VecPrinter): New class, for prettyprinting pointers
2071 to "vec<>" instances.
2072 (build_pretty_printer): Register the vec<>* prettyprinter.
2074 2013-11-19 David Malcolm <dmalcolm@redhat.com>
2076 * gdbhooks.py (GdbSubprinter.__init__): Drop str_type_ field.
2077 (GdbSubprinter.handles_type): New.
2078 (GdbSubprinterTypeList): New subclass of GdbSubprinter.
2079 (GdbSubprinterRegex): New subclass of GdbSubprinter.
2080 (GdbPrettyPrinters.add_printer): Remove in favor of...
2081 (GdbPrettyPrinters.add_printer_for_types): ...this new method and...
2082 (GdbPrettyPrinters.add_printer_for_regex): ...this other new method.
2083 (GdbPrettyPrinters.__call__): Update search for subprinter
2084 to use handles_type method.
2085 (build_pretty_printer): Update registration of subprinters to
2086 use the new API above, supporting multiple spelling of each type,
2087 and allowing for future regex-based subprinters.
2089 2013-11-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2091 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Adjust
2092 V16QI vector splat case for little endian.
2094 2013-11-19 Jeff Law <law@redhat.com>
2096 * tree-ssa-threadedge.c (thread_across_edge): After threading
2097 through a joiner, allow threading a normal block requiring duplication.
2099 * tree-ssa-threadupdate.c (thread_block_1): Improve code to detect
2100 jump threading requests that would muck up the loop structures.
2102 * tree-ssa-threadupdate.c: Fix trailing whitespace.
2103 * tree-ssa-threadupdate.h: Likewise.
2105 2013-11-19 Mike Stump <mikestump@comcast.net>
2107 * gdbinit.in: Add pmz to print out mpz values.
2109 2013-11-20 Jan Hubicka <jh@suse.cz>
2111 * common.opt (ffat-lto-objects): Disable by default.
2112 * doc/invoke.texi (fat-lto-objects): Update documentation.
2113 * opts.c: Enable fat-lto-objects on lto plugin disable setups.
2115 2013-11-19 Martin Jambor <mjambor@suse.cz>
2117 PR rtl-optimization/59099
2118 * ira.c (find_moveable_pseudos): Put back various analyses from ira()
2120 (ira): Move init_reg_equiv and call to
2121 split_live_ranges_for_shrink_wrap up, remove analyses around call
2122 to find_moveable_pseudos.
2124 2013-11-20 Alan Modra <amodra@gmail.com>
2126 * config/rs6000/sysv4.h (CC1_ENDIAN_LITTLE_SPEC): Define as empty.
2127 * config/rs6000/rs6000.c (rs6000_option_override_internal): Default
2128 to strict alignment on older processors when little-endian.
2129 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to power8
2132 2013-11-19 Teresa Johnson <tejohnson@google.com>
2134 * common/config/i386/i386-common.c: Enable
2135 -freorder-blocks-and-partition at -O2 and up for x86.
2136 * doc/invoke.texi: Update -freorder-blocks-and-partition default.
2137 * opts.c (finish_options): Only warn if
2138 -freorder-blocks-and-partition was set on command line.
2140 2013-11-19 Sriraman Tallam <tmsriram@google.com>
2142 * final.c (final_scan_insn): Emit a label for the split
2143 cold function part. Label name is formed by suffixing
2144 the original function name with "cold".
2146 2013-11-19 David Malcolm <dmalcolm@redhat.com>
2148 * basic-block.h (ENTRY_BLOCK_PTR_FOR_FUNCTION): Rename macro to...
2149 (EXIT_BLOCK_PTR_FOR_FUNCTION): ...this.
2150 (ENTRY_BLOCK_PTR_FOR_FN): Renamed macro to...
2151 (EXIT_BLOCK_PTR_FOR_FN): ...this.
2152 (ENTRY_BLOCK_PTR): Eliminate macro as work towards making uses of
2154 (EXIT_BLOCK_PTR): Likewise.
2155 (FOR_ALL_BB): Rework for now to eliminate use of "ENTRY_BLOCK_PTR".
2156 (FOR_ALL_BB_FN): Update for renaming of
2157 "ENTRY_BLOCK_PTR_FOR_FUNCTION" to "ENTRY_BLOCK_PTR_FOR_FN".
2159 * cfg.c (init_flow): Likewise.
2160 (check_bb_profile): Likewise.
2161 * cfganal.c (pre_and_rev_post_order_compute_fn): Likewise.
2162 * cfgcleanup.c (walk_to_nondebug_insn): Likewise.
2163 * cfghooks.c (account_profile_record): Likewise.
2164 * cfgloop.c (init_loops_structure): Likewise.
2165 * cgraphbuild.c (record_eh_tables): Likewise.
2166 (compute_call_stmt_bb_frequency): Likewise.
2167 * ipa-inline-analysis.c (compute_bb_predicates): Likewise.
2168 * lto-streamer-in.c (input_cfg): Likewise.
2169 * predict.c (maybe_hot_frequency_p): Likewise.
2170 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
2171 * tree-inline.c (initialize_cfun): Likewise.
2172 (copy_cfg_body): Likewise.
2173 (copy_body): Likewise.
2174 (tree_function_versioning): Likewise.
2176 * bb-reorder.c (add_labels_and_missing_jumps): Remove uses of macros:
2177 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2178 (duplicate_computed_gotos): Remove usage of EXIT_BLOCK_PTR macro.
2179 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove uses of
2180 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2181 (connect_traces): Likewise.
2182 (rest_of_handle_reorder_blocks): Remove usage of EXIT_BLOCK_PTR macro.
2183 (bb_to_key): Remove usage of ENTRY_BLOCK_PTR macro.
2184 (fix_crossing_conditional_branches): Remove usage of EXIT_BLOCK_PTR
2186 (find_traces_1_round): Remove uses of macros: ENTRY_BLOCK_PTR,
2188 (fix_up_fall_thru_edges): Remove usage of EXIT_BLOCK_PTR macro.
2189 (find_traces): Remove usage of ENTRY_BLOCK_PTR macro.
2190 (fix_up_crossing_landing_pad): Remove usage of EXIT_BLOCK_PTR macro.
2191 (rotate_loop): Likewise.
2192 * bt-load.c (migrate_btr_def): Remove usage of ENTRY_BLOCK_PTR macro.
2193 * cfg.c (clear_aux_for_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
2195 (alloc_aux_for_edges): Likewise.
2196 (clear_bb_flags): Remove usage of ENTRY_BLOCK_PTR macro.
2197 (cached_make_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
2199 (compact_blocks): Likewise.
2200 (clear_edges): Likewise.
2201 * cfganal.c (single_pred_before_succ_order): Remove usage of
2202 ENTRY_BLOCK_PTR macro.
2203 (bitmap_union_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
2204 (bitmap_union_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
2205 (bitmap_intersection_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
2206 (bitmap_intersection_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
2207 (inverted_post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
2209 (compute_dominance_frontiers_1): Remove usage of ENTRY_BLOCK_PTR macro.
2210 (post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
2212 (connect_infinite_loops_to_exit): Remove usage of EXIT_BLOCK_PTR macro.
2213 (remove_fake_edges): Remove usage of ENTRY_BLOCK_PTR macro.
2214 (add_noreturn_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
2215 (find_pdom): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2216 (remove_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
2217 (verify_edge_list): Remove uses of macros: ENTRY_BLOCK_PTR,
2219 (print_edge_list): Likewise.
2220 (create_edge_list): Likewise.
2221 (find_unreachable_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
2222 (mark_dfs_back_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
2224 * cfgbuild.c (find_bb_boundaries): Remove usage of ENTRY_BLOCK_PTR
2226 (find_many_sub_basic_blocks): Remove usage of EXIT_BLOCK_PTR macro.
2227 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2228 * cfgcleanup.c (delete_unreachable_blocks): Likewise.
2229 (try_optimize_cfg): Likewise.
2230 (try_head_merge_bb): Remove usage of EXIT_BLOCK_PTR macro.
2231 (try_crossjump_to_edge): Remove usage of ENTRY_BLOCK_PTR macro.
2232 (try_crossjump_bb): Remove usage of EXIT_BLOCK_PTR macro.
2233 (merge_blocks_move): Remove usage of ENTRY_BLOCK_PTR macro.
2234 (outgoing_edges_match): Remove usage of EXIT_BLOCK_PTR macro.
2235 (try_forward_edges): Likewise.
2236 (try_simplify_condjump): Likewise.
2237 * cfgexpand.c (gimple_expand_cfg): Remove uses of macros:
2238 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2239 (construct_exit_block): Remove usage of EXIT_BLOCK_PTR macro.
2240 (construct_init_block): Remove uses of macros: ENTRY_BLOCK_PTR,
2242 (expand_gimple_basic_block): Remove usage of EXIT_BLOCK_PTR macro.
2243 (expand_gimple_tailcall): Likewise.
2244 * cfghooks.c (can_duplicate_block_p): Remove uses of macros:
2245 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2246 (tidy_fallthru_edges): Likewise.
2247 (verify_flow_info): Likewise.
2248 * cfgloop.c (flow_bb_inside_loop_p): Likewise.
2249 (num_loop_branches): Remove usage of EXIT_BLOCK_PTR macro.
2250 (disambiguate_multiple_latches): Remove usage of ENTRY_BLOCK_PTR macro.
2251 (get_loop_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
2252 (bb_loop_header_p): Remove usage of ENTRY_BLOCK_PTR macro.
2253 (get_loop_body_in_bfs_order): Remove usage of EXIT_BLOCK_PTR macro.
2254 (get_loop_body_in_dom_order): Likewise.
2255 (get_loop_body): Likewise.
2256 * cfgloopanal.c (mark_irreducible_loops): Remove uses of macros:
2257 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2258 * cfgloopmanip.c (create_preheader): Remove usage of ENTRY_BLOCK_PTR
2260 (remove_path): Remove usage of EXIT_BLOCK_PTR macro.
2261 (fix_bb_placement): Likewise.
2262 * cfgrtl.c (rtl_block_empty_p): Remove uses of macros:
2263 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2264 (rtl_can_remove_branch_p): Remove usage of EXIT_BLOCK_PTR macro.
2265 (cfg_layout_split_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
2267 (rtl_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
2268 (cfg_layout_can_merge_blocks_p): Remove uses of macros:
2269 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2270 (cfg_layout_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
2272 (fixup_fallthru_exit_predecessor): Remove uses of macros:
2273 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2274 (fixup_reorder_chain): Likewise.
2275 (relink_block_chain): Likewise.
2276 (cfg_layout_delete_block): Remove usage of EXIT_BLOCK_PTR macro.
2277 (rtl_verify_bb_layout): Remove usage of ENTRY_BLOCK_PTR macro.
2278 (cfg_layout_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
2279 (force_one_exit_fallthru): Likewise.
2280 (rtl_verify_fallthru): Remove uses of macros: ENTRY_BLOCK_PTR,
2282 (rtl_verify_edges): Likewise.
2283 (commit_edge_insertions): Likewise.
2284 (commit_one_edge_insertion): Likewise.
2285 (rtl_split_edge): Likewise.
2286 (force_nonfallthru_and_redirect): Likewise.
2287 (outof_cfg_layout_mode): Remove usage of EXIT_BLOCK_PTR macro.
2288 (skip_insns_after_block): Likewise.
2289 (fixup_partition_crossing): Remove uses of macros: ENTRY_BLOCK_PTR,
2291 (purge_dead_edges): Remove usage of EXIT_BLOCK_PTR macro.
2292 (rtl_can_merge_blocks): Remove uses of macros: ENTRY_BLOCK_PTR,
2294 (contains_no_active_insn_p): Likewise.
2295 (emit_insn_at_entry): Remove usage of ENTRY_BLOCK_PTR macro.
2296 (entry_of_function): Likewise.
2297 (last_bb_in_partition): Remove usage of EXIT_BLOCK_PTR macro.
2298 (fixup_new_cold_bb): Likewise.
2299 (patch_jump_insn): Likewise.
2300 (try_redirect_by_replacing_jump): Likewise.
2301 (block_label): Likewise.
2302 (could_fall_through): Likewise.
2303 (can_fallthru): Likewise.
2304 * cgraphbuild.c (cgraph_rebuild_references): Remove usage of
2305 ENTRY_BLOCK_PTR macro.
2306 (rebuild_cgraph_edges): Likewise.
2307 * cgraphunit.c (init_lowered_empty_function): Remove uses of macros:
2308 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2309 (expand_thunk): Remove usage of EXIT_BLOCK_PTR macro.
2310 * combine.c (get_last_value): Remove usage of ENTRY_BLOCK_PTR macro.
2311 (distribute_links): Remove usage of EXIT_BLOCK_PTR macro.
2312 (get_last_value_validate): Remove usage of ENTRY_BLOCK_PTR macro.
2313 (try_combine): Remove usage of EXIT_BLOCK_PTR macro.
2314 (reg_num_sign_bit_copies_for_combine): Remove usage of ENTRY_BLOCK_PTR
2316 (reg_nonzero_bits_for_combine): Likewise.
2317 (set_nonzero_bits_and_sign_copies): Likewise.
2318 (combine_instructions): Likewise.
2319 * cprop.c (one_cprop_pass): Remove uses of macros: ENTRY_BLOCK_PTR,
2321 (bypass_conditional_jumps): Likewise.
2322 (bypass_block): Remove usage of EXIT_BLOCK_PTR macro.
2323 (find_implicit_sets): Likewise.
2324 (cprop_jump): Likewise.
2325 * cse.c (cse_cc_succs): Likewise.
2326 (cse_find_path): Likewise.
2327 * df-problems.c (df_lr_confluence_0): Likewise.
2328 * df-scan.c (df_entry_block_defs_collect): Remove usage of
2329 ENTRY_BLOCK_PTR macro.
2330 (df_exit_block_uses_collect): Remove usage of EXIT_BLOCK_PTR macro.
2331 * dominance.c (iterate_fix_dominators): Remove usage of
2332 ENTRY_BLOCK_PTR macro.
2333 (calc_idoms): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2334 (determine_dominators_for_sons): Remove usage of ENTRY_BLOCK_PTR macro.
2335 (calc_dfs_tree): Remove uses of macros: ENTRY_BLOCK_PTR,
2337 (prune_bbs_to_update_dominators): Remove usage of ENTRY_BLOCK_PTR
2339 (calc_dfs_tree_nonrec): Remove uses of macros: ENTRY_BLOCK_PTR,
2341 * domwalk.c (cmp_bb_postorder): Likewise.
2342 * dse.c (dse_step1): Remove usage of EXIT_BLOCK_PTR macro.
2343 * except.c (finish_eh_generation): Remove usage of ENTRY_BLOCK_PTR
2345 (sjlj_emit_function_enter): Likewise.
2346 * final.c (compute_alignments): Likewise.
2347 * function.c (thread_prologue_and_epilogue_insns): Remove uses of
2348 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2349 (reposition_prologue_and_epilogue_notes): Remove usage of
2350 EXIT_BLOCK_PTR macro.
2351 (convert_jumps_to_returns): Remove uses of macros: ENTRY_BLOCK_PTR,
2353 (regno_clobbered_at_setjmp): Remove usage of ENTRY_BLOCK_PTR macro.
2354 (next_block_for_reg): Remove usage of EXIT_BLOCK_PTR macro.
2355 * gcse.c (hoist_code): Remove usage of ENTRY_BLOCK_PTR macro.
2356 (update_bb_reg_pressure): Remove usage of EXIT_BLOCK_PTR macro.
2357 (compute_code_hoist_vbeinout): Likewise.
2358 (should_hoist_expr_to_dom): Remove usage of ENTRY_BLOCK_PTR macro.
2359 (pre_expr_reaches_here_p_work): Likewise.
2360 * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
2361 (gimple_find_edge_insert_loc): Remove uses of macros: ENTRY_BLOCK_PTR,
2363 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove usage of
2364 ENTRY_BLOCK_PTR macro.
2365 * graph.c (draw_cfg_nodes_for_loop): Remove usage of EXIT_BLOCK_PTR
2367 * graphite-clast-to-gimple.c (translate_clast_user): Remove usage of
2368 ENTRY_BLOCK_PTR macro.
2369 * graphite-scop-detection.c (build_scops): Likewise.
2370 (create_sese_edges): Remove usage of EXIT_BLOCK_PTR macro.
2371 (scopdet_basic_block_info): Remove usage of ENTRY_BLOCK_PTR macro.
2372 * haifa-sched.c (restore_bb_notes): Remove usage of EXIT_BLOCK_PTR
2374 (unlink_bb_notes): Likewise.
2375 (create_check_block_twin): Likewise.
2376 (init_before_recovery): Likewise.
2377 (sched_extend_bb): Likewise.
2378 (priority): Likewise.
2379 * hw-doloop.c (reorder_loops): Likewise.
2380 (discover_loop): Likewise.
2381 * ifcvt.c (dead_or_predicable): Remove uses of macros:
2382 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2383 (find_if_case_1): Remove usage of EXIT_BLOCK_PTR macro.
2384 (block_has_only_trap): Likewise.
2385 (cond_exec_find_if_block): Likewise.
2386 (merge_if_block): Likewise.
2387 * ipa-inline-analysis.c (param_change_prob): Remove usage of
2388 ENTRY_BLOCK_PTR macro.
2389 (record_modified): Likewise.
2390 * ipa-pure-const.c (execute_warn_function_noreturn): Remove usage of
2391 EXIT_BLOCK_PTR macro.
2392 (local_pure_const): Likewise.
2393 * ipa-split.c (split_function): Remove uses of macros:
2394 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2395 (find_split_points): Likewise.
2396 (consider_split): Likewise.
2397 (find_return_bb): Remove usage of EXIT_BLOCK_PTR macro.
2398 (verify_non_ssa_vars): Remove usage of ENTRY_BLOCK_PTR macro.
2399 * ira-build.c (ira_loop_tree_body_rev_postorder): Likewise.
2400 * ira-color.c (print_loop_title): Remove usage of EXIT_BLOCK_PTR macro.
2401 * ira-emit.c (entered_from_non_parent_p): Remove usage of
2402 ENTRY_BLOCK_PTR macro.
2403 (ira_emit): Remove usage of EXIT_BLOCK_PTR macro.
2404 * ira-int.h (ira_assert): Remove usage of ENTRY_BLOCK_PTR macro.
2405 * ira.c (split_live_ranges_for_shrink_wrap): Remove uses of macros:
2406 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2407 * lcm.c (compute_rev_insert_delete): Remove usage of ENTRY_BLOCK_PTR
2409 (compute_nearerout): Remove uses of macros: ENTRY_BLOCK_PTR,
2411 (compute_farthest): Likewise.
2412 (compute_available): Likewise.
2413 (compute_insert_delete): Remove usage of EXIT_BLOCK_PTR macro.
2414 (compute_laterin): Remove uses of macros: ENTRY_BLOCK_PTR,
2416 (compute_earliest): Likewise.
2417 (compute_antinout_edge): Likewise.
2418 * loop-iv.c (simplify_using_initial_values): Remove usage of
2419 ENTRY_BLOCK_PTR macro.
2420 * loop-unswitch.c (unswitch_loop): Remove usage of EXIT_BLOCK_PTR
2422 * lra-assigns.c (find_hard_regno_for): Remove usage of ENTRY_BLOCK_PTR
2424 * lra-constraints.c (lra_inheritance): Remove usage of EXIT_BLOCK_PTR
2426 * lra-lives.c (lra_create_live_ranges): Remove uses of macros:
2427 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2428 * lra.c (has_nonexceptional_receiver): Remove usage of EXIT_BLOCK_PTR
2430 * lto-streamer-in.c (input_function): Remove usage of ENTRY_BLOCK_PTR
2432 * lto-streamer-out.c (output_cfg): Likewise.
2433 * mcf.c (adjust_cfg_counts): Remove uses of macros: ENTRY_BLOCK_PTR,
2435 (create_fixup_graph): Remove usage of ENTRY_BLOCK_PTR macro.
2436 * mode-switching.c (optimize_mode_switching): Likewise.
2437 (create_pre_exit): Remove usage of EXIT_BLOCK_PTR macro.
2438 * modulo-sched.c (rest_of_handle_sms): Likewise.
2439 (canon_loop): Likewise.
2440 * omp-low.c (build_omp_regions): Remove usage of ENTRY_BLOCK_PTR macro.
2441 * postreload-gcse.c (eliminate_partially_redundant_loads): Remove uses
2442 of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2443 * predict.c (rebuild_frequencies): Remove usage of ENTRY_BLOCK_PTR
2445 (propagate_freq): Remove usage of EXIT_BLOCK_PTR macro.
2446 (estimate_bb_frequencies): Remove usage of ENTRY_BLOCK_PTR macro.
2447 (tree_estimate_probability_bb): Remove usage of EXIT_BLOCK_PTR macro.
2448 (expensive_function_p): Remove usage of ENTRY_BLOCK_PTR macro.
2449 (tree_bb_level_predictions): Remove usage of EXIT_BLOCK_PTR macro.
2450 (counts_to_freqs): Remove usage of ENTRY_BLOCK_PTR macro.
2451 (apply_return_prediction): Remove usage of EXIT_BLOCK_PTR macro.
2452 (estimate_loops): Remove usage of ENTRY_BLOCK_PTR macro.
2453 (gimple_predict_edge): Likewise.
2454 (probably_never_executed): Likewise.
2455 * profile.c (find_spanning_tree): Remove uses of macros:
2456 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2457 (branch_prob): Likewise.
2458 (compute_branch_probabilities): Likewise.
2459 (compute_frequency_overlap): Remove usage of ENTRY_BLOCK_PTR macro.
2460 (is_inconsistent): Remove usage of EXIT_BLOCK_PTR macro.
2461 (read_profile_edge_counts): Remove usage of ENTRY_BLOCK_PTR macro.
2462 (set_bb_counts): Likewise.
2463 (correct_negative_edge_counts): Likewise.
2464 (get_exec_counts): Likewise.
2465 (instrument_values): Likewise.
2466 (instrument_edges): Likewise.
2467 * reg-stack.c (convert_regs): Remove uses of macros: ENTRY_BLOCK_PTR,
2469 (compensate_edges): Remove usage of ENTRY_BLOCK_PTR macro.
2470 (convert_regs_exit): Remove usage of EXIT_BLOCK_PTR macro.
2471 (convert_regs_entry): Remove usage of ENTRY_BLOCK_PTR macro.
2472 (reg_to_stack): Likewise.
2473 * regs.h (REG_N_SETS): Likewise.
2474 * reload.c (find_dummy_reload): Likewise.
2475 (combine_reloads): Likewise.
2476 (push_reload): Likewise.
2477 * reload1.c (has_nonexceptional_receiver): Remove usage of
2478 EXIT_BLOCK_PTR macro.
2479 * resource.c (mark_target_live_regs): Remove usage of ENTRY_BLOCK_PTR
2481 (find_basic_block): Likewise.
2482 * sched-ebb.c (ebb_add_block): Remove usage of EXIT_BLOCK_PTR macro.
2483 (schedule_ebbs): Likewise.
2484 * sched-int.h (sel_sched_p): Likewise.
2485 * sched-rgn.c (compute_dom_prob_ps): Remove usage of ENTRY_BLOCK_PTR
2487 (rgn_add_block): Remove usage of EXIT_BLOCK_PTR macro.
2488 (haifa_find_rgns): Remove uses of macros: ENTRY_BLOCK_PTR,
2490 (propagate_deps): Remove usage of EXIT_BLOCK_PTR macro.
2491 (extend_rgns): Likewise.
2492 (find_single_block_region): Likewise.
2493 * sel-sched-ir.c (sel_remove_loop_preheader): Remove usage of
2494 ENTRY_BLOCK_PTR macro.
2495 (setup_nop_and_exit_insns): Remove usage of EXIT_BLOCK_PTR macro.
2496 (sel_create_recovery_block): Likewise.
2497 (bb_ends_ebb_p): Likewise.
2498 (sel_bb_end): Likewise.
2499 (sel_bb_head): Likewise.
2500 (free_lv_sets): Likewise.
2501 (init_lv_sets): Likewise.
2502 (tidy_control_flow): Likewise.
2503 (maybe_tidy_empty_bb): Likewise.
2504 * sel-sched-ir.h (_succ_iter_cond): Likewise.
2505 (_succ_iter_start): Likewise.
2506 (sel_bb_empty_or_nop_p): Likewise.
2507 (get_loop_exit_edges_unique_dests): Likewise.
2508 (inner_loop_header_p): Likewise.
2509 * sel-sched.c (create_block_for_bookkeeping): Likewise.
2510 (find_block_for_bookkeeping): Likewise.
2511 * store-motion.c (remove_reachable_equiv_notes): Likewise.
2512 (insert_store): Likewise.
2513 * trans-mem.c (ipa_tm_transform_clone): Remove usage of
2514 ENTRY_BLOCK_PTR macro.
2515 (tm_memopt_compute_available): Remove usage of EXIT_BLOCK_PTR macro.
2516 (ipa_tm_scan_irr_function): Remove usage of ENTRY_BLOCK_PTR macro.
2517 (gate_tm_init): Likewise.
2518 (tm_region_init): Likewise.
2519 * tree-cfg.c (execute_fixup_cfg): Remove uses of macros:
2520 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2521 (execute_warn_function_return): Remove usage of EXIT_BLOCK_PTR macro.
2522 (split_critical_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
2524 (print_loops): Remove usage of ENTRY_BLOCK_PTR macro.
2525 (move_sese_region_to_fn): Remove uses of macros: ENTRY_BLOCK_PTR,
2527 (gimple_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
2529 (gimple_verify_flow_info): Remove uses of macros: ENTRY_BLOCK_PTR,
2531 (remove_edge_and_dominated_blocks): Remove usage of EXIT_BLOCK_PTR
2533 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2534 (gimple_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
2535 (make_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
2536 (build_gimple_cfg): Likewise.
2537 (gimple_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
2538 (gimple_can_merge_blocks_p): Likewise.
2539 * tree-cfgcleanup.c (tree_forwarder_block_p): Remove uses of macros:
2540 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2541 * tree-complex.c (update_parameter_components): Remove usage of
2542 ENTRY_BLOCK_PTR macro.
2543 * tree-if-conv.c (get_loop_body_in_if_conv_order): Remove usage of
2544 EXIT_BLOCK_PTR macro.
2545 * tree-inline.c (tree_function_versioning): Remove uses of macros:
2546 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2547 (delete_unreachable_blocks_update_callgraph): Likewise.
2548 (initialize_cfun): Likewise.
2549 (copy_cfg_body): Remove usage of ENTRY_BLOCK_PTR macro.
2550 (copy_edges_for_bb): Remove usage of EXIT_BLOCK_PTR macro.
2551 (remap_ssa_name): Remove usage of ENTRY_BLOCK_PTR macro.
2552 * tree-into-ssa.c (update_ssa): Likewise.
2553 (maybe_register_def): Remove usage of EXIT_BLOCK_PTR macro.
2554 (insert_updated_phi_nodes_for): Remove usage of ENTRY_BLOCK_PTR macro.
2555 (rewrite_into_ssa): Likewise.
2556 (rewrite_debug_stmt_uses): Likewise.
2557 * tree-outof-ssa.c (expand_phi_nodes): Remove uses of macros:
2558 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2559 * tree-profile.c (gimple_gen_ic_func_profiler): Remove usage of
2560 ENTRY_BLOCK_PTR macro.
2561 * tree-scalar-evolution.h (block_before_loop): Likewise.
2562 * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
2563 (dump_dereferences_table): Remove uses of macros: ENTRY_BLOCK_PTR,
2565 (analyze_caller_dereference_legality): Remove usage of ENTRY_BLOCK_PTR
2567 (propagate_dereference_distances): Remove uses of macros:
2568 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2569 (initialize_parameter_reductions): Remove usage of ENTRY_BLOCK_PTR
2571 * tree-ssa-ccp.c (gsi_prev_dom_bb_nondebug): Likewise.
2572 (optimize_stack_restore): Remove usage of EXIT_BLOCK_PTR macro.
2573 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
2574 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove uses of macros:
2575 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2576 (remove_dead_stmt): Remove usage of EXIT_BLOCK_PTR macro.
2577 (propagate_necessity): Remove usage of ENTRY_BLOCK_PTR macro.
2578 (mark_control_dependent_edges_necessary): Remove uses of macros:
2579 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2580 * tree-ssa-dom.c (eliminate_degenerate_phis): Remove usage of
2581 ENTRY_BLOCK_PTR macro.
2582 (tree_ssa_dominator_optimize): Remove usage of EXIT_BLOCK_PTR macro.
2583 * tree-ssa-live.c (verify_live_on_entry): Remove uses of macros:
2584 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2585 (calculate_live_on_exit): Likewise.
2586 (set_var_live_on_entry): Remove usage of ENTRY_BLOCK_PTR macro.
2587 (loe_visit_block): Likewise.
2588 * tree-ssa-live.h (live_on_exit): Remove uses of macros:
2589 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2590 (live_on_entry): Likewise.
2591 * tree-ssa-loop-ivopts.c (find_interesting_uses): Remove usage of
2592 EXIT_BLOCK_PTR macro.
2593 * tree-ssa-loop-manip.c (compute_live_loop_exits): Remove usage of
2594 ENTRY_BLOCK_PTR macro.
2595 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Likewise.
2596 (bound_difference): Likewise.
2597 * tree-ssa-loop-prefetch.c (may_use_storent_in_loop_p): Remove usage
2598 of EXIT_BLOCK_PTR macro.
2599 * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Remove usage
2600 of ENTRY_BLOCK_PTR macro.
2601 * tree-ssa-math-opts.c (register_division_in): Likewise.
2602 * tree-ssa-phiprop.c (tree_ssa_phiprop): Likewise.
2603 * tree-ssa-pre.c (compute_avail): Likewise.
2604 (compute_antic): Remove usage of EXIT_BLOCK_PTR macro.
2605 (insert): Remove usage of ENTRY_BLOCK_PTR macro.
2606 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
2607 (simulate_block): Remove usage of EXIT_BLOCK_PTR macro.
2608 (cfg_blocks_add): Remove uses of macros: ENTRY_BLOCK_PTR,
2610 (add_control_edge): Remove usage of EXIT_BLOCK_PTR macro.
2611 * tree-ssa-reassoc.c (do_reassoc): Remove uses of macros:
2612 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2613 (build_and_add_sum): Remove usage of ENTRY_BLOCK_PTR macro.
2614 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
2615 (execute_sink_code): Remove usage of EXIT_BLOCK_PTR macro.
2616 * tree-ssa-uninit.c (find_dom): Remove usage of ENTRY_BLOCK_PTR macro.
2617 (compute_control_dep_chain): Remove usage of EXIT_BLOCK_PTR macro.
2618 (find_pdom): Likewise.
2619 (warn_uninitialized_vars): Remove usage of ENTRY_BLOCK_PTR macro.
2620 * tree-stdarg.c (reachable_at_most_once): Likewise.
2621 * tree-tailcall.c (tree_optimize_tail_calls_1): Remove uses of macros:
2622 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2623 (eliminate_tail_call): Likewise.
2624 * tsan.c (instrument_func_entry): Remove usage of ENTRY_BLOCK_PTR
2626 (instrument_func_exit): Remove usage of EXIT_BLOCK_PTR macro.
2627 * var-tracking.c (vt_initialize): Remove uses of macros:
2628 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2629 (vt_add_function_parameter): Remove usage of ENTRY_BLOCK_PTR macro.
2630 (vt_find_locations): Remove usage of EXIT_BLOCK_PTR macro.
2631 (vt_stack_adjustments): Remove uses of macros: ENTRY_BLOCK_PTR,
2633 * varasm.c (assemble_start_function): Remove usage of ENTRY_BLOCK_PTR
2635 * config/bfin/bfin.c (hwloop_optimize): Likewise.
2636 * config/nds32/nds32.c (nds32_fp_as_gp_check_available): Remove usage
2637 of EXIT_BLOCK_PTR macro.
2638 * config/arm/arm.c (require_pic_register): Remove usage of
2639 ENTRY_BLOCK_PTR macro.
2640 (arm_r3_live_at_start_p): Likewise.
2641 (any_sibcall_could_use_r3): Remove usage of EXIT_BLOCK_PTR macro.
2642 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
2643 * config/frv/frv.c (frv_optimize_membar_global): Likewise.
2644 * config/alpha/alpha.c (alpha_gp_save_rtx): Remove usage of
2645 ENTRY_BLOCK_PTR macro.
2646 * config/i386/i386.c (ix86_count_insn): Likewise.
2647 (ix86_seh_fixup_eh_fallthru): Remove usage of EXIT_BLOCK_PTR macro.
2648 (ix86_pad_short_function): Likewise.
2649 (ix86_compute_frame_layout): Remove usage of ENTRY_BLOCK_PTR macro.
2650 (ix86_pad_returns): Remove usage of EXIT_BLOCK_PTR macro.
2651 (ix86_eax_live_at_start_p): Remove usage of ENTRY_BLOCK_PTR macro.
2652 (add_condition_to_bb): Remove usage of EXIT_BLOCK_PTR macro.
2653 (ix86_expand_epilogue): Likewise.
2654 * config/ia64/ia64.c (ia64_asm_unwind_emit): Likewise.
2655 (ia64_expand_prologue): Likewise.
2657 2013-11-19 Catherine Moore <clm@codesourcery.com>
2659 * doc/invoke.texi (mfix-rm7000, mno-fix-rm7000): Document.
2660 * config/mips/mips.opt (mfix-rm7000): New option.
2661 * config/mips/mips.h (ASM_SPEC): Handle mfix-rm7000.
2662 * config/mips/mips.c (mips_reorg_process_insns): Disable
2663 noreorder for TARGET_FIX_RM7000.
2665 2013-11-19 Oleg Endo <olegendo@gcc.gnu.org>
2667 * config/sh/sh-c.c: Fix typo in include of file attribs.h.
2669 2013-11-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2671 * config/arm/arm.c (arm_new_rtx_costs):
2672 Handle narrow mode add-shifts properly.
2673 * config/arm/arm-common.c (arm_rtx_shift_left_p): Remove static.
2674 * config/arm/arm-common-protos.h (arm_rtx_shift_left_p):
2677 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
2679 * config/arm/arm.md (zero_extend<mode>di2): Add type attribute.
2681 2013-11-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2683 * config/rs6000/vector.md ("mov<mode>"): Do not call
2684 rs6000_emit_le_vsx_move to move into or out of GPRs.
2685 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Assert
2686 source and destination are not GPR hard regs.
2688 2013-11-19 David Malcolm <dmalcolm@redhat.com>
2690 * basic-block.h (n_edges_for_function): Rename macro to...
2691 (n_edges_for_fn): ...this.
2692 (n_edges): Eliminate macro as work towards making uses of
2695 * cfg.c (init_flow): Update for renaming of "n_edges_for_function"
2696 to "n_edges_for_fn".
2698 * cfg.c (unchecked_make_edge): Remove usage of n_edges macro.
2699 (clear_edges): Likewise.
2700 (free_edge): Likewise.
2701 * cfghooks.c (dump_flow_info): Likewise.
2702 * cprop.c (is_too_expensive): Likewise.
2703 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
2704 * gcse.c (is_too_expensive): Likewise.
2705 (prune_insertions_deletions): Likewise.
2706 * mcf.c (create_fixup_graph): Likewise.
2707 * sched-rgn.c (haifa_find_rgns): Likewise.
2708 * tree-cfg.c (gimple_dump_cfg): Likewise.
2709 * var-tracking.c (variable_tracking_main_1): Likewise.
2711 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
2713 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix over
2716 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
2718 * config/aarch64/aarch64.md
2719 (aarch64_movdi_<mode>low, *add_<shift>_si_uxtw): Adjust whitespace.
2721 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
2723 * config/aarch64/aarch64.h (PROFILE_HOOK): Fix whitespace.
2725 2013-11-19 Joseph Myers <joseph@codesourcery.com>
2727 * varasm.c (align_variable): Give error instead of warning for
2728 unsupported alignment.
2729 (assemble_noswitch_variable): Likewise.
2731 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
2733 * plugin.def (PLUGIN_INCLUDE_FILE): New event, invoked in
2736 2013-11-19 Peter Bergner <bergner@vnet.ibm.com>
2738 * loop-doloop.c (doloop_optimize_loops): Remove unused
2739 loop iterator argument from FOR_EACH_LOOP.
2741 2013-11-19 David Malcolm <dmalcolm@redhat.com>
2743 Convert gimple types from a union to C++ inheritance.
2744 * Makefile.in (GIMPLE_H): Add dep on is-a.h.
2745 * coretypes.h (union gimple_statement_d): Remove declaration.
2746 (gimple): Convert from being a "union gimple_statement_d *"
2747 to a "struct gimple_statement_base *".
2748 (const_gimple): Likewise (with "const").
2749 * ggc.h (ggc_alloc_cleared_gimple_statement_d_stat): Replace with...
2750 (ggc_alloc_cleared_gimple_statement_stat): ...this.
2751 * gimple-pretty-print.c (debug): Change parameter from a
2752 "gimple_statement_d &" to a "gimple_statement_base &".
2753 (debug): Change parameter from a "gimple_statement_d *" to
2754 a "gimple_statement_base *".
2755 * gimple-pretty-print.h (debug): Update declarations as above.
2756 * gimple.c (gimple_alloc_stat): Update for renaming of
2757 ggc_alloc_cleared_gimple_statement_d_stat to
2758 ggc_alloc_cleared_gimple_statement_stat.
2759 * gimple.h: Include "is-a.h" for use by is_a_helper
2760 specializations in followup autogenerated patch.
2761 (struct gimple statement_base): Make this type usable as a base
2762 class by adding "desc", "tag" and "variable_size" to GTY, thus
2763 using opting-in to gengtype's support for simple inheritance.
2764 (gimple_statement_with_ops_base): Convert to a subclass of
2765 gimple_statement_base, dropping initial "gsbase" field. Note that
2766 this type is abstract, with no GSS_ value, and thus no GTY tag value.
2767 (gimple_statement_with_ops): Convert to a subclass of
2768 gimple_statement_with_ops_base, dropping initial "opbase" field.
2769 Add tag value to GTY marking. Update marking of op field to
2770 reflect how num_ops field is accessed via inheritance.
2771 (gimple_statement_with_memory_ops_base): Convert to a subclass of
2772 gimple_statement_with_ops_base, dropping initial "opbase" field.
2773 Add tag value to GTY marking.
2774 (gimple_statement_with_memory_ops): Convert to a subclass of
2775 public gimple_statement_with_memory_ops_base, dropping initial
2776 "membase" field. Add tag value to GTY marking. Update marking
2777 of op field to reflect how num_ops field is accessed via inheritance.
2778 (gimple_statement_call): Analogous changes that also update the
2779 marking of the "u" union.
2780 (gimple_statement_omp): Convert to a subclass of
2781 gimple_statement_base, dropping initial "gsbase" field, adding
2782 tag value to GTY marking.
2783 (gimple_statement_bind): Likewise.
2784 (gimple_statement_catch): Likewise.
2785 (gimple_statement_eh_filter): Likewise.
2786 (gimple_statement_eh_else): Likewise.
2787 (gimple_statement_eh_mnt): Likewise.
2788 (gimple_statement_phi): Likewise.
2789 (gimple_statement_eh_ctrl): Likewise.
2790 (gimple_statement_try): Likewise.
2791 (gimple_statement_wce): Likewise.
2792 (gimple_statement_asm): Convert to a subclass of
2793 gimple_statement_with_memory_ops_base, dropping initial
2794 "membase" field, adding tag value to GTY marking, and updating
2795 marking of op field.
2796 (gimple_statement_omp_critical): Convert to a subclass of
2797 gimple_statement_omp, dropping initial "omp" field, adding tag
2798 value to GTY marking.
2799 (gimple_statement_omp_for): Likewise.
2800 (gimple_statement_omp_parallel): Likewise.
2801 (gimple_statement_omp_task): Convert to a subclass of
2802 gimple_statement_omp_parallel, dropping initial "par" field,
2803 adding tag value to GTY marking.
2804 (gimple_statement_omp_sections): Convert to a subclass of
2805 gimple_statement_omp, dropping initial "omp" field, adding
2806 tag value to GTY marking.
2807 (gimple_statement_omp_continue): Convert to a subclass of
2808 gimple_statement_base, dropping initial "gsbase" field, adding
2809 tag value to GTY marking.
2810 (gimple_statement_omp_single): Convert to a subclass of
2811 gimple_statement_omp, dropping initial "omp" field, adding
2812 tag value to GTY marking.
2813 (gimple_statement_omp_atomic_load): Convert to a subclass of
2814 gimple_statement_base, dropping initial "gsbase" field, adding
2815 tag value to GTY marking.
2816 (gimple_statement_omp_atomic_store): Convert to a subclass of
2817 gimple_statement_base, dropping initial "gsbase" field, adding
2818 tag value to GTY marking.
2819 (gimple_statement_transaction): Convert to a subclass of
2820 gimple_statement_with_memory_ops_base, dropping initial "gsbase"
2821 field, adding tag value to GTY marking.
2822 (union gimple_statement_d): Remove.
2823 * system.h (CONST_CAST_GIMPLE): Update to use
2824 "struct gimple_statement_base *" rather than
2825 "union gimple_statement_d *".
2826 * tree-ssa-ccp.c (gimple_htab): Convert underlying type from
2827 gimple_statement_d to gimple_statement_base.
2829 * gimple.h (gimple_use_ops): Port from union to usage of dyn_cast.
2830 (gimple_set_use_ops): Port from union to usage of as_a.
2831 (gimple_set_vuse): Likewise.
2832 (gimple_set_vdef): Likewise.
2833 (gimple_call_internal_fn): Port from union to a static_cast,
2834 given that the type has already been asserted.
2835 (gimple_omp_body_ptr): Port from unchecked union usage to
2837 (gimple_omp_set_body): Likewise.
2839 * gimple-iterator.c (update_bb_for_stmts): Update for conversion of
2840 gimple types to a true class hierarchy.
2841 (update_call_edge_frequencies): Likewise.
2842 (gsi_insert_seq_nodes_before): Likewise.
2843 (gsi_insert_seq_nodes_after): Likewise.
2844 (gsi_split_seq_after): Likewise.
2845 (gsi_set_stmt): Likewise.
2846 (gsi_split_seq_before): Likewise.
2847 (gsi_remove): Likewise.
2848 * gimple-iterator.h (gsi_one_before_end_p): Likewise.
2849 (gsi_next): Likewise.
2850 (gsi_prev): Likewise.
2851 * gimple-pretty-print.c (dump_gimple_debug): Likewise.
2852 * gimple-ssa.h (gimple_vuse_op): Likewise.
2853 (gimple_vdef_op): Likewise.
2854 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
2855 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
2856 * gimple.c (gimple_set_code): Likewise.
2857 (gimple_alloc_stat): Likewise.
2858 (gimple_set_subcode): Likewise.
2859 (gimple_build_call_internal_1): Likewise.
2860 (gimple_check_failed): Likewise.
2861 (gimple_call_flags): Likewise.
2862 (gimple_set_bb): Likewise.
2863 * gimple.h (is_a_helper <gimple_statement_asm> (gimple)): New.
2864 (is_a_helper <gimple_statement_bind> (gimple)): Likewise.
2865 (is_a_helper <gimple_statement_call> (gimple)): Likewise.
2866 (is_a_helper <gimple_statement_catch> (gimple)): Likewise.
2867 (is_a_helper <gimple_statement_eh_ctrl> (gimple)): Likewise.
2868 (is_a_helper <gimple_statement_eh_else> (gimple)): Likewise.
2869 (is_a_helper <gimple_statement_eh_filter> (gimple)): Likewise.
2870 (is_a_helper <gimple_statement_eh_mnt> (gimple)): Likewise.
2871 (is_a_helper <gimple_statement_omp_atomic_load> (gimple)): Likewise.
2872 (is_a_helper <gimple_statement_omp_atomic_store> (gimple)): Likewise.
2873 (is_a_helper <gimple_statement_omp_continue> (gimple)): Likewise.
2874 (is_a_helper <gimple_statement_omp_critical> (gimple)): Likewise.
2875 (is_a_helper <gimple_statement_omp_for> (gimple)): Likewise.
2876 (is_a_helper <gimple_statement_omp_parallel> (gimple)): Likewise.
2877 (is_a_helper <gimple_statement_omp_sections> (gimple)): Likewise.
2878 (is_a_helper <gimple_statement_omp_single> (gimple)): Likewise.
2879 (is_a_helper <gimple_statement_omp_task> (gimple)): Likewise.
2880 (is_a_helper <gimple_statement_phi> (gimple)): Likewise.
2881 (is_a_helper <gimple_statement_transaction> (gimple)): Likewise.
2882 (is_a_helper <gimple_statement_try> (gimple)): Likewise.
2883 (is_a_helper <gimple_statement_wce> (gimple)): Likewise.
2884 (is_a_helper <const gimple_statement_asm> (const_gimple)): Likewise.
2885 (is_a_helper <const gimple_statement_bind> (const_gimple)): Likewise.
2886 (is_a_helper <const gimple_statement_call> (const_gimple)): Likewise.
2887 (is_a_helper <const gimple_statement_catch> (const_gimple)): Likewise.
2888 (is_a_helper <const gimple_statement_eh_ctrl> (const_gimple)):
2890 (is_a_helper <const gimple_statement_eh_filter> (const_gimple)):
2892 (is_a_helper <const gimple_statement_omp_atomic_load> (const_gimple)):
2894 (is_a_helper <const gimple_statement_omp_atomic_store>
2895 (const_gimple)): Likewise.
2896 (is_a_helper <const gimple_statement_omp_continue> (const_gimple)):
2898 (is_a_helper <const gimple_statement_omp_critical> (const_gimple)):
2900 (is_a_helper <const gimple_statement_omp_for> (const_gimple)):
2902 (is_a_helper <const gimple_statement_omp_parallel> (const_gimple)):
2904 (is_a_helper <const gimple_statement_omp_sections> (const_gimple)):
2906 (is_a_helper <const gimple_statement_omp_single> (const_gimple)):
2908 (is_a_helper <const gimple_statement_omp_task> (const_gimple)):
2910 (is_a_helper <const gimple_statement_phi> (const_gimple)): Likewise.
2911 (is_a_helper <const gimple_statement_transaction> (const_gimple)):
2913 (gimple_seq_last): Update for conversion of gimple types to a true
2915 (gimple_seq_set_last): Likewise.
2916 (gimple_code): Likewise.
2917 (gimple_bb): Likewise.
2918 (gimple_block): Likewise.
2919 (gimple_set_block): Likewise.
2920 (gimple_location): Likewise.
2921 (gimple_location_ptr): Likewise.
2922 (gimple_set_location): Likewise.
2923 (gimple_no_warning_p): Likewise.
2924 (gimple_set_no_warning): Likewise.
2925 (gimple_set_visited): Likewise.
2926 (gimple_visited_p): Likewise.
2927 (gimple_set_plf): Likewise.
2928 (gimple_plf): Likewise.
2929 (gimple_set_uid): Likewise.
2930 (gimple_uid): Likewise.
2931 (gimple_init_singleton): Likewise.
2932 (gimple_modified_p): Likewise.
2933 (gimple_set_modified): Likewise.
2934 (gimple_expr_code): Likewise.
2935 (gimple_has_volatile_ops): Likewise.
2936 (gimple_set_has_volatile_ops): Likewise.
2937 (gimple_omp_subcode): Likewise.
2938 (gimple_omp_set_subcode): Likewise.
2939 (gimple_omp_return_set_nowait): Likewise.
2940 (gimple_omp_section_set_last): Likewise.
2941 (gimple_omp_parallel_set_combined_p): Likewise.
2942 (gimple_omp_atomic_set_need_value): Likewise.
2943 (gimple_omp_atomic_set_seq_cst): Likewise.
2944 (gimple_num_ops): Likewise.
2945 (gimple_set_num_ops): Likewise.
2946 (gimple_assign_nontemporal_move_p): Likewise.
2947 (gimple_assign_set_nontemporal_move): Likewise.
2948 (gimple_assign_rhs_code): Likewise.
2949 (gimple_assign_set_rhs_code): Likewise.
2950 (gimple_call_internal_p): Likewise.
2951 (gimple_call_with_bounds_p): Likewise.
2952 (gimple_call_set_with_bounds): Likewise.
2953 (gimple_call_set_tail): Likewise.
2954 (gimple_call_tail_p): Likewise.
2955 (gimple_call_set_return_slot_opt): Likewise.
2956 (gimple_call_return_slot_opt_p): Likewise.
2957 (gimple_call_set_from_thunk): Likewise.
2958 (gimple_call_from_thunk_p): Likewise.
2959 (gimple_call_set_va_arg_pack): Likewise.
2960 (gimple_call_va_arg_pack_p): Likewise.
2961 (gimple_call_set_nothrow): Likewise.
2962 (gimple_call_set_alloca_for_var): Likewise.
2963 (gimple_call_alloca_for_var_p): Likewise.
2964 (gimple_call_copy_flags): Likewise.
2965 (gimple_cond_code): Likewise.
2966 (gimple_cond_set_code): Likewise.
2967 (gimple_cond_make_false): Likewise.
2968 (gimple_cond_make_true): Likewise.
2969 (gimple_asm_volatile_p): Likewise.
2970 (gimple_asm_set_volatile): Likewise.
2971 (gimple_asm_set_input): Likewise.
2972 (gimple_asm_input_p): Likewise.
2973 (gimple_try_kind): Likewise.
2974 (gimple_try_set_kind): Likewise.
2975 (gimple_try_catch_is_cleanup): Likewise.
2976 (gimple_try_set_catch_is_cleanup): Likewise.
2977 (gimple_wce_cleanup_eh_only): Likewise.
2978 (gimple_wce_set_cleanup_eh_only): Likewise.
2979 (gimple_debug_bind_p): Likewise.
2980 (gimple_debug_source_bind_p): Likewise.
2981 (gimple_omp_for_set_kind): Likewise.
2982 (gimple_omp_for_set_combined_p): Likewise.
2983 (gimple_omp_for_set_combined_into_p): Likewise.
2984 (gimple_omp_target_set_kind): Likewise.
2985 (gimple_transaction_subcode): Likewise.
2986 (gimple_transaction_set_subcode): Likewise.
2987 (gimple_predict_predictor): Likewise.
2988 (gimple_predict_set_predictor): Likewise.
2989 (gimple_predict_outcome): Likewise.
2990 (gimple_predict_set_outcome): Likewise.
2991 (gimple_transaction_set_label): Likewise.
2992 (gimple_transaction_set_body): Likewise.
2993 (gimple_transaction_label_ptr): Likewise.
2994 (gimple_transaction_label): Likewise.
2995 (gimple_transaction_body_ptr): Likewise.
2996 (gimple_omp_continue_set_control_use): Likewise.
2997 (gimple_omp_continue_control_use_ptr): Likewise.
2998 (gimple_omp_continue_control_use): Likewise.
2999 (gimple_omp_continue_set_control_def): Likewise.
3000 (gimple_omp_continue_control_def_ptr): Likewise.
3001 (gimple_omp_continue_control_def): Likewise.
3002 (gimple_omp_atomic_load_rhs_ptr): Likewise.
3003 (gimple_omp_atomic_load_rhs): Likewise.
3004 (gimple_omp_atomic_load_set_rhs): Likewise.
3005 (gimple_omp_atomic_load_lhs_ptr): Likewise.
3006 (gimple_omp_atomic_load_lhs): Likewise.
3007 (gimple_omp_atomic_load_set_lhs): Likewise.
3008 (gimple_omp_atomic_store_val_ptr): Likewise.
3009 (gimple_omp_atomic_store_val): Likewise.
3010 (gimple_omp_atomic_store_set_val): Likewise.
3011 (gimple_omp_for_cond): Likewise.
3012 (gimple_omp_for_set_cond): Likewise.
3013 (gimple_omp_sections_set_control): Likewise.
3014 (gimple_omp_sections_control_ptr): Likewise.
3015 (gimple_omp_sections_control): Likewise.
3016 (gimple_omp_sections_set_clauses): Likewise.
3017 (gimple_omp_sections_clauses_ptr): Likewise.
3018 (gimple_omp_sections_clauses): Likewise.
3019 (gimple_omp_teams_set_clauses): Likewise.
3020 (gimple_omp_teams_clauses_ptr): Likewise.
3021 (gimple_omp_teams_clauses): Likewise.
3022 (gimple_omp_target_set_data_arg): Likewise.
3023 (gimple_omp_target_data_arg_ptr): Likewise.
3024 (gimple_omp_target_data_arg): Likewise.
3025 (gimple_omp_target_set_child_fn): Likewise.
3026 (gimple_omp_target_child_fn_ptr): Likewise.
3027 (gimple_omp_target_child_fn): Likewise.
3028 (gimple_omp_target_set_clauses): Likewise.
3029 (gimple_omp_target_clauses_ptr): Likewise.
3030 (gimple_omp_target_clauses): Likewise.
3031 (gimple_omp_single_set_clauses): Likewise.
3032 (gimple_omp_single_clauses_ptr): Likewise.
3033 (gimple_omp_single_clauses): Likewise.
3034 (gimple_omp_task_set_arg_align): Likewise.
3035 (gimple_omp_task_arg_align_ptr): Likewise.
3036 (gimple_omp_task_arg_align): Likewise.
3037 (gimple_omp_task_set_arg_size): Likewise.
3038 (gimple_omp_task_arg_size_ptr): Likewise.
3039 (gimple_omp_task_arg_size): Likewise.
3040 (gimple_omp_task_set_copy_fn): Likewise.
3041 (gimple_omp_task_copy_fn_ptr): Likewise.
3042 (gimple_omp_task_copy_fn): Likewise.
3043 (gimple_omp_task_set_data_arg): Likewise.
3044 (gimple_omp_task_data_arg_ptr): Likewise.
3045 (gimple_omp_task_data_arg): Likewise.
3046 (gimple_omp_task_set_child_fn): Likewise.
3047 (gimple_omp_task_child_fn_ptr): Likewise.
3048 (gimple_omp_task_child_fn): Likewise.
3049 (gimple_omp_task_set_clauses): Likewise.
3050 (gimple_omp_task_clauses_ptr): Likewise.
3051 (gimple_omp_task_clauses): Likewise.
3052 (gimple_omp_parallel_set_data_arg): Likewise.
3053 (gimple_omp_parallel_data_arg_ptr): Likewise.
3054 (gimple_omp_parallel_data_arg): Likewise.
3055 (gimple_omp_parallel_set_child_fn): Likewise.
3056 (gimple_omp_parallel_child_fn_ptr): Likewise.
3057 (gimple_omp_parallel_child_fn): Likewise.
3058 (gimple_omp_parallel_set_clauses): Likewise.
3059 (gimple_omp_parallel_clauses_ptr): Likewise.
3060 (gimple_omp_parallel_clauses): Likewise.
3061 (gimple_omp_for_set_pre_body): Likewise.
3062 (gimple_omp_for_pre_body_ptr): Likewise.
3063 (gimple_omp_for_set_incr): Likewise.
3064 (gimple_omp_for_incr_ptr): Likewise.
3065 (gimple_omp_for_incr): Likewise.
3066 (gimple_omp_for_set_final): Likewise.
3067 (gimple_omp_for_final_ptr): Likewise.
3068 (gimple_omp_for_final): Likewise.
3069 (gimple_omp_for_set_initial): Likewise.
3070 (gimple_omp_for_initial_ptr): Likewise.
3071 (gimple_omp_for_initial): Likewise.
3072 (gimple_omp_for_set_index): Likewise.
3073 (gimple_omp_for_index_ptr): Likewise.
3074 (gimple_omp_for_index): Likewise.
3075 (gimple_omp_for_collapse): Likewise.
3076 (gimple_omp_for_set_clauses): Likewise.
3077 (gimple_omp_for_clauses_ptr): Likewise.
3078 (gimple_omp_for_clauses): Likewise.
3079 (gimple_omp_critical_set_name): Likewise.
3080 (gimple_omp_critical_name_ptr): Likewise.
3081 (gimple_omp_critical_name): Likewise.
3082 (gimple_eh_dispatch_set_region): Likewise.
3083 (gimple_eh_dispatch_region): Likewise.
3084 (gimple_resx_set_region): Likewise.
3085 (gimple_resx_region): Likewise.
3086 (gimple_phi_set_arg): Likewise.
3087 (gimple_phi_arg): Likewise.
3088 (gimple_phi_set_result): Likewise.
3089 (gimple_phi_result_ptr): Likewise.
3090 (gimple_phi_result): Likewise.
3091 (gimple_phi_num_args): Likewise.
3092 (gimple_phi_capacity): Likewise.
3093 (gimple_wce_set_cleanup): Likewise.
3094 (gimple_wce_cleanup_ptr): Likewise.
3095 (gimple_try_set_cleanup): Likewise.
3096 (gimple_try_set_eval): Likewise.
3097 (gimple_try_cleanup_ptr): Likewise.
3098 (gimple_try_eval_ptr): Likewise.
3099 (gimple_eh_else_set_e_body): Likewise.
3100 (gimple_eh_else_set_n_body): Likewise.
3101 (gimple_eh_else_e_body_ptr): Likewise.
3102 (gimple_eh_else_n_body_ptr): Likewise.
3103 (gimple_eh_must_not_throw_set_fndecl): Likewise.
3104 (gimple_eh_must_not_throw_fndecl): Likewise.
3105 (gimple_eh_filter_set_failure): Likewise.
3106 (gimple_eh_filter_set_types): Likewise.
3107 (gimple_eh_filter_failure_ptr): Likewise.
3108 (gimple_eh_filter_types_ptr): Likewise.
3109 (gimple_eh_filter_types): Likewise.
3110 (gimple_catch_set_handler): Likewise.
3111 (gimple_catch_set_types): Likewise.
3112 (gimple_catch_handler_ptr): Likewise.
3113 (gimple_catch_types_ptr): Likewise.
3114 (gimple_catch_types): Likewise.
3115 (gimple_asm_string): Likewise.
3116 (gimple_asm_set_label_op): Likewise.
3117 (gimple_asm_label_op): Likewise.
3118 (gimple_asm_set_clobber_op): Likewise.
3119 (gimple_asm_clobber_op): Likewise.
3120 (gimple_asm_set_output_op): Likewise.
3121 (gimple_asm_output_op_ptr): Likewise.
3122 (gimple_asm_output_op): Likewise.
3123 (gimple_asm_set_input_op): Likewise.
3124 (gimple_asm_input_op_ptr): Likewise.
3125 (gimple_asm_input_op): Likewise.
3126 (gimple_asm_nlabels): Likewise.
3127 (gimple_asm_nclobbers): Likewise.
3128 (gimple_asm_noutputs): Likewise.
3129 (gimple_asm_ninputs): Likewise.
3130 (gimple_bind_set_block): Likewise.
3131 (gimple_bind_block): Likewise.
3132 (gimple_bind_add_seq): Likewise.
3133 (gimple_bind_add_stmt): Likewise.
3134 (gimple_bind_set_body): Likewise.
3135 (gimple_bind_body_ptr): Likewise.
3136 (gimple_bind_append_vars): Likewise.
3137 (gimple_bind_set_vars): Likewise.
3138 (gimple_bind_vars): Likewise.
3139 (gimple_call_clobber_set): Likewise.
3140 (gimple_call_use_set): Likewise.
3141 (gimple_call_set_internal_fn): Likewise.
3142 (gimple_call_set_fntype): Likewise.
3143 (gimple_call_fntype): Likewise.
3144 (gimple_omp_return_lhs_ptr): Likewise.
3145 (gimple_omp_return_lhs): Likewise.
3146 (gimple_omp_return_set_lhs): Likewise.
3147 (gimple_omp_taskreg_set_data_arg): Likewise.
3148 (gimple_omp_taskreg_data_arg_ptr): Likewise.
3149 (gimple_omp_taskreg_data_arg): Likewise.
3150 (gimple_omp_taskreg_set_child_fn): Likewise.
3151 (gimple_omp_taskreg_child_fn_ptr): Likewise.
3152 (gimple_omp_taskreg_child_fn): Likewise.
3153 (gimple_omp_taskreg_set_clauses): Likewise.
3154 (gimple_omp_taskreg_clauses_ptr): Likewise.
3155 (gimple_omp_taskreg_clauses): Likewise.
3156 (gimple_vuse): Likewise.
3157 (gimple_vdef): Likewise.
3158 (gimple_vuse_ptr): Likewise.
3159 (gimple_vdef_ptr): Likewise.
3160 * tree-inline.c (copy_debug_stmt): Likewise.
3161 * tree-phinodes.c (make_phi_node): Likewise.
3163 * gimple.h (is_a_helper <const gimple_statement_with_ops>::test): New.
3164 (is_a_helper <gimple_statement_with_ops>::test): New.
3165 (is_a_helper <const gimple_statement_with_memory_ops>::test): New.
3166 (is_a_helper <gimple_statement_with_memory_ops>::test): New.
3168 * gimple-streamer-in.c (input_gimple_stmt): Port from union
3169 access to use of as_a.
3170 * gimple.c (gimple_build_asm_1): Likewise.
3171 (gimple_build_try): Likewise. Also, return a specific subclass
3172 rather than just gimple.
3173 (gimple_build_resx): Port from union access to use of as_a.
3174 (gimple_build_eh_dispatch): Likewise.
3175 (gimple_build_omp_for): Likewise. Also, convert allocation of iter
3176 now that gengtype no longer provides a typed allocator function.
3177 (gimple_copy): Likewise.
3178 * gimple.h (gimple_build_try): Return a specific subclass rather
3180 * gimplify.c (gimplify_cleanup_point_expr): Replace union access
3181 with subclass access by making use of new return type of
3183 * tree-phinodes.c: (allocate_phi_node): Return a
3184 "gimple_statement_phi *" rather than just a gimple.
3185 (resize_phi_node): Likewise.
3186 (make_phi_node): Replace union access with subclass access by
3187 making use of new return type of allocate_phi_node.
3188 (reserve_phi_args_for_new_edge): Replace union access with as_a.
3189 (remove_phi_arg_num): Accept a "gimple_statement_phi *" rather
3191 (remove_phi_args): Update for change to remove_phi_arg_num.
3193 * gdbhooks.py (GimplePrinter.to_string): Update lookup of
3194 code field to reflect inheritance, rather than embedding of
3195 the base gimple type.
3197 2013-11-19 Richard Biener <rguenther@suse.de>
3199 * cfgloop.h (struct loop_iterator): C++-ify, add constructor
3200 and destructor and make fel_next a member function.
3201 (fel_next): Transform into ...
3202 (loop_iterator::next): ... this.
3203 (fel_init): Transform into ...
3204 (loop_iterator::loop_iterator): ... this.
3205 (loop_iterator::~loop_iterator): New.
3206 (FOR_EACH_LOOP): Remove loop-iterator argument.
3207 (FOR_EACH_LOOP_BREAK): Remove no longer necessary macro.
3208 * cfgloop.c, cfgloopmanip.c, config/mn10300/mn10300.c,
3209 graphite-clast-to-gimple.c, graphite-scop-detection.c,
3210 graphite-sese-to-poly.c, ipa-inline-analysis.c, ipa-pure-const.c,
3211 loop-init.c, loop-invariant.c, loop-unroll.c, loop-unswitch.c,
3212 modulo-sched.c, predict.c, sel-sched-ir.c, tree-cfg.c, tree-data-ref.c,
3213 tree-if-conv.c, tree-loop-distribution.c, tree-parloops.c,
3214 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-dce.c,
3215 tree-ssa-loop-ch.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
3216 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
3217 tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
3218 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vrp.c: Adjust
3219 uses of FOR_EACH_LOOP and remove loop_iterator variables. Replace
3220 FOR_EACH_LOOP_BREAK with break.
3222 2013-11-19 Richard Biener <rguenther@suse.de>
3224 PR tree-optimization/59164
3225 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
3227 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust check
3228 whether we can create an epilogue loop to reflect thecases where
3231 2013-11-19 Andrew MacLeod <amacleod@redhat.com>
3233 * graphite-sese-to-poly.c: Include expr.h.
3235 2013-11-19 Richard Biener <rguenther@suse.de>
3238 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid forwarding
3239 loads into stmts that may clobber it.
3241 2013-11-19 Bernd Schmidt <bernds@codesourcery.com>
3243 * cgraphunit.c (symtab_terminator): New variable.
3244 (queued_nodes): Renamed from first. Use symtab_terminator as
3246 (analyze_functions): Adjust accordingly.
3247 (cgraph_process_new_functions): Return void.
3248 * cgraph.h (cgraph_process_new_functions): Adjust declaration.
3250 2013-11-19 Marek Polacek <polacek@redhat.com>
3252 * opts.c (common_handle_option): Add -fsanitize=null option.
3253 Turn off -fdelete-null-pointer-checks option when doing the
3254 NULL pointer checking.
3255 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH): Add.
3256 * tree-pass.h (make_pass_ubsan): Declare.
3257 (make_pass_sanopt): Declare.
3258 * timevar.def (TV_TREE_UBSAN): New timevar.
3259 * passes.def: Add pass_sanopt and pass_ubsan.
3260 * ubsan.h (ubsan_null_ckind): New enum.
3261 (ubsan_mismatch_data): New struct.
3262 (ubsan_expand_null_ifn): Declare.
3263 (ubsan_create_data): Adjust declaration.
3264 (ubsan_type_descriptor): Likewise.
3265 * asan.c: Include "ubsan.h".
3266 (pass_data_sanopt): New pass.
3267 (execute_sanopt): New function.
3268 (gate_sanopt): Likewise.
3269 (make_pass_sanopt): Likewise.
3270 (class pass_sanopt): New class.
3271 * ubsan.c: Include tree-pass.h, gimple-ssa.h, gimple-walk.h,
3272 gimple-iterator.h and cfgloop.h.
3273 (PROB_VERY_UNLIKELY): Define.
3274 (tree_type_map_hash): New function.
3275 (ubsan_type_descriptor): Add new parameter.
3276 Improve type name generation.
3277 (ubsan_create_data): Add new parameter. Add pointer data into
3279 (ubsan_expand_null_ifn): New function.
3280 (instrument_member_call): Likewise.
3281 (instrument_mem_ref): Likewise.
3282 (instrument_null): Likewise.
3283 (ubsan_pass): Likewise.
3284 (gate_ubsan): Likewise.
3285 (make_pass_ubsan): Likewise.
3286 (ubsan_instrument_unreachable): Adjust ubsan_create_data call.
3287 (class pass_ubsan): New class.
3288 (pass_data_ubsan): New pass.
3289 * flag-types.h (enum sanitize_code): Add SANITIZE_NULL.
3290 * internal-fn.c (expand_UBSAN_NULL): New function.
3291 * cgraphunit.c (varpool_finalize_decl): Call varpool_assemble_decl
3292 even when !flag_toplevel_reorder.
3293 * internal-fn.def (UBSAN_NULL): New.
3295 2013-11-19 Jan Hubicka <jh@suse.cz>
3297 * cgraph.c (cgraph_create_indirect_edge): Use
3298 get_polymorphic_call_info.
3299 * cgraph.h (cgraph_indirect_call_info): Add outer_type,
3300 maybe_in_construction and maybe_derived_type.
3301 * ipa-utils.h (ipa_polymorphic_call_context): New structure.
3302 (ipa_dummy_polymorphic_call_context): New global var.
3303 (possible_polymorphic_call_targets): Add context paramter.
3304 (dump_possible_polymorphic_call_targets): Likewise; update wrappers.
3305 (possible_polymorphic_call_target_p): Likewise.
3306 (get_polymorphic_call_info): New function.
3307 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): New function.
3308 (add_type_duplicate): Remove forgotten debug output.
3309 (method_class_type): Add sanity check.
3310 (maybe_record_node): Add FINALP parameter.
3311 (record_binfo): Add OUTER_TYPE and OFFSET; walk the inner
3312 by info by get_binfo_at_offset.
3313 (possible_polymorphic_call_targets_1): Add OUTER_TYPE/OFFSET
3314 parameters; pass them to record-binfo.
3315 (polymorphic_call_target_d): Add context and FINAL.
3316 (polymorphic_call_target_hasher::hash): Hash context.
3317 (polymorphic_call_target_hasher::equal): Compare context.
3318 (free_polymorphic_call_targets_hash):
3319 (get_class_context): New function.
3320 (contains_type_p): New function.
3321 (get_polymorphic_call_info): New function.
3322 (walk_bases): New function.
3323 (possible_polymorphic_call_targets): Add context parameter; honnor it.
3324 (dump_possible_polymorphic_call_targets): Dump context.
3325 (possible_polymorphic_call_target_p): Add context.
3326 (update_type_inheritance_graph): Update comment.s
3327 (ipa_set_jf_known_type): Assert that compoentn type is known.
3328 (ipa_note_param_call): Do not tamper with offsets.
3329 (ipa_analyze_indirect_call_uses): When offset is being changed; clear
3331 (update_indirect_edges_after_inlining): Likewise.
3332 (ipa_write_indirect_edge_info): Stream new fields.
3333 (ipa_read_indirect_edge_info): Stream in new fields.
3335 2013-11-19 Jan Hubicka <jh@suse.cz>
3337 * tree-pretty-print.c (dump_generic_node): Print class type of
3340 2013-11-19 Joey Ye <joey.ye@arm.com>
3342 * config/arm/arm.opt (-marm-pic-data-is-text-relative): New option.
3343 * doc/invoke.texi (-marm-pic-data-is-text-relative): Documentation
3345 * config/arm/arm.c (arm_option_override): By default disable
3346 -marm-pic-data-is-text-relative.
3347 (legitimize_pic_address): Use arm_pic_data_is_text_relative.
3348 (arm_assemble_integer): Likewise.
3349 * config/arm/arm.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
3350 New macro to initialize -marm-pic-data-is-text-relative.
3352 2013-11-19 Bin Cheng <bin.cheng@arm.com>
3354 * tree-ssa-loop-ivopts.c (enum ainc_type): New.
3355 (address_cost_data): New field.
3356 (get_address_cost): Compute auto-increment rtx cost in ainc_costs.
3357 Use ainc_costs for auto-increment rtx patterns. Cleanup TWS.
3359 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
3361 * config/aarch64/aarch64.md: Remove v8type from all insns.
3363 2013-11-19 Richard Biener <rguenther@suse.de>
3365 PR tree-optimization/57517
3366 * tree-predcom.c (combinable_refs_p): Verify the combination
3367 is always executed when the refs are.
3369 2013-11-19 Jeff Law <law@redhat.com>
3371 * tree-ssa-threadupdate.c: Include ssa-iterators.h
3372 (copy_phi_arg_into_existing_phi): New function.
3373 (any_remaining_duplicated_blocks): Likewise.
3374 (ssa_fix_duplicate_block_edges): Handle multiple duplicated
3375 blocks on a jump threading path.
3377 * tree-ssa-threadupdate.c (thread_through_loop_header): Do not
3378 thread through a joiner which has the latch edge.
3380 2013-11-19 Jan Hubicka <jh@suse.cz>
3382 * md.texi (setmem): Document new parameter.
3383 * optabs.c (maybe_gen_insn): Support 9 operands.
3384 * builtins.c (determine_block_size): Add probable_max_size;
3385 support anti-ranges.
3386 (expand_builtin_memcpy. expand_builtin_memset_args): Pass around
3388 * expr.c (emit_block_move_via_movmem, emit_block_move_hints,
3389 emit_block_move, clear_storage_hints, set_storage_via_setmem):
3391 * expr.h (emit_block_move_hints, clear_storage_hints,
3392 set_storage_via_setmem): Update prototype.
3393 * i386.md (setmem, movmem patterns): Add 9th operand.
3394 * i386-protos.h (ix86_expand_set_or_movmem): Update prototype.
3395 * i386.c (ix86_expand_set_or_movmem): Take probable_max_size_exp
3396 argument; pass it to decide_alg.
3398 2013-11-19 David Malcolm <dmalcolm@redhat.com>
3400 * basic-block.h (n_basic_blocks_for_function): Rename macro to...
3401 (n_basic_blocks_for_fn): ...this.
3403 (n_basic_blocks): Eliminate macro as work towards making uses of
3406 * cfgloop.c (init_loops_structure): Update for renaming of
3407 "n_basic_blocks_for_function" to "n_basic_blocks_for_fn".
3408 * graph.c (draw_cfg_nodes_no_loops): Likewise.
3409 * ipa-utils.c (ipa_merge_profiles): Likewise.
3410 * lto-streamer-in.c (make_new_block): Likewise.
3411 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
3412 (dump_function_to_file): Likewise.
3414 * alias.c (init_alias_analysis): Replace usage of "n_basic_blocks"
3415 macro with "n_basic_blocks_for_fn (cfun)".
3416 * bb-reorder.c (partition_hot_cold_basic_blocks): Likewise.
3417 (duplicate_computed_gotos): Likewise.
3418 (reorder_basic_blocks): Likewise.
3419 * bt-load.c (augment_live_range): Likewise.
3420 * cfg.c (expunge_block): Likewise.
3421 (compact_blocks): Likewise.
3422 * cfganal.c (single_pred_before_succ_order): Likewise.
3423 (compute_idf): Likewise.
3424 (flow_dfs_compute_reverse_init): Likewise.
3425 (pre_and_rev_post_order_compute): Likewise.
3426 (pre_and_rev_post_order_compute_fn): Likewise.
3427 (inverted_post_order_compute): Likewise.
3428 (post_order_compute): Likewise.
3429 (print_edge_list): Likewise.
3430 (find_unreachable_blocks): Likewise.
3431 (mark_dfs_back_edges): Likewise.
3432 * cfgcleanup.c (try_optimize_cfg): Likewise.
3433 (try_forward_edges): Likewise.
3434 * cfghooks.c (dump_flow_info): Likewise.
3435 * cfgloop.c (verify_loop_structure): Likewise.
3436 (get_loop_body): Likewise.
3437 (flow_loops_find): Likewise.
3438 * cfgloopmanip.c (add_loop): Likewise.
3439 (remove_path): Likewise.
3440 (find_path): Likewise.
3441 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
3442 (rtl_verify_bb_layout): Likewise.
3443 (entry_of_function): Likewise.
3444 (rtl_create_basic_block): Likewise.
3445 * coverage.c (coverage_compute_cfg_checksum): Likewise.
3446 * cprop.c (one_cprop_pass): Likewise.
3447 (is_too_expensive): Likewise.
3448 * df-core.c (df_compute_cfg_image): Likewise.
3449 (df_compact_blocks): Likewise.
3450 (df_worklist_dataflow_doublequeue): Likewise.
3451 * dominance.c (calculate_dominance_info): Likewise.
3452 (calc_dfs_tree): Likewise.
3453 (calc_dfs_tree_nonrec): Likewise.
3454 (init_dom_info): Likewise.
3455 * domwalk.c (cmp_bb_postorder): Likewise.
3456 * function.c (thread_prologue_and_epilogue_insns): Likewise.
3457 (generate_setjmp_warnings): Likewise.
3458 * fwprop.c (build_single_def_use_links): Likewise.
3459 * gcse.c (is_too_expensive): Likewise.
3460 (one_code_hoisting_pass): Likewise.
3461 (one_pre_gcse_pass): Likewise.
3462 * graphite.c (graphite_initialize): Likewise.
3463 * haifa-sched.c (haifa_sched_init): Likewise.
3464 * ipa-inline-analysis.c (estimate_function_body_sizes): Likewise.
3465 * ira.c (split_live_ranges_for_shrink_wrap): Likewise.
3466 * ira-build.c (ira_build): Likewise.
3467 * lcm.c (compute_nearerout): Likewise.
3468 (compute_available): Likewise.
3469 (compute_laterin): Likewise.
3470 (compute_antinout_edge): Likewise.
3471 * lra-lives.c (lra_create_live_ranges): Likewise.
3472 * lra.c (has_nonexceptional_receiver): Likewise.
3473 * mcf.c (create_fixup_graph): Likewise.
3474 * profile.c (branch_prob): Likewise.
3475 * reg-stack.c (convert_regs_2): Likewise.
3476 * regrename.c (regrename_analyze): Likewise.
3477 * reload1.c (has_nonexceptional_receiver): Likewise.
3478 * reorg.c (dbr_schedule): Likewise.
3479 * sched-deps.c (sched_deps_init): Likewise.
3480 * sched-ebb.c (schedule_ebbs): Likewise.
3481 * sched-rgn.c (extend_regions): Likewise.
3482 (schedule_insns): Likewise.
3483 (sched_rgn_init): Likewise.
3484 (extend_rgns): Likewise.
3485 (haifa_find_rgns): Likewise.
3486 * sel-sched-ir.c (recompute_rev_top_order): Likewise.
3487 (sel_recompute_toporder): Likewise.
3488 * sel-sched.c (run_selective_scheduling): Likewise.
3489 * store-motion.c (one_store_motion_pass): Likewise.
3490 (remove_reachable_equiv_notes): Likewise.
3491 * tracer.c (tracer): Likewise.
3492 (tail_duplicate): Likewise.
3493 * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
3494 (dump_cfg_stats): Likewise.
3495 (gimple_dump_cfg): Likewise.
3496 (create_bb): Likewise.
3497 (build_gimple_cfg): Likewise.
3498 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
3499 * tree-inline.c (optimize_inline_calls): Likewise.
3500 (fold_marked_statements): Likewise.
3501 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Likewise.
3502 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
3503 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
3504 * tree-ssa-loop-manip.c (compute_live_loop_exits): Likewise.
3505 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
3506 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
3507 * tree-ssa-pre.c (do_pre): Likewise.
3508 (init_pre): Likewise.
3509 (compute_avail): Likewise.
3510 * tree-ssa-reassoc.c (init_reassoc): Likewise.
3511 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
3512 * tree-ssa-tail-merge.c (alloc_cluster_vectors): Likewise.
3513 (init_worklist): Likewise.
3514 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
3515 * var-tracking.c (variable_tracking_main_1): Likewise.
3516 (vt_find_locations): Likewise.
3517 (vt_stack_adjustments): Likewise.
3518 * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
3519 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
3521 2013-11-18 Jan Hubicka <jh@suse.cz>
3523 * profile.c (compute_branch_probabilities): Do not sanity check
3526 2013-11-18 Kenneth Zadeck <zadeck@naturalbridge.com>
3528 * tree.c (int_fits_type_p): Change GET_MODE_BITSIZE to
3530 * fold-const.c (fold_single_bit_test_into_sign_test)
3531 (fold_binary_loc): Change GET_MODE_BITSIZE to GET_MODE_PRECISION.
3533 2013-11-18 Teresa Johnson <tejohnson@google.com>
3535 * cfgrtl.c (cfg_layout_initialize): Assert if we try to go into
3536 cfglayout after bb reordering.
3537 * passes.def: Move compgotos before bb reordering since it goes into
3540 2013-11-18 Bernd Schmidt <bernds@codesourcery.com>
3542 * cgraphunit.c (ipa_passes): Don't execute all_lto_gen_passes.
3543 * lto-streamer-out.c (lto_output, produce_asm_for_decls): No longer
3545 (pass_data_ipa_lto_gimple_out, pass_ipa_lto_gimple_out,
3546 make_pass_ipa_lto_gimple_out, pass_data_ipa_lto_finish_out,
3547 pass_ipa_lto_finish_out, make_pass_ipa_lto_finish_out): Remove.
3548 * lto-streamer.h (lto_output, produce_asm_for_decls): Declare.
3549 * pass-manager.h (GCC_PASS_LISTS, class pass_manager):
3550 Remove all_lto_gen_passes.
3551 * passes.c (pass_manager::dump_passes): Remove its use.
3552 (pass_manager::register_pass): Likewise.
3553 (ipa_read_summaries, ipa_read_optimization_summaries): Likewise.
3554 (pass_manager::pass_manager): Don't initialize or use it.
3555 (write_lto): New static function.
3556 (ipa_write_summaries_1, ipa_write_optimization_summaries): Use it
3557 instead of using all_lto_gen_passes.
3558 * passes.def (all_lto_gen_passes, pass_ipa_lto_gimple_out,
3559 pass_ipa_lto_finish_out): Delete.
3560 * tree-pass.h (make_pass_ipa_lto_gimple_out,
3561 make_pass_ipa_lto_finish_out): Don't declare.
3563 2013-11-18 Jeff Law <law@redhat.com>
3565 * tree-ssa-threadupdate.c (redirection_data): Record two
3566 duplicated blocks instead of just one.
3567 (local_info): Explain why we don't create a template for the
3568 second duplicated block in a thread path.
3569 (create_block_for_threading): Accept argument indicating array
3570 index into redirection_data to store its result.
3571 (lookup_redirection_data): Initialize both duplicate blocks.
3572 (ssa_create_duplicates): If a jump threading path needs multiple
3573 blocks duplicated, then duplicate them.
3574 (ssa_fix_duplicate_block_edges): Corresponding changes.
3575 (ssa_fixup_template_block, thread_single_edge): Likewise.
3577 2013-11-18 Marek Polacek <polacek@redhat.com>
3579 * doc/invoke.texi: Extend -fsanitize=undefined documentation.
3581 2013-11-18 Andrew Pinski <apinski@cavium.com>
3582 Steve Ellcey <sellcey@mips.com>
3585 * config/mips/mips.md (*mov<GPR:mode>_on_<MOVECC:mode>): Remove
3586 type restriction from equality_operator on conditonal move.
3587 (*mov<SCALARF:mode>_on_<MOVECC:mode>): Ditto.
3588 (*mov<GPR:mode>_on_<GPR2:mode>_ne): New.
3590 2013-11-18 Jeff Law <law@redhat.com>
3592 * tree-ssa-threadupdate.c: Fix file block comment.
3593 Fix minor indention issue.
3595 2013-11-18 Uros Bizjak <ubizjak@gmail.com>
3597 * config/i386/i386.c (ix86_decompose_address): Use REG_P instead of
3598 ix86_address_subreg_operand. Move subreg checks to
3599 ix86_validate_address_register. Move address override check to
3600 ix86_legitimate_address_p.
3601 (ix86_validate_address_register): New function.
3602 (ix86_legitimate_address_p): Call ix86_validate_address_register
3603 to validate base and index registers. Add address override check
3604 from ix86_decompose_address.
3605 (ix86_decompose_address): Remove.
3607 2013-11-18 Richard Biener <rguenther@suse.de>
3609 PR tree-optimization/59125
3610 PR tree-optimization/54570
3611 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): When inlining
3612 is not complete do not treat component-references with offset zero
3613 but different fields as equal.
3614 * tree-object-size.c: Include tree-phinodes.h and ssa-iterators.h.
3615 (compute_object_sizes): Apply TLC. Propagate the constant
3616 results into all uses and fold their stmts.
3617 * passes.def (pass_all_optimizations): Move pass_object_sizes
3618 after the first pass_forwprop and before pass_fre.
3620 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3622 * tree.h (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
3623 * tree.c (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
3624 (tree_ctz): Remove cast to unsigned type.
3625 * builtins.c (fold_builtin_memory_op): Likewise.
3626 * dwarf2out.c (descr_info_loc): Likewise.
3627 * godump.c (go_output_typedef): Likewise.
3628 * omp-low.c (expand_omp_simd): Likewise.
3629 * stor-layout.c (excess_unit_span): Likewise.
3630 * tree-object-size.c (addr_object_size): Likewise.
3631 * tree-sra.c (analyze_all_variable_accesses): Likewise.
3632 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
3633 (simplify_rotate): Likewise.
3634 * tree-ssa-strlen.c (adjust_last_stmt, handle_builtin_memcpy)
3635 (handle_pointer_plus): Likewise.
3636 * tree-switch-conversion.c (check_range): Likewise.
3637 * tree-vect-patterns.c (vect_recog_rotate_pattern): Likewise.
3638 * tsan.c (instrument_builtin_call): Likewise.
3639 * cfgexpand.c (defer_stack_allocation): Add cast to HOST_WIDE_INT.
3640 * trans-mem.c (tm_log_add): Likewise.
3641 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Likewise.
3642 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
3643 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Likewise.
3644 * config/mips/mips.c (r10k_safe_mem_expr_p): Make offset unsigned.
3646 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3648 * tree.h (host_integerp, tree_low_cst): Delete.
3649 * tree.c (host_integerp, tree_low_cst): Delete.
3651 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3653 * expr.h: Update comments to refer to tree_to_[su]hwi rather
3655 * fold-const.c (fold_binary_loc): Likewise.
3656 * expr.c (store_constructor): Use tree_to_uhwi rather than
3658 * ipa-utils.h (possible_polymorphic_call_target_p): Likewise.
3659 * stmt.c (emit_case_dispatch_table): Likewise.
3660 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
3662 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3664 * alias.c, asan.c, builtins.c, cfgexpand.c, cgraph.c,
3665 config/aarch64/aarch64.c, config/alpha/predicates.md,
3666 config/arm/arm.c, config/darwin.c, config/epiphany/epiphany.c,
3667 config/i386/i386.c, config/iq2000/iq2000.c, config/m32c/m32c-pragma.c,
3668 config/mep/mep-pragma.c, config/mips/mips.c,
3669 config/picochip/picochip.c, config/rs6000/rs6000.c, cppbuiltin.c,
3670 dbxout.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, fold-const.c,
3671 function.c, gimple-fold.c, godump.c, ipa-cp.c, ipa-prop.c, omp-low.c,
3672 predict.c, sdbout.c, stor-layout.c, trans-mem.c, tree-object-size.c,
3673 tree-sra.c, tree-ssa-ccp.c, tree-ssa-forwprop.c,
3674 tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-niter.c,
3675 tree-ssa-loop-prefetch.c, tree-ssa-strlen.c, tree-stdarg.c,
3676 tree-switch-conversion.c, tree-vect-generic.c, tree-vect-loop.c,
3677 tree-vect-patterns.c, tree-vrp.c, tree.c, tsan.c, ubsan.c, varasm.c:
3678 Replace tree_low_cst (..., 1) with tree_to_uhwi throughout.
3680 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3682 * builtins.c, cilk-common.c, config/aarch64/aarch64.c,
3683 config/alpha/alpha.c, config/arm/arm.c, config/c6x/predicates.md,
3684 config/i386/i386.c, config/ia64/predicates.md, config/s390/s390.c,
3685 coverage.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c, expr.h,
3686 fold-const.c, gimple-fold.c, godump.c, ipa-prop.c, omp-low.c,
3687 predict.c, rtlanal.c, sdbout.c, stmt.c, stor-layout.c, targhooks.c,
3688 tree-cfg.c, tree-data-ref.c, tree-inline.c, tree-ssa-forwprop.c,
3689 tree-ssa-loop-prefetch.c, tree-ssa-phiopt.c, tree-ssa-sccvn.c,
3690 tree-ssa-strlen.c, tree-stdarg.c, tree-vect-data-refs.c,
3691 tree-vect-patterns.c, tree.c, tree.h, var-tracking.c, varasm.c:
3692 Replace tree_low_cst (..., 0) with tree_to_shwi throughout.
3694 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3696 * tree.h (tree_to_shwi, tree_to_uhwi): Declare, with inline expansions.
3697 * tree.c (tree_to_shwi, tree_to_uhwi): New functions.
3699 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3701 * expr.h: Update comments to refer to tree_fits_[su]hwi_p rather
3704 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3706 * builtins.c, config/alpha/alpha.c, config/iq2000/iq2000.c,
3707 config/mips/mips.c, dbxout.c, dwarf2out.c, expr.c, fold-const.c,
3708 gimple-fold.c, godump.c, omp-low.c, predict.c, sdbout.c, stor-layout.c,
3709 tree-dfa.c, tree-sra.c, tree-ssa-forwprop.c, tree-ssa-loop-prefetch.c,
3710 tree-ssa-phiopt.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
3711 tree-ssa-structalias.c, tree-vect-data-refs.c, tree-vect-patterns.c,
3712 tree.c, varasm.c, alias.c, cfgexpand.c, config/aarch64/aarch64.c,
3713 config/arm/arm.c, config/epiphany/epiphany.c, config/i386/i386.c,
3714 config/m32c/m32c-pragma.c, config/mep/mep-pragma.c,
3715 config/rs6000/rs6000.c, config/sparc/sparc.c, emit-rtl.c, function.c,
3716 gimplify.c, ipa-prop.c, stmt.c, trans-mem.c, tree-cfg.c,
3717 tree-object-size.c, tree-ssa-ccp.c, tree-ssa-loop-ivcanon.c,
3718 tree-stdarg.c, tree-switch-conversion.c, tree-vect-generic.c,
3719 tree-vrp.c, tsan.c, ubsan.c: Replace host_integerp (..., 1) with
3720 tree_fits_uhwi_p throughout.
3722 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3724 * builtins.c, config/alpha/alpha.c, config/c6x/predicates.md,
3725 config/ia64/predicates.md, config/iq2000/iq2000.c, config/mips/mips.c,
3726 config/s390/s390.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c,
3727 expr.h, fold-const.c, gimple-fold.c, gimple-ssa-strength-reduction.c,
3728 gimple.c, godump.c, graphite-scop-detection.c, graphite-sese-to-poly.c,
3729 omp-low.c, predict.c, rtlanal.c, sdbout.c, simplify-rtx.c,
3730 stor-layout.c, tree-data-ref.c, tree-dfa.c, tree-pretty-print.c,
3731 tree-sra.c, tree-ssa-alias.c, tree-ssa-forwprop.c,
3732 tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c,
3733 tree-ssa-phiopt.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
3734 tree-ssa-strlen.c, tree-ssa-structalias.c, tree-vect-data-refs.c,
3735 tree-vect-patterns.c, tree-vectorizer.h, tree.c, var-tracking.c,
3736 varasm.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
3739 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3741 * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Declare.
3742 * tree.c (tree_fits_shwi_p, tree_fits_uhwi_p): Define.
3744 2013-11-18 Kirill Yukhin <kirill.yukhin@intel.com>
3746 * config/ia64/ia64.c (ia64_split_tmode_move): Mark load with `dead'
3747 flag if it kills its address, not its post-increment.
3749 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
3751 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
3752 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
3753 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
3754 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
3755 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
3756 (gimple_call_with_bounds_p): New.
3757 (gimple_call_set_with_bounds): New.
3758 (gimple_call_num_nobnd_args): Remove.
3759 (gimple_call_nobnd_arg): Remove.
3760 * tree.h (CALL_WITH_BOUNDS_P): New.
3761 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
3763 2013-11-18 Trevor Saunders <tsaunders@mozilla.com>
3765 * cgraph.h (symtab_node_asm_name): Rename to symtab_node::asm_name.
3766 (symtab_node_name): Rename to symtab_node::name.
3767 (cgraph_node_asm_name): Remove.
3768 (varpool_node_asm_name): Remove.
3769 * cgraph.c cgraphclones.c cgraphunit.c ipa-cp.c ipa-devirt.c
3770 ipa-inline-analysis.c ipa-inline-transform.c ipa-inline.c
3771 ipa-profile.c ipa-prop.c ipa-pure-const.c ipa-ref.c ipa-reference.c
3772 ipa-utils.c ipa.c symtab.c tree-inline.c tree-sra.c
3773 tree-ssa-structalias.c value-prof.c varpool.c Adjust.
3775 2013-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3777 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): New table.
3778 * config/arm/arm.c (arm_cortex_a53_tune): New.
3779 * config/arm/arm-cores.def (cortex-a53): Use cortex_a53 tuning struct.
3781 2013-11-12 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
3783 * config.gcc (i[34567]86-*-linux* | ...): Add bdver4.
3784 (case ${target}): Add bdver4.
3785 * config/i386/bdver3.md: Add bdver4.
3786 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
3787 -march=native recognize bdver4 processors.
3788 * config/i386/i386-c.c (ix86_target_macros_internal): Add
3789 bdver4 def_and_undef
3790 * config/i386/i386.c (struct processor_costs bdver4_cost): New.
3791 (m_BDVER4): New definition.
3792 (m_AMD_MULTIPLE): Includes m_BDVER4.
3793 (processor_target_table): Add bdver4 entry.
3794 (static const char *const cpu_names): Add bdver4 entry.
3795 (software_prefetching_beneficial_p): Add bdver3.
3796 (ix86_option_override_internal): Add bdver4 instruction sets.
3797 (ix86_issue_rate): Add bdver4.
3798 (ix86_adjust_cost): Add bdver4.
3799 (ia32_multipass_dfa_lookahead): Add bdver4.
3800 (enum processor_model): Add M_AMDFAM15H_BDVER4.
3801 (struct _arch_names_table): Add M_AMDFAM15H_BDVER4.
3802 (has_dispatch): Add bdver4.
3803 * config/i386/i386.h (TARGET_BDVER4): New definition.
3804 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver4.
3805 (enum processor_type): Add PROCESSOR_BDVER4.
3806 * config/i386/i386.md (define_attr "cpu"): Add bdver4.
3807 * config/i386/i386.opt (flag_dispatch_scheduler): Add bdver4.
3808 * doc/extend.texi: Add details about bdver4.
3809 * doc/invoke.texi: Add details about bdver4. Add
3810 fma4 and fsgsbase for bdver3. Add fma4 for bdver2.
3812 2013-11-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3814 * config/rs6000/rs6000.c (rs6000_emit_move): Use low word of
3815 sdmode_stack_slot also in little-endian mode.
3817 2013-11-17 Jan Hubicka <jh@suse.cz>
3819 * doc/md.texi (setmem, movstr): Update documentation.
3820 * builtins.c (determine_block_size): New function.
3821 (expand_builtin_memcpy): Use it and pass it to emit_block_move_hints.
3822 (expand_builtin_memset_args): Use it and pass it to
3823 set_storage_via_setmem.
3824 * expr.c (emit_block_move_via_movmem): Add min_size/max_size
3825 parameters; update call to expander.
3826 (emit_block_move_hints): Add min_size/max_size parameters.
3827 (clear_storage_hints): Likewise.
3828 (set_storage_via_setmem): Likewise.
3829 (clear_storage): Update.
3830 * expr.h (emit_block_move_hints, clear_storage_hints,
3831 set_storage_via_setmem): Update prototypes.
3832 * i386.c (ix86_expand_set_or_movmem): Add bounds; export.
3833 (ix86_expand_movmem, ix86_expand_setmem): Remove.
3834 (ix86_expand_movmem, ix86_expand_setmem): Remove.
3835 * i386.md (movmem, setmem): Pass parameters.
3837 2013-11-17 Uros Bizjak <ubizjak@gmail.com>
3840 * config/i386/i386.c (ix86_address_subreg_operand): Do not
3841 reject non-integer subregs.
3842 (ix86_decompose_address): Do not reject invalid CONST_INT RTXes.
3843 Move check for invalid x32 constant addresses ...
3844 (ix86_legitimate_address_p): ... here.
3846 2011-11-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3848 * config/rs6000/rs6000.c (rs6000_frame_related): Add split_reg
3849 parameter and use it in REG_FRAME_RELATED_EXPR note.
3850 (emit_frame_save): Call rs6000_frame_related with extra NULL_RTX
3852 (rs6000_emit_prologue): Likewise, but for little endian VSX
3853 stores, pass the source register of the store instead.
3855 2013-11-17 Andrew MacLeod <amacleod@redhat.com>
3857 * gimple.h: Reorder prototypes to match .c declaration order, and
3858 remove protyotypes for functions not in gimple.c.
3859 (LABEL): Move to tree-into-ssa.c.
3860 * gimple.c: Remove unused prototypes.
3861 (get_base_address): Move to tree.c.
3862 * tree.c (get_base_address): Relocate from gimple.c.
3863 * builtins.h (validate_gimple_arglist): Add prototype.
3864 * trans-mem.h (compute_transaction_bits, is_tm_ending): Add prototype.
3865 * cfgexpand.h: New File.
3866 (gimple_assign_rhs_to_tree, estimated_stack_frame_size): Add protoype.
3867 * tree.h (build_addr): Move to tree-nested.h.
3868 * tree-nested.h: New File.
3869 (build_addr, lower_nested_functions, insert_field_into_struct): Add
3871 * tree-inline.h (estimated_stack_frame_size): Remove prototype.
3872 * ipa-inline-analysis.c: Include cfgexpand.h.
3873 * cgraphunit.c: Include tree-nested.h.
3874 * omp-low.c: Likewise.
3875 * tree-parloops.c: Likewise.
3876 * gimple-low.h: Likewise.
3877 * tree-profile.h: Likewise.
3878 * expr.c: Include cfgexpand.h.
3879 * tree-affine.c: Likewise.
3880 * tree-ssa.c: Likewise.
3881 * tree-ssa-loop-im.c: Include trans-mem.h.
3882 * tree-ssa-tail-merge.c: Likewise.
3883 * value-prof.c: Include builtins.h and tree-nested.h.
3884 * tree-into-ssa.c (LABEL): Define here.
3886 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
3888 * config/arc/arc.c (arc_predicate_delay_insns): New function.
3889 (pass_data_arc_predicate_delay_insns): New pass_data instance.
3890 (pass_arc_predicate_delay_insns): New subclass of rtl_opt_class.
3891 (make_pass_arc_predicate_delay_insns): New function.
3892 (arc_init): Register pass_arc_predicate_delay_insns if
3893 flag_delayed_branch is active.
3895 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
3897 * config/arc/constraints.md (Rcq): Simplify register number test.
3899 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
3901 * gimple.h (enum gf_mask): Change the ordering of GF_OMP_* bits.
3903 2013-11-15 Kaz Kojima <kkojima@gcc.gnu.org>
3905 * config/sh/sh.c (barrier_align): Return 0 when barrier_or_label
3908 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
3910 * Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
3911 * gimple-pretty-print.c (dump_omp_for): Add case for
3912 GF_OMP_FOR_KIND_CILKSIMD.
3913 * gimple.h (enum gf_mask): Restructure entries to add
3914 GF_OMP_FOR_KIND_CILKSIMD.
3915 * gimplify.c (is_gimple_stmt): Add case for CILK_SIMD.
3916 (gimplify_omp_for): Handle CILK_SIMD.
3917 (gimplify_expr): Add ccase for CILK_SIMD.
3918 * omp-low.c (extract_omp_for_data): Handle CILK_SIMD.
3919 (build_outer_var_ref): Same.
3920 (check_omp_nesting_restrictions): Same.
3921 (lower_rec_input_clauses): Same.
3922 (lower_lastprivate_clauses): Same.
3923 (expand_omp_for): Same.
3924 (execute_expand_omp): Check flag_enable_cilkplus.
3925 (execute_lower_omp): Same.
3926 (diagnose_sb_0): Handle CILK_SIMD.
3927 (diagnose_omp_structured_block_errors): Check flag_enable_cilkplus.
3928 (setjmp_or_longjmp_p): New.
3929 (scan_omp_1_stmt): Error on setjmp/longjmp in a simd construct.
3930 * tree-pretty-print.c (dump_generic_node): Add case for CILK_SIMD.
3931 * tree.def: Add tree code for CILK_SIMD.
3933 2013-11-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3935 * config/rs6000/altivec.md (UNSPEC_VPERM_X, UNSPEC_VPERM_UNS_X):
3937 (altivec_vperm_<mode>): Revert earlier little endian change.
3938 (*altivec_vperm_<mode>_internal): Remove.
3939 (altivec_vperm_<mode>_uns): Revert earlier little endian change.
3940 (*altivec_vperm_<mode>_uns_internal): Remove.
3941 * config/rs6000/vector.md (vec_realign_load_<mode>): Revise commentary.
3943 2013-11-15 Jeff Law <law@redhat.com>
3945 * basic-block.h (has_abnormal_or_eh_outgoing_edge): Renamed from
3946 has_abnormal_or_outgoing_edge. Check for EH edges as well.
3947 * gimple-ssa-isolate-paths.c
3948 (find_implicit_erroneous_behaviour): Corresponding changes.
3949 Do not check stmt_ends_bb_p or GIMPLE_RETURN anymore.
3950 (find_explicit_erroneous_behaviour): Likewise.
3952 2013-11-15 Jeff Law <law@redhat.com>
3954 * ifcvt.c (find_cond_trap): Properly handle case where
3957 2013-11-15 Andreas Schwab <schwab@linux-m68k.org>
3959 * configure: Regenerate.
3961 2013-11-15 James Greenhalgh <james.greenhalgh@arm.com>
3963 * config/aarch64/aarch64-simd.md: Remove simd_type from all patterns.
3964 * config/aarch64/aarch64.md: Likewise, correct "type" attribute
3965 where it is incorrect or missing.
3967 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
3969 * dwarf2out.c (gen_enumeration_type_die): Remove unnecessary
3971 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
3972 Use TREE_INT_CST_LOW rather than tree_low_cst when reading the
3974 * fold-const.c (fold_binary_loc): Replace a host_integerp/tree_low_cst
3975 pair with a TREE_CODE test and TREE_INT_CST_LOW.
3976 * tree-vect-generic.c (expand_vector_divmod): Likewise.
3978 2013-11-15 Richard Biener <rguenther@suse.de>
3980 PR tree-optimization/50262
3981 * tree-ssa-alias.h (struct pt_solution): Split
3982 vars_contains_global into vars_contains_nonlocal,
3983 vars_contains_escaped and vars_contains_escaped_heap.
3984 * tree-ssa-structalias.c (label_visit): Expand comment.
3985 (handle_lhs_call): Adjust comment.
3986 (set_uids_in_ptset): Set the new flags appropriately.
3987 (pt_solution_set): Adjust.
3988 (pt_solution_set_var): Likewise.
3989 (pt_solution_ior_into): Likewise.
3990 (pt_solution_includes_global): Likewise.
3991 (pt_solutions_intersect_1): Optimize escaped handling.
3992 (compute_points_to_sets): Remove heap variable globalization.
3993 (ipa_escaped_pt): Adjust initializer.
3994 (pass_data_ipa_pta): Do not run TODO_update_ssa.
3995 * gimple-pretty-print.c (pp_points_to_solution): Print split flags.
3996 * tree-ssa-alias.c (dump_points_to_solution): Likewise.
3998 2013-11-15 Richard Biener <rguenther@suse.de>
4000 * tree-loop-distribution.c (tree_loop_distribution): Make sure
4001 to distribute all stores.
4003 2013-11-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4005 * doc/invoke.texi (-mabi=elfv1, -mabi=elfv2): Document.
4007 2013-11-15 Joseph Myers <joseph@codesourcery.com>
4009 * acinclude.m4 (GCC_GLIBC_VERSION_GTE_IFELSE): New configure macro.
4010 * configure.ac: Determine target_header_dir earlier.
4011 (--with-glibc-version): New configure option.
4012 Use GCC_GLIBC_VERSION_GTE_IFELSE in enable_gnu_unique_object,
4013 gcc_cv_libc_provides_ssp and gcc_cv_target_ldbl128 tests.
4014 * configure: Regenerate.
4015 * doc/install.texi (--enable-gnu-unique-object): Don't refer to
4016 native toolchains for default.
4017 (--with-glibc-version): Document.
4019 2013-11-15 Eric Botcazou <ebotcazou@adacore.com>
4021 * fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.
4023 2013-11-15 Uros Bizjak <ubizjak@gmail.com>
4025 * lto-streamer-in.c (input function): Call cgraph_create_node if
4026 cgraph_get_node failed.
4028 2013-11-14 Olivier Hainque <hainque@adacore.com>
4030 * cfgexpand.c (defer_stack_allocation): When optimization is enabled,
4031 defer allocation of DECL_IGNORED_P variables at toplevel unless really
4032 small. Factorize size threshold computation from the existing one.
4033 (expand_used_vars): Refine comment.
4035 2013-11-14 Cong Hou <congh@google.com>
4037 * tree-vectorizer.h (struct dr_with_seg_len): Remove the base
4038 address field as it can be obtained from dr. Rename the struct.
4039 * tree-vect-data-refs.c (comp_dr_with_seg_len_pair): Consider
4040 steps of data references during sort.
4041 (vect_prune_runtime_alias_test_list): Adjust with the change to
4042 struct dr_with_seg_len.
4043 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
4044 Adjust with the change to struct dr_with_seg_len.
4046 2013-11-14 Jeff Law <law@redhat.com>
4049 * basic-block.h (has_abnormal_outgoing_edge_p): Moved here from...
4050 * tree-inline.c (has_abnormal_outgoing_edge_p): Remove.
4051 * gimple-ssa-isolate-paths.c: Include tree-cfg.h.
4052 (find_implicit_erroneous_behaviour): If a block has abnormal outgoing
4053 edges, then ignore it. If the statement exhibiting erroneous
4054 behaviour ends basic blocks, with the exception of GIMPLE_RETURNs,
4055 then we can not optimize.
4056 (find_explicit_erroneous_behaviour): Likewise.
4058 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
4060 * gimplify-me.h: New file. Add prototypes.
4061 * gimplify.h: Don't include gimple.h.
4062 (struct gimplify_hasher, struct gimplify_ctx, is_gimple_sizepos):
4063 Relocate from gimple.h.
4064 * gimple.h (struct gimplify_hasher, struct gimplify_ctx,
4065 is_gimple_sizepos): Move to gimplify.h.
4066 (gimplify_hasher::hash, gimplify_hasher::equal): Move to gimplify.c.
4067 (enum gsi_iterator_update): Move to gimple-iterator.h.
4068 * gimple-iterator.h (enum gsi_iterator_update): Relocate from gimple.h.
4069 * gimplify-me.c: New File.
4070 (force_gimple_operand_1, force_gimple_operand,
4071 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
4072 gimple_regimplify_operands): Relocate from gimplify.c.
4073 * gimplify.c (force_gimple_operand_1, force_gimple_operand,
4074 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
4075 gimple_regimplify_operands): Move to gimplify-me.c.
4076 (gimplify_hasher::hash, gimplify_hasher::equal): Relocate
4078 * Makefile.in (OBJS): Add gimplify-me.o
4079 * asan.c: Include only gimplify.h, gimplify-me.h, and/or gimple.h as
4081 * cfgloopmanip.c: Likewise.
4082 * cgraphunit.c: Likewise.
4083 * cilk-common.c: Likewise.
4084 * fold-const.c: Likewise.
4085 * function.c: Likewise.
4086 * gimple-expr.c: Likewise.
4087 * gimple-fold.c: Likewise.
4088 * gimple-ssa-strength-reduction.c: Likewise.
4089 * gimple.c: Likewise.
4090 * graphite-clast-to-gimple.c: Likewise.
4091 * graphite-sese-to-poly.c: Likewise.
4092 * ipa-prop.c: Likewise.
4093 * ipa-split.c: Likewise.
4095 * langhooks.c: Likewise.
4096 * omp-low.c: Likewise.
4098 * stor-layout.c: Likewise.
4099 * targhooks.c: Likewise.
4100 * trans-mem.c: Likewise.
4101 * tree-affine.c: Likewise.
4102 * tree-cfg.c: Likewise.
4103 * tree-cfgcleanup.c: Likewise.
4104 * tree-complex.c: Likewise.
4105 * tree-if-conv.c: Likewise.
4106 * tree-inline.c: Likewise.
4107 * tree-loop-distribution.c: Likewise.
4108 * tree-nested.c: Likewise.
4109 * tree-parloops.c: Likewise.
4110 * tree-predcom.c: Likewise.
4111 * tree-profile.c: Likewise.
4112 * tree-scalar-evolution.c: Likewise.
4113 * tree-sra.c: Likewise.
4114 * tree-ssa-address.c: Likewise.
4115 * tree-ssa-ccp.c: Likewise.
4116 * tree-ssa-dce.c: Likewise.
4117 * tree-ssa-forwprop.c: Likewise.
4118 * tree-ssa-ifcombine.c: Likewise.
4119 * tree-ssa-loop-im.c: Likewise.
4120 * tree-ssa-loop-ivopts.c: Likewise.
4121 * tree-ssa-loop-manip.c: Likewise.
4122 * tree-ssa-loop-niter.c: Likewise.
4123 * tree-ssa-loop-prefetch.c: Likewise.
4124 * tree-ssa-loop-unswitch.c: Likewise.
4125 * tree-ssa-math-opts.c: Likewise.
4126 * tree-ssa-phiopt.c: Likewise.
4127 * tree-ssa-phiprop.c: Likewise.
4128 * tree-ssa-pre.c: Likewise.
4129 * tree-ssa-propagate.c: Likewise.
4130 * tree-ssa-reassoc.c: Likewise.
4131 * tree-ssa-sccvn.c: Likewise.
4132 * tree-ssa-strlen.c: Likewise.
4133 * tree-ssa.c: Likewise.
4134 * tree-switch-conversion.c: Likewise.
4135 * tree-tailcall.c: Likewise.
4136 * tree-vect-data-refs.c: Likewise.
4137 * tree-vect-generic.c: Likewise.
4138 * tree-vect-loop-manip.c: Likewise.
4139 * tree-vect-loop.c: Likewise.
4140 * tree-vect-patterns.c: Likewise.
4141 * tree-vect-stmts.c: Likewise.
4144 * value-prof.c: Likewise.
4145 * config/aarch64/aarch64.c: Likewise.
4146 * config/alpha/alpha.c: Likewise.
4147 * config/darwin.c: Likewise.
4148 * config/i386/i386.c: Likewise.
4149 * config/ia64/ia64.c: Likewise.
4150 * config/mep/mep.c: Likewise.
4151 * config/mips/mips.c: Likewise.
4152 * config/rs6000/rs6000.c: Likewise.
4153 * config/s390/s390.c: Likewise.
4154 * config/sh/sh.c: Likewise.
4155 * config/sparc/sparc.c: Likewise.
4156 * config/spu/spu.c: Likewise.
4157 * config/stormy16/stormy16.c: Likewise.
4158 * config/tilegx/tilegx.c: Likewise.
4159 * config/tilepro/tilepro.c: Likewise.
4160 * config/xtensa/xtensa.c: Likewise.
4162 2013-11-14 Diego Novillo <dnovillo@google.com>
4164 * Makefile.in (PLUGIN_HEADERS): Add stringpool.h.
4166 2013-11-14 Diego Novillo <dnovillo@google.com>
4168 * tree.h: Include fold-const.h.
4169 (aggregate_value_p): Moved to function.h.
4170 (alloca_call_p): Moved to calls.h.
4171 (allocate_struct_function): Moved to function.h.
4172 (apply_tm_attr): Moved to attribs.h.
4173 (array_at_struct_end_p): Moved to expr.h.
4174 (array_ref_element_size): Moved to tree-dfa.h.
4175 (array_ref_low_bound): Moved to tree-dfa.h.
4176 (array_ref_up_bound): Moved to tree.h.
4177 (assemble_alias): Moved to cgraph.h.
4178 (bit_from_pos): Moved to stor-layout.h.
4179 (build_addr): Moved to tree-nested.h.
4180 (build_duplicate_type): Moved to tree-inline.h.
4181 (build_fold_addr_expr): Moved to fold-const.h.
4182 (build_fold_addr_expr_with_type): Moved to fold-const.h.
4183 (build_fold_addr_expr_with_type_loc): Moved to fold-const.h.
4184 (build_fold_indirect_ref): Moved to fold-const.h.
4185 (build_fold_indirect_ref_loc): Moved to fold-const.h.
4186 (build_personality_function): Moved to tree.h.
4187 (build_range_check): Moved to fold-const.h.
4188 (build_simple_mem_ref): Moved to fold-const.h.
4189 (build_simple_mem_ref_loc): Moved to fold-const.h.
4190 (build_tm_abort_call): Moved to trans-mem.h.
4191 (byte_from_pos): Moved to stor-layout.h.
4192 (call_expr_flags): Moved to calls.h.
4193 (can_move_by_pieces): Moved to expr.h.
4194 (categorize_ctor_elements): Moved to expr.h.
4195 (change_decl_assembler_name): Moved to gcc-symtab.h.
4196 (combine_comparisons): Moved to fold-const.h.
4197 (complete_ctor_at_level_p): Moved to tree.h.
4198 (component_ref_field_offset): Moved to tree-dfa.h.
4199 (compute_builtin_object_size): Moved to tree-object-size.h.
4200 (compute_record_mode): Moved to stor-layout.h.
4201 (constant_boolean_node): Moved to fold-const.h.
4202 (constructor_static_from_elts_p): Moved to varasm.h.
4203 (cxx11_attribute_p): Moved to attribs.h.
4204 (debug_body): Moved to print-tree.h.
4205 (debug_find_tree): Moved to tree-inline.h.
4206 (debug_fold_checksum): Moved to fold-const.h.
4207 (debug_head): Moved to print-tree.h.
4208 (debug_head): Moved to print-tree.h.
4209 (debug_raw): Moved to print-tree.h.
4210 (debug_tree): Moved to print-tree.h.
4211 (debug_vec_tree): Moved to print-tree.h.
4212 (debug_verbose): Moved to print-tree.h.
4213 (debug_verbose): Moved to print-tree.h.
4214 (decl_attributes): Moved to attribs.h.
4215 (decl_binds_to_current_def_p): Moved to varasm.h.
4216 (decl_default_tls_model): Moved to varasm.h.
4217 (decl_replaceable_p): Moved to varasm.h.
4218 (div_if_zero_remainder): Moved to fold-const.h.
4219 (double_int mem_ref_offset): Moved to fold-const.h.
4220 (dump_addr): Moved to print-tree.h.
4221 (element_precision): Moved to machmode.h.
4222 (expand_dummy_function_end): Moved to function.h.
4223 (expand_function_end): Moved to function.h.
4224 (expand_function_start): Moved to function.h.
4225 (expand_label): Moved to stmt.h.
4226 (expr_first): Moved to tree-iterator.h.
4227 (expr_last): Moved to tree-iterator.h.
4228 (finalize_size_functions): Moved to stor-layout.h.
4229 (finish_builtin_struct): Moved to stor-layout.h.
4230 (finish_record_layout): Moved to stor-layout.h.
4231 (fixup_signed_type): Moved to stor-layout.h.
4232 (fixup_unsigned_type): Moved to stor-layout.h.
4233 (flags_from_decl_or_type): Moved to calls.h.
4234 (fold): Moved to fold-const.h.
4235 (fold_abs_const): Moved to fold-const.h.
4236 (fold_binary): Moved to fold-const.h.
4237 (fold_binary_loc): Moved to fold-const.h.
4238 (fold_binary_to_constant): Moved to fold-const.h.
4239 (fold_build1): Moved to fold-const.h.
4240 (fold_build1_initializer_loc): Moved to fold-const.h.
4241 (fold_build1_loc): Moved to fold-const.h.
4242 (fold_build1_stat_loc): Moved to fold-const.h.
4243 (fold_build2): Moved to fold-const.h.
4244 (fold_build2_initializer_loc): Moved to fold-const.h.
4245 (fold_build2_loc): Moved to fold-const.h.
4246 (fold_build2_stat_loc): Moved to fold-const.h.
4247 (fold_build3): Moved to fold-const.h.
4248 (fold_build3_loc): Moved to fold-const.h.
4249 (fold_build3_stat_loc): Moved to fold-const.h.
4250 (fold_build_call_array): Moved to fold-const.h.
4251 (fold_build_call_array_initializer): Moved to fold-const.h.
4252 (fold_build_call_array_initializer_loc): Moved to fold-const.h.
4253 (fold_build_call_array_loc): Moved to fold-const.h.
4254 (fold_build_cleanup_point_expr): Moved to fold-const.h.
4255 (fold_convert): Moved to fold-const.h.
4256 (fold_convert_loc): Moved to fold-const.h.
4257 (fold_convertible_p): Moved to fold-const.h.
4258 (fold_defer_overflow_warnings): Moved to fold-const.h.
4259 (fold_deferring_overflow_warnings_p): Moved to fold-const.h.
4260 (fold_fma): Moved to fold-const.h.
4261 (fold_ignored_result): Moved to fold-const.h.
4262 (fold_indirect_ref): Moved to fold-const.h.
4263 (fold_indirect_ref_1): Moved to fold-const.h.
4264 (fold_indirect_ref_loc): Moved to fold-const.h.
4265 (fold_read_from_constant_string): Moved to fold-const.h.
4266 (fold_real_zero_addition_p): Moved to fold-const.h.
4267 (fold_single_bit_test): Moved to fold-const.h.
4268 (fold_strip_sign_ops): Moved to fold-const.h.
4269 (fold_ternary): Moved to fold-const.h.
4270 (fold_ternary_loc): Moved to fold-const.h.
4271 (fold_unary): Moved to tree-data-ref.h.
4272 (fold_unary_ignore_overflow): Moved to fold-const.h.
4273 (fold_unary_ignore_overflow_loc): Moved to fold-const.h.
4274 (fold_unary_loc): Moved to fold-const.h.
4275 (fold_unary_to_constant): Moved to fold-const.h.
4276 (fold_undefer_and_ignore_overflow_warnings): Moved to fold-const.h.
4277 (fold_undefer_overflow_warnings): Moved to fold-const.h.
4278 (folding_initializer): Moved to fold-const.h.
4279 (free_temp_slots): Moved to function.h.
4280 (generate_setjmp_warnings): Moved to function.h.
4281 (get_attribute_name): Moved to attribs.h.
4282 (get_identifier): Moved to stringpool.h.
4283 (get_identifier_with_length): Moved to stringpool.h.
4284 (get_inner_reference): Moved to tree.h.
4285 (gimple_alloca_call_p): Moved to calls.h.
4286 (gimplify_parameters): Moved to function.h.
4287 (highest_pow2_factor): Moved to expr.h.
4288 (indent_to): Moved to print-tree.h.
4289 (init_attributes): Moved to attribs.h.
4290 (init_dummy_function_start): Moved to function.h.
4291 (init_function_start): Moved to function.h.
4292 (init_inline_once): Moved to tree-inline.h.
4293 (init_object_sizes): Moved to tree-object-size.h.
4294 (init_temp_slots): Moved to function.h.
4295 (init_tree_optimization_optabs): Moved to optabs.h.
4296 (initialize_sizetypes): Moved to stor-layout.h.
4297 (initializer_constant_valid_for_bitfield_p): Moved to varasm.h.
4298 (initializer_constant_valid_p): Moved to varasm.h.
4299 (int_const_binop): Moved to fold-const.h.
4300 (internal_reference_types): Moved to stor-layout.h.
4301 (invert_tree_comparison): Moved to fold-const.h.
4302 (invert_truthvalue): Moved to fold-const.h.
4303 (invert_truthvalue_loc): Moved to fold-const.h.
4304 (is_tm_ending_fndecl): Moved to trans-mem.h.
4305 (is_tm_may_cancel_outer): Moved to trans-mem.h.
4306 (is_tm_pure): Moved to trans-mem.h.
4307 (is_tm_safe): Moved to trans-mem.h.
4308 (layout_decl): Moved to stor-layout.h.
4309 (layout_type): Moved to stor-layout.h.
4310 (lookup_attribute_spec): Moved to attribs.h.
4311 (make_accum_type): Moved to stor-layout.h.
4312 (make_decl_one_only): Moved to varasm.h.
4313 (make_decl_rtl): Moved to tree.h.
4314 (make_decl_rtl_for_debug): Moved to varasm.h.
4315 (make_fract_type): Moved to stor-layout.h.
4316 (make_or_reuse_sat_signed_accum_type): Moved to stor-layout.h.
4317 (make_or_reuse_sat_signed_fract_type): Moved to stor-layout.h.
4318 (make_or_reuse_sat_unsigned_accum_type): Moved to stor-layout.h.
4319 (make_or_reuse_sat_unsigned_fract_type): Moved to stor-layout.h.
4320 (make_or_reuse_signed_accum_type): Moved to stor-layout.h.
4321 (make_or_reuse_signed_fract_type): Moved to stor-layout.h.
4322 (make_or_reuse_unsigned_accum_type): Moved to stor-layout.h.
4323 (make_or_reuse_unsigned_fract_type): Moved to stor-layout.h.
4324 (make_range): Moved to fold-const.h.
4325 (make_range_step): Moved to fold-const.h.
4326 (make_sat_signed_accum_type): Moved to stor-layout.h.
4327 (make_sat_signed_fract_type): Moved to stor-layout.h.
4328 (make_sat_unsigned_accum_type): Moved to stor-layout.h.
4329 (make_sat_unsigned_fract_type): Moved to stor-layout.h.
4330 (make_signed_accum_type): Moved to stor-layout.h.
4331 (make_signed_fract_type): Moved to stor-layout.h.
4332 (make_signed_type): Moved to stor-layout.h.
4333 (make_unsigned_accum_type): Moved to stor-layout.h.
4334 (make_unsigned_fract_type): Moved to stor-layout.h.
4335 (make_unsigned_type): Moved to stor-layout.h.
4336 (mark_decl_referenced): Moved to varasm.h.
4337 (mark_referenced): Moved to varasm.h.
4338 (may_negate_without_overflow_p): Moved to fold-const.h.
4339 (maybe_get_identifier): Moved to stringpool.h.
4340 (merge_ranges): Moved to fold-const.h.
4341 (merge_weak): Moved to varasm.h.
4342 (mode_for_size_tree): Moved to stor-layout.h.
4343 (multiple_of_p): Moved to fold-const.h.
4344 (must_pass_in_stack_var_size): Moved to calls.h.
4345 (must_pass_in_stack_var_size_or_pad): Moved to calls.h.
4346 (native_encode_expr): Moved to fold-const.h.
4347 (native_interpret_expr): Moved to fold-const.h.
4348 (non_lvalue): Moved to fold-const.h.
4349 (non_lvalue_loc): Moved to fold-const.h.
4350 (normalize_offset): Moved to stor-layout.h.
4351 (normalize_rli): Moved to stor-layout.h.
4352 (notice_global_symbol): Moved to varasm.h.
4353 (omit_one_operand): Moved to fold-const.h.
4354 (omit_one_operand_loc): Moved to fold-const.h.
4355 (omit_two_operands): Moved to fold-const.h.
4356 (omit_two_operands_loc): Moved to fold-const.h.
4357 (operand_equal_p): Moved to tree-data-ref.h.
4358 (parse_input_constraint): Moved to stmt.h.
4359 (parse_output_constraint): Moved to stmt.h.
4360 (place_field): Moved to stor-layout.h.
4361 (pop_function_context): Moved to function.h.
4362 (pop_temp_slots): Moved to function.h.
4363 (pos_from_bit): Moved to stor-layout.h.
4364 (preserve_temp_slots): Moved to function.h.
4365 (print_node): Moved to print-tree.h.
4366 (print_node_brief): Moved to print-tree.h.
4367 (print_rtl): Moved to rtl.h.
4368 (process_pending_assemble_externals): Moved to varasm.h.
4369 (ptr_difference_const): Moved to fold-const.h.
4370 (push_function_context): Moved to function.h.
4371 (push_struct_function): Moved to function.h.
4372 (push_temp_slots): Moved to function.h.
4373 (record_tm_replacement): Moved to trans-mem.h.
4374 (relayout_decl): Moved to stor-layout.h.
4375 (resolve_asm_operand_names): Moved to stmt.h.
4376 (resolve_unique_section): Moved to varasm.h.
4377 (rli_size_so_far): Moved to stor-layout.h.
4378 (rli_size_unit_so_far): Moved to stor-layout.h.
4379 (round_down): Moved to fold-const.h.
4380 (round_down_loc): Moved to fold-const.h.
4381 (round_up): Moved to fold-const.h.
4382 (round_up_loc): Moved to fold-const.h.
4383 (set_decl_incoming_rtl): Moved to emit-rtl.h.
4384 (set_decl_rtl): Moved to tree.h.
4385 (set_min_and_max_values_for_integral_type): Moved to stor-layout.h.
4386 (set_user_assembler_name): Moved to varasm.h.
4387 (setjmp_call_p): Moved to calls.h.
4388 (size_binop): Moved to fold-const.h.
4389 (size_binop_loc): Moved to fold-const.h.
4390 (size_diffop): Moved to fold-const.h.
4391 (size_diffop_loc): Moved to fold-const.h.
4392 (size_int_kind): Moved to fold-const.h.
4393 (stack_protect_epilogue): Moved to function.h.
4394 (start_record_layout): Moved to stor-layout.h.
4395 (supports_one_only): Moved to varasm.h.
4396 (swap_tree_comparison): Moved to fold-const.h.
4397 (tm_malloc_replacement): Moved to trans-mem.h.
4398 (tree build_fold_addr_expr_loc): Moved to fold-const.h.
4399 (tree build_invariant_address): Moved to fold-const.h.
4400 (tree_binary_nonnegative_warnv_p): Moved to fold-const.h.
4401 (tree_binary_nonzero_warnv_p): Moved to fold-const.h.
4402 (tree_call_nonnegative_warnv_p): Moved to fold-const.h.
4403 (tree_expr_nonnegative_p): Moved to fold-const.h.
4404 (tree_expr_nonnegative_warnv_p): Moved to fold-const.h.
4405 (tree_output_constant_def): Moved to varasm.h.
4406 (tree_overlaps_hard_reg_set): Moved to stmt.h.
4407 (tree_single_nonnegative_warnv_p): Moved to fold-const.h.
4408 (tree_single_nonzero_warnv_p): Moved to fold-const.h.
4409 (tree_swap_operands_p): Moved to fold-const.h.
4410 (tree_unary_nonnegative_warnv_p): Moved to fold-const.h.
4411 (tree_unary_nonzero_warnv_p): Moved to fold-const.h.
4412 (update_alignment_for_field): Moved to stor-layout.h.
4413 (use_register_for_decl): Moved to function.h.
4414 (variable_size): Moved to rtl.h.
4415 (vector_type_mode): Moved to stor-layout.h.
4416 * cgraph.h: Corresponding changes.
4417 * emit-rtl.h: Corresponding changes.
4418 * expr.h: Corresponding changes.
4419 * function.h: Corresponding changes.
4420 * optabs.h: Corresponding changes.
4421 * trans-mem.h: Corresponding changes.
4422 Protect against multiple inclusion.
4423 * tree-inline.h: Corresponding changes.
4424 * tree-iterator.h: Corresponding changes.
4425 * tree-dfa.h: Include expr.h.
4426 * tree-ssanames.h: Include stringpool.h.
4427 * attribs.h: New file.
4428 * calls.h: New file.
4429 * fold-const.h: New file.
4430 * gcc-symtab.h: New file.
4431 * print-rtl.h: New file.
4432 * print-tree.h: New file.
4434 * stor-layout.h: New file.
4435 * strinpool.h: New file.
4436 * tree-nested.h: New file
4437 * tree-object-size.h: New file.
4438 * varasm.h: New file.
4440 2013-11-14 Diego Novillo <dnovillo@google.com>
4442 * alias.c: Include varasm.h.
4444 * asan.c: Include calls.h.
4445 Include stor-layout.h.
4447 * attribs.c: Include stringpool.h.
4449 Include stor-layout.h.
4450 * builtins.c: Include stringpool.h.
4451 Include stor-layout.h.
4454 Include tree-object-size.h.
4455 * calls.c: Include stor-layout.h.
4457 Include stringpool.h.
4459 * cfgexpand.c: Include stringpool.h.
4461 Include stor-layout.h.
4463 Include print-tree.h.
4464 * cgraph.c: Include varasm.h.
4466 Include print-tree.h.
4467 * cgraphclones.c: Include stringpool.h.
4470 Move inclusion of rtl.h earlier in the file.
4471 * cgraphunit.c: Include varasm.h.
4472 Include stor-layout.h.
4473 Include stringpool.h.
4474 * cilk-common.c: Include stringpool.h.
4475 Include stor-layout.h.
4476 * combine.c: Include stor-layout.h.
4477 * config/aarch64/aarch64-builtins.c: Include stor-layout.h.
4478 Include stringpool.h.
4480 * config/aarch64/aarch64.c: Include stringpool.h.
4481 Include stor-layout.h.
4484 * config/alpha/alpha.c: Include stor-layout.h.
4487 * config/arc/arc.c: Include varasm.h.
4488 Include stor-layout.h.
4489 Include stringpool.h.
4491 * config/arm/arm.c: Include stringpool.h.
4492 Include stor-layout.h.
4495 * config/avr/avr-c.c: Include stor-layout.h.
4496 * config/avr/avr-log.c: Include print-tree.h.
4497 * config/avr/avr.c: Include print-tree.h.
4499 Include stor-layout.h.
4500 Include stringpool.h.
4501 * config/bfin/bfin.c: Include varasm.h.
4503 * config/c6x/c6x.c: Include stor-layout.h.
4506 Include stringpool.h.
4507 * config/cr16/cr16.c: Include stor-layout.h.
4509 * config/cris/cris.c: Include varasm.h.
4510 Include stor-layout.h.
4513 * config/darwin.c: Include stringpool.h.
4515 Include stor-layout.h.
4516 * config/epiphany/epiphany.c: Include stor-layout.h.
4519 Include stringpool.h.
4520 * config/fr30/fr30.c: Include stor-layout.h.
4522 * config/frv/frv.c: Include varasm.h.
4523 Include stor-layout.h.
4524 Include stringpool.h.
4525 * config/h8300/h8300.c: Include stor-layout.h.
4528 Include stringpool.h.
4529 * config/i386/i386.c: Include stringpool.h.
4532 Include stor-layout.h.
4534 * config/i386/winnt-cxx.c: Include stringpool.h.
4536 * config/i386/winnt.c: Include stringpool.h.
4538 * config/ia64/ia64-c.c: Include stringpool.h.
4539 * config/ia64/ia64.c: Include stringpool.h.
4540 Include stor-layout.h.
4543 * config/iq2000/iq2000.c: Include stor-layout.h.
4546 * config/lm32/lm32.c: Include calls.h.
4547 * config/m32c/m32c.c: Include stor-layout.h.
4550 * config/m32r/m32r.c: Include stor-layout.h.
4552 Include stringpool.h.
4554 * config/m68k/m68k.c: Include calls.h.
4555 Include stor-layout.h.
4557 * config/mcore/mcore.c: Include stor-layout.h.
4559 Include stringpool.h.
4561 * config/mep/mep.c: Include varasm.h.
4563 Include stringpool.h.
4564 Include stor-layout.h.
4565 * config/microblaze/microblaze.c: Include varasm.h.
4566 Include stor-layout.h.
4568 * config/mips/mips.c: Include varasm.h.
4569 Include stringpool.h.
4570 Include stor-layout.h.
4572 * config/mmix/mmix.c: Include varasm.h.
4573 Include stor-layout.h.
4575 * config/mn10300/mn10300.c: Include stor-layout.h.
4578 * config/moxie/moxie.c: Include stor-layout.h.
4581 * config/msp430/msp430.c: Include stor-layout.h.
4583 * config/nds32/nds32.c: Include stor-layout.h.
4586 * config/pa/pa.c: Include stor-layout.h.
4587 Include stringpool.h.
4590 * config/pdp11/pdp11.c: Include stor-layout.h.
4593 * config/picochip/picochip.c: Include calls.h.
4594 Include stor-layout.h.
4595 Include stringpool.h.
4597 * config/rl78/rl78.c: Include varasm.h.
4598 Include stor-layout.h.
4600 * config/rs6000/rs6000-c.c: Include stor-layout.h.
4601 Include stringpool.h.
4602 * config/rs6000/rs6000.c: Include stringpool.h.
4603 Include stor-layout.h.
4605 Include print-tree.h.
4607 * config/rx/rx.c: Include varasm.h.
4608 Include stor-layout.h.
4610 * config/s390/s390.c: Include print-tree.h.
4611 Include stringpool.h.
4612 Include stor-layout.h.
4615 * config/score/score.c: Include stringpool.h.
4618 Include stor-layout.h.
4619 * config/sh/sh-c.c: Include stringpool.h.
4620 Include attribs.h.h.
4621 * config/sh/sh.c: Include stringpool.h.
4622 Include stor-layout.h.
4625 * config/sol2-c.c: Include stringpool.h.
4627 * config/sol2-cxx.c: Include stringpool.h.
4628 * config/sol2.c: Include stringpool.h.
4630 * config/sparc/sparc.c: Include stringpool.h.
4631 Include stor-layout.h.
4634 * config/spu/spu-c.c: Include stringpool.h.
4635 * config/spu/spu.c: Include stringpool.h.
4636 Include stor-layout.h.
4639 * config/stormy16/stormy16.c: Include stringpool.h.
4640 Include stor-layout.h.
4643 * config/tilegx/tilegx.c: Include stringpool.h.
4644 Include stor-layout.h.
4647 * config/tilepro/tilepro.c: Include stringpool.h.
4648 Include stor-layout.h.
4651 * config/v850/v850-c.c: Include stringpool.h.
4653 * config/v850/v850.c: Include stringpool.h.
4654 Include stor-layout.h.
4657 * config/vax/vax.c: Include calls.h.
4659 * config/vms/vms.c: Include stringpool.h.
4660 * config/vxworks.c: Include stringpool.h.
4661 * config/xtensa/xtensa.c: Include stringpool.h.
4662 Include stor-layout.h.
4665 * convert.c: Include stor-layout.h.
4666 * coverage.c: Include stringpool.h.
4667 Include stor-layout.h.
4668 * dbxout.c: Include varasm.h.
4669 Include stor-layout.h.
4670 * dojump.c: Include stor-layout.h.
4671 * dse.c: Include stor-layout.h.
4672 * dwarf2asm.c: Include stringpool.h.
4674 * dwarf2cfi.c: Include stor-layout.h.
4675 * dwarf2out.c: Include rtl.h.
4676 Include stringpool.h.
4677 Include stor-layout.h.
4681 Move inclusion of rtl.h earlier in the file.
4682 * emit-rtl.c: Include varasm.h.
4683 * except.c: Include stringpool.h.
4684 Include stor-layout.h.
4685 * explow.c: Include stor-layout.h.
4686 * expmed.c: Include stor-layout.h.
4687 * expr.c: Include stringpool.h.
4688 Include stor-layout.h.
4691 * final.c: Include varasm.h.
4692 * fold-const.c: Include stor-layout.h.
4694 Include tree-iterator.h.
4695 * function.c: Include stor-layout.h.
4697 Include stringpool.h.
4698 * genattrtab.c (write_header): Emit includes for varasm.h,
4699 stor-layout.h and calls.h.
4700 * genautomata.c (main): Likewise.
4701 * genemit.c: Likewise.
4702 * genopinit.c: Likewise.
4703 * genoutput.c (output_prologue): Likewise.
4704 * genpeep.c: Likewise.
4705 * genpreds.c (write_insn_preds_c): Likewise.
4706 * gengtype.c (open_base_files): Add stringpool.h.
4707 * gimple-expr.c: Include stringpool.h.
4708 Include stor-layout.h.
4709 * gimple-fold.c: Include stringpool.h.
4712 Include stor-layout.h.
4713 * gimple-low.c: Include tree-nested.h.
4715 * gimple-pretty-print.c: Include stringpool.h.
4716 * gimple-ssa-strength-reduction.c: Include stor-layout.h.
4718 * gimple-walk.c: Include stmt.h.
4719 * gimple.c: Include calls.h.
4721 Include stor-layout.h.
4722 * gimplify.c: Include stringpool.h.
4725 Include stor-layout.h.
4727 Include print-tree.h.
4729 * gimplify-me.c: Include stmt.h
4730 Include stor-layout.h
4731 * internal-fn.c: Include stor-layout.h.
4732 * ipa-devirt.c: Include print-tree.h.
4734 * ipa-inline-analysis.c: Include stor-layout.h.
4735 Include stringpool.h.
4736 Include print-tree.h.
4737 * ipa-inline.c: Include trans-mem.h.
4739 * ipa-prop.c: Include expr.h.
4740 Include stor-layout.h.
4741 Include print-tree.h.
4742 * ipa-pure-const.c: Include print-tree.h.
4744 * ipa-reference.c: Include calls.h.
4745 * ipa-split.c: Include stringpool.h.
4748 * ipa.c: Include calls.h.
4749 Include stringpool.h.
4750 * langhooks.c: Include stringpool.h.
4752 * lto-cgraph.c: Include stringpool.h.
4753 * lto-streamer-in.c: Include stringpool.h.
4754 * lto-streamer-out.c: Include stor-layout.h.
4755 Include stringpool.h.
4756 * omp-low.c: Include stringpool.h.
4757 Include stor-layout.h.
4759 * optabs.c: Include stor-layout.h.
4760 Include stringpool.h.
4762 * passes.c: Include varasm.h.
4763 * predict.c: Include calls.h.
4764 * print-rtl.c: Include print-tree.h.
4765 * print-tree.c: Include varasm.h.
4766 Include print-rtl.h.
4767 Include stor-layout.h.
4768 * realmpfr.c: Include stor-layout.h.
4769 * reg-stack.c: Include varasm.h.
4770 * sdbout.c: Include varasm.h.
4771 Include stor-layout.h.
4772 * simplify-rtx.c: Include varasm.h.
4773 * stmt.c: Include varasm.h.
4774 Include stor-layout.h.
4775 * stor-layout.c: Include stor-layout.h.
4776 Include stringpool.h.
4778 Include print-tree.h.
4779 * symtab.c: Include rtl.h.
4780 Include print-tree.h.
4784 * targhooks.c: Include stor-layout.h.
4786 * toplev.c: Include varasm.h.
4787 Include tree-inline.h.
4788 * trans-mem.c: Include calls.h.
4792 * tree-affine.c: Include expr.h.
4793 * tree-browser.c: Include print-tree.h.
4794 * tree-call-cdce.c: Include stor-layout.h.
4795 * tree-cfg.c: Include trans-mem.h.
4796 Include stor-layout.h.
4797 Include print-tree.h.
4798 * tree-complex.c: Include stor-layout.h.
4799 * tree-data-ref.c: Include expr.h.
4800 * tree-dfa.c: Include stor-layout.h.
4801 * tree-eh.c: Include expr.h.
4803 * tree-emutls.c: Include stor-layout.h.
4805 * tree-if-conv.c: Include stor-layout.h.
4806 * tree-inline.c: Include stor-layout.h.
4808 * tree-loop-distribution.c: Include stor-layout.h.
4809 * tree-nested.c: Include stringpool.h.
4810 Include stor-layout.h.
4811 * tree-object-size.c: Include tree-object-size.h.
4812 * tree-outof-ssa.c: Include stor-layout.h.
4813 * tree-parloops.c: Include stor-layout.h.
4814 Include tree-nested.h.
4815 * tree-pretty-print.c: Include stor-layout.h.
4817 * tree-profile.c: Include varasm.h.
4818 Include tree-nested.h.
4819 * tree-scalar-evolution.c: Include expr.h.
4820 * tree-sra.c: Include stor-layout.h.
4821 * tree-ssa-address.c: Include stor-layout.h.
4822 * tree-ssa-ccp.c: Include stor-layout.h.
4823 * tree-ssa-dce.c: Include calls.h.
4824 * tree-ssa-dom.c: Include stor-layout.h.
4825 * tree-ssa-forwprop.c: Include stor-layout.h.
4826 * tree-ssa-ifcombine.c: Include stor-layout.h.
4827 * tree-ssa-loop-ivopts.c: Include stor-layout.h.
4828 * tree-ssa-loop-niter.c: Include calls.h.
4830 * tree-ssa-loop-prefetch.c: Include stor-layout.h.
4831 * tree-ssa-math-opts.c: Include stor-layout.h.
4832 * tree-ssa-operands.c: Include stmt.h.
4833 Include print-tree.h.
4834 * tree-ssa-phiopt.c: Include stor-layout.h.
4835 * tree-ssa-reassoc.c: Include stor-layout.h.
4836 * tree-ssa-sccvn.c: Include stor-layout.h.
4837 * tree-ssa-sink.c: Include stor-layout.h.
4838 * tree-ssa-strlen.c: Include stor-layout.h.
4839 * tree-ssa-structalias.c: Include stor-layout.h.
4841 * tree-ssa-tail-merge.c: Include stor-layout.h.
4842 Include trans-mem.h.
4843 * tree-ssa-uncprop.c: Include stor-layout.h.
4844 * tree-ssa.c: Include stor-layout.h.
4845 * tree-ssanames.c: Include stor-layout.h.
4846 * tree-streamer-in.c: Include stringpool.h.
4847 * tree-streamer-out.c: Include stor-layout.h.
4848 * tree-switch-conversion.c: Include varasm.h.
4849 Include stor-layout.h.
4850 * tree-tailcall.c: Include stor-layout.h.
4851 * tree-vect-data-refs.c: Include stor-layout.h.
4852 * tree-vect-generic.c: Include stor-layout.h.
4853 * tree-vect-loop.c: Include stor-layout.h.
4854 * tree-vect-patterns.c: Include stor-layout.h.
4855 * tree-vect-slp.c: Include stor-layout.h.
4856 * tree-vect-stmts.c: Include stor-layout.h.
4857 * tree-vectorizer.c: Include stor-layout.h.
4858 * tree-vrp.c: Include stor-layout.h.
4860 * tree.c: Include stor-layout.h.
4864 * tsan.c: Include expr.h.
4865 * ubsan.c: Include stor-layout.h.
4866 Include stringpool.h.
4867 * value-prof.c: Include tree-nested.h.
4869 * var-tracking.c: Include varasm.h.
4870 Include stor-layout.h.
4871 * varasm.c: Include stor-layout.h.
4872 Include stringpool.h.
4873 Include gcc-symtab.h.
4875 * varpool.c: Include varasm.h.
4876 * vmsdbgout.c: Include varasm.h.
4877 * xcoffout.c: Include varasm.h.
4879 2013-11-14 Joern Rennecke <joern.rennecke@embecosm.com>
4881 * config/arc/arc.md (doloop_begin_i): Remove extra alignment;
4884 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4886 * config/rs6000/sysv4le.h (LINUX64_DEFAULT_ABI_ELFv2): Define.
4888 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4889 Alan Modra <amodra@gmail.com>
4891 * config/rs6000/rs6000.h (RS6000_SAVE_AREA): Handle ABI_ELFv2.
4892 (RS6000_SAVE_TOC): Remove.
4893 (RS6000_TOC_SAVE_SLOT): New macro.
4894 * config/rs6000/rs6000.c (rs6000_parm_offset): New function.
4895 (rs6000_parm_start): Use it.
4896 (rs6000_function_arg_advance_1): Likewise.
4897 (rs6000_emit_prologue): Use RS6000_TOC_SAVE_SLOT.
4898 (rs6000_emit_epilogue): Likewise.
4899 (rs6000_call_aix): Likewise.
4900 (rs6000_output_function_prologue): Do not save/restore r11
4901 around calling _mcount for ABI_ELFv2.
4903 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4904 Alan Modra <amodra@gmail.com>
4906 * config/rs6000/rs6000-protos.h (rs6000_reg_parm_stack_space):
4908 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Remove.
4909 (REG_PARM_STACK_SPACE): Call rs6000_reg_parm_stack_space.
4910 * config/rs6000/rs6000.c (rs6000_parm_needs_stack): New function.
4911 (rs6000_function_parms_need_stack): Likewise.
4912 (rs6000_reg_parm_stack_space): Likewise.
4913 (rs6000_function_arg): Do not replace BLKmode by Pmode when
4914 returning a register argument.
4916 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4917 Michael Gschwind <mkg@us.ibm.com>
4919 * config/rs6000/rs6000.h (FP_ARG_MAX_RETURN): New macro.
4920 (ALTIVEC_ARG_MAX_RETURN): Likewise.
4921 (FUNCTION_VALUE_REGNO_P): Use them.
4922 * config/rs6000/rs6000.c (TARGET_RETURN_IN_MSB): Define.
4923 (rs6000_return_in_msb): New function.
4924 (rs6000_return_in_memory): Handle ELFv2 homogeneous aggregates.
4925 Handle aggregates of up to 16 bytes for ELFv2.
4926 (rs6000_function_value): Handle ELFv2 homogeneous aggregates.
4928 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4929 Michael Gschwind <mkg@us.ibm.com>
4931 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
4932 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
4933 (rs6000_discover_homogeneous_aggregate): Likewise.
4934 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
4935 (rs6000_function_arg_advance_1): Likewise.
4936 (rs6000_function_arg): Likewise.
4937 (rs6000_arg_partial_bytes): Likewise.
4938 (rs6000_psave_function_arg): Handle BLKmode arguments.
4940 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4941 Michael Gschwind <mkg@us.ibm.com>
4943 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
4944 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
4945 (rs6000_discover_homogeneous_aggregate): Likewise.
4946 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
4947 (rs6000_function_arg_advance_1): Likewise.
4948 (rs6000_function_arg): Likewise.
4949 (rs6000_arg_partial_bytes): Likewise.
4950 (rs6000_psave_function_arg): Handle BLKmode arguments.
4952 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4954 * config/rs6000/rs6000.c (machine_function): New member
4956 (rs6000_emit_prologue): Set r2_setup_needed if necessary.
4957 (rs6000_output_mi_thunk): Set r2_setup_needed.
4958 (rs6000_output_function_prologue): Output global entry point
4959 prologue and local entry point marker if needed for ABI_ELFv2.
4960 Output -mprofile-kernel code here.
4961 (output_function_profiler): Do not output -mprofile-kernel
4962 code here; moved to rs6000_output_function_prologue.
4963 (rs6000_file_start): Output ".abiversion 2" for ABI_ELFv2.
4965 (rs6000_emit_move): Do not handle dot symbols for ABI_ELFv2.
4966 (rs6000_output_function_entry): Likewise.
4967 (rs6000_assemble_integer): Likewise.
4968 (rs6000_elf_encode_section_info): Likewise.
4969 (rs6000_elf_declare_function_name): Do not create dot symbols
4970 or .opd section for ABI_ELFv2.
4972 (rs6000_trampoline_size): Update for ABI_ELFv2 trampolines.
4973 (rs6000_trampoline_init): Likewise.
4974 (rs6000_elf_file_end): Call file_end_indicate_exec_stack for ABI_ELFv2.
4976 (rs6000_call_aix): Handle ELFv2 indirect calls. Do not check
4977 for function descriptors in ABI_ELFv2.
4979 * config/rs6000/rs6000.md ("*call_indirect_aix<mode>"): Support
4980 on ABI_AIX only, not ABI_ELFv2.
4981 ("*call_value_indirect_aix<mode>"): Likewise.
4982 ("*call_indirect_elfv2<mode>"): New pattern.
4983 ("*call_value_indirect_elfv2<mode>"): Likewise.
4985 * config/rs6000/predicates.md ("symbol_ref_operand"): Do not
4986 check for function descriptors in ABI_ELFv2.
4987 ("current_file_function_operand"): Likewise.
4989 * config/rs6000/ppc-asm.h [__powerpc64__ && _CALL_ELF == 2]:
4991 (FUNC_NAME): Define ELFv2 variant.
4992 (JUMP_TARGET): Likewise.
4993 (FUNC_START): Likewise.
4994 (HIDDEN_FUNC): Likewise.
4995 (FUNC_END): Likeiwse.
4997 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4999 * config.gcc [powerpc*-*-* | rs6000-*-*]: Support --with-abi=elfv1
5000 and --with-abi=elfv2.
5001 * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Add "abi".
5002 * config/rs6000/rs6000.opt (mabi=elfv1): New option.
5003 (mabi=elfv2): Likewise.
5004 * config/rs6000/rs6000-opts.h (enum rs6000_abi): Add ABI_ELFv2.
5005 * config/rs6000/linux64.h (DEFAULT_ABI): Do not hard-code to AIX_ABI
5007 (ELFv2_ABI_CHECK): New macro.
5008 (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
5009 rs6000_current_abi to ABI_AIX or ABI_ELFv2.
5010 (GLIBC_DYNAMIC_LINKER64): Support ELFv2 ld.so version.
5011 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
5012 _CALL_ELF and __STRUCT_PARM_ALIGN__ if appropriate.
5014 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Handle ABI_ELFv2.
5015 (debug_stack_info): Likewise.
5016 (rs6000_file_start): Treat ABI_ELFv2 the same as ABI_AIX.
5017 (rs6000_legitimize_tls_address): Likewise.
5018 (rs6000_conditional_register_usage): Likewise.
5019 (rs6000_emit_move): Likewise.
5020 (init_cumulative_args): Likewise.
5021 (rs6000_function_arg_advance_1): Likewise.
5022 (rs6000_function_arg): Likewise.
5023 (rs6000_arg_partial_bytes): Likewise.
5024 (rs6000_output_function_entry): Likewise.
5025 (rs6000_assemble_integer): Likewise.
5026 (rs6000_savres_strategy): Likewise.
5027 (rs6000_stack_info): Likewise.
5028 (rs6000_function_ok_for_sibcall): Likewise.
5029 (rs6000_emit_load_toc_table): Likewise.
5030 (rs6000_savres_routine_name): Likewise.
5031 (ptr_regno_for_savres): Likewise.
5032 (rs6000_emit_prologue): Likewise.
5033 (rs6000_emit_epilogue): Likewise.
5034 (rs6000_output_function_epilogue): Likewise.
5035 (output_profile_hook): Likewise.
5036 (output_function_profiler): Likewise.
5037 (rs6000_trampoline_size): Likewise.
5038 (rs6000_trampoline_init): Likewise.
5039 (rs6000_elf_output_toc_section_asm_op): Likewise.
5040 (rs6000_elf_encode_section_info): Likewise.
5041 (rs6000_elf_reloc_rw_mask): Likewise.
5042 (rs6000_elf_declare_function_name): Likewise.
5043 (rs6000_function_arg_boundary): Treat ABI_ELFv2 the same as ABI_AIX,
5044 except that rs6000_compat_align_parm is always assumed false.
5045 (rs6000_gimplify_va_arg): Likewise.
5046 (rs6000_call_aix): Update comment.
5047 (rs6000_sibcall_aix): Likewise.
5048 * config/rs6000/rs6000.md ("tls_gd_aix<TLSmode:tls_abi_suffix>"):
5049 Treat ABI_ELFv2 the same as ABI_AIX.
5050 ("*tls_gd_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
5051 ("tls_ld_aix<TLSmode:tls_abi_suffix>"): Likewise.
5052 ("*tls_ld_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
5053 ("load_toc_aix_si"): Likewise.
5054 ("load_toc_aix_di"): Likewise.
5056 ("call_value"): Likewise.
5057 ("*call_local_aix<mode>"): Likewise.
5058 ("*call_value_local_aix<mode>"): Likewise.
5059 ("*call_nonlocal_aix<mode>"): Likewise.
5060 ("*call_value_nonlocal_aix<mode>"): Likewise.
5061 ("*call_indirect_aix<mode>"): Likewise.
5062 ("*call_value_indirect_aix<mode>"): Likewise.
5063 ("sibcall"): Likewise.
5064 ("sibcall_value"): Likewise.
5065 ("*sibcall_aix<mode>"): Likewise.
5066 ("*sibcall_value_aix<mode>"): Likewise.
5067 * config/rs6000/predicates.md ("symbol_ref_operand"): Likewise.
5068 ("current_file_function_operand"): Likewise.
5070 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5072 * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Simplify logic
5073 by making use of the fact that for vector / floating point arguments
5074 passed both in VRs/FPRs and in the fixed parameter area, the partial
5075 bytes mechanism is in fact not used.
5077 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5079 * config/rs6000/rs6000.c (rs6000_psave_function_arg): New function.
5080 (rs6000_finish_function_arg): Likewise.
5081 (rs6000_function_arg): Use rs6000_psave_function_arg and
5082 rs6000_finish_function_arg to handle both vector and floating
5083 point arguments that are also passed in GPRs / the stack.
5085 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5087 * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Remove TYPE argument.
5088 (USE_ALTIVEC_FOR_ARG_P): Likewise.
5089 (rs6000_darwin64_record_arg_advance_recurse): Update uses.
5090 (rs6000_function_arg_advance_1):Likewise.
5091 (rs6000_darwin64_record_arg_recurse): Likewise.
5092 (rs6000_function_arg): Likewise.
5093 (rs6000_arg_partial_bytes): Likewise.
5095 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5097 * config/rs6000/rs6000.c (rs6000_option_override_internal): Replace
5098 "DEFAULT_ABI != ABI_AIX" test by testing for ABI_V4 or ABI_DARWIN.
5099 (rs6000_savres_strategy): Likewise.
5100 (rs6000_return_addr): Likewise.
5101 (rs6000_emit_load_toc_table): Replace "DEFAULT_ABI != ABI_AIX" by
5102 testing for ABI_V4 (since ABI_DARWIN is impossible here).
5103 (rs6000_emit_prologue): Likewise.
5104 (legitimate_lo_sum_address_p): Simplify DEFAULT_ABI test.
5105 (rs6000_elf_declare_function_name): Remove duplicated test.
5106 * config/rs6000/rs6000.md ("load_toc_v4_PIC_1"): Explicitly test
5107 for ABI_V4 (instead of "DEFAULT_ABI != ABI_AIX" test).
5108 ("load_toc_v4_PIC_1_normal"): Likewise.
5109 ("load_toc_v4_PIC_1_476"): Likewise.
5110 ("load_toc_v4_PIC_1b"): Likewise.
5111 ("load_toc_v4_PIC_1b_normal"): Likewise.
5112 ("load_toc_v4_PIC_1b_476"): Likewise.
5113 ("load_toc_v4_PIC_2"): Likewise.
5114 ("load_toc_v4_PIC_3b"): Likewise.
5115 ("load_toc_v4_PIC_3c"): Likewise.
5116 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Simplify DEFAULT_ABI test.
5117 (RS6000_SAVE_AREA): Likewise.
5118 (FP_ARG_MAX_REG): Likewise.
5119 (RETURN_ADDRESS_OFFSET): Likewise.
5120 * config/rs6000/sysv.h (TARGET_TOC): Test for ABI_V4 instead
5122 (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
5123 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
5125 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5127 * config/rs6000/rs6000.c (rs6000_call_indirect_aix): Rename to ...
5128 (rs6000_call_aix): ... this. Handle both direct and indirect calls.
5129 Create call insn directly instead of via various gen_... routines.
5130 Mention special registers used by the call in CALL_INSN_FUNCTION_USAGE.
5131 (rs6000_sibcall_aix): New function.
5132 * config/rs6000/rs6000.md (TOC_SAVE_OFFSET_32BIT): Remove.
5133 (TOC_SAVE_OFFSET_64BIT): Likewise.
5134 (AIX_FUNC_DESC_TOC_32BIT): Likewise.
5135 (AIX_FUNC_DESC_TOC_64BIT): Likewise.
5136 (AIX_FUNC_DESC_SC_32BIT): Likewise.
5137 (AIX_FUNC_DESC_SC_64BIT): Likewise.
5138 ("call" expander): Call rs6000_call_aix.
5139 ("call_value" expander): Likewise.
5140 ("call_indirect_aix<ptrsize>"): Replace this pattern ...
5141 ("call_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
5142 ("*call_indirect_aix<mode>"): ... by this insn pattern.
5143 ("call_value_indirect_aix<ptrsize>"): Replace this pattern ...
5144 ("call_value_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
5145 ("*call_value_indirect_aix<mode>"): ... by this insn pattern.
5146 ("*call_nonlocal_aix32", "*call_nonlocal_aix64"): Replace by ...
5147 ("*call_nonlocal_aix<mode>"): ... this pattern.
5148 ("*call_value_nonlocal_aix32", "*call_value_nonlocal_aix64"): Replace
5149 ("*call_value_nonlocal_aix<mode>"): ... by this pattern.
5150 ("*call_local_aix<mode>"): New insn pattern.
5151 ("*call_value_local_aix<mode>"): Likewise.
5152 ("sibcall" expander): Call rs6000_sibcall_aix.
5153 ("sibcall_value" expander): Likewise. Move earlier in file.
5154 ("*sibcall_nonlocal_aix<mode>"): Replace by ...
5155 ("*sibcall_aix<mode>"): ... this pattern.
5156 ("*sibcall_value_nonlocal_aix<mode>"): Replace by ...
5157 ("*sibcall_value_aix<mode>"): ... this pattern.
5158 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): Remove.
5159 (rs6000_call_aix): Add prototype.
5160 (rs6000_sibcall_aix): Likewise.
5162 2013-11-14 Jakub Jelinek <jakub@redhat.com>
5165 * asan.c (asan_emit_stack_protection): Ensure -fsection-anchors
5166 isn't confused by the artificial decl.
5168 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5170 * config/rs6000/rs6000.c (rs6000_emit_prologue): Do not place a
5171 RTX_FRAME_RELATED_P marker on the UNSPEC_MOVESI_FROM_CR insn.
5172 Instead, add USEs of all modified call-saved CR fields to the
5173 insn storing the result to the stack slot, and provide an
5174 appropriate REG_FRAME_RELATED_EXPR for that insn.
5175 * config/rs6000/rs6000.md ("*crsave"): New insn pattern.
5176 * config/rs6000/predicates.md ("crsave_operation"): New predicate.
5178 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5179 Alan Modra <amodra@gmail.com>
5181 * function.c (assign_parms): Use all.reg_parm_stack_space instead
5182 of re-evaluating REG_PARM_STACK_SPACE target macro.
5183 (locate_and_pad_parm): New parameter REG_PARM_STACK_SPACE. Use it
5184 instead of evaluating target macro REG_PARM_STACK_SPACE every time.
5185 (assign_parm_find_entry_rtl): Update call.
5186 * calls.c (initialize_argument_information): Update call.
5187 (emit_library_call_value_1): Likewise.
5188 * expr.h (locate_and_pad_parm): Update prototype.
5190 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5192 * calls.c (store_unaligned_arguments_into_pseudos): Skip PARALLEL
5195 2013-11-14 DJ Delorie <dj@redhat.com>
5197 * config/rx/rx.c (rx_mode_dependent_address_p): Allow offsets up
5200 2013-11-14 Jeff Law <law@redhat.com>
5202 * tree-ssa-threadedge.c (thread_through_normal_block): Only push the
5203 EDGE_START_JUMP_THREAD marker if the jump threading path is empty.
5205 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
5207 * doc/invoke.texi: Update documentation for AArch64's -mcpu
5210 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
5212 * config/aarch64/aarch64-cores.def (example-1): Remove.
5213 (example-2): Likewise.
5214 * config/aarch64/aarch64-tune.md: Regenerate.
5215 * config/aarch64/aarch64.md: Do not include "large.md" or "small.md".
5216 (generic_sched): Remove "large", "small".
5217 * config/aarch64/large.md: Delete.
5218 * config/aarch64/small.md: Delete.
5220 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
5222 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for cortexa15.
5223 * config/aarch64/aarch64-tune.md: Regenerate.
5224 * config/aarch64/aarch64.md: Include cortex-a15 pipeline model.
5225 (generic_sched): "no" if we are tuning for cortexa15.
5226 * config/arm/cortex-a15.md: Include cortex-a15-neon.md by
5229 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
5231 * config/aarch64/aarch64-arches.def (armv8-a): Tune for cortex-a53.
5232 * config/aarch64/aarch64.md: Do not include aarch64-generic.md.
5233 * config/aarch64/aarch64.c (aarch64_tune): Initialize to cortexa53.
5234 (all_cores): Use cortexa53 when tuning for "generic".
5235 (aarch64_override_options): Fix comment.
5236 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Set to cortexa53.
5237 * config/aarch64/aarch64-generic.md: Delete.
5239 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
5241 * config/aarch64/aarch64.c (all_architectures): Remove "generic".
5243 2013-11-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5245 * config/aarch64/aarch64.c: Include aarch-cost-tables.h.
5246 (generic_rtx_cost_table): Remove.
5247 (aarch64_rtx_costs): Use fields from cpu_cost_table.
5248 * config/aarch64/aarch64-protos.h (tune_params): Use cpu_cost_table for
5250 (cpu_rtx_cost_table): Remove.
5252 2013-11-14 Julian Brown <julian@codesourcery.com>
5253 Joey Ye <joey.ye@arm.com>
5255 * config/arm/arm.c (arm_cortex_m_branch_cost): New.
5256 (arm_v7m_tune): New.
5257 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune, arm_9e_tune,
5258 arm_v6t2_tune, arm_cortex_tune, arm_cortex_a15_tune,
5259 arm_cortex_a5_tune, arm_v6m_tune): Add comments for Sched adj cost.
5260 * config/arm/arm-cores.def (cortex-m4, cortex-m3): Use arm_v7m_tune.
5262 2013-11-14 Kirill Yukhin <kirill.yukhin@intel.com>
5265 * config/ia64/ia64.c (ia64_split_tmode_move): Relax `dead'
5268 2013-11-14 Jakub Jelinek <jakub@redhat.com>
5269 Uros Bizjak <ubizjak@gmail.com>
5272 * config/i386/i386.md (*anddi_2): Only allow CCZmode if
5273 operands[2] satisfies_constraint_Z that might have bit 31 set.
5275 2013-11-13 Jeff Law <law@redhat.com>
5277 PR tree-optimization/59102
5278 * gimple-ssa-isolate-paths.c
5279 (insert_trap_and_remove_trailing_statments): Ensure STMT is a
5280 gimple assignment before looking at gimple_assign_lhs.
5282 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
5284 * ira.c: Add comment about threads at the top of file.
5286 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
5288 * ira-color.c (coalesce_allocnos): Don't allocate and free
5291 2013-11-14 Tom de Vries <tom@codesourcery.com>
5293 * tree-ssa-tail-merge.c (gimple_equal_p): Add test for structural
5294 equality for GIMPLE_ASSIGN.
5296 2013-11-14 Tom de Vries <tom@codesourcery.com>
5298 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Factor new
5300 (gimple_equal_p): ... here.
5302 2013-11-14 Tom de Vries <tom@codesourcery.com>
5304 * trans-mem.c (is_tm_ending): New function.
5305 * gimple.h (is_tm_ending): Declare.
5306 * tree-ssa-tail-merge.c (gimple_equal_p): Remove test on
5308 (find_duplicate): Use is_tm_ending instead of is_tm_ending_fndecl.
5310 2013-11-14 Tom de Vries <tom@codesourcery.com>
5312 * tree-ssa-tail-merge.c (gimple_equal_p): Remove equal variable.
5314 2013-11-13 Andrew MacLeod <amacleod@redhat.com>
5316 * gimple-walk.h: New File. Relocate prototypes from gimple.h.
5317 (struct walk_stmt_info): Relocate here from gimple.h.
5318 * gimple-iterator.h: New File. Relocate prototypes from gimple.h.
5319 (struct gimple_stmt_iterator_d): Relocate here from gimple.h.
5320 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
5321 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
5322 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
5323 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
5324 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Relocate here from gimple.h.
5325 * gimple.h (struct gimple_stmt_iterator_d): Move to gimple-iterator.h.
5326 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
5327 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
5328 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
5329 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
5330 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Move to gimple-iterator.h.
5331 (struct walk_stmt_info): Move to gimple-walk.h.
5332 (gimple_seq_set_location): Move to gimple.c
5333 * gimple-walk.c: New File.
5334 (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm, walk_gimple_op,
5335 walk_gimple_stmt, get_base_loadstore, walk_stmt_load_store_addr_ops,
5336 walk_stmt_load_store_ops): Relocate here from gimple.c.
5337 * gimple-iterator.c: Include gimple-iterator.h.
5338 * gimple.c (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm,
5339 walk_gimple_op, walk_gimple_stmt, get_base_loadstore,
5340 walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Move to
5342 (gimple_seq_set_location): Relocate from gimple.h.
5343 * tree-phinodes.h (set_phi_nodes): Move to tree-phinodes.c.
5344 * tree-phinodes.c (set_phi_nodes): Relocate from tree-phinodes.h.
5345 * gengtype.c (open_base_files): Add gimple-iterator.h to include list.
5346 * Makefile.in (OBJS): Add gimple-walk.o
5347 * asan.c: Update Include list as required for gimple-iterator.h and
5349 * cfgexpand.c: Likewise.
5350 * cfgloop.c: Likewise.
5351 * cfgloopmanip.c: Likewise.
5352 * cgraph.c: Likewise.
5353 * cgraphbuild.c: Likewise.
5354 * cgraphunit.c: Likewise.
5355 * gimple-fold.c: Likewise.
5356 * gimple-low.c: Likewise.
5357 * gimple-pretty-print.c: Likewise.
5358 * gimple-ssa-isolate-paths.c: Likewise.
5359 * gimple-ssa-strength-reduction.c: Likewise.
5360 * gimple-streamer-in.c: Likewise.
5361 * gimple-streamer-out.c: Likewise.
5362 * gimplify.c: Likewise.
5363 * graphite-blocking.c: Likewise.
5364 * graphite-clast-to-gimple.c: Likewise.
5365 * graphite-dependences.c: Likewise.
5366 * graphite-interchange.c: Likewise.
5367 * graphite-optimize-isl.c: Likewise.
5368 * graphite-poly.c: Likewise.
5369 * graphite-scop-detection.c: Likewise.
5370 * graphite-sese-to-poly.c: Likewise.
5371 * graphite.c: Likewise.
5372 * ipa-inline-analysis.c: Likewise.
5373 * ipa-profile.c: Likewise.
5374 * ipa-prop.c: Likewise.
5375 * ipa-pure-const.c: Likewise.
5376 * ipa-split.c: Likewise.
5377 * lto-streamer-in.c: Likewise.
5378 * lto-streamer-out.c: Likewise.
5379 * omp-low.c: Likewise.
5380 * predict.c: Likewise.
5381 * profile.c: Likewise.
5383 * tracer.c: Likewise.
5384 * trans-mem.c: Likewise.
5385 * tree-call-cdce.c: Likewise.
5386 * tree-cfg.c: Likewise.
5387 * tree-cfgcleanup.c: Likewise.
5388 * tree-complex.c: Likewise.
5389 * tree-data-ref.c: Likewise.
5390 * tree-dfa.c: Likewise.
5391 * tree-eh.c: Likewise.
5392 * tree-emutls.c: Likewise.
5393 * tree-if-conv.c: Likewise.
5394 * tree-inline.c: Likewise.
5395 * tree-into-ssa.c: Likewise.
5396 * tree-loop-distribution.c: Likewise.
5397 * tree-nested.c: Likewise.
5398 * tree-nrv.c: Likewise.
5399 * tree-object-size.c: Likewise.
5400 * tree-outof-ssa.c: Likewise.
5401 * tree-parloops.c: Likewise.
5402 * tree-predcom.c: Likewise.
5403 * tree-profile.c: Likewise.
5404 * tree-scalar-evolution.c: Likewise.
5405 * tree-sra.c: Likewise.
5406 * tree-ssa-ccp.c: Likewise.
5407 * tree-ssa-coalesce.c: Likewise.
5408 * tree-ssa-copy.c: Likewise.
5409 * tree-ssa-copyrename.c: Likewise.
5410 * tree-ssa-dce.c: Likewise.
5411 * tree-ssa-dom.c: Likewise.
5412 * tree-ssa-dse.c: Likewise.
5413 * tree-ssa-forwprop.c: Likewise.
5414 * tree-ssa-ifcombine.c: Likewise.
5415 * tree-ssa-live.c: Likewise.
5416 * tree-ssa-loop-ch.c: Likewise.
5417 * tree-ssa-loop-im.c: Likewise.
5418 * tree-ssa-loop-ivcanon.c: Likewise.
5419 * tree-ssa-loop-ivopts.c: Likewise.
5420 * tree-ssa-loop-manip.c: Likewise.
5421 * tree-ssa-loop-niter.c: Likewise.
5422 * tree-ssa-loop-prefetch.c: Likewise.
5423 * tree-ssa-loop.c: Likewise.
5424 * tree-ssa-math-opts.c: Likewise.
5425 * tree-ssa-phiopt.c: Likewise.
5426 * tree-ssa-phiprop.c: Likewise.
5427 * tree-ssa-pre.c: Likewise.
5428 * tree-ssa-propagate.c: Likewise.
5429 * tree-ssa-reassoc.c: Likewise.
5430 * tree-ssa-sink.c: Likewise.
5431 * tree-ssa-strlen.c: Likewise.
5432 * tree-ssa-structalias.c: Likewise.
5433 * tree-ssa-tail-merge.c: Likewise.
5434 * tree-ssa-ter.c: Likewise.
5435 * tree-ssa-threadedge.c: Likewise.
5436 * tree-ssa-threadupdate.c: Likewise.
5437 * tree-ssa-uncprop.c: Likewise.
5438 * tree-ssa-uninit.c: Likewise.
5439 * tree-ssa.c: Likewise.
5440 * tree-stdarg.c: Likewise.
5441 * tree-switch-conversion.c: Likewise.
5442 * tree-tailcall.c: Likewise.
5443 * tree-vect-data-refs.c: Likewise.
5444 * tree-vect-generic.c: Likewise.
5445 * tree-vect-loop-manip.c: Likewise.
5446 * tree-vect-loop.c: Likewise.
5447 * tree-vect-patterns.c: Likewise.
5448 * tree-vect-slp.c: Likewise.
5449 * tree-vect-stmts.c: Likewise.
5450 * tree-vectorizer.c: Likewise.
5451 * tree-vrp.c: Likewise.
5454 * value-prof.c: Likewise.
5455 * vtable-verify.c: Likewise.
5457 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
5459 * gimple-ssa-isolate-paths.c (pass_isolate_erroneous_paths): Comment
5462 2013-11-13 Jeff Law <law@redhat.com>
5464 * PR middle-end/59119
5465 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour): New
5466 function, extracted from gimple_ssa_isolate_erroneous_paths.
5467 (find_explicit_erroneous_behaviour): Similarly.
5468 (insert_trap_and_remove_trailing_statements): Remove statements
5471 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
5473 * cfgrtl.c (can_fallthru): Reorder code to move tablejump check up.
5474 Make that check explicit. BB_HEAD cannot be NULL, remove check for it.
5475 * haifa-sched.c (ready_remove_first_dispatch): Check INSN_P before
5476 looking at INSN_CODE.
5477 * reload1.c (delete_dead_insn) Do not expect JUMP_TABLE_DATA to be an
5478 active_insn_p object, respect basic block boundaries.
5479 * reorg.c (follow_jumps): Use invariant that JUMP_TABLE_DATA always
5480 follows immediately after the jump table data label.
5481 * config/nds32/nds32.c (nds32_output_casesi_pc_relative): Likewise.
5482 * config/sh/sh.c (barrier_align): Likewise. Rearrange code such
5483 that JUMP_TABLE_DATA is not expected to be an active_insn_p object.
5485 2013-11-13 Teresa Johnson <tejohnson@google.com>
5488 * predict.c (drop_profile): Error is currently too strict.
5489 (handle_missing_profiles): Pass call_count to drop_profile.
5491 2013-11-13 Teresa Johnson <tejohnson@google.com>
5494 * ipa-inline.c (edge_badness): Fix overflow.
5496 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
5498 PR rtl-optimization/59036
5499 * ira-color.c (struct allocno_color_data): Add new members
5500 first_thread_allocno, next_thread_allocno, thread_freq.
5501 (sorted_copies): New static var.
5502 (allocnos_conflict_by_live_ranges_p, copy_freq_compare_func): Move up.
5503 (allocno_thread_conflict_p, merge_threads)
5504 (form_threads_from_copies, form_threads_from_bucket)
5505 (form_threads_from_colorable_allocno, init_allocno_threads): New
5507 (bucket_allocno_compare_func): Add comparison by thread frequency
5509 (add_allocno_to_ordered_bucket): Rename to
5510 add_allocno_to_ordered_colorable_bucket. Remove parameter.
5511 (push_only_colorable): Call form_threads_from_bucket.
5512 (color_pass): Call init_allocno_threads. Use
5513 consideration_allocno_bitmap instead of coloring_allocno_bitmap
5514 for nuillify allocno color data.
5515 (ira_initiate_assign, ira_finish_assign): Allocate/free sorted_copies.
5516 (coalesce_allocnos): Use static sorted copies.
5518 2013-11-13 Jakub Jelinek <jakub@redhat.com>
5520 * passes.c (execute_todo): Don't call do_per_function if
5522 (execute_one_ipa_transform_pass, execute_one_pass): Don't call
5523 execute_function_dump if dump_file is NULL.
5525 2013-11-13 Martin Jambor <mjambor@suse.cz>
5527 * cgraph.c (cgraph_get_create_node): Do what
5528 cgraph_get_create_real_symbol_node used to do.
5529 (cgraph_get_create_real_symbol_node): Removed. Changed all users to
5530 call cgraph_get_create_node.
5531 * cgraph.h (cgraph_get_create_real_symbol_node): Removed.
5532 * lto-streamer-in.c (input_function): Call cgraph_get_node instead of
5533 cgraph_get_create_node. Assert we get a node.
5535 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
5537 * config/aarch64/aarch64-simd.md (vec_extract): New.
5539 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
5541 * config/aarch64/aarch64-simd.md (vec_set<mode>): Add w -> w option to
5544 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
5546 * cfgexpand.c (expand_used_vars): Allocate space for partitions based
5547 on PARM_DECLs or RESULT_DECLs only if they are ignored for debug info
5548 or if optimization is enabled.
5549 * tree-ssa-coalesce.c (coalesce_ssa_name): If optimization is disabled,
5550 require that all the names based on a PARM_DECL or a RESULT_DECL that
5551 isn't ignored for debug info be coalesced.
5553 2013-11-13 Jan-Benedict Glaw <jbglaw@lug-owl.de>
5555 * config/c6x/c6x.c: Include "gimple-expr.h".
5557 2013-11-13 Richard Biener <rguenther@suse.de>
5559 * gimple-streamer-out.c (output_gimple_stmt): Also wrap
5560 decls in ADDR_EXPR operands inside a MEM_REF and optimize that.
5561 * gimple-streamer-in.c (input_gimple_stmt): Remove now dead code
5562 dealing with type mismatches inside component reference chains.
5564 2013-11-13 Marc Glisse <marc.glisse@inria.fr>
5566 PR tree-optimization/59077
5567 * ipa-pure-const.c (better_state): Update *state.
5569 2013-11-13 Christophe Lyon <christophe.lyon@linaro.org>
5571 * config/aarch64/aarch64.h (FRAME_GROWS_DOWNWARD): Define to 1.
5572 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
5573 Update offset calculations.
5575 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
5578 * dwarf2out.c (add_byte_size_attribute): Also use int_size_in_bytes
5579 for fields. Do not add the attribute if the size is negative.
5581 2013-11-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5583 * config/arm/arm.c: Include aarch-cost-tables.h.
5584 (generic_extra_costs): Move from here...
5585 * config/arm/aarch-cost-tables.h: ... To here. New file.
5587 2013-11-13 Alexander Ivchenko <alexander.ivchenko@intel.com>
5588 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5589 Sergey Lega <sergey.s.lega@intel.com>
5590 Anna Tikhonova <anna.tikhonova@intel.com>
5591 Ilya Tocar <ilya.tocar@intel.com>
5592 Andrey Turetskiy <andrey.turetskiy@intel.com>
5593 Ilya Verbin <ilya.verbin@intel.com>
5594 Kirill Yukhin <kirill.yukhin@intel.com>
5595 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5597 * config/i386/i386.c (ix86_print_operand): Support z-masking.
5598 * config/i386/predicate.md (const_0_to_4_operand): New.
5599 (const_0_to_5_operand): Ditto.
5600 * config/i386/sse.md (UNSPEC_COMPRESS): New.
5601 (UNSPEC_COMPRESS_STORE): Ditto.
5602 (UNSPEC_EXPAND): Ditto.
5603 (UNSPEC_EMBEDDED_ROUNDING): Ditto.
5604 (define_mode_attr ssescalarsize): Ditto.
5605 (avx512f_load<mode>_mask): Ditto.
5606 (avx512f_store<mode>_mask): Ditto.
5607 (avx512f_storedqu<mode>_mask): Ditto.
5608 (avx512f_vmcmp<mode>3_mask): Ditto.
5609 (avx512f_fmadd_<mode>_mask): Ditto.
5610 (avx512f_fmadd_<mode>_mask3): Ditto.
5611 (avx512f_fmsub_<mode>_mask): Ditto.
5612 (avx512f_fmsub_<mode>_mask3): Ditto.
5613 (avx512f_fnmadd_<mode>_mask): Ditto.
5614 (avx512f_fnmadd_<mode>_mask3): Ditto.
5615 (avx512f_fnmsub_<mode>_mask): Ditto.
5616 (avx512f_fnmsub_<mode>_mask3): Ditto.
5617 (avx512f_fmaddsub_<mode>_mask): Ditto.
5618 (avx512f_fmaddsub_<mode>_mask3): Ditto.
5619 (avx512f_fmsubadd_<mode>_mask): Ditto.
5620 (avx512f_fmsubadd_<mode>_mask3): Ditto.
5621 (vec_unpacku_float_lo_v16si): Ditto.
5622 (avx512f_vextract<shuffletype>32x4_mask): Ditto.
5623 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
5624 (avx512f_vextract<shuffletype>64x4_mask): Ditto.
5625 (vec_extract_lo_<mode>_maskm): Ditto.
5626 (vec_extract_hi_<mode>_maskm): Ditto.
5627 (avx512f_vternlog<mode>_mask): Ditto.
5628 (avx512f_shufps512_mask): Ditto.
5629 (avx512f_fixupimm<mode>_mask): Ditto.
5630 (avx512f_shufpd512_mask): Ditto.
5631 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
5632 (avx512f_<code>v8div16qi2_mask/trunc): Ditto.
5633 (*avx512f_<code>v8div16qi2_store_mask): Ditto.
5634 (ashr<mode>3<mask_name>): Ditto.
5635 (avx512f_vinsert<shuffletype>32x4_mask): Ditto.
5636 (avx512f_vinsert<shuffletype>64x4_mask): Ditto.
5637 (avx512f_shuf_<shuffletype>64x2_mask): Ditto.
5638 (avx512f_shuf_<shuffletype>32x4_mask): Ditto.
5639 (avx512f_pshufdv3_mask): Ditto.
5640 (avx512f_perm<mode>_mask): Ditto.
5641 (avx512f_vpermi2var<mode>3_mask): Ditto.
5642 (avx512f_vpermt2var<mode>3_mask): Ditto.
5643 (avx512f_compress<mode>_mask): Ditto.
5644 (avx512f_compressstore<mode>_mask): Ditto.
5645 (avx512f_expand<mode>_mask): Ditto.
5646 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Extend
5648 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
5649 (<plusminus_insn><mode>3<mask_name>): Ditto.
5650 (*<plusminus_insn><mode>3<mask_name>): Ditto.
5651 (mul<mode>3<mask_name>): Ditto.
5652 (*mul<mode>3<mask_name>): Ditto.
5653 (<sse>_div<mode>3<mask_name>): Ditto.
5654 (<mask_codefor>rcp14<mode><mask_name>): Ditto.
5655 (<sse>_sqrt<mode>2<mask_name>): Ditto.
5656 (<mask_codefor>rsqrt14<mode><mask_name>): Ditto.
5657 (<code><mode>3<mask_name>/smaxmin): Ditto.
5658 (*<code><mode>3_finite<mask_name>/smaxmin): Ditto.
5659 (*<code><mode>3<mask_name>/smaxmin): Ditto.
5660 (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
5661 (ufloatv16siv16sf2<mask_name>): Ditto.
5662 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
5663 (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
5664 (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
5665 (float<si2dfmodelower><mode>2<mask_name>): Ditto.
5666 (ufloatv8siv8df<mask_name>): Ditto.
5667 (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
5668 (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
5669 (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
5670 (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
5671 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
5672 (<mask_codefor>avx512f_unpckhps512<mask_name>): Ditto.
5673 (<mask_codefor>avx512f_unpcklps512<mask_name>): Ditto.
5674 (<mask_codefor>avx512f_movshdup512<mask_name>): Ditto.
5675 (<mask_codefor>avx512f_movsldup512<mask_name>): Ditto.
5676 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
5677 (vec_extract_lo_<mode><mask_name>): Ditto.
5678 (vec_extract_hi_<mode><mask_name>): Ditto.
5679 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
5680 (avx512f_movddup512<mask_name>): Ditto.
5681 (avx512f_unpcklpd512<mask_name>): Ditto.
5682 (*avx512f_unpcklpd512<mask_name>): Ditto.
5683 (*avx512f_vmscalef<mode>): Ditto.
5684 (avx512f_scalef<mode><mask_name>): Ditto.
5685 (avx512f_getexp<mode><mask_name>): Ditto.
5686 (<mask_codefor>avx512f_align<mode><mask_name>): Ditto.
5687 (avx512f_rndscale<mode><mask_name>): Ditto.
5688 (avx512f_shufps512_1<mask_name>): Ditto.
5689 (avx512f_shufpd512_1<mask_name>): Ditto.
5690 (<plusminus_insn><mode>3<mask_name>): Ditto.
5691 (*<plusminus_insn><mode>3<mask_name>): Ditto.
5692 (vec_widen_umult_even_v16si<mask_name>): Ditto.
5693 (*vec_widen_umult_even_v16si<mask_name>): Ditto.
5694 (vec_widen_smult_even_v16si<mask_name>): Ditto.
5695 (*vec_widen_smult_even_v16si<mask_name>): Ditto.
5696 (mul<mode>3<mask_name>): Ditto.
5697 (*<sse4_1_avx2>_mul<mode>3<mask_name>): Ditto.
5698 (<shift_insn><mode>3<mask_name>): Ditto.
5699 (avx512f_<rotate>v<mode><mask_name>/rotate): Ditto.
5700 (avx512f_<rotate><mode><mask_name>): Ditto.
5701 (<code><mode>3<mask_name>/maxmin): Ditto.
5702 (*avx2_<code><mode>3<mask_name>/maxmin): Ditto.
5703 (<sse2_avx2>_andnot<mode>3<mask_name>): Ditto.
5704 (*andnot<mode>3<mask_name>): Ditto.
5705 (<mask_codefor><code><mode>3<mask_name>/any_logic): Ditto.
5706 (<mask_codefor>avx512f_interleave_highv16si<mask_name>): Ditto.
5707 (<mask_codefor>avx512f_interleave_lowv16si<mask_name>): Ditto.
5708 (<mask_codefor>avx512f_vinsert<shuffletype>32x4_1<mask_name>): Ditto.
5709 (vec_set_lo_<mode><mask_name>): Ditto.
5710 (vec_set_hi_<mode><mask_name>): Ditto.
5711 (avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ditto.
5712 (avx512f_shuf_<shuffletype>32x4_1<mask_name>): Ditto.
5713 (avx512f_pshufd_1<mask_name>): Ditto.
5714 (<mask_codefor>abs<mode>2<mask_name>): Ditto.
5715 (<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>): Ditto.
5716 (avx512f_<code>v16hiv16si2<mask_name>/any_extend): Ditto.
5717 (avx512f_<code>v8qiv8di2<mask_name>/any_extend): Ditto.
5718 (avx512f_<code>v8hiv8di2<mask_name>/any_extend): Ditto.
5719 (avx512f_<code>v8siv8di2<mask_name>/any_extend): Ditto.
5720 (avx512er_exp2<mode><mask_name>): Ditto.
5721 (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
5722 (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
5723 (<avx2_avx512f>_permvar<mode><mask_name>): Ditto.
5724 (<avx2_avx512f>_perm<mode>_1<mask_name>): Ditto.
5725 (<mask_codefor>avx512f_vec_dup<mode><mask_name>): Ditto.
5726 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V16FI): Ditto.
5727 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V8FI): Ditto.
5728 (<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>): Ditto.
5729 (<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>): Ditto.
5730 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF2): Ditto.
5731 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF1): Ditto.
5732 (*<sse2_avx_avx512f>_vpermilp<mode><mask_name>): Ditto.
5733 (<sse2_avx_avx512f>_vpermilvar<mode>3<mask_name>): Ditto.
5734 (<avx2_avx512f>_ashrv<mode><mask_name>): Ditto.
5735 (<avx2_avx512f>_<shift_insn>v<mode><mask_name>): Ditto.
5736 (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
5737 (<mask_codefor>avx512f_vcvtps2ph512<mask_name>): Ditto.
5738 (avx512f_getmant<mode><mask_name>): Ditto.
5739 (clz<mode>2<mask_name>): Ditto.
5740 (<mask_codefor>conflict<mode><mask_name>): Ditto.
5741 (*srcp14<mode>): Remove visibility.
5742 (*rsqrt14<mode>): Ditto.
5743 (*fma_fmsub_<mode>): Ditto.
5744 (*fma_fnmadd_<mode>): Ditto.
5745 (*avx512f_rndscale<mode>): Ditto.
5746 * config/i386/subst.md: New file.
5748 2013-11-13 Joseph Myers <joseph@codesourcery.com>
5750 * doc/extend.texi (Statement Exprs, Typeof): Discuss __auto_type.
5751 * ginclude/stdatomic.h (kill_dependency, atomic_store_explicit)
5752 (atomic_load_explicit, atomic_exchange_explicit)
5753 (atomic_compare_exchange_strong_explicit)
5754 (atomic_compare_exchange_weak_explicit): Use __auto_type to
5755 declare variable initialized with PTR argument.
5757 2013-11-12 Jeff Law <law@redhat.com>
5759 * tree-ssa-threadedge.c (thread_around_empty_blocks): New argument
5760 backedge_seen_p. Set, use and pass it to children appropriately.
5761 (thread_through_normal_block): Similarly.
5762 (thread_across_edge): Similarly.
5764 * gimple-ssa-isolate-paths.c (check_loadstore): Mark discovered
5765 memory references as volatile.
5766 (insert_trap_and_remove_trailing_statements): Fix comment.
5768 2013-11-12 Vladimir Makarov <vmakarov@redhat.com>
5771 * ira-costs.c (record_operand_costs): Check operands number for
5774 2013-11-12 Michael Meissner <meissner@linux.vnet.ibm.com>
5777 * config/rs6000/rs6000.md (movdi_internal32): Eliminate
5778 constraints that would allow DImode into the traditional Altivec
5779 registers, but cause undesirable code generation when loading 0 as
5781 (movdi_internal64): Likewise.
5782 (cmp<mode>_fpr): Do not use %x for CR register output.
5783 (extendsfdf2_fpr): Fix constraints when -mallow-upper-df and
5784 -mallow-upper-sf debug switches are used.
5786 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
5788 * gimple-expr.h (create_tmp_var_name, create_tmp_var_raw,
5789 create_tmp_var, create_tmp_reg, mark_addressable, is_gimple_reg_rhs):
5790 Relocate prototypes from gimple.h.
5791 * gimplify.h: New File. Relocate some prototypes from gimple.h here.
5792 (gimple_predicate, enum fallback, enum gimplify_status): Relocate
5794 * gimple.h: Move some prototypes to gimplify.h.
5795 (gimple_predicate, enum fallback, enum gimplify_status): Move to
5797 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location):
5798 Relocate from gimpify.c.
5799 * gimple-expr.c (remove_suffix, tmp_var_id_num, create_tmp_var_name,
5800 create_tmp_var_raw, create_tmp_var, create_tmp_reg, mark_addressable,
5801 is_gimple_reg_rhs) Relocate from gimplify.c.
5802 * gimplify.c (mark_addressable): Move to gimple-expr.c.
5803 (gimple_seq_add_stmt_without_update): Move to gimple.c.
5804 (remove_suffix, tmp_var_id_num, create_tmp_var_name,
5805 create_tmp_var_raw, create_tmp_var, create_tmp_reg,
5806 is_gimple_reg_rhs): Move to gimple-expr.c.
5807 (should_carry_location_p): Move to gimple.c.
5808 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location): Move
5810 (annotate_one_with_location, annotate_all_with_location_after,
5811 annotate_all_with_location): Move to gimple.c.
5812 (compare_case_labels, sort_case_labels,
5813 preprocess_case_label_vec_for_gimple): Move to gimple.c.
5814 (rhs_predicate_for): Make static.
5815 (gimplify_assign): Relocate from gimple.c.
5816 * gimple.c (gimplify_assign): Move to gimplify.c.
5817 (gimple_seq_add_stmt_without_update, should_carry_location_p,
5818 annotate_one_with_location, annotate_all_with_location_after,
5819 annotate_all_with_location, compare_case_labels, sort_case_labels,
5820 preprocess_case_label_vec_for_gimple): Relocate from gimplify.c.
5821 * tree.h (unshare_expr, unshare_expr_without_location,
5822 mark_addressable): Move prototypes to gimplify.h.
5823 * Makefile.in (GTFILES): gimple-expr.c now has the GTY tag for
5825 * asan.c: Include gimplify.h rather than gimple.h.
5826 * cfgloopmanip.c: Likewise.
5827 * cgraphunit.c: Likewise.
5828 * cilk-common.c: Likewise.
5829 * dwarf2out.c: Dont include gimple.h.
5830 * fold-const.c: Include gimplify.h rather than gimple.h.
5831 * function.c: Likewise.
5832 * gimple-fold.c: Likewise.
5833 * gimple-ssa-strength-reduction.c: Likewise.
5834 * graphite-clast-to-gimple.c: Likewise.
5835 * graphite-sese-to-poly.c: Likewise.
5836 * ipa-prop.c: Likewise.
5837 * ipa-split.c: Likewise.
5839 * langhooks.c: Dont include gimple.h.
5840 * loop-init.c: Include gimplify.h rather than gimple.h.
5841 * omp-low.c: Likewise.
5843 * stor-layout.c: Likewise.
5844 * targhooks.c: Likewise.
5845 * trans-mem.c: Likewise.
5846 * tree-affine.c: Likewise.
5847 * tree-cfg.c: Likewise.
5848 * tree-cfgcleanup.c: Likewise.
5849 * tree-complex.c: Likewise.
5850 * tree-if-conv.c: Likewise.
5851 * tree-inline.c: Likewise.
5852 * tree-iterator.c: Likewise.
5853 * tree-loop-distribution.c: Likewise.
5854 * tree-nested.c: Likewise.
5855 * tree-parloops.c: Likewise.
5856 * tree-predcom.c: Likewise.
5857 * tree-profile.c: Likewise.
5858 * tree-scalar-evolution.c: Likewise.
5859 * tree-sra.c: Likewise.
5860 * tree-ssa-address.c: Likewise.
5861 * tree-ssa-ccp.c: Likewise.
5862 * tree-ssa-dce.c: Likewise.
5863 * tree-ssa-forwprop.c: Likewise.
5864 * tree-ssa-ifcombine.c: Likewise.
5865 * tree-ssa-loop-im.c: Likewise.
5866 * tree-ssa-loop-ivopts.c: Likewise.
5867 * tree-ssa-loop-manip.c: Likewise.
5868 * tree-ssa-loop-niter.c: Likewise.
5869 * tree-ssa-loop-prefetch.c: Likewise.
5870 * tree-ssa-loop-unswitch.c: Likewise.
5871 * tree-ssa-math-opts.c: Likewise.
5872 * tree-ssa-phiopt.c: Likewise.
5873 * tree-ssa-phiprop.c: Likewise.
5874 * tree-ssa-pre.c: Likewise.
5875 * tree-ssa-propagate.c: Likewise.
5876 * tree-ssa-reassoc.c: Likewise.
5877 * tree-ssa-sccvn.c: Likewise.
5878 * tree-ssa-strlen.c: Likewise.
5879 * tree-ssa.c: Likewise.
5880 * tree-switch-conversio: Likewise.n.c
5881 * tree-tailcall.c: Likewise.
5882 * tree-vect-data-refs.c: Likewise.
5883 * tree-vect-generic.c: Likewise.
5884 * tree-vect-loop-manip.c: Likewise.
5885 * tree-vect-loop.c: Likewise.
5886 * tree-vect-patterns.c: Likewise.
5887 * tree-vect-stmts.c: Likewise.
5889 * value-prof.c: Likewise.
5890 * config/aarch64/aarch64.c: Include gimplify.h instead of gimple.h.
5891 * config/alpha/alpha.c: Likewise.
5892 * config/darwin.c: Likewise.
5893 * config/i386/i386.c: Likewise.
5894 * config/ia64/ia64.c: Likewise.
5895 * config/mep/mep.c: Likewise.
5896 * config/mips/mips.c: Likewise.
5897 * config/rs6000/rs6000.c: Likewise.
5898 * config/s390/s390.c: Likewise.
5899 * config/sh/sh.c: Likewise.
5900 * config/sparc/sparc.c: Likewise.
5901 * config/spu/spu.c: Likewise.
5902 * config/stormy16/stormy16.c: Likewise.
5903 * config/tilegx/tilegx.c: Likewise.
5904 * config/tilepro/tilepro.c: Likewise.
5905 * config/xtensa/xtensa.c: Likewise.
5907 2013-11-12 Adam Butcher <adam@jessamine.co.uk>
5909 * tree.c (grow_tree_vec_stat): New function ...
5910 * tree.h (grow_tree_vec_stat) (grow_tree_vec): ... and its declaration
5911 and macro front-end.
5913 2013-11-12 Marek Polacek <polacek@redhat.com>
5915 * final.c (update_alignments): Initialize label to NULL_RTX.
5917 2013-11-12 Jeff Law <law@redhat.com>
5919 * gimple-ssa-isolate-paths.c (check_loadstore): New function.
5920 (insert_trap_and_remove_trailing_statements): New argument OP which
5921 is the NULL pointer. Emit the trap after the load/store through
5922 the NULL pointer. Simplify the RHS of a store through a NULL pointer
5923 when trivial to do so.
5924 (isolate_path): Corresponding changes.
5925 (gimple_ssa_isolate_erroneous_path): Likewise.
5927 2013-11-12 Teresa Johnson <tejohnson@google.com>
5928 Jan Hubicka <jh@suse.cz>
5930 * predict.c (drop_profile): New function.
5931 (handle_missing_profiles): Ditto.
5932 (counts_to_freqs): Don't overwrite estimated frequencies
5933 when function has no profile counts.
5934 * predict.h (handle_missing_profiles): Declare.
5935 * tree-inline.c (freqs_to_counts): New function.
5936 (copy_cfg_body): Invoke freqs_to_counts as needed.
5937 * tree-profile.c (tree_profiling): Invoke handle_missing_profiles.
5939 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
5942 * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL):
5944 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Set for m_HASWELL.
5946 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
5949 * config/i386/i386.c (ix86_option_override_internal): Check
5950 X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL and
5951 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL for
5952 MASK_AVX256_SPLIT_UNALIGNED_LOAD and
5953 MASK_AVX256_SPLIT_UNALIGNED_STORE.
5955 * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
5956 Clear m_COREI7_AVX and update comments.
5957 (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Likewise.
5959 2013-11-12 Martin Jambor <mjambor@suse.cz>
5961 PR rtl-optimization/10474
5962 * ira.c (interesting_dest_for_shprep): New function.
5963 (split_live_ranges_for_shrink_wrap): Likewise.
5964 (find_moveable_pseudos): Move calculation of dominance info,
5965 df_analysios and the final anlyses to...
5966 (ira): ...here, call split_live_ranges_for_shrink_wrap.
5968 2013-11-12 Bin Cheng <bin.cheng@arm.com>
5970 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Refactor the code.
5971 Handle type conversion.
5973 2013-11-11 Martin Liska <marxin.liska@gmail.com>
5974 Jan Hubicka <jh@suse.cz>
5976 * cgraph.c (dump_cgraph_node): Profile dump added.
5977 * cgraph.h (struct cgraph_node): New time profile variable added.
5978 * cgraphclones.c (cgraph_clone_node): Time profile is cloned.
5979 * gcov-io.h (gcov_type): New profiler type introduced.
5980 * ipa-profile.c (lto_output_node): Streaming for time profile added.
5981 (input_node): Time profiler is read from LTO stream.
5982 * predict.c (maybe_hot_count_p): Hot prediction changed.
5983 * profile.c (instrument_values): New case for time profiler added.
5984 (compute_value_histograms): Read of time profile.
5985 * tree-pretty-print.c (dump_function_header): Time profiler is dumped.
5986 * tree-profile.c (init_ic_make_global_vars): Time profiler
5988 (gimple_init_edge_profiler): TP function instrumentation.
5989 (gimple_gen_time_profiler): New.
5990 * value-prof.c (gimple_add_histogram_value): Support for time profiler
5992 (dump_histogram_value): TP type added to dumps.
5993 (visit_hist): More sensitive check that takes TP into account.
5994 (gimple_find_values_to_profile): TP instrumentation.
5995 * value-prof.h (hist_type): New histogram type added.
5996 (struct histogram_value_t): Pointer to struct function added.
5997 * libgcc/Makefile.in: New GCOV merge function for TP added.
5998 * libgcov.c: function_counter variable introduced.
5999 (_gcov_merge_time_profile): New.
6000 (_gcov_time_profiler): New.
6002 2013-11-11 Marc Glisse <marc.glisse@inria.fr>
6003 Jeff Law <law@redhat.com>
6005 * tree-ssa-alias.c (stmt_kills_ref_p_1): Use
6006 ao_ref_init_from_ptr_and_size for builtins.
6008 2013-11-11 Uros Bizjak <ubizjak@gmail.com>
6009 H.J. Lu <hongjiu.lu@intel.com>
6012 * config/i386/x86-tune.def
6013 (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
6014 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES.
6015 * config/i386/i386.h
6016 (TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
6017 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES. Update for renamed
6018 X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES.
6019 * config/i386/i386.c (ix86_expand_set_or_movmem): Use
6020 TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES to calculate
6021 misaligned_prologue_used. Check that
6022 desired_aling <= epilogue_size_needed.
6024 2013-11-11 Cong Hou <congh@google.com>
6026 PR tree-optimization/59050
6027 * tree-vect-data-refs.c (comp_dr_addr_with_seg_len_pair): Bug fix.
6029 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
6032 * expmed.c (emit_store_flag): Fail for const-const comparison.
6034 2013-11-11 Tristan Gingold <gingold@adacore.com>
6035 Eric Botcazou <ebotcazou@adacore.com>
6037 * tree.h (CONSTRUCTOR_NO_CLEARING): Define.
6038 * tree-core.h (CONSTRUCTOR_NO_CLEARING): Document it.
6039 * tree.def (CONSTRUCTOR): Likewise.
6040 * doc/generic.texi (CONSTRUCTOR): Likewise. Update description.
6041 * gimplify.c (gimplify_init_constructor): Do not clear the object when
6042 the constructor is incomplete and CONSTRUCTOR_NO_CLEARING is set.
6044 2013-11-11 Basile Starynkevitch <basile@starynkevitch.net>
6046 * toplev.c (toplev_main): Move PLUGIN_FINISH invocation before
6049 2013-11-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6051 * config/arm/arm.c (arm_new_rtx_costs): Return after handling
6054 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
6056 * config/arc/arc.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.
6058 2013-11-08 Jeff Law <law@redhat.com>
6060 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
6061 threading paths first, then perform PHI node checks if applicable.
6063 2013-11-10 Karlson2k <k2k@narod.ru>
6064 Kai Tietz <ktietz@redhat.com>
6067 * configure.ac: Adding for exported symbols check
6068 and for rdynamic-check executable-extension.
6069 * configure: Regenerated.
6071 2013-11-10 Uros Bizjak <ubizjak@gmail.com>
6073 * mode-switching.c (optimize_mode_switching): Mark block as
6074 nontransparent, if last_mode at block exit is different from no_mode.
6076 2013-11-09 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6078 * function.c (NAME__MAIN): Move to...
6079 * cfgexpand.c (NAME__MAIN): ...here.
6081 2013-11-09 Richard Sandiford <rdsandiford@googlemail.com>
6083 * target.def (can_use_doloop_p): New hook.
6084 * doc/tm.texi.in (TARGET_CAN_USE_DOLOOP_P): Add.
6085 * doc/tm.texi: Regenerate.
6086 * doc/md.texi (doloop_begin, doloop_end): Update documentation.
6087 * hooks.h (hook_bool_dint_dint_uint_true): Declare.
6088 * hooks.c (hook_bool_dint_dint_uint_true): New function.
6089 * targhooks.h (can_use_doloop_if_innermost): Declare.
6090 * targhooks.c (can_use_doloop_if_innermost): New function.
6091 * target.h: Include double-int.h.
6092 * loop-doloop.c (doloop_optimize): Call targetm.can_use_doloop_p.
6093 Remove iteration count, maximum iteration count, loop depth and
6094 enter-at-top inputs from doloop_begin and doloop_end.
6095 * config/arc/arc.md (doloop_begin, doloop_end): Update for new
6097 * config/arc/arc.c (arc_can_use_doloop_p): New function.
6098 (TARGET_CAN_USE_DOLOOP_P): Define.
6099 * config/arm/thumb2.md (doloop_end): Update for new interface.
6100 * config/arm/arm.c (TARGET_CAN_USE_DOLOOP_P): Define.
6101 * config/bfin/bfin.md (doloop_end): Update for new interface.
6102 * config/bfin/bfin.c (bfin_can_use_doloop_p): New function.
6103 (TARGET_CAN_USE_DOLOOP_P): Define.
6104 * config/c6x/c6x.md (doloop_end): Update for new interface.
6105 * config/ia64/ia64.md (doloop_end): Update for new interface.
6106 * config/ia64/ia64.c (TARGET_CAN_USE_DOLOOP_P): Define.
6107 * config/mep/mep.md (doloop_begin, doloop_end): Update for new
6109 * config/mep/mep.c (mep_emit_doloop): Likewise.
6110 (TARGET_CAN_USE_DOLOOP_P): Define.
6111 * config/rs6000/rs6000.md (doloop_end): Update for new interface.
6112 * config/rs6000/rs6000.c (TARGET_CAN_USE_DOLOOP_P): Define.
6113 * config/s390/s390.md (doloop_end): Update for new interface.
6114 * config/sh/sh.md (doloop_end): Likewise.
6115 * config/spu/spu.md (doloop_end): Likewise.
6116 * config/spu/spu.c (TARGET_CAN_USE_DOLOOP_P): Define.
6117 * config/tilegx/tilegx.md (doloop_end): Update for new interface.
6118 * config/tilegx/tilegx.c (TARGET_CAN_USE_DOLOOP_P): Define.
6119 * config/tilepro/tilepro.md (doloop_end): Update for new interface.
6120 * config/tilepro/tilepro.c (TARGET_CAN_USE_DOLOOP_P): Define.
6121 * config/v850/v850.md (doloop_begin, doloop_end): Update for new
6123 * config/v850/v850.c (TARGET_CAN_USE_DOLOOP_P): Define.
6125 2013-11-08 H.J. Lu <hongjiu.lu@intel.com>
6128 * doc/extend.texi: Move Cilk Plus Builtins node before Other
6131 2013-11-08 Andrew MacLeod <amacleod@redhat.com>
6132 Joseph Myers <joseph@codesourcery.com>
6134 * ginclude/stdatomic.h: New file.
6135 * Makefile.in (USER_H): Add stdatomic.h.
6137 2013-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6139 * config/arm/arm.c (arm_new_rtx_costs): Break after handling
6142 2013-11-08 Jeff Law <law@redhat.com>
6144 * tree-ssa-threadupdate.h (delete_thread_path): Declare.
6145 * tree-ssa-threadupdate.c (delete_thread_path): New function.
6146 (ssa_redirect_edges, thread_block_1): Use it.
6147 (thread_through_loop_header, mark_threaded_blocks): Likewise.
6148 (thread_through_all_blocks, register_jump_thread): Likewise.
6149 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
6151 2013-11-08 James Greenhalgh <james.greenhalgh@arm.com>
6153 * config/arm/aarch-common.c
6154 (search_term): New typedef.
6155 (shift_rtx_costs): New array.
6156 (arm_rtx_shift_left_p): New.
6157 (arm_find_sub_rtx_with_search_term): Likewise.
6158 (arm_find_sub_rtx_with_code): Likewise.
6159 (arm_early_load_addr_dep): Add sanity checking.
6160 (arm_no_early_alu_shift_dep): Likewise.
6161 (arm_no_early_alu_shift_value_dep): Likewise.
6162 (arm_no_early_mul_dep): Likewise.
6163 (arm_no_early_store_addr_dep): Likewise.
6165 2013-11-08 Richard Biener <rguenther@suse.de>
6167 PR tree-optimization/59047
6168 * tree-predcom.c (ref_at_iteration): Handle bitfield accesses properly.
6170 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
6172 * common.opt (fcheck-pointer-bounds): Move to ...
6173 * c-family/c.opt: ... here.
6174 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
6175 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
6176 * langhooks.h (lang_hooks): Remove chkp_supported field.
6177 * toplev.c (process_options): Remove chkp_supported check.
6179 2013-11-08 Richard Biener <rguenther@suse.de>
6181 PR tree-optimization/59038
6182 PR tree-optimization/58955
6183 * tree-loop-distribution.c (pg_add_dependence_edges): Revert
6184 previous change. Handle known dependences correctly.
6186 2013-11-08 Tom de Vries <tom@codesourcery.com>
6188 * config/rs6000/t-xilinx: Remove duplicate contents.
6190 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
6191 Joseph Myers <joseph@codesourcery.com>
6193 * tree-core.h (enum cv_qualifier): Add TYPE_QUAL_ATOMIC.
6194 (enum tree_index): Add TI_ATOMICQI_TYPE, TI_ATOMICHI_TYPE,
6195 TI_ATOMICSI_TYPE, TI_ATOMICDI_TYPE and TI_ATOMICTI_TYPE.
6196 (struct tree_base): Add atomic_flag field.
6197 * tree.h (TYPE_ATOMIC): New accessor macro.
6198 (TYPE_QUALS, TYPE_QUALS_NO_ADDR_SPACE): Add TYPE_QUAL_ATOMIC.
6199 (TYPE_QUALS_NO_ADDR_SPACE_NO_ATOMIC): New macro.
6200 (atomicQI_type_node, atomicHI_type_node, atomicSI_type_node)
6201 (atomicDI_type_node, atomicTI_type_node): New macros for type nodes.
6202 * tree.c (set_type_quals): Set TYPE_ATOMIC.
6203 (find_atomic_core_type): New function.
6204 (build_qualified_type): Adjust alignment for qualified types.
6205 (build_atomic_base): New function
6206 (build_common_tree_nodes): Build atomicQI_type_node,
6207 atomicHI_type_node, atomicSI_type_node, atomicDI_type_node and
6209 * print-tree.c (print_node): Print atomic qualifier.
6210 * tree-pretty-print.c (dump_generic_node): Print atomic type attribute.
6211 * target.def (atomic_assign_expand_fenv): New hook.
6212 * doc/tm.texi.in (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New @hook.
6213 * doc/tm.texi: Regenerate.
6214 * targhooks.c (default_atomic_assign_expand_fenv): New function.
6215 * targhooks.h (default_atomic_assign_expand_fenv): Declare.
6216 * sync-builtins.def (__atomic_feraiseexcept): New built-in function.
6217 * config/i386/i386-builtin-types.def (VOID_FTYPE_PUSHORT): New
6219 * config/i386/i386.c (enum ix86_builtins): Add
6220 IX86_BUILTIN_FNSTENV, IX86_BUILTIN_FLDENV, IX86_BUILTIN_FNSTSW and
6221 IX86_BUILTIN_FNCLEX.
6222 (bdesc_special_args): Add __builtin_ia32_fnstenv,
6223 __builtin_ia32_fldenv, __builtin_ia32_fnstsw and __builtin_ia32_fnclex.
6224 (ix86_expand_builtin): Handle the new built-in functions.
6225 (ix86_atomic_assign_expand_fenv): New function.
6226 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New macro.
6227 * config/i386/i386.md (UNSPECV_FNSTENV, UNSPECV_FLDENV)
6228 (UNSPECV_FNSTSW, UNSPECV_FNCLEX): New unspecs.
6229 (fnstenv, fldenv, fnstsw, fnclex): New insns.
6231 2013-11-07 Steve Ellcey <sellcey@mips.com>
6233 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add fp64 directory.
6234 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add -mfp64 flag.
6235 (MULTILIB_DIRNAMES): Add fp64 directory.
6236 (MULTILIB_EXCEPTIONS): Add new exclusions.
6238 2013-11-07 Aldy Hernandez <aldyh@redhat.com>
6240 * gimplify.c (gimple_regimplify_operands): Do not set
6242 * graphite-sese-to-poly.c (remove_simple_copy_phi): Same.
6243 (rewrite_close_phi_out_of_ssa): Same.
6244 (rewrite_phi_out_of_ssa): Same.
6245 (rewrite_degenerate_phi): Same.
6246 (handle_scalar_deps_crossing_scop_limits): Same.
6247 * tree-if-conv.c (predicate_scalar_phi): Same.
6248 * tree-parloops.c (create_loads_for_reductions): Same.
6249 (create_final_loads_for_reduction): Same.
6250 (create_loads_and_stores_for_name): Same.
6251 (transform_to_exit_first_loop): Same.
6252 (create_parallel_loop): Same.
6253 * tree-ssa-loop-im.c
6254 (move_computations_dom_walker::before_dom_children): Same.
6255 * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Same.
6256 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Same.
6257 * tree-ssa-propagate.c (substitute_and_fold): Same.
6258 * tree-vect-loop.c (vect_finalize_reduction): Same.
6259 * tree-vect-stmts.c (vectorizable_call): Same.
6261 2013-11-07 Mike Stump <mikestump@comcast.net>
6263 * config/pdp11/pdp11.c: Include dbxout.h.
6264 * config/picochip/picochip.c: Likewise.
6266 2013-11-07 Cong Hou <congh@google.com>
6268 PR tree-optimization/56764
6269 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
6270 Combine alias checks if it is possible to amortize the runtime
6271 overhead. Return the number of alias checks after merging.
6272 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
6273 Use the function vect_create_cond_for_alias_checks () to check
6274 the number of alias checks.
6276 2013-11-07 Jeff Law <law@redhat.com>
6278 * varpool.c (ctor_for_folding): Fix typo in comment.
6280 2013-11-07 Joern Rennecke <joern.rennecke@embecosm.com>
6282 * config/arc/arc.c (arc_ifcvt): Use commutativity, e.g.:
6283 reg_a := reg_b + reg_a ==> reg_a := reg_a + reg_b
6285 2013-11-07 Jeff Law <law@redhat.com>
6287 * doc/invoke.texi (-fisolate-erroneous-paths): Document.
6289 * gimple-ssa-isolate-paths.c (gate_isolate_erroneous_paths):
6290 No longer check if we have __builtin_trap, assume it's available.
6292 2013-11-07 Diego Novillo <dnovillo@google.com>
6294 * attribs.c (lookup_scoped_attribute_spec): Make static.
6295 (get_attribute_namespace): Likewise.
6296 * builtins.c (more_const_call_expr_args_p): Move from tree.h.
6297 (validate_arglist): Move earlier in the file. Make static.
6298 (expand_stack_restore): Move from stmt.c
6299 (expand_stack_save): Move from stmt.c
6300 (rewrite_call_expr_array): Move earlier in the file.
6301 (rewrite_call_expr_valist): Likewise.
6302 * cfgexpand.c: Include hard-reg-set.h before tree.h
6305 (expand_asm_loc): Move from stmt.c.
6306 (n_occurrences): Move from stmt.c.
6307 (check_operand_nalternatives): Move from stmt.c.
6308 (tree_conflicts_with_clobbers_p): Move from stmt.c.
6309 (expand_asm_operands): Move from stmt.c
6310 (expand_asm_stmt): Move from stmt.c
6311 (expand_computed_goto): Move from stmt.c
6312 (expand_goto): Move from stmt.c
6313 (expand_null_return_1): Move from stmt.c
6314 (expand_null_return): Move from stmt.c
6315 (expand_value_return): Move from stmt.c
6316 (expand_return): Move from stmt.c
6317 (expand_main_function): Move from function.c
6318 (stack_protect_prologue): Move from function.c
6319 * cgraphclones.c (build_function_type_skip_args): Move from tree.c.
6320 (build_function_decl_skip_args): Move from tree.c.
6321 * explow.c (tree_expr_size): Move from tree.c.
6322 * expr.c (addr_expr_of_non_mem_decl_p): Remove.
6323 (fields_length): Move from tree.c.
6324 * fold-const.c (size_low_cst): Move from tree.c.
6325 (tree_expr_nonzero_warnv_p): Make static. Move earlier in the file.
6326 (tree_expr_nonzero_p): Make static. Move earlier in the file.
6327 (fold_build3_initializer_loc): Remove.
6328 (tree_invalid_nonnegative_warnv_p): Make static.
6329 * function.c (expand_main_function): Move to cfgexpand.c.
6330 (stack_protect_prologue): Move to cfgexpand.c.
6331 (set_insn_locations): Move earlier in the file.
6332 * gimple-fold.c: Include langhooks.h.
6333 (truth_type_for): Move from tree.c.
6334 * print-tree.c (print_vec_tree): Remove.
6335 * stmt.c (expand_computed_goto): Move to cfgexpand.c.
6336 (expand_goto): Move to cfgexpand.c.
6337 (n_occurrences): Move to cfgexpand.c.
6338 (expand_asm_loc): Move to cfgexpand.c
6339 (tree_conflicts_with_clobbers_p): Move to cfgexpand.c.
6340 (expand_asm_operands): Move to cfgexpand.c.
6341 (expand_asm_stmt): Move to cfgexpand.c.
6342 (check_operand_nalternatives): Move to cfgexpand.c
6343 (expand_null_return): Move to cfgexpand.c.
6344 (expand_value_return): Move to cfgexpand.c.
6345 (expand_null_return_1): Move to cfgexpand.c.
6346 (expand_return): Move to cfgexpand.c.
6347 (expand_stack_save): Move to builtins.c.
6348 (expand_stack_restore): Move to builtins.c
6349 * symtab.c: Include output.h.
6350 (decl_assembler_name_hash): Move from tree.c.
6351 (decl_assembler_name_equal): Move from tree.c.
6352 * trans-mem.c (is_tm_safe_or_pure): Move from tree.h.
6353 * tree-eh.c (in_array_bounds_p): Move from tree.c.
6354 (range_in_array_bounds_p): Move from tree.c.
6355 * tree-object-size.c (fini_object_sizes): Make static.
6356 * tree-ssa-dom.c (iterative_hash_exprs_commutative): Move from tree.h.
6357 * tree-vrp.c (ssa_name_nonnegative_p): Remove.
6358 * tree.c (decl_assembler_name_equal): Move to symtab.c.
6359 (tree_expr_size): Move to explow.c.
6360 (decl_assembler_name_hash): Move to symtab.c.
6361 (real_twop): Remove.
6362 (tree_expr_size): Move to explow.c.
6363 (stabilize_reference_1): Move earlier in the file. Make static.
6364 (omp_remove_redundant_declare_simd_attrs): Remove.
6365 (simple_cst_list_equal): Move earlier in the file. Make static.
6366 (size_low_cst): Move to fold-const.c.
6367 (build_type_no_quals): Remove.
6368 (build_function_type_skip_args): Move to cgraphclones.c.
6369 (build_function_decl_skip_args): Move to cgraphclones.c.
6370 (in_array_bounds_p): Move to tree-eh.c.
6371 (range_in_array_bounds_p): Move to tree-eh.c.
6372 (truth_type_for): Move to gimple-fold.c.
6373 (list_equal_p): Remove.
6374 * tree.h (decl_assembler_name_equal): Remove.
6375 (decl_assembler_name_hash): Remove.
6376 (truth_type_for): Remove.
6377 (build_type_no_quals): Remove.
6378 (build_function_decl_skip_args): Remove.
6379 (in_array_bounds_p): Remove.
6380 (range_in_array_bounds_p): Remove.
6381 (size_low_cst): Remove.
6382 (omp_remove_redundant_declare_simd_attrs): Remove.
6383 (tree_expr_size): Remove.
6384 (fields_length): Remove.
6385 (stabilize_reference_1): Remove.
6386 (expand_goto): Remove.
6387 (expand_stack_save): Remove.
6388 (expand_stack_restore): Remove.
6389 (expand_return): Remove.
6390 (fold_build3_initializer_loc): Remove.
6391 (tree_expr_nonzero_p): Remove.
6392 (tree_invalid_nonnegative_warnv_p): Remove.
6393 (tree_expr_nonzero_warnv_p): Remove.
6394 (fold_builtin_snprintf_chk): Remove.
6395 (validate_arglist): Remove.
6396 (iterative_hash_exprs_commutative): Move to tree-ssa-dom.c.
6397 (simple_cst_list_equal): Remove.
6398 (real_twop): Remove.
6399 (expand_main_function): Remove.
6400 (stack_protect_prologue): Remove.
6401 (print_vec_tree): Remove.
6402 (lookup_scoped_attribute_spec): Remove.
6403 (get_attribute_namespace): Remove.
6404 (expand_computed_goto): Remove.
6405 (expand_asm_stmt): Remove.
6406 (list_equal_p): Remove.
6407 (ssa_name_nonnegative_p): Remove.
6408 (fini_object_sizes): Remove.
6409 (addr_expr_of_non_mem_decl_p): Remove.
6410 (is_tm_safe_or_pure): Move to trans-mem.c.
6411 (more_const_call_expr_args_p): Remove.
6412 (save_vtable_map_decl): Remove.
6414 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
6416 * doc/sourcebuild.texi (Top Level) <lto-plugin>: GNU ld can use
6417 linker plugins, too.
6419 * config/arc/arc.h (LINK_COMMAND_SPEC): For -ftree-parallelize-loops=*,
6420 link to libgomp and its dependencies.
6421 * config/ia64/hpux.h (LIB_SPEC): Likewise.
6422 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
6423 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
6424 * gcc.c (GOMP_SELF_SPECS): Update comment about libgomp's dependencies.
6426 2013-11-07 Jakub Jelinek <jakub@redhat.com>
6428 * tree-ssa-loop-niter.c: Include tree-ssanames.h.
6429 (determine_value_range): Add loop argument. Use get_range_info to
6431 (bound_difference): Adjust caller.
6433 2013-11-07 Richard Biener <rguenther@suse.de>
6434 Jakub Jelinek <jakub@redhat.com>
6436 * tree-vrp.c (find_assert_locations): Pre-seed live bitmaps for loop
6437 latches from header PHI arguments from the latch edge.
6439 2013-11-07 Paolo Carlini <paolo.carlini@oracle.com>
6442 * varasm.c (output_constant): Handle NULLPTR_TYPE.
6444 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
6446 * config/i386/i386.c (ix86_expand_set_or_movmem): Don't set
6447 misaligned_prologue_used when it has been set.
6449 2013-11-07 Yury Gribov <y.gribov@samsung.com>
6450 Jakub Jelinek <jakub@redhat.com>
6453 * asan.c (get_mem_refs_of_builtin_call): Allow
6454 integer literals as addresses in instrumented builtins.
6456 2013-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6458 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
6459 Explain why plus_constant is not used.
6461 2013-11-07 Richard Biener <rguenther@suse.de>
6463 * tree-ssa-ccp.c (canonicalize_float_value): Rename to ...
6464 (canonicalize_value): ... this. Also handle stripping of
6466 (get_value, set_lattice_value, get_value_for_expr): Adjust.
6467 * gimple-fold.c (canonicalize_constructor_val): Strip TREE_OVERFLOW.
6468 * tree-ssa-threadedge.c (set_ssa_name_value): Likewise.
6470 2013-11-07 Richard Biener <rguenther@suse.de>
6472 * tree-dfa.c (get_ref_base_and_extent): Fix casting.
6474 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
6477 * config/i386/i386.md (push peepholer/splitter): Use Pmode
6478 with stack_pointer_rtx.
6480 2013-11-07 Bin Cheng <bin.cheng@arm.com>
6482 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Check equality
6483 using operand_equal_p.
6485 2013-11-07 Bin Cheng <bin.cheng@arm.com>
6487 * tree-ssa-loop-ivopts.c (alloc_iv): Lower address expressions.
6488 * tree-affine.c (get_inner_reference_aff): Return base.
6489 * tree-affine.h (get_inner_reference_aff): Change prototype.
6491 2013-11-06 Tobias Burnus <burnus@net-b.de>
6493 * doc/invoke.texi (Wdate-time): Fix typo.
6495 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
6497 * config/sh/sh.md (addsf3, divsf3, divsf3_i, rsqrtsf2, cmpgtdf_t,
6498 cmpeqdf_t, *ieee_ccmpeqdf_t, negdf2, sqrtdf2, absdf2): Use
6499 fp_arith_reg_operand instead of arith_reg_operand.
6501 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
6503 * config/sh/sh.md (adddi3): Remove empty constraints.
6504 Remove can_create_pseudo_p and arith_reg_operand check.
6505 (adddi3_compact, subdi3_compact, *negdi2): Remove constraints.
6506 Split before reload.
6508 2013-11-06 Jeff Law <law@redhat.com>
6509 Tom Tromey <tromey@redhat.com>
6511 * gdbinit.in: Disable strict type checking.
6513 2013-11-06 Vladimir Makarov <vmakarov@redhat.com>
6515 * tree-pass.h (make_pass_live_range_shrinkage): New external.
6516 * timevar.def (TV_LIVE_RANGE_SHRINKAGE): New.
6517 * sched-rgn.c (gate_handle_live_range_shrinkage): New.
6518 (rest_of_handle_live_range_shrinkage): Ditto
6519 (class pass_live_range_shrinkage): Ditto.
6520 (pass_data_live_range_shrinkage): Ditto.
6521 (make_pass_live_range_shrinkage): Ditto.
6522 * sched-int.h (initialize_live_range_shrinkage): New prototype.
6523 (finish_live_range_shrinkage): Ditto.
6524 * sched-deps.c (create_insn_reg_set): Make void return value.
6525 * passes.def: Add pass_live_range_shrinkage.
6526 * ira.c (update_equiv_regs): Don't move if flag_live_range_shrinkage.
6527 * haifa-sched.c (live_range_shrinkage_p): New.
6528 (initialize_live_range_shrinkage, finish_live_range_shrinkage):
6530 (rank_for_schedule): Add code for pressure relief through live
6532 (schedule_insn): Print more debug info.
6533 (sched_init): Setup SCHED_PRESSURE_WEIGHTED for pressure relief
6534 through live range shrinkage.
6535 * doc/invoke.texi (-flive-range-shrinkage): New.
6536 * common.opt (flive-range-shrinkage): New.
6538 2013-11-06 Uros Bizjak <ubizjak@gmail.com>
6541 * config/i386/i386.c (ix86_avx_u128_mode_needed): Require
6542 AVX_U128_DIRTY mode for call_insn RTXes that use AVX256 registers.
6543 (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY mode for call_insn
6544 RTXes that return in AVX256 register.
6546 2013-11-06 Richard Biener <rguenther@suse.de>
6548 PR tree-optimization/58653
6549 * tree-predcom.c (ref_at_iteration): Rewrite to generate a MEM_REF.
6550 (prepare_initializers_chain): Adjust.
6552 2013-11-06 Andrew MacLeod <amacleod@redhat.com>
6554 * gimple.h (block_in_transaction): Move to basic-block.h and rename.
6555 (gimple_in_transaction): Use bb_in_transaction.
6556 * basic-block.h (bb_in_transaction): Relocate here and rename.
6557 * tree-ssa-loop-im.c (execute_sm): Use bb_in_transaction.
6559 2013-11-06 Richard Biener <rguenther@suse.de>
6561 * tree.c (drop_tree_overflow): New function.
6562 * tree.h (drop_tree_overflow): Declare.
6563 * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW.
6564 * tree-vrp.c (range_int_cst_singleton_p): Use
6565 is_overflow_infinity instead of testing TREE_OVERFLOW.
6566 (extract_range_from_assert): Likewise.
6567 (zero_nonzero_bits_from_vr): Likewise.
6568 (extract_range_basic): Likewise.
6569 (register_new_assert_for): Use drop_tree_overflow.
6570 (vrp_visit_phi_node): Likewise.
6572 2013-11-06 Eric Botcazou <ebotcazou@adacore.com>
6574 * config/i386/i386.c (ix86_expand_prologue): Optimize stack
6575 checking for leaf functions without dynamic stack allocation.
6576 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
6577 (ia64_expand_prologue): Likewise.
6578 * config/mips/mips.c (mips_expand_prologue): Likewise.
6579 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
6580 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
6581 (sparc_flat_expand_prologue): Likewise.
6583 2013-11-06 James Greenhalgh <james.greenhalgh@arm.com>
6585 * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Better model data size.
6586 (__ST3_LANE_FUNC): Likewise.
6587 (__ST4_LANE_FUNC): Likewise.
6589 2013-11-06 Nick Clifton <nickc@redhat.com>
6591 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define the
6592 name returned by msp430_mcu_name.
6593 (LIB_SPEC): If a -T option has not been specified then set a
6594 default, mcu-specific, linker script.
6595 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more mcu names.
6596 * config/msp430/msp430.c (msp430x_names): Likewise.
6597 Alpha sort the names for ease of comparison.
6598 (msp430_mcu_name): New function: Returns a string suitable for
6599 use as a C preprocessor symbol based upon the name of the MCU
6601 (msp430_option_override): Accept msp430x and msp430xv2 as generic
6603 * config/msp430/msp430-protos.h (msp430_mcu_name): Prototype.
6605 * gcc.c (do_spec_1): Do not insert a space after a %* substitution
6606 unless it is the last part of a spec substring.
6607 * doc/invoke.texi (Spec Files): Document space insertion
6610 2013-11-06 Christian Bruel <christian.bruel@st.com>
6612 * config/sh/sh-mem.cc (sh_expand_cmpnstr, sh_expand_cmpstr):
6613 Factorize probabilities, Use adjust_address instead of
6614 adjust_automodify_address when possible. Enable for optimize.
6615 (sh_expand_strlen): New function.
6616 * config/sh/sh-protos.h (sh_expand_strlen): Declare.
6617 * config/sh/sh.md (strlensi): New pattern.
6618 (UNSPEC_BUILTIN_STRLEN): Define.
6620 2013-11-06 Jakub Jelinek <jakub@redhat.com>
6623 * expr.c (get_bit_range): Handle *offset == NULL_TREE.
6624 (expand_assignment): If *bitpos is negative, set *offset
6625 and adjust *bitpos, so that it is not negative.
6627 2013-11-06 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
6629 * config/i386/bdver3.md : Added two additional decoder units
6630 to support issue rate of 4 and remodeled vector unit.
6631 * config/i386/i386.c (ix86_issue_rate): Issue rate for BD
6632 architectures is set to 4.
6633 * config/i386/i386.c (ia32_multipass_dfa_lookahead): DFA
6634 lookahead is set to 4 for BD architectures.
6636 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6638 * config/rs6000/rs6000.c (rs6000_option_override_internal):
6639 Remove restriction against use of VSX instructions when generating
6640 code for little endian mode.
6642 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6644 * config/rs6000/altivec.md (mulv4si3): Ensure we generate vmulouh
6645 for both big and little endian.
6646 (mulv8hi3): Swap input operands for merge high and merge low
6647 instructions for little endian.
6649 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6651 * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Change
6652 define_insn to define_expand that uses even patterns for big
6653 endian and odd patterns for little endian.
6654 (vec_widen_smult_even_v16qi): Likewise.
6655 (vec_widen_umult_even_v8hi): Likewise.
6656 (vec_widen_smult_even_v8hi): Likewise.
6657 (vec_widen_umult_odd_v16qi): Likewise.
6658 (vec_widen_smult_odd_v16qi): Likewise.
6659 (vec_widen_umult_odd_v8hi): Likewise.
6660 (vec_widen_smult_odd_v8hi): Likewise.
6661 (altivec_vmuleub): New define_insn.
6662 (altivec_vmuloub): Likewise.
6663 (altivec_vmulesb): Likewise.
6664 (altivec_vmulosb): Likewise.
6665 (altivec_vmuleuh): Likewise.
6666 (altivec_vmulouh): Likewise.
6667 (altivec_vmulesh): Likewise.
6668 (altivec_vmulosh): Likewise.
6670 2013-11-05 Mike Stump <mikestump@comcast.net>
6672 * Makefile.in (mostlyclean): Remove c-family objects.
6674 2013-11-05 Ian Lance Taylor <iant@google.com>
6676 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
6677 If possible, add .cfi directives to record change to bx.
6678 * config/i386/i386.c (ix86_emit_cfi): New function.
6679 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
6681 2013-11-05 Steven Bosscher <steven@gcc.gnu.org>
6683 * rtlanal.c (tablejump_p): Expect a JUMP_TABLE_DATA to always follow
6684 immediately after a label for a tablejump pattern.
6686 * config/arm/arm.c (is_jump_table): Remove.
6687 (create_fix_barrier): Use tablejump_p instead.
6688 (arm_reorg): Likewise.
6689 (thumb1_output_casesi): Expect JUMP_TABLE_DATA to always be NEXT_INSN.
6690 (thumb2_output_casesi): Likewise.
6691 * config/aarch64/aarch64.c (aarch64_output_casesi): Likewise.
6692 * config/sh/sh.md (casesi_worker_1, casesi_worker_2,
6693 casesi_shift_media, casesi_load_media): Likewise.
6694 * config/iq2000/iq2000.md: Likewise (in anonymous define_insn).
6695 * config/microblaze/microblaze.md: Likewise.
6697 2013-11-05 Tobias Burnus <burnus@net-b.de>
6699 * doc/invoke.texi (-Wdate-time): Document.
6701 2013-11-05 Richard Sandiford <rdsandiford@googlemail.com>
6703 * double-int.c (lshift_double, rshift_double): Remove
6704 SHIFT_COUNT_TRUNCATED handling.
6706 2013-11-05 Jeff Law <law@redhat.com>
6708 * Makefile.in (OBJS): Add gimple-ssa-isolate-paths.o
6709 * common.opt (-fisolate-erroneous-paths): Add option and documentation.
6710 * gimple-ssa-isolate-paths.c: New file.
6711 * gimple.c (check_loadstore): New function.
6712 (infer_nonnull_range): Moved into gimple.c from tree-vrp.c
6713 Verify OP is in the argument list and the argument corresponding
6714 to OP is a pointer type. Use operand_equal_p rather than
6715 pointer equality when testing if OP is on the nonnull list.
6716 Use check_loadstore rather than count_ptr_derefs. Handle
6717 GIMPLE_RETURN statements.
6718 * tree-vrp.c (infer_nonnull_range): Remove.
6719 * gimple.h (infer_nonnull_range): Declare.
6720 * opts.c (default_options_table): Add OPT_fisolate_erroneous_paths.
6721 * passes.def: Add pass_isolate_erroneous_paths.
6722 * timevar.def (TV_ISOLATE_ERRONEOUS_PATHS): New timevar.
6723 * tree-pass.h (make_pass_isolate_erroneous_paths): Declare.
6724 * tree-ssa.c (struct count_ptr_d): Remove.
6725 (count_ptr_derefs, count_uses_and_derefs): Remove.
6726 * tree-ssa.h (count_uses_and_derefs): Remove.
6728 2013-11-05 Jakub Jelinek <jakub@redhat.com>
6730 PR rtl-optimization/58997
6731 * loop-iv.c (iv_subreg): For IV_UNKNOWN_EXTEND, expect
6732 get_iv_value to be in iv->mode rather than iv->extend_mode.
6733 (iv_extend): Likewise. Otherwise, if iv->extend != extend,
6734 use lowpart_subreg on get_iv_value before calling simplify_gen_unary.
6735 * loop-unswitch.c (may_unswitch_on): Make sure op[i] is in the right
6738 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
6740 * gimple.h: Move some prototypes to gimple-expr.h and add to include
6742 (extract_ops_from_tree, gimple_call_addr_fndecl, is_gimple_reg_type):
6743 Move to gimple-expr.h.
6744 * gimple-expr.h: New file. Relocate some prototypes from gimple.h.
6745 (types_compatible_p, is_gimple_reg_type, is_gimple_variable,
6746 is_gimple_id, virtual_operand_p, is_gimple_addressable,
6747 is_gimple_constant, extract_ops_from_tree, gimple_call_addr_fndecl):
6749 * gimple.c (extract_ops_from_tree_1, gimple_cond_get_ops_from_tree,
6750 gimple_set_body, gimple_body, gimple_has_body_p, is_gimple_lvalue,
6751 is_gimple_condexpr, is_gimple_addressable, is_gimple_constant,
6752 is_gimple_address, is_gimple_invariant_address,
6753 is_gimple_ip_invariant_address, is_gimple_min_invariant,
6754 is_gimple_ip_invariant, is_gimple_variable, is_gimple_id,
6755 virtual_operand_p, is_gimple_reg, is_gimple_val, is_gimple_asm_val,
6756 is_gimple_min_lval, is_gimple_call_addr, is_gimple_mem_ref_addr,
6757 gimple_decl_printable_name, useless_type_conversion_p,
6758 types_compatible_p, gimple_can_coalesce_p, copy_var_decl): Move to
6760 * gimple-expr.c: New File.
6761 (useless_type_conversion_p, gimple_set_body, gimple_body,
6762 gimple_has_body_p, gimple_decl_printable_name, copy_var_decl,
6763 gimple_can_coalesce_p, extract_ops_from_tree_1,
6764 gimple_cond_get_ops_from_tree, is_gimple_lvalue, is_gimple_condexpr,
6765 is_gimple_address, is_gimple_invariant_address,
6766 is_gimple_ip_invariant_address, is_gimple_min_invariant,
6767 is_gimple_ip_invariant, is_gimple_reg, is_gimple_val,
6768 is_gimple_asm_val, is_gimple_min_lval, is_gimple_call_addr,
6769 is_gimple_mem_ref_addr): Relocate here.
6770 * Makefile.in (OBJS): Add gimple-expr.o.
6772 2013-11-05 David Malcolm <dmalcolm@redhat.com>
6774 * gengtype-parse.c (struct_field_seq): Support empty structs.
6776 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
6778 * config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
6780 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
6782 * config/i386/i386-c.c (ix86_target_macros): Define _SOFT_FLOAT
6784 * config/i386/rtemself.h (TARGET_OS_CPP_BUILTINS): Do not define
6786 (LONG_DOUBLE_TYPE_SIZE): New define.
6787 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Ditto.
6789 2013-11-05 Paolo Carlini <paolo.carlini@oracle.com>
6792 * doc/extend.texi [visibility ("visibility_type")]: Add example
6793 about visibility attribute on namespace declaration.
6795 2013-11-05 Richard Biener <rguenther@suse.de>
6798 * passes.def (all_passes): Start with pass_fixup_cfg again.
6800 2013-11-05 Richard Biener <rguenther@suse.de>
6802 PR tree-optimization/58955
6803 * tree-loop-distribution.c (pg_add_dependence_edges): Fix
6806 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6808 * config/rs6000/vector.md (vec_pack_sfix_trunc_v2df): Adjust for
6810 (vec_pack_ufix_trunc_v2df): Likewise.
6812 2013-11-05 H.J. Lu <hongjiu.lu@intel.com>
6815 * doc/md.texi (@code{movmem@var{m}}): Specify Pmode as mode of
6816 pattern, instead of word_mode.
6818 * expr.c (emit_block_move_via_movmem): Don't use mode wider than
6820 (set_storage_via_setmem): Likewise.
6822 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
6824 * tree-outof-ssa.c (queue_phi_copy_p): Combine phi_ssa_name_p from
6825 gimple.h and the rest of the condition in eliminate_build.
6826 (eliminate_build): Call new routine.
6827 * gimple.h (phi_ssa_name_p): Delete.
6829 2013-11-05 Trevor Saunders <tsaunders@mozilla.com>
6831 * vec.c (vec_prefix::calculate_allocation): Don't try to handle the
6832 case of no prefix and reserving zero slots, because when that's the
6833 case we'll never get here.
6834 * vec.h (va_heap::reserve): Don't try and handle
6835 vec_prefix::calculate_allocation returning zero because that should
6838 2013-11-05 Richard Biener <rguenther@suse.de>
6841 * tree-dfa.c (get_ref_base_and_extent): Merge common code
6842 in MEM_REF and TARGET_MEM_REF handling. Make sure to
6843 process trailing array detection before diving into the
6844 view-converted object (and possibly apply some extra offset).
6846 2013-11-05 Joseph Myers <joseph@codesourcery.com>
6848 * config/i386/i386.c (ix86_float_exceptions_rounding_supported_p):
6850 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Define.
6852 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
6854 PR tree-optimization/58958
6855 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Use
6856 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
6858 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
6860 * tree-ssa-alias.h (ranges_overlap_p): Handle negative offsets.
6861 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Likewise.
6863 2013-11-05 Jakub Jelinek <jakub@redhat.com>
6865 PR tree-optimization/58984
6866 * ipa-prop.c (ipa_load_from_parm_agg_1): Add SIZE_P argument,
6867 set *SIZE_P if non-NULL on success.
6868 (ipa_load_from_parm_agg, ipa_analyze_indirect_call_uses): Adjust
6870 (ipcp_transform_function): Likewise. Punt if size of access
6871 is different from TYPE_SIZE on v->value's type.
6873 2013-11-05 Tobias Burnus <burnus@net-b.de>
6875 * doc/invoke.texi (-fopenmp-simd): Document new option.
6876 * gimplify.c (gimplify_body): Accept -fopenmp-simd.
6877 * omp-low.c (execute_expand_omp, execute_lower_omp): Ditto.
6878 * tree.c (attribute_value_equal): Ditto.
6880 2013-11-04 Wei Mi <wmi@google.com>
6882 * sched-rgn.c (add_branch_dependences): Keep insns in
6883 a SCHED_GROUP at the end of BB to remain their location.
6885 2013-11-04 Wei Mi <wmi@google.com>
6887 * config/i386/i386.c (memory_address_length): Extract a part
6888 of code to rip_relative_addr_p.
6889 (rip_relative_addr_p): New Function.
6890 (ix86_macro_fusion_p): Ditto.
6891 (ix86_macro_fusion_pair_p): Ditto.
6892 * config/i386/i386.h: Add new tune features about macro-fusion.
6893 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
6894 * doc/tm.texi: Generated.
6895 * doc/tm.texi.in: Ditto.
6896 * haifa-sched.c (try_group_insn): New Function.
6897 (group_insns_for_macro_fusion): Ditto.
6898 (sched_init): Call group_insns_for_macro_fusion.
6899 * target.def: Add two hooks: macro_fusion_p and
6900 macro_fusion_pair_p.
6902 2013-11-04 Kostya Serebryany <kcc@google.com>
6904 Update to match the changed asan API.
6905 * asan.c (asan_function_start): New function.
6906 (asan_emit_stack_protection): Update the string stored in the
6907 stack red zone to match new API. Store the PC of the current
6908 function in the red zone.
6909 (asan_global_struct): Update the __asan_global definition to match
6911 (asan_add_global): Ditto.
6912 * asan.h (asan_function_start): New prototype.
6913 * final.c (final_start_function): Call asan_function_start.
6914 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v1
6917 2013-11-04 Wei Mi <wmi@google.com>
6919 * config/i386/i386-c.c (ix86_target_macros_internal): Separate
6920 PROCESSOR_COREI7_AVX out from PROCESSOR_COREI7.
6921 * config/i386/i386.c (ix86_option_override_internal): Ditto.
6922 (ix86_issue_rate): Ditto.
6923 (ix86_adjust_cost): Ditto.
6924 (ia32_multipass_dfa_lookahead): Ditto.
6925 (ix86_sched_init_global): Ditto.
6926 (get_builtin_code_for_version): Ditto.
6927 * config/i386/i386.h (enum target_cpu_default): Ditto.
6928 (enum processor_type): Ditto.
6929 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
6931 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
6933 PR rtl-optimization/58967
6934 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
6935 !lra_in_progress for mode sizes bigger word.
6937 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6939 * config/rs6000/altivec.md (vec_widen_umult_hi_v16qi): Swap
6940 arguments to merge instruction for little endian.
6941 (vec_widen_umult_lo_v16qi): Likewise.
6942 (vec_widen_smult_hi_v16qi): Likewise.
6943 (vec_widen_smult_lo_v16qi): Likewise.
6944 (vec_widen_umult_hi_v8hi): Likewise.
6945 (vec_widen_umult_lo_v8hi): Likewise.
6946 (vec_widen_smult_hi_v8hi): Likewise.
6947 (vec_widen_smult_lo_v8hi): Likewise.
6949 2013-11-04 Ian Lance Taylor <iant@google.com>
6951 * builtins.def (ATTR_NOTHROWCALL_LEAF_LIST): Define.
6952 * sync-builtins.def: Use ATTR_NOTHROWCALL_LEAF_LIST for all sync
6953 builtins that take pointers.
6954 * lto-opts.c (lto_write_options): Write -fnon-call-exceptions if set.
6955 * lto-wrapper.c (merge_and_complain): Collect OPT_fnon_call_exceptions.
6956 (run_gcc): Pass -fnon-call-exceptions.
6958 2013-11-04 Jakub Jelinek <jakub@redhat.com>
6960 * optabs.c (expand_vec_perm): Revert one incorrect line from
6963 PR tree-optimization/58978
6964 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): Don't modify
6965 use_stmt by single_imm_use directly. Only call single_imm_use
6968 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
6970 PR rtl-optimization/58968
6971 * lra-spills.c (return_regno_p): New function.
6972 (lra_final_code_change): Use it.
6974 2013-11-04 Joseph Myers <joseph@codesourcery.com>
6976 * doc/cpp.texi (__GCC_IEC_559, __GCC_IEC_559_COMPLEX): Document macros.
6977 * target.def (float_exceptions_rounding_supported_p): New hook.
6978 * targhooks.c (default_float_exceptions_rounding_supported_p): New
6980 * targhooks.h (default_float_exceptions_rounding_supported_p): Declare.
6981 * doc/tm.texi.in (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P):
6983 * doc/tm.texi: Regenerate.
6984 * config.gcc (powerpc*-*-linux*): Set extra_objs.
6985 * config/rs6000/rs6000-linux.c: New file.
6986 * config/rs6000/rs6000-protos.h
6987 (rs6000_linux_float_exceptions_rounding_supported_p): Declare.
6988 * config/rs6000/linux.h
6989 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): New macro.
6990 * config/rs6000/linux64.h
6991 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Likewise.
6992 * config/rs6000/t-linux (rs6000-linux.o): New rule.
6993 * config/rs6000/t-linux64 (rs6000-linux.o): Likewise.
6995 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6997 * config/rs6000/vsx.md (*vsx_le_perm_store_<mode> for VSX_D):
6998 Replace the define_insn_and_split with a define_insn and two
6999 define_splits, with the split after reload re-permuting the source
7000 register to its original value.
7001 (*vsx_le_perm_store_<mode> for VSX_W): Likewise.
7002 (*vsx_le_perm_store_v8hi): Likewise.
7003 (*vsx_le_perm_store_v16qi): Likewise.
7005 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7007 * config/rs6000/vector.md (vec_pack_trunc_v2df): Adjust for
7010 2013-11-04 Jakub Jelinek <jakub@redhat.com>
7012 PR tree-optimization/58946
7013 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Update all
7014 bbs with bbinfo[idx].op != NULL before all blocks with
7015 bbinfo[idx].op == NULL.
7017 2013-11-04 Richard Sandiford <rdsandiford@googlemail.com>
7019 * config/avr/avr-log.c (avr_double_int_pop_digit): Delete.
7020 (avr_dump_double_int_hex): Likewise.
7021 (avr_log_vadump): Remove %D and %X handling.
7022 * config/avr/avr.c (avr_double_int_push_digit): Delete.
7023 (avr_map_op_t): Change map from double_int to unsigned int.
7024 (avr_map_op): Update accordingly.
7025 (avr_map, avr_map_metric, avr_has_nibble_0xf, avr_map_decompose)
7026 (avr_move_bits, avr_out_insert_bits, avr_fold_builtin): Operate on
7027 unsigned ints rather than double_ints.
7029 2013-11-03 Marek Polacek <polacek@redhat.com>
7031 Implement -fsanitize=vla-bound.
7032 * opts.c (common_handle_option): Handle vla-bound.
7033 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE): Define.
7034 * flag-types.h (enum sanitize_code): Add SANITIZE_VLA.
7035 * asan.c (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR.
7037 2013-11-02 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
7039 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Adjust for
7042 2013-11-02 Uros Bizjak <ubizjak@gmail.com>
7044 * config/i386/constraints.md (Ts, Tv): New address constrains.
7045 * config/i386/i386.md (*lea<mode>, *<mode>_<bndcheck>): Use Ts
7046 constraint for address_no_seg_operand.
7047 * config/i386/sse.md (*avx512pf_gatherpf<mode>_mask)
7048 (*avx512pf_gatherpf<mode>, *avx512pf_scatterpf<mode>_mask)
7049 (*avx512pf_scatterpf<mode>, *avx2_gathersi<mode>)
7050 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>_2)
7051 (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4)
7052 (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2)
7053 (*avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2)
7054 (*avx512f_scattersi<mode> *avx512f_scatterdi<mode>): Use Tv
7055 constraint for vsib_address_operand.
7057 2013-11-02 Steven Bosscher <steven@gcc.gnu.org>
7059 * gcse.c (pre_delete): Remove references to regmove from comments.
7060 * recog.c: (validate_replace_rtx_1): Likewise.
7061 * config/rl78/rl78.c: Likewise.
7062 * config/v850/v850.h: Likewise, and remove unused ENABLE_REGMOVE_PASS.
7063 * common/config/m32r/m32r-common.c: Don't manipulate OPT_fregmove.
7064 * common/config/mmix/mmix-common.c: Likewise.
7066 2013-11-01 Trevor Saunders <tsaunders@mozilla.com>
7068 * function.c (reorder_blocks): Convert block_stack to a stack_vec.
7069 * gimplify.c (gimplify_compound_lval): Likewise.
7070 * graphite-clast-to-gimple.c (gloog): Likewise.
7071 * graphite-dependences.c (loop_is_parallel_p): Likewise.
7072 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
7073 (limit_scop); Likewise.
7074 (build_scops): Likewise.
7075 (dot_scop): Likewise.
7076 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
7077 (build_scop_drs): Likewise.
7078 (insert_stmts): Likewise.
7079 (insert_out_of_ssa_copy): Likewise.
7080 (remove_phi): Likewise.
7081 (rewrite_commutative_reductions_out_of_ssa_close_phi): Likewise.
7082 * hw-doloop.c (discover_loop): Likewise.
7083 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Likewise.
7084 * tree-dfa.c (dump_enumerated_decls): Likewise.
7085 * tree-if-conv.c (if_convertable_loop_p): Likewise.
7086 * tree-inline.c (tree_function_versioning): Likewise.
7087 * tree-loop-distribution.c (build_rdg): Likewise.
7088 (rdg_flag_vertex_and_dependent): Likewise.
7089 (distribute_loop): Likewise.
7090 * tree-parloops.c (loop_parallel_p): Likewise.
7091 (eliminate_local_variables): Likewise.
7092 (separate_decls_in_region): Likewise.
7093 * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
7094 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
7095 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
7096 * tree-vect-loop.c (vect_analyze_scaler_cycles_1): Likewise.
7097 * tree-vect-patterns.c (vect_pattern_recog): Likewise.
7098 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
7099 (vectorizable_condition): Likewise.
7101 2013-11-01 Uros Bizjak <ubizjak@gmail.com>
7103 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): Always define as 0/1.
7104 * configure: Regenerate.
7105 * config/i386/i386.md (*movdi_internal): Change
7106 HAVE_AS_IX86_INTERUNIT_MOVQ to runtime check.
7107 (*movdf_internal): Ditto.
7108 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
7109 * config/i386/sse.md (vec_concatv2di): Output interunit movq
7110 for HAVE_AS_IX86_INTERUNIT_MOVQ targets.
7112 2013-10-31 Robert Suchanek <Robert.Suchanek@imgtec.com>
7114 * lra-spills.c (assign_spill_hard_regs): Remove statement terminator
7117 2013-10-31 David Malcolm <dmalcolm@redhat.com>
7119 Automated part of renaming of symtab_node_base to symtab_node.
7121 Patch autogenerated by rename_symtab.py from
7122 https://github.com/davidmalcolm/gcc-refactoring-scripts
7123 revision 58bb219cc090b2f4516a9297d868c245495ee622
7124 with ChangeLog entry fixed up by hand.
7126 * cgraph.c (x_cgraph_nodes_queue): Rename symtab_node_base to
7128 (cgraph_node_for_asm): Likewise.
7129 * cgraph.h (symtab_node_base): Likewise.
7130 (cgraph_node): Likewise.
7131 (varpool_node): Likewise.
7132 (is_a_helper <cgraph_node>::test): Likewise.
7133 (is_a_helper <varpool_node>::test): Likewise.
7134 (symtab_nodes): Likewise.
7135 (symtab_register_node): Likewise.
7136 (symtab_unregister_node): Likewise.
7137 (symtab_remove_node): Likewise.
7138 (symtab_get_node): Likewise.
7139 (symtab_node_for_asm): Likewise.
7140 (symtab_node_asm_name): Likewise.
7141 (symtab_node_name): Likewise.
7142 (symtab_insert_node_to_hashtable): Likewise.
7143 (symtab_add_to_same_comdat_group): Likewise.
7144 (symtab_dissolve_same_comdat_group_list): Likewise.
7145 (dump_symtab_node): Likewise.
7146 (debug_symtab_node): Likewise.
7147 (dump_symtab_base): Likewise.
7148 (verify_symtab_node): Likewise.
7149 (verify_symtab_base): Likewise.
7150 (symtab_used_from_object_file_p): Likewise.
7151 (symtab_alias_ultimate_target): Likewise.
7152 (symtab_resolve_alias): Likewise.
7153 (fixup_same_cpp_alias_visibility): Likewise.
7154 (symtab_for_node_and_aliases): Likewise.
7155 (symtab_nonoverwritable_alias): Likewise.
7156 (availability symtab_node_availability): Likewise.
7157 (symtab_semantically_equivalent_p): Likewise.
7158 (fixup_same_cpp_alias_visibility): Likewise.
7159 (symtab_prevail_in_asm_name_hash): Likewise.
7161 (varpool): Likewise.
7162 (varpool_first_variable): Likewise.
7163 (varpool_next_variable): Likewise.
7164 (varpool_first_static_initializer): Likewise.
7165 (varpool_next_static_initializer): Likewise.
7166 (varpool_first_defined_variable): Likewise.
7167 (varpool_next_defined_variable): Likewise.
7168 (cgraph_first_defined_function): Likewise.
7169 (cgraph_next_defined_function): Likewise.
7170 (cgraph_first_function): Likewise.
7171 (cgraph_next_function): Likewise.
7172 (cgraph_first_function_with_gimple_body): Likewise.
7173 (cgraph_next_function_with_gimple_body): Likewise.
7174 (symtab_alias_target): Likewise.
7175 (symtab_real_symbol_p): Likewise.
7176 (symtab_can_be_discarded): Likewise.
7177 * cgraphbuild.c (mark_address): Likewise.
7178 (mark_load): Likewise.
7179 (mark_store): Likewise.
7180 * cgraphunit.c (decide_is_symbol_needed): Likewise.
7182 (enqueue_node): Likewise.
7183 (referred_to_p): Likewise.
7184 (cgraph_process_same_body_aliases): Likewise.
7185 (analyze_functions): Likewise.
7186 (handle_alias_pairs): Likewise.
7187 (output_weakrefs): Likewise.
7188 (compile): Likewise.
7189 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
7190 * ipa-inline-analysis.c (inline_write_summary): Likewise.
7191 * ipa-prop.c (remove_described_reference): Likewise.
7192 (try_decrement_rdesc_refcount): Likewise.
7193 (ipa_edge_duplication_hook): Likewise.
7194 * ipa-ref.c (ipa_record_reference): Likewise.
7195 (ipa_maybe_record_reference): Likewise.
7196 (ipa_clone_ref): Likewise.
7197 (ipa_clone_references): Likewise.
7198 (ipa_clone_referring): Likewise.
7199 (ipa_find_reference): Likewise.
7200 (ipa_remove_stmt_references): Likewise.
7201 (ipa_clear_stmts_in_references): Likewise.
7202 * ipa-ref.h (symtab_node_base): Likewise.
7203 (ipa_ref): Likewise.
7204 (ipa_record_reference): Likewise.
7205 (ipa_maybe_record_reference): Likewise.
7206 (ipa_clone_references): Likewise.
7207 (ipa_clone_referring): Likewise.
7208 (ipa_clone_ref): Likewise.
7209 (ipa_find_reference): Likewise.
7210 (ipa_remove_stmt_references): Likewise.
7211 (ipa_clear_stmts_in_references): Likewise.
7212 * ipa-reference.c (ipa_reference_write_optimization_summary):
7214 * ipa.c (enqueue_node): Likewise.
7215 (process_references): Likewise.
7216 (walk_polymorphic_call_targets): Likewise.
7217 (symtab_remove_unreachable_nodes): Likewise.
7218 (address_taken_from_non_vtable_p): Likewise.
7219 (comdat_can_be_unshared_p_1): Likewise.
7220 (comdat_can_be_unshared_p): Likewise.
7221 (can_replace_by_local_alias): Likewise.
7222 (function_and_variable_visibility): Likewise.
7223 * is-a.h: Likewise (within example in comment).
7224 * lto-cgraph.c (input_cgraph_opt_summary): Likewise.
7225 (lto_symtab_encoder_encode): Likewise.
7226 (lto_symtab_encoder_delete_node): Likewise.
7227 (lto_symtab_encoder_in_partition_p): Likewise.
7228 (lto_set_symtab_encoder_in_partition): Likewise.
7229 (output_refs): Likewise.
7230 (compute_ltrans_boundary): Likewise.
7231 (output_symtab): Likewise.
7232 (input_node): Likewise.
7233 (input_ref): Likewise.
7234 (input_edge): Likewise.
7235 (input_cgraph_1): Likewise.
7236 (input_refs): Likewise.
7237 (output_cgraph_opt_summary): Likewise.
7238 (input_node_opt_summary): Likewise.
7239 (input_cgraph_opt_section): Likewise.
7240 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
7242 * lto-streamer-out.c (lto_output): Likewise.
7243 (output_symbol_p): Likewise.
7244 (produce_symtab): Likewise.
7245 * lto-streamer.h (lto_encoder_entry): Likewise.
7246 (lto_free_function_in_decl_state_for_node): Likewise.
7247 (lto_symtab_encoder_encode): Likewise.
7248 (lto_symtab_encoder_delete_node): Likewise.
7249 (lto_symtab_encoder_in_partition_p): Likewise.
7250 (lto_set_symtab_encoder_in_partition): Likewise.
7251 (lto_symtab_encoder_lookup): Likewise.
7252 (lsei_node): Likewise.
7253 (lto_symtab_encoder_deref): Likewise.
7254 * symtab.c (symtab_hash): Likewise.
7255 (assembler_name_hash): Likewise.
7256 (symtab_nodes): Likewise.
7257 (hash_node): Likewise.
7258 (eq_node): Likewise.
7259 (hash_node_by_assembler_name): Likewise.
7260 (eq_assembler_name): Likewise.
7261 (insert_to_assembler_name_hash): Likewise.
7262 (unlink_from_assembler_name_hash): Likewise.
7263 (symtab_prevail_in_asm_name_hash): Likewise.
7264 (symtab_register_node): Likewise.
7265 (symtab_insert_node_to_hashtable): Likewise.
7266 (symtab_unregister_node): Likewise.
7267 (symtab_get_node): Likewise.
7268 (symtab_remove_node): Likewise.
7269 (symtab_initialize_asm_name_hash): Likewise.
7270 (symtab_node_for_asm): Likewise.
7271 (symtab_add_to_same_comdat_group): Likewise.
7272 (symtab_dissolve_same_comdat_group_list): Likewise.
7273 (symtab_node_asm_name): Likewise.
7274 (symtab_node_name): Likewise.
7275 (dump_symtab_base): Likewise.
7276 (dump_symtab_node): Likewise.
7277 (dump_symtab): Likewise.
7278 (debug_symtab_node): Likewise.
7279 (verify_symtab_base): Likewise.
7280 (verify_symtab_node): Likewise.
7281 (verify_symtab): Likewise.
7282 (symtab_used_from_object_file_p): Likewise.
7283 (symtab_node_availability): Likewise.
7284 (symtab_alias_ultimate_target): Likewise.
7285 (fixup_same_cpp_alias_visibility): Likewise.
7286 (symtab_resolve_alias): Likewise.
7287 (symtab_for_node_and_aliases): Likewise.
7288 (symtab_for_node_and_aliases): Likewise.
7289 (symtab_nonoverwritable_alias_1): Likewise.
7290 (symtab_nonoverwritable_alias): Likewise.
7291 (symtab_semantically_equivalent_p): Likewise.
7292 * value-prof.c (init_node_map): Likewise.
7293 * varasm.c (find_decl): Likewise.
7294 * varpool.c (varpool_node_for_asm): Likewise.
7295 (varpool_remove_unreferenced_decls): Likewise.
7297 2013-10-31 David Malcolm <dmalcolm@redhat.com>
7299 Manual part of renaming of symtab_node_base to symtab_node.
7301 * ipa-ref.h (symtab_node): Remove typedef to pointer type, as it
7302 clashes with the preferred name for the base class.
7303 (const_symtab_node): Remove redundant typedef.
7305 2013-10-31 Jakub Jelinek <jakub@redhat.com>
7307 * optabs.c (expand_vec_perm): Avoid vector mode punning
7308 SUBREGs in SET_DEST.
7309 * expmed.c (store_bit_field_1): Likewise.
7310 * config/i386/sse.md (movdi_to_sse, vec_pack_sfix_trunc_v2df,
7311 vec_pack_sfix_v2df, vec_shl_<mode>, vec_shr_<mode>,
7312 vec_interleave_high<mode>, vec_interleave_low<mode>): Likewise.
7313 * config/i386/i386.c (ix86_expand_vector_move_misalign,
7314 ix86_expand_sse_movcc, ix86_expand_int_vcond, ix86_expand_vec_perm,
7315 ix86_expand_sse_unpack, ix86_expand_args_builtin,
7316 ix86_expand_vector_init_duplicate, ix86_expand_vector_set,
7317 emit_reduc_half, expand_vec_perm_blend, expand_vec_perm_pshufb,
7318 expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
7319 expand_vec_perm_vpshufb2_vpermq,
7320 expand_vec_perm_vpshufb2_vpermq_even_odd, expand_vec_perm_even_odd_1,
7321 expand_vec_perm_broadcast_1, expand_vec_perm_vpshufb4_vpermq2,
7322 ix86_expand_sse2_mulv4si3, ix86_expand_pinsr): Likewise.
7323 (expand_vec_perm_palignr): Likewise. Modify a copy of *d rather
7326 2013-10-31 Uros Bizjak <ubizjak@gmail.com>
7328 * config/i386/i386.c (ix86_expand_sse2_abs): Rename function arguments.
7329 Use gcc_unreachable for unhandled modes. Do not check results of
7330 expand_simple_binop. If not expanded to target, move the result.
7332 2013-10-31 Chung-Ju Wu <jasonwucj@gmail.com>
7333 Shiva Chen <shiva0217@gmail.com>
7335 * config.gcc (nds32*-*-*): Add nds32 target.
7336 * config/nds32/nds32.c: New file.
7337 * config/nds32/nds32.h: New file.
7338 * config/nds32/nds32.md: New file.
7339 * config/nds32/constants.md: New file.
7340 * config/nds32/constraints.md: New file.
7341 * config/nds32/iterators.md: New file.
7342 * config/nds32/nds32-doubleword.md: New file.
7343 * config/nds32/nds32-intrinsic.md: New file.
7344 * config/nds32/nds32_intrinsic.h: New file.
7345 * config/nds32/nds32-modes.def: New file.
7346 * config/nds32/nds32-multiple.md: New file.
7347 * config/nds32/nds32.opt: New file.
7348 * config/nds32/nds32-opts.h: New file.
7349 * config/nds32/nds32-protos.h: New file.
7350 * config/nds32/nds32-peephole2.md: New file.
7351 * config/nds32/pipelines.md: New file.
7352 * config/nds32/predicates.md: New file.
7353 * config/nds32/t-mlibs: New file.
7354 * common/config/nds32: New directory and files.
7356 * doc/invoke.texi (NDS32 options): Document nds32 specific options.
7357 * doc/md.texi (NDS32 family): Document nds32 specific constraints.
7358 * doc/install.texi (Cross-Compiler-Specific Options): Document
7359 --with-nds32-lib for nds32 target.
7360 * doc/extend.texi (Function Attributes, Target Builtins): Document
7361 nds32 specific attributes.
7363 2013-10-31 Vladimir Makarov <vmakarov@redhat.com>
7365 * lra-constraints (process_alt_operands): Use the result
7366 elimination register for operand when matching constraints.
7368 2013-10-31 Jakub Jelinek <jakub@redhat.com>
7370 * tree-vrp.c (maybe_set_nonzero_bits): New function.
7371 (remove_range_assertions): Call it.
7373 * tree.c (tree_ctz): New function.
7374 * tree.h (tree_ctz): New prototype.
7375 * tree-ssanames.h (get_range_info, get_nonzero_bits): Change
7376 first argument from tree to const_tree.
7377 * tree-ssanames.c (get_range_info, get_nonzero_bits): Likewise.
7378 * tree-vectorizer.h (vect_generate_tmps_on_preheader): New prototype.
7379 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader): No longer
7381 * expr.c (highest_pow2_factor): Reimplemented using tree_ctz.
7382 * tree-vect-loop.c (vect_analyze_loop_operations,
7383 vect_transform_loop): Don't force scalar loop for bound just because
7384 number of iterations is unknown, only do it if it is not known to be
7385 a multiple of vectorization_factor.
7386 * builtins.c (get_object_alignment_2): Use tree_ctz on offset.
7388 * gimple-pretty-print.c (dump_ssaname_info): Print newline also
7389 in case of VR_VARYING. Print get_nonzero_bits if not all ones.
7390 * tree-ssanames.h (struct range_info_def): Add nonzero_bits field.
7391 (set_nonzero_bits, get_nonzero_bits): New prototypes.
7392 * tree-ssa-ccp.c (get_default_value): Use get_range_info to see if
7393 a default def isn't partially constant.
7394 (ccp_finalize): If after IPA, set_range_info if integral SSA_NAME
7395 is known to be partially zero.
7396 (evaluate_stmt): If we'd return otherwise VARYING, use get_range_info
7397 to see if a default def isn't partially constant.
7398 * tree-ssanames.c (set_range_info): Initialize nonzero_bits upon
7399 creation of a range, if VR_RANGE, try to improve nonzero_bits from
7401 (set_nonzero_bits, get_nonzero_bits): New functions.
7403 * tree-cfg.c (assert_unreachable_fallthru_edge_p): New function.
7404 * tree-cfg.h (assert_unreachable_fallthru_edge_p): New prototype.
7405 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): New function.
7406 (remove_range_assertions): If ASSERT_EXPR_VAR has no other immediate
7407 uses but in the condition and ASSERT_EXPR and the other successor of
7408 the predecessor bb is __builtin_unreachable (), set_range_info of the
7409 ASSERT_EXPR_VAR to the range info of the ASSERT_EXPR's lhs.
7411 2013-10-31 Martin Jambor <mjambor@suse.cz>
7413 PR rtl-optimization/58934
7415 2013-10-30 Martin Jambor <mjambor@suse.cz>
7416 PR rtl-optimization/10474
7417 * ira.c (find_moveable_pseudos): Do not calculate dominance info
7419 (interesting_dest_for_shprep): New function.
7420 (split_live_ranges_for_shrink_wrap): Likewise.
7421 (ira): Calculate dominance info and df analysis. Call
7422 split_live_ranges_for_shrink_wrap.
7424 2013-10-31 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
7425 Yury Gribov <y.gribov@samsung.com>
7428 * asan.c (asan_clear_shadow): Allocate a new vreg for temporary
7429 shadow pointer to avoid clobbering the main one.
7431 2013-10-31 Zhenqiang Chen <zhenqiang.chen@linaro.org>
7433 * lower-subreg.c (resolve_simple_move): Copy REG_INC note.
7435 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
7438 * ira-color.c (update_costs_from_copies): Add new parameter. Use
7439 it for calling update_costs_from_allocno.
7440 (assign_hard_reg): Call restore_costs_from_copies only for
7441 !retry_p. Pass new argument to update_costs_from_copies.
7442 (color_pass): Pass new argument to update_costs_from_copies.
7443 (ira_mark_allocation_change): Ditto.
7445 2013-10-30 Sharad Singhai <singhai@google.com>
7448 * opts.c (common_handle_option): Remove deprecated option
7449 -ftree-vectorizer-verbose.
7450 * doc/invoke.texi (Debugging Options): Ditto.
7451 * opts-global.c (handle_common_deferred_options): Ditto.
7452 (dump_remap_tree_vectorizer_verbose): Delete.
7453 * common.opt: Set -ftree-vectorizer-verbose as an ignored option.
7455 2013-10-30 DJ Delorie <dj@redhat.com>
7457 * config/rx/rx.c (ADD_RX_BUILTIN0): New macro, used for builtins
7458 that take no arguments.
7460 2013-10-30 Joern Rennecke <joern.rennecke@embecosm.com>
7463 * reload1.c (update_eliminables_and_spill): New function, broken
7465 (reload): Use it. Check for frame size change after frame size
7466 alignment, and call update_eliminables_and_spill first if continue-ing.
7468 2013-10-30 Cong Hou <congh@google.com>
7471 * config/i386/i386-protos.h (ix86_expand_sse2_abs): New function.
7472 * config/i386/i386.c (ix86_expand_sse2_abs): New function.
7473 * config/i386/sse.md: Add SSE2 support to abs (8/16/32-bit-int).
7475 2013-10-18 Mikael Pettersson <mikpelinux@gmail.com>
7477 PR rtl-optimization/58369
7478 * reload1.c (compute_reload_subreg_offset): New function.
7479 (choose_reload_regs): Use it to pass endian-correct
7480 offset to subreg_regno_offset.
7482 2013-10-30 Tobias Burnus <burnus@net-b.de>
7485 * tree-cfg.c (replace_loop_annotate): Replace warning by
7488 2013-10-30 Jason Merrill <jason@redhat.com>
7490 * configure.ac (loose_warn): Add -Wno-format if
7491 --disable-build-format-warnings.
7493 2013-10-30 David Malcolm <dmalcolm@redhat.com>
7495 * cgraphunit.c (analyze_functions): Split symtab_node declarations
7496 onto multiple lines to make things easier for rename_symtab.py.
7498 * symtab.c (symtab_dissolve_same_comdat_group_list): Likewise.
7499 (symtab_semantically_equivalent_p): Likewise.
7501 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
7504 * lra.c (check_rtl): Remove address check before LRA work.
7506 2013-10-30 Marc Glisse <marc.glisse@inria.fr>
7508 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for a
7509 POINTER_PLUS_EXPR in the defining statement.
7511 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
7513 * regmove.c: Remove.
7514 * tree-pass.h (make_pass_regmove): Remove.
7515 * timevar.def (TV_REGMOVE): Remove.
7516 * passes.def (pass_regmove): Remove.
7517 * opts.c (default_options_table): Remove entry for regmove.
7518 * doc/passes.texi: Remove regmove pass description.
7519 * doc/invoke.texi (-foptimize-register-move, -fregmove): Remove
7521 (-fdump-rtl-regmove): Ditto.
7522 * common.opt (foptimize-register-move, fregmove): Ignore.
7523 * Makefile.in (OBJS): Remove regmove.o.
7524 * regmove.c: Remove.
7525 * ira-int.h (struct ira_allocno_pref, ira_pref_t): New structure
7527 (struct ira_allocno) New member allocno_prefs.
7528 (ALLOCNO_PREFS): New macro.
7529 (ira_prefs, ira_prefs_num): New external vars.
7530 (ira_setup_alts, ira_get_dup_out_num, ira_debug_pref): New prototypes.
7531 (ira_debug_prefs, ira_debug_allocno_prefs, ira_create_pref): Ditto.
7532 (ira_add_allocno_pref, ira_remove_pref, ira_remove_allocno_prefs):
7534 (ira_add_allocno_copy_to_list): Remove prototype.
7535 (ira_swap_allocno_copy_ends_if_necessary): Ditto.
7536 (ira_pref_iterator): New type.
7537 (ira_pref_iter_init, ira_pref_iter_cond): New functions.
7538 (FOR_EACH_PREF): New macro.
7539 * ira.c (commutative_constraint_p): Move from ira-conflicts.c.
7540 (ira_get_dup_out_num): Ditto. Rename from get_dup_num. Modify the
7542 (ira_setup_alts): New function.
7543 (decrease_live_ranges_number): New function.
7544 (ira): Call the above function.
7545 * ira-build.c (ira_prefs, ira_prefs_num): New global vars.
7546 (ira_create_allocno): Initialize allocno prefs.
7547 (pref_pool, pref_vec): New static vars.
7548 (initiate_prefs, find_allocno_pref, ira_create_pref): New
7550 (add_allocno_pref_to_list, ira_add_allocno_pref, print_pref): Ditto.
7551 (ira_debug_pref, print_prefs, ira_debug_prefs): Ditto.
7552 (print_allocno_prefs, ira_debug_allocno_prefs, finish_pref): Ditto.
7553 (ira_remove_pref, ira_remove_allocno_prefs, finish_prefs): Ditto.
7554 (ira_add_allocno_copy_to_list): Make static. Rename to
7555 add_allocno_copy_to_list.
7556 (ira_swap_allocno_copy_ends_if_necessary): Make static. Rename to
7557 swap_allocno_copy_ends_if_necessary.
7558 (remove_unnecessary_allocnos, remove_low_level_allocnos): Call
7559 ira_remove_allocno_prefs.
7560 (ira_flattening): Ditto.
7561 (ira_build): Call initiate_prefs, print_prefs.
7562 (ira_destroy): Call finish_prefs.
7563 * ira-color.c (struct update_cost_record): New.
7564 (struct allocno_color_data): Add new member update_cost_records.
7565 (update_cost_record_pool): New static var.
7566 (init_update_cost_records, get_update_cost_record): New functions.
7567 (free_update_cost_record_list, finish_update_cost_records): Ditto.
7568 (struct update_cost_queue_elem): Add member from.
7569 (initiate_cost_update): Call init_update_cost_records.
7570 (finish_cost_update): Call finish_update_cost_records.
7571 (queue_update_cost, get_next_update_cost): Add new param from.
7572 (Update_allocno_cost, update_costs_from_allocno): New functions.
7573 (update_costs_from_prefs): Ditto.
7574 (update_copy_costs): Rename to update_costs_from_copies.
7575 (restore_costs_from_copies): New function.
7576 (update_conflict_hard_regno_costs): Don't go back.
7577 (assign_hard_reg): Call restore_costs_from_copies. Add printing
7579 (pop_allocnos): Add priniting more debug info.
7580 (color_allocnos): Remove prefs for conflicting hard regs.
7581 Call update_costs_from_prefs.
7582 * ira-conflicts.c (commutative_constraint_p): Move to ira.c
7583 (get_dup_num): Rename, modify, and move to ira.c
7584 (process_regs_for_copy): Add prefs.
7585 (add_insn_allocno_copies): Put src as first arg of
7586 process_regs_for_copy. Remove dead code. Call ira_setup_alts.
7587 * ira-costs.c (record_reg_classes): Modify and move code into
7588 record_operands_costs.
7589 (find_costs_and_classes): Create prefs for the hard reg of small
7591 (process_bb_node_for_hard_reg_moves): Add prefs.
7593 2013-10-30 Richard Biener <rguenther@suse.de>
7596 * basic-block.h (pre_and_rev_post_order_compute_fn): New function.
7597 * cfganal.c (pre_and_rev_post_order_compute_fn): New function
7599 (pre_and_rev_post_order_compute): ... which now wraps it.
7600 * graph.c (draw_cfg_nodes_no_loops): Use
7601 pre_and_rev_post_order_compute_fn to avoid ICEing and dependence
7604 2013-10-30 Christian Bruel <christian.bruel@st.com>
7606 * config/sh/sh-mem.cc (sh_expand_cmpnstr): New function.
7607 (sh_expand_cmpstr): Handle known align and schedule improvements.
7608 * config/sh/sh-protos.h (sh_expand_cmpstrn): Declare.
7609 * config/sh/sh.md (cmpstrnsi): New pattern.
7611 2013-10-30 Martin Jambor <mjambor@suse.cz>
7613 PR rtl-optimization/10474
7614 * ira.c (find_moveable_pseudos): Do not calculate dominance info
7616 (interesting_dest_for_shprep): New function.
7617 (split_live_ranges_for_shrink_wrap): Likewise.
7618 (ira): Calculate dominance info and df analysis. Call
7619 split_live_ranges_for_shrink_wrap.
7621 2013-10-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7624 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage.
7626 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
7628 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
7629 * tree.h (POINTER_BOUNDS_P): New.
7630 (BOUNDED_TYPE_P): New.
7632 (pointer_bounds_type_node): New.
7633 * tree.c (build_common_tree_nodes): Initialize
7634 pointer_bounds_type_node.
7635 * gimple.h (gimple_call_get_nobnd_arg_index): New.
7636 (gimple_call_num_nobnd_args): New.
7637 (gimple_call_nobnd_arg): New.
7638 (gimple_return_retbnd): New.
7639 (gimple_return_set_retbnd): New
7640 * gimple.c (gimple_build_return): Increase number of ops
7641 for return statement.
7642 (gimple_call_get_nobnd_arg_index): New.
7643 * gimple-pretty-print.c (dump_gimple_return): Print second op.
7645 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
7647 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
7648 with "chkp ctor" and "bnd_legacy" attributes.
7649 * gimplify.c (gimplify_init_constructor): Avoid infinite
7650 loop during gimplification of bounds initializer.
7652 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
7654 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
7655 (handle_bnd_legacy): New.
7656 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
7657 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
7660 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
7662 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
7663 (BT_FN_PTR_CONST_PTR): New.
7664 (BT_FN_CONST_PTR_CONST_PTR): New.
7665 (BT_FN_PTR_CONST_PTR_SIZE): New.
7666 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
7667 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
7668 (BT_FN_VOID_CONST_PTR_SIZE): New.
7669 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
7670 * chkp-builtins.def: New.
7671 * builtins.def: include chkp-builtins.def.
7672 (DEF_CHKP_BUILTIN): New.
7673 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
7674 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
7675 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
7676 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
7677 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
7678 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
7679 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
7680 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
7681 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
7682 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
7683 * common.opt (fcheck-pointer-bounds): New.
7684 * toplev.c (process_options): Check Pointer Bounds Checker is
7686 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
7688 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
7690 * target.def (builtin_chkp_function): New.
7691 (chkp_bound_type): New.
7692 (chkp_bound_mode): New.
7693 (fn_abi_va_list_bounds_size): New.
7694 (load_bounds_for_arg): New.
7695 (store_bounds_for_arg): New.
7696 * targhooks.h (default_load_bounds_for_arg): New.
7697 (default_store_bounds_for_arg): New.
7698 (default_fn_abi_va_list_bounds_size): New.
7699 (default_chkp_bound_type): New.
7700 (default_chkp_bound_mode): New.
7701 (default_builtin_chkp_function): New.
7702 * targhooks.c (default_load_bounds_for_arg): New.
7703 (default_store_bounds_for_arg): New.
7704 (default_fn_abi_va_list_bounds_size): New.
7705 (default_chkp_bound_type): New.
7706 (default_chkp_bound_mode); New.
7707 (default_builtin_chkp_function): New.
7708 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
7709 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
7710 (TARGET_STORE_BOUNDS_FOR_ARG): New.
7711 (TARGET_BUILTIN_CHKP_FUNCTION): New.
7712 (TARGET_CHKP_BOUND_TYPE): New.
7713 (TARGET_CHKP_BOUND_MODE): New.
7714 * doc/tm.texi: Regenerated.
7715 * langhooks.h (lang_hooks): Add chkp_supported field.
7716 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
7717 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
7719 2013-10-29 Andrew Pinski <apinski@cavium.com>
7721 * tree-ssa-ifcombine.c: Include rtl.h and tm_p.h.
7722 (ifcombine_ifandif): Handle cases where maybe_fold_and_comparisons
7723 fails, combining the branches anyways.
7724 (tree_ssa_ifcombine): Inverse the order of the basic block walk,
7725 increases the number of combinings.
7726 * gimple.h (gsi_start_nondebug_after_labels_bb): New function.
7728 2013-10-29 Mike Stump <mikestump@comcast.net>
7730 * machmode.def (PARTIAL_INT_MODE): Add precision and name.
7731 * genmodes.c (PARTIAL_INT_MODE): Add precision and name.
7732 (make_vector_mode): Increase namebuf to 16.
7733 (emit_insn_modes_h): When processing BImode, don't
7734 also match partial int modes.
7735 (emit_class_narrowest_mode): Likewise.
7737 * config/bfin/bfin-modes.def: Add precision to PDI.
7738 * config/m32c/m32c-modes.def: Add precision to PSI.
7739 * config/msp430/msp430-modes.def: Add precision to PSI.
7740 * config/rs6000/rs6000-modes.def: Add precision to PTI.
7741 * config/sh/sh-modes.def: Add precision to PSI and PDI.
7743 2013-10-29 Oleg Endo <olegendo@gcc.gnu.org>
7746 * config/sh/sh.md (*addc): Rename existing variations to ...
7747 (*addc_r_r_1, *addc_2r_1, *addc_r_1): ... these.
7748 (*addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_2r_lsb, *addc_r_msb,
7749 *addc_r_r_msb, *addc_2r_msb): New insn_and_split patterns.
7750 * config/sh/sh.c (addsubcosts): Handle some addc special cases.
7752 2013-10-29 Teresa Johnson <tejohnson@google.com>
7755 * tree-ssa-tail-merge.c (replace_block_by): Tolerate profile
7756 insanities when updating probabilities.
7758 2013-10-29 David Malcolm <dmalcolm@redhat.com>
7760 * gdbhooks.py (CGraphNodePrinter.to_string): Update gdb
7761 prettyprinter for cgraph_node to reflect the conversion of the
7762 symtable types to a C++ class hierarchy: it now *is* a
7763 symtab_node_base, rather than having one (named "symbol").
7765 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
7767 * builtins.c (is_builtin_name): Added a check for __cilkrts_detach and
7768 __cilkrts_pop_frame. If matched, then return true for built-in
7770 (expand_builtin): Added BUILT_IN_CILK_DETACH and
7771 BUILT_IN_CILK_POP_FRAME case.
7772 * langhooks-def.h (lhd_install_body_with_frame_cleanup): New prototype.
7773 (lhs_cilk_detect_spawn): Likewise.
7774 (LANG_HOOKS_DECLS): Added LANG_HOOKS_CILKPLUS.
7775 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): New #define.
7776 (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
7777 (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
7778 (LANG_HOOKS_CILKPLUS): Likewise.
7779 * tree.h (CILK_SPAWN_FN): Likewise.
7780 * builtin.def (DEF_CILK_BUILTIN_STUB): Likewise.
7781 * Makefile.in (C_COMMON_OBJS): Added c-family/cilk.o.
7782 (OBJS): Added cilk-common.o.
7783 (BUILTINS_DEF): Added cilk-builtins.def.
7784 * langhooks.c (lhd_install_body_with_frame_cleanup): New function.
7785 (lhd_cilk_detect_spawn): Likewise.
7786 * langhooks.h (lang_hooks_for_cilkplus): New struct.
7787 (struct lang_hooks): Added new field called "cilkplus."
7788 * cilk-common.c: New file.
7790 * cilk-builtins.def: Likewise.
7791 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Added
7792 "__cilk" macro and set it to 200.
7793 * function.h (struct function::cilk_frame_decl): New field.
7794 (struct function::is_cilk_function): Likewise.
7795 (struct function::calls_cilk_spawn): Likewise.
7796 * gimplify.c (gimplify_call_expr): Added a check if the function call
7797 being gimplified is a spawn detach point. If so, then add pop_frame
7798 and detach function calls.
7799 (gimplify_expr): Added a CILK_SPAWN_STMT and CILK_SYNC_STMT case
7800 for gimplifying _Cilk_spawn and _Cilk_sync statements.
7801 (gimplify_return_expr): Added a check for _Cilk_spawn usage in
7802 function. If so, added a _Cilk_sync and gimplified it.
7803 (gimplify_modify_expr): Added a check for _Cilk_spawn in MODIFY and
7804 INIT_EXPRs. If so, then call gimplify_cilk_spawn.
7805 * ipa-inline-analysis (initialize_inline_failed): Prevent inlining of
7807 (can_inline_edge_p): Prevent inling of spawnee function.
7808 * ira.c (ira_setup_eliminable_regset): Force usage of frame pointer
7809 for functions that use Cilk keywords.
7810 * tree-inline.h (struct copy_body_data::remap_var_for_cilk): New field.
7811 * tree-pretty-print.c (dump_generic_node): Added CILK_SPAWN_STMT and
7812 CILK_SYNC_STMT cases.
7813 * tree.def (DEFTREECODE): Added CILK_SPAWN_STMT and CILK_SYNC_STMT
7815 * generic.texi (CILK_SPAWN_STMT): Added documentation for _Cilk_spawn.
7816 (CILK_SYNC_STMT): Added documentation for _Cilk_sync.
7817 * passes.texi (Cilk Keywords): New section that describes the compiler
7818 code changes for handling Cilk Keywords.
7820 2013-10-29 David Malcolm <dmalcolm@redhat.com>
7822 Patch autogenerated by refactor_symtab.py from
7823 https://github.com/davidmalcolm/gcc-refactoring-scripts
7824 revision 58bb219cc090b2f4516a9297d868c245495ee622
7826 * asan.c (asan_finish_file): Update for conversion of symtab types to
7827 a true class hierarchy.
7828 * cfgexpand.c (estimated_stack_frame_size): Likewise.
7829 * cgraph.c (cgraph_get_body): Likewise.
7830 (cgraph_get_create_real_symbol_node): Likewise.
7831 (verify_cgraph_node): Likewise.
7832 (verify_edge_corresponds_to_fndecl): Likewise.
7833 (verify_edge_count_and_frequency): Likewise.
7834 (cgraph_will_be_removed_from_program_if_no_direct_calls): Likewise.
7835 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
7836 (cgraph_can_remove_if_no_direct_calls_and_refs_p): Likewise.
7837 (cgraph_node_cannot_return): Likewise.
7838 (cgraph_set_pure_flag_1): Likewise.
7839 (cgraph_set_const_flag_1): Likewise.
7840 (cgraph_set_nothrow_flag_1): Likewise.
7841 (cgraph_make_node_local_1): Likewise.
7842 (cgraph_for_node_and_aliases): Likewise.
7843 (cgraph_for_node_thunks_and_aliases): Likewise.
7844 (cgraph_node_can_be_local_p): Likewise.
7845 (cgraph_node_cannot_be_local_p_1): Likewise.
7846 (cgraph_function_body_availability): Likewise.
7847 (dump_cgraph_node): Likewise.
7848 (cgraph_rtl_info): Likewise.
7849 (cgraph_mark_address_taken_node): Likewise.
7850 (cgraph_remove_node): Likewise.
7851 (cgraph_release_function_body): Likewise.
7852 (cgraph_update_edges_for_call_stmt_node): Likewise.
7853 (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
7854 (cgraph_make_edge_direct): Likewise.
7855 (cgraph_resolve_speculation): Likewise.
7856 (cgraph_speculative_call_info): Likewise.
7857 (cgraph_turn_edge_to_speculative): Likewise.
7858 (cgraph_create_edge_1): Likewise.
7859 (cgraph_set_call_stmt): Likewise.
7860 (cgraph_node_for_asm): Likewise.
7861 (cgraph_add_thunk): Likewise.
7862 (cgraph_same_body_alias): Likewise.
7863 (cgraph_create_function_alias): Likewise.
7864 (cgraph_create_node): Likewise.
7865 (cgraph_create_empty_node): Likewise.
7866 (record_function_versions): Likewise.
7867 (used_from_object_file_p): Likewise.
7868 * cgraph.h (symtab_can_be_discarded): Likewise.
7869 (symtab_real_symbol_p): Likewise.
7870 (cgraph_mark_force_output_node): Likewise.
7871 (cgraph_edge_recursive_p): Likewise.
7872 (symtab_alias_target): Likewise.
7873 (varpool_all_refs_explicit_p): Likewise.
7874 (varpool_can_remove_if_no_refs): Likewise.
7875 (cgraph_only_called_directly_or_aliased_p): Likewise.
7876 (cgraph_next_function_with_gimple_body): Likewise.
7877 (cgraph_first_function_with_gimple_body): Likewise.
7878 (cgraph_function_with_gimple_body_p): Likewise.
7879 (cgraph_next_function): Likewise.
7880 (cgraph_first_function): Likewise.
7881 (cgraph_next_defined_function): Likewise.
7882 (cgraph_first_defined_function): Likewise.
7883 (varpool_next_defined_variable): Likewise.
7884 (varpool_first_defined_variable): Likewise.
7885 (varpool_next_static_initializer): Likewise.
7886 (varpool_first_static_initializer): Likewise.
7887 (varpool_next_variable): Likewise.
7888 (varpool_first_variable): Likewise.
7889 (varpool_node_name): Likewise.
7890 (varpool): Likewise.
7892 (is_a_helper <varpool_node>::test): Likewise.
7893 (is_a_helper <cgraph_node>::test): Likewise.
7894 (varpool_variable_node): Likewise.
7895 (cgraph_function_or_thunk_node): Likewise.
7896 (varpool_alias_target): Likewise.
7897 (cgraph_alias_target): Likewise.
7898 (cgraph_node_name): Likewise.
7899 (varpool_node_asm_name): Likewise.
7900 (cgraph_node_asm_name): Likewise.
7901 * cgraphbuild.c (remove_cgraph_callee_edges): Likewise.
7902 (cgraph_rebuild_references): Likewise.
7903 (rebuild_cgraph_edges): Likewise.
7904 (record_eh_tables): Likewise.
7905 (build_cgraph_edges): Likewise.
7906 (mark_store): Likewise.
7907 (mark_load): Likewise.
7908 (mark_address): Likewise.
7909 (record_type_list): Likewise.
7910 (record_reference): Likewise.
7911 * cgraphclones.c (cgraph_materialize_all_clones): Likewise.
7912 (cgraph_materialize_clone): Likewise.
7913 (cgraph_function_versioning): Likewise.
7914 (cgraph_copy_node_for_versioning): Likewise.
7915 (update_call_expr): Likewise.
7916 (cgraph_find_replacement_node): Likewise.
7917 (cgraph_create_virtual_clone): Likewise.
7918 (cgraph_clone_node): Likewise.
7919 * cgraphunit.c (compile): Likewise.
7920 (output_weakrefs): Likewise.
7921 (output_in_order): Likewise.
7922 (expand_function): Likewise.
7923 (assemble_thunks_and_aliases): Likewise.
7924 (expand_thunk): Likewise.
7925 (mark_functions_to_output): Likewise.
7926 (handle_alias_pairs): Likewise.
7927 (analyze_functions): Likewise.
7928 (walk_polymorphic_call_targets): Likewise.
7929 (varpool_finalize_decl): Likewise.
7930 (process_function_and_variable_attributes): Likewise.
7931 (cgraph_process_same_body_aliases): Likewise.
7932 (analyze_function): Likewise.
7933 (cgraph_add_new_function): Likewise.
7934 (cgraph_finalize_function): Likewise.
7935 (referred_to_p): Likewise.
7936 (cgraph_reset_node): Likewise.
7937 (cgraph_process_new_functions): Likewise.
7938 (enqueue_node): Likewise.
7939 (decide_is_symbol_needed): Likewise.
7940 * coverage.c (coverage_compute_profile_id): Likewise.
7941 * dbxout.c (dbxout_expand_expr): Likewise.
7942 * dwarf2out.c (premark_types_used_by_global_vars_helper): Likewise.
7943 (reference_to_unused): Likewise.
7944 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
7945 * gimplify.c (unvisit_body): Likewise.
7946 (unshare_body): Likewise.
7947 * ipa-cp.c (ipcp_generate_summary): Likewise.
7948 (ipcp_decision_stage): Likewise.
7949 (identify_dead_nodes): Likewise.
7950 (decide_whether_version_node): Likewise.
7951 (decide_about_value): Likewise.
7952 (perhaps_add_new_callers): Likewise.
7953 (create_specialized_node): Likewise.
7954 (update_profiling_info): Likewise.
7955 (ipcp_propagate_stage): Likewise.
7956 (estimate_local_effects): Likewise.
7957 (good_cloning_opportunity_p): Likewise.
7958 (devirtualization_time_bonus): Likewise.
7959 (propagate_constants_accross_call): Likewise.
7960 (initialize_node_lattices): Likewise.
7961 (ipcp_cloning_candidate_p): Likewise.
7962 (determine_versionability): Likewise.
7963 (print_all_lattices): Likewise.
7964 (print_lattice): Likewise.
7965 (ipcp_discover_new_direct_edges): Likewise.
7966 * ipa-devirt.c (ipa_devirt): Likewise.
7967 (likely_target_p): Likewise.
7968 (update_type_inheritance_graph): Likewise.
7969 (possible_polymorphic_call_target_p): Likewise.
7970 (dump_possible_polymorphic_call_targets): Likewise.
7971 (devirt_variable_node_removal_hook): Likewise.
7972 (record_binfo): Likewise.
7973 (maybe_record_node): Likewise.
7974 (build_type_inheritance_graph): Likewise.
7975 * ipa-inline-analysis.c (inline_write_summary): Likewise.
7976 (inline_generate_summary): Likewise.
7977 (inline_analyze_function): Likewise.
7978 (do_estimate_growth): Likewise.
7979 (simple_edge_hints): Likewise.
7980 (estimate_node_size_and_time): Likewise.
7981 (estimate_edge_devirt_benefit): Likewise.
7982 (compute_inline_parameters): Likewise.
7983 (estimate_function_body_sizes): Likewise.
7984 (compute_bb_predicates): Likewise.
7985 (initialize_inline_failed): Likewise.
7986 (dump_inline_summary): Likewise.
7987 (dump_inline_edge_summary): Likewise.
7988 * ipa-inline-transform.c (inline_transform): Likewise.
7989 (preserve_function_body_p): Likewise.
7990 (save_inline_function_body): Likewise.
7991 (inline_call): Likewise.
7992 (clone_inlined_nodes): Likewise.
7993 (can_remove_node_now_p): Likewise.
7994 (can_remove_node_now_p_1): Likewise.
7995 * ipa-inline.c (early_inliner): Likewise.
7996 (early_inline_small_functions): Likewise.
7997 (inline_always_inline_functions): Likewise.
7998 (ipa_inline): Likewise.
7999 (flatten_function): Likewise.
8000 (inline_small_functions): Likewise.
8001 (speculation_useful_p): Likewise.
8002 (recursive_inlining): Likewise.
8003 (update_caller_keys): Likewise.
8004 (reset_edge_caches): Likewise.
8005 (update_edge_key): Likewise.
8006 (edge_badness): Likewise.
8007 (relative_time_benefit): Likewise.
8008 (want_inline_self_recursive_call_p): Likewise.
8009 (want_inline_small_function_p): Likewise.
8010 (want_early_inline_function_p): Likewise.
8011 (num_calls): Likewise.
8012 (can_early_inline_edge_p): Likewise.
8013 (can_inline_edge_p): Likewise.
8014 (report_inline_failed_reason): Likewise.
8015 * ipa-profile.c (ipa_profile): Likewise.
8016 (ipa_propagate_frequency): Likewise.
8017 (ipa_propagate_frequency_1): Likewise.
8018 (ipa_profile_generate_summary): Likewise.
8019 * ipa-prop.c (ipcp_transform_function): Likewise.
8020 (read_replacements_section): Likewise.
8021 (ipa_prop_read_section): Likewise.
8022 (ipa_modify_call_arguments): Likewise.
8023 (ipa_print_node_params): Likewise.
8024 (propagate_controlled_uses): Likewise.
8025 (update_indirect_edges_after_inlining): Likewise.
8026 (remove_described_reference): Likewise.
8027 (ipa_make_edge_direct_to_target): Likewise.
8028 (ipa_analyze_node): Likewise.
8029 (ipa_analyze_params_uses): Likewise.
8030 (ipa_compute_jump_functions): Likewise.
8031 (ipa_get_callee_param_type): Likewise.
8032 (ipa_print_node_jump_functions): Likewise.
8033 (ipa_initialize_node_params): Likewise.
8034 (ipa_populate_param_decls): Likewise.
8035 (ipa_func_spec_opts_forbid_analysis_p): Likewise.
8036 (write_agg_replacement_chain): Likewise.
8037 (ipa_write_node_info): Likewise.
8038 (ipa_edge_duplication_hook): Likewise.
8039 (try_decrement_rdesc_refcount): Likewise.
8040 * ipa-pure-const.c (propagate_nothrow): Likewise.
8041 (propagate_pure_const): Likewise.
8042 (pure_const_read_summary): Likewise.
8043 (pure_const_write_summary): Likewise.
8044 (analyze_function): Likewise.
8045 * ipa-ref-inline.h (ipa_ref_referred_ref_list): Likewise.
8046 (ipa_ref_referring_ref_list): Likewise.
8047 * ipa-ref.c (ipa_clear_stmts_in_references): Likewise.
8048 (ipa_remove_stmt_references): Likewise.
8049 (ipa_find_reference): Likewise.
8050 (ipa_dump_referring): Likewise.
8051 (ipa_dump_references): Likewise.
8052 (ipa_record_reference): Likewise.
8053 * ipa-reference.c (ipa_reference_read_optimization_summary): Likewise.
8054 (ipa_reference_write_optimization_summary): Likewise.
8055 (write_node_summary_p): Likewise.
8056 (propagate): Likewise.
8057 (read_write_all_from_decl): Likewise.
8058 (generate_summary): Likewise.
8059 (analyze_function): Likewise.
8060 (propagate_bits): Likewise.
8061 (ipa_reference_get_not_written_global): Likewise.
8062 (ipa_reference_get_not_read_global): Likewise.
8063 * ipa-split.c (execute_split_functions): Likewise.
8064 (split_function): Likewise.
8065 * ipa-utils.c (ipa_merge_profiles): Likewise.
8066 (dump_cgraph_node_set): Likewise.
8067 (ipa_reverse_postorder): Likewise.
8068 (ipa_edge_within_scc): Likewise.
8069 (ipa_get_nodes_in_cycle): Likewise.
8070 (ipa_free_postorder_info): Likewise.
8071 (ipa_reduced_postorder): Likewise.
8072 (searchc): Likewise.
8073 (recursive_call_p): Likewise.
8074 * ipa.c (ipa_cdtor_merge): Likewise.
8075 (record_cdtor_fn): Likewise.
8076 (function_and_variable_visibility): Likewise.
8077 (varpool_externally_visible_p): Likewise.
8078 (cgraph_externally_visible_p): Likewise.
8079 (comdat_can_be_unshared_p): Likewise.
8080 (comdat_can_be_unshared_p_1): Likewise.
8081 (address_taken_from_non_vtable_p): Likewise.
8082 (ipa_discover_readonly_nonaddressable_vars): Likewise.
8083 (symtab_remove_unreachable_nodes): Likewise.
8084 (walk_polymorphic_call_targets): Likewise.
8085 (process_references): Likewise.
8086 (enqueue_node): Likewise.
8087 (has_addr_references_p): Likewise.
8088 (cgraph_non_local_node_p_1): Likewise.
8089 * is-a.h (varpool_analyze_node): Likewise.
8090 * lto-cgraph.c (input_symtab): Likewise.
8091 (merge_profile_summaries): Likewise.
8092 (input_cgraph_1): Likewise.
8093 (input_edge): Likewise.
8094 (input_varpool_node): Likewise.
8095 (input_node): Likewise.
8096 (input_overwrite_node): Likewise.
8097 (compute_ltrans_boundary): Likewise.
8098 (output_refs): Likewise.
8099 (lto_output_varpool_node): Likewise.
8100 (lto_output_node): Likewise.
8101 (reachable_from_other_partition_p): Likewise.
8102 (referenced_from_other_partition_p): Likewise.
8103 (lto_output_edge): Likewise.
8104 (output_node_opt_summary): Likewise.
8105 (add_node_to): Likewise.
8106 (reachable_from_this_partition_p): Likewise.
8107 (lto_set_symtab_encoder_in_partition): Likewise.
8108 (lto_symtab_encoder_in_partition_p): Likewise.
8109 (lto_set_symtab_encoder_encode_initializer): Likewise.
8110 (lto_symtab_encoder_encode_initializer_p): Likewise.
8111 (lto_set_symtab_encoder_encode_body): Likewise.
8112 (lto_symtab_encoder_encode_body_p): Likewise.
8113 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
8115 * lto-streamer-in.c (lto_read_body): Likewise.
8116 (fixup_call_stmt_edges): Likewise.
8117 (fixup_call_stmt_edges_1): Likewise.
8118 * lto-streamer-out.c (produce_symtab): Likewise.
8119 (output_symbol_p): Likewise.
8120 (write_symbol): Likewise.
8121 (lto_output): Likewise.
8122 (copy_function): Likewise.
8123 (output_function): Likewise.
8124 * passes.c (function_called_by_processed_nodes_p): Likewise.
8125 (ipa_write_optimization_summaries): Likewise.
8126 (ipa_write_summaries): Likewise.
8127 (do_per_function_toporder): Likewise.
8128 (do_per_function): Likewise.
8129 (dump_passes): Likewise.
8130 * symtab.c (symtab_semantically_equivalent_p): Likewise.
8131 (symtab_nonoverwritable_alias): Likewise.
8132 (symtab_nonoverwritable_alias_1): Likewise.
8133 (symtab_for_node_and_aliases): Likewise.
8134 (symtab_resolve_alias): Likewise.
8135 (fixup_same_cpp_alias_visibility): Likewise.
8136 (symtab_alias_ultimate_target): Likewise.
8137 (symtab_used_from_object_file_p): Likewise.
8138 (verify_symtab_base): Likewise.
8139 (dump_symtab_base): Likewise.
8140 (symtab_node_name): Likewise.
8141 (symtab_node_asm_name): Likewise.
8142 (symtab_dissolve_same_comdat_group_list): Likewise.
8143 (symtab_add_to_same_comdat_group): Likewise.
8144 (symtab_unregister_node): Likewise.
8145 (symtab_insert_node_to_hashtable): Likewise.
8146 (symtab_register_node): Likewise.
8147 (unlink_from_assembler_name_hash): Likewise.
8148 (insert_to_assembler_name_hash): Likewise.
8149 (eq_assembler_name): Likewise.
8150 (hash_node_by_assembler_name): Likewise.
8151 (eq_node): Likewise.
8152 (hash_node): Likewise.
8153 * toplev.c (wrapup_global_declaration_2): Likewise.
8154 * trans-mem.c (ipa_tm_execute): Likewise.
8155 (ipa_tm_transform_clone): Likewise.
8156 (ipa_tm_transform_transaction): Likewise.
8157 (ipa_tm_transform_calls_redirect): Likewise.
8158 (ipa_tm_insert_gettmclone_call): Likewise.
8159 (ipa_tm_insert_irr_call): Likewise.
8160 (ipa_tm_create_version): Likewise.
8161 (ipa_tm_create_version_alias): Likewise.
8162 (ipa_tm_mark_forced_by_abi_node): Likewise.
8163 (ipa_tm_mark_force_output_node): Likewise.
8164 (ipa_tm_diagnose_tm_safe): Likewise.
8165 (ipa_tm_mayenterirr_function): Likewise.
8166 (ipa_tm_scan_irr_function): Likewise.
8167 (ipa_tm_note_irrevocable): Likewise.
8168 (ipa_tm_scan_calls_clone): Likewise.
8169 (get_cg_data): Likewise.
8170 * tree-eh.c (tree_could_trap_p): Likewise.
8171 * tree-emutls.c (ipa_lower_emutls): Likewise.
8172 (create_emultls_var): Likewise.
8173 (lower_emutls_function_body): Likewise.
8174 (gen_emutls_addr): Likewise.
8175 (emutls_decl): Likewise.
8176 (new_emutls_decl): Likewise.
8177 * tree-inline.c (tree_function_versioning): Likewise.
8178 (optimize_inline_calls): Likewise.
8179 (expand_call_inline): Likewise.
8180 (estimate_num_insns): Likewise.
8181 (copy_bb): Likewise.
8182 (delete_unreachable_blocks_update_callgraph): Likewise.
8183 * tree-nested.c (gimplify_all_functions): Likewise.
8184 (create_nesting_tree): Likewise.
8185 (check_for_nested_with_variably_modified): Likewise.
8186 * tree-pretty-print.c (dump_function_header): Likewise.
8187 * tree-profile.c (tree_profiling): Likewise.
8188 * tree-sra.c (ipa_sra_preliminary_function_checks): Likewise.
8189 (modify_function): Likewise.
8190 (convert_callers): Likewise.
8191 (convert_callers_for_node): Likewise.
8192 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
8193 (associate_varinfo_to_alias): Likewise.
8194 (create_variable_info_for): Likewise.
8195 (get_constraint_for_ssa_var): Likewise.
8196 * tree-vectorizer.c (increase_alignment): Likewise.
8197 * tree.c (find_decls_types_in_var): Likewise.
8198 (find_decls_types_in_node): Likewise.
8199 (free_lang_data_in_decl): Likewise.
8200 * value-prof.c (gimple_ic_transform): Likewise.
8201 (gimple_ic): Likewise.
8202 (check_ic_target): Likewise.
8203 (init_node_map): Likewise.
8204 * varasm.c (decl_binds_to_current_def_p): Likewise.
8205 (default_binds_local_p_1): Likewise.
8206 (dump_tm_clone_pairs): Likewise.
8207 (assemble_alias): Likewise.
8208 (find_decl): Likewise.
8209 (mark_decl_referenced): Likewise.
8210 * varpool.c (varpool_for_node_and_aliases): Likewise.
8211 (varpool_extra_name_alias): Likewise.
8212 (varpool_create_variable_alias): Likewise.
8213 (add_new_static_var): Likewise.
8214 (varpool_finalize_named_section_flags): Likewise.
8215 (varpool_remove_unreferenced_decls): Likewise.
8216 (enqueue_node): Likewise.
8217 (varpool_assemble_decl): Likewise.
8218 (assemble_aliases): Likewise.
8219 (varpool_analyze_node): Likewise.
8220 (cgraph_variable_initializer_availability): Likewise.
8221 (varpool_add_new_variable): Likewise.
8222 (ctor_for_folding): Likewise.
8223 (dump_varpool_node): Likewise.
8224 (varpool_remove_initializer): Likewise.
8225 (varpool_remove_node): Likewise.
8226 (varpool_node_for_decl): Likewise.
8227 (varpool_create_empty_node): Likewise.
8228 * config/i386/i386.c (ix86_generate_version_dispatcher_body): Likewise.
8229 (ix86_get_function_versions_dispatcher): Likewise.
8231 2013-10-29 David Malcolm <dmalcolm@redhat.com>
8233 * cgraph.h (symtab_node_base): Convert to a class;
8234 add GTY((desc ("%h.type"), tag ("SYMTAB_SYMBOL"))), and take
8235 chain_next/prev from symtab_node_def.
8236 (cgraph_node): Inherit from symtab_node; add GTY option
8237 tag ("SYMTAB_FUNCTION").
8238 (varpool_node): Inherit from symtab_node; add GTY option
8239 tag ("SYMTAB_VARIABLE").
8240 (symtab_node_def): Remove.
8241 (is_a_helper <cgraph_node>::test (symtab_node_def *)): Convert to...
8242 (is_a_helper <cgraph_node>::test (symtab_node_base *)): ...this.
8243 (is_a_helper <varpool_node>::test (symtab_node_def *)): Convert to...
8244 (is_a_helper <varpool_node>::test (symtab_node_base *)): ...this.
8246 * ipa-ref.h (symtab_node_def): Drop.
8247 (symtab_node): Change underlying type from symtab_node_def to
8249 (const_symtab_node): Likwise.
8251 * is-a.h: Update examples in comment.
8253 * symtab.c (symtab_hash): Change symtab_node_def to symtab_node_base.
8254 (assembler_name_hash): Likewise.
8256 2013-10-29 Martin Liska <marxin.liska@gmail.com>
8258 * doc/tree-ssa.texi (gimple_phi_result): Document.
8259 (gimple_phi_num_args, gimple_phi_arg): Likewise.
8260 (gimple_phi_arg_edge, gimple_phi_arg_def): Likewise.
8261 (PHI_RESULT, PHI_NUM_ARGS): Remove.
8262 (PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF): Likewise.
8264 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
8266 * expr.h: Revert change and include tree-core.h.
8267 * rtl.h: Revert change and don't include tree-core.h.
8269 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
8271 * config/darwin.c: Include gimple.h.
8272 * config/i386/winnt.c: Likewise.
8274 2013-10-29 Marc Glisse <marc.glisse@inria.fr>
8276 PR tree-optimization/19831
8277 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle BUILT_IN_FREE.
8279 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
8281 * tree-outof-ssa.h: Remove include files.
8282 * tree-outof-ssa.c: Add required include files from tree-outof-ssa.h.
8284 * tree-ssa-coalesce.c: Likewise.
8285 * cfgexpand.c: Likewise.
8286 * tree-ssa-ter.c: Likewise.
8287 * ipa-prop.h: Remove gimple.h and tree-core.h from include list.
8288 * lto-streamer.h: Likewise.
8289 * cgraphbuild.c: Add gimple.h to include list.
8290 * data-streamer-in.c: Likewise.
8291 * ipa-cp.c: Likewise.
8292 * tree-streamer.c: Likewise.
8293 * lto-compress.c: Likewise.
8294 * ipa-reference.c: Likewise.
8295 * data-streamer-out.c: Likewise.
8296 * lto-cgraph.c: Likewise.
8297 * cgraphclones.c: Likewise.
8298 * ipa-utils.c: Likewise.
8299 * data-streamer.c: Likewise.
8300 * ipa-split.c: Likewise.
8301 * lto-section-in.c: Likewise.
8302 * tree-streamer-out.c: Likewise.
8303 * ipa-prop.c: Likewise.
8304 * tree-streamer-in.c: Likewise.
8305 * symtab.c: Likewise.
8306 * opts-global.c: Likewise.
8307 * lto-opts.c: Likewise.
8308 * lto-section-out.c: Likewise.
8309 * lto-streamer.c: Likewise.
8310 * rtl.h: Add tree-core.h to include list.
8311 * expr.h: Remove tree-core.h from include list.
8312 * gimple.h: Likewise.
8313 * ipa-utils.h: Likewise.
8314 * streamer-hooks.h: Likewise.
8315 * streamer-hooks.c: Include input.h.
8317 2013-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8319 * config/arm/arm.c (cortexa7_extra_costs): New table.
8320 (arm_cortex_a7_tune): New.
8321 * config/arm/arm-cores.def: Use cortex_a7 tuning for cortex-a7.
8323 2013-10-29 Eric Botcazou <ebotcazou@adacore.com>
8325 * expr.c (expand_expr_real_1) <MEM_EXPR>: Eliminate small redundancy.
8327 2013-10-29 David Malcolm <dmalcolm@redhat.com>
8329 * doc/gty.texi ("Inheritance and GTY"): Make it clear that
8330 to use autogenerated markers for a class-hierarchy, every class
8331 must have a GTY marker.
8332 * gengtype.h (struct type): Add linked list of subclasses to
8333 the "s" member of the union.
8334 (add_subclass): New decl.
8335 * gengtype-state.c (read_state_struct_type): Set up subclass
8337 * gengtype.c (get_ultimate_base_class): New.
8338 (add_subclass): New.
8339 (new_structure): Set up subclass linked list.
8340 (set_gc_used_type): Propagate usage information to subclasses.
8341 (output_mangled_typename): Use get_ultimate_base_class.
8342 (walk_subclasses): Use the subclass linked list, avoiding an
8343 O(N^2) when writing out all types.
8344 (walk_type): Issue an error if the base class is missing a tag,
8345 rather than generating bogus C code. Add a gcc_unreachable
8346 default case, in case people omit tags from concrete subclasses,
8347 or get the values wrong.
8348 (write_func_for_structure): Issue an error for subclasses for
8349 which the base doesn't have a "desc", since otherwise the
8350 autogenerated routines for the base would silently fail to visit
8351 any subclass fields.
8352 (write_root): Use get_ultimate_base_class, tweaking constness of
8353 tp to match that function's signature.
8355 2013-10-29 David Malcolm <dmalcolm@redhat.com>
8357 * doc/gty.texi (GTY Options): Add note about inheritance to
8358 description of desc and tag.
8359 (Inheritance and GTY): New.
8361 2013-10-29 David Malcolm <dmalcolm@redhat.com>
8363 * gengtype-parse.c (opts_have): Drop "static" so that
8364 we can use this from gengtype.c.
8365 * gengtype.c (set_gc_used_type): Mark any base class as used;
8366 update field traversal to visit inherited fields.
8367 (output_mangled_typename): Convert references to classes within
8368 an inheritance hierarchy to reference the ultimate base class,
8369 since only it will have gt_ functions.
8370 (get_string_option): New.
8371 (walk_subclasses): New.
8372 (walk_type): Treat GTY structs that have a "desc" as being the
8373 root of an inheritance hierarchy. Generate a switch on it
8374 within the marking function which walks all subclasses, adding
8375 cases for them via walk_subclasses. For subclasses, visit all
8376 fields of the type (including inherited ones).
8377 (write_func_for_structure): Don't write fns for subclasses, only
8378 for the ultimate base class within an inheritance hierarchy.
8379 Subclasses-marking will be handled by the base class marking functions.
8380 (write_types): Likewise.
8381 (write_local_func_for_structure): Likewise.
8382 (USED_BY_TYPED_GC_P): Emit allocators for subclasses that have
8383 a "tag" option (and are thus concrete subclasses).
8384 (write_root): Use the marker function for the ultimate base class.
8385 * gengtype.h (FOR_ALL_INHERITED_FIELDS): New.
8386 (opts_have): Add declaration.
8388 2013-10-28 Vladimir Makarov <vmakarov@redhat.com>
8390 * lra-spills.c (lra_final_code_change): Remove useless move insns
8391 originated from moves of pseudos.
8393 2013-10-28 Jeff Law <law@redhat.com>
8395 * lower-subreg.c (resolve_simple_move): Fix comment typo.
8397 2013-10-28 Trevor Saunders <tsaunders@mozilla.com>
8399 * df-scan.c (df_collection_rec): Adjust.
8400 (copy_defs): New constant.
8401 (copy_uses): Likewise.
8402 (copy_eq_uses): Likewise.
8403 (copy_mw): Likewise.
8404 (copy_all): Likewise.
8405 (df_insn_rescan): Adjust.
8406 (df_notes_rescan): Likewise.
8407 (df_swap_refs): Likewise.
8408 (df_sort_and_compress_refs): Likewise.
8409 (df_sort_and_compress_mws): Likewise.
8410 (df_install_refs): Likewise.
8411 (df_install_mws): Likewise.
8412 (df_refs_add_to_chains): Add flags parameter controlling which vectors
8414 (df_bb_refs_record): Adjust.
8415 (df_record_entry_block_defs): Likewise.
8416 (df_record_exit_block_defs): Likewise.
8417 (df_refs_verify): Likewise.
8418 (df_mws_verify): Likewise.
8419 (df_insn_refs_verify): Likewise.
8420 (df_bb_verify): Likewise.
8421 * ipa-pure-const.c (finish_state): Remove.
8422 (propagate): Adjust.
8423 * tree-data-ref.c tree-ssa-alias.c tree-ssa-loop-ivcanon.c
8424 tree-ssa-threadedge.c tree-vect-loop-manip.c tree-vect-slp.c
8425 var-tracking.c: Adjust.
8426 * vec.c (stack_vecs): Remove.
8427 (register_stack_vec): Likewise.
8428 (stack_vec_register_index): Likewise.
8429 (unregister_stack_vec): Likewise.
8430 * vec.h (struct va_stack): Remove.
8431 (struct vec<T, A, vl_ptr>): Specialize as
8432 struct vec<T, va_heap, vl_ptr> instead since va_heap is the only
8433 allocation strategy compatable with the vl_ptr layout.
8434 (struct vec<T, va_gc, vl_ptr>): Remove because it now gets an empty
8435 specialization anyway.
8436 (class stack_vec): New class.
8437 (vec_stack_alloc): Remove.
8438 (vec<T, va_heap, vl_ptr>::using_auto_storage): New method.
8440 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
8441 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8442 Sergey Lega <sergey.s.lega@intel.com>
8443 Anna Tikhonova <anna.tikhonova@intel.com>
8444 Ilya Tocar <ilya.tocar@intel.com>
8445 Andrey Turetskiy <andrey.turetskiy@intel.com>
8446 Ilya Verbin <ilya.verbin@intel.com>
8447 Kirill Yukhin <kirill.yukhin@intel.com>
8448 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8450 * config/i386/i386.md (prefetch): Allow TARGET_AVX512PF.
8451 (*prefetch_avx512pf_<mode>): New.
8452 * config/i386/sse.md (avx512f_vmcmp<mode>3): Ditto.
8453 (avx512f_maskcmp<mode>3): Ditto.
8454 (vashrv16si3): Ditto.
8456 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
8457 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8458 Sergey Lega <sergey.s.lega@intel.com>
8459 Anna Tikhonova <anna.tikhonova@intel.com>
8460 Ilya Tocar <ilya.tocar@intel.com>
8461 Andrey Turetskiy <andrey.turetskiy@intel.com>
8462 Ilya Verbin <ilya.verbin@intel.com>
8463 Kirill Yukhin <kirill.yukhin@intel.com>
8464 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8466 * config/i386/i386.md (any_truncate): New.
8467 (trunsuffix): Ditto.
8468 * config/i386/predicates.md (const_8_to_9_operand): New.
8469 (const_10_to_11_operand): Ditto.
8470 (const_12_to_13_operand): Ditto.
8471 (const_14_to_15_operand): Ditto.
8472 (const_16_to_19_operand): Ditto.
8473 (const_20_to_23_operand): Ditto.
8474 (const_24_to_27_operand): Ditto.
8475 (const_28_to_31_operand): Ditto.
8476 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_FIX_NOTRUNC.
8477 (cvtusi2<ssescalarmodesuffix>32): New.
8478 (cvtusi2<ssescalarmodesuffix>64): Ditto.
8479 (ufloatv16siv16sf2): Ditto.
8480 (avx512f_fix_notruncv16sfv16si): Ditto.
8481 (avx512f_ufix_notruncv16sfv16si): Ditto.
8482 (avx512f_vcvtss2usi): Ditto.
8483 (avx512f_vcvtss2usiq): Ditto.
8484 (avx512f_vcvttss2usi): Ditto.
8485 (avx512f_vcvttss2usiq): Ditto.
8486 (avx512f_vcvtsd2usi): Ditto.
8487 (avx512f_vcvtsd2usiq): Ditto.
8488 (avx512f_vcvttsd2usi): Ditto.
8489 (avx512f_vcvttsd2usiq): Ditto.
8490 (ufloatv8siv8df): Ditto.
8491 (avx512f_cvtdq2pd512_2): Ditto.
8492 (avx512f_cvtpd2dq512): Ditto.
8493 (avx512f_ufix_notruncv8dfv8si): Ditto.
8494 (avx512f_cvtpd2ps512): Ditto.
8495 (vec_unpacks_lo_v16sf): Ditto.
8496 (vec_unpacks_hi_v16sf): Ditto.
8497 (vec_unpacks_float_hi_v16si): Ditto.
8498 (vec_unpacks_float_lo_v16si): Ditto.
8499 (avx512f_unpckhps512): Ditto.
8500 (avx512f_unpcklps512): Ditto.
8501 (avx512f_movshdup512): Ditto.
8502 (avx512f_movsldup512): Ditto.
8503 (vec_extract_lo_v32hi): Ditto.
8504 (vec_extract_hi_v32hi): Ditto.
8505 (vec_extract_lo_v64qi): Ditto.
8506 (vec_extract_hi_v64qi): Ditto.
8507 (avx512f_unpckhpd512): Ditto.
8508 (avx512f_movddup512): Ditto.
8509 (avx512f_unpcklpd512): Ditto.
8510 (*avx512f_unpcklpd512): Ditto.
8511 (avx512f_shufps512_1): Ditto.
8512 (avx512f_shufpd512_1): Ditto.
8513 (avx512f_interleave_highv8di): Ditto.
8514 (avx512f_interleave_lowv8di): Ditto.
8515 (PMOV_DST_MODE): Ditto.
8516 (pmov_src_mode): Ditto.
8517 (pmov_src_lower): Ditto.
8519 (*avx512f_<code><pmov_src_lower><mode>2): Ditto.
8520 (*avx512f_<code>v8div16qi2): Ditto.
8521 (*avx512f_<code>v8div16qi2_store): Ditto.
8522 (vec_widen_umult_even_v16si): Ditto.
8523 (*vec_widen_umult_even_v16si): Ditto.
8524 (vec_widen_smult_even_v16si): Ditto.
8525 (*vec_widen_smult_even_v16si): Ditto.
8526 (avx512f_interleave_highv16si): Ditto.
8527 (avx512f_interleave_lowv16si): Ditto.
8528 (avx512f_<code>v16qiv16si2): Ditto.
8529 (avx512f_<code>v16hiv16si2): Ditto.
8530 (avx512f_<code>v8qiv8di2): Ditto.
8531 (avx512f_<code>v8hiv8di2): Ditto.
8532 (avx512f_<code>v8siv8di2): Ditto.
8533 (avx512cd_maskb_vec_dupv8di): Ditto.
8534 (avx512cd_maskw_vec_dupv16si): Ditto.
8535 (avx512f_vcvtph2ps512): Ditto.
8536 (avx512f_vcvtps2ph512): Ditto.
8537 (VEC_EXTRACT_MODE): Extened with wider modes.
8538 (VEC_PERM_AVX2): Ditto.
8539 (VEC_PERM_CONST): Ditto.
8541 2013-10-28 Joern Rennecke <joern.rennecke@embecosm.com>
8543 * config/arc/arc.c (arc_ccfsm_post_advance):
8544 Add comment about TYPE_RETURN.
8546 2013-10-28 Bin Cheng <bin.cheng@arm.com>
8548 * tree-ssa-loop-ivopts.c (strip_offset_1): Change parameter type.
8549 Count DECL_FIELD_BIT_OFFSET for COMPONENT_REF.
8550 (strip_offset): Convert offset to unsigned number.
8552 2013-10-27 Tom de Vries <tom@codesourcery.com>
8554 * cfgexpand.c (gimple_expand_cfg): Remove test for parm_birth_insn.
8555 Don't commit insertions after NOTE_INSN_FUNCTION_BEG.
8557 2013-10-27 Oleg Endo <olegendo@gcc.gnu.org>
8559 * config/sh/sh.c (MSW, LSW): Move and rename macros to...
8560 * config/sh/sh.h (SH_REG_MSW_OFFSET, SH_REG_LSW_OFFSET): ... here.
8561 (TARGET_BIG_ENDIAN): New macro.
8562 * config/sh/sh.md: Use it instead of !TARGET_LITTLE_ENDIAN.
8563 Use SH_REG_MSW_OFFSET and SH_REG_LSW_OFFSET.
8564 * config/sh/sh.c: Likewise.
8565 * config/sh/sh.h: Likewise.
8567 2013-10-27 Hans-Peter Nilsson <hp@axis.com>
8569 * config/cris/cris.c (cris_emit_trap_for_misalignment): Replace the
8570 removed PRED_MUDFLAP with PRED_NORETURN. Correct file-path in comment.
8572 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
8574 * config/sh/sh.md (movmemsi): Remove empty constraints and predicates.
8576 (cmpstr_t, cmpstrsi): Fix formatting.
8578 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
8581 * config/sh/predicates.md (general_movdst_operand): Allow reg+reg
8582 addressing, do not use general_operand for memory operands.
8584 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
8587 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
8588 * lra-spills.c (lra_final_code_change): Remove useless move insns.
8590 2013-10-26 Jeff Law <law@redhat.com>
8592 * predict.c (PRED_MUDFLAP): Remove.
8593 * targhooks.c (build_va_arg_indirect_ref): Remove mudflap support.
8595 * Makefile.in (C_COMMON_OBJS): Remove tree-mudflap.
8596 (OBJS): Remove tree-nomudflap.o
8597 (GTFILES): Remove tree-mudflap.c
8598 * builtins.c (expand_builtin_alloc): Remove mudflap support.
8599 * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
8600 (mfwrap_spec, mflib_spec): Likewise.
8601 (cpp_unique_options, cc1_options, static_specs): Likewise.
8602 * gimplify (gimplify_vla_decl, build_va_arg_indirect_ref): Likewise.
8603 * passes.def: Likewise.
8604 * toplev.c (compile_file, process_options): Likewise.
8605 * tree-inline.c (copy_tree_r): Likewise.
8606 * tree-pass.,h (make_pass_mudflap_1, make_pass_mudflap_2): Likewise.
8607 * varasm.c (make_decl_rtl, make_decl_rtl_for_debug): Likewise.
8608 (build_constant_desc, output_constant_def_contents): Likewise.
8609 (categorize_decl_for_section): Likewise.
8610 * tree-mudflap.c: Removed.
8611 * tree-mudflap.h: Removed.
8612 * tree-nomudflap.c: Removed.
8613 * bfin/uclinux.h (MFWRAP_SPEC): Remove.
8614 * moxie/uclinux.h (MFWRAP_SPEC): Likewise.
8615 * rs6000/aix.h (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
8616 * config/sol2.h (MFLIB_SPEC): Likewise.
8617 * doc/install.texi: Remove mudflap references.
8618 * doc/passes.texi: Similarly.
8619 * doc/sourcebuild.texi: Similarly.
8620 * doc/invoke.texi: Remove mudlfap related options.
8622 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
8624 PR rtl-optimization/58759
8625 * lra-constraints.c (lra_constraints): Remove wrong condition to
8626 remove insn setting up an equivalent pseudo.
8628 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
8630 * config/rs6000/rs6000-protos.h
8631 (rs6000_secondary_memory_needed_mode): New prototype.
8632 * config/rs6000/rs6000.c: Include ira.h.
8633 (TARGET_LRA_P): Redefine.
8634 (rs6000_legitimate_offset_address_p): Call
8635 legitimate_constant_pool_address_p in strict mode for LRA.
8636 (rs6000_legitimate_address_p): Ditto.
8637 (legitimate_lo_sum_address_p): Add code for LRA. Use lra_in_progress.
8638 (rs6000_emit_move): Add LRA version of code to generate load/store
8640 (rs6000_secondary_memory_needed_mode): New.
8641 (rs6000_alloc_sdmode_stack_slot): Do nothing for LRA.
8642 (rs6000_secondary_reload_class): Return NO_REGS for LRA for
8643 constants, memory, and FP registers.
8644 (rs6000_lra_p): New.
8645 * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_MODE): New macro.
8646 * config/rs6000/rs6000.opt (mlra): New option.
8647 * lra-spills.c (lra_final_code_change): Remove useless move insns.
8649 2013-10-25 Yufeng Zhang <yufeng.zhang@arm.com>
8651 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Call
8652 has_single_use () and not do the conversion if has_single_use ()
8653 returns false for the multiplication result.
8655 2013-10-25 David Malcolm <dmalcolm@redhat.com>
8657 * tree.h (EXCEPTIONAL_CLASS_P): Rename parameter from "CODE"
8658 to "NODE", since this works on a "tree", not an
8660 (CONSTANT_CLASS_P): Likewise.
8663 (INDIRECT_REF_P): Likewise.
8664 (REFERENCE_CLASS_P): Likewise.
8665 (COMPARISON_CLASS_P): Likewise.
8666 (UNARY_CLASS_P): Likewise.
8667 (BINARY_CLASS_P): Likewise.
8668 (STATEMENT_CLASS_P): Likewise.
8669 (VL_EXP_CLASS_P): Likewise.
8670 (EXPRESSION_CLASS_P): Likewise.
8671 (IS_TYPE_OR_DECL_P): Likewise.
8673 2013-10-25 Marc Glisse <marc.glisse@inria.fr>
8675 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for an
8676 ADDR_EXPR in the defining statement.
8678 2013-10-25 Richard Biener <rguenther@suse.de>
8680 PR tree-optimization/58626
8681 * tree-loop-distribution.c (enum rdg_dep_type): Remove
8682 anti_dd, output_dd and input_dd.
8683 (struct rdg_edge): Remove level and relation members.
8684 (RDGE_LEVEL, RDGE_RELATION): Remove.
8685 (dot_rdg_1): Adjust.
8686 (create_rdg_edge_for_ddr): Remove.
8687 (create_rdg_edges_for_scalar): Adjust.
8688 (create_edge_for_control_dependence): Likewise.
8689 (create_rdg_edges): Split into ...
8690 (create_rdg_flow_edges): ... this
8691 (create_rdg_cd_edges): ... and this.
8693 (build_rdg): Likewise, do not compute data dependences or
8695 (pg_add_dependence_edges): New function.
8697 (distribute_loop): First apply all non-dependence based
8698 partition mergings. Then compute dependences between partitions
8699 and merge and order partitions according to them.
8701 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
8703 PR rtl-optimization/58831
8704 * alias.c (init_alias_analysis): At the beginning of each iteration,
8705 set the reg_seen[N] bit if static_reg_base_value[N] is non-null.
8707 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
8709 * recog.c (search_ofs): New static variable moved from...
8710 (peep2_find_free_register): ...here.
8711 (peephole2_optimize): Initialize it.
8713 2013-10-25 Tobias Burnus <burnus@net-b.de>
8715 * doc/invoke.texi (fopenmp): Change supported OpenMP version to 4.0.
8717 2013-10-25 Uros Bizjak <ubizjak@gmail.com>
8719 * config/i386/i386.h (TARGET_MPX): New define.
8720 (TARGET_MPX_P): Ditto.
8722 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
8724 * config/i386/constraints.md (B): New.
8727 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
8728 * config/i386/i386-modes.def (BND32): New.
8730 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
8731 * config/i386/i386.c (isa_opts): Add mmpx.
8732 (regclass_map): Add bound registers.
8733 (dbx_register_map): Likewise.
8734 (dbx64_register_map): Likewise.
8735 (svr4_dbx_register_map): Likewise.
8737 (ix86_option_override_internal): Support MPX ISA.
8738 (ix86_conditional_register_usage): Support bound registers.
8739 (print_reg): Likewise.
8740 (ix86_code_end): Add MPX bnd prefix.
8741 (output_set_got): Likewise.
8742 (ix86_output_call_insn): Likewise.
8743 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
8744 (ix86_print_operand_punct_valid_p): Likewise.
8745 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
8747 (ix86_class_likely_spilled_p): Add bound regs support.
8748 (ix86_hard_regno_mode_ok): Likewise.
8749 (x86_order_regs_for_local_alloc): Likewise.
8750 (ix86_bnd_prefixed_insn_p): New.
8751 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
8752 (FIXED_REGISTERS): Add bound registers.
8753 (CALL_USED_REGISTERS): Likewise.
8754 (REG_ALLOC_ORDER): Likewise.
8755 (HARD_REGNO_NREGS): Likewise.
8757 (VALID_BND_REG_MODE): New.
8758 (FIRST_BND_REG): New.
8759 (LAST_BND_REG): New.
8760 (reg_class): Add BND_REGS.
8761 (REG_CLASS_NAMES): Likewise.
8762 (REG_CLASS_CONTENTS): Likewise.
8764 (ANY_BND_REG_P): New.
8766 (HI_REGISTER_NAMES): Add bound registers.
8767 * config/i386/i386.md (UNSPEC_BNDMK): New.
8768 (UNSPEC_BNDMK_ADDR): New.
8769 (UNSPEC_BNDSTX): New.
8770 (UNSPEC_BNDLDX): New.
8771 (UNSPEC_BNDLDX_ADDR): New.
8772 (UNSPEC_BNDCL): New.
8773 (UNSPEC_BNDCU): New.
8774 (UNSPEC_BNDCN): New.
8775 (UNSPEC_MPX_FENCE): New.
8778 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
8779 (length_immediate): Likewise.
8780 (prefix_0f): Likewise.
8782 (prefix_rep): Check for bnd prefix.
8783 (length_nobnd): New.
8784 (length): Use length_nobnd if specified.
8789 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
8792 (simple_return_internal): Likewise.
8793 (simple_return_pop_internal): Likewise.
8794 (*indirect_jump): Add MPX bnd prefix.
8795 (*tablejump_1): Likewise.
8796 (simple_return_internal_long): Likewise.
8797 (simple_return_indirect_internal): Likewise.
8801 (*mov<mode>_internal_mpx): New.
8802 (<mode>_<bndcheck>): New.
8803 (*<mode>_<bndcheck>): New.
8808 * config/i386/predicates.md (lea_address_operand): Rename to...
8809 (address_no_seg_operand): ... this.
8810 (address_mpx_no_base_operand): New.
8811 (address_mpx_no_index_operand): New.
8812 (bnd_mem_operator): New.
8813 * config/i386/i386.opt (mmpx): New.
8814 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
8815 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
8817 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
8819 * mode-classes.def (MODE_POINTER_BOUNDS): New.
8820 * tree.def (POINTER_BOUNDS_TYPE): New.
8821 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
8822 (POINTER_BOUNDS_MODE): New.
8823 (make_pointer_bounds_mode): New.
8824 * machmode.h (POINTER_BOUNDS_MODE_P): New.
8825 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
8826 (layout_type): Support POINTER_BOUNDS_TYPE.
8827 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
8828 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
8829 (type_contains_placeholder_1): Likewise.
8830 * tree.h (POINTER_BOUNDS_TYPE_P): New.
8831 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
8832 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
8834 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
8836 * expr.c (expand_expr_real_1): Use mode of memory reference rather than
8837 mode of address computation when calling memory_address_addr_space.
8839 2013-08-24 Richard Henderson <rth@twiddle.net>
8842 * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
8843 instead of create_convert_operand_to.
8844 (maybe_emit_sync_lock_test_and_set): Likewise.
8845 (expand_atomic_compare_and_swap): Likewise.
8846 (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.
8848 2013-08-24 Sriraman Tallam <tmsriram@google.com>
8850 * cgraph.c (cgraph_fnver_htab): Move GTY((...)) to be before htab_t.
8851 Change param_is to use the struct and not the pointer to the struct.
8853 2013-10-24 Andrew MacLeod <amacleod@redhat.com>
8855 * builtins.c (dummy_object, gimplify_va_arg_expr): Move to gimplify.c.
8856 * gimplify.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
8857 Move to targhooks.c.
8858 (dummy_object, gimplify_va_arg_expr): Relocate from builtins.c.
8859 * targhooks.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
8860 Relocate from gimplify.c.
8861 * targhooks.h: Add 2 prototypes.
8862 * tree.h: Delete 2 prototypes.
8864 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
8866 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p ): Check both
8867 [reg+mult*reg] and [mult*reg] to determine if multiplier is allowed.
8869 2013-10-24 Cong Hou <congh@google.com>
8871 * convert.c (convert_to_real): Guard those unsafe math function
8872 convertions with flag_unsafe_math_optimizations. Handle sqrt()
8875 2013-10-24 Markus Trippelsdorf <markus@trippelsdorf.de>
8878 * cgraph.c (cgraph_create_edge_1): Add indirect_unknown_callee
8880 (cgraph_create_edge): Use the new argument.
8881 (cgraph_create_indirect_edge): Likewise.
8883 2013-10-24 Joern Rennecke <joern.rennecke@embecosm.com>
8885 * config/arc/arc.c (arc_ccfsm_post_advance): Also handle
8887 (arc_ifcvt) <case 1 and 2>: Check that arc_ccfsm_post_advance
8888 changes statep->state.
8890 2013-10-24 Tobias Burnus <burnus@net-b.de>
8893 * tree-cfg.c (replace_loop_annotate): New function.
8894 (execute_build_cfg): Call it.
8895 * gimplify.c (gimple_boolify, gimplify_expr): Handle ANNOTATE_EXPR.
8896 * internal-fn.c (expand_ANNOTATE): New function.
8897 * internal-fn.def (ANNOTATE): Define as new internal function.
8898 * tree-core.h (tree_node_kind): Add annot_expr_ivdep_kind.
8899 * tree-pretty-print.c (dump_generic_node): Handle ANNOTATE_EXPR.
8900 * tree.def (ANNOTATE_EXPR): New DEFTREECODE.
8901 * doc/extend.texi (Pragmas): Document #pragma ivdep.
8902 * doc/generic.texi (Expressions): Document ANNOTATE_EXPR.
8904 2013-10-17 Ian Bolton <ian.bolton@arm.com>
8905 Marcus Shawcroft <marcus.shawcroft@arm.com>
8907 * config/aarch64/aarch64.c (aarch64_preferred_reload_class):
8908 Special case reload SP+C into none GENERAL_REGS.
8910 2013-10-24 Michael Matz <matz@suse.de>
8912 * gengtype.c (is_file_equal): Check that files will be same length.
8914 2013-10-25 Christian Bruel <christian.bruel@st.com>
8916 * config.gcc (sh-*): Add sh-mem.o to extra_obj.
8917 * config/sh/t-sh (sh-mem.o): New rule.
8918 * config/sh/sh-mem.cc (expand_block_move): Moved here.
8919 (sh_expand_cmpstr): New function.
8920 * config/sh/sh.c (force_into, expand_block_move): Move to sh-mem.c.
8921 * config/sh/sh-protos.h (sh_expand_cmpstr): Declare.
8922 * config/sh/sh.md (cmpstrsi, cmpstr_t): New patterns.
8923 (rotlhi3_8): Rename.
8925 2013-10-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8927 * configure.ac (ZW_PROG_COMPILER_DEPENDENCIES): Use CXX instead of CC.
8928 * Makefile.in (CXXDEPMODE): Assign and change users.
8929 (CCDEPMODE): Delete.
8930 * configure: Regenerate.
8932 2013-10-23 David Malcolm <dmalcolm@redhat.com>
8934 * gengtype-parse.c (require_without_advance): New.
8935 (type): For GTY-marked types that are not GTY((user)), parse any
8936 base classes, requiring them to be single-inheritance, and not
8937 be templates. For non-GTY-marked types and GTY((user)),
8938 continue to skip over any C++ inheritance specification.
8939 * gengtype-state.c (state_writer::write_state_struct_type):
8940 Write base class of type (if any).
8941 (read_state_struct_type): Read base class of type (if any).
8942 * gengtype.c (new_structure): Add a "base_class" parameter.
8943 (create_optional_field_): Update for new parameter to new_structure.
8944 (adjust_field_rtx_def): Likewise.
8945 (adjust_field_tree_exp): Likewise.
8946 * gengtype.h (struct type): Add "base_class" field to the s
8948 (new_structure): Add "base" parameter.
8950 2013-10-23 Sriraman Tallam <tmsriram@google.com>
8953 * config/i386/i386.c (ix86_option_override_internal):
8954 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...)
8955 (ix86_valid_target_attribute_tree):
8956 Change TARGET_64BIT to TARGET_64BIT_P (opts->...)
8957 Change TARGET_SSE to TARGET_SSE_P (opts->...)
8959 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
8961 * tree-ssa-loop.h: Remove include files.
8962 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
8963 * cfgloopmanip.c: Move required includes from tree-ssa-loop.h.
8964 * graphite-clast-to-gimple.c: Likewise.
8965 * graphite-scop-detection.c: Likewise.
8966 * graphite-sese-to-poly.c: Likewise.
8967 * ipa-inline-analysis.c: Likewise.
8968 * ipa-pure-const.c: Likewise.
8969 * loop-init.c: Likewise.
8970 * passes.c: Likewise.
8971 * predict.c: Likewise.
8972 * tree-cfg.c: Likewise.
8973 * tree-cfgcleanup.c: Likewise.
8974 * tree-chrec.c: Likewise.
8975 * tree-data-ref.c: Likewise.
8976 * tree-loop-distribution.c: Likewise.
8977 * tree-parloops.c: Likewise.
8978 * tree-predcom.c: Likewise.
8979 * tree-scalar-evolution.c: Likewise.
8980 * tree-ssa-address.c: Likewise.
8981 * tree-ssa.c: Likewise.
8982 * tree-ssa-dce.c: Likewise.
8983 * tree-ssa-loop.c: Likewise.
8984 * tree-ssa-loop-im.c: Likewise.
8985 * tree-ssa-loop-ivcanon.c: Likewise.
8986 * tree-ssa-loop-ivopts.c: Likewise.
8987 * tree-ssa-loop-manip.c: Likewise.
8988 * tree-ssa-loop-niter.c: Likewise.
8989 * tree-ssa-loop-prefetch.c: Likewise.
8990 * tree-ssa-loop-unswitch.c: Likewise.
8991 * tree-ssa-reassoc.c: Likewise.
8992 * tree-vect-data-refs.c: Likewise.
8993 * tree-vect-loop.c: Likewise.
8994 * tree-vect-loop-manip.c: Likewise.
8995 * tree-vectorizer.c: Likewise.
8996 * tree-vect-stmts.c: Likewise.
8997 * tree-vrp.c: Likewise.
8999 2013-10-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9001 * config/rs6000/altivec.md (mulv8hi3): Adjust for little endian.
9003 2013-10-23 Jakub Jelinek <jakub@redhat.com>
9005 PR tree-optimization/58775
9006 PR tree-optimization/58791
9007 * tree-ssa-reassoc.c (reassoc_stmt_dominates_stmt_p): New function.
9008 (insert_stmt_after): Rewritten, don't move the stmt, but really
9010 (get_stmt_uid_with_default): Remove.
9011 (build_and_add_sum): Use insert_stmt_after and
9012 reassoc_stmt_dominates_stmt_p. Fix up uid if bb contains only labels.
9013 (update_range_test): Set uid on stmts added by
9014 force_gimple_operand_gsi. Don't immediately modify statements
9015 in inter-bb optimization, just update oe->op values.
9016 (optimize_range_tests): Return bool whether any changed have been made.
9017 (update_ops): New function.
9018 (struct inter_bb_range_test_entry): New type.
9019 (maybe_optimize_range_tests): Perform statement changes here.
9020 (not_dominated_by, appears_later_in_bb, get_def_stmt,
9021 ensure_ops_are_available): Remove.
9022 (find_insert_point): Rewritten.
9023 (rewrite_expr_tree): Remove MOVED argument, add CHANGED argument,
9024 return LHS of the (new resp. old) stmt. Don't call
9025 ensure_ops_are_available, don't reuse SSA_NAMEs, recurse first
9026 instead of last, move new stmt at the right place.
9027 (linearize_expr, repropagate_negates): Don't reuse SSA_NAMEs.
9028 (negate_value): Likewise. Set uids.
9029 (break_up_subtract_bb): Initialize uids.
9030 (reassociate_bb): Adjust rewrite_expr_tree caller.
9031 (do_reassoc): Don't call renumber_gimple_stmt_uids.
9033 2013-10-23 David Edelsohn <dje.gcc@gmail.com>
9036 * config/rs6000/rs6000.md (mulsi3_internal1 and splitter): Add
9037 TARGET_32BIT final condition.
9038 (mulsi3_internal2 and splitter): Same.
9040 2013-10-23 Jeff Law <law@redhat.com>
9042 * tree-ssa-threadedge.c (thread_across_edge): Do not allow threading
9043 through joiner blocks with abnormal outgoing edges.
9045 * tree-ssa-threadupdate.c (thread_block_1): Renamed from thread_block.
9046 Add parameter JOINERS, to allow/disallow threading through joiner
9048 (thread_block): New. Call thread_block_1.
9049 (mark_threaded_blocks): Remove code to filter out certain cases
9050 of threading through joiner blocks.
9051 (thread_through_all_blocks): Document how we can have a dangling
9052 edge AUX field and clear it.
9054 2013-10-23 Ian Lance Taylor <iant@google.com>
9056 * doc/invoke.texi (Option Summary): Remove -fno-default-inline.
9057 (C++ Dialect Options): Likewise.
9058 (Optimize Options): Likewise.
9060 2013-10-23 Tom de Vries <tom@codesourcery.com>
9062 PR tree-optimization/58805
9063 * tree-ssa-tail-merge.c (stmt_local_def): Add gimple_vdef check.
9065 2013-10-23 Jakub Jelinek <jakub@redhat.com>
9067 * tree-vect-patterns.c (vect_recog_divmod_pattern): Optimize
9068 sequence based on get_range_info returned range.
9070 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
9072 * tree-ssa.h: Remove all #include's
9073 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
9074 * alias.c: Move required includes from tree-ssa.h.
9076 * builtins.c: Likewise.
9077 * calls.c: Likewise.
9078 * cfgexpand.c: Likewise.
9079 * cfghooks.c: Likewise.
9080 * cfgloop.c: Likewise.
9081 * cfgloopmanip.c: Likewise.
9082 * cgraph.c: Likewise.
9083 * cgraphbuild.c: Likewise.
9084 * cgraphclones.c: Likewise.
9085 * cgraphunit.c: Likewise.
9087 * except.c: Likewise.
9089 * final.c: Likewise.
9090 * fold-const.c: Likewise.
9091 * ggc-page.c: Likewise.
9092 * gimple-builder.c: Likewise.
9093 * gimple-fold.c: Likewise.
9094 * gimple-iterator.c: Likewise.
9095 * gimple-low.c: Likewise.
9096 * gimple-pretty-print.c: Likewise.
9097 * gimple-ssa-strength-reduction.c: Likewise.
9098 * gimple-streamer-in.c: Likewise.
9099 * gimple-streamer-out.c: Likewise.
9100 * gimplify.c: Likewise.
9101 * graphite-blocking.c: Likewise.
9102 * graphite-clast-to-gimple.c: Likewise.
9103 * graphite-dependences.c: Likewise.
9104 * graphite-interchange.c: Likewise.
9105 * graphite-optimize-isl.c: Likewise.
9106 * graphite-poly.c: Likewise.
9107 * graphite-scop-detection.c: Likewise.
9108 * graphite-sese-to-poly.c: Likewise.
9109 * graphite.c: Likewise.
9110 * ipa-cp.c: Likewise.
9111 * ipa-inline-analysis.c: Likewise.
9112 * ipa-inline-transform.c: Likewise.
9113 * ipa-inline.c: Likewise.
9114 * ipa-prop.c: Likewise.
9115 * ipa-pure-const.c: Likewise.
9116 * ipa-reference.c: Likewise.
9117 * ipa-split.c: Likewise.
9118 * ipa-utils.c: Likewise.
9119 * loop-init.c: Likewise.
9120 * lto-cgraph.c: Likewise.
9121 * lto-section-in.c: Likewise.
9122 * lto-section-out.c: Likewise.
9123 * lto-streamer-in.c: Likewise.
9124 * lto-streamer-out.c: Likewise.
9125 * lto-streamer.c: Likewise.
9126 * omp-low.c: Likewise.
9127 * passes.c: Likewise.
9128 * predict.c: Likewise.
9129 * print-tree.c: Likewise.
9130 * profile.c: Likewise.
9132 * targhooks.c: Likewise.
9133 * tracer.c: Likewise.
9134 * trans-mem.c: Likewise.
9135 * tree-call-cdce.c: Likewise.
9136 * tree-cfg.c: Likewise.
9137 * tree-cfgcleanup.c: Likewise.
9138 * tree-chrec.c: Likewise.
9139 * tree-complex.c: Likewise.
9140 * tree-data-ref.c: Likewise.
9141 * tree-dfa.c: Likewise.
9142 * tree-eh.c: Likewise.
9143 * tree-emutls.c: Likewise.
9144 * tree-if-conv.c: Likewise.
9145 * tree-inline.c: Likewise.
9146 * tree-into-ssa.c: Likewise.
9147 * tree-loop-distribution.c: Likewise.
9148 * tree-mudflap.c: Likewise.
9149 * tree-nested.c: Likewise.
9150 * tree-nrv.c: Likewise.
9151 * tree-object-size.c: Likewise.
9152 * tree-outof-ssa.c: Likewise.
9153 * tree-parloops.c: Likewise.
9154 * tree-phinodes.c: Likewise.
9155 * tree-predcom.c: Likewise.
9156 * tree-pretty-print.c: Likewise.
9157 * tree-profile.c: Likewise.
9158 * tree-scalar-evolution.c: Likewise.
9159 * tree-sra.c: Likewise.
9160 * tree-ssa-address.c: Likewise.
9161 * tree-ssa-alias.c: Likewise.
9162 * tree-ssa-ccp.c: Likewise.
9163 * tree-ssa-coalesce.c: Likewise.
9164 * tree-ssa-copy.c: Likewise.
9165 * tree-ssa-copyrename.c: Likewise.
9166 * tree-ssa-dce.c: Likewise.
9167 * tree-ssa-dom.c: Likewise.
9168 * tree-ssa-dse.c: Likewise.
9169 * tree-ssa-forwprop.c: Likewise.
9170 * tree-ssa-ifcombine.c: Likewise.
9171 * tree-ssa-live.c: Likewise.
9172 * tree-ssa-loop-ch.c: Likewise.
9173 * tree-ssa-loop-im.c: Likewise.
9174 * tree-ssa-loop-ivcanon.c: Likewise.
9175 * tree-ssa-loop-ivopts.c: Likewise.
9176 * tree-ssa-loop-manip.c: Likewise.
9177 * tree-ssa-loop-niter.c: Likewise.
9178 * tree-ssa-loop-prefetch.c: Likewise.
9179 * tree-ssa-loop-unswitch.c: Likewise.
9180 * tree-ssa-loop.c: Likewise.
9181 * tree-ssa-math-opts.c: Likewise.
9182 * tree-ssa-operands.c: Likewise.
9183 * tree-ssa-phiopt.c: Likewise.
9184 * tree-ssa-phiprop.c: Likewise.
9185 * tree-ssa-pre.c: Likewise.
9186 * tree-ssa-propagate.c: Likewise.
9187 * tree-ssa-reassoc.c: Likewise.
9188 * tree-ssa-sccvn.c: Likewise.
9189 * tree-ssa-sink.c: Likewise.
9190 * tree-ssa-strlen.c: Likewise.
9191 * tree-ssa-structalias.c: Likewise.
9192 * tree-ssa-tail-merge.c: Likewise.
9193 * tree-ssa-ter.c: Likewise.
9194 * tree-ssa-threadedge.c: Likewise.
9195 * tree-ssa-threadupdate.c: Likewise.
9196 * tree-ssa-uncprop.c: Likewise.
9197 * tree-ssa-uninit.c: Likewise.
9198 * tree-ssa.c: Likewise.
9199 * tree-ssanames.c: Likewise.
9200 * tree-stdarg.c: Likewise.
9201 * tree-streamer-in.c: Likewise.
9202 * tree-switch-conversion.c: Likewise.
9203 * tree-tailcall.c: Likewise.
9204 * tree-vect-data-refs.c: Likewise.
9205 * tree-vect-generic.c: Likewise.
9206 * tree-vect-loop-manip.c: Likewise.
9207 * tree-vect-loop.c: Likewise.
9208 * tree-vect-patterns.c: Likewise.
9209 * tree-vect-slp.c: Likewise.
9210 * tree-vect-stmts.c: Likewise.
9211 * tree-vectorizer.c: Likewise.
9212 * tree-vrp.c: Likewise.
9215 * value-prof.c: Likewise.
9216 * var-tracking.c: Likewise.
9217 * varpool.c: Likewise.
9218 * vtable-verify.c: Likewise.
9220 2013-10-23 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9222 * config/tilegx/tilegx.c: Include "tree.h".
9224 2013-10-23 Jakub Jelinek <jakub@redhat.com>
9226 * gimple-pretty-print.c (dump_ssaname_info): Always print "# " before
9227 the info, not after it.
9228 (gump_gimple_phi): Add COMMENT argument, if true, print "# " after
9229 dump_ssaname_info call.
9230 (pp_gimple_stmt_1): Adjust caller.
9231 (dump_phi_nodes): Likewise. Don't print "# " here.
9233 2013-10-22 Jan Hubicka <jh@suse.cz>
9235 * i386.h (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES): New
9237 * x86-tune.def (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES): Define it.
9238 * i386.c (expand_small_movmem_or_setmem): New function.
9239 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): New
9241 (alg_usable_p): Add support for value ranges; cleanup.
9242 (ix86_expand_set_or_movmem): Add support for misaligned moves.
9244 2013-10-22 Sterling Augustine <saugustine@google.com>
9246 * doc/invoke.texi: Document -ggnu-pubnames.
9247 * common.opt: Add new option -ggnu-pubnames and modify -gpubnames
9249 * dwarf2out.c: Include gdb/gdb-index.h.
9250 (DEBUG_PUBNAMES_SECTION, DEBUG_PUBTYPES_SECTION): Handle
9251 debug_generate_pub_sections.
9252 (is_java, output_pubtables, output_pubname): New functions.
9253 (include_pubname_in_output): Handle debug_generate_pub_sections at
9255 (size_of_pubnames): Use new local space_for_flags based on
9256 debug_generate_pub_sections.
9257 (output_pubnames): Unify pubnames and pubtypes output logic.
9258 Genericize comments. Call output_pubname.
9259 (dwarf2out_finish): Move logic to output_pubnames and call it.
9261 2013-10-22 Uros Bizjak <ubizjak@gmail.com>
9264 * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
9265 Remove CCCmode handling.
9266 <case LTU>: Return 'c' suffix for CCCmode.
9267 <case GEU>: Return 'nc' suffix for CCCmode.
9268 (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
9269 * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
9270 (*sub<mode>3_cc_overflow): Ditto.
9271 (*subsi3_zext_cc_overflow): Ditto.
9273 2013-10-22 Steve Ellcey <sellcey@mips.com>
9275 * config/mips/mips.c (mips_rtx_costs): Fix cost estimate for nor
9276 (AND (NOT OP1) (NOT OP2)).
9278 2013-10-22 Bill Schmidt <wschmidt@vnet.ibm.com>
9280 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
9281 meaning of merge-high and merge-low masks for little endian; avoid
9282 use of vector-pack masks for little endian for mismatched modes.
9284 2013-10-22 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9286 * config/tilepro/tilepro.c: Include "tree.h".
9288 2013-10-22 Andreas Schwab <schwab@suse.de>
9290 * config/m68k/m68k.c (notice_update_cc): Handle register conflict
9293 2013-10-22 Paolo Carlini <paolo.carlini@oracle.com>
9295 * doc/contrib.texi ([Fran@,{c}ois Dumont], [Tim Shen],
9296 [Ed Smith-Rowland]): New entries.
9297 ([Stephen M. Webb]): Update.
9299 2013-10-22 Andrew MacLeod <amacleod@redhat.com>
9301 * tree-ssa-ter.h: Remove duplicate copy of file contents.
9303 2013-10-21 Marek Polacek <polacek@redhat.com>
9306 * fold-const.c (fold_range_test): Return 0 if the type is not
9309 2013-10-21 Richard Sandiford <rdsandiford@googlemail.com>
9311 * system.h: Move hwint.h include further down.
9312 * hwint.h (sext_hwi, zext_hwi): Define unconditionally. Add
9313 gcc_checking_asserts.
9314 * hwint.c (sext_hwi, zext_hwi): Delete ENABLE_CHECKING versions.
9316 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
9318 Fix volatile issues in optimize_bit_field_compare.
9319 * fold-const.c (optimize_bit_field_compare): Bail out if
9320 lvolatilep or rvolatilep.
9322 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
9324 Fix DECL_BIT_FIELD depencency on flag_strict_volatile_bitfields
9325 and get_inner_reference returning different pmode for non-volatile
9326 bit-field members dependent on flag_strict_volatile_bitfields.
9327 * stor-layout.c (layout_decl): Remove special handling of
9328 flag_strict_volatile_bitfields.
9329 * expr.c (get_inner_reference): Don't use DECL_BIT_FIELD
9330 if flag_strict_volatile_bitfields > 0 and TREE_THIS_VOLATILE.
9332 2013-10-21 Paulo Matos <pmatos@broadcom.com>
9334 * ipa-inline.c (edge_badness): Cap edge->count at max_count for badness
9337 2013-10-21 Jeff Law <law@redhat.com>
9339 * tree-ssa-threadedge.c (thread_through_normal_block): New
9340 argument VISITED. Remove VISISTED as a local variable. When we
9341 have a threadable jump, verify the destination of the jump has not
9343 (thread_across_edge): Allocate VISITED bitmap once at function
9344 scope and use it throughout. Make sure to set appropriate bits in
9345 VISITED for E (start of jump thread path).
9346 * tree-ssa-threadupdate.c (mark_threaded_blocks): Reject threading
9347 through a joiner if any edge on the path has a recorded jump thread.
9349 2013-10-21 Ian Lance Taylor <iant@google.com>
9351 * doc/invoke.texi (Optimize Options): For -fno-toplevel-reorder,
9352 don't imply that attributes can solve all problems.
9353 (Directory Options): Fix typo.
9355 2013-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9357 * config/arm/arm.c (cortexa9_extra_costs): Update mult costs for
9358 extend and extend_add.
9360 2013-10-21 Richard Biener <rguenther@suse.de>
9362 PR tree-optimization/58794
9363 * fold-const.c (operand_equal_p): Compare FIELD_DECL operand
9364 of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.
9366 2013-10-21 Richard Biener <rguenther@suse.de>
9369 * fold-const.c (fold_binary_loc): Fold ((T) (X /[ex] C)) * C
9370 to (T) X for sign-changing conversions (or no conversion).
9372 2013-10-20 Uros Bizjak <ubizjak@gmail.com>
9374 * config/i386/i386.md (kxnor<mode>): Add FLAGS_REG clobber.
9376 2013-10-20 Jan Hubicka <jh@suse.cz>
9378 * config/i386/i386-tune.def: Add comment; organize into categories
9380 2013-10-21 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
9382 * config/i386/i386.c (expand_set_or_movmem_via_loop): Add issetmem
9383 argument. Update function comment.
9384 (expand_set_or_movmem_via_rep): New function combining
9385 expand_movmem_via_rep_mov and expand_setmem_via_rep_stos.
9386 (expand_movmem_via_rep_mov): Remove.
9387 expand_setmem_via_rep_stos): Remove.
9388 (expand_movmem_epilogue): Update calls correspondingly.
9389 (expand_setmem_epilogue_via_loop): Likewise.
9391 (expand_setmem_epilogue): Add VEC_VALUE argument, refactor.
9392 (expand_set_or_movmem_prologue): New function combining
9393 expand_movmem_prologue and expand_setmem_prologue.
9394 (expand_movmem_prologue): Remove.
9395 (expand_setmem_prologue): Remove.
9396 (expand_set_or_movmem_constant_prologue): New function combining
9397 expand_constant_movmem_prologue and expand_constant_setmem_prologue.
9398 (expand_constant_movmem_prologue): Remove.
9399 (expand_constant_setmem_prologue): Remove.
9400 (promote_duplicated_reg): Allow vector-const0 value.
9401 (ix86_expand_set_or_movmem): New function combining ix86_expand_movmem
9402 and ix86_expand_setmem.
9403 (ix86_expand_movmem): Call ix86_expand_set_or_movmem.
9404 (ix86_expand_setmem): Call ix86_expand_set_or_movmem.
9406 2013-10-21 Diego Novillo <dnovillo@google.com>
9408 * asan.c: Include tree.h
9409 * bb-reorder.c: Likewise.
9410 * cfgcleanup.c: Likewise.
9411 * cfgloopmanip.c: Likewise.
9412 * data-streamer-in.c: Likewise.
9413 * data-streamer-out.c: Likewise.
9414 * data-streamer.c: Likewise.
9415 * dwarf2cfi.c: Likewise.
9416 * graphite-blocking.c: Likewise.
9417 * graphite-clast-to-gimple.c: Likewise.
9418 * graphite-dependences.c: Likewise.
9419 * graphite-interchange.c: Likewise.
9420 * graphite-optimize-isl.c: Likewise.
9421 * graphite-poly.c: Likewise.
9422 * graphite-scop-detection.c: Likewise.
9423 * graphite-sese-to-poly.c: Likewise.
9424 * graphite.c: Likewise.
9425 * ipa-devirt.c: Likewise.
9426 * ipa-profile.c: Likewise.
9429 * loop-init.c: Likewise.
9430 * loop-unroll.c: Likewise.
9431 * lower-subreg.c: Likewise.
9432 * lto/lto-object.c: Likewise.
9433 * recog.c: Likewise.
9434 * reginfo.c: Likewise.
9435 * tree-loop-distribution.c: Likewise.
9436 * tree-parloops.c: Likewise.
9437 * tree-ssa-strlen.c: Likewise.
9438 * tree-streamer.c: Likewise.
9439 * value-prof.c: Likewise.
9440 * target-globals.c: Likewise.
9441 * expr.h: Include tree-core.h instead of tree.h.
9442 * gimple.h: Likewise.
9443 * ipa-prop.h: Likewise.
9444 * ipa-utils.h: Likewise.
9445 * lto-streamer.h: Likewise.
9446 * streamer-hooks.h: Likewise.
9447 * ipa-reference.h: Include cgraph.h instead of tree.h.
9448 * cgraph.h: Include basic-block.h instead of tree.h.
9449 * tree-streamer.h: Do not include tree.h.
9450 * genattrtab.c (write_header): Generate inclusion of tree.h.
9451 * genautomata.c (main): Likewise.
9452 * genemit.c: Likewise.
9453 * genopinit.c: Likewise.
9454 * genoutput.c (output_prologue): Likewise.
9455 * genpeep.c: Likewise.
9457 2013-10-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9459 * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Adjust for
9461 (vec_unpacku_hi_v8hi): Likewise.
9462 (vec_unpacku_lo_v16qi): Likewise.
9463 (vec_unpacku_lo_v8hi): Likewise.
9465 2013-10-20 Jan Hubicka <jh@suse.cz>
9467 * config/i386/x86-tune.def (X86_TUNE_SLOW_IMUL_IMM32_MEM,
9468 X86_TUNE_SLOW_IMUL_IMM8): Keep enabled only for K8 and AMDFAM10.
9469 (X86_TUNE_USE_VECTOR_FP_CONVERTS): Disable for generic.
9471 2013-10-20 Richard Sandiford <rdsandiford@googlemail.com>
9473 * config/mips/mips.h (ISA_HAS_WSBH): Define.
9474 * config/mips/mips.md (UNSPEC_WSBH, UNSPEC_DSBH, UNSPEC_DSHD): New
9476 (bswaphi2, bswapsi2, bswapdi2, wsbh, dsbh, dshd): New patterns.
9478 2013-10-19 John David Anglin <danglin@gcc.gnu.org>
9481 * system.h: Undef m_slot.
9483 2013-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9485 * config/rs6000/rs6000.c (vspltis_constant): Make sure we check
9486 all elements for both endian flavors.
9488 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
9491 * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
9492 ST1_REG and XMM1_REG for 32bit and 64bit targets. Also add DI_REG
9493 and SI_REG for 64bit SYSV ABI targets.
9495 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
9497 * mode-switching.c (create_pre_exit): Rename maybe_builtin_apply
9498 to multi_reg_return. Clarify that we are skipping USEs of multiple
9499 return registers. Use bool type where appropriate.
9501 2013-10-18 Jan Hubicka <jh@suse.cz>
9503 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Disable accumulation
9505 * x86-tune.def (X86_TUNE_USE_LEAVE): Update comment.
9506 (X86_TUNE_PUSH_MEMORY): Likewise.
9507 (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL,
9508 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): New.
9509 (X86_TUNE_ACCUMULATE_OUTGOING_ARGS, X86_TUNE_ALWAYS_FANCY_MATH_387):
9511 * i386.c (x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
9512 x86_avx256_split_unaligned_load, x86_avx256_split_unaligned_store):
9514 (ix86_option_override_internal): Update to use tune features instead
9517 2013-10-18 Cong Hou <congh@google.com>
9519 PR tree-optimization/58508
9520 * tree-vect-loop-manip.c (vect_loop_versioning): Hoist loop invariant
9521 statement that contains data refs with zero-step.
9523 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
9525 * tree-ssa.h: Don't include gimple-low.h, tree-ssa-address.h,
9526 sbitmap.h, tree-ssa-threadedge.h, tree-ssa-dom.h and tree-cfgcleanup.h.
9527 * gimple-low.c (gimple_check_call_arg,
9528 gimple_check_call_matching_types): Move to cgraph.c.
9529 * gimple-low.h: Remove prototype.
9530 * cgraph.c: (gimple_check_call_arg, gimple_check_call_matching_types):
9531 Relocate from gimple-low.c.
9532 * cgraph.h: Add prototype. Don't include basic-block.h.
9533 * gimplify.c: Add gimple-low to include list.
9534 * omp-low.c: Add gimple-low and tree-cfgcleanup.h to include list.
9535 * tree-eh.c: Add gimple-low to include list.
9536 * tree-nested.c: Likewise.
9537 * cfgexpand.c: Add tree-ssa-address.h to include list.
9539 * gimple-fold.c: Likewise.
9540 * gimple-ssa-strength-reduction.c: Likewise.
9541 * trans-mem.c: Likewise.
9542 * tree-mudflap.c: Likewise.
9543 * tree-ssa-loop-ivopts.c: Likewise.
9544 * tree-ssa-dom.c: Include tree-ssa-threadedge.h and tree-ssa-dom.h.
9545 (degenerate_phi_result): Move to tree-phinodes.c.
9546 * tree-ssa-loop-ch.c: Include tree-ssa-threadedge.h.
9547 * tree-ssa-threadedge.c: Likewise.
9548 * tree-vrp.c: Likewise.
9549 * tree-phinodes.c (degenerate_phi_result): Relocate here.
9550 * tree-ssa-dom.h (degenerate_phi_result): Remove Prototype.
9551 * tree-phinodes.h (degenerate_phi_result): Add prototype.
9552 * tree-ssa-copy.c: Include tree-ssa-dom.h.
9553 * tree-ssa-forwprop.c: Likewise.
9554 * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing,
9555 pass_data_cleanup_cfg_post_optimizing,
9556 make_pass_cleanup_cfg_post_optimizing): Relocate from tree-optimize.c.
9557 * tree-optimize.c: Delete File.
9558 * graphite.c: Include tree-cfgcleanup.h.
9559 * passes.c: Likewise.
9560 * tree-cfg.c: Likewise.
9561 * tree-profile.c: Likewise.
9562 * tree-ssa-dse.c: Likewise.
9563 * tree-ssa-loop-ivcanon.c: Likewise.
9564 * tree-switch-conversion.c: Don't include tree-ssa-operands.h.
9565 * tree-outof-ssa.c: Include sbitmap.h.
9566 * tree-ssa-live.c: Likewise.
9567 * tree-ssa-propagate.c: Likewise.
9568 * tree-ssa-structalias.c: Likewise.
9569 * tree-stdarg.c: Likewise.
9570 * Makefile.in (OBJS): Delete tree-optimize.o.
9571 * basic-block.h (gcov_type, gcov_type_unsigned): Move to coretypes.h.
9572 * coretypes.h (gcov_type, gcov_type_unsigned): Relocate here.
9573 * varasm.c: Include basic-block.h.
9574 * cfgloop.h: Include function.h instead of basic-block.h
9575 (bb_loop_depth): Move to cfgloop.c.
9576 * cfgloop.c (bb_loop_depth): Relocate from cfgloop.h.
9578 2013-10-18 Teresa Johnson <tejohnson@google.com>
9580 * predict.c (probably_never_executed): Compare frequency-based
9581 count to number of training runs.
9582 * params.def (UNLIKELY_BB_COUNT_FRACTION): New parameter.
9584 2013-10-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9586 * config/arm/arm.c (cortexa9_extra_costs): New table.
9587 (arm_cortex_a9_tune): Use cortexa9_extra_costs.
9589 2013-10-18 Jeff Law <law@redhat.com>
9591 * tree-ssa-threadupdate.c: Do not include "tm.h" or "tm_p.h".
9593 * tree-ssa-threadupdate.c: Include "dbgcnt.h".
9594 (register_jump_thread): Add "registered_jump_thread" debug
9596 * dbgcnt.def (registered_jump_thread): New debug counter.
9598 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
9600 * config/rs6000/rs6000.c: Include cgraph.h.
9602 2013-10-18 Teresa Johnson <tejohnson@google.com>
9604 * tree-ssa-tail-merge.c (replace_block_by): Update edge
9605 weights during merging.
9607 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
9609 * tree-cfg.h: Rename from tree-flow.h. Remove #includes.
9610 * tree-ssa.h: Relocate required #includes from tree-cfg.h.
9611 * tree-ssa-operands.h: Remove prototype.
9612 * tree-ssa-operands.c (virtual_operand_p): Move to gimple.c.
9613 * gimple.c (virtual_operand_p): Relocate from gimple.c.
9614 * gimple.h: Add prototype.
9615 * gimple-ssa.h: Include tree-ssa-operands.h.
9616 * tree-dump.c: Add tree-cfg.h to include list.
9617 * tree-ssa-alias.c: Add ipa-reference.h to include list.
9618 * config/alpha/alpha.c: Include gimple-ssa.h instead of tree-flow.h.
9619 * config/i386/i386.c: Don't include tree-flow.h.
9620 * config/rs6000/rs6000.c: Likewise.
9622 2013-10-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9624 * config/frv/frv.c (frv_init_cumulative_args): Fix wrong cast.
9626 2013-10-18 Richard Biener <rguenther@suse.de>
9628 * stor-layout.c (layout_type): Do not change TYPE_PRECISION
9629 or TYPE_UNSIGNED of integral types.
9630 (set_min_and_max_values_for_integral_type): Leave TYPE_MIN/MAX_VALUE
9631 NULL_TREE for zero-precision integral types.
9633 2013-10-18 James Greenhalgh <james.greenhalgh@arm.com>
9635 * config/aarch64/arm_neon.h
9636 (vcvt<ds>_n_<fsu><32,64>_<fsu><32,64>): Correct argument types.
9638 2013-10-17 Sriraman Tallam <tmsriram@google.com>
9641 * opth-gen.awk: Define target_flags_explicit.
9643 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
9645 * config/rs6000/rs6000.c (enum rs6000_reload_reg_type): Add new
9646 fields to the reg_addr array that describes the valid addressing
9647 mode for any register, general purpose registers, floating point
9648 registers, and Altivec registers.
9649 (FIRST_RELOAD_REG_CLASS): Likewise.
9650 (LAST_RELOAD_REG_CLASS): Likewise.
9651 (struct reload_reg_map_type): Likewise.
9652 (reload_reg_map_type): Likewise.
9653 (RELOAD_REG_VALID): Likewise.
9654 (RELOAD_REG_MULTIPLE): Likewise.
9655 (RELOAD_REG_INDEXED): Likewise.
9656 (RELOAD_REG_OFFSET): Likewise.
9657 (RELOAD_REG_PRE_INCDEC): Likewise.
9658 (RELOAD_REG_PRE_MODIFY): Likewise.
9659 (reg_addr): Likewise.
9660 (mode_supports_pre_incdec_p): New helper functions to say whether
9661 a given mode supports PRE_INC, PRE_DEC, and PRE_MODIFY.
9662 (mode_supports_pre_modify_p): Likewise.
9663 (rs6000_debug_vector_unit): Rearrange the -mdebug=reg output to
9664 print the valid address mode bits for each mode.
9665 (rs6000_debug_print_mode): Likewise.
9666 (rs6000_debug_reg_global): Likewise.
9667 (rs6000_setup_reg_addr_masks): New function to set up the address
9668 mask bits for each type.
9669 (rs6000_init_hard_regno_mode_ok): Use memset to clear arrays.
9670 Call rs6000_setup_reg_addr_masks to set up the address mask bits.
9671 (rs6000_legitimate_address_p): Use mode_supports_pre_incdec_p and
9672 mode_supports_pre_modify_p to determine if PRE_INC, PRE_DEC, and
9673 PRE_MODIFY are supported.
9674 (rs6000_output_move_128bit): Change to use {src,dest}_vmx_p for altivec
9675 registers, instead of {src,dest}_av_p.
9676 (rs6000_print_options_internal): Tweak the debug output slightly.
9678 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
9680 * config/i386/sse.md (*vec_widen_smult_even_v8si): Remove
9683 2013-10-17 Andrew MacLeod <amacleod@redhat.com>
9685 * tree-flow.h (struct omp_region): Move to omp-low.c.
9686 Remove omp_ prototypes and variables.
9687 * gimple.h (omp_reduction_init): Move prototype to omp-low.h.
9688 (copy_var_decl): Relocate prototype from tree-flow.h.
9689 * gimple.c (copy_var_decl): Relocate from omp-low.c.
9690 * tree.h: Move prototype to omp-low.h.
9691 * omp-low.h: New File. Relocate prototypes here.
9692 * omp-low.c (struct omp_region): Make local here.
9693 (root_omp_region): Make static.
9694 (copy_var_decl) Move to gimple.c.
9695 (new_omp_region): Make static.
9696 (make_gimple_omp_edges): New. Refactored from tree-cfg.c make_edges.
9697 * tree-cfg.c: Include omp-low.h.
9698 (make_edges): Factor out OMP specific bits to make_gimple_omp_edges.
9699 * gimplify.c: Include omp-low.h.
9700 * tree-parloops.c: Likewise.
9702 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
9704 * config/i386/i386.c (ix86_fixup_binary_operands): When both source
9705 operands are in memory, prefer to force non-matched operand 1 to
9708 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
9711 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Only
9712 restrict TImode addresses to single indirect registers if both
9713 -mquad-memory and -mvsx-timode are used.
9714 (rs6000_output_move_128bit): Use quad_load_store_p to determine if
9715 we should emit load/store quad. Remove using %y for quad memory
9718 * config/rs6000/rs6000.md (mov<mode>_ppc64, TI/PTImode): Add
9719 constraints to allow load/store quad on machines where TImode is
9720 not allowed in VSX registers. Use 'n' instead of 'F' constraint
9721 for TImode to load integer constants.
9723 2013-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9725 * config/aarch64/aarch64.c (aarch64_print_operand): Handle 'c'.
9727 2013-10-17 Marcus Shawcroft <marcus.shawcroft@arm.com>
9729 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Adjust
9730 handling of STACK_REG.
9732 2013-10-17 Richard Biener <rguenther@suse.de>
9734 PR tree-optimization/58143
9735 * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
9737 (rewrite_to_defined_overflow): Likewise.
9738 (move_computations_dom_walker::before_dom): Rewrite stmts
9739 with undefined signed overflow that are not always executed
9740 into unsigned arithmetic.
9742 2013-10-16 Michael Meissner <meissner@linux.vnet.ibm.com>
9745 * config/rs6000/rs6000.opt (rs6000_isa_flags_explicit): Move the
9746 explicit isa flag to be an options variable, instead of using
9747 global_options_set. Remove define from rs6000.h.
9748 * config/rs6000/rs6000.h (rs6000_isa_flags_explicit): Likewise.
9750 * config/rs6000/rs6000.c (rs6000_option_override_internal):
9751 Initialize rs6000_isa_flags_explicit.
9752 (rs6000_function_specific_save): Add gcc_options* parameter, so
9753 that the powerpc builds after the 2013-10-15 changes.
9754 (rs6000_function_specific_restore): Likewise.
9756 2013-10-16 DJ Delorie <dj@redhat.com>
9758 * config/rl78/rl78.c (rl78_alloc_address_registers_macax): Verify
9759 op is a REG before checking REGNO.
9760 (rl78_alloc_physical_registers): Verify pattern is a SET before
9763 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9765 * config/rs6000/vector.md (vec_unpacks_hi_v4sf): Correct for
9767 (vec_unpacks_lo_v4sf): Likewise.
9768 (vec_unpacks_float_hi_v4si): Likewise.
9769 (vec_unpacks_float_lo_v4si): Likewise.
9770 (vec_unpacku_float_hi_v4si): Likewise.
9771 (vec_unpacku_float_lo_v4si): Likewise.
9773 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9775 * config/rs6000/vsx.md (vsx_concat_<mode>): Adjust output for LE.
9776 (vsx_concat_v2sf): Likewise.
9778 2013-10-16 James Greenhalgh <james.greenhalgh@arm.com>
9780 * config/aarch64/aarch64.md
9781 (*mov<mode>_aarch64): Fix output template for DUP (element) Scalar.
9783 2013-10-16 Andrew MacLeod <amacleod@redhat.com>
9785 PR tree-optimization/58697
9786 * cfgloop.c (get_estimated_loop_iterations_int): Rename from
9787 estimated_loop_iterations_int.
9788 (max_stmt_executions_int): Call get_max_loop_iterations_int.
9789 (get_max_loop_iterations_int): New. HWINT version of
9790 get_max_loop_iterations.
9791 * cfgloop.h: Add prototypes.
9792 * loop-iv.c (find_simple_exit): call get_estimated_loop_iterations_int.
9793 * loop-unroll.c (decide_peel_once_rolling): Call
9794 get_estimated_loop_iterations_int.
9795 * tree-ssa-loop-niter.c (estimated_loop_iterations_int): Add back.
9796 * tree-ssa-loop-niter.h: Tweak prototypes.
9798 2013-10-16 David Malcolm <dmalcolm@redhat.com>
9800 * gengtype-parse.c (struct_field_seq): Ignore access-control
9801 keywords ("public:" etc).
9803 2013-10-16 Marcus Shawcroft <marcus.shawcroft@arm.com>
9805 * config/aarch64/aarch64.c (aarch64_regno_regclass): Classify
9806 FRAME_POINTER_REGNUM and ARG_POINTER_REGNUM as POINTER_REGS.
9808 2013-10-16 Yvan Roux <yvan.roux@linaro.org>
9810 * config/arm/arm.opt (mlra): New option.
9811 * config/arm/arm.c (arm_lra_p): New function.
9812 (TARGET_LRA_P): Define.
9814 2013-10-16 Paulo Matos <pmatos@broadcom.com>
9816 * tree-core.h (tree_code_name): Remove.
9817 * tree.h (get_tree_code_name): New prototype.
9818 * tree.c (tree_code_name): Make static.
9819 (get_tree_code_name): New function.
9820 (dump_tree_statistics, tree_check_failed, tree_not_check_failed,
9821 tree_class_check_failed, tree_range_check_failed,
9822 tree_not_class_check_failed, omp_clause_check_failed,
9823 tree_contains_struct_check_failed, tree_operand_check_failed): Use new
9824 wrapper get_tree_code_name instead of calling tree_code_name directly.
9825 * tree-vrp.c (dump_asserts_for): Likewise.
9826 * tree-dump.c (dequeue_and_dump): Likewise.
9827 * tree-pretty-print.c (do_niy, dump_generic_node): Likewise.
9828 * tree-pretty-print.h (pp_unsupported_tree): Likewise.
9829 * lto-streamer-out.c (lto_write_tree, DFS_write_tree): Likewise.
9830 * tree-ssa-dom.c (print_expr_hash_elt): Likewise.
9831 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
9832 dump_ternary_rhs, dump_gimple_assign, dump_gimple_cond,
9833 dump_gimple_omp_for): Likewise.
9834 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
9835 * tree-ssa-pre.c (print_pre_expr): Likewise.
9836 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
9837 * print-tree.c (print_node_brief, print_node): Likewise.
9838 * gimple.c (gimple_check_failed): Likewise.
9839 * lto-streamer.c (lto_tag_name, print_lto_report): Likewise.
9840 * config/frv/frv.c (frv_init_cumulative_args): Likewise.
9841 * config/mep/mep.c (mep_validate_vliw): Likewise.
9842 * config/iq2000/iq2000.c (init_cumulative_args): Likewise.
9843 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
9845 2013-10-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
9847 * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
9850 2013-10-16 Hans-Peter Nilsson <hp@axis.com>
9852 * config/cris/t-elfmulti (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
9853 (MULTILIB_MATCHES): Add multilib for -march=v8.
9855 2013-10-15 Sriraman Tallam <tmsriram@google.com>
9858 * optc-save-gen.awk: Add extra parameter to the save and restore
9860 * opth-gen.awk: Generate new TARGET_* macros to accept a parameter.
9861 * tree.c (build_optimization_node): New parameter. Add extra parameter
9862 to call to cl_optimization_save.
9863 (build_target_option_node): New parameter. Add extra parameter
9864 to call to cl_target_option_save.
9865 * tree.h (build_optimization_node): New parameter.
9866 (build_target_option_node): New parameter.
9867 * c-family/c-common.c (handle_optimize_attribute): Fix calls to
9868 build_optimization_node and build_target_option_node.
9869 * c-family/c-pragma.c (handle_pragma_optimize): Ditto.
9870 (handle_pragma_push_options): Ditto.
9871 * toplev.c (process_options): Ditto.
9872 * opts.c (init_options_struct): Check for opts_set non-null.
9873 * target.def (target_option.save): New parameter.
9874 (target_option.restore): New parameter.
9875 * tm.texi: Generate.
9876 * config/i386/i386-c.c (ix86_target_macros_internal): Ditto.
9877 (ix86_pragma_target_parse): Ditto.
9878 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree): New
9880 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix calls
9881 to build_optimization_node and build_target_option_node.
9882 (rs6000_valid_attribute_p): Ditto.
9883 (rs6000_pragma_target_parse): Ditto.
9884 * config/i386/i386.opt (x_ix86_target_flags_explicit): New TargetSave
9886 * config/i386/i386.h:
9887 TARGET_64BIT_P: New Macro
9888 TARGET_MMX_P: New Macro.
9889 TARGET_3DNOW_P: New Macro.
9890 TARGET_3DNOW_A_P: New Macro.
9891 TARGET_SSE_P: New Macro.
9892 TARGET_SSE2_P: New Macro.
9893 TARGET_SSE3_P: New Macro.
9894 TARGET_SSSE3_P: New Macro.
9895 TARGET_SSE4_1_P: New Macro.
9896 TARGET_SSE4_2_P: New Macro.
9897 TARGET_AVX_P: New Macro.
9898 TARGET_AVX2_P: New Macro.
9899 TARGET_AVX512F_P: New Macro.
9900 TARGET_AVX512PF_P: New Macro.
9901 TARGET_AVX512ER_P: New Macro.
9902 TARGET_AVX512CD_P: New Macro.
9903 TARGET_FMA_P: New Macro.
9904 TARGET_SSE4A_P: New Macro.
9905 TARGET_FMA4_P: New Macro.
9906 TARGET_XOP_P: New Macro.
9907 TARGET_LWP_P: New Macro.
9908 TARGET_ABM_P: New Macro.
9909 TARGET_BMI_P: New Macro.
9910 TARGET_BMI2_P: New Macro.
9911 TARGET_LZCNT_P: New Macro.
9912 TARGET_TBM_P: New Macro.
9913 TARGET_POPCNT_P: New Macro.
9914 TARGET_SAHF_P: New Macro.
9915 TARGET_MOVBE_P: New Macro.
9916 TARGET_CRC32_P: New Macro.
9917 TARGET_AES_P: New Macro.
9918 TARGET_PCLMUL_P: New Macro.
9919 TARGET_CMPXCHG16B_P: New Macro.
9920 TARGET_FSGSBASE_P: New Macro.
9921 TARGET_RDRND_P: New Macro.
9922 TARGET_F16C_P: New Macro.
9923 TARGET_RTM_P: New Macro.
9924 TARGET_HLE_P: New Macro.
9925 TARGET_RDSEED_P: New Macro.
9926 TARGET_PRFCHW_P: New Macro.
9927 TARGET_ADX_P: New Macro.
9928 TARGET_FXSR_P: New Macro.
9929 TARGET_XSAVE_P: New Macro.
9930 TARGET_XSAVEOPT_P: New Macro.
9931 TARGET_LP64_P: New Macro.
9932 TARGET_X32_P: New Macro.
9933 TARGET_FPMATH_DEFAULT_P: New Macro.
9934 TARGET_FLOAT_RETURNS_IN_80387_P: New Macro.
9935 * config/i386/i386.c (ix86_option_override_internal): New parameters.
9937 Change ix86_tune_string to access opts->x_ix86_tune_string.
9938 Change ix86_isa_flags to access opts->x_ix86_isa_flags.
9939 Change ix86_arch_string to access opts->x_ix86_arch_string.
9940 Change ix86_stringop_alg to access opts->x_ix86_stringop_alg.
9941 Change ix86_pmode to access opts->x_ix86_pmode.
9942 Change ix86_abi to access opts->x_ix86_abi.
9943 Change ix86_cmodel to access opts->x_ix86_cmodel.
9944 Change ix86_asm_dialect to access opts->x_ix86_asm_dialect.
9945 Change ix86_isa_flags_explicit to access
9946 opts->x_ix86_isa_flags_explicit.
9947 Change ix86_dump_tunes to access opts->x_ix86_dump_tunes.
9948 Change ix86_regparm to access opts->x_ix86_regparm.
9949 Change ix86_branch_cost to access opts->x_ix86_branch_cost.
9950 Change ix86_preferred_stack_boundary_arg to access
9951 opts->x_ix86_preferred_stack_boundary_arg.
9952 Change ix86_force_align_arg_pointer to access
9953 opts->x_ix86_force_align_arg_pointer.
9954 Change ix86_incoming_stack_boundar_arg to access
9955 opts->x_ix86_incoming_stack_boundar_arg.
9956 Change ix86_fpmath to access opts->x_ix86_fpmath.
9957 Change ix86_veclibabi_type to access opts->x_ix86_veclibabi_type.
9958 Change ix86_recip_name to access opts->x_ix86_recip_name.
9959 Change ix86_stack_protector_guard to access
9960 opts->x_ix86_stack_protector_guard.
9961 Change ix86_tune_memcpy_strategy to access
9962 opts->x_ix86_tune_memcpy_strategy.
9963 Change ix86_tune_memset_strategy to access
9964 opts->x_ix86_tune_memset_strategy.
9965 Change global_options to access opts.
9966 Change global_options_set to access opts_set.
9967 Change TARGET_64BIT to TARGET_64BIT_P (opts->...).
9968 Change TARGET_MMX to TARGET_MMX_P (opts->...).
9969 Change TARGET_3DNOW to TARGET_3DNOW_P (opts->...).
9970 Change TARGET_3DNOW_A to TARGET_3DNOW_A_P (opts->...).
9971 Change TARGET_SSE to TARGET_SSE_P (opts->...).
9972 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...).
9973 Change TARGET_SSE3 to TARGET_SSE3_P (opts->...).
9974 Change TARGET_SSSE3 to TARGET_SSSE3_P (opts->...).
9975 Change TARGET_SSE4_1 to TARGET_SSE4_1_P (opts->...).
9976 Change TARGET_SSE4_2 to TARGET_SSE4_2_P (opts->...).
9977 Change TARGET_AVX to TARGET_AVX_P (opts->...).
9978 Change TARGET_AVX2 to TARGET_AVX2_P (opts->...).
9979 Change TARGET_AVX512F to TARGET_AVX512F_P (opts->...).
9980 Change TARGET_AVX512PF to TARGET_AVX512PF_P (opts->...).
9981 Change TARGET_AVX512ER to TARGET_AVX512ER_P (opts->...).
9982 Change TARGET_AVX512CD to TARGET_AVX512CD_P (opts->...).
9983 Change TARGET_FMA to TARGET_FMA_P (opts->...).
9984 Change TARGET_SSE4A to TARGET_SSE4A_P (opts->...).
9985 Change TARGET_FMA4 to TARGET_FMA4_P (opts->...).
9986 Change TARGET_XOP to TARGET_XOP_P (opts->...).
9987 Change TARGET_LWP to TARGET_LWP_P (opts->...).
9988 Change TARGET_ABM to TARGET_ABM_P (opts->...).
9989 Change TARGET_BMI to TARGET_BMI_P (opts->...).
9990 Change TARGET_BMI2 to TARGET_BMI2_P (opts->...).
9991 Change TARGET_LZCNT to TARGET_LZCNT_P (opts->...).
9992 Change TARGET_TBM to TARGET_TBM_P (opts->...).
9993 Change TARGET_POPCNT to TARGET_POPCNT_P (opts->...).
9994 Change TARGET_SAHF to TARGET_SAHF_P (opts->...).
9995 Change TARGET_MOVBE to TARGET_MOVBE_P (opts->...).
9996 Change TARGET_CRC32 to TARGET_CRC32_P (opts->...).
9997 Change TARGET_AES to TARGET_AES_P (opts->...).
9998 Change TARGET_PCLMUL to TARGET_PCLMUL_P (opts->...).
9999 Change TARGET_CMPXCHG16B to TARGET_CMPXCHG16B_P (opts->...).
10000 Change TARGET_FSGSBASE to TARGET_FSGSBASE_P (opts->...).
10001 Change TARGET_RDRND to TARGET_RDRND_P (opts->...).
10002 Change TARGET_F16C to TARGET_F16C_P (opts->...).
10003 Change TARGET_RTM to TARGET_RTM_P (opts->...).
10004 Change TARGET_HLE to TARGET_HLE_P (opts->...).
10005 Change TARGET_RDSEED to TARGET_RDSEED_P (opts->...).
10006 Change TARGET_PRFCHW to TARGET_PRFCHW_P (opts->...).
10007 Change TARGET_ADX to TARGET_ADX_P (opts->...).
10008 Change TARGET_FXSR to TARGET_FXSR_P (opts->...).
10009 Change TARGET_XSAVE to TARGET_XSAVE_P (opts->...).
10010 Change TARGET_XSAVEOPT to TARGET_XSAVEOPT_P (opts->...).
10011 Change TARGET_LP64 to TARGET_LP64_P (opts->...).
10012 Change TARGET_X32 to TARGET_X32_P (opts->...).
10013 Change TARGET_FPMATH_DEFAULT to TARGET_FPMATH_DEFAULT_P (opts->...).
10014 Change TARGET_FLOAT_RETURNS_IN_80387 to
10015 TARGET_FLOAT_RETURNS_IN_80387_P (opts->...).
10016 (ix86_function_specific_save): New parameter. Use opts-> fields
10017 to replace global fields.
10018 (ix86_function_specific_restore): Ditto.
10019 (ix86_valid_target_attribute_inner_p): New parameters.
10020 Fix recursive call.
10021 Fix call to ix86_handle_option and set_option.
10022 (ix86_valid_target_attribute_tree): New parameters.
10023 Change global_options to access opts.
10024 Change global_options_set to access opts_set.
10025 Fix call to ix86_valid_target_attribute_inner_p.
10026 Change ix86_tune_string to access opts->x_ix86_tune_string.
10027 Change ix86_arch_string to access opts->x_ix86_arch_string.
10028 Change ix86_fpmath to access opts->x_ix86_fpmath
10029 Fix call to ix86_option_override_internal.
10030 Fix call to ix86_add_new_builtins.
10031 Fix calls to build_optimization_node and build_target_option_node.
10032 (ix86_valid_target_attribute_p): Remove access to global_options.
10033 Use new gcc_options structure func_options.
10034 Fix call to ix86_valid_target_attribute_tree.
10035 Fix call to build_optimization_node.
10036 (get_builtin_code_for_version): Fix call to
10037 ix86_valid_target_attribute_tree.
10039 2013-10-15 David Malcolm <dmalcolm@redhat.com>
10041 * Makefile.in (PICFLAG): New.
10042 (enable_host_shared): New.
10043 (INTERNAL_CFLAGS): Use PICFLAG.
10044 (LIBIBERTY): Use pic build of libiberty.a if configured with
10045 --enable-host-shared.
10046 * configure.ac: Add --enable-host-shared, setting up new
10048 * configure: Regenerate.
10049 * doc/install.texi (--enable-shared): Add note contrasting it with ...
10050 (--enable-host-shared): New option.
10052 2013-10-15 Richard Biener <rguenther@suse.de>
10054 * tree-tailcall.c (find_tail_calls): Don't use tail-call recursion
10055 for built-in functions.
10057 2013-10-15 Zhenqiang Chen <zhenqiang.chen@arm.com>
10059 * tree-ssa-reassoc.c: Include rtl.h and tm_p.h.
10060 (optimize_range_tests_1): New function,
10061 extracted from optimize_range_tests.
10062 (optimize_range_tests_xor): Similarly.
10063 (optimize_range_tests_diff): New function.
10064 (optimize_range_tests): Use optimize_range_tests_1.
10066 2013-10-15 Cong Hou <congh@google.com>
10068 * tree-vect-loop.c (vect_is_simple_reduction_1): Relax the
10069 requirement of the reduction pattern so that one operand of the
10070 reduction operation can come from outside of the loop.
10072 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10074 * config/arm/neon-schedgen.ml: Remove.
10075 * config/arm/cortex-a9-neon.md: Remove comment regarding
10078 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10080 * config/arm/types: Remove old neon types.
10082 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10084 * config/arm/cortex-a7.md
10085 (cortex_a7_neon_type): New.
10086 (cortex_a7_neon_mul): Update for new types.
10087 (cortex_a7_neon_mla): Likewise.
10088 (cortex_a7_neon): Likewise.
10090 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10092 * config/arm/cortex-a15-neon.md
10093 (cortex_a15_neon_type): New,
10095 (cortex_a15_neon_int_1): Remove.
10096 (cortex_a15_neon_int_2): Likewise.
10097 (cortex_a15_neon_int_3): Likewise.
10098 (cortex_a15_neon_int_4): Likewise.
10099 (cortex_a15_neon_int_5): Likewise.
10100 (cortex_a15_neon_vqneg_vqabs): Likewise.
10101 (cortex_a15_neon_vmov): Likewise.
10102 (cortex_a15_neon_vaba): Likewise.
10103 (cortex_a15_neon_vaba_qqq): Likewise.
10104 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10105 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
10106 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
10108 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10109 (cortex_a15_neon_mla_qqq_8_16): Likewise.
10110 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar): Likewise.
10111 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
10112 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
10113 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
10114 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
10115 (cortex_a15_neon_shift_1): Likewise.
10116 (cortex_a15_neon_shift_2): Likewise.
10117 (cortex_a15_neon_shift_3): Likewise.
10118 (cortex_a15_neon_vshl_ddd): Likewise.
10119 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
10120 (cortex_a15_neon_vsra_vrsra): Likewise.
10121 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
10122 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
10123 (cortex_a15_neon_bp_3cycle): Likewise.
10124 (cortex_a15_neon_ldm_2): Likewise.
10125 (cortex_a15_neon_stm_2): Likewise.
10126 (cortex_a15_neon_mcr): Likewise.
10127 (cortex_a15_neon_mrc): Likewise.
10128 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
10129 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
10130 (cortex_a15_neon_fp_vmul_ddd): Likewise.
10131 (cortex_a15_neon_fp_vmul_qqd): Likewise.
10132 (cortex_a15_neon_fp_vmla_ddd): Likewise.
10133 (cortex_a15_neon_fp_vmla_qqq): Likewise.
10134 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
10135 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
10136 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
10137 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
10138 (cortex_a15_neon_bp_simple): Likewise.
10139 (cortex_a15_neon_bp_2cycle): Likewise.
10140 (cortex_a15_neon_bp_3cycle): Likewise.
10141 (cortex_a15_neon_vld1_1_2_regs): Likewise.
10142 (cortex_a15_neon_vld1_3_4_regs): Likewise.
10143 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
10144 (cortex_a15_neon_vld2_4_regs): Likewise.
10145 (cortex_a15_neon_vld3_vld4): Likewise.
10146 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
10147 (cortex_a15_neon_vst1_3_4_regs): Likewise.
10148 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Rename to...
10149 (cortex_a15_neon_vst2_4_regs_vst3): ...This, update for new attributes.
10150 (cortex_a15_neon_vst3_vst4): Rename to...
10151 (cortex_a15_neon_vst4): This, update for new attributes.
10152 (cortex_a15_neon_vld1_vld2_lane): Update for new attributes.
10153 (cortex_a15_neon_vld3_vld4_lane): Likewise.
10154 (cortex_a15_neon_vst1_vst2_lane): Likewise.
10155 (cortex_a15_neon_vst3_vst4_lane): Likewise.
10156 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
10157 (cortex_a15_neon_ldm_2): Likewise.
10158 (cortex_a15_neon_stm_2): Likewise.
10159 (cortex_a15_neon_mcr): Likewise.
10160 (cortex_a15_neon_mcr_2_mcrr): Likewise.
10161 (cortex_a15_neon_mrc): Likewise.
10162 (cortex_a15_neon_mrrc): Likewise.
10164 (cortex_a15_neon_abd): New.
10165 (cortex_a15_neon_abd_q): Likewise.
10166 (cortex_a15_neon_aba): Likewise.
10167 (cortex_a15_neon_aba_q): Likewise.
10168 (cortex_a15_neon_acc): Likewise.
10169 (cortex_a15_neon_acc_q): Likewise.
10170 (cortex_a15_neon_arith_basic): Likewise.
10171 (cortex_a15_neon_arith_complex): Likewise.
10172 (cortex_a15_neon_multiply): Likewise.
10173 (cortex_a15_neon_multiply_q): Likewise.
10174 (cortex_a15_neon_mla): Likewise.
10175 (cortex_a15_neon_mla_q): Likewise.
10176 (cortex_a15_neon_sat_mla_long): Likewise.
10177 (cortex_a15_neon_shift_acc): Likewise.
10178 (cortex_a15_neon_shift_imm_basic): Likewise.
10179 (cortex_a15_neon_shift_imm_complex): Likewise.
10180 (cortex_a15_neon_shift_reg_basic): Likewise.
10181 (cortex_a15_neon_shift_reg_basic_q): Likewise.
10182 (cortex_a15_neon_shift_reg_complex): Likewise.
10183 (cortex_a15_neon_shift_reg_complex_q): Likewise.
10184 (cortex_a15_neon_fp_negabs): Likewise
10185 (cortex_a15_neon_fp_arith): Likewise
10186 (cortex_a15_neon_fp_arith_q): Likewise
10187 (cortex_a15_neon_fp_cvt_int): Likewise
10188 (cortex_a15_neon_fp_cvt_int_q): Likewise
10189 (cortex_a15_neon_fp_cvt_16): Likewise
10190 (cortex_a15_neon_fp_mul): Likewise
10191 (cortex_a15_neon_fp_mul_q): Likewise
10192 (cortex_a15_neon_fp_mla): Likewise
10193 (cortex_a15_neon_fp_mla_q): Likewise
10194 (cortex_a15_neon_fp_recps_rsqrte): Likewise.
10195 (cortex_a15_neon_fp_recps_rsqrte_q): Likewise.
10196 (cortex_a15_neon_bitops): Likewise.
10197 (cortex_a15_neon_bitops_q): Likewise.
10198 (cortex_a15_neon_from_gp): Likewise.
10199 (cortex_a15_neon_from_gp_q): Likewise.
10200 (cortex_a15_neon_tbl3_tbl4): Likewise.
10201 (cortex_a15_neon_zip_q): Likewise.
10202 (cortex_a15_neon_to_gp): Likewise.
10203 (cortex_a15_neon_load_a): Likewise.
10204 (cortex_a15_neon_load_b): Likewise.
10205 (cortex_a15_neon_load_c): Likewise.
10206 (cortex_a15_neon_load_d): Likewise.
10207 (cortex_a15_neon_load_e): Likewise.
10208 (cortex_a15_neon_load_f): Likewise.
10209 (cortex_a15_neon_store_a): Likewise.
10210 (cortex_a15_neon_store_b): Likewise.
10211 (cortex_a15_neon_store_c): Likewise.
10212 (cortex_a15_neon_store_d): Likewise.
10213 (cortex_a15_neon_store_e): Likewise.
10214 (cortex_a15_neon_store_f): Likewise.
10215 (cortex_a15_neon_store_g): Likewise.
10216 (cortex_a15_neon_store_h): Likewise.
10217 (cortex_a15_vfp_to_from_gp): Likewise.
10219 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10221 * config/arm/cortex-a9-neon.md (cortex_a9_neon_type): New.
10223 (cortex_a9_neon_vshl_ddd): Remove.
10224 (cortex_a9_neon_vst3_vst4): Likewise.
10225 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
10227 (cortex_a9_neon_bit_ops_q): New.
10229 (cortex_a9_neon_int_1): Use cortex_a8_neon_type.
10230 (cortex_a9_neon_int_2): Likewise.
10231 (cortex_a9_neon_int_3): Likewise.
10232 (cortex_a9_neon_int_4): Likewise.
10233 (cortex_a9_neon_int_5): Likewise.
10234 (cortex_a9_neon_vqneg_vqabs): Likewise.
10235 (cortex_a9_neon_vmov): Likewise.
10236 (cortex_a9_neon_vaba): Likewise.
10237 (cortex_a9_neon_vaba_qqq): Likewise.
10238 (cortex_a9_neon_shift_1): Likewise.
10239 (cortex_a9_neon_shift_2): Likewise.
10240 (cortex_a9_neon_shift_3): Likewise.
10241 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
10242 (cortex_a9_neon_vsra_vrsra): Likewise.
10243 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10244 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
10245 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
10247 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10248 (cortex_a9_neon_mla_qqq_8_16): Likewise.
10249 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
10251 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
10252 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
10253 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
10254 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
10255 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
10256 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
10257 (cortex_a9_neon_fp_vsum): Likewise.
10258 (cortex_a9_neon_fp_vmul_ddd): Likewise.
10259 (cortex_a9_neon_fp_vmul_qqd): Likewise.
10260 (cortex_a9_neon_fp_vmla_ddd): Likewise.
10261 (cortex_a9_neon_fp_vmla_qqq): Likewise.
10262 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
10263 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
10264 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
10265 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
10266 (cortex_a9_neon_bp_simple): Likewise.
10267 (cortex_a9_neon_bp_2cycle): Likewise.
10268 (cortex_a9_neon_bp_3cycle): Likewise.
10269 (cortex_a9_neon_ldr): Likewise.
10270 (cortex_a9_neon_str): Likewise.
10271 (cortex_a9_neon_vld1_1_2_regs): Likewise.
10272 (cortex_a9_neon_vld1_3_4_regs): Likewise.
10273 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
10274 (cortex_a9_neon_vld2_4_regs): Likewise.
10275 (cortex_a9_neon_vld3_vld4): Likewise.
10276 (cortex_a9_neon_vld1_vld2_lane): Likewise.
10277 (cortex_a9_neon_vld3_vld4_lane): Likewise.
10278 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
10279 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
10280 (cortex_a9_neon_vst1_3_4_regs): Likewise.
10281 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
10282 (cortex_a9_neon_vst1_vst2_lane): Likewise.
10283 (cortex_a9_neon_vst3_vst4_lane): Likewise.
10284 (cortex_a9_neon_mcr): Likewise.
10285 (cortex_a9_neon_mcr_2_mcrr): Likewise.
10286 (cortex_a9_neon_mrc): Likewise.
10287 (cortex_a9_neon_mrrc): Likewise.
10289 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10291 * config/arm/cortex-a8-neon.md (cortex_a8_neon_type): New.
10293 (cortex_a8_neon_vshl_ddd): Remove.
10294 (cortex_a8_neon_vst3_vst4): Likewise.
10295 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
10297 (cortex_a8_neon_bit_ops_q): New.
10299 (cortex_a8_neon_int_1): Use cortex_a8_neon_type.
10300 (cortex_a8_neon_int_2): Likewise..
10301 (cortex_a8_neon_int_3): Likewise.
10302 (cortex_a8_neon_int_5): Likewise.
10303 (cortex_a8_neon_vqneg_vqabs): Likewise.
10304 (cortex_a8_neon_int_4): Likewise.
10305 (cortex_a8_neon_vaba): Likewise.
10306 (cortex_a8_neon_vaba_qqq): Likewise.
10307 (cortex_a8_neon_shift_1): Likewise.
10308 (cortex_a8_neon_shift_2): Likewise.
10309 (cortex_a8_neon_shift_3): Likewise.
10310 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
10311 (cortex_a8_neon_vsra_vrsra): Likewise.
10312 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10313 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
10314 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
10316 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10317 (cortex_a8_neon_mla_qqq_8_16): Likewise.
10318 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
10320 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
10321 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
10322 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
10323 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
10324 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
10325 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
10326 (cortex_a8_neon_fp_vsum): Likewise.
10327 (cortex_a8_neon_fp_vmul_ddd): Likewise.
10328 (cortex_a8_neon_fp_vmul_qqd): Likewise.
10329 (cortex_a8_neon_fp_vmla_ddd): Likewise.
10330 (cortex_a8_neon_fp_vmla_qqq): Likewise.
10331 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
10332 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
10333 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
10334 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
10335 (cortex_a8_neon_bp_simple): Likewise.
10336 (cortex_a8_neon_bp_2cycle): Likewise.
10337 (cortex_a8_neon_bp_3cycle): Likewise.
10338 (cortex_a8_neon_ldr): Likewise.
10339 (cortex_a8_neon_str): Likewise.
10340 (cortex_a8_neon_vld1_1_2_regs): Likewise.
10341 (cortex_a8_neon_vld1_3_4_regs): Likewise.
10342 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
10343 (cortex_a8_neon_vld2_4_regs): Likewise.
10344 (cortex_a8_neon_vld3_vld4): Likewise.
10345 (cortex_a8_neon_vld1_vld2_lane): Likewise.
10346 (cortex_a8_neon_vld3_vld4_lane): Likewise.
10347 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
10348 (cortex_a8_neon_vst1_3_4_regs): Likewise.
10349 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
10350 (cortex_a8_neon_vst1_vst2_lane): Likewise.
10351 (cortex_a8_neon_vst3_vst4_lane): Likewise.
10352 (cortex_a8_neon_mcr): Likewise.
10353 (cortex_a8_neon_mcr_2_mcrr): Likewise.
10354 (cortex_a8_neon_mrc): Likewise.
10355 (cortex_a8_neon_mrrc): Likewise.
10357 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10359 * config/aarch64/iterators.md (Vetype): Add SF and DF modes.
10361 * config/aarch64/aarch64-simd.md (neon_type): Remove.
10362 (aarch64_simd_dup<mode>): Add "type" attribute.
10363 (aarch64_dup_lane<mode>): Likewise.
10364 (aarch64_dup_lane_<vswap_width_name><mode>): Likewise.
10365 (*aarch64_simd_mov<mode>): Likewise.
10366 (aarch64_simd_mov_from_<mode>low): Likewise.
10367 (aarch64_simd_mov_from_<mode>high): Likewise.
10368 (orn<mode>3): Likewise.
10369 (bic<mode>3): Likewise.
10370 (add<mode>3): Likewise.
10371 (sub<mode>3): Likewise.
10372 (mul<mode>3): Likewise.
10373 (*aarch64_mul3_elt<mode>): Likewise.
10374 (*aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
10375 (*aarch64_mul3_elt_to_128df): Likewise.
10376 (*aarch64_mul3_elt_to_64v2df): Likewise.
10377 (neg<mode>2): Likewise.
10378 (abs<mode>2): Likewise.
10379 (abd<mode>_3): Likewise.
10380 (aba<mode>_3): Likewise.
10381 (fabd<mode>_3): Likewise.
10382 (*fabd_scalar<mode>3): Likewise.
10383 (and<mode>3): Likewise.
10384 (ior<mode>3): Likewise.
10385 (xor<mode>3): Likewise.
10386 (one_cmpl<mode>2): Likewise.
10387 (aarch64_simd_vec_set<mode>): Likewise.
10388 (aarch64_simd_lshr<mode>): Likewise.
10389 (aarch64_simd_ashr<mode>): Likewise.
10390 (aarch64_simd_imm_shl<mode>): Likewise.
10391 (aarch64_simd_reg_sshl<mode): Likewise.
10392 (aarch64_simd_reg_shl<mode>_unsigned): Likewise.
10393 (aarch64_simd_reg_shl<mode>_signed): Likewise.
10394 (aarch64_simd_vec_setv2di): Likewise.
10395 (aarch64_simd_vec_set<mode>): Likewise.
10396 (aarch64_mla<mode>): Likewise.
10397 (*aarch64_mla_elt<mode>): Likewise.
10398 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
10399 (aarch64_mls<mode>): Likewise.
10400 (*aarch64_mls_elt<mode>): Likewise.
10401 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
10402 (<su><maxmin><mode>3): Likewise.
10403 (move_lo_quad_<mode>): Likewise.
10404 (aarch64_simd_move_hi_quad_<mode>): Likewise.
10405 (aarch64_simd_vec_pack_trunc_<mode>): Likewise.
10406 (vec_pack_trunc_<mode>): Likewise.
10407 (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
10408 (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
10409 (*aarch64_<su>mlal_lo<mode>): Likewise.
10410 (*aarch64_<su>mlal_hi<mode>): Likewise.
10411 (*aarch64_<su>mlsl_lo<mode>): Likewise.
10412 (*aarch64_<su>mlsl_hi<mode>): Likewise.
10413 (*aarch64_<su>mlal<mode>): Likewise.
10414 (*aarch64_<su>mlsl<mode>): Likewise.
10415 (aarch64_simd_vec_<su>mult_lo_<mode>): Likewise.
10416 (aarch64_simd_vec_<su>mult_hi_<mode>): Likewise.
10417 (add<mode>3): Likewise.
10418 (sub<mode>3): Likewise.
10419 (mul<mode>3): Likewise.
10420 (div<mode>3): Likewise.
10421 (neg<mode>2): Likewise.
10422 (abs<mode>2): Likewise.
10423 (fma<mode>4): Likewise.
10424 (*aarch64_fma4_elt<mode>): Likewise.
10425 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
10426 (*aarch64_fma4_elt_to_128df): Likewise.
10427 (*aarch64_fma4_elt_to_64v2df): Likewise.
10428 (fnma<mode>4): Likewise.
10429 (*aarch64_fnma4_elt<mode>): Likewise.
10430 (*aarch64_fnma4_elt_<vswap_width_name><mode>
10431 (*aarch64_fnma4_elt_to_128df): Likewise.
10432 (*aarch64_fnma4_elt_to_64v2df): Likewise.
10433 (<frint_pattern><mode>2): Likewise.
10434 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
10435 (<optab><fcvt_target><VDQF:VDQF:mode>2): Likewise.
10436 (vec_unpacks_lo_v4sf): Likewise.
10437 (aarch64_float_extend_lo_v2df): Likewise.
10438 (vec_unpacks_hi_v4sf): Likewise.
10439 (aarch64_float_truncate_lo_v2sf): Likewise.
10440 (aarch64_float_truncate_hi_v4sf): Likewise.
10441 (aarch64_vmls<mode>): Likewise.
10442 (<su><maxmin><mode>3): Likewise.
10443 (<maxmin_uns><mode>3): Likewise.
10444 (reduc_<sur>plus_<mode>): Likewise.
10445 (reduc_<sur>plus_v2di): Likewise.
10446 (reduc_<sur>plus_v2si): Likewise.
10447 (reduc_<sur>plus_<mode>): Likewise.
10448 (aarch64_addpv4sf): Likewise.
10449 (clz<mode>2): Likewise.
10450 (reduc_<maxmin_uns>_<mode>): Likewise.
10451 (reduc_<maxmin_uns>_v2di): Likewise.
10452 (reduc_<maxmin_uns>_v2si): Likewise.
10453 (reduc_<maxmin_uns>_<mode>): Likewise.
10454 (reduc_<maxmin_uns>_v4sf): Likewise.
10455 (aarch64_simd_bsl<mode>_internal): Likewise.
10456 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
10457 (*aarch64_get_lane_zero_extendsi<mode>): Likewise.
10458 (aarch64_get_lane<mode>): Likewise.
10459 (*aarch64_combinez<mode>): Likewise.
10460 (aarch64_combine<mode>): Likewise.
10461 (aarch64_simd_combine<mode>): Likewise.
10462 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): Likewise.
10463 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): Likewise.
10464 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Likewise.
10465 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>): Likewise.
10466 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w2<mode>_internal): Likewise.
10467 (aarch64_<sur>h<addsub><mode>): Likewise.
10468 (aarch64_<sur><addsub>hn<mode>): Likewise.
10469 (aarch64_<sur><addsub>hn2<mode>): Likewise.
10470 (aarch64_pmul<mode>): Likewise.
10471 (aarch64_<su_optab><optab><mode>): Likewise.
10472 (aarch64_<sur>qadd<mode>): Likewise.
10473 (aarch64_sqmovun<mode>): Likewise.
10474 (aarch64_<sur>qmovn<mode>): Likewise.
10475 (aarch64_s<optab><mode>): Likewise.
10476 (aarch64_sq<r>dmulh<mode>): Likewise.
10477 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
10478 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
10479 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
10480 (aarch64_sqdml<SBINQOPS:as>l<mode>): Likewise.
10481 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
10482 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
10483 (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Likewise.
10484 (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Likewise.
10485 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
10486 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
10487 (aarch64_sqdmull<mode>): Likewise.
10488 (aarch64_sqdmull_lane<mode>_internal): Likewise.
10489 (aarch64_sqdmull_n<mode>): Likewise.
10490 (aarch64_sqdmull2<mode>_internal): Likewise.
10491 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
10492 (aarch64_sqdmull2_n<mode>_internal): Likewise.
10493 (aarch64_<sur>shl<mode>): Likewise.
10494 (aarch64_<sur>q<r>shl<mode>
10495 (aarch64_<sur>shll_n<mode>): Likewise.
10496 (aarch64_<sur>shll2_n<mode>): Likewise.
10497 (aarch64_<sur>shr_n<mode>): Likewise.
10498 (aarch64_<sur>sra_n<mode>): Likewise.
10499 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
10500 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
10501 (aarch64_<sur>q<r>shr<u>n_n<mode>): Likewise.
10502 (aarch64_cm<optab><mode>): Likewise.
10503 (aarch64_cm<optab>di): Likewise.
10504 (aarch64_cm<optab><mode>): Likewise.
10505 (aarch64_cm<optab>di): Likewise.
10506 (aarch64_cmtst<mode>): Likewise.
10507 (aarch64_cmtstdi): Likewise.
10508 (aarch64_cm<optab><mode>): Likewise.
10509 (*aarch64_fac<optab><mode>): Likewise.
10510 (aarch64_addp<mode>): Likewise.
10511 (aarch64_addpdi): Likewise.
10512 (sqrt<mode>2): Likewise.
10513 (vec_load_lanesoi<mode>): Likewise.
10514 (vec_store_lanesoi<mode>): Likewise.
10515 (vec_load_lanesci<mode>): Likewise.
10516 (vec_store_lanesci<mode>): Likewise.
10517 (vec_load_lanesxi<mode>): Likewise.
10518 (vec_store_lanesxi<mode>): Likewise.
10519 (*aarch64_mov<mode>): Likewise.
10520 (aarch64_ld2<mode>_dreg): Likewise.
10521 (aarch64_ld2<mode>_dreg): Likewise.
10522 (aarch64_ld3<mode>_dreg): Likewise.
10523 (aarch64_ld3<mode>_dreg): Likewise.
10524 (aarch64_ld4<mode>_dreg): Likewise.
10525 (aarch64_ld4<mode>_dreg): Likewise.
10526 (aarch64_tbl1<mode>): Likewise.
10527 (aarch64_tbl2v16qi): Likewise.
10528 (aarch64_combinev16qi): Likewise.
10529 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Likewise.
10530 (aarch64_st2<mode>_dreg): Likewise.
10531 (aarch64_st2<mode>_dreg): Likewise.
10532 (aarch64_st3<mode>_dreg): Likewise.
10533 (aarch64_st3<mode>_dreg): Likewise.
10534 (aarch64_st4<mode>_dreg): Likewise.
10535 (aarch64_st4<mode>_dreg): Likewise.
10536 (*aarch64_simd_ld1r<mode>): Likewise.
10537 (aarch64_frecpe<mode>): Likewise.
10538 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
10539 (aarch64_frecps<mode>): Likewise.
10541 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10543 * config/arm/iterators.md (V_elem_ch): New.
10545 (VQH_type): Likewise.
10546 * config/arm/arm.md (is_neon_type): New.
10547 (conds): Use is_neon_type.
10548 (anddi3_insn): Update type attribute.
10549 (xordi3_insn): Likewise.
10550 (one_cmpldi2): Likewise.
10551 * config/arm/vfp.md (movhf_vfp_neon): Update type attribute.
10552 * config/arm/neon.md (neon_mov): Update type attribute.
10553 (*movmisalign<mode>_neon_store): Likewise.
10554 (*movmisalign<mode>_neon_load): Likewise.
10555 (vec_set<mode>_internal): Likewise.
10556 (vec_set<mode>_internal): Likewise.
10557 (vec_setv2di_internal): Likewise.
10558 (vec_extract<mode>): Likewise.
10559 (vec_extract<mode>): Likewise.
10560 (vec_extractv2di): Likewise.
10561 (*add<mode>3_neon): Likewise.
10562 (adddi3_neon): Likewise.
10563 (*sub<mode>3_neon): Likewise.
10564 (subdi3_neon): Likewise.
10565 (fma<VCVTF:mode>4): Likewise.
10566 (fma<VCVTF:mode>4_intrinsic): Likewise.
10567 (*fmsub<VCVTF:mode>4): Likewise.
10568 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
10569 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
10570 (ior<mode>3): Likewise.
10571 (and<mode>3): Likewise.
10572 (orn<mode>3_neon): Likewise.
10573 (orndi3_neon): Likewise.
10574 (bic<mode>3_neon): Likewise.
10575 (bicdi3_neon): Likewise.
10576 (xor<mode>3): Likewise.
10577 (one_cmpl<mode>2): Likewise.
10578 (abs<mode>2): Likewise.
10579 (neg<mode>2): Likewise.
10580 (negdi2_neon): Likewise.
10581 (*umin<mode>3_neon): Likewise.
10582 (*umax<mode>3_neon): Likewise.
10583 (*smin<mode>3_neon): Likewise.
10584 (*smax<mode>3_neon): Likewise.
10585 (vashl<mode>3): Likewise.
10586 (vashr<mode>3_imm): Likewise.
10587 (vlshr<mode>3_imm): Likewise.
10588 (ashl<mode>3_signed): Likewise.
10589 (ashl<mode>3_unsigned): Likewise.
10590 (neon_load_count): Likewise.
10591 (ashldi3_neon_noclobber): Likewise.
10592 (ashldi3_neon): Likewise.
10593 (signed_shift_di3_neon): Likewise.
10594 (unsigned_shift_di3_neon): Likewise.
10595 (ashrdi3_neon_imm_noclobber): Likewise.
10596 (lshrdi3_neon_imm_noclobber): Likewise.
10597 (<shift>di3_neon): Likewise.
10598 (widen_ssum<mode>3): Likewise.
10599 (widen_usum<mode>3): Likewise.
10600 (quad_halves_<code>v4si): Likewise.
10601 (quad_halves_<code>v4sf): Likewise.
10602 (quad_halves_<code>v8hi): Likewise.
10603 (quad_halves_<code>v16qi): Likewise.
10604 (reduc_splus_v2di): Likewise.
10605 (neon_vpadd_internal<mode>): Likewise.
10606 (neon_vpsmin<mode>): Likewise.
10607 (neon_vpsmax<mode>): Likewise.
10608 (neon_vpumin<mode>): Likewise.
10609 (neon_vpumax<mode>): Likewise.
10610 (*ss_add<mode>_neon): Likewise.
10611 (*us_add<mode>_neon): Likewise.
10612 (*ss_sub<mode>_neon): Likewise.
10613 (*us_sub<mode>_neon): Likewise.
10614 (neon_vadd<mode>_unspec): Likewise.
10615 (neon_vaddl<mode>): Likewise.
10616 (neon_vaddw<mode>): Likewise.
10617 (neon_vhadd<mode>): Likewise.
10618 (neon_vqadd<mode>): Likewise.
10619 (neon_vaddhn<mode>): Likewise.
10620 (neon_vmul<mode>): Likewise.
10621 (neon_vfms<VCVTF:mode>): Likewise.
10622 (neon_vmlal<mode>): Likewise.
10623 (neon_vmls<mode>): Likewise.
10624 (neon_vmlsl<mode>): Likewise.
10625 (neon_vqdmulh<mode>): Likewise.
10626 (neon_vqdmlal<mode>): Likewise.
10627 (neon_vqdmlsl<mode>): Likewise.
10628 (neon_vmull<mode>): Likewise.
10629 (neon_vqdmull<mode>): Likewise.
10630 (neon_vsub<mode>_unspec): Likewise.
10631 (neon_vsubl<mode>): Likewise.
10632 (neon_vsubw<mode>): Likewise.
10633 (neon_vqsub<mode>): Likewise.
10634 (neon_vhsub<mode>): Likewise.
10635 (neon_vsubhn<mode>): Likewise.
10636 (neon_vceq<mode>): Likewise.
10637 (neon_vcge<mode>): Likewise.
10638 (neon_vcgeu<mode>): Likewise.
10639 (neon_vcgt<mode>): Likewise.
10640 (neon_vcgtu<mode>): Likewise.
10641 (neon_vcle<mode>): Likewise.
10642 (neon_vclt<mode>): Likewise.
10643 (neon_vcage<mode>): Likewise.
10644 (neon_vcagt<mode>): Likewise.
10645 (neon_vtst<mode>): Likewise.
10646 (neon_vabd<mode>): Likewise.
10647 (neon_vabdl<mode>): Likewise.
10648 (neon_vaba<mode>): Likewise.
10649 (neon_vabal<mode>): Likewise.
10650 (neon_vmax<mode>): Likewise.
10651 (neon_vmin<mode>): Likewise.
10652 (neon_vpaddl<mode>): Likewise.
10653 (neon_vpadal<mode>): Likewise.
10654 (neon_vpmax<mode>): Likewise.
10655 (neon_vpmin<mode>): Likewise.
10656 (neon_vrecps<mode>): Likewise.
10657 (neon_vrsqrts<mode>): Likewise.
10658 (neon_vqabs<mode>): Likewise.
10659 (neon_vqneg<mode>): Likewise.
10660 (neon_vcls<mode>): Likewise.
10661 (clz<mode>2): Likewise.
10662 (popcount<mode>2): Likewise.
10663 (neon_vrecpe<mode>): Likewise.
10664 (neon_vrsqrte<mode>): Likewise.
10665 (neon_vget_lane<mode>_sext_internal): Likewise.
10666 (neon_vget_lane<mode>_zext_internal): Likewise.
10667 (neon_vdup_n<mode>): Likewise.
10668 (neon_vdup_n<mode>): Likewise.
10669 (neon_vdup_nv2di): Likewise.
10670 (neon_vdup_lane<mode>_interal): Likewise.
10671 (*neon_vswp<mode>): Likewise.
10672 (neon_vcombine<mode>): Likewise.
10673 (float<mode><V_cvtto>2): Likewise.
10674 (floatuns<mode><V_cvtto>2): Likewise.
10675 (fix_trunc<mode><V_cvtto>2): Likewise.
10676 (fixuns_trunc<mode><V_cvtto>2
10677 (neon_vcvt<mode>): Likewise.
10678 (neon_vcvt<mode>): Likewise.
10679 (neon_vcvtv4sfv4hf): Likewise.
10680 (neon_vcvtv4hfv4sf): Likewise.
10681 (neon_vcvt_n<mode>): Likewise.
10682 (neon_vcvt_n<mode>): Likewise.
10683 (neon_vmovn<mode>): Likewise.
10684 (neon_vqmovn<mode>): Likewise.
10685 (neon_vqmovun<mode>): Likewise.
10686 (neon_vmovl<mode>): Likewise.
10687 (neon_vmul_lane<mode>): Likewise.
10688 (neon_vmul_lane<mode>): Likewise.
10689 (neon_vmull_lane<mode>): Likewise.
10690 (neon_vqdmull_lane<mode>): Likewise.
10691 (neon_vqdmulh_lane<mode>): Likewise.
10692 (neon_vqdmulh_lane<mode>): Likewise.
10693 (neon_vmla_lane<mode>): Likewise.
10694 (neon_vmla_lane<mode>): Likewise.
10695 (neon_vmlal_lane<mode>): Likewise.
10696 (neon_vqdmlal_lane<mode>): Likewise.
10697 (neon_vmls_lane<mode>): Likewise.
10698 (neon_vmls_lane<mode>): Likewise.
10699 (neon_vmlsl_lane<mode>): Likewise.
10700 (neon_vqdmlsl_lane<mode>): Likewise.
10701 (neon_vext<mode>): Likewise.
10702 (neon_vrev64<mode>): Likewise.
10703 (neon_vrev32<mode>): Likewise.
10704 (neon_vrev16<mode>): Likewise.
10705 (neon_vbsl<mode>_internal): Likewise.
10706 (neon_vshl<mode>): Likewise.
10707 (neon_vqshl<mode>): Likewise.
10708 (neon_vshr_n<mode>): Likewise.
10709 (neon_vshrn_n<mode>): Likewise.
10710 (neon_vqshrn_n<mode>): Likewise.
10711 (neon_vqshrun_n<mode>): Likewise.
10712 (neon_vshl_n<mode>): Likewise.
10713 (neon_vqshl_n<mode>): Likewise.
10714 (neon_vqshlu_n<mode>): Likewise.
10715 (neon_vshll_n<mode>): Likewise.
10716 (neon_vsra_n<mode>): Likewise.
10717 (neon_vsri_n<mode>): Likewise.
10718 (neon_vsli_n<mode>): Likewise.
10719 (neon_vtbl1v8qi): Likewise.
10720 (neon_vtbl2v8qi): Likewise.
10721 (neon_vtbl3v8qi): Likewise.
10722 (neon_vtbl4v8qi): Likewise.
10723 (neon_vtbl1v16qi): Likewise.
10724 (neon_vtbl2v16qi): Likewise.
10725 (neon_vcombinev16qi): Likewise.
10726 (neon_vtbx1v8qi): Likewise.
10727 (neon_vtbx2v8qi): Likewise.
10728 (neon_vtbx3v8qi): Likewise.
10729 (neon_vtbx4v8qi): Likewise.
10730 (*neon_vtrn<mode>_insn): Likewise.
10731 (*neon_vzip<mode>_insn): Likewise.
10732 (*neon_vuzp<mode>_insn): Likewise.
10733 (neon_vld1<mode>): Likewise.
10734 (neon_vld1_lane<mode>): Likewise.
10735 (neon_vld1_lane<mode>): Likewise.
10736 (neon_vld1_dup<mode>): Likewise.
10737 (neon_vld1_dup<mode>): Likewise.
10738 (neon_vld1_dupv2di): Likewise.
10739 (neon_vst1<mode>): Likewise.
10740 (neon_vst1_lane<mode>): Likewise.
10741 (neon_vst1_lane<mode>): Likewise.
10742 (neon_vld2<mode>): Likewise.
10743 (neon_vld2<mode>): Likewise.
10744 (neon_vld2_lane<mode>): Likewise.
10745 (neon_vld2_lane<mode>): Likewise.
10746 (neon_vld2_dup<mode>): Likewise.
10747 (neon_vst2<mode>): Likewise.
10748 (neon_vst2<mode>): Likewise.
10749 (neon_vst2_lane<mode>): Likewise.
10750 (neon_vst2_lane<mode>): Likewise.
10751 (neon_vld3<mode>): Likewise.
10752 (neon_vld3qa<mode>): Likewise.
10753 (neon_vld3qb<mode>): Likewise.
10754 (neon_vld3_lane<mode>): Likewise.
10755 (neon_vld3_lane<mode>): Likewise.
10756 (neon_vld3_dup<mode>): Likewise.
10757 (neon_vst3<mode>): Likewise.
10758 (neon_vst3qa<mode>): Likewise.
10759 (neon_vst3qb<mode>): Likewise.
10760 (neon_vst3_lane<mode>): Likewise.
10761 (neon_vst3_lane<mode>): Likewise.
10762 (neon_vld4<mode>): Likewise.
10763 (neon_vld4qa<mode>): Likewise.
10764 (neon_vld4qb<mode>): Likewise.
10765 (neon_vld4_lane<mode>): Likewise.
10766 (neon_vld4_lane<mode>): Likewise.
10767 (neon_vld4_dup<mode>): Likewise.
10768 (neon_vst4<mode>): Likewise.
10769 (neon_vst4qa<mode>): Likewise.
10770 (neon_vst4qb<mode>): Likewise.
10771 (neon_vst4_lane<mode>): Likewise.
10772 (neon_vst4_lane<mode>): Likewise.
10773 (neon_vec_unpack<US>_lo_<mode>): Likewise.
10774 (neon_vec_unpack<US>_hi_<mode>): Likewise.
10775 (neon_vec_<US>mult_lo_<mode>): Likewise.
10776 (neon_vec_<US>mult_hi_<mode>): Likewise.
10777 (neon_vec_<US>shiftl_<mode>): Likewise.
10778 (neon_unpack<US>_<mode>): Likewise.
10779 (neon_vec_<US>mult_<mode>): Likewise.
10780 (vec_pack_trunc_<mode>): Likewise.
10781 (neon_vec_pack_trunc_<mode>): Likewise.
10782 (neon_vabd<mode>_2): Likewise.
10783 (neon_vabd<mode>_3): Likewise.
10785 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10787 * config/aarch64/aarch64.md (movtf_aarch64): Update type attribute.
10788 (load_pair): Update type attribute.
10789 (store_pair): Update type attribute.
10790 * config/aarch64/iterators.md (q): New.
10792 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10794 * config/arm/types.md: Add new types for Neon insns.
10796 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
10797 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10798 Sergey Lega <sergey.s.lega@intel.com>
10799 Anna Tikhonova <anna.tikhonova@intel.com>
10800 Ilya Tocar <ilya.tocar@intel.com>
10801 Andrey Turetskiy <andrey.turetskiy@intel.com>
10802 Ilya Verbin <ilya.verbin@intel.com>
10803 Kirill Yukhin <kirill.yukhin@intel.com>
10804 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10806 * config/i386/sse.md (unspec): Add UNSPEC_RCP14, UNSPEC_RSQRT14,
10807 UNSPEC_FIXUPIMM, UNSPEC_SCALEF, UNSPEC_GETEXP, UNSPEC_GETMANT,
10808 UNSPEC_EXP2, UNSPEC_RCP28, UNSPEC_RSQRT28.
10809 (rcp14<mode>): New.
10810 (srcp14<mode>): Ditto.
10811 (rsqrt14<mode>): Ditto.
10812 (rsqrt14<mode>): Ditto.
10813 (avx512f_vmscalef<mode>): Ditto.
10814 (avx512f_scalef<mode>): Ditto.
10815 (avx512f_getexp<mode>): Ditto.
10816 (avx512f_sgetexp<mode>): Ditto.
10817 (avx512f_fixupimm<mode>): Ditto.
10818 (avx512f_sfixupimm<mode>): Ditto.
10819 (avx512f_rndscale<mode>): Ditto.
10820 (*avx512er_exp2<mode>): Ditto.
10821 (*avx512er_rcp28<mode>): Ditto.
10822 (avx512er_rsqrt28<mode>): Ditto.
10823 (avx512f_getmant<mode>): Ditto.
10824 (avx512f_getmant<mode>): Ditto.
10825 (avx512f_rndscale<mode>): Fix formatting.
10827 2013-10-15 Martin Jambor <mjambor@suse.cz>
10829 * ipa-utils.h (ipa_edge_within_scc): Declare.
10830 * ipa-cp.c (edge_within_scc): Moved...
10831 * ipa-utils.c (ipa_edge_within_scc): ...here. Updated all callers.
10833 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
10834 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10835 Sergey Lega <sergey.s.lega@intel.com>
10836 Anna Tikhonova <anna.tikhonova@intel.com>
10837 Ilya Tocar <ilya.tocar@intel.com>
10838 Andrey Turetskiy <andrey.turetskiy@intel.com>
10839 Ilya Verbin <ilya.verbin@intel.com>
10840 Kirill Yukhin <kirill.yukhin@intel.com>
10841 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10843 * config/i386/predicates.md (const_8_to_15_operand): New.
10844 (const_16_to_31_operand): Ditto.
10845 * config/i386/sse.md (V8FI): New.
10847 (reduc_splus_v8df): Ditto.
10848 (reduc_splus_v16sf): Ditto.
10849 (avx512f_vextract<shuffletype>32x4_1): Ditto.
10850 (vec_extract_hi_<mode>): Ditto.
10851 (avx512f_vinsert<shuffletype>32x4_1): Ditto.
10852 (vec_set_lo_<mode>): Ditto.
10853 (vec_set_hi_<mode>): Ditto.
10854 (avx512f_shuf_<shuffletype>64x2_1): Ditto.
10855 (avx512f_shuf_<shuffletype>32x4_1): Ditto.
10856 (avx512f_pshufd_1): Ditto.
10857 (avx512f_broadcast<mode>): Ditto.
10858 (avx512f_broadcast<mode>): Ditto.
10859 (define_split): Split vec_extract_lo into move.
10860 (ssequartermode): Ditto.
10861 (ssedoublemode): Extened with wider modes.
10862 (vec_extract_lo_<mode>): Ditto.
10864 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
10865 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10866 Sergey Lega <sergey.s.lega@intel.com>
10867 Anna Tikhonova <anna.tikhonova@intel.com>
10868 Ilya Tocar <ilya.tocar@intel.com>
10869 Andrey Turetskiy <andrey.turetskiy@intel.com>
10870 Ilya Verbin <ilya.verbin@intel.com>
10871 Kirill Yukhin <kirill.yukhin@intel.com>
10872 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10874 * config/i386/predicates.md (register_or_constm1_operand): New.
10875 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_PCMP, UNSPEC_TESTM,
10876 UNSPEC_TESTNM, UNSPEC_VTERNLOG, UNSPEC_ALIGN, UNSPEC_CONFLICT,
10877 UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT, UNSPEC_GATHER_PREFETCH,
10878 UNSPEC_SCATTER_PREFETCH
10880 (avx512f_ucmp<mode>3): Ditto.
10881 (avx512f_vternlog<mode>): Ditto.
10882 (avx512f_align<mode>): Ditto.
10883 (<shift_insn><mode>3): Ditto.
10884 (avx512f_<rotate>v<mode>): Ditto.
10885 (avx512f_<rotate><mode>): Ditto.
10886 (avx512f_eq<mode>3): Ditto.
10887 (avx512f_eq<mode>3_1): Ditto.
10888 (avx512f_gt<mode>3): Ditto.
10889 (avx512f_testm<mode>3): Ditto.
10890 (avx512f_testnm<mode>3): Ditto.
10891 (avx512pf_gatherpf<mode>): Ditto.
10892 (*avx512pf_gatherpf<mode>_mask): Ditto.
10893 (*avx512pf_gatherpf<mode>): Ditto.
10894 (avx512pf_scatterpf<mode>): Ditto.
10895 (*avx512pf_scatterpf<mode>_mask): Ditto.
10896 (*avx512pf_scatterpf<mode>): Ditto.
10897 (avx512f_vec_dup_gpr<mode>): Ditto.
10898 (clz<mode>2): Ditto.
10899 (conflict<mode>): Ditto.
10900 (REDUC_SMINMAX_MODE): Extened with wider modes.
10901 (reduc_<code>_<mode>): Ditto.
10902 (vlshr<mode>3): Ditto.
10903 (vashl<mode>3): Ditto.
10905 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
10906 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10907 Sergey Lega <sergey.s.lega@intel.com>
10908 Anna Tikhonova <anna.tikhonova@intel.com>
10909 Ilya Tocar <ilya.tocar@intel.com>
10910 Andrey Turetskiy <andrey.turetskiy@intel.com>
10911 Ilya Verbin <ilya.verbin@intel.com>
10912 Kirill Yukhin <kirill.yukhin@intel.com>
10913 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10915 * config/i386/sse.md (unspec): Added UNSPEC_VPERMI2, UNSPEC_VPERMT2,
10918 (avx512fmaskmode): Ditto.
10919 (bcstscalarsuff): Ditto.
10920 (avx512f_blendm<mode>): Ditto.
10921 (cmp_imm_predicate): Ditto.
10922 (avx512f_cmp<mode>3): Ditto.
10923 (avx512f_vec_dup<mode>): Ditto.
10924 (avx512f_vec_dup_mem<mode>): Ditto.
10925 (avx512f_vpermi2var<mode>3): Ditto.
10926 (avx512f_vpermt2var<mode>3): Ditto.
10927 (vec_init<mode>): Ditto.
10928 (avx512f_gathersi<mode>): Ditto.
10929 (*avx512f_gathersi<mode>): Ditto.
10930 (*avx512f_gathersi<mode>_2): Ditto.
10931 (avx512f_gatherdi<mode>): Ditto.
10932 (*avx512f_gatherdi<mode>): Ditto.
10933 (*avx512f_gatherdi<mode>_2): Ditto.
10934 (avx512f_scattersi<mode>): Ditto.
10935 (*avx512f_scattersi<mode>): Ditto.
10936 (avx512f_scatterdi<mode>): Ditto.
10937 (*avx512f_scatterdi<mode>): Ditto.
10938 (sseintprefix): Extened with wider modes.
10939 (VEC_GATHER_IDXSI): Ditto.
10940 (VEC_GATHER_IDXDI): Ditto.
10941 (VEC_GATHER_SRCDI): Ditto.
10943 2013-10-15 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
10944 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10946 * config/arm/t-aprofile: New file.
10947 * config.gcc: Handle --with-multilib-list option.
10949 2013-10-15 Bernd Schmidt <bernds@codesourcery.com>
10951 * reload1.c (reloads_unique_chain_p): Ensure that r1 is
10954 2013-10-15 Richard Biener <rguenther@suse.de>
10956 * tree-loop-distribution.c (build_empty_rdg): Inline into
10958 (rdg_flag_vertex): Inline into single user.
10959 (rdg_flag_vertex_and_dependent): Likewise.
10960 (build_rdg_partition_for_vertex): Remove processed bitmap.
10961 (rdg_build_partitions): Simplify.
10963 2013-10-15 Richard Biener <rguenther@suse.de>
10965 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
10966 Restructure forwarding through conversions and copies to
10967 avoid performing copy-propagation the wrong way. Adjust
10968 recursion invocations.
10969 (forward_propagate_addr_expr): Add argument stating if we
10970 are recursing from a single-use.
10971 (ssa_forward_propagate_and_combine): Adjust.
10973 2013-10-14 David Malcolm <dmalcolm@redhat.com>
10975 * dumpfile.h (gcc::dump_manager): New class, to hold state
10976 relating to dumpfile management.
10977 (get_dump_file_name): Remove in favor of method of dump_manager.
10978 (dump_initialized_p): Likewise.
10979 (dump_start): Likewise.
10980 (dump_finish): Likewise.
10981 (dump_switch_p): Likewise.
10982 (dump_register): Likewise.
10983 (get_dump_file_info): Likewise.
10984 * context.c (gcc::context::context): Construct the dump_manager
10986 * context.h (gcc::context::get_dumps): New.
10987 (gcc::context::m_dumps): New.
10988 * coverage.c (coverage_init): Port to dump_manager API.
10989 * dumpfile.c (extra_dump_files): Convert to field of gcc::dump_manager.
10990 (extra_dump_files_in_use): Likewise.
10991 (extra_dump_files_alloced): Likewise.
10992 (gcc::dump_manager::dump_manager): New.
10993 (dump_register): Convert to...
10994 (gcc::dump_manager::dump_register): ...method, replacing
10995 function-static next_dump with m_next_dump field.
10996 (get_dump_file_info): Convert to...
10997 (gcc::dump_manager::get_dump_file_info): ...method.
10998 (get_dump_file_name): Convert to...
10999 (gcc::dump_manager::get_dump_file_name): ...method.
11000 (dump_start): Convert to...
11001 (gcc::dump_manager::dump_start): ...method.
11002 (dump_finish): Convert to...
11003 (gcc::dump_manager::dump_finish): ...method.
11004 (dump_begin): Replace body with...
11005 (gcc::dump_manager::dump_begin): ...new method.
11006 (dump_phase_enabled_p): Convert to...
11007 (gcc::dump_manager::dump_phase_enabled_p): ...method.
11008 (dump_phase_enabled_p): Convert to...
11009 (gcc::dump_manager::dump_phase_enabled_p): ...method.
11010 (dump_initialized_p): Convert to...
11011 (gcc::dump_manager::dump_initialized_p): ...method.
11012 (dump_flag_name): Replace body with...
11013 (gcc::dump_manager::dump_flag_name): ...new method.
11014 (dump_enable_all): Convert to...
11015 (gcc::dump_manager::dump_enable_all): ...new method.
11016 (opt_info_enable_passes): Convert to...
11017 (gcc::dump_manager::opt_info_enable_passes): ...new method.
11018 (dump_switch_p_1): Convert to...
11019 (gcc::dump_manager::dump_switch_p_1): ...new method.
11020 (dump_switch_p): Convert to...
11021 (gcc::dump_manager::dump_switch_p): ...new method.
11022 (opt_info_switch_p): Port to dump_manager API.
11023 (enable_rtl_dump_file): Likewise.
11024 * opts-global.c (handle_common_deferred_options): Port to new
11026 * passes.c (pass_manager::finish_optimization_passes): Likewise.
11027 (pass_manager::register_one_dump_file): Likewise.
11028 (pass_manager::register_pass): Likewise.
11029 (pass_init_dump_file): Likewise.
11030 (pass_fini_dump_file): Likewise.
11031 * statistics.c (statistics_early_init): Likewise.
11033 2013-10-14 Richard Biener <rguenther@suse.de>
11035 * gimple.c (gimple_canonical_types, canonical_type_hash_cache,
11036 iterative_hash_canonical_type, gimple_canonical_type_hash,
11037 gimple_canonical_types_compatible_p, gimple_canonical_type_eq,
11038 gimple_register_canonical_type, print_gimple_types_stats,
11039 free_gimple_type_tables): Move to lto/lto.c
11040 (gt-gimple.h): Do not include.
11041 * gimple.h (gimple_register_canonical_type,
11042 print_gimple_types_stats, free_gimple_type_tables): Remove.
11043 * Makefile.in (GTFILES): Remove gimple.c.
11045 2013-10-14 Travis Snoozy <quandary@remstate.com>
11048 * config/msp430/msp430.c (msp430_option_override): Correct thinko
11049 scanning for msp430x targets.
11051 2013-10-14 Eric Botcazou <ebotcazou@adacore.com>
11054 * config/sparc/sparc-protos.h (widen_mem_for_ldd_peep): Declare.
11055 (registers_ok_for_ldd_peep): Move around.
11056 * config/sparc/sparc.c (widen_mem_for_ldd_peep): New.
11057 * config/sparc/sparc.md (widening peepholes): Use it.
11059 2013-10-14 Richard Biener <rguenther@suse.de>
11061 PR middle-end/58712
11062 PR middle-end/55358
11063 * gimple.c (iterative_hash_canonical_type): Make sure to
11064 record the hash into the correct hashtable slot.
11066 2013-10-13 Eric Botcazou <ebotcazou@adacore.com>
11068 PR rtl-optimization/58662
11069 * combine.c (try_combine): Take into account death nodes on I2 when
11070 splitting a PARALLEL of two independent SETs. Fix dump message.
11072 2013-10-12 Oleg Endo <olegendo@gcc.gnu.org>
11075 * config/sh/sh_treg_combine.cc: New SH specific RTL pass.
11076 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add sh_treg_combine.o to
11078 * config/sh/t-sh (sh_treg_combine.o): New entry.
11079 * config/sh/sh.c (sh_fixed_condition_code_regs): New function that
11080 implements the target hook TARGET_FIXED_CONDITION_CODE_REGS.
11081 (register_sh_passes): New function. Register sh_treg_combine pass.
11082 (sh_option_override): Invoke it.
11083 (sh_canonicalize_comparison): Handle op0_preserve_value.
11084 * sh.md (*cbranch_t"): Do not try to optimize missed test and branch
11085 opportunities. Canonicalize branch condition.
11086 (nott): Allow only if pseudos can be created for non-SH2A.
11088 2013-10-12 H.J. Lu <hongjiu.lu@intel.com>
11091 * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
11092 (ix86_expand_movmem): Replace copy_addr_to_reg with
11093 ix86_copy_addr_to_reg.
11094 (ix86_expand_setmem): Likewise.
11096 2013-10-12 Alexander Monakov <amonakov@ispras.ru>
11098 * config/i386/i386.c (ix86_expand_sse_compare_and_jump): Use mode
11099 provided by ix86_fp_compare_mode instead of CCFPUmode.
11101 2013-10-12 James Greenhalgh <james.greenhalgh@arm.com>
11103 * config/aarch64/arm_neon.h
11104 (vtbx<1,3>_<psu>8): Fix register constriants.
11106 2013-10-11 Jeff Law <law@redhat.com>
11108 PR tree-optimization/58640
11109 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
11110 threading paths that cross over two loop entry points.
11112 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11114 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): Generalize to
11115 handle vector float as well.
11116 (*vsx_le_perm_load_v4si): Likewise.
11117 (*vsx_le_perm_store_v2di): Likewise.
11118 (*vsx_le_perm_store_v4si): Likewise.
11120 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11122 * config/rs6000/vector.md (vec_realign_load<mode>): Generate vperm
11123 directly to circumvent subtract from splat{31} workaround.
11124 * config/rs6000/rs6000-protos.h (altivec_expand_vec_perm_le): New
11126 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): New.
11127 * config/rs6000/altivec.md (define_c_enum "unspec"): Add
11128 UNSPEC_VPERM_X and UNSPEC_VPERM_UNS_X.
11129 (altivec_vperm_<mode>): Convert to define_insn_and_split to
11130 separate big and little endian logic.
11131 (*altivec_vperm_<mode>_internal): New define_insn.
11132 (altivec_vperm_<mode>_uns): Convert to define_insn_and_split to
11133 separate big and little endian logic.
11134 (*altivec_vperm_<mode>_uns_internal): New define_insn.
11135 (vec_permv16qi): Add little endian logic.
11137 2013-10-11 Marc Glisse <marc.glisse@inria.fr>
11139 * doc/extend.texi (returns_nonnull): Remove arguments.
11141 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11142 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11143 Sergey Lega <sergey.s.lega@intel.com>
11144 Anna Tikhonova <anna.tikhonova@intel.com>
11145 Ilya Tocar <ilya.tocar@intel.com>
11146 Andrey Turetskiy <andrey.turetskiy@intel.com>
11147 Ilya Verbin <ilya.verbin@intel.com>
11148 Kirill Yukhin <kirill.yukhin@intel.com>
11149 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11151 * config/i386/sse.md (VI48F_256_512): New.
11152 (avx2_permvar<mode>): Change to ...
11153 (<avx2_avx512f>_permvar<mode>): This.
11155 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11156 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11157 Sergey Lega <sergey.s.lega@intel.com>
11158 Anna Tikhonova <anna.tikhonova@intel.com>
11159 Ilya Tocar <ilya.tocar@intel.com>
11160 Andrey Turetskiy <andrey.turetskiy@intel.com>
11161 Ilya Verbin <ilya.verbin@intel.com>
11162 Kirill Yukhin <kirill.yukhin@intel.com>
11163 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11165 * config/i386/i386.c (bdesc_args): Change corresponding pattern for
11166 __builtin_ia32_cvtps2dq, __builtin_ia32_cvtps2dq256.
11167 * config/i386/sse.md (VI4_AVX): New.
11168 (sf2simodelower): Ditto.
11169 (sse2_cvtps2dq): Change to ...
11170 (<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode>): This.
11172 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11173 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11174 Sergey Lega <sergey.s.lega@intel.com>
11175 Anna Tikhonova <anna.tikhonova@intel.com>
11176 Ilya Tocar <ilya.tocar@intel.com>
11177 Andrey Turetskiy <andrey.turetskiy@intel.com>
11178 Ilya Verbin <ilya.verbin@intel.com>
11179 Kirill Yukhin <kirill.yukhin@intel.com>
11180 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11182 * config/i386/sse.md (V_512): New.
11184 (vcond<V_512:mode><VF_512:mode>): Ditto.
11185 (vcond<V_512:mode><VI_512:mode>): Ditto.
11186 (vcondu<V_512:mode><VI_512:mode>): Ditto.
11188 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11189 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11190 Sergey Lega <sergey.s.lega@intel.com>
11191 Anna Tikhonova <anna.tikhonova@intel.com>
11192 Ilya Tocar <ilya.tocar@intel.com>
11193 Andrey Turetskiy <andrey.turetskiy@intel.com>
11194 Ilya Verbin <ilya.verbin@intel.com>
11195 Kirill Yukhin <kirill.yukhin@intel.com>
11196 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11198 * config/i386/i386.c (ix86_rtx_costs): Enable fma for TARGET_AVX512F.
11199 * config/i386/sse.md (FMAMODEM): Changed modes and conditions.
11201 (fma<mode>4): Removed condition.
11202 (fms<mode>4): Ditto.
11203 (fnma<mode>4): Ditto.
11204 (fnms<mode>4): Ditto.
11205 (fma4i_fmadd_<mode>): Ditto.
11206 (*fma_fmadd_<mode>): Ditto.
11207 (*fma_fmsub_<mode>): Ditto.
11208 (*fma_fnmadd_<mode>): Ditto.
11209 (*fma_fnmsub_<mode>): Ditto.
11210 (fmaddsub_<mode>): Allow for TARGET_AVX512F.
11211 (*fma_fmaddsub_<mode>): Ditto.
11212 (*fma_fmsubadd_<mode>): Ditto.
11213 (*fmai_fmadd_<mode>): Ditto.
11214 (*fmai_fmsub_<mode>): Ditto.
11215 (*fmai_fnmadd_<mode>): Ditto.
11216 (*fmai_fnmsub_<mode>): Ditto.
11218 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11219 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11220 Sergey Lega <sergey.s.lega@intel.com>
11221 Anna Tikhonova <anna.tikhonova@intel.com>
11222 Ilya Tocar <ilya.tocar@intel.com>
11223 Andrey Turetskiy <andrey.turetskiy@intel.com>
11224 Ilya Verbin <ilya.verbin@intel.com>
11225 Kirill Yukhin <kirill.yukhin@intel.com>
11226 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11228 * config/i386/sse.md (VI248_AVX2_8_AVX512F): New.
11229 (VI124_256): Changed to ...
11230 (VI124_256_48_512): This.
11231 (ssepackmode): Extended with wider modes.
11232 (<code><mode>3): Changed iterator.
11233 (*avx2_<code><mode>3): Ditto.
11234 (vec_pack_trunc_<mode>): Ditto.
11236 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11237 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11238 Sergey Lega <sergey.s.lega@intel.com>
11239 Anna Tikhonova <anna.tikhonova@intel.com>
11240 Ilya Tocar <ilya.tocar@intel.com>
11241 Andrey Turetskiy <andrey.turetskiy@intel.com>
11242 Ilya Verbin <ilya.verbin@intel.com>
11243 Kirill Yukhin <kirill.yukhin@intel.com>
11244 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11246 * config/i386/sse.md (VI124_AVX2_48_AVX512F): New.
11247 (VI8F_256_512): Ditto.
11248 (abs<mode>2): Changed iterator.
11249 (avx2_perm<mode>): Changed to ...
11250 (<avx2_avx512f>_perm<mode>): This.
11251 (avx2_perm<mode>_1): Changed to ...
11252 (<avx2_avx512f>_perm<mode>_1): This.
11254 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11255 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11256 Sergey Lega <sergey.s.lega@intel.com>
11257 Anna Tikhonova <anna.tikhonova@intel.com>
11258 Ilya Tocar <ilya.tocar@intel.com>
11259 Andrey Turetskiy <andrey.turetskiy@intel.com>
11260 Ilya Verbin <ilya.verbin@intel.com>
11261 Kirill Yukhin <kirill.yukhin@intel.com>
11262 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11264 * config/i386/sse.md (VI48_AVX512F): New.
11265 (VI48_AVX2): Changed to ...
11266 (VI48_AVX2_48_AVX512F): This.
11267 (avx2_ashrv<mode>): Changed to ...
11268 (<avx2_avx512f>_ashrv<mode>): This.
11269 (avx2_<shift_insn>v<mode>): Changed to ...
11270 (<avx2_avx512f>_<shift_insn>v<mode>): This.
11272 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11273 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11274 Sergey Lega <sergey.s.lega@intel.com>
11275 Anna Tikhonova <anna.tikhonova@intel.com>
11276 Ilya Tocar <ilya.tocar@intel.com>
11277 Andrey Turetskiy <andrey.turetskiy@intel.com>
11278 Ilya Verbin <ilya.verbin@intel.com>
11279 Kirill Yukhin <kirill.yukhin@intel.com>
11280 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11282 * config/i386/sse.md (VI4_AVX512F): New.
11283 (VI8_AVX2_AVX512F): Ditto.
11284 (mul<mode>3): Extended with wider modes.
11285 (*<sse4_1_avx2>_mul<mode>3): Ditto.
11286 (mul<mode>3): Ditto.
11287 (vec_widen_<s>mult_odd_<mode>): Ditto.
11289 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11290 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11291 Sergey Lega <sergey.s.lega@intel.com>
11292 Anna Tikhonova <anna.tikhonova@intel.com>
11293 Ilya Tocar <ilya.tocar@intel.com>
11294 Andrey Turetskiy <andrey.turetskiy@intel.com>
11295 Ilya Verbin <ilya.verbin@intel.com>
11296 Kirill Yukhin <kirill.yukhin@intel.com>
11297 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11299 * config/i386/sse.md (VI2_AVX512F): New.
11300 (VI124_AVX512F): Ditto.
11301 (sseunpackmode): Extended with wider modes.
11302 (sseunpackfltmode): Ditto.
11303 (vec_unpacks_float_hi_<mode>): Ditto.
11304 (vec_unpacks_float_lo_<mode>): Ditto.
11305 (vec_unpacku_float_hi_<mode>): Ditto.
11306 (vec_unpacku_float_lo_<mode>): Ditto.
11307 (vec_unpacks_lo_<mode>): Ditto.
11308 (vec_unpacks_hi_<mode>): Ditto.
11309 (vec_unpacku_lo_<mode>): Ditto.
11310 (vec_unpacku_hi_<mode>): Ditto.
11312 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11313 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11314 Sergey Lega <sergey.s.lega@intel.com>
11315 Anna Tikhonova <anna.tikhonova@intel.com>
11316 Ilya Tocar <ilya.tocar@intel.com>
11317 Andrey Turetskiy <andrey.turetskiy@intel.com>
11318 Ilya Verbin <ilya.verbin@intel.com>
11319 Kirill Yukhin <kirill.yukhin@intel.com>
11320 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11322 * config/i386/i386.md (multdiv): New.
11323 (multdiv_mnemonic): Ditto.
11324 * config/i386/sse.md (<sse>_vmmul<mode>3): Changed to...
11325 (<sse>_vm<multdiv_mnemonic><mode>3): This.
11326 (<sse>_vmdiv<mode>3): Removed.
11328 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11329 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11330 Sergey Lega <sergey.s.lega@intel.com>
11331 Anna Tikhonova <anna.tikhonova@intel.com>
11332 Ilya Tocar <ilya.tocar@intel.com>
11333 Andrey Turetskiy <andrey.turetskiy@intel.com>
11334 Ilya Verbin <ilya.verbin@intel.com>
11335 Kirill Yukhin <kirill.yukhin@intel.com>
11336 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11338 * config/i386/sse.md (V): Extended with wider modes.
11340 (ssehalfvecmode): Ditto.
11342 (ssepackfltmode): Ditto.
11343 (avx_vec_concat<mode>): Ditto.
11344 (V_256_512): New iterator.
11345 (VF2_512_256): Ditto.
11346 (si2dfmode): New attribute.
11347 (si2dfmodelower): Ditto.
11348 (sf2dfmode): Ditto.
11349 (concat_tg_mode): Ditto.
11350 (floatv4siv4df2): Changed to ...
11351 (float<si2dfmodelower><mode>2): This.
11352 (avx_cvtps2pd256): Changed to ...
11353 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix>): This.
11354 (vec_pack_trunc_v4df): Changed to ...
11355 (vec_pack_trunc_<mode>): This.
11356 (avx_vpermil<mode>): Changed to ...
11357 (<sse2_avx_avx512f>_vpermil<mode>): This.
11358 (<fixsuffix>fix_truncv8dfv8si2): New.
11359 (vec_pack_sfix_trunc_v8df): Ditto.
11360 (avx512f_rndscale<mode>): Ditto.
11361 (avx512f_roundpd512): Ditto.
11362 (vec_pack_ufix_trunc_<mode>): Updated iterator.
11364 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11365 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11366 Sergey Lega <sergey.s.lega@intel.com>
11367 Anna Tikhonova <anna.tikhonova@intel.com>
11368 Ilya Tocar <ilya.tocar@intel.com>
11369 Andrey Turetskiy <andrey.turetskiy@intel.com>
11370 Ilya Verbin <ilya.verbin@intel.com>
11371 Kirill Yukhin <kirill.yukhin@intel.com>
11372 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11374 * config/i386/i386.md (any_fix): New iterator.
11375 (fixsuffix): New attribute.
11376 * config/i386/sse.md (VF1): Extened with wider modes.
11380 (sseintvecmodelower): Ditto.
11381 (ssescalarmode): Ditto.
11382 (ssescalarnum): Ditto.
11383 (VF1_128_256): New.
11384 (ssexmmmode): Ditto.
11385 (<fixsuffix>fix_truncv16sfv16si2): Ditto.
11386 (<sse>_rcp<mode>2): Change iterator.
11387 (rsqrt<mode>2): Ditto.
11388 (<sse>_rsqrt<mode>2): Ditto.
11389 (avx2_vec_dup<mode>): Ditto.
11390 (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
11391 (round<mode>2_sfix): Ditto.
11392 (avx2_pbroadcast<mode>): Ditto.
11393 (*andnot<mode>3): Handle XI mode.
11394 (*<code><mode>3): Ditto.
11395 (AVXTOSSEMODE): Removed.
11396 (avx_vpermil<mode>): Changed to ...
11397 (<sse2_avx_avx512f>_vpermil<mode>): This.
11399 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11400 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11401 Sergey Lega <sergey.s.lega@intel.com>
11402 Anna Tikhonova <anna.tikhonova@intel.com>
11403 Ilya Tocar <ilya.tocar@intel.com>
11404 Andrey Turetskiy <andrey.turetskiy@intel.com>
11405 Ilya Verbin <ilya.verbin@intel.com>
11406 Kirill Yukhin <kirill.yukhin@intel.com>
11407 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11409 * config/i386/sse.md (<sse2>_movnt<mode>): Update constraint to "v".
11410 (<sse>_comi): Ditto.
11411 (<sse>_ucomi): Ditto.
11412 (sse_cvtss2siq_2): Ditto.
11413 (sse2_cvtsd2si): Ditto.
11414 (sse2_cvtsd2siq): Ditto.
11415 (sse2_cvttsd2si): Ditto.
11416 (sse2_cvttsd2siq): Ditto.
11417 (<shift_insn><mode>3): Ditto.
11418 (sse2_cvtsi2sdq): Update constraint and prefix.
11419 (sse_cvtsi2ss): Update prefix.
11420 (sse_cvtsi2ssq): Ditto.
11422 2013-10-11 Jakub Jelinek <jakub@redhat.com>
11424 * tree-vrp.c (infer_nonnull_range): Use is_gimple_call,
11425 ignore internal calls.
11427 2013-10-11 Richard Biener <rguenther@suse.de>
11429 * tree-pretty-print.c (dump_generic_node): Allow to dump both (D)
11430 and (ab) for SSA_NAMEs. Mark INTEGER_CSTs with (OVF) if
11431 TREE_OVERFLOW is set.
11433 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
11435 * tree.h (OMP_CLAUSE_CODE): Remove duplicate definition.
11437 * gimple.c: GIMPLE statements have subcodes, not sub-codes.
11438 * gimple.h: Likewise.
11440 * doc/generic.texi (OpenMP): OMP_CLAUSE_* are subcodes, not sub-codes.
11442 * doc/generic.texi (Adding new DECL node types): Explain *_CHECK
11445 * doc/gimple.texi (is_gimple_omp): Move into the correct section.
11447 * acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags overrides.
11448 * configure: Regenerate.
11450 2013-10-11 Jakub Jelinek <jakub@redhat.com>
11452 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__LOOPTEMP_
11453 and new OpenMP 4.0 clauses, handle UDR OMP_CLAUSE_REDUCTION,
11454 formatting fixes, use pp_colon instead of pp_character (..., ':'),
11455 similarly pp_right_paren.
11456 (dump_generic_node): Handle OMP_DISTRIBUTE, OMP_TEAMS,
11457 OMP_TARGET_DATA, OMP_TARGET, OMP_TARGET_UPDATE, OMP_TASKGROUP,
11458 allow OMP_FOR_INIT to be NULL, handle OMP_ATOMIC_SEQ_CST.
11459 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add OpenMP 4.0
11461 (omp_declare_simd_clauses_equal,
11462 omp_remove_redundant_declare_simd_attrs): New functions.
11463 (attribute_value_equal): Use omp_declare_simd_clauses_equal.
11464 (walk_tree_1): Handle new OpenMP 4.0 clauses.
11465 * tree.h (OMP_LOOP_CHECK): Define.
11466 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
11467 OMP_FOR_INCR, OMP_FOR_PRE_BODY): Use it.
11468 (OMP_TASKGROUP_BODY, OMP_TEAMS_BODY, OMP_TEAMS_CLAUSES,
11469 OMP_TARGET_DATA_BODY, OMP_TARGET_DATA_CLAUSES, OMP_TARGET_BODY,
11470 OMP_TARGET_CLAUSES, OMP_TARGET_UPDATE_CLAUSES, OMP_CLAUSE_SIZE,
11471 OMP_ATOMIC_SEQ_CST, OMP_CLAUSE_DEPEND_KIND, OMP_CLAUSE_MAP_KIND,
11472 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION, OMP_CLAUSE_PROC_BIND_KIND,
11473 OMP_CLAUSE_REDUCTION_OMP_ORIG_REF, OMP_CLAUSE_ALIGNED_ALIGNMENT,
11474 OMP_CLAUSE_NUM_TEAMS_EXPR, OMP_CLAUSE_THREAD_LIMIT_EXPR,
11475 OMP_CLAUSE_DEVICE_ID, OMP_CLAUSE_DIST_SCHEDULE_CHUNK_EXPR,
11476 OMP_CLAUSE_SIMDLEN_EXPR): Define.
11477 (OMP_CLAUSE_DECL): Change range up to OMP_CLAUSE__LOOPTEMP_.
11478 (omp_remove_redundant_declare_simd_attrs): New prototype.
11479 * gimple.def (GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET,
11480 GIMPLE_OMP_TEAMS): New codes.
11481 (GIMPLE_OMP_RETURN): Use GSS_OMP_ATOMIC_STORE instead of GSS_BASE.
11482 * omp-low.c (struct omp_context): Add cancel_label and cancellable
11484 (target_nesting_level): New variable.
11485 (extract_omp_for_data): Handle GF_OMP_FOR_KIND_DISTRIBUTE and
11486 OMP_CLAUSE_DIST_SCHEDULE. Don't fallback to library implementation
11487 for collapse > 1 static schedule unless ordered.
11488 (get_ws_args_for): Add par_stmt argument. Handle combined loops.
11489 (determine_parallel_type): Adjust get_ws_args_for caller.
11490 (install_var_field): Handle mask & 4 for double indirection.
11491 (scan_sharing_clauses): Ignore shared clause on teams construct.
11492 Handle OMP_CLAUSE__LOOPTEMP_ and new OpenMP 4.0 clauses.
11493 (create_omp_child_function): If inside target or declare target
11494 constructs, set "omp declare target" attribute on the child function.
11495 (find_combined_for): New function.
11496 (scan_omp_parallel): Handle combined loops.
11497 (scan_omp_target, scan_omp_teams): New functions.
11498 (check_omp_nesting_restrictions): Check new OpenMP 4.0 nesting
11499 restrictions and set ctx->cancellable for cancellable constructs.
11500 (scan_omp_1_stmt): Call check_omp_nesting_restrictions also on
11501 selected builtin calls. Handle GIMPLE_OMP_TASKGROUP,
11502 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS.
11503 (build_omp_barrier): Add lhs argument, return gimple rather than tree.
11504 (omp_clause_aligned_alignment): New function.
11505 (lower_rec_simd_input_clauses): Only call SET_DECL_VALUE_EXPR on decls.
11506 (lower_rec_input_clauses): Add FD argument. Ignore shared clauses
11507 on teams constructs. Handle user defined reductions and new
11508 OpenMP 4.0 clauses.
11509 (lower_reduction_clauses): Don't set placeholder to address of ref
11510 if it has already the right type.
11511 (lower_send_clauses): Handle OMP_CLAUSE__LOOPTEMP_.
11512 (expand_parallel_call): Use the new non-_start suffixed builtins,
11513 handle OMP_CLAUSE_PROC_BIND, don't call the outlined function
11514 and GOMP_parallel_end after the call.
11515 (expand_task_call): Handle OMP_CLAUSE_DEPEND.
11516 (expand_omp_for_init_counts): Handle combined loops.
11517 (expand_omp_for_init_vars): Add inner_stmt argument, handle combined
11519 (expand_omp_for_generic): Likewise. Use GOMP_loop_end_cancel at the
11520 end of cancellable loops.
11521 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
11522 Likewise. Handle collapse > 1 loops.
11523 (expand_omp_simd): Handle combined loops.
11524 (expand_omp_for): Add inner_stmt argument, adjust callers of
11525 expand_omp_for* functions, use expand_omp_for_static*chunk even
11526 for collapse > 1 unless ordered.
11527 (expand_omp_sections): Use GOMP_sections_end_cancel at the end
11528 of cancellable sections.
11529 (expand_omp_single): Remove need_barrier variable, just rely on
11530 gimple_omp_return_nowait_p. Adjust build_omp_barrier caller.
11531 (expand_omp_synch): Allow GIMPLE_OMP_TASKGROUP and GIMPLE_OMP_TEAMS.
11532 (expand_omp_atomic_load, expand_omp_atomic_store,
11533 expand_omp_atomic_fetch_op): Handle gimple_omp_atomic_seq_cst_p.
11534 (expand_omp_target): New function.
11535 (expand_omp): Handle combined loops. Handle GIMPLE_OMP_TASKGROUP,
11536 GIMPLE_OMP_TEAMS, GIMPLE_OMP_TARGET.
11537 (build_omp_regions_1): Immediately close region for
11538 GF_OMP_TARGET_KIND_UPDATE.
11539 (maybe_add_implicit_barrier_cancel): New function.
11540 (lower_omp_sections): Adjust lower_rec_input_clauses caller. Handle
11542 (lower_omp_single): Likewise. Add clobber after the barrier.
11543 (lower_omp_taskgroup): New function.
11544 (lower_omp_for): Handle combined loops. Adjust
11545 lower_rec_input_clauses caller. Handle cancellation.
11546 (lower_depend_clauses): New function.
11547 (lower_omp_taskreg): Lower depend clauses. Adjust
11548 lower_rec_input_clauses caller. Add clobber after the call. Handle
11550 (lower_omp_target, lower_omp_teams): New functions.
11551 (lower_omp_1): Handle cancellation. Handle GIMPLE_OMP_TASKGROUP,
11552 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GOMP_barrier, GOMP_cancel
11553 and GOMP_cancellation_point calls.
11554 (lower_omp): Fold stmts inside of target region.
11555 (diagnose_sb_1, diagnose_sb_2): Handle GIMPLE_OMP_TASKGROUP,
11556 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
11557 * builtin-types.def (DEF_FUNCTION_TYPE_8): Document.
11558 (BT_FN_VOID_OMPFN_PTR_UINT,
11559 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
11560 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG,
11561 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): Remove.
11562 (BT_FN_VOID_OMPFN_PTR_UINT_UINT_UINT,
11563 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_UINT,
11564 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT,
11565 BT_FN_BOOL_INT, BT_FN_BOOL_INT_BOOL, BT_FN_VOID_UINT_UINT,
11566 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
11567 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
11568 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): New.
11569 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
11570 call_may_clobber_ref_p_1): Handle BUILT_IN_GOMP_BARRIER_CANCEL,
11571 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_LOOP_END_CANCEL,
11572 BUILT_IN_GOMP_SECTIONS_END_CANCEL. Don't handle
11573 BUILT_IN_GOMP_PARALLEL_END.
11574 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_TASKGROUP,
11575 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
11576 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
11577 GF_OMP_FOR_KIND_DISTRIBUTE.
11578 (dump_gimple_omp_target, dump_gimple_omp_teams): New functions.
11579 (dump_gimple_omp_block): Handle GIMPLE_OMP_TASKGROUP.
11580 (dump_gimple_omp_return): Print lhs if it has any.
11581 (dump_gimple_omp_atomic_load, dump_gimple_omp_atomic_store): Handle
11582 gimple_omp_atomic_seq_cst_p.
11583 (pp_gimple_stmt_1): Handle GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET
11584 and GIMPLE_OMP_TEAMS.
11585 * langhooks.c (lhd_omp_mappable_type): New function.
11586 * tree-vectorizer.c (struct simd_array_to_simduid): Fix up comment.
11587 * langhooks.h (struct lang_hooks_for_types): Add omp_mappable_type
11589 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP,
11590 GOVD_ALIGNED and GOVD_MAP_TO_ONLY.
11591 (enum omp_region_type): Add ORT_TEAMS, ORT_TARGET_DATA and ORT_TARGET.
11592 (struct gimplify_omp_ctx): Add combined_loop field.
11593 (gimplify_call_expr, gimplify_modify_expr): Don't call fold_stmt
11594 on stmts inside of target region.
11595 (is_gimple_stmt): Return true for OMP_DISTRIBUTE and OMP_TASKGROUP.
11596 (omp_firstprivatize_variable): Handle GOVD_MAP, GOVD_ALIGNED,
11597 ORT_TARGET and ORT_TARGET_DATA.
11598 (omp_add_variable): Avoid checks on readding var for GOVD_ALIGNED.
11600 (omp_notice_threadprivate_variable): Complain about threadprivate
11601 variables in target region.
11602 (omp_notice_variable): Complain about vars with non-mappable type
11603 in target region. Handle ORT_TEAMS, ORT_TARGET and ORT_TARGET_DATA.
11604 (omp_check_private): Ignore ORT_TARGET* regions.
11605 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1,
11606 gimplify_adjust_omp_clauses): Handle new OpenMP 4.0 clauses.
11607 (find_combined_omp_for): New function.
11608 (gimplify_omp_for): Handle gimplification of combined loops.
11609 (gimplify_omp_workshare): Gimplify also OMP_TARGET, OMP_TARGET_DATA,
11611 (gimplify_omp_target_update): New function.
11612 (gimplify_omp_atomic): Handle OMP_ATOMIC_SEQ_CST.
11613 (gimplify_expr): Handle OMP_DISTRIBUTE, OMP_TARGET, OMP_TARGET_DATA,
11614 OMP_TARGET_UPDATE, OMP_TEAMS, OMP_TASKGROUP.
11615 (gimplify_body): If fndecl has "omp declare target" attribute, add
11616 implicit ORT_TARGET context around it.
11617 * tree.def (OMP_DISTRIBUTE, OMP_TEAMS, OMP_TARGET_DATA, OMP_TARGET,
11618 OMP_TASKGROUP, OMP_TARGET_UPDATE): New tree codes.
11619 * tree-nested.c (convert_nonlocal_reference_stmt,
11620 convert_local_reference_stmt, convert_gimple_call): Handle
11621 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
11622 * omp-builtins.def (BUILT_IN_GOMP_TASK): Use
11623 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR
11624 instead of BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT.
11625 (BUILT_IN_GOMP_TARGET, BUILT_IN_GOMP_TARGET_DATA,
11626 BUILT_IN_GOMP_TARGET_END_DATA, BUILT_IN_GOMP_TARGET_UPDATE,
11627 BUILT_IN_GOMP_TEAMS, BUILT_IN_BARRIER_CANCEL,
11628 BUILT_IN_GOMP_LOOP_END_CANCEL,
11629 BUILT_IN_GOMP_SECTIONS_END_CANCEL, BUILT_IN_OMP_GET_TEAM_NUM,
11630 BUILT_IN_OMP_GET_NUM_TEAMS, BUILT_IN_GOMP_TASKGROUP_START,
11631 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_PARALLEL_LOOP_STATIC,
11632 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC,
11633 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED,
11634 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME, BUILT_IN_GOMP_PARALLEL,
11635 BUILT_IN_GOMP_PARALLEL_SECTIONS, BUILT_IN_GOMP_CANCEL,
11636 BUILT_IN_GOMP_CANCELLATION_POINT): New built-ins.
11637 (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
11638 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
11639 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
11640 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
11641 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
11642 BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Remove.
11643 * tree-inline.c (remap_gimple_stmt, estimate_num_insns):
11644 Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
11645 * gimple.c (gimple_build_omp_taskgroup, gimple_build_omp_target,
11646 gimple_build_omp_teams): New functions.
11647 (walk_gimple_op): Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and
11648 GIMPLE_OMP_TASKGROUP. Walk optional lhs on GIMPLE_OMP_RETURN.
11649 (walk_gimple_stmt, gimple_copy): Handle GIMPLE_OMP_TARGET,
11650 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
11651 * gimple.h (enum gf_mask): GF_OMP_FOR_KIND_DISTRIBUTE,
11652 GF_OMP_FOR_COMBINED, GF_OMP_FOR_COMBINED_INTO,
11653 GF_OMP_TARGET_KIND_MASK, GF_OMP_TARGET_KIND_REGION,
11654 GF_OMP_TARGET_KIND_DATA, GF_OMP_TARGET_KIND_UPDATE,
11655 GF_OMP_ATOMIC_SEQ_CST): New.
11656 (gimple_build_omp_taskgroup, gimple_build_omp_target,
11657 gimple_build_omp_teams): New prototypes.
11658 (gimple_has_substatements): Handle GIMPLE_OMP_TARGET,
11659 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
11660 (gimple_omp_subcode): Use GIMPLE_OMP_TEAMS instead of
11661 GIMPLE_OMP_SINGLE as end of range.
11662 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
11663 gimple_omp_return_lhs_ptr, gimple_omp_atomic_seq_cst_p,
11664 gimple_omp_atomic_set_seq_cst, gimple_omp_for_combined_p,
11665 gimple_omp_for_set_combined_p, gimple_omp_for_combined_into_p,
11666 gimple_omp_for_set_combined_into_p, gimple_omp_target_clauses,
11667 gimple_omp_target_clauses_ptr, gimple_omp_target_set_clauses,
11668 gimple_omp_target_kind, gimple_omp_target_set_kind,
11669 gimple_omp_target_child_fn, gimple_omp_target_child_fn_ptr,
11670 gimple_omp_target_set_child_fn, gimple_omp_target_data_arg,
11671 gimple_omp_target_data_arg_ptr, gimple_omp_target_set_data_arg,
11672 gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr,
11673 gimple_omp_teams_set_clauses): New inlines.
11674 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS
11675 and GIMPLE_OMP_TASKGROUP.
11676 * tree-core.h (enum omp_clause_code): Add new OpenMP 4.0 clause codes.
11677 (enum omp_clause_depend_kind, enum omp_clause_map_kind,
11678 enum omp_clause_proc_bind_kind): New.
11679 (union omp_clause_subcode): Add depend_kind, map_kind and
11680 proc_bind_kind fields.
11681 * tree-cfg.c (make_edges): Handle GIMPLE_OMP_TARGET,
11682 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
11683 * langhooks-def.h (lhd_omp_mappable_type): New prototype.
11684 (LANG_HOOKS_OMP_MAPPABLE_TYPE): Define.
11685 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
11687 2013-10-10 Teresa Johnson <tejohnson@google.com>
11689 * predict.c (tree_estimate_probability): Add new parameter
11690 for estimate_bb_frequencies.
11691 (estimate_bb_frequencies): Add new parameter to force estimation.
11692 (rebuild_frequencies): When max frequency in function is small,
11693 recompute counts from frequencies.
11694 * predict.h (estimate_bb_frequencies): New parameter.
11696 2013-10-10 David Malcolm <dmalcolm@redhat.com>
11698 * ipa-inline.c (ipa_inline): Fix leak of "order" when
11699 optimizations are disabled.
11701 2013-10-10 David Malcolm <dmalcolm@redhat.com>
11703 * coverage.c (coverage_finish): Fix leak of da_file_name.
11705 2013-10-10 Jan Hubicka <jh@suse.cz>
11707 * config/i386/x86-tune.def: Enable X86_TUNE_SSE_TYPELESS_STORES
11708 for generic, enable X86_TUNE_SSE_LOAD0_BY_PXOR for Bulldozer,
11709 Bobcat and generic.
11711 2013-10-10 Jakub Jelinek <jakub@redhat.com>
11713 PR middle-end/58670
11714 * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
11715 if any labels are in FALLTHRU_BB, use a special label emitted
11716 immediately after the asm goto insn rather than label_rtx
11718 (expand_asm_stmt): Adjust caller.
11719 * cfgrtl.c (commit_one_edge_insertion): Force splitting of
11720 edge if the last insn in predecessor is a jump with single successor,
11721 but it isn't simplejump_p.
11723 2013-10-10 Richard Biener <rguenther@suse.de>
11725 PR tree-optimization/58656
11726 * tree-ssa-pre.c (phi_translate): Do not cache failed translations.
11728 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
11730 * gimplify.c: Include expr.h and tm_p.h for targets with special
11731 va-arg padding requirements.
11733 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
11735 * tree-flow.h: Move some prototypes to gimple.h.
11736 (gimple_fold_indirect_ref): Move prototype to gimple-fold.h.
11737 * gimple.h: Relocate some prototypes from tree-flow.h
11738 * builtins.c (std_gimplify_va_arg_expr, build_va_arg_indirect_ref):
11739 Move to gimplify.c.
11740 * gimplify.c (gimple_fold_indirect_ref): Move to gimple-fold.c.
11741 (build_va_arg_indirect_ref): Relocate and make static.
11742 (std_gimplify_va_arg_expr): Relocate here.
11743 * gimple-fold.c (gimple_fold_indirect_ref): Relocate here.
11744 * gimple-fold.h (gimple_fold_indirect_ref): Add prototype.
11746 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11748 * doc/md.texi: Document the mnemonic attribute.
11750 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11753 * gensupport.c (gen_mnemonic_attr): Handle (set (attr x) y) and
11754 (set_attr_alternative x ...) when searching for user defined
11755 mnemonic attribute.
11757 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
11759 * config/aplha/alpha.c: Add gimple-ssa.h to include list.
11761 2013-10-09 Easwaran Raman <eraman@google.com>
11763 * params.def (PARAM_MIN_SIZE_FOR_STACK_SHARING): New param...
11764 * cfgexpand.c (defer_stack_allocation): ...use here
11765 * doc/invoke.texi: Add documentation for min-size-for-stack-sharing.
11767 2013-10-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
11769 * tree-ssa-phiopts.c (rhs_is_fed_for_value_replacement): New function.
11770 (operand_equal_for_value_replacement): New function, extracted from
11771 value_replacement and enhanced to catch more cases.
11772 (value_replacement): Use operand_equal_for_value_replacement.
11774 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
11776 * loop-doloop.c (doloop_modify, doloop_optimize): Use
11777 get_max_loop_iterations.
11779 2013-10-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11781 * config/arm/aarch-common.c (arm_early_load_addr_dep):
11782 Place comment above function.
11784 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
11786 * tree-flow.h: Remove all remaining prototypes, enums and structs that
11787 are not related to tree-cfg.c.
11788 * tree-ssa-address.h: New file. Relocate prototypes.
11789 * tree-ssa-address.c: (struct mem_address): Relocate from tree-flow.h.
11790 (addr_for_mem_ref): New. Combine call to get_address_description and
11791 return addr_for_mem_ref.
11792 * expr.c (expand_expr_real_1): Use new addr_for_mem_ref routine.
11793 * tree-ssa-live.h: Adjust prototypes.
11794 * passes.c: Include tree-ssa-live.h.
11795 * gimple-pretty-print.h (gimple_dump_bb): Add prototype.
11796 * graphite.c (graphite_transform_loops): Make static.
11797 (graphite_transforms, gate_graphite_transforms, pass_data_graphite,
11798 make_pass_graphite, pass_data_graphite_transforms,
11799 make_pass_graphite_transforms): Relocate here from tree-ssa-loop.c.
11800 * ipa-pure-const.c (warn_function_noreturn): Make static.
11801 (execute_warn_function_noreturn, gate_warn_function_noreturn,
11802 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
11803 Relocate from tree-cfg.c
11804 * tree-cfg.c (tree_node_can_be_shared, gimple_empty_block_p): Make
11806 (execute_warn_function_noreturn, gate_warn_function_noreturn,
11807 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
11808 Move to ipa-pure-const.c.
11809 (execute_fixup_cfg, class pass_fixup_cfg, make_pass_fixup_cfg):
11810 Relocate from tree-optimize.c.
11811 * tree-optimize.c (execute_fixup_cfg, class pass_fixup_cfg,
11812 make_pass_fixup_cfg): Move to tree-cfg.c.
11813 * tree-chrec.h: (enum ev_direction): Relocate here from tree-flow.h.
11814 Relocate some prototypes.
11815 * tree-data-ref.h (tree_check_data_deps) Add prototype.
11816 * tree-dump.c (dump_function_to_file): Remove prototype.
11817 Add tree-flow.h to the include file.
11818 * tree-dump.h: Remove prototype.
11819 * tree-parloops.h: New File. Add prototypes.
11820 * tree-parloops.c (gate_tree_parallelize_loops, tree_parallelize_loops,
11821 pass_data_parallelize_loops, make_pass_parallelize_loops): Relocate
11822 from tree-ssa-loop.c.
11823 * tree-predcom.c (run_tree_predictive_commoning,
11824 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom):
11825 Relocate here from tree-ssa-loop.c.
11826 * tree-ssa-dom.c (tree_ssa_dominator_optimize) Don't call
11827 ssa_name_values.release ().
11828 * tree-ssa-threadedge.h: New File. Relocate prototypes here.
11829 (ssa_name_values): Relocate from tree-flow.h.
11830 * tree-ssa.h: Include tree-ssa-threadedge.h and tree-ssa-address.h.
11831 * tree-ssa-loop.c (run_tree_predictive_commoning,
11832 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom,
11833 graphite_transforms, gate_graphite_transforms, pass_data_graphite,
11834 make_pass_graphite, pass_data_graphite_transforms,
11835 make_pass_graphite_transforms, gate_tree_parallelize_loops,
11836 tree_parallelize_loops, pass_data_parallelize_loops,
11837 make_pass_parallelize_loops): Move to other files.
11838 * tree-vectorizer.h (lpeel_tree_duplicate_loop_to_edge_cfg): Prototype
11840 * tree.h: Remove prototypes from tree-address.c.
11842 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
11844 * tree-flow.h (tm_restart_node, gimple_df): Move to gimple-ssa.h.
11845 (struct int_tree_map): Move to tree-hasher.h
11846 (SCALE, LABEL, PERCENT): Move to gimple.h
11847 * tree-flow-inline.h: Delete. Move functions to other files.
11848 (unmodifiable_var_p, ref_contains_array_ref): Unused, so delete.
11849 * gimple-ssa.h (tm_restart_node, gimple_df): Relocate from tree-flow.h.
11850 (gimple_in_ssa_p, gimple_vop): Relocate from tree-flow-inline.h
11851 * gimple.h (imple_stmt_max_uid, set_gimple_stmt_max_uid,
11852 inc_gimple_stmt_max_uid, get_lineno): Relocate from tree-flow-inline.h.
11853 (SCALE, LABEL, PERCENT): Relocate from tree-flow.h
11854 * tree-hasher.h: Don't include tree-flow.h.
11855 (struct int_tree_map): Relocate from tree-flow.h.
11856 * tree-sra.c (contains_view_convert_expr_p): Relocate from
11857 tree-flow-inline.h and make static.
11858 * tree-ssa-alias.h (ranges_overlap_p): Relocate from
11859 tree-flow-inline.h.
11860 * tree-ssa-operands.c (gimple_ssa_operands): Relocate from
11861 tree-flow-inline.h and make static.
11862 * tree.h (is_global_var, may_be_aliased): Relocate from
11863 tree-flow-inline.h.
11864 * Makefile.in (GTFILES): Remove tree-flow.h and add gimple-ssa.h.
11865 * value-prof.c: No longer include tree-flow-inline.h.
11866 * tree-switch-conversion.c: No longer include tree-flow-inline.h.
11868 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
11870 * tree-flow.h: Move some protoypes. Include new tree-ssa-loop.h.
11871 (struct affine_iv, struct tree_niter_desc): Move to tree-ssa-loop.h.
11872 (enum move_pos): Move to tree-ssa-loop-im.h
11873 * cfgloop.h: Move some prototypes.
11874 (gcov_type_to_double_int): relocate from tree-ssa-loop.niter.c.
11875 * tree-flow-inline.h (loop_containing_stmt): Move to tree-ssa-loop.h.
11876 * tree-ssa-loop.h: New File. Include other tree-ssa-loop-*.h files.
11877 (struct affine_iv, struct tree_niter_desc): Relocate from tree-flow.h.
11878 (loop_containing_stmt): Relocate from tree-flow-inline.h.
11879 * tree-ssa-loop-ch.c: (do_while_loop_p): Make static.
11880 * tree-ssa-loop-im.c (for_each_index): Move to tree-ssa-loop.c.
11881 (enum move_pos): Relocate here.
11882 (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): Move to
11884 (execute_sm_if_changed_flag_set): Change get_lsm_tmp_name call.
11885 (tree_ssa_loop_im, gate_tree_ssa_loop_im, pass_data_lim,
11886 make_pass_lim): Relocate here from tree-ssa-loop.c.
11887 * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Move to
11889 (loop_edge_to_cancel, unloop_loops): Make static.
11890 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
11891 make_pass_iv_canon): Relocate from tree-ssa-loop.c.
11892 (tree_complete_unroll, gate_tree_complete_unroll,
11893 pass_data_complete_unroll, make_pass_complete_unroll): Relocate here.
11894 (tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
11895 pass_data_complete_unrolli, make_pass_complete_unrolli): Relocate here.
11896 * tree-ssa-loop-ivopts.c: Remove local prototypes.
11897 (stmt_invariant_in_loop_p): Remove unused function.
11898 * tree-ssa-loop-ivopts.h: New file. Add prototypes.
11899 * tree-ssa-loop-manip.h: New file. Add prototypes.
11900 * tree-ssa-loop-niter.c (record_niter_bound): Move to cfgloop.c.
11901 (gcov_type_to_double_int): Move to cfgloop.h.
11902 (double_int_cmp, bound_index,
11903 estimate_numbers_of_iterations_loop): Make static.
11904 (estimated_loop_iterations): Factor out get_estimated_loop_iterations.
11905 (max_loop_iterations): Factor out get_max_loop_iterations.
11906 (estimated_loop_iterations_int, max_stmt_executions_int): Move to
11908 * tree-ssa-loop-niter.h: New file. Add prototypes.
11909 * tree-ssa-loop-prefetch.c (tree_ssa_loop_prefetch,
11910 gate_tree_ssa_loop_prefetch, pass_data_loop_prefetch,
11911 make_pass_loop_prefetch): Relocate from tree-ssa-loop.c.
11912 * tree-ssa-loop-unswitch.c (tree_ssa_loop_unswitch,
11913 gate_tree_ssa_loop_unswitch, pass_data_tree_unswitch,
11914 make_pass_tree_unswitch): Relocate from tree-ssa-loop.c.
11915 * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im,
11916 pass_data_lim, make_pass_lim): Move to tree-ssa-loop-im.c.
11917 (tree_ssa_loop_unswitch, gate_tree_ssa_loop_unswitch,
11918 pass_data_tree_unswitch, make_pass_tree_unswitch): Move.
11919 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
11920 make_pass_iv_canon, tree_complete_unroll, gate_tree_complete_unroll,
11921 pass_data_complete_unroll, make_pass_complete_unroll,
11922 tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
11923 pass_data_complete_unrolli, make_pass_complete_unrolli): Move to
11924 tree-ssa-loop-ivcanon.c.
11925 (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
11926 pass_data_loop_prefetch, make_pass_loop_prefetch): Move to
11927 tree-ssa-loop-prefetch.c.
11928 (for_each_index, lsm_tmp_name_add, gen_lsm_tmp_name): Relocate from
11929 tree-ssa-loop-im.c.
11930 (get_lsm_tmp_name): Relocate and add suffix parameter.
11931 (tree_num_loop_insns): Relocate from tree-ssa-ivcanon.c.
11932 * tree-scalar-evolution.h (simple_iv): Don't use affive_iv typedef.
11933 * cfgloop.c (record_niter_bound, estimated_loop_iterations_int,
11934 max_stmt_executions_int): Move from tree-ssa-loop-niter.c.
11935 (get_estimated_loop_iterations): Factor out accessor from
11936 estimated_loop_iterations in tree-ssa-loop-niter.c.
11937 (get_max_loop_iterations): Factor out accessor from
11938 _max_loop_iterations in tree-ssa-niter.c.
11939 * loop-unroll.c (decide_unroll_constant_iterations,
11940 decide_unroll_runtime_iterations, decide_peel_simple,
11941 decide_unroll_stupid): Use new get_* accessors.
11943 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
11945 PR tree-optimization/20318
11946 * doc/extend.texi (returns_nonnull): New function attribute.
11947 * fold-const.c (tree_expr_nonzero_warnv_p): Look for returns_nonnull
11949 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Likewise.
11950 (stmt_interesting_for_vrp): Accept all GIMPLE_CALL.
11952 2013-10-09 Eric Botcazou <ebotcazou@adacore.com>
11954 PR middle-end/58570
11955 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Return
11956 false if both components are bitfields.
11958 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
11960 * config/aarch64/arm_neon.h (vclz_s8, vclz_s16, vclz_s32)
11961 (vclzq_s8, vclzq_s16, vclzq_s32, vclz_u8, vclz_u16, vclz_u32)
11962 (vclzq_u8, vclzq_u16, vclzq_u32): Replace ASM with C.
11963 * config/aarch64/aarch64.h
11964 (CLZ_DEFINED_VALUE_AT_ZERO): Macro fixed for clz.
11965 * config/aarch64/aarch64-simd-builtins.def
11966 (VAR1 (UNOP, clz, 0, v4si)): Replaced with iterator.
11968 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
11970 * config/aarch64/arm_neon.h (vadd_f64, vsub_f64): Implementation added.
11972 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
11974 * config/aarch64/arm_neon.h (vdiv_f64): Added.
11976 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
11978 * config/aarch64/arm_neon.h (vneg_f32): Asm replaced with C.
11979 (vneg_f64): New intrinsic.
11980 (vneg_s8): Asm replaced with C.
11981 (vneg_s16): Likewise.
11982 (vneg_s32): Likewise.
11983 (vneg_s64): New intrinsic.
11984 (vnegq_f32): Asm replaced with C.
11985 (vnegq_f64): Likewise.
11986 (vnegq_s8): Likewise.
11987 (vnegq_s16): Likewise.
11988 (vnegq_s32): Likewise.
11989 (vnegq_s64): Likewise.
11991 2013-10-09 Renlin Li <Renlin.Li@arm.com>
11993 * config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.
11995 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11997 * config/s390/s390.c (s390_register_info_stdarg_fpr): Remove
11998 packed stack special handling.
11999 (s390_frame_info, s390_emit_prologue, s390_emit_epilogue): Switch
12000 back to fixed stack slots for FPRs saved due to stdarg.
12002 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12004 * config/s390/s390.c (s390_frame_info): Restructure function.
12006 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12008 * config/s390/s390.c (struct s390_frame_layout): New field
12010 (cfun_save_arg_fprs_p, cfun_gpr_save_slot): New macros.
12011 (s390_reg_clobbered_rtx, s390_regs_ever_clobbered): Change type of
12012 regs_ever_clobbered to char*.
12013 (s390_regs_ever_clobbered): Check crtl->saves_all_registers instead
12014 of cfun->has_nonlocal_label. Ignore frame related restore INSNs.
12015 (s390_register_info): Enable FPR save slots. Move/Copy some
12016 functionality into ...
12017 (s390_register_info_gprtofpr, s390_register_info_stdarg_fpr)
12018 (s390_register_info_stdarg_gpr, s390_optimize_register_info): New
12020 (s390_frame_info): Do gpr slot allocation here now. stdarg does
12021 not imply a stack frame.
12022 (s390_init_frame_layout): Remove variable clobbered_regs.
12023 (s390_update_register_info): Remove function.
12024 (s390_hard_regno_rename_ok): Call-saved regs without a save slot
12025 cannot be used for register renaming.
12026 (s390_hard_regno_scratch_ok): New function.
12027 (TARGET_HARD_REGNO_SCRATCH_OK): Define target hook.
12028 (s390_initial_elimination_offset): Change offset calculation of
12029 the return address pointer.
12030 (save_gprs): Deal with only r6 being saved from the call-saved regs.
12031 (restore_gprs): Set frame related flag.
12032 (s390_save_gprs_to_fprs, s390_restore_gprs_from_fprs): New functions.
12033 (s390_emit_prologue): Call s390_register_info instead of
12034 s390_update_frame_layout. Call s390_save_gprs_to_fprs.
12035 (s390_emit_epilogue): Call s390_restore_gprs_from_fprs.
12036 (s390_optimize_prologue): Call s390_optimize_register_info.
12037 Try to remove also FPR slot save/restore INSNs. Remove frame
12038 related flags from restore INSNs.
12040 2013-10-08 DJ Delorie <dj@redhat.com>
12042 * config/rl78/rl78-expand.md (movqi): use operands[] not operandN.
12045 * config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
12046 avoid conflict with the MI use of %c.
12047 * config/rl78/rl78-real.md: change %c to %C throughout.
12048 * config/rl78/rl78-virt.md: Likewise.
12050 2013-10-08 Jan Hubicka <jh@suse.cz>
12052 * config/i386/i386.c (ix86_option_override_internal): Switch
12053 to SSE math for -ffast-math when target ISA supports SSE2.
12055 2013-10-08 Andrew MacLeod <amacleod@redhat.com>
12057 * tree-flow.h: Remove some prototypes.
12058 * tree.h: Remove some protypes, add a couple.
12059 * tree.c (using_eh_for_cleanups_flag, using_eh_for_cleanups,
12060 using_eh_for_cleanups_p): Add interface routines for front ends.
12061 * tree-eh.h: New file. Add protoptyes.
12062 * tree-eh.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Delete.
12063 (add_stmt_to_eh_lp_fn): Make static.
12064 (lower_try_finally): Use new using_eh_for_cleanups_p.
12065 * emit-rtl.c: Include tree-eh.h.
12066 * gimple.h: Include tree-eh.h.
12068 2013-10-08 Marc Glisse <marc.glisse@inria.fr>
12070 PR tree-optimization/58480
12071 * tree-vrp.c (infer_nonnull_range): New function.
12072 (infer_value_range): Call infer_nonnull_range.
12074 2013-10-08 Dehao Chen <dehao@google.com>
12076 PR tree-optimization/58619
12077 * tree-inline.c (copy_phis_for_bb): Combine location data
12080 2013-10-08 Zhenqiang Chen <zhenqiang.chen@linaro.org>
12083 * config/arm/arm.c (arm_emit_ldrd_pop): Attach
12084 RTX_FRAME_RELATED_P on INSN.
12086 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12088 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const_le): New.
12089 (altivec_expand_vec_perm_const): Call it.
12091 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12093 * config/rs6000/vector.md (mov<mode>): Emit permuted move
12094 sequences for LE VSX loads and stores at expand time.
12095 * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_move): New
12097 * config/rs6000/rs6000.c (rs6000_const_vec): New.
12098 (rs6000_gen_le_vsx_permute): New.
12099 (rs6000_gen_le_vsx_load): New.
12100 (rs6000_gen_le_vsx_store): New.
12101 (rs6000_gen_le_vsx_move): New.
12102 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): New.
12103 (*vsx_le_perm_load_v4si): New.
12104 (*vsx_le_perm_load_v8hi): New.
12105 (*vsx_le_perm_load_v16qi): New.
12106 (*vsx_le_perm_store_v2di): New.
12107 (*vsx_le_perm_store_v4si): New.
12108 (*vsx_le_perm_store_v8hi): New.
12109 (*vsx_le_perm_store_v16qi): New.
12110 (*vsx_xxpermdi2_le_<mode>): New.
12111 (*vsx_xxpermdi4_le_<mode>): New.
12112 (*vsx_xxpermdi8_le_V8HI): New.
12113 (*vsx_xxpermdi16_le_V16QI): New.
12114 (*vsx_lxvd2x2_le_<mode>): New.
12115 (*vsx_lxvd2x4_le_<mode>): New.
12116 (*vsx_lxvd2x8_le_V8HI): New.
12117 (*vsx_lxvd2x16_le_V16QI): New.
12118 (*vsx_stxvd2x2_le_<mode>): New.
12119 (*vsx_stxvd2x4_le_<mode>): New.
12120 (*vsx_stxvd2x8_le_V8HI): New.
12121 (*vsx_stxvd2x16_le_V16QI): New.
12123 2013-10-07 Renlin Li <Renlin.Li@arm.com>
12125 * config/arm/arm-cores.def (cortex-a53): Use cortex tuning.
12127 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12129 * config/s390/s390.c (s390_register_info): Make the call-saved FPR
12130 loop to work also for 31bit ABI.
12131 Save the stack pointer for frame_size > 0.
12133 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12135 * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
12136 ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
12137 constraint letters from expanders.
12138 ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
12139 retry count to general_operand.
12140 ("tabort"): Give operand 0 a mode.
12141 ("tabort_1"): Add mode and constraint letter for operand 0.
12142 * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
12144 2013-10-04 Jeff Law <law@redhat.com>
12146 * tree-ssa-threadedge.c: Fix some trailing whitespace problems.
12148 * tree-ssa-threadedge.c (thread_through_normal_block): Broken
12150 (thread_across_edge): Here. Call it.
12152 2013-10-04 Cary Coutant <ccoutant@google.com>
12154 * dwarf2out.c (dw_sra_loc_expr): Release addr_table entries when
12155 discarding a location list expression (or a piece of one).
12157 2013-10-03 Jan Hubicka <jh@suse.cz>
12159 * config/i386/i386.c (ix86_issue_rate): Pentium4, Nocona has issue
12160 rate of 2. Core2, Corei7 and Haswell has issue rate of 4.
12161 (ix86_adjust_cost): Remove Atom case; fix core2/corei7/Haswell case.
12163 2013-10-03 Jan Hubicka <jh@suse.cz>
12165 * config/i386/i386.c (ix86_option_override_internal): Do not enable
12166 accumulate-outgoing-args when producing unwind info.
12168 2013-10-03 Wei Mi <wmi@google.com>
12170 * lra-constraints.c (insert_move_for_subreg): New function
12171 extracted from simplify_operand_subreg.
12172 (simplify_operand_subreg): Add reload for paradoxical subreg.
12174 2013-10-03 Rong Xu <xur@google.com>
12176 * ipa-inline-analysis.c (find_foldable_builtin_expect): Find
12177 the candidate of builtin_expect such that we should fix the
12178 size/time estimation.
12179 (estimate_function_body_sizes): Do the acutally size/time fix-up
12180 for builtin_expect.
12182 2013-10-03 Rong Xu <xur@google.com>
12184 * predict.c (tree_predict_by_opcode): Get the probability
12185 for builtin_expect from param builtin_expect_probability.
12186 * params.def (BUILTIN_EXPECT_PROBABILITY): New parameter.
12187 * predict.def (PRED_BUILTIN_EXPECT_RELAXED): Fix comments.
12188 * doc/invoke.texi: Add documentation for builtin-expect-probability.
12190 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
12193 * common.opt (fcheck-new): Moved from c.opt. Make it 'Common'.
12194 * calls.c (alloca_call_p): Use get_callee_fndecl.
12195 * fold-const.c (tree_expr_nonzero_warnv_p): Handle operator new.
12196 * tree-vrp.c (gimple_stmt_nonzero_warnv_p, stmt_interesting_for_vrp):
12198 (vrp_visit_stmt): Remove duplicated code.
12200 2013-10-03 Michael Meissner <meissner@linux.vnet.ibm.com>
12202 * config/rs6000/rs6000-builtin.def (XSRDPIM): Use floatdf2,
12203 ceildf2, btruncdf2, instead of vsx_* name.
12205 * config/rs6000/vsx.md (vsx_add<mode>3): Change arithmetic
12206 iterators to only do V2DF and V4SF here. Move the DF code to
12207 rs6000.md where it is combined with SF mode. Replace <VSv> with
12208 just 'v' since only vector operations are handled with these insns
12209 after moving the DF support to rs6000.md.
12210 (vsx_sub<mode>3): Likewise.
12211 (vsx_mul<mode>3): Likewise.
12212 (vsx_div<mode>3): Likewise.
12213 (vsx_fre<mode>2): Likewise.
12214 (vsx_neg<mode>2): Likewise.
12215 (vsx_abs<mode>2): Likewise.
12216 (vsx_nabs<mode>2): Likewise.
12217 (vsx_smax<mode>3): Likewise.
12218 (vsx_smin<mode>3): Likewise.
12219 (vsx_sqrt<mode>2): Likewise.
12220 (vsx_rsqrte<mode>2): Likewise.
12221 (vsx_fms<mode>4): Likewise.
12222 (vsx_nfma<mode>4): Likewise.
12223 (vsx_copysign<mode>3): Likewise.
12224 (vsx_btrunc<mode>2): Likewise.
12225 (vsx_floor<mode>2): Likewise.
12226 (vsx_ceil<mode>2): Likewise.
12227 (vsx_smaxsf3): Delete scalar ops that were moved to rs6000.md.
12228 (vsx_sminsf3): Likewise.
12229 (vsx_fmadf4): Likewise.
12230 (vsx_fmsdf4): Likewise.
12231 (vsx_nfmadf4): Likewise.
12232 (vsx_nfmsdf4): Likewise.
12233 (vsx_cmpdf_internal1): Likewise.
12235 * config/rs6000/rs6000.h (TARGET_SF_SPE): Define macros to make it
12236 simpler to select whether a target has SPE or traditional floating
12237 point support in iterators.
12238 (TARGET_DF_SPE): Likewise.
12239 (TARGET_SF_FPR): Likewise.
12240 (TARGET_DF_FPR): Likewise.
12241 (TARGET_SF_INSN): Macros to say whether floating point support
12242 exists for a given operation for expanders.
12243 (TARGET_DF_INSN): Likewise.
12245 * config/rs6000/rs6000.c (Ftrad): New mode attributes to allow
12246 combining of SF/DF mode operations, using both traditional and VSX
12254 (abs<mode>2): Combine SF/DF modes using traditional floating point
12255 instructions. Add support for using the upper DF registers with
12256 VSX support, and SF registers with power8-vector support. Update
12257 expanders for operations supported by both the SPE and traditional
12258 floating point units.
12259 (abs<mode>2_fpr): Likewise.
12260 (nabs<mode>2): Likewise.
12261 (nabs<mode>2_fpr): Likewise.
12262 (neg<mode>2): Likewise.
12263 (neg<mode>2_fpr): Likewise.
12264 (add<mode>3): Likewise.
12265 (add<mode>3_fpr): Likewise.
12266 (sub<mode>3): Likewise.
12267 (sub<mode>3_fpr): Likewise.
12268 (mul<mode>3): Likewise.
12269 (mul<mode>3_fpr): Likewise.
12270 (div<mode>3): Likewise.
12271 (div<mode>3_fpr): Likewise.
12272 (sqrt<mode>3): Likewise.
12273 (sqrt<mode>3_fpr): Likewise.
12274 (fre<Fs>): Likewise.
12275 (rsqrt<mode>2): Likewise.
12276 (cmp<mode>_fpr): Likewise.
12277 (smax<mode>3): Likewise.
12278 (smin<mode>3): Likewise.
12279 (smax<mode>3_vsx): Likewise.
12280 (smin<mode>3_vsx): Likewise.
12281 (negsf2): Delete SF operations that are merged with DF.
12282 (abssf2): Likewise.
12283 (addsf3): Likewise.
12284 (subsf3): Likewise.
12285 (mulsf3): Likewise.
12286 (divsf3): Likewise.
12288 (fmasf4_fpr): Likewise.
12289 (fmssf4_fpr): Likewise.
12290 (nfmasf4_fpr): Likewise.
12291 (nfmssf4_fpr): Likewise.
12292 (sqrtsf2): Likewise.
12293 (rsqrtsf_internal1): Likewise.
12294 (smaxsf3): Likewise.
12295 (sminsf3): Likewise.
12296 (cmpsf_internal1): Likewise.
12297 (copysign<mode>3_fcpsgn): Add VSX/power8-vector support.
12298 (negdf2): Delete DF operations that are merged with SF.
12299 (absdf2): Likewise.
12300 (nabsdf2): Likewise.
12301 (adddf3): Likewise.
12302 (subdf3): Likewise.
12303 (muldf3): Likewise.
12304 (divdf3): Likewise.
12306 (rsqrtdf_internal1): Likewise.
12307 (fmadf4_fpr): Likewise.
12308 (fmsdf4_fpr): Likewise.
12309 (nfmadf4_fpr): Likewise.
12310 (nfmsdf4_fpr): Likewise.
12311 (sqrtdf2): Likewise.
12312 (smaxdf3): Likewise.
12313 (smindf3): Likewise.
12314 (cmpdf_internal1): Likewise.
12315 (lrint<mode>di2): Use TARGET_<MODE>_FPR macro.
12316 (btrunc<mode>2): Delete separate expander, and combine with the
12317 insn and add VSX instruction support. Use TARGET_<MODE>_FPR.
12318 (btrunc<mode>2_fpr): Likewise.
12319 (ceil<mode>2): Likewise.
12320 (ceil<mode>2_fpr): Likewise.
12321 (floor<mode>2): Likewise.
12322 (floor<mode>2_fpr): Likewise.
12323 (fma<mode>4_fpr): Combine SF and DF fused multiply/add support.
12324 Add support for using the upper registers with VSX and
12325 power8-vector. Move insns to be closer to the define_expands. On
12326 VSX systems, prefer the traditional form of FMA over the VSX
12327 version, since the traditional form allows the target not to
12328 overlap with the inputs.
12329 (fms<mode>4_fpr): Likewise.
12330 (nfma<mode>4_fpr): Likewise.
12331 (nfms<mode>4_fpr): Likewise.
12333 2013-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12334 Richard Earnshaw <richard.earnshaw@arm.com>
12336 * config/arm/aarch-common-protos.h (struct alu_cost_table): New.
12337 (struct mult_cost_table): Likewise.
12338 (struct mem_cost_table): Likewise.
12339 (struct fp_cost_table): Likewise.
12340 (struct vector_cost_table): Likewise.
12341 (cpu_cost_table): Likewise.
12342 * config/arm/arm.opt (mold-rts-costs): New option.
12343 (mnew-generic-costs): Likewise.
12344 * config/arm/arm.c (generic_extra_costs): New table.
12345 (cortexa15_extra_costs): Likewise.
12346 (arm_slowmul_tune): Use NULL as new costs.
12347 (arm_fastmul_tune): Likewise.
12348 (arm_strongarm_tune): Likewise.
12349 (arm_xscale_tune): Likewise.
12350 (arm_9e_tune): Likewise.
12351 (arm_v6t2_tune): Likewise.
12352 (arm_cortex_a5_tune): Likewise.
12353 (arm_cortex_a9_tune): Likewise.
12354 (arm_v6m_tune): Likewise.
12355 (arm_fa726te_tune): Likewise.
12356 (arm_cortex_a15_tune): Use cortex15_extra_costs.
12357 (arm_cortex_tune): Use generict_extra_costs.
12358 (shifter_op_p): New function.
12359 (arm_unspec_cost): Likewise.
12360 (LIBCALL_COST): Define.
12361 (arm_new_rtx_costs): New function.
12362 (arm_rtx_costs): Use arm_new_rtx_costs when core-specific
12363 table is available. Use old costs otherwise unless mnew-generic-costs
12365 * config/arm/arm-protos.h (tune_params): Add insn_extra_cost field.
12366 (cpu_cost_table): Declare.
12368 2013-10-03 Marcus Shawcroft <marcus.shawcroft@arm.com>
12371 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>)
12372 (*subs_mul_imm_<mode>)
12373 (*add_<shift>_<mode>, *add_<shift>_si_uxtw,*add_mul_imm_<mode>)
12374 (*sub_<shift>_<mode>)
12375 (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
12376 Remove k constraint.
12378 2013-10-03 Ian Bolton <ian.bolton@arm.com>
12380 * config/aarch64/aarch64.c (aarch64_secondary_reload): Remove legacy
12382 * config/aarch64/aarch64.md (reload_sp_immediate): Likewise.
12384 2013-10-02 Teresa Johnson <tejohnson@google.com>
12386 * predict.c (probably_never_executed): New function.
12387 (probably_never_executed_bb_p): Invoke probably_never_executed.
12388 (probably_never_executed_edge_p): Ditto.
12389 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
12390 Treat profile insanities conservatively.
12392 2013-10-02 John David Anglin <danglin@gcc.gnu.org>
12394 * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
12396 2013-10-02 Vladimir Makarov <vmakarov@redhat.com>
12398 * lra-constraints.c (process_alt_operand): Calculate scratch_p and
12399 use it. Use smaller increase for scratch. Don't increase reject
12400 for early clobber scratch.
12401 * lra-eliminations.c (eliminate_regs_in_insn): Remove all insns
12402 setting eliminated regs except setting fp from hfp.
12403 (lra_eliminate): Check lra_insn_recog_data on NULL.
12405 2013-10-02 Michael Meissner <meissner@linux.vnet.ibm.com>
12408 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Turn off
12409 setting -mvsx-timode by default until the underlying problem is fixed.
12410 (RS6000_CPU, power7 defaults): Likewise.
12412 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
12414 * config/x-linux (host-linux.o): Remove header dependencies.
12415 Use $(COMPILE) and $(POSTCOMPILE).
12416 * config/t-linux-android (linux-android.o): Ditto.
12418 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
12420 * Makefile.in (expmed.o-warn): Remove.
12422 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
12424 * graphite-scop-detection.c: Include tree-ssa-propagate,h.
12425 * graphite-sese-to-poly.c: Include tree-ssa-propagate.h.
12427 2013-10-02 Teresa Johnson <tejohnson@google.com>
12429 * dojump.c (do_jump_1): Divide probability between
12430 both conditions of a TRUTH_ANDIF_EXPR/TRUTH_ORIF_EXPR.
12432 2013-10-02 Tom Tromey <tromey@redhat.com>
12434 * Makefile.in (DRIVER_DEFINES): Use $(if), not $(and).
12436 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
12438 * tree-flow.h: Remove some prototypes.
12439 * tree-ssa-dce.c (mark_virtual_operand_for_renaming,
12440 mark_virtual_phi_result_for_renaming): Move to tree-into-ssa.c.
12441 * tree-into-ssa.c (mark_virtual_operand_for_renaming,
12442 mark_virtual_phi_result_for_renaming): Relocate here.
12443 * tree-into-ssa.h: Add prototypes.
12444 * tree-ssa-phiopt.c: (tree_ssa_phiopt_worker) Use
12445 single_pred_before_succ_order.
12446 (blocks_in_phiopt_order): Rename and move to cfganal.c.
12447 (nonfreeing_call_p) Move to gimple.c.
12448 * cfganal.c (single_pred_before_succ_order): Move and renamed from
12450 * basic-block.h (single_pred_before_succ_order): Add prototype.
12451 * gimple.c (nonfreeing_call_p): Relocate here.
12452 * gimple.h: Add prototype.
12453 * tree-ssa-ifcombine.c: Include tree-ssa-phiopt.h.
12454 * tree-ssa-dom.h: New file. Relocate prototypes here.
12455 * tree-ssa.h: Include tree-ssa-dom.h.
12457 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
12459 * config/i386/x-i386 (driver-i386.o): Remove header dependencies.
12460 Use $(COMPILE) and $(POSTCOMPILE).
12462 * config/alpha/x-alpha (driver-alpha.o): Ditto.
12464 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
12466 * tree-flow.h: Remove some prototypes.
12467 * gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
12468 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
12469 * tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
12470 propagate_tree_value*): Move from here to...
12471 * tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
12472 propagate_tree_value*): Relocate here.
12473 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
12474 * gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
12475 * gimple-fold.c: Remove gimple-fold.h from include list.
12476 * tree-vrp.c: Remove gimple-fold.h from include list.
12477 * tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
12478 * tree-ssa-ccp.c: Remove gimple-fold.h from include list.
12479 * tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
12480 * tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
12481 * sese.c: Add tree-ssa-propagate.h to include list.
12483 2013-10-02 Richard Biener <rguenther@suse.de>
12485 * tree-loop-distribution.c: Include tree-vectorizer.h for
12486 find_loop_location.
12487 (enum partition_kind): Remove PKIND_REDUCTION.
12488 (struct partition_s): Remove has_writes member, add reduction_p member.
12489 (partition_alloc): Adjust.
12490 (partition_builtin_p): Likewise.
12491 (partition_has_writes): Remove.
12492 (partition_reduction_p): New function.
12493 (partition_merge_into): Likewise.
12494 (generate_code_for_partition): Commonize builtin partition
12496 (rdg_cannot_recompute_vertex_p): Remove.
12497 (already_processed_vertex_p): Likewise.
12498 (rdg_flag_vertex): Do not set has_writes.
12499 (classify_partition): Adjust.
12500 (rdg_build_partitions): Do not set has_writes, treat all
12501 partitions as useful.
12502 (distribute_loop): Record number of library calls generated. Adjust.
12503 (tree_loop_distribution): Report number of loops and library
12504 calls generated as opt-info.
12506 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
12508 * tree-flow.h: Include new .h files. Move prototypes.
12509 * tree-cfgcleanup.h: New file. Add prototypes from tree-flow.h.
12510 * tree-dfa.h: New File. Add prototypes from tree-flow.h.
12511 (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h.
12512 * tree-pretty-print.h: Add prototypes from tree-flow.h.
12513 * tree-into-ssa.h: New File. Add prototypes from tree-flow.h.
12514 ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c.
12515 * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file.
12516 * tree.h (get_ref_base_and_extent): Move prototype out.
12517 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to
12519 * gimple-low.h: New File. Add prototypes from tree-flow.h.
12520 * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to...
12521 * tree.c (try_catch_may_fallthru, block_may_fallthru): Here.
12522 * tree-scalar-evolution.c: Include tree.h.
12523 * sese.c: Include tree.h.
12524 * dumpfile.c: Move gimple-pretty-print.h include after tree.h.
12525 * dwarf2out.c: Include tree-dfa.h.
12526 * tree-chrec.c: Include tree.h.
12527 * tree-data-ref.c: Include tree.h.
12529 2013-10-02 Yufeng Zhang <yufeng.zhang@arm.com>
12531 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref):
12534 2013-10-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12536 * config/t-sol2 (sol2-c.o): Remove header dependencies.
12537 Use $(COMPILE) and $(POSTCOMPILE).
12538 (sol2-cxx.o): Likewise.
12539 (sol2-stubs.o): Likewise.
12540 (sol2.o): Likewise.
12541 * config/x-solaris (host-solaris.o): Likewise.
12543 * config/sparc/t-sparc (sparc.o): Remove.
12544 (sparc-c.o): Remove header dependencies.
12545 Use $(COMPILE) and $(POSTCOMPILE).
12546 * config/sparc/x-sparc: Likewise.
12548 2013-10-02 Joern Rennecke <joern.rennecke@embecosm.com>
12550 * config/arc/arc-opts.h: Add 2013 to Copyright years.
12551 * config/arc/arc700.md: Likewise.
12552 * config/arc/arc-modes.def: Likewise.
12553 * config/arc/arc-simd.h: Likewise.
12554 * config/arc/t-arc-uClibc: Likewise.
12555 * config/arc/t-arc-newlib: Likewise.
12557 2013-10-02 Renlin Li <renlin.li@arm.com>
12559 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
12561 (aarch64_expand_epilogue): Likewise.
12563 2013-10-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12564 Yufeng Zhang <yufeng.zhang@arm.com>
12566 * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
12568 (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
12569 'base_in' represent a conversion and legal_cast_p_1 holds; set
12570 'base_in' with the returned value from get_unwidened.
12572 2013-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12574 * config/arm/arm.c (arm_legitimize_reload_address): Explain why
12575 plus_constant is not used.
12577 2013-10-01 Wei Mi <wmi@google.com>
12579 * config/i386/x86-tune.def (DEF_TUNE): Remove m_CORE_ALL.
12580 * config/i386/i386.md: Add define_peephole2 to
12581 break partial reg stall for cvtss2sd/cvtsd2ss.
12583 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
12585 * config/arc/arc.c (pass_arc_ifcvt::clone):
12586 Update for ctxt_ -> m_ctxt change.
12588 2013-10-01 Jeff Law <law@redhat.com>
12590 * tree-ssa-threadupdate.c (struct redirection_data): Delete
12591 outgoing_edge and intermediate_edge fields. Instead store the path.
12592 (redirection_data::hash): Hash on the last edge's destination index.
12593 (redirection_data::equal): Check the entire thread path.
12594 (lookup_redirectio_data): Corresponding changes.
12595 (create_edge_and_update_destination_phis): Likewise.
12596 (thread_single_edge): Likewise.
12598 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
12599 Diego Novillo <dnovillo@google.com>
12601 * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
12602 (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
12603 (vld32wh_insn, vld32wl_insn): Delete commented-out old
12604 versions of these patterns.
12606 * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
12607 (__builtin_arc_aligned): Likewise.
12609 * config/arc/arc.md: Expand adc_0 comment stating the intended
12610 purpose and why it isn't ready.
12611 Replace commented out call_value_via_label_mixed with a
12612 plain comment about bl_s.
12614 * config/arc/arc.c (stdio.h): Don't include directly.
12615 (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
12616 Remove if (1) condition.
12617 (arc_encode_section_info): Fix comment.
12619 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
12621 * config/arc/arc.c (arc_conditional_register_usage):
12622 Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
12623 Also set reg_alloc_order for DMA config regs.
12625 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
12626 Jeremy Bennett <jeremy.bennett@embecosm.com>
12628 * doc/install.texi (--with-cpu): Mention ARC.
12629 (arc-*-elf32): New paragraph.
12630 (arc-linux-uclibc): Likewise.
12631 * doc/md.texi (Machine Constraints): Add ARC part.
12632 * doc/invoke.texi: (menu): Add ARC Options.
12633 (Machine Dependent Options) <ARC Options>: Add synopsis.
12634 (node ARC Options): Add.
12635 * doc/extend.texi (long_call / short_call attribute): Add ARC.
12636 (ARC Built-in Functions): New section defining
12637 generic ARC built-in functions.
12638 (ARC SIMD Built-in Functions): New section defining SIMD specific
12639 built-in functions.
12640 (Declaring Attributes of Functions): Extended
12641 description of short_call and long_call attributes for ARC and
12642 added index entries.
12644 2013-10-01 Saurabh Verma <saurabh.verma@codito.com>
12645 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
12646 Joern Rennecke <joern.rennecke@embecosm.com>
12647 Muhammad Khurram Riaz <khurram.riaz@arc.com>
12648 Brendan Kehoe <brendan@zen.org>
12649 Michael Eager <eager@eagercon.com>
12650 Simon Cook <simon.cook@embecosm.com>
12651 Jeremy Bennett <jeremy.bennett@embecosm.com>
12653 * config/arc, common/config/arc: New directories.
12655 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
12656 Brendan Kehoe <brendan@zen.org>
12657 Simon Cook <simon.cook@embecosm.com>
12659 * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
12661 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
12663 * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
12664 * tree-ssa-coalesce.h: New. Move prototype to here.
12665 * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
12666 * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
12667 (gimple_can_coalesce_p): Move to...
12668 * gimple.c (gimple_can_coalesce_p): Here.
12670 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
12672 * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
12673 (dump_decl_set): Move to gimple.c.
12674 * gimple.h: Don't include tree-ssa-operands.h.
12675 (dump_decl_set): Add prototype.
12676 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
12677 Move to gimple-ssa.h.
12678 (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
12679 gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
12680 gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
12681 gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
12682 * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
12684 (dump_decl_set): Relocate here.
12685 * gimple-ssa.h: New file.
12686 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
12687 Relocate from gimple.h.
12688 * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
12689 * tree-ssa-operands.c (swap_ssa_operands): Rename from
12690 swap_tree_operands and remove non-ssa path.
12691 (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
12692 * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
12694 * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
12695 vect_is_simple_reduction_1): Use swap_ssa_operands.
12696 * tree-flow.h: Move various prototypes to tree-phinodes.h.
12697 (enum need_phi_state): Move to tree-into-ssa.c.
12698 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
12699 BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
12700 (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
12701 * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
12702 link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
12703 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
12704 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
12705 num_imm_uses): Move to ssa-iterators.h.
12706 (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
12707 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
12709 (op_iter_done, op_iter_next_def, op_iter_next_tree,
12710 clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
12711 op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
12712 single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
12713 num_ssa_operands, delink_stmt_imm_use, single_phi_def,
12714 op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
12715 end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
12716 first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
12717 end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
12718 (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
12719 gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
12720 gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
12721 phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
12722 (set_phi_nodes): Move to tree-phinodes.h.
12723 * tree-ssa-operands.h (enum ssa_op_iter_type,
12724 struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
12725 ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
12726 (dump_decl_set): Remove prototype.
12727 (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
12728 * tree-phinodes.h: New file. Move some prototypes from tree-flow.h.
12729 (set_phi_nodes): Relocate from tree-flow-inline.h.
12730 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
12732 * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
12733 include list. Temporarily add gimple.h to include list.
12734 * ssa-iterators.h: New file.
12735 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
12736 BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
12737 (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
12738 FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
12739 Relocate from tree-ssa-operands.h.
12740 (delink_imm_use, link_imm_use_to_list, link_imm_use,
12741 set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
12742 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
12743 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
12744 num_imm_uses, get_use_from_ptr, get_def_from_ptr,
12745 phi_arg_index_from_use, op_iter_done, op_iter_next_def,
12746 op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
12747 op_iter_init_use, op_iter_init_def, op_iter_init_tree,
12748 single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
12749 zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
12750 single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
12751 end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
12752 link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
12753 first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
12754 Relocate from tree-flow-inline.h.
12755 * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
12757 2013-10-01 Vidya Praveen <vidyapraveen@arm.com>
12760 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
12761 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
12762 Insert '\t' to output template.
12763 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
12764 (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
12765 gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
12766 (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
12768 2013-10-01 Uros Bizjak <ubizjak@gmail.com>
12770 * doc/install.texi (Host/target specific installation notes for GCC):
12771 Put @anchor before @heading.
12772 * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
12773 Use @email for email addresses.
12775 2013-10-01 Jeff Law <law@redhat.com>
12777 * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
12778 a vec. Only delete the path if we create one without successfully
12779 registering a jump thread.
12780 * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
12782 * tree-ssa-threadupdate.c (threaded_edges): Remove. No longer used
12783 (paths): New vector of jump threading paths.
12784 (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
12785 (THREAD_PATH): New accessor macro for the entire thread path.
12786 (lookup_redirection_data): Get intermediate and final outgoing edge
12787 from the thread path.
12788 (create_edge_and_update_destination_phis): Copy the threading path.
12789 (ssa_fix_duplicate_block_edges): Get edges and block types from the
12790 jump threading path.
12791 (ssa_redirect_edges): Get edges and block types from the jump threading
12792 path. Free the path vector.
12793 (thread_block): Get edges from the jump threading path. Look at the
12794 entire path to see if we thread to a loop exit. If we cancel a jump
12795 thread request, then free the path vector.
12796 (thread_single_edge): Get edges and block types from the jump threading
12797 path. Free the path vector.
12798 (thread_through_loop_header): Get edges and block types from the jump
12799 threading path. Free the path vector.
12800 (mark_threaded_blocks): Iterate over the vector of paths and store
12801 the path on the appropriate edge. Get edges and block types from the
12802 jump threading path.
12803 (mark_threaded_blocks): Get edges and block types from the jump
12804 threading path. Free the path vector.
12805 (thread_through_all_blocks): Use the vector of paths rather than
12806 a vector of 3-edge sets.
12807 (register_jump_thread): Accept pointer to a path vector rather
12808 than the path vector itself. Store the path vector for later use.
12811 2013-10-01 Jakub Jelinek <jakub@redhat.com>
12812 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12815 * config/s390/s390.c (s390_split_branches): Modify check for table
12817 (s390_chunkify_start): Rearrange table jump insn check in order to
12818 deal with compare and branch insns correctly.
12820 2013-10-01 Kugan Vivekanandarajah <kuganv@linaro.org>
12824 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
12825 * config/arm/arm.md (arm_ashldi3_1bit): define_insn into
12826 define_insn_and_split.
12827 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
12828 (shiftsi3_compare): New pattern.
12829 (rrx): New pattern.
12830 * config/arm/unspecs.md (UNSPEC_RRX): New.
12832 2013-10-01 Alan Modra <amodra@gmail.com>
12834 * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
12835 casing inout operands.
12837 2013-10-01 Richard Biener <rguenther@suse.de>
12839 PR tree-optimization/58553
12840 * tree-loop-distribution.c (struct partition_s): Add niter member.
12841 (classify_partition): Populate niter member for the partition
12842 and properly identify whether the relevant store happens before
12843 or after the loop exit.
12844 (generate_memset_builtin): Use niter member from the partition.
12845 (generate_memcpy_builtin): Likewise.
12847 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
12849 * vec.h (vec_prefix, vec): Prefix member names with "m_".
12850 * vec.c (vec_prefix::calculate_allocation): Update accordingly.
12852 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
12854 * basic-block.h (edge_list): Prefix member names with "m_".
12855 * context.h (context): Likewise.
12856 * domwalk.h (dom_walker): Likewise.
12857 * gengtype-state.c (s_expr_writer, state_writer): Likewise.
12858 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
12859 * hash-table.h (hash_table): Likewise.
12860 * machmode.h (bit_field_mode_iterator): Likewise.
12861 * pass_manager.h (pass_list): Likewise.
12862 * tree-into-ssa.c (mark_def_dom_walker): Likewise.
12863 * tree-pass.h (pass_data): Likewise.
12864 * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
12865 * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
12866 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
12867 * asan.c (pass_data_asan): Update accordingly.
12868 * cfganal.c (control_dependences::find_control_dependence): Likewise.
12869 (control_dependences::control_dependences): Likewise.
12870 (control_dependences::~control_dependences): Likewise.
12871 (control_dependences::~control_dependences): Likewise.
12872 (control_dependences::get_edges_dependent_on): Likewise.
12873 * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
12874 (pass_data_remove_cgraph_callee_edges::clone): Likewise.
12875 * context.c (gcc::context::context): Likewise.
12876 * cprop.c (pass_rtl_cprop::clone): Likewise.
12877 * domwalk.c (dom_walker::walk): Likewise.
12878 * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
12879 * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
12880 * mode-switching.c (pass_mode_switching::clone): Likewise.
12881 * passes.c (opt_pass::opt_pass): Likewise.
12882 (pass_manager::pass_manager): Likewise.
12883 * predict.c (pass_strip_predict_hints::clone): Likewise.
12884 * recog.c (pass_data pass_data_peephole2::clone): Likewise.
12885 (pass_split_all_insns::clone): Likewise.
12886 * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
12888 (bit_field_mode_iterator::next_mode): Likewise.
12889 (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
12890 * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
12891 * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
12892 * tree-complex.c (pass_lower_complex::clone): Likewise.
12893 * tree-eh.c (pass_cleanup_eh::clone): Likewise.
12894 * tree-object-size.c (pass_object_sizes::clone): Likewise.
12895 * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
12896 * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
12897 (pass_fold_builtins::clone): Likewise.
12898 * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
12899 * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
12900 * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
12901 (pass_cd_dce::clone): Likewise.
12902 * tree-ssa-dom.c (pass_dominator::clone): Likewise.
12903 (pass_phi_only_cprop::clone): Likewise.
12904 * tree-ssa-dse.c (pass_dse::clone): Likewise.
12905 * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
12906 * tree-ssa-loop.c (pass_lim::clone): Likewise.
12907 * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
12908 * tree-ssa-pre.c (pass_fre::clone): Likewise.
12909 * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
12910 * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
12911 * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
12912 * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
12913 * tree-vrp.c (pass_vrp::clone): Likewise.
12914 * tsan.c (pass_tsan::clone): Likewise.
12916 2013-09-30 Jakub Jelinek <jakub@redhat.com>
12918 PR middle-end/58564
12919 * fold-const.c (tree_unary_nonnegative_warnv_p): Use
12920 INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
12922 PR middle-end/58564
12923 * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
12924 optimization, punt if sign_bit_p looked through any zero extension.
12926 2013-09-30 Teresa Johnson <tejohnson@google.com>
12928 * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
12929 Update redirected out edge count in joiner case.
12930 (ssa_redirect_edges): Common the joiner and non-joiner cases
12931 so that joiner case gets profile updates.
12933 2013-09-30 Richard Biener <rguenther@suse.de>
12935 PR tree-optimization/58554
12936 * tree-loop-distribution.c (classify_partition): Require
12937 unconditionally executed stores for memcpy and memset recognition.
12938 (tree_loop_distribution): Calculate dominance info.
12940 2013-09-30 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
12942 * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
12943 (NO_PROFILE_COUNTERS): Likewise.
12944 (PROFILE_HOOK): Likewise.
12945 (FUNCTION_PROFILER): Likewise.
12946 * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
12948 2013-09-30 Iain Sandoe <iain@codesourcery.com>
12950 * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
12951 calls and defines in TARGET_MACHO conditional.
12952 (load_macho_picbase_di): Likewise.
12953 (reload_macho_picbase): Likewise.
12954 (reload_macho_picbase_si): Likewise.
12955 (reload_macho_picbase_di): Likewise.
12956 (nonlocal_goto_receiver): Likewise.
12958 2013-09-30 Nick Clifton <nickc@redhat.com>
12960 * config/msp430/msp430.c (msp430x_names): New array. Lists MCUs
12961 that use the MSP430X ISA.
12962 (msp430_option_override): Scan -mmcu command line option for any
12963 MCU name that supports the MSP430X ISA.
12964 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
12965 -mmcu options which enable the MSP430X ISA.
12967 2013-09-30 Richard Biener <rguenther@suse.de>
12969 PR middle-end/58532
12970 * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
12971 before looking for setjmp-like calls.
12973 2013-09-29 Iain Sandoe <iain@codesourcery.com>
12976 * config/darwin-protos.h (machopic_get_function_picbase): New.
12977 * config/darwin.c (machopic_get_function_picbase): New.
12978 * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
12979 label for a new func. (load_macho_picbase_di): Likewise.
12980 (reload_macho_picbase): New expand.
12981 (reload_macho_picbase_si): New insn.
12982 (reload_macho_picbase_di): New insn.
12983 (nonlocal_goto_receiver): New define and split.
12984 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
12985 (unspecv enum): Add UNSPECV_NLGR.
12987 2013-09-29 Iain Sandoe <iain@codesourcery.com>
12989 * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
12990 that altivec registers are correctly sized on Darwin.
12992 2013-09-29 Iain Sandoe <iain@codesourcery.com>
12994 * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
12995 darwin-driver.o): Use COMPILE and POSTCOMPILE.
12996 * config/x-darwin (host-darwin.o): Likewise.
12997 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
12998 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
12999 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
13001 2013-09-29 Uros Bizjak <ubizjak@gmail.com>
13003 * doc/invoke.texi: Fix usage of @tie{} command.
13005 2013-09-29 Eric Botcazou <ebotcazou@adacore.com>
13007 * config/sparc/sync.md: Add peephole for consecutive memory barriers.
13009 2013-09-28 Jan Hubicka <jh@suse.cz>
13011 * config/i386/x86-tune.def: Add documentation for each of the options;
13014 2013-09-28 Jan Hubicka <jh@suse.cz>
13016 * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
13018 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
13019 (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
13020 (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
13021 (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
13022 (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
13024 2013-09-28 Richard Sandiford <rdsandiford@googlemail.com>
13026 * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
13027 bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
13028 cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
13029 cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
13030 combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
13031 cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
13032 df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
13033 dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
13034 errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
13035 fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
13036 gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
13037 genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
13038 genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
13039 genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
13040 gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
13041 gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
13042 gimple.h, godump.c, graphite-clast-to-gimple.c,
13043 graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
13044 graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
13045 hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
13046 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
13047 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
13048 ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
13049 loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
13050 lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
13051 mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
13052 pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
13053 predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
13054 profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
13055 regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
13056 reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
13057 sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
13058 statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
13059 system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
13060 tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
13061 tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
13062 tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
13063 tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
13064 tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
13065 tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
13066 tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
13067 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
13068 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
13069 tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
13070 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
13071 tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
13072 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
13073 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
13074 tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
13075 tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
13076 tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
13077 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
13078 tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
13079 tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
13080 varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
13081 whitespace before "(".
13083 2013-09-28 Sandra Loosemore <sandra@codesourcery.com>
13085 * expr.h (extract_bit_field): Remove packedp parameter.
13086 * expmed.c (extract_fixed_bit_field): Remove packedp parameter
13087 from forward declaration.
13088 (store_split_bit_field): Remove packedp arg from calls to
13089 extract_fixed_bit_field.
13090 (extract_bit_field_1): Remove packedp parameter and packedp
13091 argument from recursive calls and calls to extract_fixed_bit_field.
13092 (extract_bit_field): Remove packedp parameter and corresponding
13093 arg to extract_bit_field_1.
13094 (extract_fixed_bit_field): Remove packedp parameter. Remove code
13096 (extract_split_bit_field): Remove packedp arg from call to
13097 extract_fixed_bit_field.
13098 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
13099 (copy_blkmode_from_reg): Likewise.
13100 (copy_blkmode_to_reg): Likewise.
13101 (read_complex_part): Likewise.
13102 (store_field): Likewise.
13103 (expand_expr_real_1): Likewise.
13104 * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
13105 to extract_bit_field.
13106 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
13107 call to extract_bit_field.
13108 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
13109 call to extract_bit_field.
13110 * doc/invoke.texi (Code Gen Options): Remove mention of warnings
13111 and special packedp behavior from -fstrict-volatile-bitfields
13114 2013-09-27 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13116 * lra-eliminations.c (init_elim_table): Guard value_p.
13118 2013-09-27 Michael Meissner <meissner@linux.vnet.ibm.com>
13120 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
13121 DFmode, DImode, and SFmode in the upper VSX registers based on the
13122 -mupper-regs-{df,sf} flags. Fix wu constraint to be ALTIVEC_REGS
13123 if -mpower8-vector. Combine -mvsx-timode handling with the rest
13124 of the VSX register handling.
13126 * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
13127 (f32_sv): Likewise.
13128 (zero_extendsidi2_lfiwzx): Add support for loading into the
13129 Altivec registers with -mpower8-vector. Use wu/wv constraints to
13130 only do VSX memory options on Altivec registers.
13131 (extendsidi2_lfiwax): Likewise.
13132 (extendsfdf2_fpr): Likewise.
13133 (mov<mode>_hardfloat, SF/SD modes): Likewise.
13134 (mov<mode>_hardfloat32, DF/DD modes): Likewise.
13135 (mov<mode>_hardfloat64, DF/DD modes): Likewise.
13136 (movdi_internal64): Likewise.
13138 2013-09-27 Xinliang David Li <davidxl@google.com>
13140 * opts.c (finish_options): Adjust parameters
13141 according to vect cost model.
13142 (common_handle_option): Set dynamic vect cost
13144 targhooks.c (default_add_stmt_cost): Compute stmt cost
13146 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
13147 Use helper function.
13148 * tree-vectorizer.h (unlimited_cost_model): New function.
13149 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
13150 * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
13152 (vect_enhance_data_refs_alignment): Ditto.
13153 * flag-types.h: New enum.
13154 * common/config/i386/i386-common.c (ix86_option_init_struct):
13155 No need to initialize vect_cost_model flag.
13156 * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
13159 2013-09-27 Diego Novillo <dnovillo@google.com>
13161 * gimple.h (enum ssa_mode): Remove.
13163 2013-09-27 Paulo Matos <pmatos@broadcom.com>
13165 * cfgloop.h (number_of_loops): Fix typo in check for null.
13167 2013-09-27 Jakub Jelinek <jakub@redhat.com>
13169 PR middle-end/58551
13170 * tree-cfg.c (move_sese_region_to_fn): Also move loops that
13171 are children of outermost saved_cfun's loop, and set it up to
13172 be moved to dest_cfun's outermost loop. Fix up num_nodes adjustments
13173 if loop != loop0 and SESE region contains bbs that belong to loop0.
13175 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
13177 * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
13178 (binary_scale_code_p, get_base_term, get_index_term): New functions.
13179 (set_address_segment, set_address_base, set_address_index)
13180 (set_address_disp): Accept the argument unconditionally.
13181 (baseness): Remove must_be_base_p and must_be_index_p checks.
13182 (decompose_normal_address): Classify as much as possible in the
13185 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
13187 * cse.c (count_reg_usage): Handle INT_LIST.
13188 * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
13189 * reginfo.c (reg_scan_mark_refs): Likewise.
13190 * reload1.c (eliminate_regs_1): Likewise.
13192 2013-09-27 Iain Sandoe <iain@codesourcery.com>
13194 PR middle-end/58547
13195 * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
13198 2013-09-27 Richard Biener <rguenther@suse.de>
13200 PR tree-optimization/58459
13201 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
13202 restriction not propagating into loops.
13204 2013-09-26 Florian Weimer <fw@deneb.enyo.de>
13206 * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
13207 * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
13208 * doc/tree-ssa.texi (Walking use-def chains): Delete.
13210 2013-09-26 Richard Biener <rguenther@suse.de>
13212 * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
13214 2013-09-26 Richard Biener <rguenther@suse.de>
13216 * alias.h (component_uses_parent_alias_set): Rename to ...
13217 (component_uses_parent_alias_set_from): ... this.
13218 * alias.c (component_uses_parent_alias_set): Rename to ...
13219 (component_uses_parent_alias_set_from): ... this and return
13220 the desired parent.
13221 (reference_alias_ptr_type_1): Use the result from
13222 component_uses_parent_alias_set_from instead of stripping
13223 components one at a time.
13224 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
13226 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
13228 * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
13229 Move prototypes to...
13230 * tree-ssa-ter.h: New File. Move prototypes here.
13231 * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
13232 * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
13233 * tree-outof-ssa.c (ssa_is_replaceable_p): New. Refactor common bits
13234 from is_replaceable_p.
13235 * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
13236 (ter_is_replaceable_p): New. Use new refactored ssa_is_replaceable_p.
13237 (process_replaceable): Use ter_is_replaceable_p.
13238 (find_replaceable_in_bb): Use ter_is_replaceable_p.
13239 * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c. Use
13240 newly refactored ssa_is_replaceable_p.
13241 * cfgexpand.c: Include tree-outof-ssa.h.
13242 * ssaexpand.h: Delete.
13244 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
13246 * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
13247 (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
13249 (create_gimple_tmp): Delete.
13250 (get_expr_type, build_assign, build_type_cast): Move to...
13251 * gimple-builder.c: New File.
13252 (get_expr_type): Relocate from gimple.c.
13253 (build_assign, build_type_cast): Change to only create ssanames.
13254 * gimple.h: Move prototypes to...
13255 * gimple-builder.h: New File. Here.
13256 * tree-ssa.h: And here.
13257 * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
13258 count_uses_and_derefs): Relocate from gimple.c.
13259 (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
13260 * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
13261 * tree-ssa-math-opts (execute_cse_reciprocals): Use
13262 gimple_replace_ssa_lhs.
13263 * asan.c: Include gimple-builder.h.
13264 * Makefile.in: Add gimple-builder.o.
13266 2013-09-26 Richard Biener <rguenther@suse.de>
13268 * tree-ssa-live.c (var_map_base_init): Handle SSA names with
13269 DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
13270 (loe_visit_block): Use gcc_checking_assert.
13271 * tree-ssa-coalesce.c (create_outofssa_var_map): Use
13272 gimple_assign_ssa_name_copy_p.
13273 (gimple_can_coalesce_p): Adjust according to the var_map_base_init
13276 2013-09-26 David Edelsohn <dje.gcc@gmail.com>
13278 * config/rs6000/t-rs6000 (rs6000.o): Remove.
13279 (rs6000-c.o): Use COMPILE and POSTCOMPILE.
13281 2013-09-26 Richard Biener <rguenther@suse.de>
13283 PR tree-optimization/58539
13284 * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
13285 the fact that debug statements are not taking part in loop-closed
13288 2013-09-26 Nick Clifton <nickc@redhat.com>
13290 * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
13291 time warning message.
13292 (msp430_print_operand_raw): Delete unused letter parameter.
13293 (TARGET_PRINT_OPERAND_ADDRESS): Define.
13294 (msp430_print_operand_address): New function.
13295 (msp430_print_operand): Move address printing code from here to
13297 * config/msp430/msp430.md (movsipsi2): Add comment in generated
13299 (zero_extendpsisi2): Likewise.
13300 (extendpsisi2): New pattern.
13301 (andneghi3): New pattern.
13303 2013-09-26 Yvan Roux <yvan.roux@linaro.org>
13305 * config/aarch64/aarch64.opt (mlra): New option.
13306 * config/aarch64/aarch64.c (aarch64_lra_p): New function.
13307 (TARGET_LRA_P): Define.
13309 2013-09-26 Eric Botcazou <ebotcazou@adacore.com>
13311 * expr.c (expand_assignment): Remove obsolete comment.
13313 2013-09-25 Jeff Law <law@redhat.com>
13315 * tree-flow.h (thread_through_all_blocks): Prototype moved into
13316 tree-ssa-threadupdate.h.
13317 (register_jump_thread): Similarly.
13318 * tree-ssa-threadupdate.h: New header file.
13319 * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
13320 * tree-vrp.c: Likewise.
13321 * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
13322 (thread_around_empty_blocks): Change type of path vector argument to
13323 an edge,type pair from just an edge. Initialize both elements when
13324 appending to a jump threading path. Tweak references to elements
13326 (thread_across_edge): Similarly. Release memory for the elements
13328 * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
13329 (dump_jump_thread_path): New function broken out from
13330 register_jump_thread.
13331 (register_jump_thread): Use dump_jump_thread_path. Change type of
13332 path vector entries. Search the path for NULL edges and dump
13333 the path if one is found. Tweak the conversion of path to 3-edge
13334 form to use the block copy type information embedded in the path.
13336 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
13338 * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
13340 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
13341 Vladimir Makarov <vmakarov@redhat.com>
13343 * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
13344 from the least significant bit.
13345 (strip_address_mutations): Add bitfield operations handling.
13346 (must_be_index_p): Add shifting and rotate operations handling.
13347 (set_address_base): Use must_be_base_p predicate.
13348 (set_address_index): Use must_be_index_p predicate.
13350 2013-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
13351 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13352 Sergey Lega <sergey.s.lega@intel.com>
13353 Anna Tikhonova <anna.tikhonova@intel.com>
13354 Ilya Tocar <ilya.tocar@intel.com>
13355 Andrey Turetskiy <andrey.turetskiy@intel.com>
13356 Ilya Verbin <ilya.verbin@intel.com>
13357 Kirill Yukhin <kirill.yukhin@intel.com>
13358 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13360 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
13362 (ix86_expand_vector_move_misalign): Support new unaligned load and
13363 stores and use new names.
13364 (CODE_FOR_sse2_storedqu): Rename to ...
13365 (CODE_FOR_sse2_storedquv16qi): ... this.
13366 (CODE_FOR_sse2_loaddqu): Rename to ...
13367 (CODE_FOR_sse2_loaddquv16qi): ... this.
13368 (CODE_FOR_avx_loaddqu256): Rename to ...
13369 (CODE_FOR_avx_loaddquv32qi): ... this.
13370 (CODE_FOR_avx_storedqu256): Rename to ...
13371 (CODE_FOR_avx_storedquv32qi): ... this.
13372 * config/i386/i386.md (fpint_logic): New.
13373 * config/i386/sse.md (VMOVE): Extend for AVX512.
13377 (VI_UNALIGNED_LOADSTORE): Ditto.
13378 (sse2_avx_avx512f): Ditto.
13379 (sse2_avx2): Extend for AVX512.
13380 (sse4_1_avx2): Ditto.
13381 (avx2_avx512f): New.
13382 (sse): Extend for AVX512.
13385 (avxsizesuffix): Ditto.
13386 (sseintvecmode): Ditto.
13387 (ssePSmode): Ditto.
13388 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
13389 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
13390 (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
13391 (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
13392 (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
13393 (<sse2_avx_avx512f>_storedqu<mode): ... this.
13394 (<sse>_movnt<mode>): Replace constraint "x" with "v".
13395 (STORENT_MODE): Extend for AVX512.
13396 (*absneg<mode>2): Replace constraint "x" with "v".
13397 (*mul<mode>3): Ditto.
13398 (*ieee_smin<mode>3): Ditto.
13399 (*ieee_smax<mode>3): Ditto.
13400 (avx_cmp<mode>3): Replace VF with VF_128_256.
13401 (*<sse>_maskcmp<mode>3_comm): Ditto.
13402 (<sse>_maskcmp<mode>3): Ditto.
13403 (<sse>_andnot<mode>3): Extend for AVX512.
13404 (<code><mode>3, anylogic): Replace VF with VF_128_256.
13405 (<code><mode>3, fpint_logic): New.
13406 (*<code><mode>3): Extend for AVX512.
13407 (avx512flogicsuff): New.
13408 (avx512f_<logic><mode>): Ditto.
13409 (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
13411 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
13412 (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
13413 (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
13414 (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
13415 (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
13416 (xop_vpermil2<mode>3): Ditto.
13417 (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
13418 (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
13419 (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
13420 (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
13422 2013-09-25 Tom Tromey <tromey@redhat.com>
13424 * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
13425 (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
13426 (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
13427 (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
13428 (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
13429 (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
13430 (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
13431 (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
13432 (GRAPHITE_HTAB_H): Remove.
13434 2013-09-25 Tom Tromey <tromey@redhat.com>
13436 * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
13438 2013-09-25 Tom Tromey <tromey@redhat.com>
13440 * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
13442 2013-09-25 Tom Tromey <tromey@redhat.com>
13444 * config/i386/t-i386 (i386.o): Remove.
13445 (i386-c.o): Use COMPILE and POSTCOMPILE.
13447 2013-09-25 Tom Tromey <tromey@redhat.com>
13449 * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
13451 2013-09-25 Tom Tromey <tromey@redhat.com>
13453 * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
13454 (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
13455 (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
13456 (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
13457 (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
13458 (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
13459 (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
13460 (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
13461 (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
13462 (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
13463 (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
13464 (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
13465 (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
13466 (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
13467 (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
13468 (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
13469 (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
13470 (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
13471 (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
13472 (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
13473 (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
13474 (tree-ssa-pre.o, tree-ssa-sccvn.o)
13475 (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
13476 (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
13477 (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
13478 (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
13479 (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
13480 (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
13481 (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
13482 (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
13483 (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
13484 (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
13485 (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
13486 (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
13487 (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
13488 (graphite-clast-to-gimple.o, graphite-dependences.o)
13489 (graphite-interchange.o, graphite-poly.o)
13490 (graphite-scop-detection.o, graphite-sese-to-poly.o)
13491 (graphite-optimize-isl.o, tree-vect-loop.o)
13492 (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
13493 (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
13494 (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
13495 (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
13496 (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
13497 (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
13498 (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
13499 (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
13500 (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
13501 (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
13502 (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
13503 (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
13504 (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
13505 (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
13506 (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
13507 (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
13508 (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
13509 (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
13510 (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
13511 (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
13512 (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
13513 (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
13514 (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
13515 (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
13516 (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
13517 (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
13518 (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
13519 (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
13520 (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
13521 (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
13522 (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
13523 (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
13524 (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
13525 (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
13526 (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
13527 (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
13528 (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
13529 (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
13530 (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
13531 (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
13532 (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
13533 (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
13534 (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
13535 (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
13536 (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
13537 (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
13538 (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
13539 (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
13540 (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
13541 (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
13542 (gcov-dump.o): Remove.
13543 (default-c.o): Use COMPILE and POSTCOMPILE.
13544 (CFLAGS-gcc.o): New variable.
13545 ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
13547 2013-09-25 Tom Tromey <tromey@redhat.com>
13549 * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
13550 (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
13551 (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
13552 (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
13553 (c-family/c-pragma.o, c-family/c-pretty-print.o)
13554 (c-family/c-semantics.o, c-family/c-ada-spec.o)
13555 (c-family/array-notation-common.o, c-family/stub-objc.o)
13556 (c-family/c-ubsan.o): Remove.
13558 2013-09-25 Tom Tromey <tromey@redhat.com>
13560 * Makefile.in (C_TREE_H): Reference c/c-tree.h.
13562 2013-09-25 Tom Tromey <tromey@redhat.com>
13564 * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
13565 to add -DENABLE_SHARED_LIBGCC.
13566 (gcc.o): Don't use subshell.
13568 2013-09-25 Tom Tromey <tromey@redhat.com>
13570 * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
13571 * configure.ac: Don't invoke AM_PROG_CC_C_O.
13572 (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
13573 * configure, config.in: Rebuild.
13575 2013-09-25 Tom Tromey <tromey@redhat.com>
13577 * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
13578 (COMPILE, POSTCOMPILE): New variables.
13579 (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
13580 (DEPFILES): New variable.
13581 Include ".Po" files.
13582 * configure.ac: Add checks for dependency checking.
13583 * configure, aclocal.m4: Regenerate.
13585 2013-09-25 Tom Tromey <tromey@redhat.com>
13587 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
13588 ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
13590 2013-09-25 Tom Tromey <tromey@redhat.com>
13592 * Makefile.in (generated_files): Add options.h,
13593 target-hooks-def.h, insn-opinit.h,
13594 common/common-target-hooks-def.h, pass-instances.def,
13595 c-family/c-target-hooks-def.h.
13597 2013-09-25 Jeff Law <law@redhat.com>
13599 * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
13600 than foo[foo.length () - 1] to access last member in a vec.
13601 * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
13603 2013-09-25 Richard Biener <rguenther@suse.de>
13605 PR middle-end/58521
13606 * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
13608 2013-09-25 Jan Hubicka <jh@suse.cz>
13610 * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
13613 2013-09-25 Marek Polacek <polacek@redhat.com>
13616 * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
13617 when determining the type name.
13619 2013-09-24 Oleg Endo <olegendo@gcc.gnu.org>
13621 * config/sh/sh.md: Fix formatting.
13623 2013-09-24 Xinliang David Li <davidxl@google.com>
13625 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
13626 max peel iterations parameter.
13627 * param.def: New parameter.
13628 * doc/invoke.texi: Document New parameter.
13630 2013-09-24 Christophe Lyon <christophe.lyon@linaro.org>
13632 * gimple-pretty-print.c: Various whitespace tweaks.
13633 * tree-core.h: Likewise.
13634 * tree-pretty-print.c: Likewise.
13635 * tree-ssa-alias.c: Likewise.
13636 * tree-ssa-copy.c: Likewise.
13637 * tree-ssanames.c: Likewise.
13638 * tree-ssanames.h: Likewise.
13639 * tree-vrp.c: Likewise.
13641 2013-09-24 Alan Modra <amodra@gmail.com>
13643 PR middle-end/57134
13644 PR middle-end/57586
13645 * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
13646 for output operands that disallow regs. Don't use EXPAND_WRITE on
13649 2013-09-24 Richard Biener <rguenther@suse.de>
13651 PR middle-end/58513
13652 * tree.c (reference_alias_ptr_type): Move ...
13653 * alias.c (reference_alias_ptr_type): ... here and implement
13654 in terms of the new reference_alias_ptr_type_1.
13655 (ref_all_alias_ptr_type_p): New helper.
13656 (get_deref_alias_set_1): Drop flag_strict_aliasing here,
13657 use ref_all_alias_ptr_type_p.
13658 (get_deref_alias_set): Add flag_strict_aliasing check here.
13659 (reference_alias_ptr_type_1): New function, split out from ...
13660 (get_alias_set): ... here.
13661 (alias_ptr_types_compatible_p): New function.
13662 * alias.h (reference_alias_ptr_type): Declare.
13663 (alias_ptr_types_compatible_p): Likewise.
13664 * tree.h (reference_alias_ptr_type): Remove.
13665 * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
13666 to compare MEM_REF alias types.
13668 2013-09-24 Richard Biener <rguenther@suse.de>
13670 * tree-vrp.c (vrp_finalize): Check for SSA name presence.
13672 2013-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
13674 * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
13675 reload helper function arrays into a single array reg_addr.
13676 (reload_fpr_gpr): Likewise.
13677 (reload_gpr_vsx): Likewise.
13678 (reload_vsx_gpr): Likewise.
13679 (struct rs6000_reg_addr): Likewise.
13680 (reg_addr): Likewise.
13681 (rs6000_debug_reg_global): Change rs6000_vector_reload,
13682 reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
13683 (rs6000_init_hard_regno_mode_ok): Likewise.
13684 (rs6000_secondary_reload_direct_move): Likewise.
13685 (rs6000_secondary_reload): Likewise.
13687 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
13688 constraints: wu, ww, and wy. Repurpose wv constraint added during
13689 power8 changes. Put wg constraint in alphabetical order.
13691 * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
13692 for future work to add ISA 2.07 VSX single precision support.
13693 (-mvsx-scalar-double): Change default from -1 to 1, update
13694 documentation comment.
13695 (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
13696 (-mupper-regs-df): New debug switch to control whether DF values
13697 can go in the traditional Altivec registers.
13698 (-mupper-regs-sf): New debug switch to control whether SF values
13699 can go in the traditional Altivec registers.
13701 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
13702 and wy constraints.
13703 (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
13704 loop variables. Rename -mvsx-scalar-memory to -mupper-regs-df.
13705 Add new constraints, wu/ww/wy. Repurpose wv constraint.
13706 (rs6000_debug_legitimate_address_p): Print if we are running
13707 before, during, or after reload.
13708 (rs6000_secondary_reload): Add a comment.
13709 (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
13711 * config/rs6000/constraints.md (wa constraint): Sort w<x>
13712 constraints. Update documentation string.
13713 (wd constraint): Likewise.
13714 (wf constraint): Likewise.
13715 (wg constraint): Likewise.
13716 (wn constraint): Likewise.
13717 (ws constraint): Likewise.
13718 (wt constraint): Likewise.
13719 (wx constraint): Likewise.
13720 (wz constraint): Likewise.
13721 (wu constraint): New constraint for ISA 2.07 SFmode scalar
13723 (ww constraint): Likewise.
13724 (wy constraint): Likewise.
13725 (wv constraint): Repurpose ISA 2.07 constraint that we did not use
13726 in the previous submissions.
13727 * doc/md.texi (PowerPC and IBM RS6000): Likewise.
13729 2013-09-23 Richard Sandiford <rdsandiford@googlemail.com>
13731 * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
13732 (REG_BR_PROB): Say that the probability is stored in an int_list.
13733 * reg-notes.def: Update commentary to mention INT_LIST.
13734 * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
13735 (INT_LIST): New rtx.
13736 * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
13737 * rtlanal.c (int_reg_note_p): New function.
13738 (alloc_reg_note): Assert that the note does not have an int argument.
13739 (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
13740 * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
13741 * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
13742 rather than an INSN_LIST. Handle INT_LIST.
13743 * ifcvt.c (cond_exec_process_insns): Take the probability as an int
13744 rather than an rtx. Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
13745 (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
13746 Manipulate them as ints rather than rtxes.
13747 * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
13748 * regmove.c (copy_src_to_dest): Likewise.
13749 * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
13751 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
13752 into the cases that need it.
13753 * config/arm/arm.c (arm_unwind_emit): Likewise.
13755 * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
13756 * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
13757 * loop-doloop.c (add_test, doloop_modify): Likewise.
13758 * loop-unswitch.c (compare_and_jump_seq): Likewise.
13759 * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
13760 * predict.c (combine_predictions_for_insn): Likewise.
13761 * print-rtl.c (print_rtx): Handle INT_LIST.
13762 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
13763 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
13764 * config/arm/arm.c (emit_unlikely_jump): Likewise.
13765 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
13766 (ix86_split_fp_branch, predict_jump): Likewise.
13767 * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
13768 * config/sh/sh.c (expand_cbranchsi4): Likewise.
13769 * config/spu/spu.c (ea_load_store_inline): Likewise.
13771 * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
13772 value of a REG_BR_PROB note.
13773 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
13774 (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
13775 * emit-rtl.c (try_split): Likewise.
13776 * predict.c (br_prob_note_reliable_p): Likewise.
13777 (invert_br_probabilities, combine_predictions_for_insn): Likewise.
13778 * reorg.c (mostly_true_jump): Likewise.
13779 * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
13780 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
13781 * config/i386/i386.c (ix86_print_operand): Likewise.
13782 * config/ia64/ia64.c (ia64_print_operand): Likewise.
13783 * config/mmix/mmix.c (mmix_print_operand): Likewise.
13784 * config/rs6000/rs6000.c (output_cbranch): Likewise.
13785 * config/s390/s390.c (s390_expand_tbegin): Likewise.
13786 * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
13787 * config/sparc/sparc.c (output_cbranch): Likewise.
13788 * config/spu/spu.c (get_branch_target): Likewise.
13789 * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
13790 * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
13792 2013-09-23 Jan Hubicka <jh@suse.cz>
13794 * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
13796 * ipa-utils.h (possible_polymorphic_call_target_p): New function.
13797 * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
13799 * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
13800 (gimple_fold_call): Dump inconsistent devirtualizations; add
13801 sanity check for type based devirtualizations.
13802 * ipa-prop.c: Include ipa-utils.h
13803 (ipa_intraprocedural_devirtualization): Add sanity check.
13804 (try_make_edge_direct_virtual_call): Likewise.
13806 2013-09-23 Eric Botcazou <ebotcazou@adacore.com>
13808 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
13809 assignment statements.
13811 2013-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
13813 * gimple-pretty-print.c (dump_ssaname_info): New function.
13814 (dump_gimple_phi): Call it.
13815 (pp_gimple_stmt_1): Likewise.
13816 * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
13817 (range_info_def): Declare.
13818 * tree-pretty-print.c (pp_double_int): New function.
13819 (dump_generic_node): Call it.
13820 * tree-pretty-print.h (pp_double_int): Declare.
13821 * tree-ssa-alias.c (dump_alias_info): Check pointer type.
13822 * tree-ssanames.h (range_info_def): New structure.
13823 (value_range_type): Move definition here.
13824 (set_range_info, value_range_type, duplicate_ssa_name_range_info):
13826 * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
13828 (set_range_info): New function.
13829 (get_range_info): Likewise.
13830 (duplicate_ssa_name_range_info): Likewise.
13831 (duplicate_ssa_name_fn): Check pointer type and call
13832 duplicate_ssa_name_range_info.
13833 * tree-ssa-copy.c (fini_copy_prop): Likewise.
13834 * tree-vrp.c (value_range_type): Remove definition, now in
13836 (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
13837 * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
13838 (SSA_NAME_RANGE_INFO): New macro.
13840 2013-09-23 Richard Biener <rguenther@suse.de>
13842 PR tree-optimization/58464
13843 * tree-ssa-pre.c (phi_trans_lookup): Remove.
13844 (phi_trans_add): Change to add conditionally on being not present.
13845 (phi_translate_1): Remove recursion detection here.
13846 (phi_translate): Pre-seed the cache with NULL to catch
13847 recursion here in a more generic way.
13848 (bitmap_find_leader): Adjust comment.
13849 (get_representative_for): Dump value-numbers.
13850 (create_expression_by_pieces): Likewise.
13851 (insert_into_preds_of_block): Likewise.
13853 2013-09-23 Christian Bruel <christian.bruel@st.com>
13856 * config/sh/sh.md (movsf_ie): Allow fpul_operand.
13857 * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
13859 2013-09-23 James Greenhalgh <james.greenhalgh@arm.com>
13862 2013-09-20 Renlin Li <renlin.li@arm.com>
13864 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
13866 (aarch64_expand_epilogue): Likewise.
13867 (aarch64_legitimize_reload_address): Likewise.
13869 2013-09-22 Eric Botcazou <ebotcazou@adacore.com>
13871 * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
13872 NULL_TREE before pushing them onto the vector. Likewise for labels.
13874 2013-09-21 Eric Botcazou <ebotcazou@adacore.com>
13876 * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
13877 comparison operators when -fno-trapping-math is in effect.
13878 * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
13879 comparison operators in TFmode and assert that unsupported operators
13881 (ia64_print_operand): Likewise.
13883 2013-09-21 Jan Hubicka <jh@suse.cz>
13885 * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
13886 (sse_typeless_stores): Enable for core
13887 (sse_load0_by_pxor): Likewise.
13888 (four_jump_limit): Disable for core.
13889 (pad_returns): Likewise.
13890 (avoid_vector_decode): Likewise.
13891 (fuse_cmp_and_branch): Enable for cores.
13892 * i386.c (x86_accumulate_outgoing_args): Disable for cores.
13894 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
13896 PR middle-end/56791
13897 * config/pa/pa.c (pa_option_override): Disable auto increment and
13898 decrement instructions until reload is completed.
13900 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
13901 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
13902 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
13904 2013-09-20 DJ Delorie <dj@redhat.com>
13905 Nick Clifton <nickc@redhat.com>
13907 * config/rl78/rl78.c: Various whitespace and comment tweaks.
13908 (need_to_save): Save bank 0 on interrupts.
13909 (characterize_address): Strip far address wrappers.
13910 (rl78_as_legitimate_address): Likewise.
13911 (transcode_memory_rtx): Likewise.
13912 (rl78_peep_movhi_p): Disable this peephole after devirt.
13913 (rl78_propogate_register_origins): Forget all origins when a
13915 * config/rl78/rl78-virt.md: Various whitespace tweaks.
13916 * config/rl78/rl78-real.md: Various whitespace tweaks. Additional
13918 * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
13919 * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
13920 * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
13922 * config/rl78/constraints.md: Various whitespace and paren tweaks.
13924 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
13926 * config/pa/pa.md: In "scc" insn patterns, change output template to
13927 handle const0_rtx in reg_or_0_operand operands.
13929 2013-09-20 Martin Husemann <martin@NetBSD.org>
13932 * config/vax/vax.c (vax_output_int_move): Use D format specifier.
13933 * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
13935 2013-09-20 Richard Biener <rguenther@suse.de>
13937 PR middle-end/58484
13938 * tree-scalar-evolution.c (struct scev_info_str): Shrink by
13939 remembering SSA name version and block index.
13940 (new_scev_info_str): Adjust.
13941 (hash_scev_info): Likewise. Also hash the block index.
13942 (eq_scev_info): Adjust.
13943 (find_var_scev_info): Likewise.
13944 (struct instantiate_cache_entry): Remove.
13945 (struct instantiate_cache_type): Use a htab to map name, block
13947 (instantiate_cache_type::~instantiate_cache_type): Adjust.
13948 (get_instantiated_value_entry): Likewise.
13949 (hash_idx_scev_info, eq_idx_scev_info): New functions.
13950 (instantiate_scev_name): Adjust.
13952 2013-09-20 Jeff Law <law@redhat.com>
13954 * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
13956 2013-09-20 Yufeng Zhang <yufeng.zhang@arm.com>
13958 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
13959 Call aarch64_simd_expand_args to update op[argc].
13961 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
13963 * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
13966 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
13968 * gengtype.c (file_rules): Added rule for *.cc files.
13969 (get_output_file_with_visibility): Give fatal message when no
13972 2013-09-20 Renlin Li <renlin.li@arm.com>
13974 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
13975 (aarch64_expand_epilogue): Likewise.
13976 (aarch64_legitimize_reload_address): Likewise.
13978 2013-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
13980 PR middle-end/57748
13981 * expr.c (expand_assignment): Remove misalignp code path.
13983 2013-09-20 Marek Polacek <polacek@redhat.com>
13986 * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
13987 TYPE_PRECISION. Add asserts.
13989 2013-09-20 Richard Biener <rguenther@suse.de>
13991 PR tree-optimization/58453
13992 * tree-loop-distribution.c (distribute_loop): Apply the cost
13993 model for -ftree-loop-distribute-patterns, too.
13995 2013-09-20 Richard Biener <rguenther@suse.de>
13997 PR middle-end/58473
13998 * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
13999 make type comparison less strict.
14001 2013-09-20 Alan Modra <amodra@gmail.com>
14003 * configure: Regenerate.
14004 * aclocal.m4: Regenerate.
14006 2013-09-20 Marek Polacek <polacek@redhat.com>
14009 * doc/extend.texi: Document that attribute used is meant to be used
14010 on variables with static storage duration.
14012 2013-09-19 Jakub Jelinek <jakub@redhat.com>
14014 PR tree-optimization/58472
14015 * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
14016 simd_lane_access set inv_p = false.
14017 * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
14018 the simduid magic VAR_DECL.
14020 2013-09-19 Jan Hubicka <jh@suse.cz>
14022 * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
14024 2013-09-17 Jeff Law <law@redhat.com>
14026 * tree-ssa-dom.c (record_temporary_equivalences): New function
14027 split out of dom_opt_dom_walker::after_dom_children.
14028 (dom_opt_dom_walker::thread_across_edge): Move common code
14029 in here from dom_opt_dom_walker::after_dom_children.
14030 (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
14032 2013-09-19 Jan Hubicka <jh@suse.cz>
14034 * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
14035 (TARGET_GENERIC): Use PROCESOR_GENERIC
14036 (enum processor_type): Unify generic32 and 64.
14037 * i386.md (cpu): Likewise.
14038 * x86-tune.def (use_leave): Enable for generic32.
14039 (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
14040 * athlon.md: Change generic64 to generic in all occurences.
14041 * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
14042 (ix86_target_macros_internal): Likewise.
14043 * driver-i386.c (host_detect_local_cpu): Likewise.
14044 * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
14046 (generic_memcpy, generic_memset, generic_cost): This one.
14047 (generic32_memcpy, generic32_memset, generic32_cost): Remove.
14048 (m_GENERIC32, m_GENERIC64): Remove.
14049 (m_GENERIC): Turn into one flag.
14050 (processor_target): Unify generic tunnings.
14051 (ix86_option_override_internal): Replace generic32/64 by generic.
14052 (ix86_issue_rate): Likewise.
14053 (ix86_adjust_cost): Likewise.
14055 2013-09-19 Jan Hubicka <jh@suse.cz>
14057 * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
14058 of speculative flag.
14060 2013-09-19 Jakub Jelinek <jakub@redhat.com>
14062 * omp-low.c (expand_omp_sections): Always pass len - 1 to
14063 GOMP_sections_start, even if !exit_reachable.
14065 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
14067 * lra-constraints.c (need_for_all_save_p): Use macro
14068 HARD_REGNO_CALL_PART_CLOBBERED.
14069 * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
14070 set up pseudo conflict hard regs.
14072 2013-09-18 Michael Meissner <meissner@linux.vnet.ibm.com>
14075 * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
14078 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
14080 PR rtl-optimization/58438
14081 * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
14082 * lra-constraints.c (undo_optional_reloads): Keep optional reloads
14083 from previous subpasses.
14085 2013-09-18 Richard Earnshaw <rearnsha@arm.com>
14087 * arm.c (arm_get_frame_offsets): Validate architecture supports
14088 LDRD/STRD before accepting the tuning preference.
14089 (arm_expand_prologue): Likewise.
14090 (arm_expand_epilogue): Likewise.
14092 2013-09-18 Richard Biener <rguenther@suse.de>
14094 PR tree-optimization/58417
14095 * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
14096 have chrecs with symbols defined in the loop as operands.
14097 (chrec_fold_multiply): Likewise.
14098 * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
14099 parameters before folding binary operations.
14100 (struct instantiate_cache_entry_hasher): Remove.
14101 (struct instantiate_cache_type): Use a pointer-map.
14102 (instantiate_cache_type::instantiate_cache_type): New function.
14103 (instantiate_cache_type::get): Likewise.
14104 (instantiate_cache_type::set): Likewise.
14105 (instantiate_cache_type::~instantiate_cache_type): Adjust.
14106 (get_instantiated_value_entry): Likewise.
14107 (global_cache): New global.
14108 (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
14109 instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
14110 instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
14111 (instantiate_scev_name): Adjust.
14112 (instantiate_scev): Construct global instead of local cache.
14113 (resolve_mixers): Likewise.
14115 2013-09-18 Daniel Morris <danielm@ecoscentric.com>
14116 Paolo Carlini <paolo.carlini@oracle.com>
14119 * doc/implement-cxx.texi: Fix references to the C++ standards.
14121 2013-09-18 Jakub Jelinek <jakub@redhat.com>
14123 * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
14124 * tree-vect-data-refs.c (vect_analyze_data_refs): For
14125 simd_lane_access drs, update also DR_ALIGNED_TO.
14127 2013-09-18 Marek Polacek <polacek@redhat.com>
14130 * doc/extend.texi: Document no_sanitize_undefined attribute.
14131 * builtins.c (fold_builtin_0): Don't sanitize function if it has the
14132 no_sanitize_undefined attribute.
14134 2013-09-18 Nick Clifton <nickc@redhat.com>
14136 * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
14137 (ASM_DECLARE_FUNCTION_NAME): Define.
14139 2013-09-17 Trevor Saunders <tsaunders@mozilla.com>
14141 * compare-elim.c (find_comparison_dom_walker): New class
14142 (find_comparisons_in_bb): Rename to
14143 find_comparison_dom_walker::before_dom_children
14144 (find_comparisons): Adjust
14145 * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
14147 (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
14148 * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
14149 (init_walk_dominator_tree): Remove declaration.
14150 (fini_walk_dominator_tree): Remove declaration.
14151 * fwprop.c (single_def_use_dom_walker): New class
14152 (single_def_use_enter_block): Convert to
14153 single_def_use_dom_walker::before_dom_children.
14154 (single_def_use_leave_block): Convert to
14155 single_def_use_dom_walker::after_dom_children.
14156 (build_single_def_use_links): Adjust.
14157 * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
14159 (find_candidates_in_block): Convert to
14160 find_candidates_dom_walker::before_dom_children.
14161 (execute_strength_reduction): Adjust.
14162 * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
14163 (sese_dom_walker): New class.
14164 (sese_dom_walker::sese_dom_walker): New constructor.
14165 (sese_dom_walker::~sese_dom_walker): New destructor.
14166 (build_sese_conditions_before): Convert to
14167 sese_dom_walker::before_dom_children.
14168 (build_sese_conditions_after): Convert to
14169 sese_dom_walker::after_dom_children.
14170 (build_poly_scop): Adjust
14171 * tree-into-ssa.c (rewrite_dom_walker): New class
14172 (rewrite_enter_block): Convert to
14173 rewrite_dom_walker::before_dom_children.
14174 (rewrite_leave_block): Convert to
14175 rewrite_dom_walker::after_dom_children.
14176 (rewrite_update_dom_walker): New class.
14177 (rewrite_update_enter_block): Convert to
14178 rewrite_update_dom_walker::before_dom_children.
14179 (rewrite_update_leave_block): Convert to
14180 rewrite_update_dom_walker::after_dom_children.
14181 (rewrite_blocks, rewrite_into_ssa): Adjust.
14182 (mark_def_dom_walker): New class.
14183 (mark_def_dom_walker::mark_def_dom_walker): New constructor.
14184 (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
14185 (mark_def_sites_blocks): Convert to
14186 mark_def_dom_walker::before_dom_children.
14187 (mark_def_site_blocks): Remove.
14188 * tree-ssa-dom.c (dom_opt_dom_walker): New class.
14189 (tree_ssa_dominator_optimize): Adjust.
14190 (dom_thread_across_edge): Convert to method
14191 dom_opt_dom_walker::thread_across_edge.
14192 (dom_opt_enter_block): Convert to member function
14193 dom_opt_dom_walker::before_dom_children.
14194 (dom_opt_leave_block): Convert to member function
14195 dom_opt_dom_walker::after_dom_children.
14196 * tree-ssa-dse.c (dse_dom_walker): New class.
14197 (dse_enter_block): Convert to member function
14198 dse_dom_walker::before_dom_children.
14199 (tree_ssa_dse): Adjust.
14200 * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
14201 (determine_invariantness_stmt): Convert to method
14202 invariantness_dom_walker::before_dom_children.
14203 (determine_invariantness): Remove
14204 (move_computations_dom_walker): New class.
14205 (move_computations_stmt): Convert to method
14206 move_computations_dom_walker::before_dom_children.
14207 (move_computations, tree_ssa_lim): Adjust.
14208 * tree-ssa-phiopt.c (nontrapping_dom_walker): New class.
14209 (nt_init_block): Convert to method
14210 notrappping_dom_walker::before_dom_children.
14211 (nt_fini_block): Convert to method
14212 method nontrapping_dom_walker::after_dom_children.
14213 (get_non_trapping): Adjust.
14214 * tree-ssa-pre.c (eliminate_dom_walker): New class.
14215 (eliminate_bb): Convert to method
14216 eliminate_dom_walker::before_dom_children.
14217 (eliminate_leave_block): Convert to method
14218 eliminate_dom_walker::after_dom_children.
14219 (eliminate): Adjust.
14220 * tree-ssa-strlen.c (strlen_dom_walker): New class.
14221 (strlen_enter_block): Convert to method
14222 strlen_dom_walker::before_dom_children.
14223 (strlen_leave_block): Convert to method
14224 method strlen_dom_walker::after_dom_children.
14225 (tree_ssa_strlen): Adjust.
14226 * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
14227 (tree_ssa_uncprop): Adjust.
14228 (uncprop_leave_block): Convert to method
14229 uncprop_dom_walker::after_dom_children.
14230 (uncprop_leave_block): Convert to method
14231 uncprop_dom_walker::before_dom_children.
14233 2013-09-18 Bin Cheng <bin.cheng@arm.com>
14235 * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
14236 branch in same basic block. Check both src and dest of the move insn.
14238 2013-09-17 Nick Clifton <nickc@redhat.com>
14240 * config/rl78/rl78-real.md (bf): New pattern.
14242 * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
14243 (rl78_print_operand): Do not put a # before a %B.
14244 * config/rl78/rl78.opt: Tweak doc strings.
14246 2013-09-17 DJ Delorie <dj@redhat.com>
14248 * config/rl78/constraints.md (Wcv): Allow up to $r31.
14249 * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
14250 (rl78_option_override): Likewise, if -mallregs.
14251 (is_virtual_register): Likewise.
14252 * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
14253 (REGNO_OK_FOR_BASE_P): Likewise.
14254 * config/rl78/rl78.opt (-mallregs): New.
14256 2013-09-17 Nick Clifton <nickc@redhat.com>
14258 * config/rl78/rl78.c (need_to_save): Change return type to bool.
14259 For interrupt functions: save all call clobbered registers if the
14260 interrupt handler is not a leaf function.
14261 (rl78_expand_prologue): Always recompute the frame information.
14262 For interrupt functions: only select bank 0 if one of the bank 0
14263 registers is going to be psuhed.
14265 2013-09-17 DJ Delorie <dj@redhat.com>
14267 * config/rl78/constraints.md: For each W* constraint, rename to C*
14268 and create a W* constraint that checks for an optional ES: prefix
14270 * config/rl78/rl78.md (UNS_ES_ADDR): New.
14271 (es_addr): New. Used to wrap far addresses.
14272 * config/rl78/rl78-protos.h (rl78_es_addr): New.
14273 (rl78_es_base): New.
14274 * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
14275 wrapped far addresses.
14276 (rl78_print_operand_1): Unwrap far addresses before processing.
14277 (rl78_lo16): Wrap far addresses in unspecs.
14278 (rl78_es_addr): New.
14279 (rl78_es_base): New.
14280 (insn_ok_now): Check for not-yet-wrapped far addresses.
14281 (transcode_memory_rtx): Properly re-wrap far addresses.
14283 2013-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
14285 * config/sparc/t-rtems: Add leon3 multilibs.
14287 2013-09-17 Cong Hou <congh@google.com>
14289 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
14290 when checking the dot production pattern. The type of rhs operand
14291 of multiply is now checked correctly.
14293 2013-09-17 Jeff Law <law@redhat.com>
14295 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
14296 edge implied equivalences into successor phis.
14297 * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
14298 here from tree-ssa-threadedge.c.
14299 (mark_threaded_blocks): When threading through a joiner, if both
14300 successors of the joiner's clone reach the same block, verify the
14301 PHI arguments are equal. If not, cancel the jump threading request.
14302 * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
14303 tree-ssa-threadupdate.c
14304 (thread_across_edge): Don't check PHI argument equality when
14305 threading through joiner block here.
14307 2013-09-17 Andrew MacLeod <amacleod@redhat.com>
14309 * tree-flow.h (ssa_undefined_value_p): Remove prototype.
14310 * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
14311 (warn_uninit, warn_uninitialized_vars,
14312 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
14313 Move to tree-ssa-uninit.c.
14314 * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c.
14315 (has_undefined_value_p): New. Pass dependant parts of
14316 ssa_undefined_value_p.
14317 (uninit_undefined_value_p): Use has_undefined_value_p.
14318 (warn_uninit, warn_uninitialized_vars,
14319 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
14320 Move from tree-ssa.c.
14321 * tree-ssa.h: Adjust prototypes.
14323 2013-09-17 Jan Hubicka <jh@suse.cz>
14325 PR middle-end/58332
14326 * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
14327 * ipa-inline.c (can_inline_edge_p): Do not downgrade
14328 FUNCTION_NOT_OPTIMIZED.
14329 * ipa-inline-analysis.c (compute_inline_parameters): Function
14330 not optimized is not inlinable unless it is alwaysinline.
14331 (inline_analyze_function): Force calls in not optimized
14332 function not inlinable.
14334 2013-09-17 Jan Hubicka <jh@suse.cz>
14336 PR middle-end/58329
14337 * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
14339 * ipa.c (function_and_variable_visibility): Likewise.
14340 * ipa-profile.c (ipa_profile): Likewise.
14342 2013-09-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
14345 * cgraph.c (cgraph_function_body_availability): Check for ifunc
14346 attribute, and don't inline the resolver in this case.
14348 2013-09-17 Teresa Johnson <tejohnson@google.com>
14350 * coverage.c (get_coverage_counts): Add missing newline.
14352 2013-09-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14354 PR tree-optimization/58088
14355 * fold-const.c (mask_with_trailing_zeros): New function.
14356 (fold_binary_loc): Make sure we don't recurse infinitely
14357 when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
14358 Use mask_with_trailing_zeros where appropriate.
14360 2013-09-17 Yuri Rumyantsev <ysrumyan@gmail.com>
14362 * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
14363 of 'prev' var to get better distance estimation.
14365 2013-09-17 Eric Botcazou <ebotcazou@adacore.com>
14367 * tree-inline.h (struct copy_body_data): Add transform_parameter.
14368 * tree-inline.c (is_parameter_of): New predicate.
14369 (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
14370 a parameter has been remapped.
14371 (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
14372 (optimize_inline_calls): Initialize transform_parameter.
14373 (copy_gimple_seq_and_replace_locals): Likewise.
14374 (tree_function_versioning): Likewise.
14375 (maybe_inline_call_in_expr): Likewise.
14377 2013-09-17 Nick Clifton <nickc@redhat.com>
14379 * config/msp430/msp430-protos.h: Add prototypes for new functions.
14380 * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
14381 interrupt handlers.
14382 (is_attr_func): New function.
14383 (msp430_is_interrupt_func): New function.
14384 (is_naked_func): New function.
14385 (is_reentrant_func): New function.
14386 (is_critical_func): New function.
14387 (msp430_start_function): Add annotations for function attributes.
14388 (msp430_attr): New function.
14389 (msp430_attribute_table): New.
14390 (msp430_function_section): New function.
14391 (TARGET_ASM_FUNCTION_SECTION): Define.
14392 (msp430_builtin): New enum.
14393 (msp430_init_builtins): New function.
14394 (msp430_builtin_devl): New function.
14395 (msp430_expand_builtin): New function.
14396 (TARGET_INIT_BUILTINS): Define.
14397 (TARGET_EXPAND_BUILTINS): Define.
14398 (TARGET_BUILTIN_DECL): Define.
14399 (msp430_expand_prologue): Add support for naked, interrupt,
14400 critical and reentrant functions.
14401 (msp430_expand_epilogue): Likewise.
14402 (msp430_print_operand): Handle 'O' character.
14403 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
14405 * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
14406 UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
14407 (pushm): Use a 'n' rather than an 'i' constraint.
14408 (msp_return): Add generation of the interrupt return instruction.
14409 (disable_interrupts): New pattern.
14410 (enable_interrupts): New pattern.
14411 (push_intr_state): New pattern.
14412 (pop_intr_state): New pattern.
14413 (bic_SR): New pattern.
14414 (bis_SR): New pattern.
14415 * doc/extend.texi: Document MSP430 function attributes and builtin
14418 2013-09-17 Richard Biener <rguenther@suse.de>
14420 PR tree-optimization/58432
14421 * tree-loop-distribution.c (tree_loop_distribution): Also
14422 scan PHIs for outside loop uses and seed a partition from them.
14424 2013-09-17 Bin Cheng <bin.cheng@arm.com>
14426 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
14427 (restructure_reference): Call backtrace_base_for_ref.
14429 2013-09-17 Alan Modra <amodra@gmail.com>
14432 * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
14435 2013-09-16 DJ Delorie <dj@redhat.com>
14437 * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
14438 vregs location for RL78/G10.
14439 (rl78_expand_prologue): Avoid SEL on G10.
14440 (rl78_expand_epilogue): Likewise.
14441 (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
14442 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
14443 __RL78_G10__ when appropriate.
14444 (ASM_SPEC): Pass -mg10 along to the assembler.
14445 * config/rl78/rl78.md (sel_rb): Disable for G10.
14446 * config/rl78/rl78.opt: Add -mg10 option.
14447 * config/rl78/t-rl78: Add -mg10 multilib.
14449 2013-09-16 Xinliang David Li <davidxl@google.com>
14451 * tree-if-conv.c (main_tree_if_conversion): Check new flag.
14452 * omp-low.c (omp_max_vf): Ditto.
14453 (expand_omp_simd): Ditto.
14454 * tree-vectorizer.c (vectorize_loops): Ditto.
14455 (gate_vect_slp): Ditto.
14456 (gate_increase_alignment): Ditto.
14457 * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
14458 * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
14459 (gate_tree_vectorize): Name change.
14460 (tree_vectorize): Ditto.
14461 (pass_vectorize::gate): Call new function.
14462 (pass_vectorize::execute): Ditto.
14463 * opts.c: O3 default setting change.
14464 (finish_options): Check new flag.
14465 * doc/invoke.texi: Document new flags.
14466 * common.opt: New flags.
14468 2013-09-16 Andreas Schwab <schwab@linux-m68k.org>
14470 * doc/tm.texi.in (Cond Exec Macros): Remove node.
14471 (Condition Code): Don't reference it.
14472 * doc/tm.texi: Regenerate.
14474 2013-09-16 Vladimir Makarov <vmakarov@redhat.com>
14476 PR middle-end/58418
14477 * lra-constraints.c (undo_optional_reloads): Consider all optional
14478 reload even if it did not get a hard reg.
14480 2013-09-16 Teresa Johnson <tejohnson@google.com>
14482 * dumpfile.c (dump_loc): Remove newline emission.
14483 * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
14484 emission to dump_printf_loc calls where missing.
14485 (vect_mark_for_runtime_alias_test): Ditto.
14486 (vect_analyze_data_ref_dependence): Ditto.
14487 (vect_analyze_data_ref_dependences): Ditto.
14488 (vect_slp_analyze_data_ref_dependence): Ditto.
14489 (vect_slp_analyze_data_ref_dependences): Ditto.
14490 (vect_compute_data_ref_alignment): Ditto.
14491 (vect_update_misalignment_for_peel): Ditto.
14492 (vect_verify_datarefs_alignment): Ditto.
14493 (vector_alignment_reachable_p): Ditto.
14494 (vect_get_data_access_cost): Ditto.
14495 (vect_enhance_data_refs_alignment): Ditto.
14496 (vect_find_same_alignment_drs): Ditto.
14497 (vect_analyze_data_refs_alignment): Ditto.
14498 (vect_analyze_group_access): Ditto.
14499 (vect_analyze_data_ref_access): Ditto.
14500 (vect_analyze_data_ref_accesses): Ditto.
14501 (vect_prune_runtime_alias_test_list): Ditto.
14502 (vect_analyze_data_refs): Ditto.
14503 (vect_create_addr_base_for_vector_ref): Ditto.
14504 (vect_create_data_ref_ptr): Ditto.
14505 (vect_grouped_store_supported): Ditto.
14506 (vect_grouped_load_supported): Ditto.
14507 * value-prof.c (check_counter): Ditto.
14508 (check_ic_target): Ditto.
14509 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
14510 (vect_recog_widen_mult_pattern): Ditto.
14511 (vect_recog_widen_sum_pattern): Ditto.
14512 (vect_recog_over_widening_pattern): Ditto.
14513 (vect_recog_widen_shift_pattern): Ditto.
14514 (vect_recog_rotate_pattern): Ditto.
14515 (vect_recog_vector_vector_shift_pattern): Ditto.
14516 (vect_recog_divmod_pattern): Ditto.
14517 (vect_recog_mixed_size_cond_pattern): Ditto.
14518 (vect_recog_bool_pattern): Ditto.
14519 (vect_pattern_recog_1): Ditto.
14520 (vect_pattern_recog): Ditto.
14521 * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
14522 (vect_is_simple_iv_evolution): Ditto.
14523 (vect_analyze_scalar_cycles_1): Ditto.
14524 (vect_get_loop_niters): Ditto.
14525 (vect_analyze_loop_1): Ditto.
14526 (vect_analyze_loop_form): Ditto.
14527 (vect_analyze_loop_operations): Ditto.
14528 (vect_analyze_loop_2): Ditto.
14529 (vect_analyze_loop): Ditto.
14530 (report_vect_op): Ditto.
14531 (vect_is_slp_reduction): Ditto.
14532 (vect_is_simple_reduction_1): Ditto.
14533 (vect_get_known_peeling_cost): Ditto.
14534 (vect_estimate_min_profitable_iters): Ditto.
14535 (vect_model_reduction_cost): Ditto.
14536 (vect_model_induction_cost): Ditto.
14537 (get_initial_def_for_induction): Ditto.
14538 (vect_create_epilog_for_reduction): Ditto.
14539 (vectorizable_reduction): Ditto.
14540 (vectorizable_induction): Ditto.
14541 (vectorizable_live_operation): Ditto.
14542 (vect_loop_kill_debug_uses): Ditto.
14543 (vect_transform_loop): Ditto.
14544 * tree-vect-stmts.c (vect_mark_relevant): Ditto.
14545 (vect_stmt_relevant_p): Ditto.
14546 (process_use): Ditto.
14547 (vect_mark_stmts_to_be_vectorized): Ditto.
14548 (vect_model_simple_cost): Ditto.
14549 (vect_model_promotion_demotion_cost): Ditto.
14550 (vect_model_store_cost): Ditto.
14551 (vect_get_store_cost): Ditto.
14552 (vect_model_load_cost): Ditto.
14553 (vect_get_load_cost): Ditto.
14554 (vect_init_vector_1): Ditto.
14555 (vect_get_vec_def_for_operand): Ditto.
14556 (vect_finish_stmt_generation): Ditto.
14557 (vectorizable_call): Ditto.
14558 (vectorizable_conversion): Ditto.
14559 (vectorizable_assignment): Ditto.
14560 (vectorizable_shift): Ditto.
14561 (vectorizable_operation): Ditto.
14562 (vectorizable_store): Ditto.
14563 (vectorizable_load): Ditto.
14564 (vectorizable_condition): Ditto.
14565 (vect_analyze_stmt): Ditto.
14566 (vect_transform_stmt): Ditto.
14567 (vect_is_simple_use): Ditto.
14568 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
14569 (vect_can_advance_ivs_p): Ditto.
14570 (vect_update_ivs_after_vectorizer): Ditto.
14571 (vect_do_peeling_for_loop_bound): Ditto.
14572 (vect_gen_niters_for_prolog_loop): Ditto.
14573 (vect_update_inits_of_drs): Ditto.
14574 (vect_create_cond_for_alias_checks): Ditto.
14575 * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
14576 (vect_build_slp_tree_1): Ditto.
14577 (vect_supported_load_permutation_p): Ditto.
14578 (vect_analyze_slp_instance): Ditto.
14579 (vect_analyze_slp): Ditto.
14580 (vect_make_slp_decision): Ditto.
14581 (vect_detect_hybrid_slp): Ditto.
14582 (vect_bb_vectorization_profitable_p): Ditto.
14583 (vect_slp_analyze_bb_1): Ditto.
14584 (vect_update_slp_costs_according_to_vf): Ditto.
14585 (vect_get_mask_element): Ditto.
14586 (vect_transform_slp_perm_load): Ditto.
14587 (vect_schedule_slp_instance): Ditto.
14588 (vect_schedule_slp): Ditto.
14589 (vect_slp_transform_bb): Ditto.
14590 * profile.c (read_profile_edge_counts): Ditto.
14591 (compute_branch_probabilities): Ditto.
14592 * coverage.c (get_coverage_counts): Ditto.
14594 2013-09-16 Diego Novillo <dnovillo@google.com>
14596 * tree-core.h: Add missing comment lines from refactoring of tree.h.
14598 2013-09-16 Jan Hubicka <jh@suse.cz>
14600 * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
14601 abstract functions; for static functions check the presence of body.
14603 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
14605 * config/aarch64/aarch64-simd-builtins.def (fma): New.
14606 * config/aarch64/aarch64-simd.md
14607 (aarch64_mla_elt<mode>): New.
14608 (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
14609 (aarch64_mls_elt<mode>): Likewise.
14610 (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
14611 (aarch64_fma4_elt<mode>): Likewise.
14612 (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
14613 (aarch64_fma4_elt_to_128v2df): Likewise.
14614 (aarch64_fma4_elt_to_64df): Likewise.
14615 (fnma<mode>4): Likewise.
14616 (aarch64_fnma4_elt<mode>): Likewise.
14617 (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
14618 (aarch64_fnma4_elt_to_128v2df): Likewise.
14619 (aarch64_fnma4_elt_to_64df): Likewise.
14620 * config/aarch64/iterators.md (VDQSF): New.
14621 * config/aarch64/arm_neon.h
14622 (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
14623 (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
14625 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
14627 * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
14628 (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
14629 (aarch64_mul3_elt_to_128df): Likewise.
14630 (aarch64_mul3_elt_to_64v2df): Likewise.
14631 * config/aarch64/iterators.md (VEL): Also handle DFmode.
14633 (VMUL_CHANGE_NLANES) Likewise.
14636 * config/aarch64/arm_neon.h
14637 (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
14639 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
14641 * config/aarch64/arm_neon.h
14642 (vcvtx_high_f32_f64): Fix parameters.
14644 2013-09-16 Jan-Benedict Glaw <jbglaw@lug-owl.de>
14645 Uros Bizjak <ubizjak@gmail.com>
14647 * config/alpha.c: Include tree-ssanames.h.
14649 2013-09-16 Richard Biener <rguenther@suse.de>
14651 * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
14652 (dot_rdg_1): Handle control_dd.
14653 (create_edge_for_control_dependence): New function.
14654 (create_rdg_edges): Add control dependences if asked for.
14655 (build_rdg): Likewise.
14656 (generate_loops_for_partition): If there are not necessary
14657 control stmts remove all their dependencies.
14658 (collect_condition_stmts, rdg_flag_loop_exits): Remove.
14659 (distribute_loop): Pass on control dependences.
14660 (tree_loop_distribution): Compute control dependences and remove
14661 restriction on number of loop nodes.
14663 2013-09-16 Jakub Jelinek <jakub@redhat.com>
14665 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
14666 for internal calls.
14668 2013-09-16 Richard Sandiford <rdsandiford@googlemail.com>
14670 * cse.c (try_const_anchors): Punt on CC modes.
14672 2013-09-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
14674 * config/vax/constraints.md (T): Add missing CONSTANT_P check.
14676 2013-09-14 John David Anglin <danglin@gcc.gnu.org>
14679 * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
14680 calls to word_mode.
14682 2013-09-14 Iain Sandoe <iain@codesourcery.com>
14685 * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
14687 (darwin_objc1_section): Likewise.
14688 (darwin_file_end): Emit Image Info section when required.
14690 2013-09-14 Jan Hubicka <jh@suse.cz>
14692 * tree-into-ssa.c (gate_into_ssa): New.
14693 (pass_data_build_ssa): Use it.
14694 * cgraph.h (expand_thunk): Update prototype.
14695 * cgraphunit.c (analyze_function): Expand thunks early.
14696 (expand_thunk): Fix DECL_CONTEXT of reust_decl;
14697 build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
14698 set lowered flag; do not add new function.
14699 (assemble_thunks_and_aliases): Update.
14700 * tree-ssa.c (gate_init_datastructures): New gate.
14701 (pass_data_init_datastructures): Use it.
14703 2013-09-14 Iain Sandoe <iain@codesourcery.com>
14706 * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
14707 xmm register set described in the psABI.
14709 2013-09-13 Evgeny Gavrin <e.gavrin@samsung.com>
14711 * dwarf2out.c (should_emit_struct_debug): Add check
14712 for type_decl variable is not NULL.
14714 2013-09-13 Jacek Caban <jacek@codeweavers.com>
14716 * config.gcc: Use new winnt-c.c target hooks
14717 * config/t-winnt: New file
14718 * config/winnt-c.c: New file
14719 * doc/tm.texi.in: Document new hook
14720 * doc/tm.texi: Regenerated
14722 2013-09-13 Jan Hubicka <jh@suse.cz>
14724 PR middle-end/58094
14725 * ipa-inline.c (check_callers): New function.
14726 (check_caller_edge): Remove.
14727 (want_inline_function_to_all_callers_p): Also permit alises that are
14729 (inline_to_all_callers): Terminate the walk when devirtualization
14730 introduce new calls.
14732 2013-09-13 Jan Hubicka <jh@suse.cz>
14734 * ipa-inline-analysis.c (struct growth_data): Add node.
14735 (do_estimate_growth_1): Fix detection of recursion.
14737 2013-09-13 Jakub Jelinek <jakub@redhat.com>
14739 PR tree-optimization/58392
14740 * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
14741 to avoid shadowing of outer loop variable. If
14742 saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
14743 replace_by_duplicate_decl simduid of loops that have it set and
14744 set dest_cfun->has_simduid_loops and/or
14745 dest_cfun->has_force_vect_loops.
14746 * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
14747 instead of maybe_lookup_decl.
14748 * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
14749 Use id->blocks_to_copy instead of blocks_to_copy. Adjust recursive
14750 call. Copy over force_vect and copy and remap simduid. Set
14751 cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
14752 (copy_cfg_body): Remove blocks_to_copy argument. Use
14753 id->blocks_to_copy instead of blocks_to_copy. Adjust copy_loops
14754 caller. Don't set cfun->has_simduid_loops and/or
14755 cfun->has_force_vect_loops here.
14756 (copy_body): Remove blocks_to_copy argument. Adjust copy_cfg_body
14758 (expand_call_inline, tree_function_versioning): Adjust copy_body
14761 2013-09-13 Martin Jambor <mjambor@suse.cz>
14764 * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
14765 the assert if the edge was a speculative one.
14767 2013-09-13 Richard Biener <rguenther@suse.de>
14769 * tree-data-ref.h (known_dependences_p): Move here ...
14770 * tree-loop-distribution.c (known_dependences_p): ... from here.
14771 (dump_rdg_component, debug_rdg_component): Remove.
14772 (dump_rdg): Adjust.
14773 (generate_loops_for_partition): Use gimple_uid instead of
14774 relying on matching stmt visit order.
14775 (rdg_build_partitions): Take starting stmt vector.
14776 (ldist_gen): Merge into ...
14777 (distribute_loop): ... this function. Do not compute starting
14779 * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
14781 2013-09-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14783 * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
14784 Set type attribute correctly. Set predicable_short_it attribute.
14785 (cmpsi_shiftsi): Remove %? from output template.
14787 2013-09-13 Richard Biener <rguenther@suse.de>
14789 * tree-loop-distribution.c (struct rdg_component,
14790 rdg_defs_used_in_other_loops_p, free_rdg_components,
14791 rdg_build_components): Remove.
14792 (stmts_from_loop): Do not record virtual PHIs.
14793 (generate_loops_for_partition): Skip virtual PHIs.
14794 (build_rdg_partition_for_component): Rename to ...
14795 (build_rdg_partition_for_vertex): ... this and adjust.
14796 (rdg_build_partitions): Take a vector of starting vertices
14797 instead of components. Remove unnecessary leftover handling.
14798 (ldist_gen): Do not build components or record other stores.
14799 (distribute_loop): Do not distribute loops containing stmts
14802 2013-09-13 Christian Bruel <christian.bruel@st.com>
14805 * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
14807 2013-09-13 Kai Tietz <ktietz@redhat.com>
14809 * config.gcc: Separate cases for mingw and cygwin targets,
14810 and add 64-bit cygwin target case.
14812 * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
14813 dll-export inline-functions.
14814 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
14816 2013-09-13 Jeff Law <law@redhat.com>
14818 PR middle-end/58387
14820 2013-09-06 Jeff Law <law@redhat.com>
14822 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
14823 edge implied equivalences into successor phis.
14825 2013-09-12 DJ Delorie <dj@redhat.com>
14827 * config/rl78/rl78-virt.md: Change from | to \; for asm line
14830 2013-09-12 Brooks Moses <bmoses@google.com>
14833 * Makefile.in: Do not install driver binaries in $(target)/bin.
14835 2013-09-12 DJ Delorie <dj@redhat.com>
14837 * config/rl78/rl78.opt (mrelax): New.
14838 * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
14839 * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
14841 * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
14843 (rl78_expand_epilogue): Likewise.
14845 2013-09-12 Vladimir Makarov <vmakarov@redhat.com>
14847 PR middle-end/58335
14848 * lra-eliminations.c (remove_reg_equal_offset_note): New.
14849 (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
14850 pointer elimination with using remove_reg_equal_offset_note.
14852 2013-09-12 DJ Delorie <dj@redhat.com>
14854 * config/msp430/: New port.
14855 * config.gcc (msp430): Added.
14856 * doc/invoke.texi: Document MSP430 options.
14857 * doc/install.texi: Document msp430-elf
14858 * doc/md.texi: Document msp430-elf
14859 * doc/contrib.texi: Document msp430-elf
14861 * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
14864 2013-09-12 Martin Jambor <mjambor@suse.cz>
14867 * ipa-prop.c (remove_described_reference): Give up if the edge in the
14868 reference descriptor is NULL.
14869 (ipa_edge_removal_hook): If owning a reference descriptor, set its
14872 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
14874 * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
14875 (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
14876 num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
14877 * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
14878 make_temp_ssa_name): move to tree-ssanames.h
14879 * tree-ssa-alias.h: Move prototype.
14880 * tree-ssa.h: Include tree-ssanames.h.
14881 * tree-ssanames.c (FREE_SSANAMES): Move to here.
14882 * tree-ssanames.h: New. Move items from tree-flow*.h
14883 * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
14885 2013-09-12 Richard Biener <rguenther@suse.de>
14887 PR tree-optimization/58404
14888 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
14889 propagate non-invariant addresses into dereferences wrapped
14890 in component references.
14892 2013-09-12 Richard Biener <rguenther@suse.de>
14894 PR tree-optimization/58402
14895 * passes.def: Move pass_late_warn_uninitialized later.
14897 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
14899 * tree-ssa.h: New. Move content from tree-flow.h and
14900 tree-flow-inline.h.
14901 * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
14902 Move prototypes belonging to tree-ssa.c.
14903 * tree-flow-inline.h (redirect_edge_var_map_def,
14904 redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
14906 * gimple.h: Adjust prototypes.
14907 * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
14909 * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
14910 * tree.h: Move prototype to tree-ssa.h.
14911 * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
14912 * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
14913 * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
14914 cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
14915 cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
14916 ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
14917 gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
14918 gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
14919 graphite-blocking.c, graphite-clast-to-gimple.c,
14920 graphite-dependences.c, graphite-interchange.c,
14921 graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
14922 graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
14923 ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
14924 ipa-reference.c, ipa-split.c, ipa-utils.c,
14925 loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
14926 lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
14927 passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
14928 tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
14929 tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
14930 tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
14931 tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
14932 tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
14933 tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
14934 tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
14935 tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
14936 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
14937 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
14938 tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
14939 value-prof.c, var-tracking.c,
14940 varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
14942 2013-09-12 Richard Biener <rguenther@suse.de>
14944 PR tree-optimization/58396
14945 * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
14946 (build_rdg): Take a loop-nest parameter, fix memleaks.
14947 (distribute_loop): Compute loop-nest here and pass it to build_rdg.
14949 2013-09-12 Yuri Rumyantsev <ysrumyan@gmail.com>
14951 * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
14954 2013-09-12 Cameron McInally <cameron.mcinally@nyu.edu>
14956 * doc/extend.texi: Fix errors in x86 FMA builtin naming.
14957 The FMA instruction names should have a 'v' prefix.
14959 2013-09-12 Richard Biener <rguenther@suse.de>
14961 * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
14962 (dot_rdg): Use popen instead of system in optional code.
14963 (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
14964 (already_processed_vertex_p): Adjust.
14965 (has_anti_or_output_dependence, predecessor_has_mem_write,
14966 mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
14967 rdg_flag_uses): Remove.
14968 (rdg_flag_vertex): Simplify.
14969 (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
14971 (build_rdg_partition_for_component): Process the first vertex
14972 of a component only.
14973 (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
14975 2013-09-12 Alan Modra <amodra@gmail.com>
14977 * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
14979 2013-09-11 DJ Delorie <dj@redhat.com>
14980 Nick Clifton <nickc@redhat.com>
14982 * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
14983 (rl78_stack_based_mem): New.
14984 * config/rl78/constraints.md (Iv08): New.
14993 * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
14995 (movsi): Change from expand to insn-and-split.
14996 (ashrsi3): Clobber AX.
15000 * config/rl78/rl78.md (CC_REG): Fix.
15001 (addsi3): Allow memory and immediate operands.
15002 (addsi3_internal): Split into...
15003 (addsi3_internal_virt): ...new, and ...
15004 (addsi3_internal_real): ...new.
15006 (subsi3_internal_virt): New.
15007 (subsi3_internal_real): New.
15008 (mulsi3): Add memory operand.
15009 (mulsi3_rl78): Likewise.
15010 (mulsi3_g13): Likewise.
15011 * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
15012 (cbranchqi4_real): Add more constraint options.
15013 (cbranchhi4_real): Expand pattern.
15014 (cbranchhi4_real_signed): New.
15015 (cbranchhi4_real_inverted): New.
15016 (cbranchsi4_real_lt): New.
15017 (cbranchsi4_real_ge): New.
15018 (cbranchsi4_real_signed): New.
15019 (cbranchsi4_real): New.
15021 * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
15023 (lshrsi3_virt): Likewise.
15024 (ashlsi3_virt): Likewise.
15025 (cbranchqi4_virt_signed): New.
15026 (cbranchhi4_virt_signed): New.
15027 (cbranchsi4_virt): New.
15028 * config/rl78/rl78.c: Whitespace fixes throughout.
15029 (move_elim_pass): New.
15030 (pass_data_rl78_move_elim): New.
15031 (pass_rl78_move_elim): New.
15032 (make_pass_rl78_move_elim): New.
15033 (rl78_devirt_info): Run devirt earlier.
15034 (rl78_move_elim_info): New.
15035 (rl78_asm_file_start): Register it.
15036 (rl78_split_movsi): New.
15037 (rl78_as_legitimate_address): Allow virtual base registers when
15039 (rl78_addr_space_convert): Remove spurious debug stuff.
15040 (rl78_print_operand_1): Add z,s,S,r,E modifiers.
15041 (rl78_print_operand): More cases for not printing '#'.
15042 (rl78_expand_compare): Remove most of the logic.
15043 (content_memory): New.
15044 (clear_content_memory): New.
15045 (get_content_index): New.
15046 (get_content_name): New.
15047 (display_content_memory): New.
15048 (update_content): New.
15049 (record_content): New.
15050 (already_contains): New.
15051 (insn_ok_now): Re-recog insns with virtual registers.
15052 (add_postponed_content_update): New.
15053 (process_postponed_content_update): New.
15054 (gen_and_emit_move): New.
15055 (transcode_memory_rtx): Record new location content.
15056 Use gen_and_emit_move.
15057 (force_into_acc): New.
15058 (move_to_acc): Use gen_and_emit_move.
15059 (move_from_acc): Likewise.
15060 (move_acc_to_reg): Likewise.
15061 (move_to_x): Likewise.
15062 (move_to_hl): Likewise.
15063 (move_to_de): Likewise.
15064 (rl78_alloc_physical_registers_op1): Record location content.
15065 (has_constraint): New.
15066 (rl78_alloc_physical_registers_op2): Record location content.
15067 Optimize use of HL.
15068 (rl78_alloc_physical_registers_ro1): Likewise.
15069 (rl78_alloc_physical_registers_cmp): Likewise.
15070 (rl78_alloc_physical_registers_umul): Likewise.
15071 (rl78_alloc_address_registers_macax): New.
15072 (rl78_alloc_physical_registers): Initialize and set location
15073 content memory as needed.
15074 (rl78_reorg): Make sure split2 is called.
15075 (rl78_rtx_costs): New.
15077 2013-09-11 Richard Sandiford <rdsandiford@googlemail.com>
15079 * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
15080 for (not (neg ...)) and (neg (not ...)) cases.
15082 2013-09-11 Richard Biener <rguenther@suse.de>
15084 PR middle-end/58377
15085 * passes.def: Split critical edges before late uninit warning passes.
15086 * tree-cfg.c (pass_split_crit_edges): Implement clone method.
15088 2013-09-11 Jakub Jelinek <jakub@redhat.com>
15090 PR tree-optimization/58385
15091 * fold-const.c (build_range_check): If both low and high are NULL,
15092 use omit_one_operand_loc to preserve exp side-effects.
15094 2013-09-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15096 * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
15098 2013-09-11 Richard Biener <rguenther@suse.de>
15100 * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
15101 dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
15102 dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
15103 create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
15104 stmts_from_loop, known_dependences_p, build_empty_rdg,
15105 build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
15106 * tree-loop-distribution.c: ... here.
15107 * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
15108 RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
15109 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
15110 struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
15111 * tree-loop-distribution.c: ... here.
15112 * tree-loop-distribution.c: Include gimple-pretty-print.h.
15113 (struct partition_s): Add loops member.
15114 (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
15115 rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
15116 build_rdg_partition_for_component, rdg_build_partitions): Adjust.
15118 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
15119 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15120 Sergey Lega <sergey.s.lega@intel.com>
15121 Anna Tikhonova <anna.tikhonova@intel.com>
15122 Ilya Tocar <ilya.tocar@intel.com>
15123 Andrey Turetskiy <andrey.turetskiy@intel.com>
15124 Ilya Verbin <ilya.verbin@intel.com>
15125 Kirill Yukhin <kirill.yukhin@intel.com>
15126 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15128 * config/i386/constraints.md (k): New.
15130 * config/i386/i386.c (const regclass_map): Add new mask registers.
15131 (dbx_register_map): Ditto.
15132 (dbx64_register_map): Ditto.
15133 (svr4_dbx_register_map): Ditto.
15134 (ix86_conditional_register_usage): Squash mask registers if AVX512F is
15136 (ix86_preferred_reload_class): Disable constants for mask registers.
15137 (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
15138 (ix86_hard_regno_mode_ok): Support new mask registers.
15139 (x86_order_regs_for_local_alloc): Ditto.
15140 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
15141 (FIXED_REGISTERS): Add new mask registers.
15142 (CALL_USED_REGISTERS): Ditto.
15143 (REG_ALLOC_ORDER): Ditto.
15144 (VALID_MASK_REG_MODE): New.
15145 (FIRST_MASK_REG): Ditto.
15146 (LAST_MASK_REG): Ditto.
15147 (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
15148 (MAYBE_MASK_CLASS_P): New.
15149 (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
15150 (REG_CLASS_CONTENTS): Ditto.
15151 (MASK_REGNO_P): New.
15152 (ANY_MASK_REG_P): Ditto.
15153 (HI_REGISTER_NAMES): Add new mask registers.
15154 * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
15155 MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
15157 (attribute "type"): Add mskmov, msklog.
15158 (attribute "length_immediate"): Support them.
15159 (attribute "memory"): Ditto.
15160 (attribute "prefix_0f"): Ditto.
15161 (*movhi_internal): Support new mask registers.
15162 (*movqi_internal): Ditto.
15163 (define_split): Split out clobber pattern is a logic
15164 insn on mask registers.
15165 (*k<logic><mode>): New.
15166 (*andhi_1): Extend to support mask regs.
15167 (*andqi_1): Extend to support mask regs.
15168 (kandn<mode>): New.
15169 (define_split): Split and-not to and and not if operands
15171 (*<code><mode>_1): Separate HI mode to new pattern...
15172 (*<code>hi_1): This.
15173 (*<code>qi_1): Extend to support mask regs.
15174 (kxnor<mode>): New.
15175 (kortestzhi): Ditto.
15176 (kortestchi): Ditto.
15178 (*one_cmpl<mode>2_1): Remove HImode and handle it...
15179 (*one_cmplhi2_1): ...Here, now with mask registers support.
15180 (*one_cmplqi2_1): Support new mask registers.
15181 (HI/QImode arithmetics splitter): Don't split if mask registers
15183 (HI/QImode not splitter): Ditto.
15184 * config/i386/predicated.md (mask_reg_operand): New.
15185 (general_reg_operand): Ditto.
15187 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
15189 * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
15190 * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
15192 2013-09-10 Jeff Law <law@redhat.com>
15194 PR tree-optimization/58380
15195 * tree-ssa-threadupdate.c (thread_block): Recognize another case
15196 of threading through a buried loop header.
15198 * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
15199 return value for single successor case.
15201 2013-09-10 Jan Hubicka <jh@suse.cz>
15203 * ipa-devirt.c (ipa_devirt): Enable with LTO.
15205 2013-09-10 Richard Earnshaw <rearnsha@arm.com>
15208 * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
15209 support conditional execution.
15210 (combine_vcvt_f64_<FCVTI32typename>): Likewise.
15212 2013-09-10 Vladimir Makarov <vmakarov@redhat.com>
15214 * lra.c (lra): Clear lra_optional_reload_pseudos before every
15216 * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
15217 Check destination too to check move insn.
15218 (undo_optional_reloads): Add check that the original peudo did not
15219 changed its allocation and the optional reload was inherited on last
15220 inheritance pass. Break loop after deciding to keep optional reload.
15221 (lra_undo_inheritance): Add check that inherited pseudo still in
15224 2013-09-10 James Greenhalgh <james.greenhalgh@arm.com>
15226 * config/aarch64/aarch64.md (generic_sched): New.
15227 * config/aarch64/aarch64-generic.md (load): Make conditional
15228 on generic_sched attribute.
15229 (nonload): Likewise.
15231 2013-09-10 Jan Hubicka <jh@suse.cz>
15233 * lto-cgraph.c: Include ipa-utils.h.
15234 (compute_ltrans_boundary): Also add possible targets into the boundary.
15236 2013-09-10 Jan Hubicka <jh@suse.cz>
15238 * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
15239 VAR_DECL of vtable rather than full expression.
15241 2013-09-10 Jan Hubicka <jh@suse.cz>
15242 Paolo Carlini <paolo.carlini@oracle.com>
15244 * cgraphunit.c (analyze_functions): Save input_location, set it
15245 to UNKNOWN_LOCATION and restore it at the end.
15247 2013-09-10 Martin Jambor <mjambor@suse.cz>
15249 * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
15250 represented by a thunk.
15252 2013-09-10 Jeff Law <law@redhat.com>
15254 PR tree-optimization/58343
15255 * tree-ssa-threadupdate.c (thread_block): Identify and disable
15256 jump threading requests through loop headers buried in the middle
15257 of a jump threading path.
15259 * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
15260 in return value/type.
15262 2013-09-10 Jakub Jelinek <jakub@redhat.com>
15264 PR rtl-optimization/58365
15265 * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
15266 resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
15269 2013-09-10 Richard Biener <rguenther@suse.de>
15271 * tree-data-ref.h (build_rdg): Drop all parameters but loop.
15272 * tree-data-ref.c (create_rdg_vertices): Collect all data
15273 references, signal failure to the caller, use data-ref API.
15274 (build_rdg): Compute data references only once. Maintain lifetime
15275 of data references and data dependences from within RDG.
15276 (free_rdg): Free dependence relations.
15277 * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
15278 inventing extra dependences.
15279 (distribute_loop): Update for RDG API changes.
15281 2013-09-10 Kai Tietz <ktietz@redhat.com>
15283 * doc/invoke.texi (fms-extensions): Document changed
15284 behavior for ms-abi targets.
15285 * config/i386/i386.c (ix86_option_override_internal):
15286 Set default value of option -fms-extension for ms-abi targets.
15288 2013-09-10 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
15290 * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
15292 2013-09-10 Alan Modra <amodra@gmail.com>
15295 * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
15297 2013-09-10 Alan Modra <amodra@gmail.com>
15299 * config/rs6000/predicates.md (add_cint_operand): New.
15300 (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
15301 * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
15302 using add_cint_operand.
15303 (largetoc_high_plus_aix): Likewise.
15305 2013-09-09 Jakub Jelinek <jakub@redhat.com>
15307 PR tree-optimization/58364
15308 * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
15309 BOOLEAN_TYPE, only invert in_p and continue with arg0 if
15310 the current range can't be an unconditional true or false.
15312 2013-09-09 James Greenhalgh <james.greenhalgh@arm.com>
15314 * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
15316 2013-09-09 Uros Bizjak <ubizjak@gmail.com>
15318 * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
15320 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
15323 * doc/invoke.texi (-Wdelete-incomplete): Document it.
15325 2013-09-09 Ian Bolton <ian.bolton@arm.com>
15327 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
15328 NO_REGS for immediate that can't be moved directly into FP_REGS.
15330 2013-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15332 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
15333 comparison with negated operand.
15334 * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
15337 2013-09-09 Richard Biener <rguenther@suse.de>
15339 PR middle-end/58326
15340 * cfgloopmanip.c (fix_bb_placements): When fixing the placement
15341 of a subloop record all its block as affecting loop-closed SSA form.
15343 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
15345 * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
15346 of an rtx/bitpos pair.
15347 (store_fixed_bit_field): Update accordingly.
15349 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
15351 * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
15353 * builtins.c (expand_errno_check): Likewise.
15354 * dwarf2cfi.c (init_return_column_size): Likewise.
15355 * except.c (sjlj_mark_call_sites): Likewise.
15356 * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
15357 * lra-constraints.c (emit_inc): Likewise.
15358 * ree.c (combine_set_extension): Likewise.
15359 * regmove.c (fixup_match_2): Likewise.
15360 * reload1.c (inc_for_reload): Likewise.
15362 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
15364 * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
15365 (force_to_mode, simplify_shift_const_1, simplify_comparison):
15366 Use gen_int_mode with the mode of the associated simplify_* call.
15367 * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
15368 * expmed.c (expand_shift_1): Likewise.
15369 * function.c (instantiate_virtual_regs_in_insn): Likewise.
15370 * loop-iv.c (iv_number_of_iterations): Likewise.
15371 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
15372 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
15374 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
15376 * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
15377 of the associated expand_* call.
15378 (asan_emit_stack_protection): Likewise.
15379 * builtins.c (round_trampoline_addr): Likewise.
15380 * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
15381 * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
15382 (emit_store_flag): Likewise.
15383 * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
15384 (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
15386 * function.c (instantiate_virtual_regs_in_insn): Likewise.
15387 * ifcvt.c (noce_try_store_flag_constants): Likewise.
15388 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
15389 * modulo-sched.c (generate_prolog_epilog): Likewise.
15390 * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
15391 (expand_ctz, expand_ffs, expand_unop): Likewise.
15393 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
15395 * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
15396 of the associated gen_rtx_* call.
15397 * caller-save.c (init_caller_save): Likewise.
15398 * combine.c (find_split_point, make_extraction): Likewise.
15399 (make_compound_operation): Likewise.
15400 * dwarf2out.c (mem_loc_descriptor): Likewise.
15401 * explow.c (plus_constant, probe_stack_range): Likewise.
15402 * expmed.c (expand_mult_const): Likewise.
15403 * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
15404 * reload1.c (init_reload): Likewise.
15405 * valtrack.c (cleanup_auto_inc_dec): Likewise.
15406 * var-tracking.c (adjust_mems): Likewise.
15407 * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
15408 rather than gen_rtx_fmt_ee.
15410 2013-09-09 Jan Hubicka <jh@suse.cz>
15412 PR middle-end/58294
15413 * value-prof.c (gimple_ic): Copy also abnormal edges.
15415 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
15417 * asan.c (asan_shadow_cst): Use gen_int_mode.
15419 2013-09-08 Jan Hubicka <jh@suse.cz>
15421 * ipa-profile.c: Add toplevel comment.
15422 (ipa_propagate_frequency_1): Be more conservative when profile is read.
15423 (contains_hot_call_p): New function.
15424 (ipa_propagate_frequency): Set frequencies based on counts when
15426 * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
15427 profile; do not tamper with profile after inlining if it is read.
15429 2013-09-08 Jan Hubicka <jh@suse.cz>
15431 * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
15434 2013-09-08 Jan Hubicka <jh@suse.cz>
15436 * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
15437 summary generation.
15439 2013-09-08 Jeff Law <law@redhat.com>
15442 * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
15445 2013-09-08 Andi Kleen <ak@linux.intel.com>
15447 * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
15449 2013-09-08 Jan Hubicka <jh@suse.cz>
15451 * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
15453 2013-09-08 Richard Sandiford <rdsandiford@googlemail.com>
15455 * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
15456 for non-debug insns.
15457 * lra.c (new_insn_reg): Take the containing insn as a parameter.
15458 Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
15459 (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
15462 2013-09-08 Jan Hubicka <jh@suse.cz>
15464 * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
15465 targets and devirtualize to BUILT_IN_UNREACHABLE.
15466 * timevar.def (TV_IPA_UNREACHABLE): New timevar.
15467 * ipa.c (walk_polymorphic_call_targets): New function.
15468 (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
15469 functions; use the new timevar.
15470 * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
15471 was removed from the program.
15472 (record_binfo): If BINFO corresponds to an anonymous namespace, we may
15473 not consider it in the walk when its vtable is dead.
15474 (possible_polymorphic_call_targets_1): Pass anonymous flag to
15476 (devirt_variable_node_removal_hook): New function.
15477 (possible_polymorphic_call_targets): Also register
15478 devirt_variable_node_removal_hook.
15479 (ipa_devirt): Do not do non-speculative devirtualization.
15480 (gate_ipa_devirt): One execute if devirtualizing speculatively.
15482 2013-09-08 Jan Hubicka <jh@suse.cz>
15484 * cgraph.h (varpool_node_hook, varpool_node_hook_list,
15485 varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
15486 varpool_remove_variable_insertion_hook): Declare.
15487 * varpool.c (varpool_node_hook_list): New structure.
15488 (first_varpool_node_removal_hook,
15489 first_varpool_variable_insertion_hook): New variables.
15490 (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
15491 varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
15492 varpool_remove_variable_insertion_hook,
15493 varpool_call_variable_insertion_hooks): New functions.
15494 (varpool_remove_node): Use it.
15496 2013-09-08 Paolo Carlini <paolo.carlini@oracle.com>
15499 * diagnostic.c (diagnostic_build_prefix): When s.file is
15500 "<built-in>" don't output line and column numbers.
15502 2013-09-06 Jan Hubicka <jh@suse.cz>
15504 * cgraphunit.c (expand_thunk): Get body before touching arguments.
15505 * lto-streamer-out.c: Stream thunks, too.
15506 * lto-streamer-in.c (input_function): Pop cfun here
15507 (lto_read_body): Instead of here.
15509 2013-09-06 Caroline Tice <cmtice@google.com>
15511 * doc/install.texi: Add documentation for the --enable-vtable-verify
15512 and the --disable-libvtv configure options.
15514 2013-09-06 Jeff Law <law@redhat.com>
15516 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
15517 edge implied equivalences into successor phis.
15519 2013-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
15521 * resource.c (mark_referenced_resources): Handle COND_EXEC.
15523 2013-09-06 Claudiu Zissulescu <claziss@synopsys.com>
15525 * resource.c (mark_target_live_regs): Compute resources taking
15526 into account if a call is predicated or not.
15528 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
15530 * toplev.c (output_stack_usage): Be prepared for suffixes created by
15531 the compiler in the function names.
15533 2013-09-06 Jan Hubicka <jh@suse.cz>
15535 PR middle-end/58094
15536 * ipa-inline.c (has_caller_p): New function.
15537 (want_inline_function_to_all_callers_p): Use it.
15538 (sum_callers, inline_to_all_callers): Break out from ...
15539 (ipa_inline): ... here.
15541 2013-09-06 Jan Hubicka <jh@suse.cz>
15543 * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
15544 only when AVX is enabled.
15546 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
15548 * config/aarch64/aarch64.md
15549 (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
15550 is fpsimd_<load/store>2.
15551 (load_pair<mode>): Likewise.
15552 (store_pair<mode>): Likewise.
15554 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
15556 * config/arm/types.md (type): Add "mrs" type.
15557 * config/aarch64/aarch64.md
15558 (aarch64_load_tp_hard): Make type "mrs".
15559 * config/arm/arm.md
15560 (load_tp_hard): Make type "mrs".
15561 * config/arm/cortex-a15.md: Update with new attributes.
15562 * config/arm/cortex-a5.md: Update with new attributes.
15563 * config/arm/cortex-a53.md: Update with new attributes.
15564 * config/arm/cortex-a7.md: Update with new attributes.
15565 * config/arm/cortex-a8.md: Update with new attributes.
15566 * config/arm/cortex-a9.md: Update with new attributes.
15567 * config/arm/cortex-m4.md: Update with new attributes.
15568 * config/arm/cortex-r4.md: Update with new attributes.
15569 * config/arm/fa526.md: Update with new attributes.
15570 * config/arm/fa606te.md: Update with new attributes.
15571 * config/arm/fa626te.md: Update with new attributes.
15572 * config/arm/fa726te.md: Update with new attributes.
15574 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
15576 * config/aarch64/aarch64.md
15577 (*movti_aarch64): Use "multiple" for type where v8type is "move2".
15578 (*movtf_aarch64): Likewise.
15579 * config/arm/arm.md
15580 (thumb1_movdi_insn): Use "multiple" for type where more than one
15581 instruction is used for a move.
15582 (*arm32_movhf): Likewise.
15583 (*thumb_movdf_insn): Likewise.
15585 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
15587 * config/arm/types.md (type): Rename fcpys to fmov.
15588 * config/arm/vfp.md
15589 (*arm_movsi_vfp): Rename type fcpys as fmov.
15590 (*thumb2_movsi_vfp): Likewise
15591 (*movhf_vfp_neon): Likewise
15592 (*movhf_vfp): Likewise
15593 (*movsf_vfp): Likewise
15594 (*thumb2_movsf_vfp): Likewise
15595 (*movsfcc_vfp): Likewise
15596 (*thumb2_movsfcc_vfp): Likewise
15597 * config/aarch64/aarch64-simd.md
15598 (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
15599 * config/aarch64/aarch64.md
15600 (*movsi_aarch64): Replace type mov_reg with fmovs.
15601 (*movdi_aarch64): Likewise
15602 (*movsf_aarch64): Likewise
15603 (*movdf_aarch64): Likewise
15605 (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
15606 * config/arm/iwmmxt.md
15607 (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
15608 * config/arm/arm1020e.md: Update with new attributes.
15609 * config/arm/cortex-a15-neon.md: Update with new attributes.
15610 * config/arm/cortex-a5.md: Update with new attributes.
15611 * config/arm/cortex-a53.md: Update with new attributes.
15612 * config/arm/cortex-a7.md: Update with new attributes.
15613 * config/arm/cortex-a8-neon.md: Update with new attributes.
15614 * config/arm/cortex-a9.md: Update with new attributes.
15615 * config/arm/cortex-m4-fpu.md: Update with new attributes.
15616 * config/arm/cortex-r4f.md: Update with new attributes.
15617 * config/arm/marvell-pj4.md: Update with new attributes.
15618 * config/arm/vfp11.md: Update with new attributes.
15620 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
15622 * config/aarch64/aarch64.md
15623 (*madd<mode>): Fix type attribute.
15624 (*maddsi_uxtw): Likewise.
15625 (*msub<mode>): Likewise.
15626 (*msubsi_uxtw): Likewise.
15627 (<su_optab>maddsidi4): Likewise.
15628 (<su_optab>msubsidi4): Likewise.
15630 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
15632 * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
15633 * config/arm/arm.md (core_cycles): Remove fdiv.
15634 * config/arm/vfp.md:
15635 (*sqrtsf2_vfp): Update for attribute changes.
15636 (*sqrtdf2_vfp): Likewise.
15637 * config/aarch64/aarch64.md:
15638 (sqrt<mode>2): Update for attribute changes.
15639 * config/arm/arm1020e.md: Update with new attributes.
15640 * config/arm/cortex-a15-neon.md: Update with new attributes.
15641 * config/arm/cortex-a5.md: Update with new attributes.
15642 * config/arm/cortex-a53.md: Update with new attributes.
15643 * config/arm/cortex-a7.md: Update with new attributes.
15644 * config/arm/cortex-a8-neon.md: Update with new attributes.
15645 * config/arm/cortex-a9.md: Update with new attributes.
15646 * config/arm/cortex-m4-fpu.md: Update with new attributes.
15647 * config/arm/cortex-r4f.md: Update with new attributes.
15648 * config/arm/marvell-pj4.md: Update with new attributes.
15649 * config/arm/vfp11.md: Update with new attributes.
15651 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
15653 * config/arm/types.md
15654 (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
15655 * config/aarch64/aarch64.md
15656 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
15658 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
15659 (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
15660 (float<GPI:mode><GPF:mode>2): Likewise.
15661 * config/arm/vfp.md
15662 (*truncsisf2_vfp): Update with new attributes.
15663 (*truncsidf2_vfp): Likewise.
15664 (fixuns_truncsfsi2): Likewise.
15665 (fixuns_truncdfsi2): Likewise.
15666 (*floatsisf2_vfp): Likewise.
15667 (*floatsidf2_vfp): Likewise.
15668 (floatunssisf2): Likewise.
15669 (floatunssidf2): Likewise.
15670 (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
15671 (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
15672 * config/arm/arm1020e.md: Update with new attributes.
15673 * config/arm/cortex-a15-neon.md: Update with new attributes.
15674 * config/arm/cortex-a5.md: Update with new attributes.
15675 * config/arm/cortex-a53.md: Update with new attributes.
15676 * config/arm/cortex-a7.md: Update with new attributes.
15677 * config/arm/cortex-a8-neon.md: Update with new attributes.
15678 * config/arm/cortex-a9.md: Update with new attributes.
15679 * config/arm/cortex-m4-fpu.md: Update with new attributes.
15680 * config/arm/cortex-r4f.md: Update with new attributes.
15681 * config/arm/marvell-pj4.md: Update with new attributes.
15682 * config/arm/vfp11.md: Update with new attributes.
15684 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
15686 * config/aarch64/arm_neon.h
15687 (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
15688 (vqtbx<1,2,3,4><q>_s8): Likewise.
15690 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
15692 * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
15693 * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
15694 (add<mode>3): Add type attribute.
15695 (add<mode>3): Likewise.
15696 (usadd<mode>3): Likewise.
15697 (ssadd<mode>3): Likewise.
15698 (sub<mode>3): Likewise.
15699 (sub<mode>3): Likewise.
15700 (ussub<mode>3): Likewise.
15701 (sssub<mode>3): Likewise.
15702 (ssmulsa3): Likewise.
15703 (usmulusa3): Likewise.
15704 (arm_usatsihi): Likewise.
15705 * config/arm/vfp.md
15706 (*movdi_vfp): Add types for all instructions.
15707 (*movdi_vfp_cortexa8): Likewise.
15708 (*movhf_vfp_neon): Likewise.
15709 (*movhf_vfp): Likewise.
15710 (*movdf_vfp): Likewise.
15711 (*thumb2_movdf_vfp): Likewise.
15712 (*thumb2_movdfcc_vfp): Likewise.
15713 * config/arm/arm.md: Add type attribute to all insn patterns.
15714 (*thumb1_adddi3): Add type attribute.
15715 (*arm_adddi3): Likewise.
15716 (*adddi_sesidi_di): Likewise.
15717 (*adddi_zesidi_di): Likewise.
15718 (*thumb1_addsi3): Likewise.
15719 (addsi3_compare0): Likewise.
15720 (*addsi3_compare0_scratch): Likewise.
15721 (*compare_negsi_si): Likewise.
15722 (cmpsi2_addneg): Likewise.
15723 (*addsi3_carryin_<optab>): Likewise.
15724 (*addsi3_carryin_alt2_<optab>): Likewise.
15725 (*addsi3_carryin_clobercc_<optab>): Likewise.
15726 (*subsi3_carryin): Likewise.
15727 (*subsi3_carryin_const): Likewise.
15728 (*subsi3_carryin_compare): Likewise.
15729 (*subsi3_carryin_compare_const): Likewise.
15730 (*arm_subdi3): Likewise.
15731 (*thumb_subdi3): Likewise.
15732 (*subdi_di_zesidi): Likewise.
15733 (*subdi_di_sesidi): Likewise.
15734 (*subdi_zesidi_di): Likewise.
15735 (*subdi_sesidi_di): Likewise.
15736 (*subdi_zesidi_ze): Likewise.
15737 (thumb1_subsi3_insn): Likewise.
15738 (*arm_subsi3_insn): Likewise.
15739 (*anddi3_insn): Likewise.
15740 (*anddi_zesidi_di): Likewise.
15741 (*anddi_sesdi_di): Likewise.
15742 (*ne_zeroextracts): Likewise.
15743 (*ne_zeroextracts): Likewise.
15744 (*ite_ne_zeroextr): Likewise.
15745 (*ite_ne_zeroextr): Likewise.
15746 (*anddi_notdi_di): Likewise.
15747 (*anddi_notzesidi): Likewise.
15748 (*anddi_notsesidi): Likewise.
15749 (andsi_notsi_si): Likewise.
15750 (thumb1_bicsi3): Likewise.
15751 (*iordi3_insn): Likewise.
15752 (*iordi_zesidi_di): Likewise.
15753 (*iordi_sesidi_di): Likewise.
15754 (*thumb1_iorsi3_insn): Likewise.
15755 (*xordi3_insn): Likewise.
15756 (*xordi_zesidi_di): Likewise.
15757 (*xordi_sesidi_di): Likewise.
15758 (*arm_xorsi3): Likewise.
15759 (*andsi_iorsi3_no): Likewise.
15760 (*smax_0): Likewise.
15761 (*smax_m1): Likewise.
15762 (*arm_smax_insn): Likewise.
15763 (*smin_0): Likewise.
15764 (*arm_smin_insn): Likewise.
15765 (*arm_umaxsi3): Likewise.
15766 (*arm_uminsi3): Likewise.
15767 (*minmax_arithsi): Likewise.
15768 (*minmax_arithsi_): Likewise.
15769 (*satsi_<SAT:code>): Likewise.
15770 (arm_ashldi3_1bit): Likewise.
15771 (arm_ashrdi3_1bit): Likewise.
15772 (arm_lshrdi3_1bit): Likewise.
15773 (*arm_negdi2): Likewise.
15774 (*thumb1_negdi2): Likewise.
15775 (*arm_negsi2): Likewise.
15776 (*thumb1_negsi2): Likewise.
15777 (*negdi_extendsid): Likewise.
15778 (*negdi_zero_extend): Likewise.
15779 (*arm_abssi2): Likewise.
15780 (*thumb1_abssi2): Likewise.
15781 (*arm_neg_abssi2): Likewise.
15782 (*thumb1_neg_abss): Likewise.
15783 (one_cmpldi2): Likewise.
15784 (extend<mode>di2): Likewise.
15785 (*compareqi_eq0): Likewise.
15786 (*arm_extendhisi2addsi): Likewise.
15787 (*arm_movdi): Likewise.
15788 (*thumb1_movdi_insn): Likewise.
15789 (*arm_movt): Likewise.
15790 (*thumb1_movsi_insn): Likewise.
15791 (pic_add_dot_plus_four): Likewise.
15792 (pic_add_dot_plus_eight): Likewise.
15793 (tls_load_dot_plus_eight): Likewise.
15794 (*thumb1_movhi_insn): Likewise.
15795 (*thumb1_movsf_insn): Likewise.
15796 (*movdf_soft_insn): Likewise.
15797 (*thumb_movdf_insn): Likewise.
15798 (cbranchsi4_insn): Likewise.
15799 (cbranchsi4_scratch): Likewise.
15800 (*negated_cbranchsi4): Likewise.
15801 (*tbit_cbranch): Likewise.
15802 (*tlobits_cbranch): Likewise.
15803 (*tstsi3_cbranch): Likewise.
15804 (*cbranchne_decr1): Likewise.
15805 (*addsi3_cbranch): Likewise.
15806 (*addsi3_cbranch_scratch): Likewise.
15807 (*arm_cmpdi_insn): Likewise.
15808 (*arm_cmpdi_unsig): Likewise.
15809 (*arm_cmpdi_zero): Likewise.
15810 (*thumb_cmpdi_zero): Likewise.
15811 (*deleted_compare): Likewise.
15812 (*mov_scc): Likewise.
15813 (*mov_negscc): Likewise.
15814 (*mov_notscc): Likewise.
15815 (*cstoresi_eq0_thumb1_insn): Likewise.
15816 (cstoresi_nltu_thumb1): Likewise.
15817 (cstoresi_ltu_thu): Likewise.
15818 (thumb1_addsi3_addgeu): Likewise.
15819 (*arm_jump): Likewise.
15820 (*thumb_jump): Likewise.
15821 (*check_arch2): Likewise.
15822 (arm_casesi_internal): Likewise.
15823 (thumb1_casesi_dispatch): Likewise.
15824 (*arm_indirect_jump): Likewise.
15825 (*thumb1_indirect_jump): Likewise.
15827 (*and_scc): Likewise.
15828 (*ior_scc): Likewise.
15829 (*compare_scc): Likewise.
15830 (*cond_move): Likewise.
15831 (*cond_arith): Likewise.
15832 (*cond_sub): Likewise.
15833 (*cmp_ite0): Likewise.
15834 (*cmp_ite1): Likewise.
15835 (*cmp_and): Likewise.
15836 (*cmp_ior): Likewise.
15837 (*ior_scc_scc): Likewise.
15838 (*ior_scc_scc_cmp): Likewise.
15839 (*and_scc_scc): Likewise.
15840 (*and_scc_scc_cmp): Likewise.
15841 (*and_scc_scc_nod): Likewise.
15842 (*negscc): Likewise.
15843 (movcond_addsi): Likewise.
15844 (movcond): Likewise.
15845 (*ifcompare_plus_move): Likewise.
15846 (*if_plus_move): Likewise.
15847 (*ifcompare_move_plus): Likewise.
15848 (*if_move_plus): Likewise.
15849 (*ifcompare_arith_arith): Likewise.
15850 (*if_arith_arith): Likewise.
15851 (*ifcompare_arith_move): Likewise.
15852 (*if_arith_move): Likewise.
15853 (*ifcompare_move_arith): Likewise.
15854 (*if_move_arith): Likewise.
15855 (*ifcompare_move_not): Likewise.
15856 (*if_move_not): Likewise.
15857 (*ifcompare_not_move): Likewise.
15858 (*if_not_move): Likewise.
15859 (*ifcompare_shift_move): Likewise.
15860 (*if_shift_move): Likewise.
15861 (*ifcompare_move_shift): Likewise.
15862 (*if_move_shift): Likewise.
15863 (*ifcompare_shift_shift): Likewise.
15864 (*ifcompare_not_arith): Likewise.
15865 (*ifcompare_arith_not): Likewise.
15866 (*if_arith_not): Likewise.
15867 (*ifcompare_neg_move): Likewise.
15868 (*if_neg_move): Likewise.
15869 (*ifcompare_move_neg): Likewise.
15870 (*if_move_neg): Likewise.
15871 (prologue_thumb1_interwork): Likewise.
15872 (*cond_move_not): Likewise.
15873 (*sign_extract_onebit): Likewise.
15874 (*not_signextract_onebit): Likewise.
15875 (stack_tie): Likewise.
15876 (align_4): Likewise.
15877 (align_8): Likewise.
15878 (consttable_end): Likewise.
15879 (consttable_1): Likewise.
15880 (consttable_2): Likewise.
15881 (consttable_4): Likewise.
15882 (consttable_8): Likewise.
15883 (consttable_16): Likewise.
15884 (*thumb1_tablejump): Likewise.
15885 (prefetch): Likewise.
15886 (force_register_use): Likewise.
15887 (thumb_eh_return): Likewise.
15888 (load_tp_hard): Likewise.
15889 (load_tp_soft): Likewise.
15890 (tlscall): Likewise.
15891 (*arm_movtas_ze): Likewise.
15892 (*arm_rev): Likewise.
15893 (*arm_revsh): Likewise.
15894 (*arm_rev16): Likewise.
15895 * config/arm/thumb2.md
15896 (*thumb2_smaxsi3): Likewise.
15897 (*thumb2_sminsi3): Likewise.
15898 (*thumb32_umaxsi3): Likewise.
15899 (*thumb2_uminsi3): Likewise.
15900 (*thumb2_negdi2): Likewise.
15901 (*thumb2_abssi2): Likewise.
15902 (*thumb2_neg_abss): Likewise.
15903 (*thumb2_movsi_insn): Likewise.
15904 (tls_load_dot_plus_four): Likewise.
15905 (*thumb2_movhi_insn): Likewise.
15906 (*thumb2_mov_scc): Likewise.
15907 (*thumb2_mov_negs): Likewise.
15908 (*thumb2_mov_negs): Likewise.
15909 (*thumb2_mov_nots): Likewise.
15910 (*thumb2_mov_nots): Likewise.
15911 (*thumb2_movsicc_): Likewise.
15912 (*thumb2_movsfcc_soft_insn): Likewise.
15913 (*thumb2_indirect_jump): Likewise.
15914 (*thumb2_and_scc): Likewise.
15915 (*thumb2_ior_scc): Likewise.
15916 (*thumb2_ior_scc_strict_it): Likewise.
15917 (*thumb2_cond_move): Likewise.
15918 (*thumb2_cond_arith): Likewise.
15919 (*thumb2_cond_ari): Likewise.
15920 (*thumb2_cond_sub): Likewise.
15921 (*thumb2_negscc): Likewise.
15922 (*thumb2_movcond): Likewise.
15923 (thumb2_casesi_internal): Likewise.
15924 (thumb2_casesi_internal_pic): Likewise.
15925 (*thumb2_alusi3_short): Likewise.
15926 (*thumb2_mov<mode>_shortim): Likewise.
15927 (*thumb2_addsi_short): Likewise.
15928 (*thumb2_subsi_short): Likewise.
15929 (thumb2_addsi3_compare0): Likewise.
15930 (*thumb2_cbz): Likewise.
15931 (*thumb2_cbnz): Likewise.
15932 (*thumb2_one_cmplsi2_short): Likewise.
15933 (*thumb2_negsi2_short): Likewise.
15934 (*orsi_notsi_si): Likewise.
15935 * config/arm/arm1020e.md: Update with new attributes.
15936 * config/arm/arm1026ejs.md: Update with new attributes.
15937 * config/arm/arm1136jfs.md: Update with new attributes.
15938 * config/arm/arm926ejs.md: Update with new attributes.
15939 * config/arm/cortex-a15.md: Update with new attributes.
15940 * config/arm/cortex-a5.md: Update with new attributes.
15941 * config/arm/cortex-a53.md: Update with new attributes.
15942 * config/arm/cortex-a7.md: Update with new attributes.
15943 * config/arm/cortex-a8.md: Update with new attributes.
15944 * config/arm/cortex-a9.md: Update with new attributes.
15945 * config/arm/cortex-m4.md: Update with new attributes.
15946 * config/arm/cortex-r4.md: Update with new attributes.
15947 * config/arm/fa526.md: Update with new attributes.
15948 * config/arm/fa606te.md: Update with new attributes.
15949 * config/arm/fa626te.md: Update with new attributes.
15950 * config/arm/fa726te.md: Update with new attributes.
15952 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
15954 * config/aarch64/aarch64-simd.md
15955 (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
15956 <vwx> iterator to ensure correct register choice.
15957 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
15958 (aarch64_sqdmull_n<mode>): Likewise.
15959 (aarch64_sqdmull2_n<mode>_internal): Likewise.
15960 * config/aarch64/arm_neon.h
15961 (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
15962 (vml<as><q>_n_<su>16): Likewise.
15963 (vml<as>l_high_lane<q>_<su>16): Likewise.
15964 (vml<as>l_high_n_<su>16): Likewise.
15965 (vml<as>l_lane<q>_<su>16): Likewise.
15966 (vml<as>l_n_<su>16): Likewise.
15967 (vmul<q>_lane<q>_<su>16): Likewise.
15968 (vmul<q>_n_<su>16): Likewise.
15969 (vmull_lane<q>_<su>16): Likewise.
15970 (vmull_n_<su>16): Likewise.
15971 (vmull_high_lane<q>_<su>16): Likewise.
15972 (vmull_high_n_<su>16): Likewise.
15973 (vqrdmulh<q>_n_s16): Likewise.
15975 2013-09-06 Tejas Belagod <tejas.belagod@arm.com>
15977 * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
15978 have the correct lane parameter.
15980 2013-09-06 Richard Biener <rguenther@suse.de>
15982 * cfganal.c (control_dependences::~control_dependences):
15983 Properly free all of the vector.
15985 2013-09-06 Kirill Yukhin <kirill.yukhin@intel.com>
15988 * config/i386/i386.c (ix86_conditional_register_usage):
15989 Proper initialize extended SSE registers.
15991 2013-09-06 Jan Hubicka <jh@suse.cz>
15993 PR tree-optimization/58311
15994 * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
15996 2013-09-06 Jan Hubicka <jh@suse.cz>
15998 * Makefile.in (tree-sra.o): Update dependencies.
15999 * tree-sra.c: Include ipa-utils.h
16000 (scan_function): Use recursive_call_p.
16001 (has_caller_p): New function.
16002 (cgraph_for_node_and_aliases): Count also callers of aliases.
16004 2013-09-06 Jan Hubicka <jh@suse.cz>
16006 PR middle-end/58094
16007 * cgraph.h (symtab_semantically_equivalent_p): Declare.
16008 * tree-tailcall.c: Include ipa-utils.h.
16009 (find_tail_calls): Use it.
16010 * ipa-pure-const.c (check_call): Likewise.
16011 * ipa-utils.c (recursive_call_p): New function.
16012 * ipa-utils.h (recursive_call_p): Dclare.
16013 * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
16014 (symtab_semantically_equivalent_p): New function.
16015 * Makefile.in (tree-tailcall.o): Update dependencies.
16017 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
16019 * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
16020 non-inlinable part.
16022 2013-09-06 Richard Biener <rguenther@suse.de>
16024 * lto-streamer.h (lto_global_var_decls): Remove.
16025 * Makefile.in (OBJS): Remove lto-symtab.o.
16026 (lto-symtab.o): Remove.
16027 (GTFILES): Remove lto-symtab.c
16028 * lto-symtab.c: Move to lto/
16030 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16032 * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
16033 (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
16034 (UNSPEC_FPINT_RINT): New constant definitions.
16035 (FPINT, fpint_name, fpint_roundingmode): New integer iterator
16036 definition with 2 attributes.
16037 ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
16038 ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
16041 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16043 * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
16044 ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
16045 Set the mnemonic attribute to "bcr_flush". Set the "z196prop"
16046 attribute to "z196_alone".
16047 * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
16050 2013-09-06 Richard Biener <rguenther@suse.de>
16052 * basic-block.h (class control_dependences): New.
16053 * tree-ssa-dce.c (control_dependence_map): Remove.
16055 (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
16056 (set_control_dependence_map_bit, clear_control_dependence_bitmap,
16057 find_pdom, find_control_dependence, find_all_control_dependences):
16059 (mark_control_dependent_edges_necessary,
16060 find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
16061 tree_dce_done, perform_tree_ssa_dce): Adjust.
16062 * cfganal.c (set_control_dependence_map_bit,
16063 clear_control_dependence_bitmap, find_pdom, find_control_dependence,
16064 find_all_control_dependences): Move from tree-ssa-dce.c and
16065 implement as methods of control_dependences class.
16066 (control_dependences::control_dependences): New.
16067 (control_dependences::~control_dependences): Likewise.
16068 (control_dependences::get_edges_dependent_on): Likewise.
16069 (control_dependences::get_edge): Likewise.
16071 2013-09-04 Jan Hubicka <jh@suse.cz>
16073 * tree.c (types_same_for_odr): Drop overactive check.
16074 * ipa-devirt.c (hash_type_name): Likewise.
16076 2013-09-04 Jan Hubicka <jh@suse.cz>
16078 * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
16079 (analyze_functions): ... here.
16081 2013-09-04 Jan Hubicka <jh@suse.cz>
16083 PR middle-end/58201
16084 * cgraphunit.c (analyze_functions): Clear AUX fields
16085 after processing; initialize assembler name has.
16087 2013-09-05 Jeff Law <law@redhat.com>
16089 * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
16090 from thread_around_empty_block. Record threading path into PATH.
16091 Recurse if threading through the initial block is successful.
16092 (thread_across_edge): Corresponding changes to slightly simplify.
16094 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
16096 * config/aarch64/aarch64.md
16097 (type): Remove frecpe, frecps, frecpx.
16098 (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
16099 fix to be a TARGET_SIMD instruction.
16100 (aarch64_frecps): Remove.
16101 * config/aarch64/aarch64-simd.md
16102 (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
16103 (aarch64_frecps<mode>): Handle all float/vector of float modes.
16105 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
16106 Sofiane Naci <sofiane.naci@arm.com>
16108 * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
16109 into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
16110 Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
16111 "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
16112 "logic_reg", "logics_reg", "rev". Expand "arlo_shift" into
16113 "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
16114 "logics_shift_imm". Expand "arlo_shift_reg" into "alu_shift_reg",
16115 "alus_shift_reg", "logic_shift_reg", "logics_shift_reg". Expand "clz"
16116 into "clz, "rbit". Rename "shift" to "shift_imm".
16117 * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
16118 changes. Update for attribute changes all occurrences of arlo_* and
16120 * config/arm/arm-fixed.md: Update for attribute changes
16121 all occurrences of arlo_* types.
16122 * config/arm/thumb2.md: Update for attribute changes all occurrences
16124 * config/arm/arm.c (xscale_sched_adjust_cost): (rtx insn, rtx
16125 (cortexa7_older_only): Likewise.
16126 (cortexa7_younger): Likewise.
16127 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
16128 (1020alu_shift_op): Likewise.
16129 (1020alu_shift_reg_op): Likewise.
16130 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
16131 (alu_shift_op): Likewise.
16132 (alu_shift_reg_op): Likewise.
16133 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
16134 (11_alu_shift_op): Likewise.
16135 (11_alu_shift_reg_op): Likewise.
16136 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
16137 (9_alu_shift_reg_op): Likewise.
16138 * config/arm/cortex-a15.md (cortex_a15_alu): Update for
16140 (cortex_a15_alu_shift): Likewise.
16141 (cortex_a15_alu_shift_reg): Likewise.
16142 * config/arm/cortex-a5.md (cortex_a5_alu): Update for
16144 (cortex_a5_alu_shift): Likewise.
16145 * config/arm/cortex-a53.md (cortex_a53_alu): Update for
16147 (cortex_a53_alu_shift): Likewise.
16148 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
16150 (cortex_a7_alu_reg): Likewise.
16151 (cortex_a7_alu_shift): Likewise.
16152 * config/arm/cortex-a8.md (cortex_a8_alu): Update for
16154 (cortex_a8_alu_shift): Likewise.
16155 (cortex_a8_alu_shift_reg): Likewise.
16156 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
16157 (cortex_a9_dp_shift): Likewise.
16158 * config/arm/cortex-m4.md (cortex_m4_alu): Update for
16160 * config/arm/cortex-r4.md
16161 (cortex_r4_alu): Update for attribute changes.
16162 (cortex_r4_mov): Likewise.
16163 (cortex_r4_alu_shift_reg): Likewise.
16164 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
16165 (526_alu_shift_op): Likewise.
16166 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
16167 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
16168 (626te_alu_shift_op): Likewise.
16169 * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
16170 (726te_alu_shift_op): Likewise.
16171 (726te_alu_shift_reg_op): Likewise.
16172 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
16173 (mp626_alu_shift_op): Likewise.
16174 * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
16175 (pj4_alu_conds): Likewise.
16176 (pj4_shift): Likewise.
16177 (pj4_shift_conds): Likewise.
16178 (pj4_alu_shift): Likewise.
16179 (pj4_alu_shift_conds): Likewise.
16180 * config/aarch64/aarch64.md: Update for attribute change
16181 all occurrences of arlo_* and shift* types.
16183 2013-09-05 Mike Stump <mikestump@comcast.net>
16185 * tree.h: Move documentation for tree_function_decl to tree-core.h
16186 with the declaration.
16188 2013-09-05 Peter Bergner <bergner@vnet.ibm.com>
16191 * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
16192 looking for widest mode.
16194 2013-09-05 Eric Botcazou <ebotcazou@adacore.com>
16196 * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
16198 2013-09-05 Richard Biener <rguenther@suse.de>
16200 PR tree-optimization/58137
16201 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
16202 Do not create vectors of pointers.
16203 * tree-vect-loop.c (get_initial_def_for_induction): Use proper
16204 types for the components of the vector initializer.
16205 * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
16206 allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
16208 2013-09-05 Martin Jambor <mjambor@suse.cz>
16210 * ipa-prop.c (remove_described_reference): Accept missing references,
16211 return false if that hppens, otherwise return true.
16212 (cgraph_node_for_jfunc): New function.
16213 (try_decrement_rdesc_refcount): Likewise.
16214 (try_make_edge_direct_simple_call): Use them.
16215 (ipa_edge_removal_hook): Remove references from rdescs.
16216 (ipa_edge_duplication_hook): Clone rdescs and their references
16217 when the new edge has the same caller as the old one.
16218 * cgraph.c (cgraph_resolve_speculation): Remove speculative
16219 reference before removing any edges.
16221 2013-09-05 Richard Earnshaw <rearnsha@arm.com>
16223 * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
16225 * thumb2.md (thumb2_storewb_parisi): New pattern.
16227 2013-09-05 Yufeng Zhang <yufeng.zhang@arm.com>
16229 * config/aarch64/aarch64-option-extensions.def: Add
16230 AARCH64_OPT_EXTENSION of 'crc'.
16231 * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
16232 (AARCH64_ISA_CRC): Ditto.
16233 * doc/invoke.texi (-march and -mcpu feature modifiers): Add
16234 description of the CRC extension.
16236 2013-09-05 Alexander Ivchenko <alexander.ivchenko@intel.com>
16238 * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
16239 * config/rs6000/linux.h: Ditto.
16240 * alpha/linux.h: Ditto.
16241 * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
16242 no_c99_libc_has_function.
16243 * config/c6x/uclinux-elf.h: Ditto.
16244 * config/lm32/uclinux-elf.h: Ditto.
16245 * config/m68k/uclinux.h: Ditto.
16246 * config/moxie/uclinux.h: Ditto.
16247 * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
16248 (crisv32-*-linux*, cris-*-linux*): Ditto.
16249 * config/bfin/bfin.c: Include "tm_p.h".
16251 2013-09-05 Richard Biener <rguenther@suse.de>
16253 * tree-vect-loop.c (vect_analyze_loop_operations): Properly
16254 check for a definition without a basic-block.
16256 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
16257 Sofiane Naci <sofiane.naci@arm.com>
16259 * config/aarch64/aarch64.md
16260 (*movti_aarch64): Rename r_2_f and f_2_r.
16261 (*movsf_aarch64): Likewise.
16262 (*movdf_aarch64): Likewise.
16263 (*movtf_aarch64): Likewise.
16264 (aarch64_movdi_<mode>low): Likewise.
16265 (aarch64_movdi_<mode>high): Likewise.
16266 (aarch64_mov<mode>high_di): Likewise.
16267 (aarch64_mov<mode>low_di): Likewise.
16268 (aarch64_movtilow_tilow): Likewise.
16269 * config/arm/arm.md (attribute "neon_type"): Delete. Move attribute
16270 values to config/arm/types.md
16271 (attribute "conds"): Update for attribute change.
16272 (anddi3_insn): Likewise.
16273 (iordi3_insn): Likewise.
16274 (xordi3_insn): Likewise.
16275 (one_cmpldi2): Likewise.
16276 * config/arm/types.md (type): Add Neon types.
16277 * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
16278 use "type" attribute.
16279 (movmisalign<mode>_neon_store): Likewise.
16280 (movmisalign<mode>_neon_load): Likewise.
16281 (vec_set<mode>_internal): Likewise.
16282 (vec_setv2di_internal): Likewise.
16283 (vec_extract<mode>): Likewise.
16284 (vec_extractv2di): Likewise.
16285 (add<mode>3_neon): Likewise.
16286 (adddi3_neon): Likewise.
16287 (sub<mode>3_neon): Likewise.
16288 (subdi3_neon): Likewise.
16289 (mul<mode>3_neon): Likewise.
16290 (mul<mode>3add<mode>_neon): Likewise.
16291 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
16292 (fma<VCVTF:mode>4)): Likewise.
16293 (fma<VCVTF:mode>4_intrinsic): Likewise.
16294 (fmsub<VCVTF:mode>4)): Likewise.
16295 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
16296 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
16297 (ior<mode>3): Likewise.
16298 (and<mode>3): Likewise.
16299 (anddi3_neon): Likewise.
16300 (orn<mode>3_neon): Likewise.
16301 (orndi3_neon): Likewise.
16302 (bic<mode>3_neon): Likewise.
16303 (bicdi3_neon): Likewise.
16304 (xor<mode>3): Likewise.
16305 (one_cmpl<mode>2): Likewise.
16306 (abs<mode>2): Likewise.
16307 (neg<mode>2): Likewise.
16308 (umin<mode>3_neon): Likewise.
16309 (umax<mode>3_neon): Likewise.
16310 (smin<mode>3_neon): Likewise.
16311 (smax<mode>3_neon): Likewise.
16312 (vashl<mode>3): Likewise.
16313 (vashr<mode>3_imm): Likewise.
16314 (vlshr<mode>3_imm): Likewise.
16315 (ashl<mode>3_signed): Likewise.
16316 (ashl<mode>3_unsigned): Likewise.
16317 (neon_load_count): Likewise.
16318 (ashldi3_neon_noclobber): Likewise.
16319 (signed_shift_di3_neon): Likewise.
16320 (unsigned_shift_di3_neon): Likewise.
16321 (ashrdi3_neon_imm_noclobber): Likewise.
16322 (lshrdi3_neon_imm_noclobber): Likewise.
16323 (widen_ssum<mode>3): Likewise.
16324 (widen_usum<mode>3): Likewise.
16325 (quad_halves_<code>v4si): Likewise.
16326 (quad_halves_<code>v4sf): Likewise.
16327 (quad_halves_<code>v8hi): Likewise.
16328 (quad_halves_<code>v16qi): Likewise.
16329 (reduc_splus_v2di): Likewise.
16330 (neon_vpadd_internal<mode>): Likewise.
16331 (neon_vpsmin<mode>): Likewise.
16332 (neon_vpsmax<mode>): Likewise.
16333 (neon_vpumin<mode>): Likewise.
16334 (neon_vpumax<mode>): Likewise.
16335 (ss_add<mode>_neon): Likewise.
16336 (us_add<mode>_neon): Likewise.
16337 (ss_sub<mode>_neon): Likewise.
16338 (us_sub<mode>_neon): Likewise.
16339 (neon_vadd<mode>_unspec): Likewise.
16340 (neon_vaddl<mode>): Likewise.
16341 (neon_vaddw<mode>): Likewise.
16342 (neon_vhadd<mode>): Likewise.
16343 (neon_vqadd<mode>): Likewise.
16344 (neon_vaddhn<mode>): Likewise.
16345 (neon_vmul<mode>): Likewise.
16346 (neon_vmla<mode>): Likewise.
16347 (neon_vmlal<mode>): Likewise.
16348 (neon_vmls<mode>): Likewise.
16349 (neon_vmlsl<mode>): Likewise.
16350 (neon_vqdmulh<mode>): Likewise.
16351 (neon_vqdmlal<mode>): Likewise.
16352 (neon_vqdmlsl<mode>): Likewise.
16353 (neon_vmull<mode>): Likewise.
16354 (neon_vqdmull<mode>): Likewise.
16355 (neon_vsub<mode>_unspec): Likewise.
16356 (neon_vsubl<mode>): Likewise.
16357 (neon_vsubw<mode>): Likewise.
16358 (neon_vqsub<mode>): Likewise.
16359 (neon_vhsub<mode>): Likewise.
16360 (neon_vsubhn<mode>): Likewise.
16361 (neon_vceq<mode>): Likewise.
16362 (neon_vcge<mode>): Likewise.
16363 (neon_vcgeu<mode>): Likewise.
16364 (neon_vcgt<mode>): Likewise.
16365 (neon_vcgtu<mode>): Likewise.
16366 (neon_vcle<mode>): Likewise.
16367 (neon_vclt<mode>): Likewise.
16368 (neon_vcage<mode>): Likewise.
16369 (neon_vcagt<mode>): Likewise.
16370 (neon_vtst<mode>): Likewise.
16371 (neon_vabd<mode>): Likewise.
16372 (neon_vabdl<mode>): Likewise.
16373 (neon_vaba<mode>): Likewise.
16374 (neon_vabal<mode>): Likewise.
16375 (neon_vmax<mode>): Likewise.
16376 (neon_vmin<mode>): Likewise.
16377 (neon_vpaddl<mode>): Likewise.
16378 (neon_vpadal<mode>): Likewise.
16379 (neon_vpmax<mode>): Likewise.
16380 (neon_vpmin<mode>): Likewise.
16381 (neon_vrecps<mode>): Likewise.
16382 (neon_vrsqrts<mode>): Likewise.
16383 (neon_vqabs<mode>): Likewise.
16384 (neon_vqneg<mode>): Likewise.
16385 (neon_vcls<mode>): Likewise.
16386 (clz<mode>2): Likewise.
16387 (popcount<mode>2): Likewise.
16388 (neon_vrecpe): Likewise.
16389 (neon_vrsqrte): Likewise.
16390 (neon_vget_lane<mode>_sext_internal): Likewise.
16391 (neon_vget_lane<mode>_zext_internal): Likewise.
16392 (neon_vdup_n<mode>): Likewise.
16393 (neon_vdup_nv2di): Likewise.
16394 (neon_vdpu_lane<mode>_internal): Likewise.
16395 (neon_vswp<mode>): Likewise.
16396 (float<mode><V_cvtto>2): Likewise.
16397 (floatuns<mode><V_cvtto>2): Likewise.
16398 (fix_trunc<mode><V_cvtto>)2): Likewise
16399 (fixuns_trunc<mode><V_cvtto)2): Likewise.
16400 (neon_vcvt<mode>): Likewise.
16401 (neon_vcvtv4sfv4hf): Likewise.
16402 (neon_vcvtv4hfv4sf): Likewise.
16403 (neon_vcvt_n<mode>): Likewise.
16404 (neon_vmovn<mode>): Likewise.
16405 (neon_vqmovn<mode>): Likewise.
16406 (neon_vqmovun<mode>): Likewise.
16407 (neon_vmovl<mode>): Likewise.
16408 (neon_vmul_lane<mode>): Likewise.
16409 (neon_vmull_lane<mode>): Likewise.
16410 (neon_vqdmull_lane<mode>): Likewise.
16411 (neon_vqdmulh_lane<mode>): Likewise.
16412 (neon_vmla_lane<mode>): Likewise.
16413 (neon_vmlal_lane<mode>): Likewise.
16414 (neon_vqdmlal_lane<mode>): Likewise.
16415 (neon_vmls_lane<mode>): Likewise.
16416 (neon_vmlsl_lane<mode>): Likewise.
16417 (neon_vqdmlsl_lane<mode>): Likewise.
16418 (neon_vext<mode>): Likewise.
16419 (neon_vrev64<mode>): Likewise.
16420 (neon_vrev32<mode>): Likewise.
16421 (neon_vrev16<mode>): Likewise.
16422 (neon_vbsl<mode>_internal): Likewise.
16423 (neon_vshl<mode>): Likewise.
16424 (neon_vqshl<mode>): Likewise.
16425 (neon_vshr_n<mode>): Likewise.
16426 (neon_vshrn_n<mode>): Likewise.
16427 (neon_vqshrn_n<mode>): Likewise.
16428 (neon_vqshrun_n<mode>): Likewise.
16429 (neon_vshl_n<mode>): Likewise.
16430 (neon_vqshl_n<mode>): Likewise.
16431 (neon_vqshlu_n<mode>): Likewise.
16432 (neon_vshll_n<mode>): Likewise.
16433 (neon_vsra_n<mode>): Likewise.
16434 (neon_vsri_n<mode>): Likewise.
16435 (neon_vsli_n<mode>): Likewise.
16436 (neon_vtbl1v8qi): Likewise.
16437 (neon_vtbl2v8qi): Likewise.
16438 (neon_vtbl3v8qi): Likewise.
16439 (neon_vtbl4v8qi): Likewise.
16440 (neon_vtbx1v8qi): Likewise.
16441 (neon_vtbx2v8qi): Likewise.
16442 (neon_vtbx3v8qi): Likewise.
16443 (neon_vtbx4v8qi): Likewise.
16444 (neon_vtrn<mode>_internal): Likewise.
16445 (neon_vzip<mode>_internal): Likewise.
16446 (neon_vuzp<mode>_internal): Likewise.
16447 (neon_vld1<mode>): Likewise.
16448 (neon_vld1_lane<mode>): Likewise.
16449 (neon_vld1_dup<mode>): Likewise.
16450 (neon_vld1_dupv2di): Likewise.
16451 (neon_vst1<mode>): Likewise.
16452 (neon_vst1_lane<mode>): Likewise.
16453 (neon_vld2<mode>): Likewise.
16454 (neon_vld2_lane<mode>): Likewise.
16455 (neon_vld2_dup<mode>): Likewise.
16456 (neon_vst2<mode>): Likewise.
16457 (neon_vst2_lane<mode>): Likewise.
16458 (neon_vld3<mode>): Likewise.
16459 (neon_vld3qa<mode>): Likewise.
16460 (neon_vld3qb<mode>): Likewise.
16461 (neon_vld3_lane<mode>): Likewise.
16462 (neon_vld3_dup<mode>): Likewise.
16463 (neon_vst3<mode>): Likewise.
16464 (neon_vst3qa<mode>): Likewise.
16465 (neon_vst3qb<mode>): Likewise.
16466 (neon_vst3_lane<mode>): Likewise.
16467 (neon_vld4<mode>): Likewise.
16468 (neon_vld4qa<mode>): Likewise.
16469 (neon_vld4qb<mode>): Likewise.
16470 (neon_vld4_lane<mode>): Likewise.
16471 (neon_vld4_dup<mode>): Likewise.
16472 (neon_vst4<mode>): Likewise.
16473 (neon_vst4qa<mode>): Likewise.
16474 (neon_vst4qb<mode>): Likewise.
16475 (neon_vst4_lane<mode>): Likewise.
16476 (neon_vec_unpack<US>_lo_<mode>): Likewise.
16477 (neon_vec_unpack<US>_hi_<mode>): Likewise.
16478 (neon_vec_<US>mult_lo_<mode>): Likewise.
16479 (neon_vec_<US>mult_hi_<mode>): Likewise.
16480 (neon_vec_<US>shiftl_<mode>): Likewise.
16481 (neon_unpack<US>_<mode>): Likewise.
16482 (neon_vec_<US>mult_<mode>): Likewise.
16483 (vec_pack_trunc_<mode>): Likewise.
16484 (neon_vec_pack_trunk_<mode>): Likewise.
16485 (neon_vabd<mode>_2): Likewise.
16486 (neon_vabd<mode>_3): Likewise.
16487 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
16488 (thumb2_movsi_vfp): Likewise.
16489 (movdi_vfp): Likewise.
16490 (movdi_vfp_cortexa8): Likewise.
16491 (movhf_vfp_neon): Likewise.
16492 (movhf_vfp): Likewiwse.
16493 (movsf_vfp): Likewiwse.
16494 (thumb2_movsf_vfp): Likewiwse.
16495 (movdf_vfp): Likewise.
16496 (thumb2_movdf_vfp): Likewise.
16497 (movsfcc_vfp): Likewise.
16498 (thumb2_movsfcc_vfp): Likewise.
16499 (movdfcc_vfp): Likewise.
16500 (thumb2_movdfcc_vfp): Likewise.
16501 * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
16502 * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
16503 (v10_v2c): Likewise.
16504 * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
16506 (cortex_a15_neon_int_2): Likewise.
16507 (cortex_a15_neon_int_3): Likewise.
16508 (cortex_a15_neon_int_4): Likewise.
16509 (cortex_a15_neon_int_5): Likewise.
16510 (cortex_a15_neon_vqneg_vqabs): Likewise.
16511 (cortex_a15_neon_vmov): Likewise.
16512 (cortex_a15_neon_vaba): Likewise.
16513 (cortex_a15_neon_vaba_qqq): Likewise.
16514 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16515 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
16516 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
16517 scalar_64_32_long_scalar): Likewise.
16518 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16519 (cortex_a15_neon_mla_qqq_8_16): Likewise.
16520 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
16521 lotype_qdd_64_32_long): Likewise.
16522 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
16523 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
16524 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
16525 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
16526 (cortex_a15_neon_shift_1): Likewise.
16527 (cortex_a15_neon_shift_2): Likewise.
16528 (cortex_a15_neon_shift_3): Likewise.
16529 (cortex_a15_neon_vshl_ddd): Likewise.
16530 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
16531 (cortex_a15_neon_vsra_vrsra): Likewise.
16532 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
16533 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
16534 (cortex_a15_neon_fp_vmul_ddd): Likewise.
16535 (cortex_a15_neon_fp_vmul_qqd): Likewise.
16536 (cortex_a15_neon_fp_vmla_ddd): Likewise.
16537 (cortex_a15_neon_fp_vmla_qqq): Likewise.
16538 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
16539 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
16540 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
16541 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
16542 (cortex_a15_neon_bp_simple): Likewise.
16543 (cortex_a15_neon_bp_2cycle): Likewise.
16544 (cortex_a15_neon_bp_3cycle): Likewise.
16545 (cortex_a15_neon_vld1_1_2_regs): Likewise.
16546 (cortex_a15_neon_vld1_3_4_regs): Likewise.
16547 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
16548 (cortex_a15_neon_vld2_4_regs): Likewise.
16549 (cortex_a15_neon_vld3_vld4): Likewise.
16550 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
16551 (cortex_a15_neon_vst1_3_4_regs): Likewise.
16552 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
16553 (cortex_a15_neon_vst3_vst4): Likewise.
16554 (cortex_a15_neon_vld1_vld2_lane): Likewise.
16555 (cortex_a15_neon_vld3_vld4_lane" 10
16556 (cortex_a15_neon_vst1_vst2_lane): Likewise.
16557 (cortex_a15_neon_vst3_vst4_lane): Likewise.
16558 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
16559 (cortex_a15_neon_ldm_2): Likewise.0
16560 (cortex_a15_neon_stm_2): Likewise.
16561 (cortex_a15_neon_mcr): Likewise.
16562 (cortex_a15_neon_mcr_2_mcrr): Likewise.
16563 (cortex_a15_neon_mrc): Likewise.
16564 (cortex_a15_neon_mrrc): Likewise.
16565 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
16567 (cortex_a15_alu_shift): Likewise.
16568 (cortex_a15_alu_shift_reg): Likewise.
16569 (cortex_a15_mult32): Likewise.
16570 (cortex_a15_mult64): Likewise.
16571 (cortex_a15_block): Likewise.
16572 (cortex_a15_branch): Likewise.
16573 (cortex_a15_load1): Likewise.
16574 (cortex_a15_load3): Likewise.
16575 (cortex_a15_store1): Likewise.
16576 (cortex_a15_store3): Likewise.
16577 (cortex_a15_call): Likewise.
16578 * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
16579 (cortex_a5_f2r): Likewise.
16580 * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
16582 (cortex_a53_f2r): Likewise.
16583 * config/arm/cortex-a7.md
16584 (cortex_a7_branch): Update for attribute change.
16585 (cortex_a7_call): Likewise.
16586 (cortex_a7_alu_imm): Likewise.
16587 (cortex_a7_alu_reg): Likewise.
16588 (cortex_a7_alu_shift): Likewise.
16589 (cortex_a7_mul): Likewise.
16590 (cortex_a7_load1): Likewise.
16591 (cortex_a7_store1): Likewise.
16592 (cortex_a7_load2): Likewise.
16593 (cortex_a7_store2): Likewise.
16594 (cortex_a7_load3): Likewise.
16595 (cortex_a7_store3): Likewise.
16596 (cortex_a7_load4): Likewise.
16597 (cortex_a7_store4): Likewise.
16598 (cortex_a7_fpalu): Likewise.
16599 (cortex_a7_fconst): Likewise.
16600 (cortex_a7_fpmuls): Likewise.
16601 (cortex_a7_neon_mul): Likewise.
16602 (cortex_a7_fpmacs): Likewise.
16603 (cortex_a7_neon_mla: Likewise.
16604 (cortex_a7_fpmuld: Likewise.
16605 (cortex_a7_fpmacd: Likewise.
16606 (cortex_a7_fpfmad: Likewise.
16607 (cortex_a7_fdivs: Likewise.
16608 (cortex_a7_fdivd: Likewise.
16609 (cortex_a7_r2f: Likewise.
16610 (cortex_a7_f2r: Likewise.
16611 (cortex_a7_f_flags: Likewise.
16612 (cortex_a7_f_loads: Likewise.
16613 (cortex_a7_f_loadd: Likewise.
16614 (cortex_a7_f_stores: Likewise.
16615 (cortex_a7_f_stored: Likewise.
16616 (cortex_a7_neon): Likewise.
16617 * config/arm/cortex-a8-neon.md
16618 (cortex_a8_neon_mrc): Update for attribute change.
16619 (cortex_a8_neon_mrrc): Likewise.
16620 (cortex_a8_neon_int_1): Likewise.
16621 (cortex_a8_neon_int_2): Likewise.
16622 (cortex_a8_neon_int_3): Likewise.
16623 (cortex_a8_neon_int_4): Likewise.
16624 (cortex_a8_neon_int_5): Likewise.
16625 (cortex_a8_neon_vqneg_vqabs): Likewise.
16626 (cortex_a8_neon_vmov): Likewise.
16627 (cortex_a8_neon_vaba): Likewise.
16628 (cortex_a8_neon_vaba_qqq): Likewise.
16629 (cortex_a8_neon_vsma): Likewise.
16630 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16631 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
16632 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
16633 long_scalar): Likewise.
16634 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16635 (cortex_a8_neon_mla_qqq_8_16): Likewise.
16636 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
16637 long_scalar_qdd_64_32_long): Likewise.
16638 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
16639 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
16640 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
16641 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
16642 (cortex_a8_neon_shift_1): Likewise.
16643 (cortex_a8_neon_shift_2): Likewise.
16644 (cortex_a8_neon_shift_3): Likewise.
16645 (cortex_a8_neon_vshl_ddd): Likewise.
16646 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
16647 (cortex_a8_neon_vsra_vrsra): Likewise.
16648 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
16649 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
16650 (cortex_a8_neon_fp_vsum): Likewise.
16651 (cortex_a8_neon_fp_vmul_ddd): Likewise.
16652 (cortex_a8_neon_fp_vmul_qqd): Likewise.
16653 (cortex_a8_neon_fp_vmla_ddd): Likewise.
16654 (cortex_a8_neon_fp_vmla_qqq): Likewise.
16655 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
16656 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
16657 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
16658 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
16659 (cortex_a8_neon_bp_simple): Likewise.
16660 (cortex_a8_neon_bp_2cycle): Likewise.
16661 (cortex_a8_neon_bp_3cycle): Likewise.
16662 (cortex_a8_neon_ldr): Likewise.
16663 (cortex_a8_neon_str): Likewise.
16664 (cortex_a8_neon_vld1_1_2_regs): Likewise.
16665 (cortex_a8_neon_vld1_3_4_regs): Likewise.
16666 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
16667 (cortex_a8_neon_vld2_4_regs): Likewise.
16668 (cortex_a8_neon_vld3_vld4): Likewise.
16669 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
16670 (cortex_a8_neon_vst1_3_4_regs): Likewise.
16671 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
16672 (cortex_a8_neon_vst3_vst4): Likewise.
16673 (cortex_a8_neon_vld1_vld2_lane): Likewise.
16674 (cortex_a8_neon_vld3_vld4_lane): Likewise.
16675 (cortex_a8_neon_vst1_vst2_lane): Likewise.
16676 (cortex_a8_neon_vst3_vst4_lane): Likewise.
16677 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
16678 (cortex_a8_neon_mcr): Likewise.
16679 (cortex_a8_neon_mcr_2_mcrr): Likewise.
16680 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
16681 * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
16683 (ca9_neon_mrrc): Likewise.
16684 (cortex_a9_neon_int_1): Likewise.
16685 (cortex_a9_neon_int_2): Likewise.
16686 (cortex_a9_neon_int_3): Likewise.
16687 (cortex_a9_neon_int_4): Likewise.
16688 (cortex_a9_neon_int_5): Likewise.
16689 (cortex_a9_neon_vqneg_vqabs): Likewise.
16690 (cortex_a9_neon_vmov): Likewise.
16691 (cortex_a9_neon_vaba): Likewise.
16692 (cortex_a9_neon_vaba_qqq): Likewise.
16693 (cortex_a9_neon_vsma): Likewise.
16694 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16695 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
16696 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
16697 long_scalar): Likewise.
16698 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16699 (cortex_a9_neon_mla_qqq_8_16): Likewise.
16700 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
16701 long_scalar_qdd_64_32_long): Likewise.
16702 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
16703 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
16704 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
16705 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
16706 (cortex_a9_neon_shift_1): Likewise.
16707 (cortex_a9_neon_shift_2): Likewise.
16708 (cortex_a9_neon_shift_3): Likewise.
16709 (cortex_a9_neon_vshl_ddd): Likewise.
16710 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
16711 (cortex_a9_neon_vsra_vrsra): Likewise.
16712 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
16713 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
16714 (cortex_a9_neon_fp_vsum): Likewise.
16715 (cortex_a9_neon_fp_vmul_ddd): Likewise.
16716 (cortex_a9_neon_fp_vmul_qqd): Likewise.
16717 (cortex_a9_neon_fp_vmla_ddd): Likewise.
16718 (cortex_a9_neon_fp_vmla_qqq): Likewise.
16719 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
16720 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
16721 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
16722 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
16723 (cortex_a9_neon_bp_simple): Likewise.
16724 (cortex_a9_neon_bp_2cycle): Likewise.
16725 (cortex_a9_neon_bp_3cycle): Likewise.
16726 (cortex_a9_neon_ldr): Likewise.
16727 (cortex_a9_neon_str): Likewise.
16728 (cortex_a9_neon_vld1_1_2_regs): Likewise.
16729 (cortex_a9_neon_vld1_3_4_regs): Likewise.
16730 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
16731 (cortex_a9_neon_vld2_4_regs): Likewise.
16732 (cortex_a9_neon_vld3_vld4): Likewise.
16733 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
16734 (cortex_a9_neon_vst1_3_4_regs): Likewise.
16735 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
16736 (cortex_a9_neon_vst3_vst4): Likewise.
16737 (cortex_a9_neon_vld1_vld2_lane): Likewise.
16738 (cortex_a9_neon_vld3_vld4_lane): Likewise.
16739 (cortex_a9_neon_vst1_vst2_lane): Likewise.
16740 (cortex_a9_neon_vst3_vst4_lane): Likewise.
16741 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
16742 (cortex_a9_neon_mcr): Likewise.
16743 (cortex_a9_neon_mcr_2_mcrr): Likewise.
16744 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
16745 (cortex_a9_fps): Likewise.
16746 * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
16748 (cortex_m4_fmuls): Likewise.
16749 * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
16751 (cortex_r4_mrc): Likewise.
16752 * config/arm/iterators.md: Update comment referring to neon_type.
16753 * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
16754 (iwmmxt_movsi_insn): Likewise.
16755 * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
16757 (pj4_core_to_vfp): Likewise.
16758 * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
16760 * config/arm/vfp11.md (vfp_fload): Update for attribute change.
16761 (vfp_fstore): Likewise.
16762 * doc/md.texi: Change references to neon_type to refer to type.
16764 2013-09-04 Dodji Seketeli <dodji@redhat.com>
16766 * tree.h (DECL_BUILT_IN): Fix typo in comment.
16768 2013-09-04 David Edelsohn <dje.gcc@gmail.com>
16770 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
16771 lglobl if not weak.
16773 2013-09-04 Easwaran Raman <eraman@google.com>
16775 PR middle-end/57370
16776 * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
16777 (build_and_add_sum): Use it.
16778 (appears_later_in_bb): Simplify code.
16780 2013-09-04 Teresa Johnson <tejohnson@google.com>
16782 * dumpfile.c (dump_finish): Don't close stderr/stdout.
16784 2013-09-04 James Greenhalgh <james.greenhalgh@arm.com>
16786 * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
16788 2013-09-04 Jan Hubicka <jh@suse.cz>
16790 * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
16791 * ipa-devirt.c: Include diganostic.h
16792 (odr_type_d): Add types and types_set.
16793 (hash_type_name): Work for types with vtables during LTO.
16794 (odr_hasher::remove): Fix comment; destroy types_set.
16795 (add_type_duplicate): New function,
16796 (get_odr_type): Use it.
16797 (dump_type_inheritance_graph): Dump type duplicates.
16798 * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
16800 * tree.c (types_same_for_odr): Give exact answers on types with
16803 2013-09-04 Dodji Seketeli <dodji@redhat.com>
16805 * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
16806 explaining their differences.
16808 2013-09-04 Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
16810 * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
16812 2013-09-03 Jeff Law <law@redhat.com>
16814 * tree-ssa-threadedge.c (thread_across_edge): Record entire path
16815 when not threading through a joiner block. Pass joiner/no joiner
16816 state to register_jump_thread.
16817 * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
16818 state from argument rather than implying on path length.
16819 Dump the entire jump thread path into debugging dump.
16820 * tree-flow.h (register_jump_thread): Update prototype.
16822 2013-08-29 Xinliang David Li <davidxl@google.com>
16824 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
16825 Remove a trivial gcc_assert.
16827 2013-08-29 Xinliang David Li <davidxl@google.com>
16829 * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
16830 * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
16831 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
16832 Delay base decl alignment adjustment.
16833 * tree-vectorizer.c (vect_destroy_datarefs): New function.
16834 * tree-vectorizer.h: New data structure.
16835 (set_dr_misalignment): New function.
16836 (dr_misalignment): Ditto.
16837 * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
16838 (vectorizable_load): Ditto.
16839 (ensure_base_align): New function.
16840 (vectorize_loops): Add dbg_cnt support.
16841 (execute_vect_slp): Ditto.
16842 * dbgcnt.def: New debug counter.
16843 * Makefile: New dependency.
16845 2013-09-03 Meador Inge <meadori@codesourcery.com>
16849 2013-08-30 Meador Inge <meadori@codesourcery.com>
16851 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
16853 2013-09-03 David Edelsohn <dje.gcc@gmail.com>
16855 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
16856 function descriptor.
16858 2013-09-03 Richard Biener <rguenther@suse.de>
16860 * tree-affine.c (add_elt_to_tree): Fix association issue,
16861 avoid useless converts and make sure to always return a
16862 properly typed result.
16864 2013-09-03 Richard Biener <rguenther@suse.de>
16866 PR middle-end/57656
16867 * fold-const.c (negate_expr_p): Fix division case.
16868 (negate_expr): Likewise.
16870 2013-09-03 Richard Biener <rguenther@suse.de>
16873 * tree-streamer-out.c: Include tm.h.
16874 * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
16876 2013-09-03 Jan Hubicka <jh@suse.cz>
16878 * tree-profile.c (tree_profiling): Cleanup CFG when done.
16880 2013-09-03 Alan Modra <amodra@gmail.com>
16882 * config.gcc (powerpc*-*-linux*): Add support for little-endian
16883 multilibs to big-endian target and vice versa.
16884 * config/rs6000/t-linux64: Use := assignment on all vars.
16885 (MULTILIB_EXTRA_OPTS): Remove fPIC.
16886 (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
16887 * config/rs6000/t-linux64le: New file.
16888 * config/rs6000/t-linux64bele: New file.
16889 * config/rs6000/t-linux64lebe: New file.
16891 2013-09-02 Jan Hubicka <jh@suse.cz>
16893 * ipa-inline-transform.c (inline_transform): Do not
16894 optimize_inline_calls when not optimizing.
16896 2013-09-02 Jan Hubicka <jh@suse.cz>
16898 * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
16899 duplicated nodes for assembler names.
16900 * symtab.c (symtab_unregister_node): Do not attempt to unlink
16901 hard registers from assembler name hash.
16903 2013-09-02 Jan Hubicka <jh@suse.cz>
16905 * ipa-split.c (execute_split_functions): Split externally visible
16906 functions called once.
16908 2013-09-02 Martin Jambor <mjambor@suse.cz>
16911 * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
16912 linked list. When finding the correct duplicate, also consider also
16913 the caller in additon to its inlined_to node.
16915 2013-09-02 James Greenhalgh <james.greenhalgh@arm.com>
16917 * config/aarch64/aarch64-simd-builtins.def
16918 (dup_lane_scalar): Remove.
16919 * config/aarch64/aarch64-simd.md
16920 (aarch64_simd_dup): Add 'w->w' alternative.
16921 (aarch64_dup_lane<mode>): Allow for VALL.
16922 (aarch64_dup_lane_scalar<mode>): Remove.
16923 (aarch64_dup_lane_<vswap_width_name><mode>): New.
16924 (aarch64_get_lane_signed<mode>): Add w->w altenative.
16925 (aarch64_get_lane_unsigned<mode>): Likewise.
16926 (aarch64_get_lane<mode>): Likewise.
16927 * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
16928 (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
16929 * config/aarch64/iterators.md (VSWAP_WIDTH): New.
16930 (VCON): Change container of V2SF.
16931 (vswap_width_name): Likewise.
16932 * config/aarch64/arm_neon.h
16933 (__aarch64_vdup_lane_any): New.
16934 (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
16935 (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
16936 (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
16938 2013-09-02 Eric Botcazou <ebotcazou@adacore.com>
16940 PR middle-end/56382
16941 * expr.c (emit_move_complex): Do not move complex FP values as parts if
16942 the source or the destination is a single hard register.
16944 2013-09-02 Richard Biener <rguenther@suse.de>
16946 PR middle-end/57511
16947 * tree-scalar-evolution.c (instantiate_scev_name): Allow
16950 2013-09-02 Richard Biener <rguenther@suse.de>
16952 * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
16953 arithmetic to sizetype.
16955 2013-09-02 Bin Cheng <bin.cheng@arm.com>
16957 * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
16958 Find auto-increment use both before and after candidate.
16960 2013-09-02 Marek Polacek <polacek@redhat.com>
16962 * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
16964 2013-09-01 Jan Hubicka <jh@suse.cz>
16966 * Makefile.in: Add ipa-profile.o
16967 (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
16968 * cgraph.c (struct cgraph_propagate_frequency_data,
16969 cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
16970 ipa-profile.c; replace cgraph_ by ipa_ prefix.
16971 * cgraph.h (cgraph_propagate_frequency): Remove.
16972 * ipa-inline-analysis.c: Include ipa-utils.h;
16973 drop duplicated cfgloop.h.
16974 (inline_update_callee_summaries): Update.
16975 * ipa-profile.c: New file.
16976 * ipa-utils.h (ipa_propagate_frequency): Declare.
16977 * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
16978 data-streamer.h, value-prof.h.
16979 (symtab_remove_unreachable_nodes): Update profile.
16980 (struct histogram_entry, histogram, histogram_pool, histogram_hash,
16981 account_time_size, cmp_counts, dump_histogram,
16982 ipa_profile_generate_summary, ipa_profile_write_summary,
16983 ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
16984 pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
16985 Move to ipa-profile.c.
16987 2013-09-01 John David Anglin <danglin@gcc.gnu.org>
16989 * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
16991 2013-09-01 Jan Hubicka <jh@suse.cz>
16993 * common.opt (fdevirtualize-speculatively): New function.
16994 * invoke.texi (fdevirtualize-speculatively): Document.
16995 * ipa-devirt.c: Include ipa-inline.h
16996 (likely_target_p): New function.
16997 (ipa_devirt): New function.
16998 (gate_ipa_devirt): New function.
16999 (pass_data_ipa_devirt): New static var.
17000 (pass_ipa_devirt): Likewise.
17001 (make_pass_ipa_devirt): New function.
17002 * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
17003 (common_handle_option): Disable devirtualization when
17004 value range profiling is available.
17005 * passes.def (pass_ipa_devirt): Add.
17006 * timever.def (TV_IPA_DEVIRT): New timevar.
17007 * tree-pass.h (make_pass_ipa_devirt):
17009 2013-09-01 Iain Sandoe <iain@codesourcery.com>
17011 * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
17012 include sanitize(undefined).
17014 2013-08-31 Diego Novillo <dnovillo@google.com>
17016 * Makefile.in (TREE_CORE_H): Define.
17018 (GTFILES): Add tree-core.h.
17019 * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
17021 * tree-core.h: New file.
17022 Move all data structures, enum, typedefs, global
17023 declarations and constants from ...
17024 * tree.h: ... here.
17026 2013-08-31 Jan Hubicka <jh@suse.cz>
17028 * bulitins.c (expand_builtin): Do not early exit for gcov
17029 instrumented functions.
17031 2013-08-31 Marek Polacek <polacek@redhat.com>
17033 * ubsan.c: Include tm_p.h.
17035 2013-08-31 Jan Hubicka <jh@suse.cz>
17037 * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
17040 * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
17041 * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
17042 * tree-cfg.c (verify_gimple_label): ... here.
17043 * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
17044 (ipa_merge_profiles): New function.
17045 * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
17046 (lto_input_function_body): Likewise.
17047 * ipa-utils.h (ipa_merge_profiles): Declare.
17048 * lto-streamer.h (lto_input_function_body): Update prototype.
17049 (emit_label_in_global_context_p): Remove.
17050 * lto-symtab.c: Include ipa-utils.h
17051 (lto_cgraph_replace_node): Use ipa_merge_profiles.
17053 2013-08-31 Jan Hubicka <jh@suse.cz>
17055 * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
17057 2013-08-31 Jan Hubicka <jh@suse.cz>
17059 * basic-block.h (apply_scale): Make scale parmeter gcov_type.
17061 2013-08-31 Uros Bizjak <ubizjak@gmail.com>
17063 * config/alpha/alpha.c (alpha_emit_conditional_move): Update
17064 "cmp" RTX before signed_comparison_operator check to account
17065 for "code" changes.
17067 2013-08-30 Jan Hubicka <jh@suse.cz>
17069 * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
17070 (detect_type_change_1): Rename to ...
17071 (detect_type_change): ... this one; early return on non-polymorphic
17073 (detect_type_change_ssa): Add comp_type parameter; update
17074 use of detect_type_change.
17075 (compute_complex_assign_jump_func): Add param_type parameter;
17076 update use of detect_type_change_ssa.
17077 (compute_complex_ancestor_jump_func): Likewise.
17078 (ipa_get_callee_param_type): New function.
17079 (ipa_compute_jump_functions_for_edge): Compute parameter type;
17080 update calls to the jump function computation functions.
17082 2013-08-30 Teresa Johnson <tejohnson@google.com>
17083 Steven Bosscher <steven@gcc.gnu.org>
17085 * cfgrtl.c (fixup_new_cold_bb): New routine.
17086 (commit_edge_insertions): Invoke fixup_partitions.
17087 (find_partition_fixes): New routine.
17088 (fixup_partitions): Ditto.
17089 (verify_hot_cold_block_grouping): Update comments.
17090 (rtl_verify_edges): Invoke find_partition_fixes.
17091 (rtl_verify_bb_pointers): Update comments.
17092 (rtl_verify_bb_layout): Ditto.
17093 * basic-block.h (probably_never_executed_edge_p): Declare.
17094 (fixup_partitions): Ditto.
17095 * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
17096 * bb-reorder.c (sanitize_hot_paths): New function.
17097 (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
17098 sanitize_hot_paths.
17099 * predict.c (probably_never_executed_edge_p): New routine.
17100 * cfg.c (check_bb_profile): Add partition insanity warnings.
17102 2013-08-30 Meador Inge <meadori@codesourcery.com>
17104 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
17106 2013-08-30 Marek Polacek <polacek@redhat.com>
17108 * Makefile.in (ubsan.o): Add.
17109 (c-family/c-ubsan.o): Add.
17110 (builtins.o): Add ubsan.h dependency.
17111 * ubsan.h: New file.
17112 * ubsan.c: New file.
17113 * common.opt: Add -fsanitize=undefined option.
17114 (flag_sanitize): Add variable.
17115 (fsanitize=): Add option. Add Driver.
17116 (fsanitize=thread): Remove option.
17117 (fsanitize=address): Likewise.
17118 (static-libubsan): New option.
17119 * doc/invoke.texi: Document the new flag and -static-libubsan.
17120 * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
17121 (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
17122 * builtin-attrs.def (ATTR_COLD): Define.
17123 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
17124 * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
17125 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
17126 * flag-types.h (sanitize_code): New enum.
17127 * opts.c (common_handle_option): Parse command line arguments
17128 of -fsanitize=. Add -fsanitize=unreachable option.
17129 * varasm.c (get_variable_section): Adjust.
17130 (assemble_noswitch_variable): Likewise.
17131 (assemble_variable): Likewise.
17132 (output_constant_def_contents): Likewise.
17133 (categorize_decl_for_section): Likewise.
17134 (place_block_symbol): Likewise.
17135 (output_object_block): Likewise.
17136 * builtins.def: Likewise.
17137 * toplev.c (compile_file): Likewise.
17138 (process_options): Likewise.
17139 * cppbuiltin.c: Likewise.
17140 * tsan.c (tsan_pass): Likewise.
17141 (tsan_gate): Likewise.
17142 (tsan_gate_O0): Likewise.
17143 * cfgexpand.c (partition_stack_vars): Likewise.
17144 (expand_stack_vars): Likewise.
17145 (defer_stack_allocation): Likewise.
17146 (expand_used_vars): Likewise.
17147 * cfgcleanup.c (old_insns_match_p): Likewise.
17148 * asan.c (asan_finish_file): Likewise.
17149 (asan_instrument): Likewise.
17150 (gate_asan): Likewise.
17151 (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
17152 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
17153 (asan_global_struct): Use pointer_sized_int_node instead
17154 calling build_nonstandard_integer_type.
17155 (initialize_sanitizer_builtins): Likewise.
17156 (asan_finish_file): Likewise.
17157 * gcc.c: Document %{%:function(args):X}.
17158 (static_spec_functions): Add sanitize.
17159 (handle_spec_function): Add retval_nonnull argument and if non-NULL,
17160 store funcval != NULL there.
17161 (do_spec_1): Adjust handle_spec_function caller.
17162 (handle_braces): Allow %:function(args) as condition.
17163 (sanitize_spec_function): New function.
17164 (ADD_STATIC_LIBUBSAN_LIBS): Define.
17165 (LIBUBSAN_SPEC): Likewise.
17166 (LIBUBSAN_EARLY_SPEC): Likewise.
17167 (SANITIZER_SPEC): Handle libubsan.
17168 (SANITIZER_EARLY_SPEC): Likewise.
17169 * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
17170 instead of fsanitize=address.
17171 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
17172 instead of fsanitize=address*.
17173 * builtins.c: Include ubsan.h.
17174 (fold_builtin_0): Instrument __builtin_unreachable.
17175 * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
17176 instead of flag_asan.
17177 * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
17178 (pointer_sized_int_node): Define.
17179 * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
17181 2013-08-30 Mike Stump <mikestump@comcast.net>
17183 * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
17186 2013-08-29 Jan Hubicka <jh@suse.cz>
17188 * cgraph.c (cgraph_function_body_availability): Handle weakref
17190 * passes.def: Remove pass_fixup_cfg.
17191 * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
17192 track when we need to remove functions.
17193 (gate_ipa_inline): Execute inlining always; add comment why.
17194 (pass_data_ipa_inline): Remove TODO_remove_functions.
17195 * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
17196 do not produce summaries.
17197 * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
17198 (symtab_nonoverwritable_alias): Assert we are not called on weakref.
17199 * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
17200 constant pool and vtable.
17202 2013-08-30 Tejas Belagod <tejas.belagod@arm.com>
17204 * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
17205 New arm_neon.h's internal macros to specify 64-bit constants.
17206 Avoid using stdint.h's macros.
17208 2013-08-30 Joern Rennecke <joern.rennecke@embecosm.com>
17210 * recog.c (verify_changes): Verify that changes[i].old is non-zero
17211 before applying REG_P.
17213 2013-08-30 Jakub Jelinek <jakub@redhat.com>
17215 PR tree-optimization/58277
17216 * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
17217 after seeing too many stmts with vdef in between dombb and current
17218 bb, invalidate everything.
17220 2013-08-30 Richard Biener <rguenther@suse.de>
17222 * fold-const.c (fold_single_bit_test): Fix overflow test.
17224 2013-08-30 Eric Botcazou <ebotcazou@adacore.com>
17226 * function.c (assign_parm_setup_reg): For a parameter passed by pointer
17227 and which can live in a register, always retrieve the value on entry.
17228 * var-tracking.c (add_stores): Treat the copy on entry for a parameter
17229 passed by invisible reference specially.
17230 (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
17231 (vt_add_function_parameter): Correctly deal with a parameter passed by
17232 invisible reference.
17234 2013-08-30 Jan Hubicka <jh@suse.cz>
17236 * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
17238 2013-08-30 Richard Biener <rguenther@suse.de>
17240 PR tree-optimization/58228
17241 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
17242 allow invariant loads in nested loop vectorization.
17244 2013-08-30 Richard Biener <rguenther@suse.de>
17246 PR tree-optimization/58223
17247 * tree-loop-distribution.c (has_anti_dependence): Rename to ...
17248 (has_anti_or_output_dependence): ... this and adjust to also
17249 look for output dependences.
17250 (mark_nodes_having_upstream_mem_writes): Adjust.
17251 (rdg_flag_uses): Likewise.
17253 2013-08-30 Richard Biener <rguenther@suse.de>
17255 PR tree-optimization/58010
17256 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
17257 assert that we have a loop-closed PHI.
17259 2013-08-29 Jan Hubicka <jh@suse.cz>
17261 * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
17262 * cgraph.c (cgraph_release_function_body): Free decl_in_state.
17263 * lto-section-in.c (lto_free_function_in_decl_state): New function.
17264 (lto_free_function_in_decl_state_for_node): New function.
17266 2013-08-29 Xinliang David Li <davidxl@google.com>
17268 * loop-unroll.c (report_unroll_peel): Minor message change.
17269 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
17270 Emit alignment peeling message with default -fopt-info.
17271 (vect_loop_versioning): Emit loop version info message.
17272 * tree-vectorizer.c (vectorize_loops): Minor message change.
17273 (execute_vect_slp): Ditto.
17275 2013-08-29 Eric Botcazou <ebotcazou@adacore.com>
17277 * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
17278 of the clone from the DECL_NAME of the original function.
17280 2013-08-29 Oleg Endo <olegendo@gcc.gnu.org>
17282 * passes.c (register_pass): Add overload.
17283 * tree-pass.h (register_pass): Forward declare it. Add comment.
17285 2013-08-29 Jan Hubicka <jh@suse.cz>
17287 * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
17288 DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
17289 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
17290 DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
17291 (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
17292 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
17293 Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
17294 (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
17296 2013-08-29 Teresa Johnson <tejohnson@google.com>
17298 * dumpfile.c (dump_loc): Output column number.
17299 * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
17300 * doc/invoke.texi: Document optall -fopt-info flag.
17301 * profile.c (read_profile_edge_counts): Use new dump framework.
17302 (compute_branch_probabilities): Ditto.
17303 * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
17304 when pass not in any opt group.
17305 * pass_manager.h (pass_manager::get_pass_profile): New method.
17306 * value-prof.c (check_counter): Use new dump framework.
17307 (check_ic_target): Ditto.
17308 * coverage.c (get_coverage_counts): Ditto.
17309 (coverage_init): Setup new dump framework.
17311 2013-08-29 Richard Biener <rguenther@suse.de>
17313 PR tree-optimization/58246
17314 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
17315 handle the dominance check inside a basic-block.
17317 2013-08-29 Richard Biener <rguenther@suse.de>
17319 PR middle-end/57287
17320 * tree-ssa-copy.c (may_propagate_copy): Allow propagating
17321 of default defs that appear in abnormal PHI nodes.
17323 2013-08-29 Richard Biener <rguenther@suse.de>
17325 PR tree-optimization/57685
17326 * tree-vrp.c (register_edge_assert_for_1): Recurse only for
17327 single-use operands to avoid exponential complexity.
17329 2013-08-28 Dehao Chen <dehao@google.com>
17331 * ipa-inline.c (edge_badness): Fix integer underflow.
17333 2013-08-28 Uros Bizjak <ubizjak@gmail.com>
17335 * gtm-builtins.def (_ITM_free): Declare leaf.
17337 2013-08-28 Jakub Jelinek <jakub@redhat.com>
17340 * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
17341 (*tls_local_dynamic_base_64_largepic): Likewise.
17342 (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
17343 Remove predicate from call operand.
17344 * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
17345 return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
17347 2013-08-28 Jeff Law <law@redhat.com>
17349 * tree-ssa-threadedge.c (thread_around_empty_block): Remove
17350 checks for the number of predecessors and successors allowed.
17351 * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
17352 which require copying a joiner block if there is a request which
17353 is a subpath that requires no joiner block copying.
17355 2013-08-28 Jan Hubicka <jh@suse.cz>
17357 * lto-streamer-out.c (DFS_write_tree_body): Drop
17358 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
17359 (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
17360 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
17361 * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
17362 Do not read DECL_ERROR_ISSUED.
17363 (unpack_ts_decl_with_vis_value_fields): Do not read
17365 (lto_input_ts_binfo_tree_pointers): Do not read
17366 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
17367 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
17368 write DECL_ERROR_ISSUED..
17369 (pack_ts_decl_with_vis_value_fields): Do not write
17371 (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
17372 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
17373 * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
17374 * tree.h (tree_decl_common): Update comment.
17375 (DECL_ERROR_ISSUED): Remove.
17377 2013-08-28 Jakub Jelinek <jakub@redhat.com>
17379 PR middle-end/58257
17380 * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
17382 2013-08-28 Jan Hubicka <jh@suse.cz>
17384 * builtins.def (free): Declare leaf.
17386 2013-08-27 David Malcolm <dmalcolm@redhat.com>
17388 * gdbhooks.py: New.
17389 * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
17390 * configure: Regenerate.
17392 2013-08-27 Martin Jambor <mjambor@suse.cz>
17394 * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
17395 (ipa_ancestor_jf_data): Likewise.
17396 (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
17397 (ipa_get_jf_pass_through_type_preserved): New function.
17398 (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
17399 (ipa_get_jf_ancestor_type_preserved): New function.
17400 * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
17401 (ipa_get_jf_ancestor_result): Likewise.
17402 (propagate_vals_accross_pass_through): Use
17403 ipa_get_jf_pass_through_result to do all the value mappings.
17404 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
17405 type_preserved flag.
17406 (ipa_set_jf_cst_copy): New function.
17407 (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
17408 (ipa_set_jf_arith_pass_through): Likewise.
17409 (ipa_set_ancestor_jf): Likewise.
17410 (compute_complex_assign_jump_func): Set type_preserved instead of
17412 (ipa_compute_jump_functions_for_edge): Likewise.
17413 (combine_known_type_and_ancestor_jfs): Honor type_preserved.
17414 (update_jump_functions_after_inlining): Update type_preserved.
17415 Explicitely create jump functions when combining one with pass_through.
17416 (ipa_write_jump_function): Stream the type_preserved flags.
17417 (ipa_read_jump_function): Likewise.
17419 2013-08-27 Jakub Jelinek <jakub@redhat.com>
17420 Aldy Hernandez <aldyh@redhat.com>
17422 * Makefile.in (omp-low.o): Depend on $(TARGET_H).
17423 * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
17424 * function.h (struct function): Add has_force_vect_loops and
17426 * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
17427 * gimple.c (gimple_build_omp_critical): Add KIND argument and
17429 * gimple.def: Update CLAUSES comments.
17430 * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
17431 (gimple_build_omp_for): Add argument to prototype.
17432 (gimple_omp_for_kind): New.
17433 (gimple_omp_for_set_kind): New.
17434 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
17435 GOVD_DATA_SHARE_CLASS.
17436 (enum omp_region_type): Add ORT_SIMD.
17437 (gimple_add_tmp_var): Handle ORT_SIMD.
17438 (gimplify_var_or_parm_decl): Same.
17439 (is_gimple_stmt): Same.
17440 (omp_firstprivatize_variable): Same.
17441 (omp_add_variable): Only use splay_tree_insert if lookup failed.
17442 (omp_notice_variable): Handle ORT_SIMD.
17443 (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
17444 (omp_check_private): Handle ORT_SIMD.
17445 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
17446 OMP_CLAUSE_SAFELEN.
17447 (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
17448 Handle OMP_CLAUSE_LASTPRIVATE.
17449 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
17450 OMP_CLAUSE_SAFELEN.
17451 (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
17452 (gimplify_expr): Handle OMP_SIMD.
17453 * internal-fn.c (expand_GOMP_SIMD_LANE): New.
17454 (expand_GOMP_SIMD_VF): New.
17455 (expand_GOMP_SIMD_LAST_LANE): New.
17456 * internal-fn.def (GOMP_SIMD_LANE): New.
17457 (GOMP_SIMD_VF): New.
17458 (GOMP_SIMD_LAST_LANE): New.
17459 * omp-low.c: Include target.h.
17460 (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
17461 OMP_CLAUSE_SAFELEN.
17462 (check_omp_nesting_restrictions): Same.
17464 (lower_rec_simd_input_clauses): New.
17465 (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
17467 (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
17468 GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
17469 (expand_omp_build_assign): New.
17470 (expand_omp_for_init_counts): New.
17471 (expand_omp_for_init_vars): New.
17472 (extract_omp_for_update_vars): New.
17473 (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
17474 and rewrite accordingly.
17475 (expand_omp_simd): New.
17476 (expand_omp_for): Use expand_omp_simd.
17477 (lower_omp_for_lastprivate): Unshare vinit when appropriate.
17478 (lower_omp_for): Do not lower the body.
17479 * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
17480 in their own loops.
17481 * tree-flow.h (find_omp_clause): Remove prototype.
17482 * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
17483 forcing vectorization of the loop, or if flag_tree_vectorize.
17484 (gate_tree_if_conversion): Similarly.
17485 * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
17486 gimple_build_omp_for.
17487 (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
17488 * tree-parloops (create_parallel_loop): Pass kind argument to
17489 gimple_build_omp_for.
17490 * tree-pretty-print.c (dump_omp_clause): Add cases for
17491 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
17492 OMP_CLAUSE__SIMDUID_.
17493 (dump_generic_node): Handle OMP_SIMD.
17494 * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
17495 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
17496 unroll OMP_SIMD loops here.
17497 * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
17498 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
17500 (vect_analyze_data_refs): Handle simd loops.
17501 * tree-vect-loop.c (vectorizable_live_operation): Handle
17503 * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
17504 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
17505 (vectorizable_load): Same.
17506 * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
17507 (struct simduid_to_vf): New.
17508 (simduid_to_vf::hash): New.
17509 (simduid_to-vf::equal): New.
17510 (struct simd_array_to_simduid): New.
17511 (simd_array_to_simduid::hash): New.
17512 (simd_array_to_simduid::equal): New.
17513 (adjust_simduid_builtins): New.
17514 (struct note_simd_array_uses_struct): New.
17515 (note_simd_array_uses_cb): New.
17516 (note_simd_array_uses): New.
17517 (vectorize_loops): Handle simd hints and adjust simd builtins
17519 * tree-vectorizer.h (struct _stmt_vec_info): Add
17520 simd_lane_access_p field.
17521 (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
17522 * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
17523 OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
17524 (omp_clause_code_name): Same.
17525 (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
17526 OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
17527 * tree.def (OMP_SIMD): New entry.
17528 * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
17529 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
17530 (OMP_CLAUSE_DECL): Adjust range for new clauses.
17531 (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
17532 (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
17533 (OMP_CLAUSE_LINEAR_STEP): New.
17534 (OMP_CLAUSE_SAFELEN_EXPR): New.
17535 (OMP_CLAUSE__SIMDUID__DECL): New.
17536 (find_omp_clause): New prototype.
17538 2013-08-27 H.J. Lu <hongjiu.lu@intel.com>
17540 * config/i386/driver-i386.c (host_detect_local_cpu): Update
17541 Haswell processor detection.
17543 2013-08-27 Christian Widmer <shadow@umbrox.de>
17546 * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
17547 of Ivy Bridge and Haswell processors. Assume core-avx2 for unknown
17548 AVX2 capable processors.
17550 2013-08-27 Tejas Belagod <tejas.belagod@arm.com>
17552 * config/aarch64/arm_neon.h: Replace all inline asm implementations
17553 of vget_low_* with implementations in terms of other intrinsics.
17555 2013-08-27 Marc Glisse <marc.glisse@inria.fr>
17557 PR middle-end/57219
17558 * doc/extend.texi (__builtin_isinf_sign): Restrict the return
17559 values to -1, 0 and 1.
17561 2013-08-27 Vidya Praveen <vidyapraveen@arm.com>
17563 * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
17564 UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
17565 (<optab><mode>3_insn): Remove.
17566 (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
17567 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
17568 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
17569 (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
17570 (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
17571 (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
17572 (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
17573 (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
17574 (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
17575 (ror<mode>3_insn): Likewise.
17576 * config/aarch64/predicates.md (aarch64_simd_register): New.
17578 2013-08-27 Richard Biener <rguenther@suse.de>
17580 PR tree-optimization/57521
17581 * tree-if-conv.c (if_convertible_bb_p): Verify that at least
17582 one edge is non-critical.
17583 (find_phi_replacement_condition): Make sure to use a non-critical
17584 edge. Cleanup and remove old bug workarounds.
17585 (bb_postdominates_preds): Remove.
17586 (if_convertible_loop_p_1): Do not compute post-dominators.
17587 (combine_blocks): Do not free post-dominators.
17588 (main_tree_if_conversion): Likewise.
17589 (pass_data_if_conversion): Add TODO_verify_ssa.
17591 2013-08-27 DJ Delorie <dj@redhat.com>
17593 * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
17595 2013-08-27 Yufeng Zhang <yufeng.zhang@arm.com>
17597 * function.c (assign_parm_find_data_types): Set passed_mode and
17598 nominal_mode to the TYPE_MODE of nominal_type for the built
17599 pointer type in case of the struct-pass-by-reference.
17601 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
17603 * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
17604 (UINT16_TYPE): Change default to "unsigned int".
17606 * config/avr/avr.opt (mfract-convert-truncate): New option.
17607 * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
17608 is set, round negative fractional integers according to n1169
17609 when converting to integer types.
17611 2013-08-26 Jan Hubicka <jh@suse.cz>
17613 * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
17614 methods can not be called indirectly when their address is not taken.
17616 2013-08-26 Jan Hubicka <jh@suse.cz>
17618 * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
17621 2013-08-26 Jan Hubicka <jh@suse.cz>
17623 * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
17626 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
17628 * reload.c (find_valid_class): Allow classes that do not include
17629 FIRST_PSEUDO_REGISTER - 1.
17631 2013-08-26 Jan Hubicka <jh@suse.cz>
17633 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
17634 fix edge count/frequency when speculation failed; fix type check
17635 for the direct call.
17637 2013-08-26 Jan Hubicka <jh@suse.cz>
17639 * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
17641 2013-08-26 Jan Hubicka <jh@suse.cz>
17643 * ipa-inline-transform.c (inline_transform): Be ready for basic block
17644 to be changed by edge redirection.
17646 2013-08-26 Jan Hubicka <jh@suse.cz>
17648 * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
17649 formating; add sanity check.
17650 (cgraph_resolve_speculation): Add FIXME about scaling profiles.
17651 (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
17652 * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
17653 (resolve_noninline_speculation): Update callee keys, too.
17655 2013-08-26 Jan Hubicka <jh@suse.cz>
17657 * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
17658 (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
17660 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
17662 * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
17665 2013-08-26 Uros Bizjak <ubizjak@gmail.com>
17667 * config/i386/i386.c (ix86_debug_options): Remove prototype.
17668 (x86_64_elf_select_section): Ditto.
17669 (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
17671 (ix86_pass_by_reference): Ditto.
17672 (output_set_got): Ditto.
17673 (ix86_unary_operator_ok): Ditto.
17674 (ix86_expand_builtin): Ditto.
17676 2013-08-23 Jan Hubicka <jh@suse.cz>
17678 * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
17680 2013-08-23 Jan Hubicka <jh@suse.cz>
17682 * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
17683 (tree_decl_with_vis): Add FINAL field.
17685 2013-08-23 Jeff Law <law@redhat.com>
17687 * tree-ssa-pre.c (do_regular_insertion): Include the expression in
17688 the debugging dump when the expression is fully redundant.
17690 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
17692 * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
17693 * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
17694 * pretty-print.c (pp_formatted_text_data): Likewise.
17695 (pp_write_text_to_stream): Likewise.
17696 (pp_write_text_as_dot_label_to_stream): Likewise.
17697 (pp_append_r): Likewise.
17698 (pp_format): Likewise.
17699 (pp_flush): Likewise.
17700 (pp_clear_output_area): Likewise.
17701 (pp_append_text): Likewise.
17702 (pp_formatted_text): Likewise.
17703 (pp_remaining_character_count_for_line): Likewise.
17704 (pp_newline): Likewise.
17705 (pp_character): Likewise.
17706 (output_buffer::~output_buffer): Define.
17707 (pretty_printer::~pretty_printer): Destruct output buffer.
17708 * pretty-print.h (output_buffer::~output_buffer): Declare.
17709 (pretty_printer::~pretty_printer): Declare virtual.
17711 2013-08-24 Marc Glisse <marc.glisse@inria.fr>
17714 * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
17715 HOST_WIDE_INT_M1U): New macros.
17716 * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
17717 fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
17718 unsigned -1 for lshift.
17719 * cse.c (cse_insn): Likewise.
17720 * double-int.c (rshift_double, lshift_double): Likewise.
17721 * builtins.c (fold_builtin_bitop): Likewise.
17722 * combine.c (force_to_mode): Likewise.
17723 * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
17724 * simplify-rtx.c (simplify_const_unary_operation,
17725 simplify_const_binary_operation): Likewise.
17726 * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
17727 check_va_list_escapes): Likewise.
17728 * rtlanal.c (nonzero_bits1): Likewise.
17729 * expmed.c (expand_smod_pow2): Likewise.
17730 * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
17732 2013-08-23 Jan Hubicka <jh@suse.cz>
17734 * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
17735 as having address taken.
17737 2013-08-23 Jan Hubicka <jh@suse.cz>
17739 * ipa-utils.h (method_class_type): Declare.
17740 * ipa-devirt.c (method_class_type): Export.
17742 * cgraphunit.c (analyze_functions): Do basic devirtualization;
17743 do not walk base classes of anonymous types.
17745 2013-08-23 Kaz Kojima <kkojima@gcc.gnu.org>
17747 PR rtl-optimization/58220
17748 PR regression/58221
17749 * final.c (reemit_insn_block_notes): Use NEXT_INSN to
17750 handle SEQUENCE insns properly.
17752 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
17754 * pretty-print.h (pp_newline_and_flush): Declare. Remove macro
17756 (pp_newline_and_indent): Likewise.
17757 (pp_separate_with): Likewise.
17758 * pretty-print.c (pp_newline_and_flush): Define.
17759 (pp_newline_and_indent): Likewise.
17760 (pp_separate_with): Likewise.
17762 2013-08-23 Jakub Jelinek <jakub@redhat.com>
17765 * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
17766 * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
17768 2013-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
17770 * config/i386/predicates.md (ext_sse_reg_operand): New.
17771 * config/i386/i386.md (*movti_internal): Use
17772 predicate to determine if EVEX is needed.
17773 (*movsi_internal): Ditto.
17774 (*movdf_internal): Ditto.
17775 (*movsf_internal): Ditto.
17776 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
17778 2013-08-23 Jakub Jelinek <jakub@redhat.com>
17780 PR tree-optimization/58209
17781 * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
17782 (find_tail_calls): Give up for pointer result types if m is non-NULL.
17783 (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
17784 emit POINTER_PLUS_EXPR.
17785 (create_tailcall_accumulator): For pointer result type accumulate in
17788 2013-08-22 Paolo Carlini <paolo.carlini@oracle.com>
17790 * configure.ac: Add backslashes missing from the last change.
17791 * configure: Regenerate.
17793 2013-08-22 Jan Hubicka <jh@susue.cz>
17795 * ipa.c (function_and_variable_visibility): First remember function
17796 was global and then make it local.
17798 2013-08-22 Julian Brown <julian@codesourcery.com>
17800 * configure.ac: Add aarch64 to list of arches which use "nop" in
17802 * configure: Regenerate.
17804 2013-08-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17806 * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
17807 gnu_libc_has_function.
17808 * config/s390/tpf.h: Likewise.
17810 2013-08-22 Jan Hubicka <jh@susue.cz>
17812 * timevar.c (validate_phases): Add cast.
17814 2013-08-22 Jan Hubicka <jh@susue.cz>
17816 * timevar.c (validate_phases): Use size_t for memory.
17817 * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
17819 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
17821 * pretty-print.h (output_buffer::output_buffer): Declare.
17822 (pretty_printer::pretty_printer): Likewise.
17823 (pp_construct): Remove.
17824 * pretty-print.c (output_buffer::output_buffer): Define.
17825 (pretty_printer::pretty_printer): Rename from pp_construct. Simplify.
17826 * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
17827 (print_gimple_expr): Likewise.
17828 (print_gimple_seq): Likewise.
17829 (gimple_dump_bb): Likewise.
17830 * sched-vis.c (dump_value_slim): Likewise.
17831 (dump_insn_slim): Likewise.
17832 (dump_rtl_slim): Likewise.
17833 (str_pattern_slim): Likewise.
17834 * tree-mudflap.c (mf_varname_tree): Likewise.
17835 * graph.c (print_graph_cfg): Likewise.
17836 (start_graph_dump): Likewise.
17837 * tree-pretty-print.c (maybe_init_pretty_print): Likewise. Use
17839 * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
17840 pretty printer initialization.
17841 * coretypes.h (diagnostic_context): Remove superflous type alias
17843 (pretty_printer): Likewise. Declare directly as a class.
17844 (pretty_print_info): Remove declaration as class.
17845 * asan.c (asan_emit_stack_protection): Remove call to pp_construct
17846 and pp_clear_output_area.
17847 (asan_add_global): Likewise.
17849 2013-08-22 Jan Hubicka <jh@suse.cz>
17851 * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
17852 * ipa-utils.h (update_type_inheritance_graph): Declare.
17853 (possible_polymorphic_call_target_p): Declare.
17854 (possible_polymorphic_call_target_p): New.
17855 * ipa-devirt.c: Update toplevel comments.
17856 (cached_polymorphic_call_targets): Move up.
17857 (odr_type_d): Move ID down.
17858 (polymorphic_type_binfo_p): Update comment.
17859 (odr_hasher::remove): Likewise;
17860 (get_odr_type): Set anonymous_namespace.
17861 (dump_odr_type): Dump it.
17862 (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
17863 (maybe_record_node): Record node in cached_polymorphic_call_targets.
17864 (record_binfo): Add comment.
17865 (free_polymorphic_call_targets_hash): Do not ICE when cache is not
17867 (devirt_node_removal_hook): Do not iCE when cache is freed.
17868 (possible_polymorphic_call_target_p): New predicate.
17869 (update_type_inheritance_graph): New function.
17871 2013-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
17872 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
17873 Sergey Lega <sergey.s.lega@intel.com>
17874 Anna Tikhonova <anna.tikhonova@intel.com>
17875 Ilya Tocar <ilya.tocar@intel.com>
17876 Andrey Turetskiy <andrey.turetskiy@intel.com>
17877 Ilya Verbin <ilya.verbin@intel.com>
17878 Kirill Yukhin <kirill.yukhin@intel.com>
17879 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
17881 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
17882 (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
17883 (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
17884 (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
17885 (OPTION_MASK_ISA_AVX2_UNSET): Update.
17886 (OPTION_MASK_ISA_AVX512F_UNSET): New.
17887 (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
17888 (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
17889 (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
17890 (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
17891 OPT_mavx512pf, OPT_mavx512er cases.
17892 * config/i386/constraints.md (v): New constraint.
17893 (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
17894 * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
17895 (bit_AVX512CD): New.
17896 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
17897 AVX512F, AVX512ER, AVX512PF, AVX512CD features.
17898 * config/i386/i386-c.c (ix86_target_macros_internal):
17899 Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
17901 * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
17902 (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
17903 * config/i386/i386.c (regclass_map, dbx_register_map)
17904 (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
17905 (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
17906 (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
17907 -mavx512pf options.
17908 (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
17909 PTA_AVX512PF, PTA_AVX512CD. Handle -mavx512f, -mavx512er, -mavx512cd,
17910 -mavx512pf options. Fix formatting.
17911 (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
17912 targets. Squash EVEX_SSE_REGS if AVX512F is disabled.
17913 (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
17914 -mavx512cd, -mavx512pf options.
17915 (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
17916 (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
17917 (ix86_preferred_output_reload_class): Replace SSE_REGS with
17919 (ix86_hard_regno_mode_ok): Support 512-bit registers.
17920 (ix86_set_reg_reg_cost): Ditto.
17921 (x86_order_regs_for_local_alloc): Ditto.
17922 (MAX_VECT_LEN): Extend to 64-byte.
17923 (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
17924 * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
17925 (TARGET_AVX512ER, TARGET_AVX512CD): New.
17926 (BIGGEST_ALIGNMENT): Extend to 512-bits.
17927 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
17928 (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
17929 (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
17930 (SSE_REG_MODE_P): Support new modes.
17931 (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
17932 (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
17933 (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
17934 (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
17935 (REG_CLASS_CONTENTS): Add new registers.
17936 (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
17937 (EXT_REX_SSE_REGNO_P): New.
17938 (HI_REGISTER_NAMES): Add new registers.
17939 * config/i386/i386.md: Define constants for new registers.
17940 (mode): Add new 512-bit modes.
17941 (prefix): Support evex prefix.
17942 (isa): Support avx512f, noavx512f, fma_avx512f.
17943 (ssemodesuffix): Add new 512-bit modes.
17945 (*movxi_internal_avx512f): Ditto.
17946 (*movdi_internal): Replace constraint "x" with the new constraint "v".
17948 (*movsi_internal): Likewise.
17949 (*movdf_internal): Likewise.
17950 (*movsf_internal): Likewise.
17951 (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
17952 (<code><mode>3): Likewise.
17953 * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
17955 * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
17956 with the new constraint "v".
17957 * config/i386/sse.md (*mov<mode>_internal): Support new registers and
17959 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
17960 with the new constraint "v".
17961 (<sse2>_loaddqu<avxsizesuffix>): Likewise.
17962 (<sse2>_storedqu<avxsizesuffix>): Likewise.
17963 (*<plusminus_insn><mode>3): Likewise.
17964 (<sse>_vm<plusminus_insn><mode>3): Likewise.
17965 (*mul<mode>3): Likewise.
17966 (<sse>_vmmul<mode>3): Likewise.
17967 (<sse>_div<mode>3): Likewise.
17968 (<sse>_vmdiv<mode>3): Likewise.
17969 (<sse>_sqrt<mode>2): Likewise.
17970 (<sse>_vmsqrt<mode>2): Likewise.
17971 (*<code><mode>3_finite): Likewise.
17972 (*<code><mode>3) <smaxmin>: Likewise.
17973 (<sse>_vm<code><mode>3): Likewise.
17974 (*<code><mode>3) <any_logic>: Likewise.
17975 (*fma_fmadd_<mode>): Likewise.
17976 (*fma_fmsub_<mode>): Likewise.
17977 (*fma_fnmadd_<mode>): Likewise.
17978 (*fma_fnmsub_<mode>): Likewise.
17979 (*fma_fmaddsub_<mode>): Likewise.
17980 (*fma_fmsubadd_<mode>): Likewise.
17981 (*fmai_fmadd_<mode>): Likewise.
17982 (*fmai_fmsub_<mode>): Likewise.
17983 (*fmai_fnmadd_<mode>): Likewise.
17984 (*fmai_fnmsub_<mode>): Likewise.
17985 (sse_cvtsi2ss): Likewise.
17986 (sse_cvtsi2ssq): Likewise.
17987 (sse_cvtss2si): Likewise.
17988 (sse_cvtss2si_2): Likewise.
17989 (sse_cvtss2siq): Likewise.
17990 (sse_cvtss2siq_2): Likewise.
17991 (sse_cvttss2si): Likewise.
17992 (sse_cvtss2siq_2): Likewise.
17993 (float<sseintvecmodelower><mode>2): Likewise.
17994 (sse2_cvtsd2si_2): Likewise.
17995 (sse2_cvtsd2siq_2): Likewise.
17996 (*<plusminus_insn><mode>3): Likewise.
17997 (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
17998 (*<sse4_1_avx2>_mul<mode>3): Likewise.
17999 (ashr<mode>3): Likewise.
18000 (<shift_insn><mode>3): Likewise.
18001 (avx2_<code><mode>3): Likewise.
18002 (*avx2_<code><mode>3): Likewise.
18003 (*andnot<mode>3): Likewise.
18004 (*<code><mode>3) <any_logic>: Likewise.
18005 (abs<mode>2): Likewise.
18006 (avx2_permvar<mode>): Likewise.
18007 (avx2_perm<mode>_1): Likewise.
18008 (*avx_vpermilp<mode>): Likewise.
18009 (avx_vpermilvar<mode>3): Likewise.
18010 (avx2_ashrv<mode>): Likewise.
18011 (avx2_<shift_insn>v<mode>): Likewise.
18012 * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
18014 * doc/rtl.texi: Document XImode.
18016 2013-08-21 Jeff Law <law@redhat.com>
18018 * tree-flow.h (register_jump_thread): Pass vector of edges
18019 instead of each important edge.
18020 * tree-ssa-threadedge.c (thread_across_edge): Build the jump
18021 thread path into a vector and pass that to register_jump_thread.
18022 * tree-ssa-threadupdate.c (register_jump_thread): Conver the
18023 passed in edge vector to the current 3-edge form.
18026 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
18028 * dce.c (fini_dce): Call df_analyze again just in case
18029 delete_unmarked_insns removed anything.
18031 2013-08-21 Joern Rennecke <joern.rennecke@embecosm.com>
18033 * reload.h (struct reg_equivs): Rename to ..
18034 (struct reg_equivs_s): .. this.
18036 2013-08-20 Martin Liska <marxin.liska@gmail.com>
18038 * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
18040 2013-08-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18042 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
18044 2013-08-21 Jeff Law <law@redhat.com>
18046 * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
18047 simplify assignments too. If the RHS collapses to a singleton
18048 range, then return the value for the range.
18050 2013-08-21 Kirill Yukhin <kirill.yukhin@intel.com>
18052 * config/i386/sse.md (V16): Rename to...
18054 (mov<mode>): Update iterator name.
18055 (*mov<mode>_internal): Ditto.
18056 (push<mode>1): Ditto.
18057 (movmisalign<mode>): Ditto.
18059 2013-08-20 Jan Hubicka <jh@suse.cz>
18062 * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
18063 entry for direct edges.
18064 (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
18066 2013-08-20 David Malcolm <dmalcolm@redhat.com>
18068 Revert my last two changes, r201865 and r201864:
18071 2013-08-20 David Malcolm <dmalcolm@redhat.com>
18073 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
18074 instances can own GC refs.
18076 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
18077 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
18078 (gcc::context::gt_pch_nx): Likewise.
18079 (gcc::context::gt_pch_nx): Likewise.
18080 * ggc.h (gt_ggc_mx <T>): New.
18081 (gt_pch_nx_with_op <T>): New.
18082 (gt_pch_nx <T>): New.
18083 * passes.c (opt_pass::gt_ggc_mx): New.
18084 (opt_pass::gt_pch_nx): New.
18085 (opt_pass::gt_pch_nx_with_op): New.
18086 (pass_manager::gt_ggc_mx): New.
18087 (pass_manager::gt_pch_nx): New.
18088 (pass_manager::gt_pch_nx_with_op): New.
18089 (pass_manager::operator new): Use
18090 ggc_internal_cleared_alloc_stat rather than xcalloc.
18091 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
18092 (pass_manager::gt_ggc_mx): New.
18093 (pass_manager::gt_pch_nx): New.
18094 (pass_manager::gt_pch_nx_with_op): New.
18095 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
18096 (opt_pass::operator new): New.
18097 (opt_pass::gt_ggc_mx): New.
18098 (opt_pass::gt_pch_nx): New.
18099 (opt_pass::gt_pch_nx_with_op): New.
18102 2013-08-20 David Malcolm <dmalcolm@redhat.com>
18104 * Makefile.in (GTFILES): Add context.h.
18105 * context.c (gcc::context::operator new): New.
18106 (gcc::context::gt_ggc_mx): New.
18107 (gcc::context::gt_pch_nx): New.
18108 (gcc::context::gt_pch_nx): New.
18109 * context.h (gcc::context): Add GTY((user)) marking.
18110 (gcc::context::operator new): New.
18111 (gcc::context::gt_ggc_mx): New.
18112 (gcc::context::gt_pch_nx): New.
18113 (gcc::context::gt_pch_nx): New.
18114 (g): Add GTY marking.
18115 (gt_ggc_mx (gcc::context *)): New.
18116 (gt_pch_nx (gcc::context *)): New.
18117 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
18118 void *cookie)): New.
18119 * gengtype.c (open_base_files) <ifiles>: Add context.h.
18121 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
18123 * dce.c (fini_dce): Call df_analyze again just in case
18124 delete_unmarked_insns removed anything.
18126 2013-08-20 Teresa Johnson <tejohnson@google.com>
18128 PR rtl-optimizations/57451
18129 * final.c (reemit_insn_block_notes): Prevent lexical blocks
18130 from crossing split section boundaries.
18132 2013-08-20 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
18134 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
18135 * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
18136 with MULTLIB_DEFAULTS.
18138 2013-08-20 Nick Clifton <nickc@redhat.com>
18140 * target.def (narrow_volatile_bitfield): Note that the default
18141 value is false, not !TARGET_STRICT_ALIGN.
18142 * doc/tm.texi: Regenerate.
18144 2013-08-20 Pavel Chupin <pavel.v.chupin@intel.com>
18146 Fix LIB_SPEC for systems without libpthread.
18148 * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
18149 * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
18151 * config/i386/linux-common.h: Likewise.
18152 * config/mips/linux-common.h: Likewise.
18154 2013-08-20 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
18156 * tree-ssa-ccp.c (get_default_value): Remove redundant condition
18159 2013-08-20 David Malcolm <dmalcolm@redhat.com>
18161 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
18162 instances can own GC refs.
18164 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
18165 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
18166 (gcc::context::gt_pch_nx): Likewise.
18167 (gcc::context::gt_pch_nx): Likewise.
18168 * ggc.h (gt_ggc_mx <T>): New.
18169 (gt_pch_nx_with_op <T>): New.
18170 (gt_pch_nx <T>): New.
18171 * passes.c (opt_pass::gt_ggc_mx): New.
18172 (opt_pass::gt_pch_nx): New.
18173 (opt_pass::gt_pch_nx_with_op): New.
18174 (pass_manager::gt_ggc_mx): New.
18175 (pass_manager::gt_pch_nx): New.
18176 (pass_manager::gt_pch_nx_with_op): New.
18177 (pass_manager::operator new): Use
18178 ggc_internal_cleared_alloc_stat rather than xcalloc.
18179 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
18180 (pass_manager::gt_ggc_mx): New.
18181 (pass_manager::gt_pch_nx): New.
18182 (pass_manager::gt_pch_nx_with_op): New.
18183 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
18184 (opt_pass::operator new): New.
18185 (opt_pass::gt_ggc_mx): New.
18186 (opt_pass::gt_pch_nx): New.
18187 (opt_pass::gt_pch_nx_with_op): New.
18189 2013-08-20 David Malcolm <dmalcolm@redhat.com>
18191 * Makefile.in (GTFILES): Add context.h.
18192 * context.c (gcc::context::operator new): New.
18193 (gcc::context::gt_ggc_mx): New.
18194 (gcc::context::gt_pch_nx): New.
18195 (gcc::context::gt_pch_nx): New.
18196 * context.h (gcc::context): Add GTY((user)) marking.
18197 (gcc::context::operator new): New.
18198 (gcc::context::gt_ggc_mx): New.
18199 (gcc::context::gt_pch_nx): New.
18200 (gcc::context::gt_pch_nx): New.
18201 (g): Add GTY marking.
18202 (gt_ggc_mx (gcc::context *)): New.
18203 (gt_pch_nx (gcc::context *)): New.
18204 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
18205 void *cookie)): New.
18206 * gengtype.c (open_base_files) <ifiles>: Add context.h.
18208 2013-08-20 Alan Modra <amodra@gmail.com>
18211 * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
18212 (rs6000_emit_epilogue): Likewise.
18214 2013-08-19 Dehao Chen <dehao@google.com>
18216 * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
18218 2013-08-19 Peter Bergner <bergner@vnet.ibm.com>
18219 Jakub Jelinek <jakub@redhat.com>
18221 * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
18222 (BUILT_IN_FABSD64): Likewise.
18223 (BUILT_IN_FABSD128): Likewise.
18224 * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
18225 (fold_builtin_1): Likewise.
18226 * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
18227 destination and source operands.
18228 (*abstd2_fpr): Likewise.
18229 (*nabstd2_fpr): Likewise.
18231 2013-08-19 Richard Sandiford <rdsandiford@googlemail.com>
18233 * config/mips/mips.c (mips_adjust_insn_length): Add checks for
18236 2013-08-19 Aldy Hernandez <aldyh@redhat.com>
18238 * doc/invoke.texi (-fcilkplus): Clarify that implementation is
18241 2013-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
18243 * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
18244 * builtins.c (default_libc_has_function): New.
18245 (gnu_libc_has_function): Ditto.
18246 (no_c99_libc_has_function): Ditto.
18247 (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
18248 instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
18249 (fold_builtin_sincos): Likewise.
18250 (fold_builtin_cexp): Likewise.
18251 * builtins.def (DEF_C94_BUILTIN): Likewise.
18252 (DEF_C99_BUILTIN): Likewise.
18253 (DEF_C99_C90RES_BUILTIN): Likewise.
18254 (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
18255 definitions to using this define.
18256 * config/darwin-protos.h (darwin_libc_has_function): New.
18257 * config/darwin.c (darwin_libc_has_function): Ditto.
18258 * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
18259 TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
18260 * config/darwin.h: Ditto.
18261 * config/elfos.h: Ditto.
18262 * config/freebsd.h: Ditto.
18263 * config/i386/cygming.h: Ditto.
18264 * config/i386/djgpp.h: Ditto.
18265 * config/i386/i386-interix.h: Ditto.
18266 * config/microblaze/microblaze.h: Ditto.
18267 * config/mmix/mmix.h: Ditto.
18268 * config/gnu-user.h: Ditto.
18269 * config/ia64/hpux.h: Ditto.
18270 * config/pa/pa-hpux.h: Ditto.
18271 * config/pdp11/pdp11.h: Ditto.
18272 * config/picochip/picochip.h: Ditto.
18273 * config/linux.h: Ditto.
18274 * config/netbsd.h: Ditto.
18275 * config/openbsd.h: Ditto.
18276 * config/rs6000/aix43.h: Ditto.
18277 * config/rs6000/aix51.h: Ditto.
18278 * config/rs6000/aix52.h: Ditto.
18279 * config/rs6000/aix53.h: Ditto.
18280 * config/rs6000/aix61.h: Ditto.
18281 * config/rs6000/darwin.h: Ditto.
18282 * config/rs6000/linux.h: Ditto.
18283 * config/rs6000/linux64.h: Ditto.
18284 * config/s390/tpf.h: Ditto.
18285 * config/sol2-10.h: Ditto.
18286 * config/sol2.h: Ditto.
18287 * config/vms/vms.h: Ditto.
18288 * config/vxworks.h: Ditto.
18289 * config/linux-android.c (linux_android_libc_has_function):
18290 New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
18291 * config/linux-protos.h (linux_android_libc_has_function):
18293 * config/i386/i386.c (ix86_libc_has_function): New.
18294 * config/i386/i386-protos.h
18295 (ix86_libc_has_function): New declaration.
18296 * config/i386/i386.md
18297 ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
18298 ("isinf<mode>2): Likewise.
18299 * convert.c (convert_to_integer): Using new target hook
18300 TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
18301 TARGET_C99_FUNCTIONS.
18302 * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
18303 * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
18304 * coretypes.h (function_class): New enum for different
18305 classes of functions.
18306 * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
18307 * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
18308 (TARGET_HAS_SINCOS): Likewise.
18309 (TARGET_LIBC_HAS_FUNCTION): New.
18310 * doc/tm.texi: Regenerated.
18311 * targhooks.h (default_libc_has_function): New declaration.
18312 (no_c99_libc_has_function): Ditto.
18313 (gnu_libc_has_function): Ditto.
18314 * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
18315 and TARGET_HAS_SINCOS.
18317 2013-08-18 Jan Hubicka <jh@suse.cz>
18319 * Makeifle-in (ipa-devirt.o): New.
18320 (GTFILES): Add ipa-utils.h and ipa-devirt.c
18321 * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
18322 (analyze_functions): Look into possible targets of polymorphic call.
18323 * dumpfile.c (dump_files): Add type-inheritance dump.
18324 * dumpfile.h (TDI_inheritance): New.
18325 * ipa-devirt.c: New file.
18326 * ipa-utils.h (odr_type_d): Forward declare.
18327 (odr_type): New type.
18328 (build_type_inheritance_graph): Declare.
18329 (possible_polymorphic_call_targets): Declare and introduce inline
18330 variant when only edge is pased.
18331 (dump_possible_polymorphic_call_targets): Likewise.
18332 * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
18333 * tree.c (type_in_anonymous_namespace_p): Break out from ...
18334 (types_same_for_odr): ... here.
18335 * tree.h (type_in_anonymous_namespace_p): Declare.
18337 2013-08-18 Jakub Jelinek <jakub@redhat.com>
18339 PR tree-optimization/58006
18340 * tree-parloops.c (take_address_of): Don't ICE if get_name
18342 (eliminate_local_variables_stmt): Remove clobber stmts.
18344 2013-08-18 Eric Botcazou <ebotcazou@adacore.com>
18346 * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
18347 error message is issued for an alias to undefined symbol.
18349 2013-08-18 Jan Hubicka <jh@suse.cz>
18351 * cgraph.c (cgraph_create_indirect_edge): Discover
18352 polymorphic calls and record basic info into indirect_info.
18353 * gimple-fold.c (gimple_fold_call): When doing BINFO based
18354 devirtualization, ignore objc function calls.
18355 * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
18356 call with no parm index info.
18357 * ipa-prop.c (ipa_analyze_call_uses): Likewise.
18358 * tree.c (virtual_method_call_p): New function.
18359 * tree.h (virtual_method_call_p): Declare.
18361 2013-08-16 Jan Hubicka <jh@suse.cz>
18363 PR middle-end/58179
18364 * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
18366 2013-08-16 David Edelsohn <dje.gcc@gmail.com>
18368 * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
18371 2013-08-16 David Malcolm <dmalcolm@redhat.com>
18373 * gengtype.c (type_for_name): Add special-case support for
18374 locating types within the "gcc::" namespace.
18375 (open_base_files): Emit a "using namespace gcc" directive.
18377 2013-08-16 Michael Meissner <meissner@linux.vnet.ibm.com>
18380 * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
18381 memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
18383 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
18384 array instead of each individual operand as a separate argument.
18385 (emit_fusion_gpr_load): Likewise.
18386 (expand_fusion_gpr_load): Add new function declaration.
18388 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
18389 signature to have the operands passed as an array, instead of as
18390 separate arguments. Allow ZERO_EXTEND to be in the memory
18391 address, and also SIGN_EXTEND if -mpower8-fusion-sign. Do not
18392 depend on the register live/dead flags when peepholes are run.
18393 (expand_fusion_gpr_load): New function to be called from the
18394 peephole2 pass, to change the register that addis sets to be the
18396 (emit_fusion_gpr_load): Change the calling signature to have the
18397 operands passed as an array, instead of as separate arguments.
18398 Allow ZERO_EXTEND to be in the memory address, and also
18399 SIGN_EXTEND if -mpower8-fusion-sign.
18401 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
18402 unspec enumeration.
18403 (power8 fusion peephole/peephole2): Rework the fusion peepholes to
18404 adjust the register addis loads up in the peephole2 pass. Do not
18405 depend on the register live/dead state when the peephole pass is done.
18407 2013-08-16 David Malcolm <dmalcolm@redhat.com>
18409 * gengtype.c (create_user_defined_type): Ensure that the kind
18410 is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
18411 declaration is seen before the GTY((user)) marking.
18413 2013-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
18416 * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
18418 2013-08-16 Jan Hubicka <jh@suse.cz>
18420 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
18421 arugment expected_type.
18422 (gimple_fold_call): Use it.
18423 * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
18424 * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
18425 * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
18426 (try_make_edge_direct_virtual_call): Likewise.
18427 * tree.c (obj_type_ref_class): New.
18428 * tree.h (obj_type_ref_class): Use it.
18430 2013-08-16 Gabriel Dos Reis <gdr@integrable-solutions.net>
18432 * sched-vis.c (rtl_slim_pp_initialized): Remove.
18433 (rtl_slim_pp): Likewise.
18434 (init_rtl_slim_pretty_print): Likewise.
18435 (dump_value_slim): Don't call it. Use local pretty printer.
18436 (dump_insn_slim): Likewise.
18437 (dump_rtl_slim): Likewise.
18438 (str_pattern_slim): Likewise.
18439 * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
18442 2013-08-16 Jakub Jelinek <jakub@redhat.com>
18444 PR tree-optimization/58164
18445 * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
18446 walk gimple_goto_dest of GIMPLE_GOTO.
18448 PR tree-optimization/58165
18449 * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
18450 bi_call must be the last stmt in a bb, don't split_block, instead
18451 use fallthru edge from it and give up if there is none.
18452 Release conds vector when returning early.
18454 2013-08-14 Xinliang David Li <davidxl@google.com>
18456 * config/i386/i386.c (ix86_option_override_internal):
18457 Remove unused variable and field.
18459 2013-08-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18462 * doc/invoke.texi: Add documentation of mcompat-align-parm option.
18463 * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
18464 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
18465 and Linux, correct BLKmode alignment when 128-bit alignment is
18466 required and compatibility flag is not set.
18467 (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
18468 for zero-size arguments when compatibility flag is not set.
18470 2013-08-14 Jakub Jelinek <jakub@redhat.com>
18472 PR tree-optimization/58145
18473 * tree-sra.c (build_ref_for_offset): If prev_base has
18474 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
18476 2013-08-14 Xinliang David Li <davidxl@google.com>
18478 * config/i386/i386.c (ix86_option_override_internal):
18479 Fix uninitialized variable error.
18481 2013-08-14 Xinliang David Li <davidxl@google.com>
18483 * config/i386/i386.opt: Define two new options.
18484 * config/i386/x86-tune.def: Add arch selector field in macros.
18485 * config/i386/i386.h: Adjust macro definition.
18486 * config/i386/i386.c (ix86_option_override_internal):
18488 (parse_mtune_ctrl_str): New function.
18489 (set_ix86_tune_features): New function.
18490 (ix86_function_specific_restore): Call the new helper function.
18492 2013-08-14 Andrey Belevantsev <abel@ispras.ru>
18494 PR rtl-optimization/57662
18495 * sel-sched.c (code_motion_process_successors): When the current insn
18496 is removed after the recursive traversal, break from the loop.
18497 Add comments and debug printouts.
18499 2013-08-14 Jakub Jelinek <jakub@redhat.com>
18500 Alexandre Oliva <aoliva@redhat.com>
18503 * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
18504 and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
18505 there also UNSPEC_PLTOFF.
18507 2013-08-14 Marek Polacek <polacek@redhat.com>
18509 * ipa-inline-analysis.c (add_clause): Avoid shifting integer
18510 NUM_CONDITIONS bit positions.
18512 2013-08-13 Cary Coutant <ccoutant@google.com>
18514 * dwarf2out.c (CHECKSUM_BLOCK): New macro.
18515 (attr_checksum): Hash vector contents instead of pointer.
18516 (attr_checksum_ordered): Likewise.
18518 2013-08-13 Uros Bizjak <ubizjak@gmail.com>
18520 * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
18521 when Pmode != word_mode. Add length_address attribute.
18522 (sse3_monitor_<mode>): Merge from sse3_monitor and
18523 sse3_monitor64_<mode> insn patterns. Emit addr32 prefix when
18524 Pmode != word_mode. Update insn length attribute.
18525 * config/i386/i386.c (ix86_option_override_internal): Update
18526 ix86_gen_monitor selection for merged sse3_monitor insn.
18528 2013-08-13 Julian Brown <julian@codesourcery.com>
18530 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
18531 perform invalid legitimization on greater-than-word-size modes for
18532 TARGET_E500_DOUBLE.
18534 2013-08-13 Vladimir Makarov <vmakarov@redhat.com>
18536 * ira.c (setup_class_translate_array): Use aclass instead of cl
18537 for classes not fully covered by allocno classes.
18539 2013-08-13 Jakub Jelinek <jakub@redhat.com>
18541 PR tree-optimization/57661
18542 * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
18543 * tree-inline.c (tree_function_versioning): Initialize it.
18544 (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
18545 if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
18546 that is not being copied.
18549 * asan.c (instrument_strlen_call): Fix typo in comment.
18550 Use char * type even for the lhs of POINTER_PLUS_EXPR.
18552 2013-08-13 Steve Ellcey <sellcey@mips.com>
18554 * config/mips/mips.md (prefetch): Use lw instead of ld on
18555 loongson in 32bit mode.
18557 2013-08-13 Nick Clifton <nickc@redhat.com>
18559 * config.gcc: (avr-linux): Allow for tmake_file not being empty.
18561 2013-08-13 Jan Hubicka <jh@suse.cz>
18563 * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
18564 introduced edge; fix typo in sanity check.
18565 (cgraph_resolve_speculation): Export; improve diagnostic.
18566 (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
18567 speculation at type mismatch.
18568 * cgraph.h (cgraph_turn_edge_to_speculative): Update.
18569 (cgraph_resolve_speculation): Declare.
18570 (symtab_can_be_discarded): New function.
18571 * value-prof.c (gimple_ic_transform): Remove actual transform code.
18572 * ipa-inline-transform.c (speculation_removed): New global var.
18573 (clone_inlined_nodes): See if speculation can be removed.
18574 (inline_call): If speculations was removed, we growths may not match.
18575 * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
18576 (speculation_useful_p): New function.
18577 (resolve_noninline_speculation): New function.
18578 (inline_small_functions): Resolve useless speculations.
18579 * ipa-inline.h (speculation_useful_p): Declare
18580 * ipa.c (can_replace_by_local_alias): Simplify.
18581 (ipa_profile): Produce speculative calls in non-lto, too;
18582 add simple cost model; produce local aliases.
18584 2013-08-13 David Malcolm <dmalcolm@redhat.com>
18586 * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
18589 2013-08-12 Paolo Carlini <paolo.carlini@oracle.com>
18591 * config/i386/i386.c (ix86_function_versions): Use error + inform.
18593 2013-08-12 Uros Bizjak <ubizjak@gmail.com>
18595 * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
18596 iterator instead of X87MODEF.
18598 2013-08-12 Perez Read <netfirewall@gmail.com>
18601 * config/i386/i386.md (*movabs<mode>_1): Add <ptrsize> PTR before
18602 operand 0 for intel asm alternative.
18603 (*movabs<mode>_2): Ditto for operand 1.
18605 2013-08-12 James Greenhalgh <james.greenhalgh@arm.com>
18607 * config/aarch64/arm_none.h
18608 (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
18610 2013-08-12 Nick Clifton <nickc@redhat.com>
18612 * config.gcc (m32r-linux): Allow for tmake_file not being empty.
18614 2013-08-12 Yuri Rumyantsev <ysrumyan@gmail.com>
18616 * config/i386/i386.md (floatunssi<mode>2 expand): Add new
18617 expand for QI/HImode operand to produce more effictive code for
18618 unsigned char(short) --> float(double) conversion.
18620 2013-08-12 Alexander Monakov <amonakov@ispras.ru>
18622 * doc/invoke.texi: Mention that -ftls-model does not force the final
18625 2013-08-12 Marek Polacek <polacek@redhat.com>
18626 Marc Glisse <marc.glisse@inria.fr>
18628 PR tree-optimization/57980
18629 * tree-tailcall.c (process_assignment): Call build_minus_one_cst
18630 when creating -1 constant.
18632 2013-08-10 Jan Hubicka <jh@suse.cz>
18634 Workaround binutils PR14342.
18635 * tree-profile.c (init_ic_make_global_vars): Add LTO path.
18636 (gimple_init_edge_profiler): Likewise.
18637 (gimple_gen_ic_func_profiler): Likewise.
18639 2013-08-09 Jan Hubicka <jh@suse.cz>
18641 * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
18643 2013-08-09 Xinliang David Li <davidxl@google.com>
18645 * config/i386/stringop.def: New file.
18646 * config/i386/stringop.opt: New file.
18647 * config/i386/i386-opts.h: Include stringopt.def.
18648 * config/i386/i386.opt: Include stringopt.opt.
18649 * config/i386/i386.c (ix86_option_override_internal):
18650 Override default size based stringop inline strategies with options.
18651 * config/i386/i386.c (ix86_parse_stringop_strategy_string):
18654 2013-08-09 Jan Hubicka <jh@suse.cz>
18656 * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
18658 2013-08-09 Jan Hubicka <jh@suse.cz>
18660 * cgraph.c (cgraph_resolve_speculation): Cut frequency to
18662 (dump_cgraph_node): Dump profile-id.
18663 * cgraph.h (cgraph_indirect_call_info): Add common_target_id
18664 and common_target_probability.
18665 * lto-cgraph.c (lto_output_edge): Stream common targets.
18666 (lto_output_node): Stream profile ids.
18667 (input_node): Stream profile ids.
18668 (input_edge): Stream common targets.
18669 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
18670 * ipa.c: Include value-prof.h
18671 (ipa_profile_generate_summary): Turn indirect call statement histograms
18672 into common targets.
18673 (ipa_profile): Turn common targets into speculative edges.
18675 2013-08-09 Jan Hubicka <jh@suse.cz>
18677 * cgraph.h (cgraph_node): Add profile_id.
18678 * value-prof.c (cgraph_node_map): Turn into pointer_map.
18679 (init_node_map): Rewrite to handle hashes increas of incremental IDs.
18680 (del_node_map): Update.
18681 (find_func_by_funcdef_no): Replace by ...
18682 (find_func_by_profile_id): ... this one.
18683 (gimple_ic_transform): Do not remove useful histograms when
18684 speculation is not done; dump info when indirect call removal
18686 * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
18687 * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
18688 (__gcov_indirect_call_profiler_v2): .. this one.
18689 * profile.h (init_node_map): Update.
18690 * coverage.c (coverage_compute_profile_id): New function.
18691 * coverage.h (coverage_compute_profile_id): Declare.
18692 * tree-profile.c (init_ic_make_global_vars): Make
18693 __gcov_indirect_call_callee and __gcov_indirect_call_counters global.
18694 (gimple_init_edge_profiler): Update prototype of
18695 __gcov_indirect_call_profiler.
18696 (gimple_gen_ic_func_profiler): Simplify.
18697 (tree_profiling): Use init_node_map
18699 2013-08-09 Jan Hubicka <jh@suse.cz>
18701 * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
18702 non-speculative refs.
18703 * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
18704 (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
18705 (cgraph_set_call_stmt): Likewise.
18706 (cgraph_create_edge_1): Fix release checking compilatoin;
18707 clear lto_stmt_uid.
18708 (cgraph_free_edge): Free indirect info.
18709 (cgraph_turn_edge_to_speculative): New function.
18710 (cgraph_speculative_call_info): New function.
18711 (cgraph_make_edge_direct): Return direct edge; handle speculation.
18712 (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
18713 (dump_cgraph_node): Dump speculation.
18714 (verify_edge_count_and_frequency): Accept speculative edges.
18715 (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
18716 (verify_cgraph_node): Handle speculation.
18717 * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
18718 (cgraph_set_call_stmt): Update prototype.
18719 (cgraph_make_edge_direct): Update prototype.
18720 (cgraph_speculative_call_info): Declare.
18721 * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
18722 to change; update call of ipa_find_references.
18723 * ipa-ref.c (ipa_record_reference): Fix return value; clear
18724 lto_stmt_uid and speculative flags.
18725 (ipa_dump_references): Dump speculation.
18726 (ipa_clone_references): Clone speculative flag.
18727 (ipa_clone_referring): Likewise.
18728 (ipa_clone_ref): New function.
18729 (ipa_find_reference): Look into lto_stmt_uids
18730 (ipa_clear_stmts_in_references): Do not clear speculative calls.
18731 * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
18732 (ipa_find_reference): Update declaration.
18733 (ipa_clone_ref): Declare.
18734 * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
18735 stream speculative flag.
18736 (lto_output_ref): Stream statements uids and speculation.
18737 (input_ref): Likewise.
18738 (input_edge): Stream speuclation.
18739 * cgraphclones.c (cgraph_clone_edge): Clone speculation.
18740 (cgraph_set_call_stmt_including_clones): Handle speculation.
18741 * ipa-inline.c (heap_edge_removal_hook): New function.
18742 (inline_small_functions): Register it.
18743 * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
18744 also initialize refs.
18745 * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
18747 (try_make_edge_direct_simple_call): Likewise.
18748 (try_make_edge_direct_simple_call): Likewise.
18749 (update_indirect_edges_after_inlining): Likewise.
18750 (remove_described_reference): Look proper lto_stmt_uid.
18751 (propagate_controlled_uses): Likewise.
18752 (propagate_controlled_uses): Liekwise.
18753 * tree-inline.c (copy_bb): Copy speculative edges.
18754 (redirect_all_calls): New function.
18755 (copy_cfg_body): Do redirection after loop info is updated.
18756 (delete_unreachable_blocks_update_callgraph): Updadte speculation.
18758 2013-08-09 Jan Hubicka <jh@suse.cz>
18760 * lto-streamer-out.c (output_function): Renumber PHIs.
18761 * lto-streamer-in.c (input_function): Likewise.
18763 2013-08-09 James Greenhalgh <james.greenhalgh@arm.com>
18765 * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
18766 (get_lane_unsigned): Likewise.
18767 (dup_lane_scalar): Likewise.
18768 (get_lane): enable for VALL.
18769 * config/aarch64/aarch64-simd.md
18770 (aarch64_dup_lane_scalar<mode>): Remove.
18771 (aarch64_get_lane_signed<mode>): Likewise.
18772 (aarch64_get_lane_unsigned<mode>): Likewise.
18773 (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
18774 (aarch64_get_lane_zero_extendsi<mode>): Likewise.
18775 (aarch64_get_lane<mode>): Enable for all vector modes.
18776 (aarch64_get_lanedi): Remove misleading constraints.
18777 * config/aarch64/arm_neon.h
18778 (__aarch64_vget_lane_any): Define.
18779 (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
18780 (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
18781 (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
18782 * config/aarch64/iterators.md (VDQQH): New.
18783 (VDQQHS): Likewise.
18784 (vwcore): Likewise.
18786 2013-08-09 Eric Botcazou <ebotcazou@adacore.com>
18788 * configure.ac: Add GAS check for LEON instructions on SPARC.
18789 * configure: Regenerate.
18790 * config.in: Likewise.
18791 * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
18793 * config/sparc/sparc.opt (LEON, LEON3): New masks.
18794 * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
18796 (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
18797 (AS_LEON_FLAG): New macro.
18798 * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
18799 and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
18800 Deal with LEON and LEON3 for the memory model.
18801 * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
18802 (atomic_compare_and_swap<mode>_1): Likewise.
18803 (*atomic_compare_and_swap<mode>_1): Likewise.
18805 2013-08-09 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18807 * config/arm/neon.md (vcond): Fix floating-point vector
18808 comparisons against 0.
18810 2013-08-08 Vladimir Makarov <vmakarov@redhat.com>
18812 * lra-constraints.c (emit_spill_move): Remove assert.
18813 (process_alt_operands): Add more debugging
18814 output. Increase reject for spilling into memory. Decrease
18815 reject for reloading scratch.
18816 (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
18818 2013-08-08 Steve Ellcey <sellcey@mips.com>
18820 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
18821 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
18822 micromips incompatible. Add nan2008.
18823 (MULTILIB_DIRNAMES): Add nan2008.
18824 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
18825 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
18826 and micromips incompatible. Add nan2008.
18827 (MULTILIB_DIRNAMES): Add nan2008.
18828 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
18830 2013-08-08 Richard Sandiford <rdsandiford@googlemail.com>
18832 PR rtl-optimization/58079
18833 * combine.c (combine_simplify_rtx): Avoid using SUBST if
18834 simplify_comparison has widened a comparison with an integer.
18836 2013-08-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18838 * config/arm/neon.md (movmisalign<mode>): Disable when we
18839 don't allow unaligned accesses.
18840 (*movmisalign<mode>_neon_store): Likewise.
18841 (*movmisalign<mode>_neon_load): Likewise.
18842 (*movmisalign<mode>_neon_store): Likewise.
18843 (*movmisalign<mode>_neon_load): Likewise.
18845 2013-08-08 Jan Hubicka <jh@suse.cz>
18847 * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
18848 (make_pass_rebuild_cgraph_edges): Also clear references.
18849 * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
18850 * ipa-inline-transform.c (inline_transform): Remove all references
18852 * cgraphunit.c (expand_function): Remove all references after
18854 * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
18855 (ipa_find_reference): Rewrite to iterator.
18856 (remove_stmt_references): Likewise.
18857 (ipa_clear_stmts_in_references): New function.
18858 * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
18859 * cgraphclones.c (cgraph_materialize_all_clones): Remove or
18861 * ipa-split.c (split_function): Remove references in split function.
18863 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
18866 * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
18867 (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
18869 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
18872 * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
18873 suggested mode for the assignment isn't compatible with the
18874 registers required.
18876 2013-08-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
18879 * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
18881 2013-08-07 Xinliang David Li <davidxl@google.com>
18883 * config/i386/i386.opt: New option -mtune-ctrl=.
18884 * config/i386/x86-tune.def: New file.
18885 * config/i386/i386.h: include x86-tune.def.
18886 * config/i386/i386.c (ix86_option_override_internal):
18887 Parsing -mtune-ctrl= option and set tune features.
18889 2013-08-07 Oleg Endo <olegendo@gcc.gnu.org>
18892 * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
18893 (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
18896 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
18898 * rtl.h (update_alignments): Declare.
18899 * final.c (grow_label_align): New function extracted from...
18900 (shorten_branches): ...here. Call it.
18901 (update_alignments): New function.
18902 * reorg.c (sibling_labels): New variable.
18903 (get_label_before): Add SIBLING parameter. If it is non-zero, push
18904 the new label along with it onto the sibling_labels vector.
18905 (fill_simple_delay_slots): Adjust call to get_label_before.
18906 (fill_slots_from_thread): Likewise.
18907 (relax_delay_slots): Likewise.
18908 (make_return_insns): Likewise.
18909 (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
18911 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
18913 * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
18914 document its semantics.
18915 (diagnostic_report_diagnostic): Adjust accordingly.
18917 2013-08-07 David Malcolm <dmalcolm@redhat.com>
18919 * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
18920 (sparc_option_override): ...and port to new C++ pass API.
18921 * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
18923 2013-08-07 Peter Bergner <bergner@vnet.ibm.com>
18925 * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
18927 2013-08-06 Caroline Tice <cmtice@google.com>
18929 * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
18930 (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
18931 * tree-pass.h: Add pass_vtable_verify.
18932 * varasm.c (assemble_variable): Add code to properly set the comdat
18933 section and name for the .vtable_map_vars section.
18934 (assemble_vtyv_preinit_initializer): New function.
18935 (default_sectin_type_flags): Make sure .vtable_map_vars section has
18937 * output.h: Add function decl for assemble_vtv_preinit_initializer.
18938 * vtable-verify.c: New file.
18939 * vtable-verify.h: New file.
18940 * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
18941 initialiation levels.
18942 * timevar.def (TV_VTABLE_VERIFICATION): New definition.
18943 * passes.def: Insert pass_vtable_verify.
18944 * aclocal.m4: Reorder includes.
18945 * doc/invoke.texi: Document the -fvtable-verify=, -fvtv-debug, and
18946 -fvtv-counts options.
18947 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
18948 as appropriate, if -fvtable-verify=... is used.
18949 (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
18950 -fvtable-verify=... is used.
18951 * Makefile.in (OBJS): Add vtable-verify.o to list.
18952 (vtable-verify.o): Add new build rule.
18953 (GTFILES): Add vtable-verify.c to list.
18954 * common.opt (fvtable-verify=): New flag.
18955 (vtv_priority): Values for fvtable-verify= flag.
18956 (fvtv-counts): New flag.
18957 (fvtv-debug): New flag.
18958 * tree.h (save_vtable_map_decl): New extern function decl.
18960 2013-08-07 David Malcolm <dmalcolm@redhat.com>
18962 * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
18963 (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
18964 (pass_data_rl78_devirt): ...new pass_data instance and...
18965 (make_pass_rl78_devirt): ...new function.
18966 (rl78_asm_file_start): Port pass registration to new C++ API.
18968 2013-08-07 David Malcolm <dmalcolm@redhat.com>
18970 * coretypes.h (rtl_opt_pass): Add.
18971 (gcc::context): Add.
18972 * config/epiphany/epiphany.c (pass_mode_switch_use): New.
18973 (epiphany_init): Port to new C++ pass API.
18974 (epiphany_optimize_mode_switching): Likewise.
18975 * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
18976 (pass_manager::get_pass_mode_switching): New.
18977 (pass_manager::get_pass_peephole2): New.
18978 * mode-switching.c (pass_mode_switching): Add clone method.
18979 * recog.c (pass_peephole2): Add clone method.
18980 (pass_split_all_insns): Add clone method.
18982 2013-08-06 David Malcolm <dmalcolm@redhat.com>
18984 * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
18985 (mips_option_override): ...here, porting to new C++ API for passes.
18987 2013-08-06 Jan Hubicka <jh@suse.cz>
18989 * cgraph.c (cgraph_get_body): New function based on lto.c
18991 * cgraph.h (cgraph_get_body): Declare.
18992 * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
18994 * cgraphunit.c (expand_function): Get body prior expanding.
18995 * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
18996 * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
18998 * passes.c (do_per_function_toporder): Get body.
18999 * tree-inline.c (expand_call_inline): Get body prior inlining it.
19000 * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
19002 2013-08-06 Martin Jambor <mjambor@suse.cz>
19005 * cgraphunit.c (cgraph_finalize_function): Assert that nested function
19006 is not re-finalized. Rename second parameter to no_collect.
19008 2013-08-06 Martin Jambor <mjambor@suse.cz>
19010 PR middle-end/58041
19011 * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
19012 MEM_REF has proper alignment information.
19014 2013-08-05 Oleg Endo <olegendo@gcc.gnu.org>
19017 * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
19019 * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
19020 rtx (*) (rtx, ...) with insn_gen_fn.
19021 * genoutput.c (output_insn_data): Cast gen_? function pointers to
19022 insn_gen_fn::stored_funcptr. Add initializer braces.
19024 2013-08-05 David Malcolm <dmalcolm@redhat.com>
19026 Rewrite how instances of passes are cloned to remove assumptions
19027 about their sizes (thus allowing pass subclasses to have
19028 additional data fields, albeit non-GC-managed ones at this point).
19030 * passes.c (make_pass_instance): Now that passes have clone
19031 methods, rewrite this function to eliminate XNEW and memcpy
19032 calls that used hardcoded sizes. Since this function no longer
19033 creates pass instances, rename it to...
19034 (add_pass_instance): ...this. Document the old way that passes were
19035 numbered and flagged, and rework this function to continue using it.
19036 (next_pass_1): Add an initial_pass argument for use by
19038 (position_pass): When adding multiple instances of a pass, use
19039 the pass's clone method, rather than relying on the XNEW/memcpy
19040 within the former make_pass_instance (now add_pass_instance).
19041 (pass_manager::pass_manager): When invoking next_pass_1, also supply
19042 the initial instance of the current pass within the pass manager.
19044 2013-08-05 David Malcolm <dmalcolm@redhat.com>
19046 This is the automated part of the conversion of passes from C
19047 structs to C++ classes.
19049 Patch autogenerated by refactor_passes.py from
19050 https://github.com/davidmalcolm/gcc-refactoring-scripts
19051 revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
19053 * asan.c (pass_asan): Convert from a global struct to a subclass of
19054 gimple_opt_pass along with...
19055 (pass_data_asan): ...new pass_data instance and...
19056 (make_pass_asan): ...new function.
19057 (pass_asan_O0): Convert from a global struct to a subclass of
19058 gimple_opt_pass along with...
19059 (pass_data_asan_O0): ...new pass_data instance and...
19060 (make_pass_asan_O0): ...new function.
19061 * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
19062 subclass of rtl_opt_pass along with...
19063 (pass_data_inc_dec): ...new pass_data instance and...
19064 (make_pass_inc_dec): ...new function.
19065 * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
19066 a subclass of rtl_opt_pass along with...
19067 (pass_data_reorder_blocks): ...new pass_data instance and...
19068 (make_pass_reorder_blocks): ...new function.
19069 (pass_duplicate_computed_gotos): Convert from a global struct to a
19070 subclass of rtl_opt_pass along with...
19071 (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
19072 (make_pass_duplicate_computed_gotos): ...new function.
19073 (pass_partition_blocks): Convert from a global struct to a subclass of
19074 rtl_opt_pass along with...
19075 (pass_data_partition_blocks): ...new pass_data instance and...
19076 (make_pass_partition_blocks): ...new function.
19077 * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
19078 struct to a subclass of rtl_opt_pass along with...
19079 (pass_data_branch_target_load_optimize1): ...new pass_data instance
19081 (make_pass_branch_target_load_optimize1): ...new function.
19082 (pass_branch_target_load_optimize2): Convert from a global struct to a
19083 subclass of rtl_opt_pass along with...
19084 (pass_data_branch_target_load_optimize2): ...new pass_data instance
19086 (make_pass_branch_target_load_optimize2): ...new function.
19087 * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
19088 of rtl_opt_pass along with...
19089 (pass_data_jump): ...new pass_data instance and...
19090 (make_pass_jump): ...new function.
19091 (pass_jump2): Convert from a global struct to a subclass of
19092 rtl_opt_pass along with...
19093 (pass_data_jump2): ...new pass_data instance and...
19094 (make_pass_jump2): ...new function.
19095 * cfgexpand.c (pass_expand): Convert from a global struct to a
19096 subclass of rtl_opt_pass along with...
19097 (pass_data_expand): ...new pass_data instance and...
19098 (make_pass_expand): ...new function.
19099 * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
19100 of rtl_opt_pass along with...
19101 (pass_data_free_cfg): ...new pass_data instance and...
19102 (make_pass_free_cfg): ...new function.
19103 (pass_into_cfg_layout_mode): Convert from a global struct to a
19104 subclass of rtl_opt_pass along with...
19105 (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
19106 (make_pass_into_cfg_layout_mode): ...new function.
19107 (pass_outof_cfg_layout_mode): Convert from a global struct to a
19108 subclass of rtl_opt_pass along with...
19109 (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
19110 (make_pass_outof_cfg_layout_mode): ...new function.
19111 * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
19112 struct to a subclass of gimple_opt_pass along with...
19113 (pass_data_build_cgraph_edges): ...new pass_data instance and...
19114 (make_pass_build_cgraph_edges): ...new function.
19115 (pass_rebuild_cgraph_edges): Convert from a global struct to a
19116 subclass of gimple_opt_pass along with...
19117 (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
19118 (make_pass_rebuild_cgraph_edges): ...new function.
19119 (pass_remove_cgraph_callee_edges): Convert from a global struct to a
19120 subclass of gimple_opt_pass along with...
19121 (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
19123 (make_pass_remove_cgraph_callee_edges): ...new function.
19124 * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
19125 struct to a subclass of rtl_opt_pass along with...
19126 (pass_data_stack_adjustments): ...new pass_data instance and...
19127 (make_pass_stack_adjustments): ...new function.
19128 * combine.c (pass_combine): Convert from a global struct to a subclass
19129 of rtl_opt_pass along with...
19130 (pass_data_combine): ...new pass_data instance and...
19131 (make_pass_combine): ...new function.
19132 * compare-elim.c (pass_compare_elim_after_reload): Convert from a
19133 global struct to a subclass of rtl_opt_pass along with...
19134 (pass_data_compare_elim_after_reload): ...new pass_data instance
19136 (make_pass_compare_elim_after_reload): ...new function.
19137 * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
19138 of rtl_opt_pass along with...
19139 (pass_data_rtl_cprop): ...new pass_data instance and...
19140 (make_pass_rtl_cprop): ...new function.
19141 * cse.c (pass_cse): Convert from a global struct to a subclass of
19142 rtl_opt_pass along with...
19143 (pass_data_cse): ...new pass_data instance and...
19144 (make_pass_cse): ...new function.
19145 (pass_cse2): Convert from a global struct to a subclass of
19146 rtl_opt_pass along with...
19147 (pass_data_cse2): ...new pass_data instance and...
19148 (make_pass_cse2): ...new function.
19149 (pass_cse_after_global_opts): Convert from a global struct to a
19150 subclass of rtl_opt_pass along with...
19151 (pass_data_cse_after_global_opts): ...new pass_data instance and...
19152 (make_pass_cse_after_global_opts): ...new function.
19153 * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
19154 of rtl_opt_pass along with...
19155 (pass_data_ud_rtl_dce): ...new pass_data instance and...
19156 (make_pass_ud_rtl_dce): ...new function.
19157 (pass_fast_rtl_dce): Convert from a global struct to a subclass of
19158 rtl_opt_pass along with...
19159 (pass_data_fast_rtl_dce): ...new pass_data instance and...
19160 (make_pass_fast_rtl_dce): ...new function.
19161 * df-core.c (pass_df_initialize_opt): Convert from a global struct to
19162 a subclass of rtl_opt_pass along with...
19163 (pass_data_df_initialize_opt): ...new pass_data instance and...
19164 (make_pass_df_initialize_opt): ...new function.
19165 (pass_df_initialize_no_opt): Convert from a global struct to a
19166 subclass of rtl_opt_pass along with...
19167 (pass_data_df_initialize_no_opt): ...new pass_data instance and...
19168 (make_pass_df_initialize_no_opt): ...new function.
19169 (pass_df_finish): Convert from a global struct to a subclass of
19170 rtl_opt_pass along with...
19171 (pass_data_df_finish): ...new pass_data instance and...
19172 (make_pass_df_finish): ...new function.
19173 * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
19174 rtl_opt_pass along with...
19175 (pass_data_rtl_dse1): ...new pass_data instance and...
19176 (make_pass_rtl_dse1): ...new function.
19177 (pass_rtl_dse2): Convert from a global struct to a subclass of
19178 rtl_opt_pass along with...
19179 (pass_data_rtl_dse2): ...new pass_data instance and...
19180 (make_pass_rtl_dse2): ...new function.
19181 * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
19182 subclass of rtl_opt_pass along with...
19183 (pass_data_dwarf2_frame): ...new pass_data instance and...
19184 (make_pass_dwarf2_frame): ...new function.
19185 * except.c (pass_set_nothrow_function_flags): Convert from a global
19186 struct to a subclass of rtl_opt_pass along with...
19187 (pass_data_set_nothrow_function_flags): ...new pass_data instance
19189 (make_pass_set_nothrow_function_flags): ...new function.
19190 (pass_convert_to_eh_region_ranges): Convert from a global struct to a
19191 subclass of rtl_opt_pass along with...
19192 (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
19194 (make_pass_convert_to_eh_region_ranges): ...new function.
19195 * final.c (pass_compute_alignments): Convert from a global struct to a
19196 subclass of rtl_opt_pass along with...
19197 (pass_data_compute_alignments): ...new pass_data instance and...
19198 (make_pass_compute_alignments): ...new function.
19199 (pass_final): Convert from a global struct to a subclass of
19200 rtl_opt_pass along with...
19201 (pass_data_final): ...new pass_data instance and...
19202 (make_pass_final): ...new function.
19203 (pass_shorten_branches): Convert from a global struct to a subclass of
19204 rtl_opt_pass along with...
19205 (pass_data_shorten_branches): ...new pass_data instance and...
19206 (make_pass_shorten_branches): ...new function.
19207 (pass_clean_state): Convert from a global struct to a subclass of
19208 rtl_opt_pass along with...
19209 (pass_data_clean_state): ...new pass_data instance and...
19210 (make_pass_clean_state): ...new function.
19211 * function.c (pass_instantiate_virtual_regs): Convert from a global
19212 struct to a subclass of rtl_opt_pass along with...
19213 (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
19214 (make_pass_instantiate_virtual_regs): ...new function.
19215 (pass_leaf_regs): Convert from a global struct to a subclass of
19216 rtl_opt_pass along with...
19217 (pass_data_leaf_regs): ...new pass_data instance and...
19218 (make_pass_leaf_regs): ...new function.
19219 (pass_thread_prologue_and_epilogue): Convert from a global struct to a
19220 subclass of rtl_opt_pass along with...
19221 (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
19223 (make_pass_thread_prologue_and_epilogue): ...new function.
19224 (pass_match_asm_constraints): Convert from a global struct to a
19225 subclass of rtl_opt_pass along with...
19226 (pass_data_match_asm_constraints): ...new pass_data instance and...
19227 (make_pass_match_asm_constraints): ...new function.
19228 * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
19229 subclass of rtl_opt_pass along with...
19230 (pass_data_rtl_fwprop): ...new pass_data instance and...
19231 (make_pass_rtl_fwprop): ...new function.
19232 (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
19233 rtl_opt_pass along with...
19234 (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
19235 (make_pass_rtl_fwprop_addr): ...new function.
19236 * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
19237 rtl_opt_pass along with...
19238 (pass_data_rtl_pre): ...new pass_data instance and...
19239 (make_pass_rtl_pre): ...new function.
19240 (pass_rtl_hoist): Convert from a global struct to a subclass of
19241 rtl_opt_pass along with...
19242 (pass_data_rtl_hoist): ...new pass_data instance and...
19243 (make_pass_rtl_hoist): ...new function.
19244 * gimple-low.c (pass_lower_cf): Convert from a global struct to a
19245 subclass of gimple_opt_pass along with...
19246 (pass_data_lower_cf): ...new pass_data instance and...
19247 (make_pass_lower_cf): ...new function.
19248 * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
19249 from a global struct to a subclass of gimple_opt_pass along with...
19250 (pass_data_strength_reduction): ...new pass_data instance and...
19251 (make_pass_strength_reduction): ...new function.
19252 * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
19253 of rtl_opt_pass along with...
19254 (pass_data_rtl_ifcvt): ...new pass_data instance and...
19255 (make_pass_rtl_ifcvt): ...new function.
19256 (pass_if_after_combine): Convert from a global struct to a subclass of
19257 rtl_opt_pass along with...
19258 (pass_data_if_after_combine): ...new pass_data instance and...
19259 (make_pass_if_after_combine): ...new function.
19260 (pass_if_after_reload): Convert from a global struct to a subclass of
19261 rtl_opt_pass along with...
19262 (pass_data_if_after_reload): ...new pass_data instance and...
19263 (make_pass_if_after_reload): ...new function.
19264 * init-regs.c (pass_initialize_regs): Convert from a global struct to
19265 a subclass of rtl_opt_pass along with...
19266 (pass_data_initialize_regs): ...new pass_data instance and...
19267 (make_pass_initialize_regs): ...new function.
19268 * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
19269 of ipa_opt_pass_d along with...
19270 (pass_data_ipa_cp): ...new pass_data instance and...
19271 (make_pass_ipa_cp): ...new function.
19272 * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
19273 global struct to a subclass of gimple_opt_pass along with...
19274 (pass_data_inline_parameters): ...new pass_data instance and...
19275 (make_pass_inline_parameters): ...new function.
19276 * ipa-inline.c (pass_early_inline): Convert from a global struct to a
19277 subclass of gimple_opt_pass along with...
19278 (pass_data_early_inline): ...new pass_data instance and...
19279 (make_pass_early_inline): ...new function.
19280 (pass_ipa_inline): Convert from a global struct to a subclass of
19281 ipa_opt_pass_d along with...
19282 (pass_data_ipa_inline): ...new pass_data instance and...
19283 (make_pass_ipa_inline): ...new function.
19284 * ipa-pure-const.c (pass_local_pure_const): Convert from a global
19285 struct to a subclass of gimple_opt_pass along with...
19286 (pass_data_local_pure_const): ...new pass_data instance and...
19287 (make_pass_local_pure_const): ...new function.
19288 (pass_ipa_pure_const): Convert from a global struct to a subclass of
19289 ipa_opt_pass_d along with...
19290 (pass_data_ipa_pure_const): ...new pass_data instance and...
19291 (make_pass_ipa_pure_const): ...new function.
19292 * ipa-reference.c (pass_ipa_reference): Convert from a global struct
19293 to a subclass of ipa_opt_pass_d along with...
19294 (pass_data_ipa_reference): ...new pass_data instance and...
19295 (make_pass_ipa_reference): ...new function.
19296 * ipa-split.c (pass_split_functions): Convert from a global struct to
19297 a subclass of gimple_opt_pass along with...
19298 (pass_data_split_functions): ...new pass_data instance and...
19299 (make_pass_split_functions): ...new function.
19300 (pass_feedback_split_functions): Convert from a global struct to a
19301 subclass of gimple_opt_pass along with...
19302 (pass_data_feedback_split_functions): ...new pass_data instance and...
19303 (make_pass_feedback_split_functions): ...new function.
19304 * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
19305 global struct to a subclass of simple_ipa_opt_pass along with...
19306 (pass_data_ipa_function_and_variable_visibility): ...new pass_data
19308 (make_pass_ipa_function_and_variable_visibility): ...new function.
19309 (pass_ipa_free_inline_summary): Convert from a global struct to a
19310 subclass of simple_ipa_opt_pass along with...
19311 (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
19312 (make_pass_ipa_free_inline_summary): ...new function.
19313 (pass_ipa_whole_program_visibility): Convert from a global struct to a
19314 subclass of ipa_opt_pass_d along with...
19315 (pass_data_ipa_whole_program_visibility): ...new pass_data instance
19317 (make_pass_ipa_whole_program_visibility): ...new function.
19318 (pass_ipa_profile): Convert from a global struct to a subclass of
19319 ipa_opt_pass_d along with...
19320 (pass_data_ipa_profile): ...new pass_data instance and...
19321 (make_pass_ipa_profile): ...new function.
19322 (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
19323 ipa_opt_pass_d along with...
19324 (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
19325 (make_pass_ipa_cdtor_merge): ...new function.
19326 * ira.c (pass_ira): Convert from a global struct to a subclass of
19327 rtl_opt_pass along with...
19328 (pass_data_ira): ...new pass_data instance and...
19329 (make_pass_ira): ...new function.
19330 (pass_reload): Convert from a global struct to a subclass of
19331 rtl_opt_pass along with...
19332 (pass_data_reload): ...new pass_data instance and...
19333 (make_pass_reload): ...new function.
19334 * jump.c (pass_cleanup_barriers): Convert from a global struct to a
19335 subclass of rtl_opt_pass along with...
19336 (pass_data_cleanup_barriers): ...new pass_data instance and...
19337 (make_pass_cleanup_barriers): ...new function.
19338 * loop-init.c (pass_loop2): Convert from a global struct to a subclass
19339 of rtl_opt_pass along with...
19340 (pass_data_loop2): ...new pass_data instance and...
19341 (make_pass_loop2): ...new function.
19342 (pass_rtl_loop_init): Convert from a global struct to a subclass of
19343 rtl_opt_pass along with...
19344 (pass_data_rtl_loop_init): ...new pass_data instance and...
19345 (make_pass_rtl_loop_init): ...new function.
19346 (pass_rtl_loop_done): Convert from a global struct to a subclass of
19347 rtl_opt_pass along with...
19348 (pass_data_rtl_loop_done): ...new pass_data instance and...
19349 (make_pass_rtl_loop_done): ...new function.
19350 (pass_rtl_move_loop_invariants): Convert from a global struct to a
19351 subclass of rtl_opt_pass along with...
19352 (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
19353 (make_pass_rtl_move_loop_invariants): ...new function.
19354 (pass_rtl_unswitch): Convert from a global struct to a subclass of
19355 rtl_opt_pass along with...
19356 (pass_data_rtl_unswitch): ...new pass_data instance and...
19357 (make_pass_rtl_unswitch): ...new function.
19358 (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
19359 subclass of rtl_opt_pass along with...
19360 (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
19362 (make_pass_rtl_unroll_and_peel_loops): ...new function.
19363 (pass_rtl_doloop): Convert from a global struct to a subclass of
19364 rtl_opt_pass along with...
19365 (pass_data_rtl_doloop): ...new pass_data instance and...
19366 (make_pass_rtl_doloop): ...new function.
19367 * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
19368 a subclass of rtl_opt_pass along with...
19369 (pass_data_lower_subreg): ...new pass_data instance and...
19370 (make_pass_lower_subreg): ...new function.
19371 (pass_lower_subreg2): Convert from a global struct to a subclass of
19372 rtl_opt_pass along with...
19373 (pass_data_lower_subreg2): ...new pass_data instance and...
19374 (make_pass_lower_subreg2): ...new function.
19375 * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
19376 struct to a subclass of ipa_opt_pass_d along with...
19377 (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
19378 (make_pass_ipa_lto_gimple_out): ...new function.
19379 (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
19380 of ipa_opt_pass_d along with...
19381 (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
19382 (make_pass_ipa_lto_finish_out): ...new function.
19383 * mode-switching.c (pass_mode_switching): Convert from a global struct
19384 to a subclass of rtl_opt_pass along with...
19385 (pass_data_mode_switching): ...new pass_data instance and...
19386 (make_pass_mode_switching): ...new function.
19387 * modulo-sched.c (pass_sms): Convert from a global struct to a
19388 subclass of rtl_opt_pass along with...
19389 (pass_data_sms): ...new pass_data instance and...
19390 (make_pass_sms): ...new function.
19391 * omp-low.c (pass_expand_omp): Convert from a global struct to a
19392 subclass of gimple_opt_pass along with...
19393 (pass_data_expand_omp): ...new pass_data instance and...
19394 (make_pass_expand_omp): ...new function.
19395 (pass_lower_omp): Convert from a global struct to a subclass of
19396 gimple_opt_pass along with...
19397 (pass_data_lower_omp): ...new pass_data instance and...
19398 (make_pass_lower_omp): ...new function.
19399 (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
19400 of gimple_opt_pass along with...
19401 (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
19402 (make_pass_diagnose_omp_blocks): ...new function.
19403 * passes.c (pass_early_local_passes): Convert from a global struct to
19404 a subclass of simple_ipa_opt_pass along with...
19405 (pass_data_early_local_passes): ...new pass_data instance and...
19406 (make_pass_early_local_passes): ...new function.
19407 (pass_all_early_optimizations): Convert from a global struct to a
19408 subclass of gimple_opt_pass along with...
19409 (pass_data_all_early_optimizations): ...new pass_data instance and...
19410 (make_pass_all_early_optimizations): ...new function.
19411 (pass_all_optimizations): Convert from a global struct to a subclass
19412 of gimple_opt_pass along with...
19413 (pass_data_all_optimizations): ...new pass_data instance and...
19414 (make_pass_all_optimizations): ...new function.
19415 (pass_all_optimizations_g): Convert from a global struct to a subclass
19416 of gimple_opt_pass along with...
19417 (pass_data_all_optimizations_g): ...new pass_data instance and...
19418 (make_pass_all_optimizations_g): ...new function.
19419 (pass_rest_of_compilation): Convert from a global struct to a subclass
19420 of rtl_opt_pass along with...
19421 (pass_data_rest_of_compilation): ...new pass_data instance and...
19422 (make_pass_rest_of_compilation): ...new function.
19423 (pass_postreload): Convert from a global struct to a subclass of
19424 rtl_opt_pass along with...
19425 (pass_data_postreload): ...new pass_data instance and...
19426 (make_pass_postreload): ...new function.
19427 * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
19428 subclass of rtl_opt_pass along with...
19429 (pass_data_gcse2): ...new pass_data instance and...
19430 (make_pass_gcse2): ...new function.
19431 * postreload.c (pass_postreload_cse): Convert from a global struct to
19432 a subclass of rtl_opt_pass along with...
19433 (pass_data_postreload_cse): ...new pass_data instance and...
19434 (make_pass_postreload_cse): ...new function.
19435 * predict.c (pass_profile): Convert from a global struct to a subclass
19436 of gimple_opt_pass along with...
19437 (pass_data_profile): ...new pass_data instance and...
19438 (make_pass_profile): ...new function.
19439 (pass_strip_predict_hints): Convert from a global struct to a subclass
19440 of gimple_opt_pass along with...
19441 (pass_data_strip_predict_hints): ...new pass_data instance and...
19442 (make_pass_strip_predict_hints): ...new function.
19443 * recog.c (pass_peephole2): Convert from a global struct to a subclass
19444 of rtl_opt_pass along with...
19445 (pass_data_peephole2): ...new pass_data instance and...
19446 (make_pass_peephole2): ...new function.
19447 (pass_split_all_insns): Convert from a global struct to a subclass of
19448 rtl_opt_pass along with...
19449 (pass_data_split_all_insns): ...new pass_data instance and...
19450 (make_pass_split_all_insns): ...new function.
19451 (pass_split_after_reload): Convert from a global struct to a subclass
19452 of rtl_opt_pass along with...
19453 (pass_data_split_after_reload): ...new pass_data instance and...
19454 (make_pass_split_after_reload): ...new function.
19455 (pass_split_before_regstack): Convert from a global struct to a
19456 subclass of rtl_opt_pass along with...
19457 (pass_data_split_before_regstack): ...new pass_data instance and...
19458 (make_pass_split_before_regstack): ...new function.
19459 (pass_split_before_sched2): Convert from a global struct to a subclass
19460 of rtl_opt_pass along with...
19461 (pass_data_split_before_sched2): ...new pass_data instance and...
19462 (make_pass_split_before_sched2): ...new function.
19463 (pass_split_for_shorten_branches): Convert from a global struct to a
19464 subclass of rtl_opt_pass along with...
19465 (pass_data_split_for_shorten_branches): ...new pass_data instance
19467 (make_pass_split_for_shorten_branches): ...new function.
19468 * ree.c (pass_ree): Convert from a global struct to a subclass of
19469 rtl_opt_pass along with...
19470 (pass_data_ree): ...new pass_data instance and...
19471 (make_pass_ree): ...new function.
19472 * reg-stack.c (pass_stack_regs): Convert from a global struct to a
19473 subclass of rtl_opt_pass along with...
19474 (pass_data_stack_regs): ...new pass_data instance and...
19475 (make_pass_stack_regs): ...new function.
19476 (pass_stack_regs_run): Convert from a global struct to a subclass of
19477 rtl_opt_pass along with...
19478 (pass_data_stack_regs_run): ...new pass_data instance and...
19479 (make_pass_stack_regs_run): ...new function.
19480 * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
19481 subclass of rtl_opt_pass along with...
19482 (pass_data_cprop_hardreg): ...new pass_data instance and...
19483 (make_pass_cprop_hardreg): ...new function.
19484 * reginfo.c (pass_reginfo_init): Convert from a global struct to a
19485 subclass of rtl_opt_pass along with...
19486 (pass_data_reginfo_init): ...new pass_data instance and...
19487 (make_pass_reginfo_init): ...new function.
19488 * regmove.c (pass_regmove): Convert from a global struct to a subclass
19489 of rtl_opt_pass along with...
19490 (pass_data_regmove): ...new pass_data instance and...
19491 (make_pass_regmove): ...new function.
19492 * regrename.c (pass_regrename): Convert from a global struct to a
19493 subclass of rtl_opt_pass along with...
19494 (pass_data_regrename): ...new pass_data instance and...
19495 (make_pass_regrename): ...new function.
19496 * reorg.c (pass_delay_slots): Convert from a global struct to a
19497 subclass of rtl_opt_pass along with...
19498 (pass_data_delay_slots): ...new pass_data instance and...
19499 (make_pass_delay_slots): ...new function.
19500 (pass_machine_reorg): Convert from a global struct to a subclass of
19501 rtl_opt_pass along with...
19502 (pass_data_machine_reorg): ...new pass_data instance and...
19503 (make_pass_machine_reorg): ...new function.
19504 * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
19505 of rtl_opt_pass along with...
19506 (pass_data_sched): ...new pass_data instance and...
19507 (make_pass_sched): ...new function.
19508 (pass_sched2): Convert from a global struct to a subclass of
19509 rtl_opt_pass along with...
19510 (pass_data_sched2): ...new pass_data instance and...
19511 (make_pass_sched2): ...new function.
19512 * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
19513 to a subclass of rtl_opt_pass along with...
19514 (pass_data_stack_ptr_mod): ...new pass_data instance and...
19515 (make_pass_stack_ptr_mod): ...new function.
19516 * store-motion.c (pass_rtl_store_motion): Convert from a global struct
19517 to a subclass of rtl_opt_pass along with...
19518 (pass_data_rtl_store_motion): ...new pass_data instance and...
19519 (make_pass_rtl_store_motion): ...new function.
19520 * tracer.c (pass_tracer): Convert from a global struct to a subclass
19521 of gimple_opt_pass along with...
19522 (pass_data_tracer): ...new pass_data instance and...
19523 (make_pass_tracer): ...new function.
19524 * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
19525 to a subclass of gimple_opt_pass along with...
19526 (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
19527 (make_pass_diagnose_tm_blocks): ...new function.
19528 (pass_lower_tm): Convert from a global struct to a subclass of
19529 gimple_opt_pass along with...
19530 (pass_data_lower_tm): ...new pass_data instance and...
19531 (make_pass_lower_tm): ...new function.
19532 (pass_tm_init): Convert from a global struct to a subclass of
19533 gimple_opt_pass along with...
19534 (pass_data_tm_init): ...new pass_data instance and...
19535 (make_pass_tm_init): ...new function.
19536 (pass_tm_mark): Convert from a global struct to a subclass of
19537 gimple_opt_pass along with...
19538 (pass_data_tm_mark): ...new pass_data instance and...
19539 (make_pass_tm_mark): ...new function.
19540 (pass_tm_edges): Convert from a global struct to a subclass of
19541 gimple_opt_pass along with...
19542 (pass_data_tm_edges): ...new pass_data instance and...
19543 (make_pass_tm_edges): ...new function.
19544 (pass_tm_memopt): Convert from a global struct to a subclass of
19545 gimple_opt_pass along with...
19546 (pass_data_tm_memopt): ...new pass_data instance and...
19547 (make_pass_tm_memopt): ...new function.
19548 (pass_ipa_tm): Convert from a global struct to a subclass of
19549 simple_ipa_opt_pass along with...
19550 (pass_data_ipa_tm): ...new pass_data instance and...
19551 (make_pass_ipa_tm): ...new function.
19552 * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
19553 subclass of gimple_opt_pass along with...
19554 (pass_data_call_cdce): ...new pass_data instance and...
19555 (make_pass_call_cdce): ...new function.
19556 * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
19557 subclass of gimple_opt_pass along with...
19558 (pass_data_build_cfg): ...new pass_data instance and...
19559 (make_pass_build_cfg): ...new function.
19560 (pass_split_crit_edges): Convert from a global struct to a subclass of
19561 gimple_opt_pass along with...
19562 (pass_data_split_crit_edges): ...new pass_data instance and...
19563 (make_pass_split_crit_edges): ...new function.
19564 (pass_warn_function_return): Convert from a global struct to a
19565 subclass of gimple_opt_pass along with...
19566 (pass_data_warn_function_return): ...new pass_data instance and...
19567 (make_pass_warn_function_return): ...new function.
19568 (pass_warn_function_noreturn): Convert from a global struct to a
19569 subclass of gimple_opt_pass along with...
19570 (pass_data_warn_function_noreturn): ...new pass_data instance and...
19571 (make_pass_warn_function_noreturn): ...new function.
19572 (pass_warn_unused_result): Convert from a global struct to a subclass
19573 of gimple_opt_pass along with...
19574 (pass_data_warn_unused_result): ...new pass_data instance and...
19575 (make_pass_warn_unused_result): ...new function.
19576 * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
19577 a subclass of gimple_opt_pass along with...
19578 (pass_data_merge_phi): ...new pass_data instance and...
19579 (make_pass_merge_phi): ...new function.
19580 * tree-complex.c (pass_lower_complex): Convert from a global struct to
19581 a subclass of gimple_opt_pass along with...
19582 (pass_data_lower_complex): ...new pass_data instance and...
19583 (make_pass_lower_complex): ...new function.
19584 (pass_lower_complex_O0): Convert from a global struct to a subclass of
19585 gimple_opt_pass along with...
19586 (pass_data_lower_complex_O0): ...new pass_data instance and...
19587 (make_pass_lower_complex_O0): ...new function.
19588 * tree-eh.c (pass_lower_eh): Convert from a global struct to a
19589 subclass of gimple_opt_pass along with...
19590 (pass_data_lower_eh): ...new pass_data instance and...
19591 (make_pass_lower_eh): ...new function.
19592 (pass_refactor_eh): Convert from a global struct to a subclass of
19593 gimple_opt_pass along with...
19594 (pass_data_refactor_eh): ...new pass_data instance and...
19595 (make_pass_refactor_eh): ...new function.
19596 (pass_lower_resx): Convert from a global struct to a subclass of
19597 gimple_opt_pass along with...
19598 (pass_data_lower_resx): ...new pass_data instance and...
19599 (make_pass_lower_resx): ...new function.
19600 (pass_lower_eh_dispatch): Convert from a global struct to a subclass
19601 of gimple_opt_pass along with...
19602 (pass_data_lower_eh_dispatch): ...new pass_data instance and...
19603 (make_pass_lower_eh_dispatch): ...new function.
19604 (pass_cleanup_eh): Convert from a global struct to a subclass of
19605 gimple_opt_pass along with...
19606 (pass_data_cleanup_eh): ...new pass_data instance and...
19607 (make_pass_cleanup_eh): ...new function.
19608 * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
19609 to a subclass of simple_ipa_opt_pass along with...
19610 (pass_data_ipa_lower_emutls): ...new pass_data instance and...
19611 (make_pass_ipa_lower_emutls): ...new function.
19612 * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
19613 a subclass of gimple_opt_pass along with...
19614 (pass_data_if_conversion): ...new pass_data instance and...
19615 (make_pass_if_conversion): ...new function.
19616 * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
19617 subclass of gimple_opt_pass along with...
19618 (pass_data_build_ssa): ...new pass_data instance and...
19619 (make_pass_build_ssa): ...new function.
19620 * tree-loop-distribution.c (pass_loop_distribution): Convert from a
19621 global struct to a subclass of gimple_opt_pass along with...
19622 (pass_data_loop_distribution): ...new pass_data instance and...
19623 (make_pass_loop_distribution): ...new function.
19624 * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
19625 subclass of gimple_opt_pass along with...
19626 (pass_data_mudflap_1): ...new pass_data instance and...
19627 (make_pass_mudflap_1): ...new function.
19628 (pass_mudflap_2): Convert from a global struct to a subclass of
19629 gimple_opt_pass along with...
19630 (pass_data_mudflap_2): ...new pass_data instance and...
19631 (make_pass_mudflap_2): ...new function.
19632 * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
19633 subclass of gimple_opt_pass along with...
19634 (pass_data_mudflap_1): ...new pass_data instance and...
19635 (make_pass_mudflap_1): ...new function.
19636 (pass_mudflap_2): Convert from a global struct to a subclass of
19637 gimple_opt_pass along with...
19638 (pass_data_mudflap_2): ...new pass_data instance and...
19639 (make_pass_mudflap_2): ...new function.
19640 * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
19641 gimple_opt_pass along with...
19642 (pass_data_nrv): ...new pass_data instance and...
19643 (make_pass_nrv): ...new function.
19644 (pass_return_slot): Convert from a global struct to a subclass of
19645 gimple_opt_pass along with...
19646 (pass_data_return_slot): ...new pass_data instance and...
19647 (make_pass_return_slot): ...new function.
19648 * tree-object-size.c (pass_object_sizes): Convert from a global struct
19649 to a subclass of gimple_opt_pass along with...
19650 (pass_data_object_sizes): ...new pass_data instance and...
19651 (make_pass_object_sizes): ...new function.
19652 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
19653 global struct to a subclass of gimple_opt_pass along with...
19654 (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
19656 (make_pass_cleanup_cfg_post_optimizing): ...new function.
19657 (pass_fixup_cfg): Convert from a global struct to a subclass of
19658 gimple_opt_pass along with...
19659 (pass_data_fixup_cfg): ...new pass_data instance and...
19660 (make_pass_fixup_cfg): ...new function.
19661 * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
19662 (make_pass_mudflap_1): ...new function.
19663 (pass_mudflap_2): Replace declaration with that of...
19664 (make_pass_mudflap_2): ...new function.
19665 (pass_asan): Replace declaration with that of...
19666 (make_pass_asan): ...new function.
19667 (pass_asan_O0): Replace declaration with that of...
19668 (make_pass_asan_O0): ...new function.
19669 (pass_tsan): Replace declaration with that of...
19670 (make_pass_tsan): ...new function.
19671 (pass_tsan_O0): Replace declaration with that of...
19672 (make_pass_tsan_O0): ...new function.
19673 (pass_lower_cf): Replace declaration with that of...
19674 (make_pass_lower_cf): ...new function.
19675 (pass_refactor_eh): Replace declaration with that of...
19676 (make_pass_refactor_eh): ...new function.
19677 (pass_lower_eh): Replace declaration with that of...
19678 (make_pass_lower_eh): ...new function.
19679 (pass_lower_eh_dispatch): Replace declaration with that of...
19680 (make_pass_lower_eh_dispatch): ...new function.
19681 (pass_lower_resx): Replace declaration with that of...
19682 (make_pass_lower_resx): ...new function.
19683 (pass_build_cfg): Replace declaration with that of...
19684 (make_pass_build_cfg): ...new function.
19685 (pass_early_tree_profile): Replace declaration with that of...
19686 (make_pass_early_tree_profile): ...new function.
19687 (pass_cleanup_eh): Replace declaration with that of...
19688 (make_pass_cleanup_eh): ...new function.
19689 (pass_sra): Replace declaration with that of...
19690 (make_pass_sra): ...new function.
19691 (pass_sra_early): Replace declaration with that of...
19692 (make_pass_sra_early): ...new function.
19693 (pass_early_ipa_sra): Replace declaration with that of...
19694 (make_pass_early_ipa_sra): ...new function.
19695 (pass_tail_recursion): Replace declaration with that of...
19696 (make_pass_tail_recursion): ...new function.
19697 (pass_tail_calls): Replace declaration with that of...
19698 (make_pass_tail_calls): ...new function.
19699 (pass_tree_loop): Replace declaration with that of...
19700 (make_pass_tree_loop): ...new function.
19701 (pass_tree_loop_init): Replace declaration with that of...
19702 (make_pass_tree_loop_init): ...new function.
19703 (pass_lim): Replace declaration with that of...
19704 (make_pass_lim): ...new function.
19705 (pass_tree_unswitch): Replace declaration with that of...
19706 (make_pass_tree_unswitch): ...new function.
19707 (pass_predcom): Replace declaration with that of...
19708 (make_pass_predcom): ...new function.
19709 (pass_iv_canon): Replace declaration with that of...
19710 (make_pass_iv_canon): ...new function.
19711 (pass_scev_cprop): Replace declaration with that of...
19712 (make_pass_scev_cprop): ...new function.
19713 (pass_empty_loop): Replace declaration with that of...
19714 (make_pass_empty_loop): ...new function.
19715 (pass_record_bounds): Replace declaration with that of...
19716 (make_pass_record_bounds): ...new function.
19717 (pass_graphite): Replace declaration with that of...
19718 (make_pass_graphite): ...new function.
19719 (pass_graphite_transforms): Replace declaration with that of...
19720 (make_pass_graphite_transforms): ...new function.
19721 (pass_if_conversion): Replace declaration with that of...
19722 (make_pass_if_conversion): ...new function.
19723 (pass_loop_distribution): Replace declaration with that of...
19724 (make_pass_loop_distribution): ...new function.
19725 (pass_vectorize): Replace declaration with that of...
19726 (make_pass_vectorize): ...new function.
19727 (pass_slp_vectorize): Replace declaration with that of...
19728 (make_pass_slp_vectorize): ...new function.
19729 (pass_complete_unroll): Replace declaration with that of...
19730 (make_pass_complete_unroll): ...new function.
19731 (pass_complete_unrolli): Replace declaration with that of...
19732 (make_pass_complete_unrolli): ...new function.
19733 (pass_parallelize_loops): Replace declaration with that of...
19734 (make_pass_parallelize_loops): ...new function.
19735 (pass_loop_prefetch): Replace declaration with that of...
19736 (make_pass_loop_prefetch): ...new function.
19737 (pass_iv_optimize): Replace declaration with that of...
19738 (make_pass_iv_optimize): ...new function.
19739 (pass_tree_loop_done): Replace declaration with that of...
19740 (make_pass_tree_loop_done): ...new function.
19741 (pass_ch): Replace declaration with that of...
19742 (make_pass_ch): ...new function.
19743 (pass_ccp): Replace declaration with that of...
19744 (make_pass_ccp): ...new function.
19745 (pass_phi_only_cprop): Replace declaration with that of...
19746 (make_pass_phi_only_cprop): ...new function.
19747 (pass_build_ssa): Replace declaration with that of...
19748 (make_pass_build_ssa): ...new function.
19749 (pass_build_alias): Replace declaration with that of...
19750 (make_pass_build_alias): ...new function.
19751 (pass_build_ealias): Replace declaration with that of...
19752 (make_pass_build_ealias): ...new function.
19753 (pass_dominator): Replace declaration with that of...
19754 (make_pass_dominator): ...new function.
19755 (pass_dce): Replace declaration with that of...
19756 (make_pass_dce): ...new function.
19757 (pass_dce_loop): Replace declaration with that of...
19758 (make_pass_dce_loop): ...new function.
19759 (pass_cd_dce): Replace declaration with that of...
19760 (make_pass_cd_dce): ...new function.
19761 (pass_call_cdce): Replace declaration with that of...
19762 (make_pass_call_cdce): ...new function.
19763 (pass_merge_phi): Replace declaration with that of...
19764 (make_pass_merge_phi): ...new function.
19765 (pass_split_crit_edges): Replace declaration with that of...
19766 (make_pass_split_crit_edges): ...new function.
19767 (pass_pre): Replace declaration with that of...
19768 (make_pass_pre): ...new function.
19769 (pass_profile): Replace declaration with that of...
19770 (make_pass_profile): ...new function.
19771 (pass_strip_predict_hints): Replace declaration with that of...
19772 (make_pass_strip_predict_hints): ...new function.
19773 (pass_lower_complex_O0): Replace declaration with that of...
19774 (make_pass_lower_complex_O0): ...new function.
19775 (pass_lower_complex): Replace declaration with that of...
19776 (make_pass_lower_complex): ...new function.
19777 (pass_lower_vector): Replace declaration with that of...
19778 (make_pass_lower_vector): ...new function.
19779 (pass_lower_vector_ssa): Replace declaration with that of...
19780 (make_pass_lower_vector_ssa): ...new function.
19781 (pass_lower_omp): Replace declaration with that of...
19782 (make_pass_lower_omp): ...new function.
19783 (pass_diagnose_omp_blocks): Replace declaration with that of...
19784 (make_pass_diagnose_omp_blocks): ...new function.
19785 (pass_expand_omp): Replace declaration with that of...
19786 (make_pass_expand_omp): ...new function.
19787 (pass_expand_omp_ssa): Replace declaration with that of...
19788 (make_pass_expand_omp_ssa): ...new function.
19789 (pass_object_sizes): Replace declaration with that of...
19790 (make_pass_object_sizes): ...new function.
19791 (pass_strlen): Replace declaration with that of...
19792 (make_pass_strlen): ...new function.
19793 (pass_fold_builtins): Replace declaration with that of...
19794 (make_pass_fold_builtins): ...new function.
19795 (pass_stdarg): Replace declaration with that of...
19796 (make_pass_stdarg): ...new function.
19797 (pass_early_warn_uninitialized): Replace declaration with that of...
19798 (make_pass_early_warn_uninitialized): ...new function.
19799 (pass_late_warn_uninitialized): Replace declaration with that of...
19800 (make_pass_late_warn_uninitialized): ...new function.
19801 (pass_cse_reciprocals): Replace declaration with that of...
19802 (make_pass_cse_reciprocals): ...new function.
19803 (pass_cse_sincos): Replace declaration with that of...
19804 (make_pass_cse_sincos): ...new function.
19805 (pass_optimize_bswap): Replace declaration with that of...
19806 (make_pass_optimize_bswap): ...new function.
19807 (pass_optimize_widening_mul): Replace declaration with that of...
19808 (make_pass_optimize_widening_mul): ...new function.
19809 (pass_warn_function_return): Replace declaration with that of...
19810 (make_pass_warn_function_return): ...new function.
19811 (pass_warn_function_noreturn): Replace declaration with that of...
19812 (make_pass_warn_function_noreturn): ...new function.
19813 (pass_cselim): Replace declaration with that of...
19814 (make_pass_cselim): ...new function.
19815 (pass_phiopt): Replace declaration with that of...
19816 (make_pass_phiopt): ...new function.
19817 (pass_forwprop): Replace declaration with that of...
19818 (make_pass_forwprop): ...new function.
19819 (pass_phiprop): Replace declaration with that of...
19820 (make_pass_phiprop): ...new function.
19821 (pass_tree_ifcombine): Replace declaration with that of...
19822 (make_pass_tree_ifcombine): ...new function.
19823 (pass_dse): Replace declaration with that of...
19824 (make_pass_dse): ...new function.
19825 (pass_nrv): Replace declaration with that of...
19826 (make_pass_nrv): ...new function.
19827 (pass_rename_ssa_copies): Replace declaration with that of...
19828 (make_pass_rename_ssa_copies): ...new function.
19829 (pass_sink_code): Replace declaration with that of...
19830 (make_pass_sink_code): ...new function.
19831 (pass_fre): Replace declaration with that of...
19832 (make_pass_fre): ...new function.
19833 (pass_check_data_deps): Replace declaration with that of...
19834 (make_pass_check_data_deps): ...new function.
19835 (pass_copy_prop): Replace declaration with that of...
19836 (make_pass_copy_prop): ...new function.
19837 (pass_vrp): Replace declaration with that of...
19838 (make_pass_vrp): ...new function.
19839 (pass_uncprop): Replace declaration with that of...
19840 (make_pass_uncprop): ...new function.
19841 (pass_return_slot): Replace declaration with that of...
19842 (make_pass_return_slot): ...new function.
19843 (pass_reassoc): Replace declaration with that of...
19844 (make_pass_reassoc): ...new function.
19845 (pass_rebuild_cgraph_edges): Replace declaration with that of...
19846 (make_pass_rebuild_cgraph_edges): ...new function.
19847 (pass_remove_cgraph_callee_edges): Replace declaration with that of...
19848 (make_pass_remove_cgraph_callee_edges): ...new function.
19849 (pass_build_cgraph_edges): Replace declaration with that of...
19850 (make_pass_build_cgraph_edges): ...new function.
19851 (pass_local_pure_const): Replace declaration with that of...
19852 (make_pass_local_pure_const): ...new function.
19853 (pass_tracer): Replace declaration with that of...
19854 (make_pass_tracer): ...new function.
19855 (pass_warn_unused_result): Replace declaration with that of...
19856 (make_pass_warn_unused_result): ...new function.
19857 (pass_diagnose_tm_blocks): Replace declaration with that of...
19858 (make_pass_diagnose_tm_blocks): ...new function.
19859 (pass_lower_tm): Replace declaration with that of...
19860 (make_pass_lower_tm): ...new function.
19861 (pass_tm_init): Replace declaration with that of...
19862 (make_pass_tm_init): ...new function.
19863 (pass_tm_mark): Replace declaration with that of...
19864 (make_pass_tm_mark): ...new function.
19865 (pass_tm_memopt): Replace declaration with that of...
19866 (make_pass_tm_memopt): ...new function.
19867 (pass_tm_edges): Replace declaration with that of...
19868 (make_pass_tm_edges): ...new function.
19869 (pass_split_functions): Replace declaration with that of...
19870 (make_pass_split_functions): ...new function.
19871 (pass_feedback_split_functions): Replace declaration with that of...
19872 (make_pass_feedback_split_functions): ...new function.
19873 (pass_strength_reduction): Replace declaration with that of...
19874 (make_pass_strength_reduction): ...new function.
19875 (pass_ipa_lower_emutls): Replace declaration with that of...
19876 (make_pass_ipa_lower_emutls): ...new function.
19877 (pass_ipa_function_and_variable_visibility): Replace declaration with
19879 (make_pass_ipa_function_and_variable_visibility): ...new function.
19880 (pass_ipa_tree_profile): Replace declaration with that of...
19881 (make_pass_ipa_tree_profile): ...new function.
19882 (pass_early_local_passes): Replace declaration with that of...
19883 (make_pass_early_local_passes): ...new function.
19884 (pass_ipa_whole_program_visibility): Replace declaration with that
19886 (make_pass_ipa_whole_program_visibility): ...new function.
19887 (pass_ipa_lto_gimple_out): Replace declaration with that of...
19888 (make_pass_ipa_lto_gimple_out): ...new function.
19889 (pass_ipa_increase_alignment): Replace declaration with that of...
19890 (make_pass_ipa_increase_alignment): ...new function.
19891 (pass_ipa_inline): Replace declaration with that of...
19892 (make_pass_ipa_inline): ...new function.
19893 (pass_ipa_free_lang_data): Replace declaration with that of...
19894 (make_pass_ipa_free_lang_data): ...new function.
19895 (pass_ipa_free_inline_summary): Replace declaration with that of...
19896 (make_pass_ipa_free_inline_summary): ...new function.
19897 (pass_ipa_cp): Replace declaration with that of...
19898 (make_pass_ipa_cp): ...new function.
19899 (pass_ipa_reference): Replace declaration with that of...
19900 (make_pass_ipa_reference): ...new function.
19901 (pass_ipa_pure_const): Replace declaration with that of...
19902 (make_pass_ipa_pure_const): ...new function.
19903 (pass_ipa_pta): Replace declaration with that of...
19904 (make_pass_ipa_pta): ...new function.
19905 (pass_ipa_lto_finish_out): Replace declaration with that of...
19906 (make_pass_ipa_lto_finish_out): ...new function.
19907 (pass_ipa_tm): Replace declaration with that of...
19908 (make_pass_ipa_tm): ...new function.
19909 (pass_ipa_profile): Replace declaration with that of...
19910 (make_pass_ipa_profile): ...new function.
19911 (pass_ipa_cdtor_merge): Replace declaration with that of...
19912 (make_pass_ipa_cdtor_merge): ...new function.
19913 (pass_cleanup_cfg_post_optimizing): Replace declaration with that
19915 (make_pass_cleanup_cfg_post_optimizing): ...new function.
19916 (pass_init_datastructures): Replace declaration with that of...
19917 (make_pass_init_datastructures): ...new function.
19918 (pass_fixup_cfg): Replace declaration with that of...
19919 (make_pass_fixup_cfg): ...new function.
19920 (pass_expand): Replace declaration with that of...
19921 (make_pass_expand): ...new function.
19922 (pass_instantiate_virtual_regs): Replace declaration with that of...
19923 (make_pass_instantiate_virtual_regs): ...new function.
19924 (pass_rtl_fwprop): Replace declaration with that of...
19925 (make_pass_rtl_fwprop): ...new function.
19926 (pass_rtl_fwprop_addr): Replace declaration with that of...
19927 (make_pass_rtl_fwprop_addr): ...new function.
19928 (pass_jump): Replace declaration with that of...
19929 (make_pass_jump): ...new function.
19930 (pass_jump2): Replace declaration with that of...
19931 (make_pass_jump2): ...new function.
19932 (pass_lower_subreg): Replace declaration with that of...
19933 (make_pass_lower_subreg): ...new function.
19934 (pass_cse): Replace declaration with that of...
19935 (make_pass_cse): ...new function.
19936 (pass_fast_rtl_dce): Replace declaration with that of...
19937 (make_pass_fast_rtl_dce): ...new function.
19938 (pass_ud_rtl_dce): Replace declaration with that of...
19939 (make_pass_ud_rtl_dce): ...new function.
19940 (pass_rtl_dce): Replace declaration with that of...
19941 (make_pass_rtl_dce): ...new function.
19942 (pass_rtl_dse1): Replace declaration with that of...
19943 (make_pass_rtl_dse1): ...new function.
19944 (pass_rtl_dse2): Replace declaration with that of...
19945 (make_pass_rtl_dse2): ...new function.
19946 (pass_rtl_dse3): Replace declaration with that of...
19947 (make_pass_rtl_dse3): ...new function.
19948 (pass_rtl_cprop): Replace declaration with that of...
19949 (make_pass_rtl_cprop): ...new function.
19950 (pass_rtl_pre): Replace declaration with that of...
19951 (make_pass_rtl_pre): ...new function.
19952 (pass_rtl_hoist): Replace declaration with that of...
19953 (make_pass_rtl_hoist): ...new function.
19954 (pass_rtl_store_motion): Replace declaration with that of...
19955 (make_pass_rtl_store_motion): ...new function.
19956 (pass_cse_after_global_opts): Replace declaration with that of...
19957 (make_pass_cse_after_global_opts): ...new function.
19958 (pass_rtl_ifcvt): Replace declaration with that of...
19959 (make_pass_rtl_ifcvt): ...new function.
19960 (pass_into_cfg_layout_mode): Replace declaration with that of...
19961 (make_pass_into_cfg_layout_mode): ...new function.
19962 (pass_outof_cfg_layout_mode): Replace declaration with that of...
19963 (make_pass_outof_cfg_layout_mode): ...new function.
19964 (pass_loop2): Replace declaration with that of...
19965 (make_pass_loop2): ...new function.
19966 (pass_rtl_loop_init): Replace declaration with that of...
19967 (make_pass_rtl_loop_init): ...new function.
19968 (pass_rtl_move_loop_invariants): Replace declaration with that of...
19969 (make_pass_rtl_move_loop_invariants): ...new function.
19970 (pass_rtl_unswitch): Replace declaration with that of...
19971 (make_pass_rtl_unswitch): ...new function.
19972 (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
19973 (make_pass_rtl_unroll_and_peel_loops): ...new function.
19974 (pass_rtl_doloop): Replace declaration with that of...
19975 (make_pass_rtl_doloop): ...new function.
19976 (pass_rtl_loop_done): Replace declaration with that of...
19977 (make_pass_rtl_loop_done): ...new function.
19978 (pass_web): Replace declaration with that of...
19979 (make_pass_web): ...new function.
19980 (pass_cse2): Replace declaration with that of...
19981 (make_pass_cse2): ...new function.
19982 (pass_df_initialize_opt): Replace declaration with that of...
19983 (make_pass_df_initialize_opt): ...new function.
19984 (pass_df_initialize_no_opt): Replace declaration with that of...
19985 (make_pass_df_initialize_no_opt): ...new function.
19986 (pass_reginfo_init): Replace declaration with that of...
19987 (make_pass_reginfo_init): ...new function.
19988 (pass_inc_dec): Replace declaration with that of...
19989 (make_pass_inc_dec): ...new function.
19990 (pass_stack_ptr_mod): Replace declaration with that of...
19991 (make_pass_stack_ptr_mod): ...new function.
19992 (pass_initialize_regs): Replace declaration with that of...
19993 (make_pass_initialize_regs): ...new function.
19994 (pass_combine): Replace declaration with that of...
19995 (make_pass_combine): ...new function.
19996 (pass_if_after_combine): Replace declaration with that of...
19997 (make_pass_if_after_combine): ...new function.
19998 (pass_ree): Replace declaration with that of...
19999 (make_pass_ree): ...new function.
20000 (pass_partition_blocks): Replace declaration with that of...
20001 (make_pass_partition_blocks): ...new function.
20002 (pass_match_asm_constraints): Replace declaration with that of...
20003 (make_pass_match_asm_constraints): ...new function.
20004 (pass_regmove): Replace declaration with that of...
20005 (make_pass_regmove): ...new function.
20006 (pass_split_all_insns): Replace declaration with that of...
20007 (make_pass_split_all_insns): ...new function.
20008 (pass_fast_rtl_byte_dce): Replace declaration with that of...
20009 (make_pass_fast_rtl_byte_dce): ...new function.
20010 (pass_lower_subreg2): Replace declaration with that of...
20011 (make_pass_lower_subreg2): ...new function.
20012 (pass_mode_switching): Replace declaration with that of...
20013 (make_pass_mode_switching): ...new function.
20014 (pass_sms): Replace declaration with that of...
20015 (make_pass_sms): ...new function.
20016 (pass_sched): Replace declaration with that of...
20017 (make_pass_sched): ...new function.
20018 (pass_ira): Replace declaration with that of...
20019 (make_pass_ira): ...new function.
20020 (pass_reload): Replace declaration with that of...
20021 (make_pass_reload): ...new function.
20022 (pass_clean_state): Replace declaration with that of...
20023 (make_pass_clean_state): ...new function.
20024 (pass_branch_prob): Replace declaration with that of...
20025 (make_pass_branch_prob): ...new function.
20026 (pass_value_profile_transformations): Replace declaration with that
20028 (make_pass_value_profile_transformations): ...new function.
20029 (pass_postreload_cse): Replace declaration with that of...
20030 (make_pass_postreload_cse): ...new function.
20031 (pass_gcse2): Replace declaration with that of...
20032 (make_pass_gcse2): ...new function.
20033 (pass_split_after_reload): Replace declaration with that of...
20034 (make_pass_split_after_reload): ...new function.
20035 (pass_branch_target_load_optimize1): Replace declaration with that
20037 (make_pass_branch_target_load_optimize1): ...new function.
20038 (pass_thread_prologue_and_epilogue): Replace declaration with that
20040 (make_pass_thread_prologue_and_epilogue): ...new function.
20041 (pass_stack_adjustments): Replace declaration with that of...
20042 (make_pass_stack_adjustments): ...new function.
20043 (pass_peephole2): Replace declaration with that of...
20044 (make_pass_peephole2): ...new function.
20045 (pass_if_after_reload): Replace declaration with that of...
20046 (make_pass_if_after_reload): ...new function.
20047 (pass_regrename): Replace declaration with that of...
20048 (make_pass_regrename): ...new function.
20049 (pass_cprop_hardreg): Replace declaration with that of...
20050 (make_pass_cprop_hardreg): ...new function.
20051 (pass_reorder_blocks): Replace declaration with that of...
20052 (make_pass_reorder_blocks): ...new function.
20053 (pass_branch_target_load_optimize2): Replace declaration with that
20055 (make_pass_branch_target_load_optimize2): ...new function.
20056 (pass_leaf_regs): Replace declaration with that of...
20057 (make_pass_leaf_regs): ...new function.
20058 (pass_split_before_sched2): Replace declaration with that of...
20059 (make_pass_split_before_sched2): ...new function.
20060 (pass_compare_elim_after_reload): Replace declaration with that of...
20061 (make_pass_compare_elim_after_reload): ...new function.
20062 (pass_sched2): Replace declaration with that of...
20063 (make_pass_sched2): ...new function.
20064 (pass_stack_regs): Replace declaration with that of...
20065 (make_pass_stack_regs): ...new function.
20066 (pass_stack_regs_run): Replace declaration with that of...
20067 (make_pass_stack_regs_run): ...new function.
20068 (pass_df_finish): Replace declaration with that of...
20069 (make_pass_df_finish): ...new function.
20070 (pass_compute_alignments): Replace declaration with that of...
20071 (make_pass_compute_alignments): ...new function.
20072 (pass_duplicate_computed_gotos): Replace declaration with that of...
20073 (make_pass_duplicate_computed_gotos): ...new function.
20074 (pass_variable_tracking): Replace declaration with that of...
20075 (make_pass_variable_tracking): ...new function.
20076 (pass_free_cfg): Replace declaration with that of...
20077 (make_pass_free_cfg): ...new function.
20078 (pass_machine_reorg): Replace declaration with that of...
20079 (make_pass_machine_reorg): ...new function.
20080 (pass_cleanup_barriers): Replace declaration with that of...
20081 (make_pass_cleanup_barriers): ...new function.
20082 (pass_delay_slots): Replace declaration with that of...
20083 (make_pass_delay_slots): ...new function.
20084 (pass_split_for_shorten_branches): Replace declaration with that of...
20085 (make_pass_split_for_shorten_branches): ...new function.
20086 (pass_split_before_regstack): Replace declaration with that of...
20087 (make_pass_split_before_regstack): ...new function.
20088 (pass_convert_to_eh_region_ranges): Replace declaration with that
20090 (make_pass_convert_to_eh_region_ranges): ...new function.
20091 (pass_shorten_branches): Replace declaration with that of...
20092 (make_pass_shorten_branches): ...new function.
20093 (pass_set_nothrow_function_flags): Replace declaration with that of...
20094 (make_pass_set_nothrow_function_flags): ...new function.
20095 (pass_dwarf2_frame): Replace declaration with that of...
20096 (make_pass_dwarf2_frame): ...new function.
20097 (pass_final): Replace declaration with that of...
20098 (make_pass_final): ...new function.
20099 (pass_rtl_seqabstr): Replace declaration with that of...
20100 (make_pass_rtl_seqabstr): ...new function.
20101 (pass_release_ssa_names): Replace declaration with that of...
20102 (make_pass_release_ssa_names): ...new function.
20103 (pass_early_inline): Replace declaration with that of...
20104 (make_pass_early_inline): ...new function.
20105 (pass_inline_parameters): Replace declaration with that of...
20106 (make_pass_inline_parameters): ...new function.
20107 (pass_update_address_taken): Replace declaration with that of...
20108 (make_pass_update_address_taken): ...new function.
20109 (pass_convert_switch): Replace declaration with that of...
20110 (make_pass_convert_switch): ...new function.
20111 * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
20112 to a subclass of simple_ipa_opt_pass along with...
20113 (pass_data_ipa_tree_profile): ...new pass_data instance and...
20114 (make_pass_ipa_tree_profile): ...new function.
20115 * tree-sra.c (pass_sra_early): Convert from a global struct to a
20116 subclass of gimple_opt_pass along with...
20117 (pass_data_sra_early): ...new pass_data instance and...
20118 (make_pass_sra_early): ...new function.
20119 (pass_sra): Convert from a global struct to a subclass of
20120 gimple_opt_pass along with...
20121 (pass_data_sra): ...new pass_data instance and...
20122 (make_pass_sra): ...new function.
20123 (pass_early_ipa_sra): Convert from a global struct to a subclass of
20124 gimple_opt_pass along with...
20125 (pass_data_early_ipa_sra): ...new pass_data instance and...
20126 (make_pass_early_ipa_sra): ...new function.
20127 * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
20128 subclass of gimple_opt_pass along with...
20129 (pass_data_ccp): ...new pass_data instance and...
20130 (make_pass_ccp): ...new function.
20131 (pass_fold_builtins): Convert from a global struct to a subclass of
20132 gimple_opt_pass along with...
20133 (pass_data_fold_builtins): ...new pass_data instance and...
20134 (make_pass_fold_builtins): ...new function.
20135 * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
20136 subclass of gimple_opt_pass along with...
20137 (pass_data_copy_prop): ...new pass_data instance and...
20138 (make_pass_copy_prop): ...new function.
20139 * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
20140 global struct to a subclass of gimple_opt_pass along with...
20141 (pass_data_rename_ssa_copies): ...new pass_data instance and...
20142 (make_pass_rename_ssa_copies): ...new function.
20143 * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
20144 subclass of gimple_opt_pass along with...
20145 (pass_data_dce): ...new pass_data instance and...
20146 (make_pass_dce): ...new function.
20147 (pass_dce_loop): Convert from a global struct to a subclass of
20148 gimple_opt_pass along with...
20149 (pass_data_dce_loop): ...new pass_data instance and...
20150 (make_pass_dce_loop): ...new function.
20151 (pass_cd_dce): Convert from a global struct to a subclass of
20152 gimple_opt_pass along with...
20153 (pass_data_cd_dce): ...new pass_data instance and...
20154 (make_pass_cd_dce): ...new function.
20155 * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
20156 subclass of gimple_opt_pass along with...
20157 (pass_data_dominator): ...new pass_data instance and...
20158 (make_pass_dominator): ...new function.
20159 (pass_phi_only_cprop): Convert from a global struct to a subclass of
20160 gimple_opt_pass along with...
20161 (pass_data_phi_only_cprop): ...new pass_data instance and...
20162 (make_pass_phi_only_cprop): ...new function.
20163 * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
20164 subclass of gimple_opt_pass along with...
20165 (pass_data_dse): ...new pass_data instance and...
20166 (make_pass_dse): ...new function.
20167 * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
20168 a subclass of gimple_opt_pass along with...
20169 (pass_data_forwprop): ...new pass_data instance and...
20170 (make_pass_forwprop): ...new function.
20171 * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
20172 struct to a subclass of gimple_opt_pass along with...
20173 (pass_data_tree_ifcombine): ...new pass_data instance and...
20174 (make_pass_tree_ifcombine): ...new function.
20175 * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
20176 subclass of gimple_opt_pass along with...
20177 (pass_data_ch): ...new pass_data instance and...
20178 (make_pass_ch): ...new function.
20179 * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
20180 subclass of gimple_opt_pass along with...
20181 (pass_data_tree_loop): ...new pass_data instance and...
20182 (make_pass_tree_loop): ...new function.
20183 (pass_tree_loop_init): Convert from a global struct to a subclass of
20184 gimple_opt_pass along with...
20185 (pass_data_tree_loop_init): ...new pass_data instance and...
20186 (make_pass_tree_loop_init): ...new function.
20187 (pass_lim): Convert from a global struct to a subclass of
20188 gimple_opt_pass along with...
20189 (pass_data_lim): ...new pass_data instance and...
20190 (make_pass_lim): ...new function.
20191 (pass_tree_unswitch): Convert from a global struct to a subclass of
20192 gimple_opt_pass along with...
20193 (pass_data_tree_unswitch): ...new pass_data instance and...
20194 (make_pass_tree_unswitch): ...new function.
20195 (pass_predcom): Convert from a global struct to a subclass of
20196 gimple_opt_pass along with...
20197 (pass_data_predcom): ...new pass_data instance and...
20198 (make_pass_predcom): ...new function.
20199 (pass_vectorize): Convert from a global struct to a subclass of
20200 gimple_opt_pass along with...
20201 (pass_data_vectorize): ...new pass_data instance and...
20202 (make_pass_vectorize): ...new function.
20203 (pass_graphite): Convert from a global struct to a subclass of
20204 gimple_opt_pass along with...
20205 (pass_data_graphite): ...new pass_data instance and...
20206 (make_pass_graphite): ...new function.
20207 (pass_graphite_transforms): Convert from a global struct to a subclass
20208 of gimple_opt_pass along with...
20209 (pass_data_graphite_transforms): ...new pass_data instance and...
20210 (make_pass_graphite_transforms): ...new function.
20211 (pass_check_data_deps): Convert from a global struct to a subclass of
20212 gimple_opt_pass along with...
20213 (pass_data_check_data_deps): ...new pass_data instance and...
20214 (make_pass_check_data_deps): ...new function.
20215 (pass_iv_canon): Convert from a global struct to a subclass of
20216 gimple_opt_pass along with...
20217 (pass_data_iv_canon): ...new pass_data instance and...
20218 (make_pass_iv_canon): ...new function.
20219 (pass_scev_cprop): Convert from a global struct to a subclass of
20220 gimple_opt_pass along with...
20221 (pass_data_scev_cprop): ...new pass_data instance and...
20222 (make_pass_scev_cprop): ...new function.
20223 (pass_record_bounds): Convert from a global struct to a subclass of
20224 gimple_opt_pass along with...
20225 (pass_data_record_bounds): ...new pass_data instance and...
20226 (make_pass_record_bounds): ...new function.
20227 (pass_complete_unroll): Convert from a global struct to a subclass of
20228 gimple_opt_pass along with...
20229 (pass_data_complete_unroll): ...new pass_data instance and...
20230 (make_pass_complete_unroll): ...new function.
20231 (pass_complete_unrolli): Convert from a global struct to a subclass of
20232 gimple_opt_pass along with...
20233 (pass_data_complete_unrolli): ...new pass_data instance and...
20234 (make_pass_complete_unrolli): ...new function.
20235 (pass_parallelize_loops): Convert from a global struct to a subclass
20236 of gimple_opt_pass along with...
20237 (pass_data_parallelize_loops): ...new pass_data instance and...
20238 (make_pass_parallelize_loops): ...new function.
20239 (pass_loop_prefetch): Convert from a global struct to a subclass of
20240 gimple_opt_pass along with...
20241 (pass_data_loop_prefetch): ...new pass_data instance and...
20242 (make_pass_loop_prefetch): ...new function.
20243 (pass_iv_optimize): Convert from a global struct to a subclass of
20244 gimple_opt_pass along with...
20245 (pass_data_iv_optimize): ...new pass_data instance and...
20246 (make_pass_iv_optimize): ...new function.
20247 (pass_tree_loop_done): Convert from a global struct to a subclass of
20248 gimple_opt_pass along with...
20249 (pass_data_tree_loop_done): ...new pass_data instance and...
20250 (make_pass_tree_loop_done): ...new function.
20251 * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
20252 struct to a subclass of gimple_opt_pass along with...
20253 (pass_data_cse_reciprocals): ...new pass_data instance and...
20254 (make_pass_cse_reciprocals): ...new function.
20255 (pass_cse_sincos): Convert from a global struct to a subclass of
20256 gimple_opt_pass along with...
20257 (pass_data_cse_sincos): ...new pass_data instance and...
20258 (make_pass_cse_sincos): ...new function.
20259 (pass_optimize_bswap): Convert from a global struct to a subclass of
20260 gimple_opt_pass along with...
20261 (pass_data_optimize_bswap): ...new pass_data instance and...
20262 (make_pass_optimize_bswap): ...new function.
20263 (pass_optimize_widening_mul): Convert from a global struct to a
20264 subclass of gimple_opt_pass along with...
20265 (pass_data_optimize_widening_mul): ...new pass_data instance and...
20266 (make_pass_optimize_widening_mul): ...new function.
20267 * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
20268 subclass of gimple_opt_pass along with...
20269 (pass_data_phiopt): ...new pass_data instance and...
20270 (make_pass_phiopt): ...new function.
20271 (pass_cselim): Convert from a global struct to a subclass of
20272 gimple_opt_pass along with...
20273 (pass_data_cselim): ...new pass_data instance and...
20274 (make_pass_cselim): ...new function.
20275 * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
20276 subclass of gimple_opt_pass along with...
20277 (pass_data_phiprop): ...new pass_data instance and...
20278 (make_pass_phiprop): ...new function.
20279 * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
20280 subclass of gimple_opt_pass along with...
20281 (pass_data_pre): ...new pass_data instance and...
20282 (make_pass_pre): ...new function.
20283 (pass_fre): Convert from a global struct to a subclass of
20284 gimple_opt_pass along with...
20285 (pass_data_fre): ...new pass_data instance and...
20286 (make_pass_fre): ...new function.
20287 * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
20288 subclass of gimple_opt_pass along with...
20289 (pass_data_reassoc): ...new pass_data instance and...
20290 (make_pass_reassoc): ...new function.
20291 * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
20292 subclass of gimple_opt_pass along with...
20293 (pass_data_sink_code): ...new pass_data instance and...
20294 (make_pass_sink_code): ...new function.
20295 * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
20296 subclass of gimple_opt_pass along with...
20297 (pass_data_strlen): ...new pass_data instance and...
20298 (make_pass_strlen): ...new function.
20299 * tree-ssa-structalias.c (pass_build_alias): Convert from a global
20300 struct to a subclass of gimple_opt_pass along with...
20301 (pass_data_build_alias): ...new pass_data instance and...
20302 (make_pass_build_alias): ...new function.
20303 (pass_build_ealias): Convert from a global struct to a subclass of
20304 gimple_opt_pass along with...
20305 (pass_data_build_ealias): ...new pass_data instance and...
20306 (make_pass_build_ealias): ...new function.
20307 (pass_ipa_pta): Convert from a global struct to a subclass of
20308 simple_ipa_opt_pass along with...
20309 (pass_data_ipa_pta): ...new pass_data instance and...
20310 (make_pass_ipa_pta): ...new function.
20311 * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
20312 subclass of gimple_opt_pass along with...
20313 (pass_data_uncprop): ...new pass_data instance and...
20314 (make_pass_uncprop): ...new function.
20315 * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
20316 global struct to a subclass of gimple_opt_pass along with...
20317 (pass_data_late_warn_uninitialized): ...new pass_data instance and...
20318 (make_pass_late_warn_uninitialized): ...new function.
20319 * tree-ssa.c (pass_init_datastructures): Convert from a global struct
20320 to a subclass of gimple_opt_pass along with...
20321 (pass_data_init_datastructures): ...new pass_data instance and...
20322 (make_pass_init_datastructures): ...new function.
20323 (pass_early_warn_uninitialized): Convert from a global struct to a
20324 subclass of gimple_opt_pass along with...
20325 (pass_data_early_warn_uninitialized): ...new pass_data instance and...
20326 (make_pass_early_warn_uninitialized): ...new function.
20327 (pass_update_address_taken): Convert from a global struct to a
20328 subclass of gimple_opt_pass along with...
20329 (pass_data_update_address_taken): ...new pass_data instance and...
20330 (make_pass_update_address_taken): ...new function.
20331 * tree-ssanames.c (pass_release_ssa_names): Convert from a global
20332 struct to a subclass of gimple_opt_pass along with...
20333 (pass_data_release_ssa_names): ...new pass_data instance and...
20334 (make_pass_release_ssa_names): ...new function.
20335 * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
20336 subclass of gimple_opt_pass along with...
20337 (pass_data_stdarg): ...new pass_data instance and...
20338 (make_pass_stdarg): ...new function.
20339 * tree-switch-conversion.c (pass_convert_switch): Convert from a
20340 global struct to a subclass of gimple_opt_pass along with...
20341 (pass_data_convert_switch): ...new pass_data instance and...
20342 (make_pass_convert_switch): ...new function.
20343 * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
20344 to a subclass of gimple_opt_pass along with...
20345 (pass_data_tail_recursion): ...new pass_data instance and...
20346 (make_pass_tail_recursion): ...new function.
20347 (pass_tail_calls): Convert from a global struct to a subclass of
20348 gimple_opt_pass along with...
20349 (pass_data_tail_calls): ...new pass_data instance and...
20350 (make_pass_tail_calls): ...new function.
20351 * tree-vect-generic.c (pass_lower_vector): Convert from a global
20352 struct to a subclass of gimple_opt_pass along with...
20353 (pass_data_lower_vector): ...new pass_data instance and...
20354 (make_pass_lower_vector): ...new function.
20355 (pass_lower_vector_ssa): Convert from a global struct to a subclass of
20356 gimple_opt_pass along with...
20357 (pass_data_lower_vector_ssa): ...new pass_data instance and...
20358 (make_pass_lower_vector_ssa): ...new function.
20359 * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
20360 to a subclass of gimple_opt_pass along with...
20361 (pass_data_slp_vectorize): ...new pass_data instance and...
20362 (make_pass_slp_vectorize): ...new function.
20363 (pass_ipa_increase_alignment): Convert from a global struct to a
20364 subclass of simple_ipa_opt_pass along with...
20365 (pass_data_ipa_increase_alignment): ...new pass_data instance and...
20366 (make_pass_ipa_increase_alignment): ...new function.
20367 * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
20368 gimple_opt_pass along with...
20369 (pass_data_vrp): ...new pass_data instance and...
20370 (make_pass_vrp): ...new function.
20371 * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
20372 subclass of simple_ipa_opt_pass along with...
20373 (pass_data_ipa_free_lang_data): ...new pass_data instance and...
20374 (make_pass_ipa_free_lang_data): ...new function.
20375 * tsan.c (pass_tsan): Convert from a global struct to a subclass of
20376 gimple_opt_pass along with...
20377 (pass_data_tsan): ...new pass_data instance and...
20378 (make_pass_tsan): ...new function.
20379 (pass_tsan_O0): Convert from a global struct to a subclass of
20380 gimple_opt_pass along with...
20381 (pass_data_tsan_O0): ...new pass_data instance and...
20382 (make_pass_tsan_O0): ...new function.
20383 * var-tracking.c (pass_variable_tracking): Convert from a global
20384 struct to a subclass of rtl_opt_pass along with...
20385 (pass_data_variable_tracking): ...new pass_data instance and...
20386 (make_pass_variable_tracking): ...new function.
20387 * web.c (pass_web): Convert from a global struct to a subclass of
20388 rtl_opt_pass along with...
20389 (pass_data_web): ...new pass_data instance and...
20390 (make_pass_web): ...new function.
20391 * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
20392 declaration with that of...
20393 (make_pass_mode_switch_use): ...new function.
20394 (pass_resolve_sw_modes): Replace declaration with that of...
20395 (make_pass_resolve_sw_modes): ...new function.
20396 * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
20397 from a global struct to a subclass of rtl_opt_pass along with...
20398 (pass_data_mode_switch_use): ...new pass_data instance and...
20399 (make_pass_mode_switch_use): ...new function.
20400 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
20401 from a global struct to a subclass of rtl_opt_pass along with...
20402 (pass_data_resolve_sw_modes): ...new pass_data instance and...
20403 (make_pass_resolve_sw_modes): ...new function.
20404 * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
20405 struct to a subclass of rtl_opt_pass along with...
20406 (pass_data_insert_vzeroupper): ...new pass_data instance and...
20407 (make_pass_insert_vzeroupper): ...new function.
20408 * config/sparc/sparc.c (pass_work_around_errata): Convert from a
20409 global struct to a subclass of rtl_opt_pass along with...
20410 (pass_data_work_around_errata): ...new pass_data instance and...
20411 (make_pass_work_around_errata): ...new function.
20412 * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
20413 struct to a subclass of rtl_opt_pass along with...
20414 (pass_data_mips_machine_reorg2): ...new pass_data instance and...
20415 (make_pass_mips_machine_reorg2): ...new function.
20417 2013-08-05 David Malcolm <dmalcolm@redhat.com>
20419 * passes.c (pass_manager::operator new): New.
20421 2013-08-05 David Malcolm <dmalcolm@redhat.com>
20423 Handwritten part of conversion of passes to C++ classes.
20425 * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
20426 (toplev.o): Add dep on PASS_MANAGER_H.
20427 * cgraphunit.c (cgraph_process_new_functions): Rework invocation
20428 of early local pases to reflect this moving from a global to a
20429 member of gcc::pass_manager.
20430 (cgraph_add_new_function): Likewise.
20431 * lto-cgraph.c (lto_output_node): Update for conversion of
20432 struct ipa_opt_pass_d to a C++ subclass of opt_pass.
20433 * passes.c (opt_pass::clone): New.
20434 (opt_pass::gate): New.
20435 (opt_pass::execute): New.
20436 (opt_pass::opt_pass): New.
20437 (pass_manager::execute_early_local_passes): New.
20438 (pass_manager::execute_pass_mode_switching): new.
20439 (finish_optimization_passes): Convert to...
20440 (pass_manager::finish_optimization_passes): ...this.
20441 (finish_optimization_passes): Update for conversion of passes to
20443 (register_dump_files_1): Use has_gate since we cannot portably
20444 check a vtable entry against NULL.
20445 (dump_one_pass): Likewise.
20446 (ipa_write_summaries_2): Likewise.
20447 (ipa_write_optimization_summaries_1): Likewise.
20448 (ipa_read_summaries_1): Likewise.
20449 (ipa_read_optimization_summaries_1): Likewise.
20450 (execute_ipa_stmt_fixups): Likewise.
20451 (pass_manager::pass_manager): Rewrite pass-creation, invoking
20452 pass-creation functions rather than wiring up globals, and
20453 storing the results in fields of pass_manager generated using
20454 pass-instances.def.
20455 (pass_manager::dump_profile_report): Update for conversion of
20456 passes to C++ classes.
20457 (pass_manager::execute_ipa_summary_passes): Likewise.
20458 (execute_one_ipa_transform_pass): Likewise.
20459 (execute_one_pass): Use has_gate and has_execute since we cannot
20460 portably check a vtable entry against NULL.
20461 * pass_manager.h (pass_manager::finish_optimization_passes): New.
20462 (pass_manager): Use pass-instances.def to add fields for the
20463 various pass instances.
20464 * toplev.c (finalize): Update for move of
20465 finish_optimization_passes to a method of gcc::pass_manager.
20466 * toplev.h (finish_optimization_passes): Move to method of class
20468 * tree-pass.h (struct pass_data): New.
20469 (opt_pass): Convert to C++ class, make it a subclass of pass_data.
20470 (opt_pass::gate): Convert to virtual function.
20471 (opt_pass::~opt_pass): New.
20472 (opt_pass::clone): New.
20473 (opt_pass::execute): Convert to virtual function.
20474 (opt_pass::opt_pass): New.
20475 (opt_pass::ctxt_): new.
20476 (gimple_opt_pass): Convert to subclass of opt_pass.
20477 (gimple_opt_pass::gimple_opt_pass): New.
20478 (rtl_opt_pass): Convert to subclass of opt_pass.
20479 (rtl_opt_pass::rtl_opt_pass): New.
20480 (ipa_opt_pass_d): Convert to subclass of opt_pass.
20481 (ipa_opt_pass_d::ipa_opt_pass_d): New.
20482 (simple_ipa_opt_pass): Convert to subclass of opt_pass.
20483 (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
20484 * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
20485 invocation of pass_mode_switching to reflect this moving from a
20486 global to a member of gcc::pass_manager.
20487 (ix86_option_override): Rework how pass_insert_vzeroupper is
20488 added to the pass_manager to reflect autogenerated changes.
20489 * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
20491 2013-08-05 Richard Earnshaw <rearnsha@arm.com>
20493 PR rtl-optimization/57708
20494 * recog.c (peep2_find_free_register): Validate all regs in a
20497 2013-08-05 Jan Hubicka <jh@suse.cz>
20500 * cgraph.c (verify_cgraph_node): Accept local flags from other
20502 * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
20503 (function_and_variable_visibility): Likewise.
20504 * trans-mem.c (ipa_tm_create_version): TM versions are not local.
20506 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
20508 * graph.c (init_graph_slim_pretty_print): Remove.
20509 (print_graph_cfg): Do not call it. Use local pretty printer.
20510 (start_graph_dump): Likewise.
20512 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
20514 * gimple-pretty-print.c (buffer): Remove.
20515 (initialized): Likewise.
20516 (maybe_init_pretty_print): Likewise.
20517 (print_gimple_stmt): Do not call it. Use non-static local
20518 pretty_printer variable.
20519 (print_gimple_expr): Likewise.
20520 (print_gimple_seq): Likewise.
20521 (gimple_dump_bb): Likewise.
20523 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
20525 * asan.c (asan_pp): Remove.
20526 (asan_pp_initialized): Likewise.
20527 (asan_pp_initialize): Likewise.
20528 (asan_pp_string): Take a pretty_printer parameter. Adjust callers.
20529 (asan_emit_stack_protection): Tidy. Use local pretty printer.
20530 (asan_add_global): Likewise.
20532 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
20534 * pretty-print.h (pp_base): Remove. Adjust dependent macros.
20535 * diagnostic.h (diagnostic_flush_buffer): Adjust.
20536 * pretty-print.c (pp_formatted_text_data): Likewise.
20537 (pp_indent): Rename from pp_base_indent.
20538 (pp_format): Rename from pp_base_format.
20539 (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
20540 (pp_format_verbatim): Rename from pp_base_format_verbatim.
20541 (pp_flush): Rename from pp_base_flush.
20542 (pp_set_line_maximum_length): Rename from
20543 pp_base_set_line_maximum_length.
20544 (pp_clear_output_area): Rename from pp_base_clear_output_area.
20545 (pp_set_prefix): Rename from pp_base_set_prefix.
20546 (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
20547 (pp_emit_prefix): Rename from pp_base_emit_prefix.
20548 (pp_append_text): Rename from pp_base_append_text.
20549 (pp_formatted_text): Rename from pp_base_formatted_text.
20550 (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
20551 (pp_remaining_character_count_for_line): Rename from
20552 pp_base_remaining_character_count_for_line.
20553 (pp_newline): Rename from pp_base_newline.
20554 (pp_character): Rename from pp_base_character.
20555 (pp_string): Rename from pp_base_string.
20556 (pp_maybe_space): Rename from pp_base_maybe_space.
20557 * asan.c (asan_pp_string): Adjust.
20558 (asan_emit_stack_protection): Likewise.
20559 (asan_add_global): Likewise.
20560 * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
20561 * tree-mudflap.c (mf_varname_tree): Likewise.
20562 * tree-pretty-print.c (pp_tree_identifier): Rename from
20563 pp_base_tree_identifier.
20564 * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
20565 Declare as function.
20567 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
20569 * pretty-print.h (pp_bar_bar): New.
20570 (pp_ampersand_ampersand): Likewise.
20571 (pp_less_equal): Likewise.
20572 (pp_greater_equal): Likewise.
20573 * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
20574 printer functions instead of pp_string or operators and punctuators.
20575 (dump_gimple_call): Likewise.
20576 (dump_gimple_omp_for): Likewise.
20577 (dump_gimple_transaction): Likewise.
20578 (dump_gimple_phi): Likewise.
20579 (pp_gimple_stmt_1): Likewise.
20580 * sched-vis.c (print_insn): Likewise.
20581 * tree-mudflap.c (mf_varname_tree): Likewise.
20582 * tree-pretty-print.c (dump_block_node): Likewise.
20583 (dump_generic_node): Likewise.
20585 2013-08-02 Jan Hubicka <jh@suse.cz>
20587 * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
20589 * lto-streamer-out.c (tree_is_indexable): Results decls and
20590 parm decls are not indexable.
20591 (DFS_write_tree_body): Do not follow args and results.
20592 (hash_tree): Likewise.
20593 (output_functions): Rearrange so struct function is needed
20594 only when real body is output; be able to also ouptut abstract
20595 functions; output DECL_ARGUMENTS and DECL_RESULT.
20596 (lto_output): When not in WPA, ale store abstract functions.
20597 (write_symbol): Do not care about RESULT_DECL.
20598 (output_symbol_p): Handle correctly sbtract decls.
20599 * lto-streamer-in.c (input_function): Rearrange so struct
20600 function can be NULL at entry; allow streaming of
20601 functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
20602 * ipa.c (symtab_remove_unreachable_nodes): Silence confused
20603 sanity check during LTO.
20604 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
20605 RESULT_DECl and DECL_ARGUMENTS.
20606 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
20609 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
20611 * pretty-print.h (pp_underscore): New.
20613 * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
20614 printer functions instead of pp_character.
20615 (dump_binary_rhs): Likewise.
20616 (dump_ternary_rhs): Likewise.
20617 (dump_gimple_call_args): Likewise.
20618 (pp_points_to_solution): Likewise.
20619 (dump_gimple_call): Likewise.
20620 (dump_gimple_switch): Likewise.
20621 (dump_gimple_cond): Likewise.
20622 (dump_gimple_bind): Likewise.
20623 (dump_gimple_try): Likewise.
20624 (dump_gimple_omp_for): Likewise.
20625 (dump_gimple_omp_continue): Likewise.
20626 (dump_gimple_omp_single): Likewise.
20627 (dump_gimple_omp_sections): Likewise.
20628 (dump_gimple_omp_block): Likewise.
20629 (dump_gimple_omp_critical): Likewise.
20630 (dump_gimple_transaction): Likewise.
20631 (dump_gimple_asm): Likewise.
20632 (dump_gimple_phi): Likewise.
20633 (dump_gimple_omp_parallel): Likewise.
20634 (dump_gimple_omp_task): Likewise.
20635 (dump_gimple_omp_atomic_load): Likewise.
20636 (dump_gimple_omp_atomic_store): Likewise.
20637 (dump_gimple_mem_ops): Likewise.
20638 (pp_gimple_stmt_1): Likewise.
20639 (pp_cfg_jump): Likewise.
20640 (dump_implicit_edges): Likewise.
20641 (gimple_dump_bb_for_graph): Likewise.
20642 * graph.c (draw_cfg_node): Likewise.
20643 * langhooks.c (lhd_print_error_function): Likewise.
20644 * sched-vis.c (print_exp): Likewise.
20645 (print_value): Likewise.
20646 (print_pattern): Likewise.
20647 (print_insn): Likewise.
20648 (rtl_dump_bb_for_graph): Likewise.
20649 * tree-pretty-print.c (dump_function_declaration): Likewise.
20650 (dump_array_domain): Likewise.
20651 (dump_omp_clause): Likewise.
20652 (dump_location): Likewise.
20653 (dump_generic_node): Likewise.
20654 (print_struct_decl): Likewise.
20655 * diagnostic.c (diagnostic_show_locus): Use pp_space.
20657 2013-08-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
20659 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
20660 candidate table when replacing a candidate statement.
20661 (replace_rhs_if_not_dup): Likewise.
20662 (replace_one_candidate): Likewise.
20664 2013-08-02 Jan Hubicka <jh@suse.cz>
20665 Martin Liska <marxin.liska@gmail.com>
20667 * cgraphunit.c (add_new_function): Fix logic when adding from
20669 (assemble_thunk): Rename to ...
20670 (expand_thunk); .. this one; export; get it working with
20671 general functions; make produced gimple valid.
20672 * cgraph.h (expand_thunk): Declare.
20674 2013-08-02 Jan Hubicka <jh@suse.cz>
20676 * ipa-cp.c (gather_context_independent_values): Use
20677 ipa_get_param_move_cost.
20678 (get_replacement_map): Remove PARAM; move parameter folding
20680 (create_specialized_node): Update.
20681 * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
20682 assert that we have gimple body; update move_cost.
20683 (count_formal_params): Assert that we have gimple body.
20684 (ipa_dump_param): New function.
20685 (ipa_alloc_node_params): Break out from ...
20686 (ipa_initialize_node_params): ... here.
20687 (ipa_get_vector_of_formal_parms): ICE when used in WPA.
20688 (ipa_write_node_info): Stream move costs.
20689 (ipa_read_node_info): Read move costs.
20690 (ipa_update_after_lto_read): Do not recompute node params.
20691 * ipa-prop.h (ipa_param_descriptor): Add move_cost.
20692 (ipa_get_param): Check we are not in WPA.
20693 (ipa_get_param_move_cost): New.
20694 * tree-inline.c (tree_function_versioning): Fold replacement as needed.
20695 * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
20696 parm numbers to be present.
20698 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
20700 PR rtl-optimization/58048
20701 * lra-constraints.c (process_alt_operands): Don't check asm
20702 operand on register.
20704 2013-08-02 Eric Botcazou <ebotcazou@adacore.com>
20706 * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
20707 the implied StoreLoad barrier for atomic operations if before.
20709 2013-08-02 Jan Hubicka <jh@suse.cz>
20710 Martin Liska <marxin.liska@gmail.com>
20712 * cgraph.c (cgraph_function_body_availability): Do not check
20714 * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
20715 symtab_node_availability): Declare.
20716 * ipa.c (can_replace_by_local_alias): New.
20717 (function_and_variable_visibility): Use it.
20718 * symtab.c (symtab_for_node_and_aliases,
20719 symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
20721 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
20723 PR rtl-optimization/57963
20724 * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
20725 (lra_constraints): Use them.
20727 2013-08-02 Sofiane Naci <sofiane.naci@arm.com>
20729 * config/arm/types.md (define_attr "type"): Add "load_acq"
20731 * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
20733 (cortex_a53_store1): Likewise.
20735 2013-08-01 Jan Hubicka <jh@suse.cz>
20737 * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
20738 partitions are not needed.
20740 2013-08-01 Uros Bizjak <ubizjak@gmail.com>
20742 * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
20743 * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
20744 MAYBE_NON_Q_CLASS_P where appropriate.
20746 2013-08-01 Jan Hubicka <jh@suse.cz>
20748 * cgraph.h (release_function_body): Declare.
20749 * tree.c (free_lang_data_in_decl): Free, parameters and return values
20750 of unused delcarations.
20752 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20754 * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
20755 RTL form when subtracting a constant.
20757 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20759 * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
20760 Generate canonical plus rtx with negated immediate instead of minus
20762 * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
20764 2013-08-01 Jan Hubicka <jh@suse.cz>
20766 * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
20767 (cgraph_release_function_body): Likewise.
20768 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
20769 * cgraph.h (cgrpah_node): Rename abstract_and_needed
20770 to used_as_abstract_origin.
20771 * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
20772 symbols used as abstract origins.
20773 * cgraphunit.c (analyze_functions): Update.
20774 * ipa.c (symtab_remove_unreachable_nodes): Recompute
20775 used_as_abstract_origin.
20776 * tree-inline.c (tree_function_versioning): Update
20777 used_as_abstract_origin; be ready for DECL_RESULT and
20778 DECL_ARGUMENTS to be NULL.
20780 * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
20781 for abstract functions.
20782 * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
20785 2013-08-01 Jan Hubicka <jh@suse.cz>
20787 * profile.c (compute_value_histograms): Fix thinko.
20789 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
20791 * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs. Add
20792 aarch-common-protos.h to extra_headers.
20793 (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
20794 * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
20795 * config/aarch64/t-aarch64 (aarch-common.o): Define.
20797 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
20799 * config/aarch64/aarch64.md (define_attr "type"): Delete.
20800 Include "../arm/types.md". Define "type" attribute for all patterns.
20801 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
20804 2013-07-31 Michael Meissner <meissner@linux.vnet.ibm.com>
20806 * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
20807 to support power8 load fusion.
20808 (fusion_gpr_mem_load): Likewise.
20810 * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
20812 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
20813 declarations for power8 load fusion.
20814 (emit_fusion_gpr_load): Likewise.
20816 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
20817 tuning for power8, turn on fusion mode by default. Turn on sign
20818 extending fusion mode if normal fusion mode is on, and we are at
20820 (fusion_gpr_load_p): New function, return true if we can fuse an
20821 addis instruction with a dependent load to a GPR.
20822 (emit_fusion_gpr_load): Emit the instructions for power8 load
20825 * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
20826 (VSX load fusion peepholes): New peepholes to fuse together an
20827 addi instruction with a VSX load instruction.
20829 * config/rs6000/rs6000.md (GPR load fusion peepholes): New
20830 peepholes to fuse an addis instruction with a load to a GPR base
20831 register. If we are supporting sign extending fusions, convert
20832 sign extending loads to zero extending loads and add an explicit
20835 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
20837 * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs. Add
20838 aarch-common-protos.h to extra_headers.
20839 (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
20840 * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
20841 (arm_early_store_addr_dep): Likewise.
20842 (arm_no_early_alu_shift_dep): Likewise.
20843 (arm_no_early_alu_shift_value_dep): Likewise.
20844 (arm_no_early_mul_dep): Likewise.
20845 (arm_no_early_store_addr_dep): Likewise.
20846 (arm_mac_accumulator_is_mul_result): Likewise.
20847 (arm_mac_accumulator_is_result): Likewise.
20848 * config/arm/aarch-common.c: ... here. New file.
20849 * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
20851 (arm_early_store_addr_dep): Likewise.
20852 (arm_no_early_alu_shift_dep): Likewise.
20853 (arm_no_early_alu_shift_value_dep): Likewise.
20854 (arm_no_early_mul_dep): Likewise.
20855 (arm_no_early_store_addr_dep): Likewise.
20856 (arm_mac_accumulator_is_mul_result): Likewise.
20857 (arm_mac_accumulator_is_result): Likewise.
20858 * config/arm/aarch-common-protos.h: ... here. New file.
20859 * config/arm/t-arm (aarch-common.o): Define.
20861 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
20863 * config/arm/arm.md: Include new file "types.md".
20864 (define_attr "type"): Move from here to ...
20865 (define_attr "mul32"): Likewise.
20866 (define_attr "mul64"): Likewise.
20867 * config/arm/types.md: ... here. New file.
20869 2013-07-31 Sebastian Huber <sebastian.huber@embedded-brains.de>
20871 * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
20872 * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
20874 2013-07-31 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20876 * gen-pass-instances.awk: Fix offset of substr().
20878 2013-07-31 David Malcolm <dmalcolm@redhat.com>
20880 * Makefile.in (pass-instances.def): New.
20881 (passes.o): Replace dependency on passes.def with one on
20884 * gen-pass-instances.awk: New.
20886 * passes.c (pass_manager::pass_manager): Use pass-instances.def
20887 rather than passes.def, updating local definition of NEXT_PASS
20888 macro to add an extra NUM parameter (currently unused).
20890 2013-07-30 David Malcolm <dmalcolm@redhat.com>
20892 * Makefile.in (PASS_MANAGER_H): New.
20893 (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
20894 (passes.o): Likewise.
20895 (statistics.o): Likewise.
20896 (cgraphunit.o): Likewise.
20897 (context.o): Depend on PASS_MANAGER_H.
20899 * pass_manager.h: New.
20901 * cgraphunit.c (cgraph_add_new_function): Update for moves
20902 of globals to fields of pass_manager.
20903 (analyze_function): Likewise.
20904 (expand_function): Likewise.
20905 (ipa_passes): Likewise.
20906 (compile): Likewise.
20908 * context.c (context::context): New.
20909 * context.h (context::context): New.
20910 (context::get_passes): New.
20911 (context::passes_): New.
20913 * lto-cgraph.c (input_node): Update for moves of globals to
20914 fields of pass_manager.
20916 * passes.c (all_passes): Remove, in favor of a field of the
20917 same name within the new class pass_manager.
20918 (all_small_ipa_passes): Likewise.
20919 (all_lowering_passes): Likewise.
20920 (all_regular_ipa_passes): Likewise.
20921 (all_late_ipa_passes): Likewise.
20922 (all_lto_gen_passes): Likewise.
20923 (passes_by_id): Likewise.
20924 (passes_by_id_size): Likewise.
20925 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
20926 the new class pass_manager.
20927 (set_pass_for_id): Convert to...
20928 (pass_manager::set_pass_for_id): ...method.
20929 (get_pass_for_id): Convert to...
20930 (pass_manager::get_pass_for_id): ...method.
20931 (register_one_dump_file): Move body of implementation into...
20932 (pass_manager::register_one_dump_file): ...here.
20933 (register_dump_files_1): Convert to...
20934 (pass_manager::register_dump_files_1): ...method.
20935 (register_dump_files): Convert to...
20936 (pass_manager::register_dump_files): ...method.
20937 (create_pass_tab): Update for moves of globals to fields of
20939 (dump_passes): Move body of implementation into...
20940 (pass_manager::dump_passes): ...here.
20941 (register_pass): Move body of implementation into...
20942 (pass_manager::register_pass): ...here.
20943 (init_optimization_passes): Convert into...
20944 (pass_manager::pass_manager): ...constructor for new
20945 pass_manager class, and initialize the pass_lists array.
20946 (check_profile_consistency): Update for moves of globals to
20947 fields of pass_manager.
20948 (dump_profile_report): Move body of implementation into...
20949 (pass_manager::dump_profile_report): ...here.
20950 (ipa_write_summaries_1): Update for moves of pass lists from
20951 being globals to fields of pass_manager.
20952 (ipa_write_optimization_summaries): Likewise.
20953 (ipa_read_summaries): Likewise.
20954 (ipa_read_optimization_summaries): Likewise.
20955 (execute_all_ipa_stmt_fixups): Likewise.
20957 * statistics.c (statistics_fini): Update for moves of globals to
20958 fields of pass_manager.
20960 * toplev.c (general_init): Replace call to
20961 init_optimization_passes with construction of the pass_manager
20964 * tree-pass.h (all_passes): Remove, in favor of a field of the
20965 same name within the new class pass_manager.
20966 (all_small_ipa_passes): Likewise.
20967 (all_lowering_passes): Likewise.
20968 (all_regular_ipa_passes): Likewise.
20969 (all_lto_gen_passes): Likewise.
20970 (all_late_ipa_passes): Likewise.
20971 (passes_by_id): Likewise.
20972 (passes_by_id_size): Likewise.
20973 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
20974 the new class pass_manager.
20975 (get_pass_for_id): Remove.
20977 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
20979 * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
20982 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
20984 * arm.md (mulhi3): New expand pattern.
20986 2013-07-30 Jan Hubicka <jh@suse.cz>
20987 Martin Liska <marxin.liska@gmail.com>
20989 * profile.c (compute_value_histograms): Do not ICE when
20990 there is mismatch only on some counters.
20992 2013-07-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20994 PR rtl-optimization/57637
20995 * function.c (move_insn_for_shrink_wrap): Also check the
20996 GEN set of the LIVE problem for the liveness analysis
20997 if it exists, otherwise give up.
20999 2013-07-29 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
21001 PR tree-optimization/57993
21002 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
21003 replaced statement in the candidate table.
21004 (phi_add_costs): Return infinite cost when the hidden basis does
21005 not dominate all phis on which the candidate is dependent.
21006 (replace_one_candidate): Record replaced statement in the
21009 2013-07-29 Joern Rennecke <joern.rennecke@embecosm.com>
21011 * config/epiphany/epiphany.md (*isub_i+2): New peephole.
21012 (ashlv2si3): New expander.
21013 (*ashlv2si3_i): New define_insn_and_split.
21014 * predicates.md (float_operation): Allow patterns with three
21015 basic sub-patterns.
21017 PR rtl-optimization/58021
21018 * mode-switching.c (create_pre_exit): Always split off preceding
21019 insns if we are not at the basic block head.
21021 2013-07-29 Maciej W. Rozycki <macro@codesourcery.com>
21023 * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
21024 (UCLIBC_DYNAMIC_LINKER): New macro.
21025 * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
21027 (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
21028 (UCLIBC_DYNAMIC_LINKER32): Undefine macro first. Handle
21030 (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
21031 (UCLIBC_DYNAMIC_LINKERN32): Likewise.
21032 * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
21033 for SF and DF modes. Use ieee_quad_format for TF mode.
21034 * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
21035 * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
21036 (mips_option_override): Handle `-mnan=legacy'.
21037 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
21038 `-mabs=2008' and `-mnan=2008'.
21039 (OPTION_DEFAULT_SPECS): Add "nan" default.
21040 (ASM_SPEC): Handle `-mnan='.
21041 [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
21042 * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
21043 comment accordingly.
21044 (neg<mode>2): Likewise.
21045 * config/mips/mips.opt (mabs, mnan): New options.
21046 * doc/install.texi (Configuration): Document `--with-nan=' option.
21047 * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
21049 (MIPS Options): Document them.
21050 * config.gcc <mips*-*-*>: Handle `--with-nan='.
21051 * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
21052 * configure: Regenerate.
21053 * config.in: Regenerate.
21055 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
21057 * config/i386/i386.md (float post-reload splitters): Do not check
21058 for subregs of SSE registers.
21060 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
21061 H.J. Lu <hongjiu.lu@intel.com>
21065 * config/i386/i386.md (post-reload splitter
21066 to avoid partial SSE reg dependency stalls): New pattern.
21068 2013-07-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
21070 * config/s390/s390.md ("movcc"): Swap load and store instructions.
21072 2013-07-27 Joern Rennecke <joern.rennecke@embecosm.com>
21074 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
21075 Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
21077 2013-07-26 Cary Coutant <ccoutant@google.com>
21079 * dwarf2out.c (die_checksum_ordered): Don't include template
21080 instantiations in signature.
21081 (is_template_parameter): New function.
21082 (is_template_instantiation): New function.
21083 (generate_skeleton_bottom_up): Don't include template instantiations
21085 (generate_skeleton): Likewise.
21086 (break_out_comdat_types): Move recursive call to break out nested
21088 (prune_unused_types_mark_generic_parms_dies): Call
21089 is_template_parameter.
21091 2013-07-26 Ian Bolton <ian.bolton@arm.com>
21093 * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
21094 uses vector registers.
21095 * config/aarch64/iterators.md: Add attributes rtn and vas.
21097 2013-07-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21098 Richard Earnshaw <richard.earnshaw@arm.com>
21100 * combine.c (simplify_comparison): Re-canonicalize operands
21102 * config/arm/arm.md (movcond_addsi): New splitter.
21104 2013-07-25 Sterling Augustine <saugustine@google.com>
21106 * dwarf2out.c (size_of_pubnames): Move code to...
21107 (include_pubname_in_output): ...here. New.
21108 (want_pubnames): Rearrange.
21109 (output_pubnames): Call include_pubname_in_output. Move assertion.
21111 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
21113 * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
21115 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
21118 * doc/extend.texi: Remove obsolete builtins. Fix
21119 typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
21121 2013-07-25 Jan Hubicka <jh@suse.cz>
21123 * cgraph.c (release_function_body): Break out from ...
21124 (cgraph_release_function_body): ... this one; also release DECL_RESULT
21125 and DECL_ARGUMENTS.
21126 * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
21127 old_tree in the map.
21128 (create_specialized_node): Update.
21129 * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
21131 * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
21132 DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
21133 * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
21134 * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
21137 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21139 * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
21140 addsi3_carryin_alt2_<optab>): Correct output template.
21142 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21144 * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
21145 Adjust for arm_restrict_it.
21146 Remove trailing whitespace.
21148 2013-07-25  Mark Kettenis  <kettenis@openbsd.org>
21150 * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
21151 libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
21153 * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
21155 2013-07-25 Vladimir Makarov <vmakarov@redhat.com>
21157 PR rtl-optimization/57960
21158 * lra-constraints.c (process_alt_operands): Use the right mode
21159 when checking strict_low.
21161 2013-07-25 Jan Hubicka <jh@suse.cz>
21163 * lto-symtab.c (lto_cgraph_replace_node): Release function body.
21164 * cgraph.c (cgraph_remove_node): Do not release function body
21165 when in cgraph streaming.
21166 * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
21167 in other partitions are not considered reachable; fix handling of
21170 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21172 * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
21174 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21179 * config/arm/arm.md ("*sibcall_insn): Replace use of
21180 Ss with US. Adjust output for v5 and v4t.
21181 (*sibcall_value_insn): Likewise and loosen predicate on operand0.
21183 * config/arm/constraints.md ("Ss"): Rename to US.
21185 2013-07-25 Terry Guo <terry.guo@arm.com>
21187 * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
21188 shift_add/shift_sub0/shift_sub1 RTXs.
21190 2013-07-24 Bill Schmidt <wschmidt@linux.ibm.com>
21191 Anton Blanchard <anton@au1.ibm.com>
21193 * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
21194 (altivec_vpks<VI_char>ss): Likewise.
21195 (altivec_vpks<VI_char>us): Likewise.
21196 (altivec_vpku<VI_char>us): Likewise.
21197 (altivec_vpku<VI_char>um): Likewise.
21199 2013-07-24 David Malcolm <dmalcolm@redhat.com>
21201 Introduce context class.
21203 * Makefile.in (CONTEXT_H): New.
21204 (OBJS): Add context.o.
21205 (toplev.o): Add CONTEXT_H to dependencies.
21208 * toplev.c (general_init): Create the singleton gcc::context instance.
21214 2013-07-24 Joern Rennecke <joern.rennecke@embecosm.com>
21216 PR rtl-optimization/57968
21217 * mode-switching.c (create_pre_exit): Allow instructions that
21218 don't set a return register to need a non-exit mode.
21220 2013-07-24 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
21221 Anton Blanchard <anton@au1.ibm.com>
21223 * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
21224 operands to vperm for little endian.
21225 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
21226 of lvsl to create the control mask for a vperm for little endian.
21228 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21229 Anton Blanchard <anton@au1.ibm.com>
21231 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
21232 two operands for little-endian.
21234 2013-07-23 Steve Ellcey <sellcey@mips.com>
21236 * config/mips/mips.c (mips_case_values_threshold): New.
21237 (TARGET_CASE_VALUES_THRESHOLD): Define.
21239 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21240 Anton Blanchard <anton@au1.ibm.com>
21242 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
21243 selection of field for vector splat in little endian mode.
21245 2013-07-23 Michael Meissner <meissner@linux.vnet.ibm.com>
21247 * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
21248 expanders to rs6000.md.
21249 (ior<mode>3): Likewise.
21250 (and<mode>3): Likewise.
21251 (one_cmpl<mode>2): Likewise.
21252 (nor<mode>3): Likewise.
21253 (andc<mode>3): Likewise.
21254 (eqv<mode>3): Likewise.
21255 (nand<mode>3): Likewise.
21256 (orc<mode>3): Likewise.
21258 * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
21261 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
21262 to split multi-word logical operations.
21263 (rs6000_split_logical_di): Likewise.
21264 (rs6000_split_logical): Likewise.
21266 * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
21267 (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
21268 and allow TImode operations in 32-bit.
21269 (vsx_and<mode>3_64bit): Likewise.
21270 (vsx_ior<mode>3_32bit): Likewise.
21271 (vsx_ior<mode>3_64bit): Likewise.
21272 (vsx_xor<mode>3_32bit): Likewise.
21273 (vsx_xor<mode>3_64bit): Likewise.
21274 (vsx_one_cmpl<mode>2_32bit): Likewise.
21275 (vsx_one_cmpl<mode>2_64bit): Likewise.
21276 (vsx_nor<mode>3_32bit): Likewise.
21277 (vsx_nor<mode>3_64bit): Likewise.
21278 (vsx_andc<mode>3_32bit): Likewise.
21279 (vsx_andc<mode>3_64bit): Likewise.
21280 (vsx_eqv<mode>3_32bit): Likewise.
21281 (vsx_eqv<mode>3_64bit): Likewise.
21282 (vsx_nand<mode>3_32bit): Likewise.
21283 (vsx_nand<mode>3_64bit): Likewise.
21284 (vsx_orc<mode>3_32bit): Likewise.
21285 (vsx_orc<mode>3_64bit): Likewise.
21287 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
21288 logical types in GPRs.
21290 * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
21291 logical insns to rs6000.md, and allow TImode operations in
21293 (altivec_ior<mode>3): Likewise.
21294 (altivec_xor<mode>3): Likewise.
21295 (altivec_one_cmpl<mode>2): Likewise.
21296 (altivec_nor<mode>3): Likewise.
21297 (altivec_andc<mode>3): Likewise.
21299 * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
21300 attributes for moving the 128-bit logical operations into
21302 (BOOL_REGS_OUTPUT): Likewise.
21303 (BOOL_REGS_OP1): Likewise.
21304 (BOOL_REGS_OP2): Likewise.
21305 (BOOL_REGS_UNARY): Likewise.
21306 (BOOL_REGS_AND_CR0): Likewise.
21307 (one_cmpl<mode>2): Add support for DI logical operations on
21308 32-bit, splitting the operations to 32-bit.
21309 (anddi3): Likewise.
21310 (iordi3): Likewise.
21311 (xordi3): Likewise.
21312 (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
21313 changes to combine the 32/64-bit code, allow logical operations on
21314 TI mode in 32-bit, and to use similar match_operator patterns like
21315 scalar mode uses. Combine the Altivec and VSX code for logical
21316 operations, and move it here.
21317 (ior<mode>3, 128-bit types): Likewise.
21318 (xor<mode>3, 128-bit types): Likewise.
21319 (one_cmpl<mode>3, 128-bit types): Likewise.
21320 (nor<mode>3, 128-bit types): Likewise.
21321 (andc<mode>3, 128-bit types): Likewise.
21322 (eqv<mode>3, 128-bit types): Likewise.
21323 (nand<mode>3, 128-bit types): Likewise.
21324 (orc<mode>3, 128-bit types): Likewise.
21325 (and<mode>3_internal): Likewise.
21326 (bool<mode>3_internal): Likewise.
21327 (boolc<mode>3_internal1): Likewise.
21328 (boolc<mode>3_internal2): Likewise.
21329 (boolcc<mode>3_internal1): Likewise.
21330 (boolcc<mode>3_internal2): Likewise.
21331 (eqv<mode>3_internal1): Likewise.
21332 (eqv<mode>3_internal2): Likewise.
21333 (one_cmpl1<mode>3_internal): Likewise.
21335 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
21337 * config/microblaze/microblaze.c (microblaze_expand_prologue):
21338 Rename flag_stack_usage to flag_stack_usage_info.
21340 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
21342 * config/microblaze/sync.md: New file.
21343 * config/microblaze/microblaze.md: Include sync.md
21344 * config/microblaze/microblaze.c: Add print_operand 'y'.
21345 * config/microblaze/constraints.md: Add memory_contraint
21346 'Q' which is a single register.
21348 2013-07-23 Eric Botcazou <ebotcazou@adacore.com>
21350 * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
21352 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
21354 * reload.c (find_reloads): Exit loop once we find this operand
21355 cannot be reloaded somehow for this alternative.
21357 * reload.c (find_reloads): Exit loop once we find a hard register.
21359 * rtlanal.c (computed_jump_p): Exit loop once we find label
21362 * i386.c (ix86_pad_returns): Exit loop after setting replace.
21364 * cfgloopmanip.c (remove_path): Exit loop after setting
21367 * gensupport.c (subst_dup): Avoid loop if code is not
21368 MATCH_DUP nor MATCH_OP_DUP.
21370 2013-07-23 Nicklas Bo Jensen <nbjensen@gmail.com>
21372 * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
21374 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
21376 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
21377 true for SP_REGNUM if mode == ptr_mode.
21378 * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
21379 with value R0_REGNUM + 31.
21381 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
21383 * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
21384 pad pointer-typed argument downward.
21386 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
21388 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
21389 and __ILP32__ when the ILP32 model is in use.
21391 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
21393 * config/aarch64/aarch64.c (POINTER_BYTES): New define.
21394 (aarch64_load_symref_appropriately): In the case of
21395 SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
21396 to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
21397 (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
21398 change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
21399 if 'mode' doesn't equal to 'ptr_mode'.
21400 (aarch64_output_mi_thunk): Add an assertion on the alignment of
21401 'vcall_offset'; change to call aarch64_emit_move differently depending
21402 on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
21403 to calculate the upper bound of 'vcall_offset'.
21404 (aarch64_cannot_force_const_mem): Change to also return true if
21406 (aarch64_legitimize_reload_address): In the case of large
21407 displacements, add new local variable 'xmode' and an assertion
21408 based on it; change to use 'xmode' to generate the new rtx and
21410 (aarch64_asm_trampoline_template): Change to generate the template
21411 differently depending on TARGET_ILP32 or not; change to use
21412 'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
21413 (aarch64_trampoline_size): Removed.
21414 (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
21415 and replace immediate literals with it. Change to use 'ptr_mode'
21416 instead of 'DImode' and call convert_memory_address if the mode
21417 of 'fnaddr' doesn't equal to 'ptr_mode'.
21418 (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
21420 (aarch64_elf_asm_destructor): Likewise.
21421 * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
21422 on TARGET_ILP32 instead of aarch64_trampoline_size.
21423 * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
21424 of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
21425 (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
21426 (loadwb_pair<GPI:mode>_<P:mode>): ... this. Replace PTR with P.
21427 (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
21428 (storewb_pair<GPI:mode>_<P:mode>): ... this.
21429 (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
21430 depending on the value of 'mode'.
21431 (add_losym_<mode>): New.
21432 (ldr_got_small_<mode>): New, based on ldr_got_small.
21433 (ldr_got_small): Remove.
21434 (ldr_got_small_sidi): New.
21435 * config/aarch64/iterators.md (P): New.
21436 (PTR): Change to 'ptr_mode' in the condition.
21438 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
21440 * config.gcc (aarch64*-*-*): Support --with-abi.
21441 (aarch64*-*-elf): Support --with-multilib-list.
21442 (aarch64*-*-linux*): Likewise.
21443 (supported_defaults): Add abi to aarch64*-*-*.
21444 * configure.ac: Mention AArch64 for --with-multilib-list.
21445 * configure: Re-generated.
21446 * config/aarch64/biarchilp32.h: New file.
21447 * config/aarch64/biarchlp64.h: New file.
21448 * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
21450 (MULTILIB_DEFAULTS): Ditto.
21451 (DRIVER_SELF_SPECS): Ditto.
21452 (ASM_SPEC): Update to also substitute -mabi.
21453 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
21454 file whose name depends on -mabi= and -mbig-endian.
21455 * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
21457 (POINTER_SIZE): New define.
21458 (POINTERS_EXTEND_UNSIGNED): Ditto.
21459 (enum aarch64_abi_type): New enumeration tag.
21460 (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
21461 (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
21462 (TARGET_ILP32): New define.
21463 * config/aarch64/aarch64.opt (mabi): New.
21464 (aarch64_abi): New.
21465 (ilp32, lp64): New values for -mabi.
21466 * config/aarch64/t-aarch64 (comma): New define.
21467 (MULTILIB_OPTIONS): Ditto.
21468 (MULTILIB_DIRNAMES): Ditto.
21469 * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
21470 * doc/invoke.texi: Document -mabi for AArch64.
21472 2013-07-23 Georg-Johann Lay <avr@gjlay.de>
21474 * config/avr/avr.md: Explain asm print modifier 'r' for REG.
21476 2013-07-22 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
21477 Anton Blanchard <anton@au1.ibm.com>
21479 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
21480 endianness when selecting field to splat.
21482 2013-07-22 Eric Christopher <echristo@gmail.com>
21484 * dwarf2out.c (die_odr_checksum): New function to use
21485 CHECKSUM_ macros and ULEB128 for DIE tag.
21486 (generate_type_signature): Use.
21488 2013-07-22 Eric Botcazou <ebotcazou@adacore.com>
21490 * config.gcc (sparc*-*-*): Accept leon3 processor.
21491 (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
21492 * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
21493 * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
21494 * config/sparc/sparc.opt (enum processor_type): Add leon3.
21495 (mfix-ut699): Adjust comment.
21496 * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
21497 (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
21498 (CPP_CPU_SPEC): Likewise.
21499 (ASM_CPU_SPEC): Likewise.
21500 * config/sparc/sparc.c (leon3_cost): New constant.
21501 (sparc_option_override): Add leon3 support.
21502 (mem_ref): New function.
21503 (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
21504 (sparc_do_work_around_errata): Look into the instruction in the delay
21505 slot and adjust accordingly. Add fix for the data cache nullify issues
21506 of the UT699. Change insertion position for the NOP.
21507 * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
21508 (leon3_load): New reservation.
21509 (leon_store): Bump latency to 2.
21510 (grfpu): New automaton.
21511 (grfpu_alu): New unit.
21512 (grfpu_ds): Likewise.
21513 (leon_fp_alu): Adjust.
21514 (leon_fp_mult): Delete.
21515 (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
21516 (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
21517 * config/sparc/sparc.md (cpu): Add leon3.
21518 * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
21519 (swapsi): Likewise.
21520 (atomic_test_and_set): Likewise.
21521 (ldstub): Likewise.
21523 2013-07-22 Jürgen Urban <JuergenUrban@gmx.de>
21525 * config.gcc (mips*-*-*): Add --with-fpu support. Make single the
21526 default for R5900 targets.
21527 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
21528 (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
21529 * config/mips/mips.c (mips_option_override): Report an error for
21530 -march=r5900 -mhard-float -mdouble-float. Use spu_single_format
21531 for -march=r5900 -mhard-float.
21533 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
21535 * df-problems.c (can_move_insns_across): Exit loop once we
21536 find a non-fixed, non-global register.
21538 * ipa-pure-const.c (propagate_nothrow): Exit loop after
21541 * omega.c (omega_eliminate_red): Break after setting red_found.
21542 (omega_problem_has_red_equations): Similarly after setting found.
21543 (omega_query_variable): Similarly after setting coupled.
21545 2013-07-22 Marek Polacek <polacek@redhat.com>
21547 * gimplify.c: Don't include gimple.h twice.
21549 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21551 * config/arm/constraints.md (Pd): Allow TARGET_THUMB
21552 instead of TARGET_THUMB1.
21553 (Pz): New constraint.
21554 * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
21556 (compare_negsi_si): Likewise.
21557 (compare_addsi2_op0): Likewise.
21558 (compare_addsi2_op1): Likewise.
21559 (addsi3_carryin_<optab>): Likewise.
21560 (addsi3_carryin_alt2_<optab>): Likewise.
21561 (addsi3_carryin_shift_<optab>): Disable cond_exec variant
21562 for arm_restrict_it.
21563 (subsi3_carryin): Likewise.
21564 (arm_subsi3_insn): Add alternatives for 16-bit encoding.
21565 (minmax_arithsi): Disable for arm_restrict_it.
21566 (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
21567 (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
21568 (satsi_<SAT:code>_shift): Likewise.
21569 (arm_shiftsi3): Add alternative for 16-bit encoding.
21570 (arm32_movhf): Disable for arm_restrict_it.
21571 (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
21572 (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
21574 2013-07-22 Sofiane Naci <sofiane.naci@arm.com>
21576 * config/arm/arm.md (attribute "insn"): Delete.
21577 (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
21578 "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
21579 (not_shiftsi): Update for attribute change.
21580 (not_shiftsi_compare0): Likewise.
21581 (not_shiftsi_compare0_scratch): Likewise.
21582 (arm_one_cmplsi2): Likewise.
21583 (thumb1_one_cmplsi2): Likewise.
21584 (notsi_compare0): Likewise.
21585 (notsi_compare0_scratch): Likewise.
21586 (thumb1_movdi_insn): Likewise.
21587 (arm_movsi_insn): Likewise.
21588 (movhi_insn_arch4): Likewise.
21589 (movhi_bytes): Likewise.
21590 (arm_movqi_insn): Likewise.
21591 (thumb1_movqi_insn): Likewise.
21592 (arm32_movhf): Likewise.
21593 (thumb1_movhf): Likewise.
21594 (arm_movsf_soft_insn): Likewise.
21595 (thumb1_movsf_insn): Likewise.
21596 (thumb_movdf_insn): Likewise.
21597 (movsicc_insn): Likewise.
21598 (movsfcc_soft_insn): Likewise.
21599 (and_scc): Likewise.
21600 (cond_move): Likewise.
21601 (if_move_not): Likewise.
21602 (if_not_move): Likewise.
21603 (if_shift_move): Likewise.
21604 (if_move_shift): Likewise.
21605 (if_shift_shift): Likewise.
21606 (if_not_arith): Likewise.
21607 (if_arith_not): Likewise.
21608 (cond_move_not): Likewise.
21609 * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
21610 (neon_mov<mode>): Likewise.
21611 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
21612 (thumb2_movsi_vfp): Likewise.
21613 (movsf_vfp): Likewise.
21614 (thumb2_movsf_vfp): Likewise.
21615 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
21617 (cortexa7_older_only): Likewise.
21618 (cortexa7_younger): Likewise.
21619 * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
21620 (1020alu_shift_op): Likewise.
21621 (1020alu_shift_reg_op): Likewise.
21622 * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
21623 (alu_shift_op): Likewise.
21624 (alu_shift_reg_op): Likewise.
21625 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
21626 (11_alu_shift_op): Likewise.
21627 (11_alu_shift_reg_op): Likewise.
21628 * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
21629 (9_alu_shift_reg_op): Likewise.
21630 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
21632 (cortex_a15_alu_shift): Likewise.
21633 (cortex_a15_alu_shift_reg): Likewise.
21634 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
21635 (cortex_a5_alu_shift): Likewise.
21636 * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
21638 (cortex_a53_alu_shift): Likewise.
21639 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
21641 (cortex_a7_alu_reg): Likewise.
21642 (cortex_a7_alu_shift): Likewise.
21643 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
21644 (cortex_a8_alu_shift): Likewise.
21645 (cortex_a8_alu_shift_reg): Likewise.
21646 (cortex_a8_mov): Likewise.
21647 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
21648 (cortex_a9_dp_shift): Likewise.
21649 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
21650 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
21651 (cortex_r4_mov): Likewise.
21652 (cortex_r4_alu_shift): Likewise.
21653 (cortex_r4_alu_shift_reg): Likewise.
21654 * config/arm/fa526.md (526_alu_op): Update for attribute change.
21655 (526_alu_shift_op): Likewise.
21656 * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
21657 * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
21658 (626te_alu_shift_op): Likewise.
21659 * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
21660 (726te_alu_op): Likewise.
21661 (726te_alu_shift_op): Likewise.
21662 (726te_alu_shift_reg_op): Likewise.
21663 * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
21664 (mp626_alu_shift_op): Likewise.
21665 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
21666 (pj4_alu_e1_conds): Likewise.
21667 (pj4_alu): Likewise.
21668 (pj4_alu_conds): Likewise.
21669 (pj4_shift): Likewise.
21670 (pj4_shift_conds): Likewise.
21671 (pj4_alu_shift): Likewise.
21672 (pj4_alu_shift_conds): Likewise.
21674 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21676 * config/arm/predicates.md (shiftable_operator_strict_it):
21678 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
21679 Disable cond_exec version for arm_restrict_it.
21680 (thumb2_smaxsi3): Convert to generate cond_exec.
21681 (thumb2_sminsi3): Likewise.
21682 (thumb32_umaxsi3): Likewise.
21683 (thumb2_uminsi3): Likewise.
21684 (thumb2_abssi2): Adjust constraints for arm_restrict_it.
21685 (thumb2_neg_abssi2): Likewise.
21686 (thumb2_mov_scc): Add alternative for 16-bit encoding.
21687 (thumb2_movsicc_insn): Adjust alternatives.
21688 (thumb2_mov_negscc): Disable for arm_restrict_it.
21689 (thumb2_mov_negscc_strict_it): New pattern.
21690 (thumb2_mov_notscc_strict_it): New pattern.
21691 (thumb2_mov_notscc): Disable for arm_restrict_it.
21692 (thumb2_ior_scc): Likewise.
21693 (thumb2_ior_scc_strict_it): New pattern.
21694 (thumb2_cond_move): Adjust for arm_restrict_it.
21695 (thumb2_cond_arith): Disable for arm_restrict_it.
21696 (thumb2_cond_arith_strict_it): New pattern.
21697 (thumb2_cond_sub): Adjust for arm_restrict_it.
21698 (thumb2_movcond): Likewise.
21699 (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
21700 (thumb2_zero_extendhisi2_v6): Likewise.
21701 (thumb2_zero_extendqisi2_v6): Likewise.
21702 (orsi_notsi_si): Likewise.
21703 (orsi_not_shiftsi_si): Likewise.
21705 2013-07-22 Georg-Johann Lay <avr@gjlay.de>
21707 * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
21708 instruction sequence is 1 byte shorter.
21710 2013-07-22 Uros Bizjak <ubizjak@gmail.com>
21712 * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
21713 it is not needed after split.
21715 2013-07-20 Iain Sandoe <iain@codesourcery.com>
21718 * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
21719 second label for nonlocal goto receivers. Don't output pic base labels
21720 unless we're producing PIC; mark that action unreachable().
21721 (ix86_save_reg): If the function contains a nonlocal label, save the
21723 * config/darwin-protos.h (machopic_should_output_picbase_label): New.
21724 * config/darwin.c (emitted_pic_label_num): New GTY.
21725 (update_pic_label_number_if_needed): New.
21726 (machopic_output_function_base_name): Adjust for nonlocal receiver
21728 (machopic_should_output_picbase_label): New.
21729 * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
21730 (nonlocal_goto_receiver): New insn and split.
21732 2013-07-20 James Greenhalgh <james.greenhalgh@arm.com>
21734 * config/aarch64/aarch64-builtins.c
21735 (aarch64_fold_builtin): Fold abs in all modes.
21736 * config/aarch64/aarch64-simd-builtins.def
21737 (abs): Enable for all modes.
21738 * config/aarch64/arm_neon.h
21739 (vabs<q>_s<8,16,32,64): Rewrite using builtins.
21740 (vabs_f64): Add missing intrinsic.
21742 2013-07-19 Ian Bolton <ian.bolton@arm.com>
21744 * config/aarch64/arm_neon.h (vabs_s64): New function
21746 2013-07-19 Georg-Johann Lay <avr@gjlay.de>
21749 * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
21750 * config/avr/avr.md (adjust_len): Add `round'.
21751 * config/avr/avr-protos.h (avr_out_round): New prototype.
21752 (avr_out_plus): Add `out_label' argument.
21753 * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
21754 (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
21755 Handle the case where `insn' is just a pattern.
21756 (avr_out_bitop): Handle the case where `insn' is just a pattern.
21757 (avr_out_round): New function.
21758 (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
21760 2013-07-18 David Holsgrove <david.holsgrove@xilinx.com>
21762 * config/microblaze/microblaze.c (microblaze_expand_prologue):
21763 Add check for flag_stack_usage to handle -fstack-usage support
21765 2013-07-18 Pat Haugen <pthaugen@us.ibm.com>
21767 * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
21768 interaction for new Power8 flags and VSX.
21770 2013-07-18 Sriraman Tallam <tmsriram@google.com>
21772 PR middle-end/57698
21773 * tree-inline.c (expand_call_inline): Emit errors during
21774 early_inlining only if optimization is not turned on.
21776 2013-07-18 David Malcolm <dmalcolm@redhat.com>
21780 * passes.c (init_optimization_passes): Move the construction of
21781 the pass hierarchy into a new passes.def file.
21783 * Makefile.in (passes.o): Add dependency on passes.def.
21785 2013-07-18 David Malcolm <dmalcolm@redhat.com>
21787 * passes.c (init_optimization_passes): Introduce macros for
21788 constructing the tree of passes (INSERT_PASSES_AFTER,
21789 PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
21790 TERMINATE_PASS_LIST).
21792 2013-07-18 Vladimir Makarov <vmakarov@redhat.com>
21793 Wei Mi <wmi@google.com>
21795 PR rtl-optimization/57878
21796 * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
21798 (reload_pseudo_compare_func): Check nregs first for reload
21801 2013-07-18 David Malcolm <dmalcolm@redhat.com>
21803 * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
21805 2013-07-18 Po-Chun Chang <pchang9@cs.wisc.edu>
21807 * read-rtl.c (validate_const_int): Once an invalid character is
21808 seen, quit the loop.
21810 * gengtype.c (write_roots): Similarly once we find the "deletable"
21811 or "if_marked" option.
21813 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
21815 * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
21816 "xtab" and "sat". Move value "clz" from here to ...
21817 (attriubte "type"): ... here.
21818 (satsi_<SAT:code>): Delete "insn" attribute.
21819 (satsi_<SAT:code>_shift): Likewise.
21820 (arm_zero_extendqisi2addsi): Likewise.
21821 (arm_extendqisi2addsi): Likewise.
21822 (clzsi2): Update for attribute changes.
21823 (rbitsi2): Likewise.
21824 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
21826 (arm_usatsihi): Likewise.
21827 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
21829 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
21831 * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
21832 "arlo_imm". Rename "alu_reg" to "arlo_reg". Rename "simple_alu_shift"
21833 to "extend". Split "alu_shift" into "shift" and "arlo_shift". Split
21834 "alu_shift_reg" into "shift_reg" and "arlo_shift_reg". List types
21835 in alphabetical order.
21836 (attribute "core_cycles"): Update for attribute changes.
21837 (arm_addsi3): Likewise.
21838 (addsi3_compare0): Likewise.
21839 (addsi3_compare0_scratch): Likewise.
21840 (addsi3_compare_op1): Likewise.
21841 (addsi3_compare_op2): Likewise.
21842 (compare_addsi2_op0): Likewise.
21843 (compare_addsi2_op1): Likewise.
21844 (addsi3_carryin_shift_<optab>): Likewise.
21845 (subsi3_carryin_shift): Likewise.
21846 (rsbsi3_carryin_shift): Likewise.
21847 (arm_subsi3_insn): Likewise.
21848 (subsi3_compare0): Likewise.
21849 (subsi3_compare): Likewise.
21850 (arm_andsi3_insn): Likewise.
21851 (thumb1_andsi3_insn): Likewise.
21852 (andsi3_compare0): Likewise.
21853 (andsi3_compare0_scratch): Likewise.
21854 (zeroextractsi_compare0_scratch
21855 (andsi_not_shiftsi_si): Likewise.
21856 (iorsi3_insn): Likewise.
21857 (iorsi3_compare0): Likewise.
21858 (iorsi3_compare0_scratch): Likewise.
21859 (arm_xorsi3): Likewise.
21860 (thumb1_xorsi3_insn): Likewise.
21861 (xorsi3_compare0): Likewise.
21862 (xorsi3_compare0_scratch): Likewise.
21863 (satsi_<SAT:code>_shift): Likewise.
21865 (arm_shiftsi3): Likewise.
21866 (shiftsi3_compare0): Likewise.
21867 (not_shiftsi): Likewise.
21868 (not_shiftsi_compare0): Likewise.
21869 (not_shiftsi_compare0_scratch): Likewise.
21870 (arm_one_cmplsi2): Likewise.
21871 (thumb_one_complsi2): Likewise.
21872 (notsi_compare0): Likewise.
21873 (notsi_compare0_scratch): Likewise.
21874 (thumb1_zero_extendhisi2): Likewise.
21875 (arm_zero_extendhisi2): Likewise.
21876 (arm_zero_extendhisi2_v6): Likewise.
21877 (arm_zero_extendhisi2addsi): Likewise.
21878 (thumb1_zero_extendqisi2): Likewise.
21879 (thumb1_zero_extendqisi2_v6): Likewise.
21880 (arm_zero_extendqisi2): Likewise.
21881 (arm_zero_extendqisi2_v6): Likewise.
21882 (arm_zero_extendqisi2addsi): Likewise.
21883 (thumb1_extendhisi2): Likewise.
21884 (arm_extendhisi2): Likewise.
21885 (arm_extendhisi2_v6): Likewise.
21886 (arm_extendqisi): Likewise.
21887 (arm_extendqisi_v6): Likewise.
21888 (arm_extendqisi2addsi): Likewise.
21889 (thumb1_extendqisi2): Likewise.
21890 (thumb1_movdi_insn): Likewise.
21891 (arm_movsi_insn): Likewise.
21892 (movsi_compare0): Likewise.
21893 (movhi_insn_arch4): Likewise.
21894 (movhi_bytes): Likewise.
21895 (arm_movqi_insn): Likewise.
21896 (thumb1_movqi_insn): Likewise.
21897 (arm32_movhf): Likewise.
21898 (thumb1_movhf): Likewise.
21899 (arm_movsf_soft_insn): Likewise.
21900 (thumb1_movsf_insn): Likewise.
21901 (movdf_soft_insn): Likewise.
21902 (thumb_movdf_insn): Likewise.
21903 (arm_cmpsi_insn): Likewise.
21904 (cmpsi_shiftsi): Likewise.
21905 (cmpsi_shiftsi_swp): Likewise.
21906 (arm_cmpsi_negshiftsi_si): Likewise.
21907 (movsicc_insn): Likewise.
21908 (movsfcc_soft_insn): Likewise.
21909 (arith_shiftsi): Likewise.
21910 (arith_shiftsi_compare0
21911 (arith_shiftsi_compare0_scratch
21912 (sub_shiftsi): Likewise.
21913 (sub_shiftsi_compare0
21914 (sub_shiftsi_compare0_scratch
21915 (and_scc): Likewise.
21916 (cond_move): Likewise.
21917 (if_plus_move): Likewise.
21918 (if_move_plus): Likewise.
21919 (if_move_not): Likewise.
21920 (if_not_move): Likewise.
21921 (if_shift_move): Likewise.
21922 (if_move_shift): Likewise.
21923 (if_shift_shift): Likewise.
21924 (if_not_arith): Likewise.
21925 (if_arith_not): Likewise.
21926 (cond_move_not): Likewise.
21927 (thumb1_ashlsi3): Set type attribute.
21928 (thumb1_ashrsi3): Likewise.
21929 (thumb1_lshrsi3): Likewise.
21930 (thumb1_rotrsi3): Likewise.
21931 (shiftsi3_compare0_scratch): Likewise.
21932 * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
21933 (neon_mov<mode>): Likewise.
21934 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
21936 (thumb2_movsi_insn): Likewise.
21937 (thumb2_cmpsi_neg_shiftsi): Likewise.
21938 (thumb2_extendqisi_v6): Likewise.
21939 (thumb2_zero_extendhisi2_v6): Likewise.
21940 (thumb2_zero_extendqisi2_v6): Likewise.
21941 (thumb2_shiftsi3_short): Likewise.
21942 (thumb2_addsi3_compare0_scratch): Likewise.
21943 (orsi_not_shiftsi_si): Likewise.
21944 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
21945 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
21947 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
21948 (1020alu_shift_op): Likewise.
21949 (1020alu_shift_reg_op): Likewise.
21950 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
21951 (alu_shift_op): Likewise.
21952 (alu_shift_reg_op): Likewise.
21953 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
21954 (11_alu_shift_op): Likewise.
21955 (11_alu_shift_reg_op): Likewise.
21956 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
21957 (9_alu_shift_reg_op): Likewise.
21958 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
21960 (cortex_a15_alu_shift): Likewise.
21961 (cortex_a15_alu_shift_reg): Likewise.
21962 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
21964 (cortex_a5_alu_shift): Likewise.
21965 * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
21967 (cortex_a53_alu_shift): Likewise.
21968 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
21970 (cortex_a7_alu_reg): Likewise.
21971 (cortex_a7_alu_shift): Likewise.
21972 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
21974 (cortex_a8_alu_shift): Likewise.
21975 (cortex_a8_alu_shift_reg): Likewise.
21976 (cortex_a8_mov): Likewise.
21977 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
21978 (cortex_a9_dp_shift): Likewise.
21979 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
21981 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
21983 (cortex_r4_mov): Likewise.
21984 (cortex_r4_alu_shift): Likewise.
21985 (cortex_r4_alu_shift_reg): Likewise.
21986 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
21987 (526_alu_shift_op): Likewise.
21988 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
21989 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
21990 (626te_alu_shift_op): Likewise.
21991 * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
21992 (726te_alu_op): Likewise.
21993 (726te_alu_shift_op): Likewise.
21994 (726te_alu_shift_reg_op): Likewise.
21995 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
21996 (mp626_alu_shift_op): Likewise.
21997 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
21998 (pj4_alu_e1_conds): Likewise.
21999 (pj4_alu): Likewise.
22000 (pj4_alu_conds): Likewise.
22001 (pj4_shift): Likewise.
22002 (pj4_shift_conds): Likewise.
22003 (pj4_alu_shift): Likewise.
22004 (pj4_alu_shift_conds): Likewise.
22005 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
22007 (cortexa7_older_only): Likewise.
22008 (cortexa7_younger): Likewise.
22010 2013-07-18 David Malcolm <dmalcolm@redhat.com>
22012 * ipa-pure-const.c (generate_summary): Rename to...
22013 (pure_const_generate_summary): ... this.
22015 2013-07-17 Iain Sandoe <iain@codesourcery.com>
22017 * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
22019 2013-07-17 Yvan Roux <yvan.roux@linaro.org>
22022 * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
22025 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22027 * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
22028 enabled without -march=zEC12.
22029 * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
22032 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
22034 * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
22035 (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
22036 (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
22037 terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
22038 (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
22039 * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
22040 ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
22042 <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
22043 and ISA_HAS_NMADD3_NMSUB3.
22044 * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
22045 (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
22046 (nmsub4<mode>, nmsub3<mode>): Likewise.
22047 (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
22049 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
22051 * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
22052 TARGET_MIPS5400 checking.
22054 2013-07-16 Jakub Jelinek <jakub@redhat.com>
22055 Peter Bergner <bergner@vnet.ibm.com>
22057 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
22058 registers in the comment.
22059 (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
22060 (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
22061 rather than FIRST_PSEUDO_REGISTERS.
22063 2013-07-16 Peter Bergner <bergner@vnet.ibm.com>
22065 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
22066 enable extra ISA flags with TARGET_HTM.
22068 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
22070 * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
22073 2013-07-15 Cong Hou <congh@google.com>
22075 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
22076 in compare function for sorting.
22078 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
22080 * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
22081 * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
22082 * config/rs6000/rs6000.opt: Add -mhtm option.
22083 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
22084 (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
22085 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
22086 __HTM__ if the HTM instructions are available.
22087 * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
22088 htm_spr_reg_operand): New define_predicates.
22089 * config/rs6000/rs6000.md (define_attr "type"): Add htm.
22090 (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
22092 * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
22093 BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
22094 HTM builtin functions.
22095 * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
22096 (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
22097 (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
22098 (rs6000_builtin_mask_calculate): Likewise.
22099 (rs6000_option_override_internal): Likewise.
22100 (bdesc_htm): Add new HTM builtin support.
22101 (htm_spr_num): New function.
22102 (htm_spr_regno): Likewise.
22103 (rs6000_htm_spr_icode): Likewise.
22104 (htm_expand_builtin): Likewise.
22105 (htm_init_builtins): Likewise.
22106 (rs6000_expand_builtin): Add support for HTM builtin functions.
22107 (rs6000_init_builtins): Likewise.
22108 (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
22110 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
22111 (TARGET_HTM, MASK_HTM): Define macros.
22112 (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
22113 (FIXED_REGISTERS): Likewise.
22114 (CALL_USED_REGISTERS): Likewise.
22115 (CALL_REALLY_USED_REGISTERS): Likewise.
22116 (REG_ALLOC_ORDER): Likewise.
22117 (enum reg_class): Likewise.
22118 (REG_CLASS_NAMES): Likewise.
22119 (REG_CLASS_CONTENTS): Likewise.
22120 (REGISTER_NAMES): Likewise.
22121 (ADDITIONAL_REGISTER_NAMES): Likewise.
22122 (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
22123 RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
22124 (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
22125 * config/rs6000/htm.md: New file.
22126 * config/rs6000/htmintrin.h: New file.
22127 * config/rs6000/htmxlintrin.h: New file.
22129 2013-07-15 Marcus Shawcroft <marcus.shawcroft@arm.com>
22131 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
22132 Define SYMBOL_TINY_GOT, update comment.
22133 * config/aarch64/aarch64.c
22134 (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
22135 (aarch64_expand_mov_immediate): Likewise.
22136 (aarch64_print_operand): Likewise.
22137 (aarch64_classify_symbol): Likewise.
22138 * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
22139 (ldr_got_tiny): Define.
22141 2013-07-13 Tobias Grosser <tobias@grosser.es>
22143 PR tree-optimization/54094
22144 * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
22145 scheduling dimension for the parallelism check from the polyhedral
22146 information in the AST.
22147 * graphite-dependences.c (carries_deps): Do not assume the schedule is
22150 2013-07-13 Jason Merrill <jason@redhat.com>
22152 * print-tree.c (debug_vec_tree): Use debug_raw.
22153 (debug_raw (vec<tree, va_gc> &)): New.
22154 (debug_raw (vec<tree, va_gc> *)): New.
22155 * tree.h: Declare them.
22157 2013-07-13 Bin Cheng <bin.cheng@arm.com>
22159 * ifcvt.c (ifcvt_after_combine): New static variable.
22160 (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
22162 (if_convert): New parameter after_combine. Set ifcvt_after_combine.
22163 (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
22164 rest_of_handle_if_after_reload): Pass new argument for if_convert.
22166 2013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
22168 * config/mips/mips.c (mips_expand_call): Remove empty statement.
22170 2013-07-12 Michael Matz <matz@suse.de>
22172 PR middle-end/55771
22173 * convert.c (convert_to_real): Reject non-float inner types.
22175 2013-07-12 Tejas Belagod <tejas.belagod@arm.com>
22177 * config/aarch64/aarch64-protos.h
22178 (aarch64_simd_immediate_valid_for_move): Remove.
22179 * config/aarch64/aarch64.c (simd_immediate_info): New member.
22180 (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
22182 (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
22184 2013-07-11 Steve Ellcey <sellcey@mips.com>
22186 * config/mips/mips.c (mips_conditional_register_usage): Do not
22187 use t[0-7] registers in MIPS16 mode when optimizing for size.
22189 2013-07-11 Sriraman Tallam <tmsriram@google.com>
22191 * config/i386/i386.c (dispatch_function_versions): Fix array
22192 indexing of function_version_info to match actual_versions.
22194 2013-07-11 Teresa Johnson <tejohnson@google.com>
22196 * vec.h (struct va_gc): Move release out-of-line.
22197 (va_gc::release): Call ggc_free on released vec.
22199 2013-07-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22201 * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
22202 Require GOT register as additional operand in UNSPEC.
22203 ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
22204 ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
22205 ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
22206 ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
22207 ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
22208 ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
22209 ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
22211 2013-07-11 Georg-Johann Lay <avr@gjlay.de>
22214 * config/avr/avr.c (avr_set_current_function): Sanity-check signal
22215 name seen by assembler/linker rather if available.
22217 2013-07-11 Andreas Schwab <schwab@suse.de>
22219 * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
22221 2013-07-10 Vladimir Makarov <vmakarov@redhat.com>
22223 * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
22225 2013-07-10 Joseph Myers <joseph@codesourcery.com>
22227 * doc/tm.texi.in: Move hook documentation to ....
22228 * target.def: ... here.
22230 * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
22231 text on @hook line.
22232 * doc/tm.texi: Regenerate.
22234 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
22237 * doc/invoke.texi: Document -Wconditionally-supported.
22239 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
22242 * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
22245 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
22248 * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
22249 (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
22250 (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
22251 Remove duplicate devices.
22252 * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
22253 * config/avr/t-multilib: Regenerate.
22254 * config/avr/avr-tables.opt: Regenerate.
22255 * doc/avr-mmcu.texi: Regenerate.
22257 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
22260 * config/avr/avr.opt (Waddr-space-convert): Fix typo.
22262 2013-07-10 Graham Stott <graham.stott@btinternet.com>
22264 * config/mips/mips.c (mips_rtx_costs): Very slightly increase
22265 the cost of MULT when optimizing for size.
22267 2013-07-10 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22269 * config/cr16/cr16-protos.h: Don't include target.h.
22271 2013-07-09 Joseph Myers <joseph@codesourcery.com>
22273 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
22274 adjust register size for TDmode and TFmode for VSX registers.
22276 2013-07-08 Kai Tietz <ktietz@redhat.com>
22279 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
22280 hook_bool_const_tree_true.
22282 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22284 * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
22285 * config/s390/s390.h: Remove F*_REGNUM macro definitions.
22286 * config/s390/s390.md: Define FPR*_REGNUM constants.
22287 Fix FPR2_REGNUM constant (18 -> 17).
22288 ("*trunc<BFP:mode><DFP_ALL:mode>2")
22289 ("*trunc<DFP_ALL:mode><BFP:mode>2")
22290 ("trunc<BFP:mode><DFP_ALL:mode>2")
22291 ("trunc<DFP_ALL:mode><BFP:mode>2")
22292 ("*extend<BFP:mode><DFP_ALL:mode>2")
22293 ("*extend<DFP_ALL:mode><BFP:mode>2")
22294 ("extend<BFP:mode><DFP_ALL:mode>2")
22295 ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
22298 2013-07-08 Graham Stott <graham.stott@btinternet.com>
22300 * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
22302 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22304 * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
22305 and cfun_fpr_bit_p to cfun_fpr_save_p.
22306 (s390_frame_area, s390_register_info, s390_frame_info)
22307 (s390_emit_prologue, s390_emit_epilogue)
22308 (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
22310 * config/s390/s390.h: Define *_REGNUM macros for floating point
22313 2013-07-08 Eric Botcazou <ebotcazou@adacore.com>
22315 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
22317 2013-07-08 Po-Chun Chang <pchang9@cs.wisc.edu>
22319 PR rtl-optimization/57786
22320 * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
22321 and break out of the loop when it is set to false.
22323 2013-07-08 Jakub Jelinek <jakub@redhat.com>
22326 * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
22327 Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
22328 (const_int 63)) 0)).
22329 * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
22330 using simplify_gen_unary instead of gen_rtx_*_EXTEND.
22331 * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
22333 PR rtl-optimization/57829
22334 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
22335 mask bits outside of mode are just sign-extension from mode to HWI.
22337 2013-07-08 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
22339 * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
22340 * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
22341 adjust_address instead of change_address to keep info about alignment.
22342 (emit_strmov): Remove.
22343 (emit_memmov): New function.
22344 (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
22345 (expand_movmem_epilogue): Likewise and return updated rtx for
22347 (expand_constant_movmem_prologue): Likewise and return updated rtx for
22348 destination and source.
22349 (decide_alignment): Refactor, handle vector_loop.
22350 (ix86_expand_movmem): Likewise.
22351 (ix86_expand_setmem): Likewise.
22352 * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
22354 2013-07-07 Uros Bizjak <ubizjak@gmail.com>
22356 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
22357 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
22359 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
22361 * config/i386/sse.md (sse_movlhps): Change alternative 3
22362 of operand 2 to "m".
22364 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
22367 * config/i386/sse.md (iptr): New mode attribute.
22368 (sse2_movq128): Add pointer size overrides for Intel asm dialect.
22369 (<sse>_vm<plusminus_insn><mode>3): Ditto.
22370 (<sse>_vmmul<mode>3): Ditto.
22371 (<sse>_vmdiv<mode>3): Ditto.
22372 (sse_vmrcpv4sf2): Ditto.
22373 (<sse>_vmsqrt<mode>2): Ditto.
22374 (sse_vmrsqrtv4sf2): Ditto.
22375 (<sse>_vm<code><mode>3): Ditto.
22376 (avx_vmcmp<mode>3): Ditto.
22377 (<sse>_vmmaskcmp<mode>3): Ditto.
22378 (<sse>_comi): Ditto.
22379 (<sse>_ucomi): Ditto.
22380 (*xop_vmfrcz_<mode>): Ditto.
22381 (*fmai_fmadd_<mode>): Ditto.
22382 (*fmai_fmsub_<mode>): Ditto.
22383 (*fmai_fnmadd_<mode>): Ditto.
22384 (*fmai_fnmsub_<mode>): Ditto.
22385 (*fma4i_vmfmadd_<mode>): Ditto.
22386 (*fma4i_vmfmsub_<mode>): Ditto.
22387 (*fma4i_vmfnmadd_<mode>): Ditto.
22388 (*fma4i_vmfnmsub_<mode>): Ditto.
22389 (*xop_vmfrcz_<mode>): Ditto.
22390 (sse_cvtps2pi): Ditto.
22391 (sse_cvttps2pi): Ditto.
22392 (sse_cvtss2si): Ditto.
22393 (sse_cvtss2si_2): Ditto.
22394 (sse_cvtss2siq_2): Ditto.
22395 (sse_cvttss2si): Ditto.
22396 (sse_cvttss2siq): Ditto.
22397 (sse_cvtsd2si): Ditto.
22398 (sse_cvtsd2si_2): Ditto.
22399 (sse_cvtsd2siq_2): Ditto.
22400 (sse_cvttsd2si): Ditto.
22401 (sse_cvttsd2siq): Ditto.
22402 (sse_cvtsd2ss): Ditto.
22403 (sse_cvtss2sd): Ditto.
22404 (avx2_pbroadcast<mode>): Ditto.
22405 (avx2_pbroadcast<mode>_1): Ditto.
22406 (*avx_vperm_broadcast_v4sf): Ditto.
22408 (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
22409 (sse_movlhps): Ditto.
22410 (sse_storehps): Ditto.
22411 (sse_loadhps): Ditto.
22412 (sse_storelps): Ditto.
22413 (sse_loadlps): Ditto.
22414 (*vec_concatv4sf): Ditto.
22415 (*vec_interleave_highv2df): Ditto.
22416 (*vec_interleave_lowv2df): Ditto.
22417 (*vec_extractv2df_1_sse): Ditto.
22418 (*vec_extractv2df_0_sse): Ditto.
22419 (sse2_storelpd): Ditto.
22420 (sse2_loadlpd): Ditto.
22421 (sse2_movsd): Ditto.
22422 (*vec_concatv4si): Ditto.
22423 (vec_concatv2di): Ditto.
22425 * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
22426 for Intel asm dialect.
22427 (mmx_punpcklwd): Ditto.
22428 (mmx_punpckldq): Ditto.
22430 * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
22431 for intel assembler dialect.
22433 2013-07-06 Jakub Jelinek <jakub@redhat.com>
22436 * fold-const.c (tree_call_nonnegative_warnv_p): Return true
22437 for BUILT_IN_C{LZ,LRSB}*.
22438 * tree.h (CASE_INT_FN): Add FN##IMAX case.
22439 * tree-vrp.c (extract_range_basic): Handle
22440 BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*. For
22441 BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
22442 fall thru to code calling set_value*.
22443 * builtins.c (expand_builtin): Remove *IMAX cases.
22444 (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
22445 if width is bigger than 2*HWI.
22447 2013-07-05 Vladimir Makarov <vmakarov@redhat.com>
22449 PR rtl-optimization/55342
22450 * lra-int.h (lra_subreg_reload_pseudos): New.
22451 * lra.c: Add undoing optional reloads to the block diagram.
22452 (lra_subreg_reload_pseudos): New.
22453 (lra_optional_reload_pseudos): Change comments.
22454 (lra): Init and clear lra_subreg_reload_pseudos. Clear
22455 lra_optional_reload_pseudos after undo transformations.
22456 * lra-assigns.c (pseudo_prefix_title): New.
22457 (lra_setup_reg_renumber): Use it.
22458 (spill_for): Ditto. Check subreg reload pseudos too.
22459 (assign_by_spills): Consider subreg reload pseudos too.
22460 * lra-constraints.c (simplify_operand_subreg): Use
22461 lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
22462 (curr_insn_transform): Recognize and do optional reloads.
22463 (undo_optional_reloads): New.
22464 (lra_undo_inheritance): Call undo_optional_reloads.
22466 2013-07-05 Thomas Quinot <quinot@adacore.com>
22468 * tree-complex.c (expand_complex_operations_1): Fix typo.
22470 2013-07-04 Tejas Belagod <tejas.belagod@arm.com>
22472 * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
22473 (tune_params): New member 'const vec_costs'.
22474 * config/aarch64/aarch64.c (generic_vector_cost): New.
22475 (generic_tunings): New member 'generic_vector_cost'.
22476 (aarch64_builtin_vectorization_cost): New.
22477 (aarch64_add_stmt_cost): New.
22478 (TARGET_VECTORIZE_ADD_STMT_COST): New.
22479 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
22481 2013-07-03 Jakub Jelinek <jakub@redhat.com>
22484 * config/i386/predicates.md (vsib_address_operand): Disallow
22485 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
22487 2013-07-03 Hans-Peter Nilsson <hp@bitrange.com>
22489 PR middle-end/55030
22490 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
22491 expand_builtin_setjmp_receiver.
22492 (expand_label): Adjust, call expand_builtin_setjmp_receiver
22493 with NULL for the label parameter.
22494 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
22495 the frame-pointer. Adjust comments.
22496 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
22497 only if LABEL is non-NULL.
22499 2013-07-03 Yufeng Zhang <yufeng.zhang@arm.com>
22501 * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
22502 (ARM_ABI_AAPCS64): Ditto.
22504 (ARM_DEFAULT_ABI): Ditto.
22506 2013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
22508 * config/aarch64/aarch64-builtins.c
22509 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
22510 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
22512 * config/aarch64/aarch64-simd.md
22513 (aarch64_ld1<VALL:mode>): New.
22514 (aarch64_st1<VALL:mode>): Likewise.
22515 * config/aarch64/arm_neon.h
22516 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
22518 2013-07-02 Sriraman Tallam <tmsriram@google.com>
22520 * config/i386/i386.c (gate_insert_vzeroupper): Check if
22522 (ix86_option_override_internal):Turn on all -mavx target flags by
22523 default as they are dependent on AVX anyway.
22525 2013-07-02 Cary Coutant <ccoutant@google.com>
22527 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
22528 deterministic hash.
22529 (loc_checksum_ordered): Likewise.
22530 (hash_loc_operands): Remove inline keyword.
22532 2013-07-02 Jakub Jelinek <jakub@redhat.com>
22534 PR tree-optimization/57741
22535 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
22536 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
22537 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
22538 Allow REAL_CST step_exprs if flag_associative_math.
22539 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
22541 2013-07-02 Ian Bolton <ian.bolton@arm.com>
22543 * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
22545 2013-07-02 Ian Bolton <ian.bolton@arm.com>
22547 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
22549 2013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22551 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
22553 (iorsi3_insn): Likewise.
22554 (arm_xorsi3): Likewise.
22556 2013-07-01 Sofiane Naci <sofiane.naci@arm.com>
22558 * arm.md (attribute "wtype"): Delete. Move attribute values from here
22560 (attribute "type"): ... here, and prefix with "wmmx_".
22561 (attribute "core_cycles"): Update for attribute changes.
22562 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
22563 (tbcstv4hi): Likewise.
22564 (tbcstv2si): Likewise.
22565 (iwmmxt_iordi3): Likewise.
22566 (iwmmxt_xordi3): Likewise.
22567 (iwmmxt_anddi3): Likewise.
22568 (iwmmxt_nanddi3): Likewise.
22569 (iwmmxt_arm_movdi): Likewise.
22570 (iwmmxt_movsi_insn): Likewise.
22571 (mov<mode>_internal): Likewise.
22572 (and<mode>3_iwmmxt): Likewise.
22573 (ior<mode>3_iwmmxt): Likewise.
22574 (xor<mode>3_iwmmxt): Likewise.
22575 (add<mode>3_iwmmxt): Likewise.
22576 (ssaddv8qi3): Likewise.
22577 (ssaddv4hi3): Likewise.
22578 (ssaddv2si3): Likewise.
22579 (usaddv8qi3): Likewise.
22580 (usaddv4hi3): Likewise.
22581 (usaddv2si3): Likewise.
22582 (sub<mode>3_iwmmxt): Likewise.
22583 (sssubv8qi3): Likewise.
22584 (sssubv4hi3): Likewise.
22585 (sssubv2si3): Likewise.
22586 (ussubv8qi3): Likewise.
22587 (ussubv4hi3): Likewise.
22588 (ussubv2si3): Likewise.
22589 (mulv4hi3_iwmmxt): Likewise.
22590 (smulv4hi3_highpart): Likewise.
22591 (umulv4hi3_highpart): Likewise.
22592 (iwmmxt_wmacs): Likewise.
22593 (iwmmxt_wmacsz): Likewise.
22594 (iwmmxt_wmacu): Likewise.
22595 (iwmmxt_wmacuz): Likewise.
22596 (iwmmxt_clrdi): Likewise.
22597 (iwmmxt_clrv8qi): Likewise.
22598 (iwmmxt_clr4hi): Likewise.
22599 (iwmmxt_clr2si): Likewise.
22600 (iwmmxt_uavgrndv8qi3): Likewise.
22601 (iwmmxt_uavgrndv4hi3): Likewise.
22602 (iwmmxt_uavgv8qi3): Likewise.
22603 (iwmmxt_uavgv4hi3): Likewise.
22604 (iwmmxt_tinsrb): Likewise.
22605 (iwmmxt_tinsrh): Likewise.
22606 (iwmmxt_tinsrw): Likewise.
22607 (iwmmxt_textrmub): Likewise.
22608 (iwmmxt_textrmsb): Likewise.
22609 (iwmmxt_textrmuh): Likewise.
22610 (iwmmxt_textrmsh): Likewise.
22611 (iwmmxt_textrmw): Likewise.
22612 (iwmxxt_wshufh): Likewise.
22613 (eqv8qi3): Likewise.
22614 (eqv4hi3): Likewise.
22615 (eqv2si3): Likewise.
22616 (gtuv8qi3): Likewise.
22617 (gtuv4hi3): Likewise.
22618 (gtuv2si3): Likewise.
22619 (gtv8qi3): Likewise.
22620 (gtv4hi3): Likewise.
22621 (gtv2si3): Likewise.
22622 (smax<mode>3_iwmmxt): Likewise.
22623 (umax<mode>3_iwmmxt): Likewise.
22624 (smin<mode>3_iwmmxt): Likewise.
22625 (umin<mode>3_iwmmxt): Likewise.
22626 (iwmmxt_wpackhss): Likewise.
22627 (iwmmxt_wpackwss): Likewise.
22628 (iwmmxt_wpackdss): Likewise.
22629 (iwmmxt_wpackhus): Likewise.
22630 (iwmmxt_wpackwus): Likewise.
22631 (iwmmxt_wpackdus): Likewise.
22632 (iwmmxt_wunpckihb): Likewise.
22633 (iwmmxt_wunpckihh): Likewise.
22634 (iwmmxt_wunpckihw): Likewise.
22635 (iwmmxt_wunpckilb): Likewise.
22636 (iwmmxt_wunpckilh): Likewise.
22637 (iwmmxt_wunpckilw): Likewise.
22638 (iwmmxt_wunpckehub): Likewise.
22639 (iwmmxt_wunpckehuh): Likewise.
22640 (iwmmxt_wunpckehuw): Likewise.
22641 (iwmmxt_wunpckehsb): Likewise.
22642 (iwmmxt_wunpckehsh): Likewise.
22643 (iwmmxt_wunpckehsw): Likewise.
22644 (iwmmxt_wunpckelub): Likewise.
22645 (iwmmxt_wunpckeluh): Likewise.
22646 (iwmmxt_wunpckeluw): Likewise.
22647 (iwmmxt_wunpckelsb): Likewise.
22648 (iwmmxt_wunpckelsh): Likewise.
22649 (iwmmxt_wunpckelsw): Likewise.
22650 (ror<mode>3): Likewise.
22651 (ashr<mode>3_iwmmxt): Likewise.
22652 (lshr<mode>3_iwmmxt): Likewise.
22653 (ashl<mode>3_iwmmxt): Likewise.
22654 (ror<mode>3_di): Likewise.
22655 (ashr<mode>3_di): Likewise.
22656 (lshr<mode>3_di): Likewise.
22657 (ashl<mode>3_di): Likewise.
22658 (iwmmxt_wmadds): Likewise.
22659 (iwmmxt_wmaddu): Likewise.
22660 (iwmmxt_tmia): Likewise.
22661 (iwmmxt_tmiaph): Likewise.
22662 (iwmmxt_tmiabb): Likewise.
22663 (iwmmxt_tmiatb): Likewise.
22664 (iwmmxt_tmiabt): Likewise.
22665 (iwmmxt_tmiatt): Likewise.
22666 (iwmmxt_tmovmskb): Likewise.
22667 (iwmmxt_tmovmskh): Likewise.
22668 (iwmmxt_tmovmskw): Likewise.
22669 (iwmmxt_waccb): Likewise.
22670 (iwmmxt_wacch): Likewise.
22671 (iwmmxt_waccw): Likewise.
22672 (iwmmxt_waligni): Likewise.
22673 (iwmmxt_walignr): Likewise.
22674 (iwmmxt_walignr0): Likewise.
22675 (iwmmxt_walignr1): Likewise.
22676 (iwmmxt_walignr2): Likewise.
22677 (iwmmxt_walignr3): Likewise.
22678 (iwmmxt_wsadb): Likewise.
22679 (iwmmxt_wsadh): Likewise.
22680 (iwmmxt_wsadbz): Likewise.
22681 (iwmmxt_wsadhz): Likewise.
22682 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
22683 (iwmmxt_wabsdiffb): Likewise.
22684 (iwmmxt_wabsdiffh): Likewise.
22685 (iwmmxt_wabsdiffw): Likewise.
22686 (iwmmxt_waddsubhx): Likewise
22687 (iwmmxt_wsubaddhx): Likewise.
22688 (addc<mode>3): Likewise.
22689 (iwmmxt_avg4): Likewise.
22690 (iwmmxt_avg4r): Likewise.
22691 (iwmmxt_wmaddsx): Likewise.
22692 (iwmmxt_wmaddux): Likewise.
22693 (iwmmxt_wmaddsn): Likewise.
22694 (iwmmxt_wmaddun): Likewise.
22695 (iwmmxt_wmulwsm): Likewise.
22696 (iwmmxt_wmulwum): Likewise.
22697 (iwmmxt_wmulsmr): Likewise.
22698 (iwmmxt_wmulumr): Likewise.
22699 (iwmmxt_wmulwsmr): Likewise.
22700 (iwmmxt_wmulwumr): Likewise.
22701 (iwmmxt_wmulwl): Likewise.
22702 (iwmmxt_wqmulm): Likewise.
22703 (iwmmxt_wqmulwm): Likewise.
22704 (iwmmxt_wqmulmr): Likewise.
22705 (iwmmxt_wqmulwmr): Likewise.
22706 (iwmmxt_waddbhusm): Likewise.
22707 (iwmmxt_waddbhusl): Likewise.
22708 (iwmmxt_wqmiabb): Likewise.
22709 (iwmmxt_wqmiabt): Likewise.
22710 (iwmmxt_wqmiatb): Likewise.
22711 (iwmmxt_wqmiatt): Likewise.
22712 (iwmmxt_wqmiabbn): Likewise.
22713 (iwmmxt_wqmiabtn): Likewise.
22714 (iwmmxt_wqmiatbn): Likewise.
22715 (iwmmxt_wqmiattn): Likewise.
22716 (iwmmxt_wmiabb): Likewise.
22717 (iwmmxt_wmiabt): Likewise.
22718 (iwmmxt_wmiatb): Likewise.
22719 (iwmmxt_wmiatt): Likewise.
22720 (iwmmxt_wmiabbn): Likewise.
22721 (iwmmxt_wmiabtn): Likewise.
22722 (iwmmxt_wmiatbn): Likewise.
22723 (iwmmxt_wmiattn): Likewise.
22724 (iwmmxt_wmiawbb): Likewise.
22725 (iwmmxt_wmiawbt): Likewise.
22726 (iwmmxt_wmiawtb): Likewise.
22727 (iwmmxt_wmiawtt): Likewise.
22728 (iwmmxt_wmiawbbn): Likewise.
22729 (iwmmxt_wmiawbtn): Likewise.
22730 (iwmmxt_wmiawtbn): Likewise.
22731 (iwmmxt_wmiawttn): Likewise.
22732 (iwmmxt_wmerge): Likewise.
22733 (iwmmxt_tandc<mode>3): Likewise.
22734 (iwmmxt_torc<mode>3): Likewise.
22735 (iwmmxt_torvsc<mode>3): Likewise.
22736 (iwmmxt_textrc<mode>3): Likewise.
22737 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
22738 (wmmxt_pack): Likewise.
22739 (wmmxt_mult_c1): Likewise.
22740 (wmmxt_mult_c2): Likewise.
22741 (wmmxt_alu_c1): Likewise.
22742 (wmmxt_alu_c2): Likewise.
22743 (wmmxt_alu_c3): Likewise.
22744 (wmmxt_transfer_c1): Likewise.
22745 (wmmxt_transfer_c2): Likewise.
22746 (wmmxt_transfer_c3): Likewise.
22747 (marvell_f_iwmmxt_wstr): Likewise.
22748 (marvell_f_iwmmxt_wldr): Likewise.
22750 2013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
22752 * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
22754 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
22757 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
22758 * lra-constraints.c (need_for_split_p): Check call used hard regs
22759 living through calls.
22761 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
22762 call used regs for call insn.
22764 2013-06-28 Jakub Jelinek <jakub@redhat.com>
22767 * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
22768 mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
22770 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
22772 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
22774 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
22776 * lra-constraints.c (need_for_split_p): Check call used hard regs
22777 living through calls.
22779 2013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
22782 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
22783 to tie with any other modes. Eliminate Altivec vector mode tests,
22784 since these are a subset of ALTIVEC or VSX vector modes. Simplify
22785 code, to return 0 if testing MODE2 for a condition, if we've
22786 already tested MODE1 for the same condition.
22788 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
22790 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
22793 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
22795 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
22796 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
22798 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
22800 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
22802 (aarch64_symbolic_constant_p): Remove.
22803 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
22804 static. Fix line length and white space.
22805 (aarch64_symbolic_constant_p): Remove.
22806 * config/aarch64/predicates.md (aarch64_valid_symref):
22807 Use aarch64_classify_symbol_expression.
22809 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22811 * config/arm/constraints.md (Ts): New constraint.
22812 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
22814 (compare_scc): Use "Ts" constraint for operand 0.
22815 (ior_scc_scc): Likewise.
22816 (and_scc_scc): Likewise.
22817 (and_scc_scc_nodom): Likewise.
22818 (ior_scc_scc_cmp): Likewise for operand 7.
22819 (and_scc_scc_cmp): Likewise.
22820 * config/arm/thumb2.md (thumb2_movsi_insn):
22821 Add alternatives for 16-bit encodings.
22822 (thumb2_movhi_insn): Likewise.
22823 (thumb2_movsicc_insn): Likewise.
22824 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
22825 (thumb2_negscc): Use "Ts" constraint.
22826 Move mvn instruction outside cond_exec block.
22827 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
22828 for 16-bit encodings.
22830 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22832 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
22834 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
22835 (mulsi3subsi): Likewise.
22836 (mulsidi3adddi): Likewise.
22837 (mulsidi3_v6): Likewise.
22838 (umulsidi3_v6): Likewise.
22839 (umulsidi3adddi_v6): Likewise.
22840 (smulsi3_highpart_v6): Likewise.
22841 (umulsi3_highpart_v6): Likewise.
22842 (mulhisi3tb): Likewise.
22843 (mulhisi3bt): Likewise.
22844 (mulhisi3tt): Likewise.
22845 (maddhisi4): Likewise.
22846 (maddhisi4tb): Likewise.
22847 (maddhisi4tt): Likewise.
22848 (maddhidi4): Likewise.
22849 (maddhidi4tb): Likewise.
22850 (maddhidi4tt): Likewise.
22851 (zeroextractsi_compare0_scratch): Likewise.
22852 (insv_zero): Likewise.
22853 (insv_t2): Likewise.
22854 (anddi_notzesidi_di): Likewise.
22855 (anddi_notsesidi_di): Likewise.
22856 (andsi_notsi_si): Likewise.
22857 (iordi_zesidi_di): Likewise.
22858 (xordi_zesidi_di): Likewise.
22859 (andsi_iorsi3_notsi): Likewise.
22860 (smax_0): Likewise.
22861 (smax_m1): Likewise.
22862 (smin_0): Likewise.
22863 (not_shiftsi): Likewise.
22864 (unaligned_loadsi): Likewise.
22865 (unaligned_loadhis): Likewise.
22866 (unaligned_loadhiu): Likewise.
22867 (unaligned_storesi): Likewise.
22868 (unaligned_storehi): Likewise.
22869 (extv_reg): Likewise.
22870 (extzv_t2): Likewise.
22871 (divsi3): Likewise.
22872 (udivsi3): Likewise.
22873 (arm_zero_extendhisi2addsi): Likewise.
22874 (arm_zero_extendqisi2addsi): Likewise.
22875 (compareqi_eq0): Likewise.
22876 (arm_extendhisi2_v6): Likewise.
22877 (arm_extendqisi2addsi): Likewise.
22878 (arm_movt): Likewise.
22879 (thumb2_ldrd): Likewise.
22880 (thumb2_ldrd_base): Likewise.
22881 (thumb2_ldrd_base_neg): Likewise.
22882 (thumb2_strd): Likewise.
22883 (thumb2_strd_base): Likewise.
22884 (thumb2_strd_base_neg): Likewise.
22885 (arm_negsi2): Add alternative for 16-bit encoding.
22886 (arm_one_cmplsi2): Likewise.
22888 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22890 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
22891 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
22892 (movdfcc): Likewise.
22893 * config/arm/vfp.md (*thumb2_movsf_vfp):
22894 Disable predication for arm_restrict_it.
22895 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
22896 (*thumb2_movdfcc_vfp): Likewise.
22897 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
22898 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
22899 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
22900 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
22901 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
22902 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
22903 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
22904 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
22905 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
22906 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
22907 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
22908 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
22909 Disable predication for arm_restrict_it.
22911 2013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
22913 * config/i386/bmiintrin.h (_bextr_u32): New.
22914 (_bextr_u64): Ditto.
22916 2013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
22918 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
22919 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
22920 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
22921 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
22922 * config/mips/n32-elf.h: ...this new file.
22924 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
22927 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
22928 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
22930 2013-06-27 Catherine Moore <clm@codesourcery.com>
22932 * config/mips/mips-tables.opt: Regenerate.
22933 * config/mips/mips-cpus.def: Add m14ke and m14kec.
22934 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
22935 * doc/invoke.texi: Add -m14kc.
22937 2013-06-27 Jakub Jelinek <jakub@redhat.com>
22940 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
22941 constraints of operand 1 and 2.
22944 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
22945 to match RTL canonicalization. Swap predicates and
22946 constraints of operand 1 and 2.
22948 2013-06-27 Vladimir Makarov <vmakarov@redhat.com>
22950 * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
22951 Process OP_INOUT regs for splitting too.
22953 2013-06-27 Jakub Jelinek <jakub@redhat.com>
22955 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
22956 decl before the loop, initialize to NULL.
22957 (vectorizable_load): Initialize ptr_incr to NULL.
22959 2013-06-27 Martin Jambor <mjambor@suse.cz>
22962 * ipa-ref.h (ipa_maybe_record_reference): Declare.
22963 * ipa-ref.c (ipa_maybe_record_reference): New function.
22964 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
22965 * ipa-cp.c (create_specialized_node): Record potential references from
22967 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
22969 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
22971 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
22972 parameter 'mode' of type 'enum machine_mode mode'; change to pass
22973 'mode' to force_reg.
22974 (aarch64_add_offset): Update calls to aarch64_force_temporary.
22975 (aarch64_expand_mov_immediate): Likewise.
22977 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
22979 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
22980 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
22982 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22984 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
22985 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
22986 (struct machine_function): Add tbegin_p.
22987 (s390_canonicalize_comparison): Fold CC mode compares to
22988 conditional jump if possible.
22989 (s390_emit_jump): Return the emitted jump.
22990 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
22991 Handle CCRAWmode compares.
22992 (s390_option_override): Default to -mhtm if available.
22993 (s390_reg_clobbered_rtx): Handle floating point regs as well.
22994 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
22995 FPRs instead of df_regs_ever_live_p.
22996 (s390_optimize_nonescaping_tx): New function.
22997 (s390_init_frame_layout): Extend clobbered_regs array to cover
22999 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
23000 (s390_expand_tbegin): New function.
23001 (enum s390_builtin): New enum definition.
23002 (code_for_builtin): New array definition.
23003 (s390_init_builtins): New function.
23004 (s390_expand_builtin): New function.
23005 (TARGET_INIT_BUILTINS): Define.
23006 (TARGET_EXPAND_BUILTIN): Define.
23007 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
23008 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
23009 (s390_alc_comparison): Likewise.
23010 * config/s390/s390-modes.def: Add CCRAWmode.
23011 * config/s390/s390.h (processor_flags): Add PF_TX.
23012 (TARGET_CPU_HTM): Define macro.
23013 (TARGET_HTM): Define macro.
23014 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
23015 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
23016 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
23017 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
23018 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
23019 (TBEGIN_MASK, TBEGINC_MASK): New constants.
23020 ("*cc_to_int"): Move up.
23021 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
23022 constants other than 0.
23023 ("*ccraw_to_int"): New insn and splitter definition.
23024 ("tbegin", "tbegin_nofloat", "tbegin_retry")
23025 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
23026 ("tx_assist"): New expander.
23027 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
23028 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
23029 * config/s390/s390.opt: Add -mhtm option.
23030 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
23031 * config/s390/htmxlintrin.h: New file.
23032 * config/s390/htmintrin.h: New file.
23033 * config/s390/s390intrin.h: New file.
23034 * doc/extend.texi: Document htm builtins.
23035 * config.gcc: Add the new header files to extra_headers.
23037 2013-06-26 Thomas Schwinge <thomas@codesourcery.com>
23039 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
23040 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
23042 2013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
23043 Pat Haugen <pthaugen@us.ibm.com>
23044 Peter Bergner <bergner@vnet.ibm.com>
23046 * config/rs6000/power8.md: New.
23047 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
23048 setting for power8 entry.
23049 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
23050 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
23051 test for Power4/Power5 only.
23052 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
23054 (force_new_group): Adjust comment.
23055 * config/rs6000/rs6000.md: Include power8.md.
23057 2013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
23059 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
23060 * config/arm/arm-protos.h (arm_max_conditional_execute): New
23062 (tune_params): Update comment.
23063 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
23064 (arm_max_conditional_execute): New function.
23065 (thumb2_final_prescan_insn): Use max_insn_skipped and
23066 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
23068 2013-06-25 Jakub Jelinek <jakub@redhat.com>
23070 PR tree-optimization/57705
23071 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
23072 SSA_NAME step, provided that it is not defined inside the loop.
23073 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
23074 (get_initial_def_for_induction): Handle SSA_NAME IV step.
23076 2013-06-25 Martin Jambor <mjambor@suse.cz>
23078 PR middle-end/57670
23079 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
23080 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
23082 (ipa_note_param_call): Initialize member_ptr flag.
23083 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
23084 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
23085 (ipa_write_indirect_edge_info): Stream member_ptr flag.
23086 (ipa_read_indirect_edge_info): Likewise.
23088 2013-06-25 Richard Biener <rguenther@suse.de>
23090 PR middle-end/56977
23091 * passes.c (init_optimization_passes): Move pass_fold_builtins
23092 and pass_dce earlier with -Og.
23094 2013-06-25 Eric Botcazou <ebotcazou@adacore.com>
23096 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
23097 <BIT_FIELD_REF>: Remove trailing TAB.
23098 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
23101 2013-06-24 Martin Jambor <mjambor@suse.cz>
23103 PR tree-optimization/57358
23104 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
23105 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
23106 (ipa_analyze_params_uses): Generate pessimistic info when true.
23108 2013-06-24 Martin Jambor <mjambor@suse.cz>
23110 PR tree-optimization/57539
23111 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
23112 global.inlined_to of the new node to it. All callers changed.
23113 * ipa-inline-transform.c (clone_inlined_nodes): New variable
23114 inlining_into, pass it to cgraph_clone_node.
23115 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
23116 ipa_free_edge_args_substructures.
23117 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
23118 rdesc linked list. Do not assert rdesc edges have inlined caller.
23119 Assert we have found an rdesc in the rdesc list.
23121 2013-06-24 Richard Biener <rguenther@suse.de>
23123 * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
23124 (pointer_set_lookup): Declare.
23125 (class pointer_map): New template class implementing a
23126 generic pointer to T map.
23127 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
23128 pointer_map<T>::contains, pointer_map<T>::insert,
23129 pointer_map<T>::traverse): New functions.
23130 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
23131 (pointer_set_lookup): New function.
23132 (pointer_set_contains): Use pointer_set_lookup.
23133 (pointer_set_insert): Likewise.
23134 (insert_aux): Remove.
23135 (struct pointer_map_t): Embed a pointer_set_t.
23136 (pointer_map_create): Adjust.
23137 (pointer_map_destroy): Likewise.
23138 (pointer_map_contains): Likewise.
23139 (pointer_map_insert): Likewise.
23140 (pointer_map_traverse): Likewise.
23141 * tree-streamer.h (struct streamer_tree_cache_d): Use a
23142 pointer_map<unsigned> instead of a pointer_map_t.
23143 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
23144 (streamer_tree_cache_lookup): Likewise.
23145 (streamer_tree_cache_create): Likewise.
23146 (streamer_tree_cache_delete): Likewise.
23147 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
23148 pointer_map<unsigned> instead of a pointer_map_t.
23149 (lto_init_tree_ref_encoder): Adjust.
23150 (lto_destroy_tree_ref_encoder): Likewise.
23151 * lto-section-out.c (lto_output_decl_index): Likewise.
23152 (lto_record_function_out_decl_state): Likewise.
23153 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
23155 2013-06-24 Richard Biener <rguenther@suse.de>
23157 PR tree-optimization/57488
23158 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
23160 2013-06-24 Alan Modra <amodra@gmail.com>
23162 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
23163 (gen_easy_altivec_constant): Likewise.
23164 * config/rs6000/predicates.md (easy_vector_constant_add_self,
23165 easy_vector_constant_msb): Likewise.
23167 2013-06-23 Jakub Jelinek <jakub@redhat.com>
23170 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
23171 add missing return true.
23173 2013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
23176 * config/sh/predicates.md (general_extend_operand): Invoke
23177 general_movsrc_operand for memory operands.
23178 (general_movsrc_operand): Allow reg+reg addressing, do not use
23179 general_operand for memory operands.
23181 2013-06-23 Sriraman Tallam <tmsriram@google.com>
23183 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
23184 when current target options does not apply.
23185 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
23186 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
23187 * config/i386/bmiintrin.h: Pass appropriate target
23188 attributes to header.
23189 * config/i386/mmintrin.h: Ditto.
23190 * config/i386/nmmintrin.h: Ditto.
23191 * config/i386/avx2intrin.h: Ditto.
23192 * config/i386/fxsrintrin.h: Ditto.
23193 * config/i386/tbmintrin.h: Ditto.
23194 * config/i386/xsaveintrin.h: Ditto.
23195 * config/i386/f16cintrin.h: Ditto.
23196 * config/i386/xtestintrin.h: Ditto.
23197 * config/i386/xsaveoptintrin.h: Ditto.
23198 * config/i386/bmi2intrin.h: Ditto.
23199 * config/i386/lzcntintrin.h: Ditto.
23200 * config/i386/smmintrin.h: Ditto.
23201 * config/i386/wmmintrin.h: Ditto.
23202 * config/i386/x86intrin.h: Remove all header include guards.
23203 * config/i386/prfchwintrin.h: Ditto.
23204 * config/i386/pmmintrin.h: Ditto.
23205 * config/i386/tmmintrin.h: Ditto.
23206 * config/i386/xmmintrin.h: Ditto.
23207 * config/i386/popcntintrin.h: Ditto.
23208 * config/i386/rdseedintrin.h: Ditto.
23209 * config/i386/ammintrin.h: Ditto.
23210 * config/i386/emmintrin.h: Ditto.
23211 * config/i386/immintrin.h: Remove all header include guards.
23212 * config/i386/fma4intrin.h: Ditto.
23213 * config/i386/lwpintrin.h: Ditto.
23214 * config/i386/xopintrin.h: Ditto.
23215 * config/i386/ia32intrin.h: Ditto.
23216 * config/i386/avxintrin.h: Ditto.
23217 * config/i386/rtmintrin.h: Ditto.
23218 * config/i386/fmaintrin.h: Ditto.
23219 * config/i386/mm3dnow.h: Ditto.
23221 2013-06-22 Sriraman Tallam <tmsriram@google.com>
23223 * common/config/i386/i386-common.c: Handle LZCNT.
23225 2013-06-22 Andi Kleen <ak@linux.intel.com>
23227 * doc/extend.texi: Use __atomic_store_n instead of
23228 __atomic_store in HLE example.
23230 2013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
23232 * config/sh/sh.c: Remove <cstdlib> workaround.
23234 2013-06-21 Andi Kleen <ak@linux.intel.com>
23236 * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo.
23238 2013-06-21 Andi Kleen <ak@linux.intel.com>
23240 * doc/extend.texi: Document that __atomic_clear and
23241 __atomic_test_and_set should only be used with bool.
23243 2013-06-20 Jan Hubicka <jh@suse.cz>
23245 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
23246 types_same_for_odr.
23247 * tree.c (decls_same_for_odr): New function.
23248 (same_for_edr): New function.
23249 (types_same_for_odr): New function.
23250 (get_binfo_at_offset): Use it.
23251 * tree.h (types_same_for_odr): Declare.
23253 2013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
23254 Jason Merrill <jason@redhat.com>
23256 * system.h: Include <cstdlib> as well as <stdlib.h>.
23258 2013-06-20 Uros Bizjak <ubizjak@gmail.com>
23261 * config/i386/i386.c (construct_container): Report error if
23262 long double is used with disabled x87 float returns.
23264 2013-06-20 Jan Hubicka <jh@suse.cz>
23266 * lto-cgraph.c (input_symtab): Do not set cgraph state.
23268 2013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
23270 PR rtl-optimization/57425
23271 PR rtl-optimization/57569
23272 * alias.c (write_dependence_p): Remove parameters mem_mode and
23273 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
23274 Changed all callers.
23275 (canon_anti_dependence): Get comments and semantics in sync.
23276 Add parameter mem_canonicalized. Changed all callers.
23277 * rtl.h (canon_anti_dependence): Update prototype.
23279 2013-06-20 Richard Biener <rguenther@suse.de>
23281 * data-streamer-in.c (streamer_read_uhwi): Optimize single
23282 byte case, inline streamer_read_uchar and defer section
23285 2013-06-20 Richard Biener <rguenther@suse.de>
23287 PR tree-optimization/57584
23288 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
23289 SSA names into the expanded expression that take part in
23290 abnormal coalescing.
23292 2013-06-19 Sharad Singhai <singhai@google.com>
23294 * gcov.c (print_usage): Handle new option.
23295 (process_args): Ditto.
23296 (get_gcov_intermediate_filename): New function.
23297 (output_intermediate_file): New function.
23298 (output_gcov_file): New function
23299 (generate_results): Handle new option.
23300 (release_function): Relase demangled name.
23301 (read_graph_file): Handle demangled name.
23302 (output_lines): Ditto.
23303 * doc/gcov.texi: Document gcov intermediate format.
23305 2013-06-19 Vladimir Makarov <vmakarov@redhat.com>
23308 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
23309 (lra_emit_add): Use the functions. Add comment about Y as an
23312 2013-06-19 David Edelsohn <dje.gcc@gmail.com>
23315 * collect2.c (collect_atexit): New.
23316 (collect_exit): Delete.
23317 (main): Register collect_atexit with atexit.
23318 (collect_wait): Change collect_exit to exit.
23320 * collect2.h (collect_exit): Delete.
23321 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
23323 2013-06-19 Wei Mi <wmi@google.com>
23325 PR rtl-optimization/57518
23326 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
23327 if regno is used in paradoxical subreg.
23328 (update_equiv_regs): Check pdx_subregs[regno] before
23329 set a reg to be equivalent with a mem.
23331 2013-06-19 Matthias Klose <doko@ubuntu.com>
23334 * file-find.h (find_a_file): Add a mode parameter.
23335 * file-find.c (find_a_file): Likewise.
23336 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
23337 with X_OK for the executables.
23338 * collect2.c (main): Call find_a_file with X_OK.
23340 2013-06-19 Steve Ellcey <sellcey@mips.com>
23343 * config/mips/mips.md (casesi_internal_mips16_<mode>):
23344 Use NEXT_INSN instead of next_real_insn.
23346 2013-06-19 Jan Hubicka <jh@suse.cz>
23348 * cgraph.h (const_value_known_p): Replace by ...
23349 (ctor_for_folding): .. this one.
23350 * cgraphunit.c (process_function_and_variable_attributes): Use it.
23351 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
23352 * expr.c (expand_expr_real_1): Likewise.
23353 (string_constant): Likewise.
23354 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
23355 * ipa.c (process_references): Likewise.
23356 (symtab_remove_unreachable_nodes): Likewise.
23357 * ipa-inline-analysis.c (param_change_prob): Likewise.
23358 * gimple-fold.c (canonicalize_constructor_val): Likewise.
23359 (get_base_constructor): Likwise.
23360 * varpool.c (varpool_remove_node): Likewise.
23361 (varpool_remove_initializer): LIkewise.
23362 (dump_varpool_node): LIkwise.
23363 (const_value_known_p): Rewrite to ...
23364 (ctor_for_folding): ... this one.
23366 2013-06-19 Jakub Jelinek <jakub@redhat.com>
23369 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
23370 PERSONALITY in $PATH derived prefixes.
23372 2013-06-19 Jeff Law <law@redhat.com>
23374 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
23377 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
23378 (simplify_bitwise_binary): Use it to simpify certain binary ops on
23381 2013-06-19 Sofiane Naci <sofiane.naci@arm.com>
23383 * config/arm/vfp.md: Move VFP instruction classification documentation
23385 * config/arm/arm.md: ... here. Update instruction classification
23388 2013-06-19 Richard Earnshaw <rearnsha@arm.com>
23390 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
23391 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
23392 pattern. Use more efficient sequences on ARMv5 and Thumb2.
23394 2013-06-19 Steven Bosscher <steven@gcc.gnu.org>
23397 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
23398 with NEXT_INSN. Use tablejump_p to check for jump table data
23401 2013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
23404 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
23405 that now in C++ the value is correct per the C++ standards.
23407 2013-06-19 Richard Biener <rguenther@suse.de>
23409 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
23410 for global context.
23412 2013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23415 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23418 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
23419 with next_active_insn.
23421 2013-06-18 Sriraman Tallam <tmsriram@google.com>
23423 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
23424 functions are inlined during failures to flag an error.
23425 * tree-inline.c (expand_call_inline): Allow the error to be flagged
23426 in early inline pass.
23428 2013-06-18 H.J. Lu <hongjiu.lu@intel.com>
23430 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
23433 2013-06-18 Julian Brown <julian@codesourcery.com>
23435 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
23436 Permit virtual register pre-reload if !strict.
23437 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
23439 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
23441 * config/arm/neon.md (movmisalign<mode>): Use
23442 neon_perm_struct_or_reg_operand instead of
23443 neon_struct_or_register_operand.
23444 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
23445 neon_permissive_struct_operand instead of neon_struct_operand.
23446 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
23447 neon_vector_mem_operand.
23448 * config/arm/predicates.md (neon_struct_operand): Adjust call to
23449 neon_vector_mem_operand.
23450 (neon_permissive_struct_operand): New.
23451 (neon_struct_or_register_operand): Rename to...
23452 (neon_perm_struct_or_reg_operand): This. Adjust call to
23453 neon_vector_mem_operand.
23455 2013-06-18 Richard Biener <rguenther@suse.de>
23457 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
23458 * lto-streamer.h: Include pointer-set.h.
23459 (struct lto_decl_slot): Remove.
23460 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
23461 Remove next_index entry.
23462 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
23463 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
23464 (lto_init_tree_ref_encoder): Adjust.
23465 (lto_destroy_tree_ref_encoder): Likewise.
23466 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
23467 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
23468 (lto_output_decl_index): Adjust.
23469 (lto_new_out_decl_state): Likewise.
23470 (lto_record_function_out_decl_state): Likewise.
23471 * lto-streamer-out.c (copy_function): Likewise.
23473 2013-06-18 Richard Biener <rguenther@suse.de>
23475 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
23476 * cgraphunit.c: Include cfgloop.h.
23477 (init_lowered_empty_function): Initialize the loop tree.
23478 (assemble_thunk): Insert new BBs into loops.
23480 2013-06-18 Richard Biener <rguenther@suse.de>
23482 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
23483 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
23484 the map from cache entry to cache index optional.
23485 (streamer_tree_cache_replace_tree): Adjust accordingly.
23486 (streamer_tree_cache_append): Likewise.
23487 (streamer_tree_cache_delete): Likewise.
23488 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
23489 streamer cache map from cache entry to cache index.
23490 * lto-streamer-out.c (create_output_block): Adjust.
23492 2013-06-18 Sofiane Naci <sofiane.naci@arm.com>
23494 * config/arm/arm.md (attribute "insn"): Move multiplication and
23495 division attributes to...
23496 (attribute "type"): ... here. Remove mult.
23497 (attribute "mul32"): New attribute.
23498 (attribute "mul64"): Add umaal.
23499 (*arm_mulsi3): Update attributes.
23500 (*arm_mulsi3_v6): Likewise.
23501 (*thumb_mulsi3): Likewise.
23502 (*thumb_mulsi3_v6): Likewise.
23503 (*mulsi3_compare0): Likewise.
23504 (*mulsi3_compare0_v6): Likewise.
23505 (*mulsi_compare0_scratch): Likewise.
23506 (*mulsi_compare0_scratch_v6): Likewise.
23507 (*mulsi3addsi): Likewise.
23508 (*mulsi3addsi_v6): Likewise.
23509 (*mulsi3addsi_compare0): Likewise.
23510 (*mulsi3addsi_compare0_v6): Likewise.
23511 (*mulsi3addsi_compare0_scratch): Likewise.
23512 (*mulsi3addsi_compare0_scratch_v6): Likewise.
23513 (*mulsi3subsi): Likewise.
23514 (*mulsidi3adddi): Likewise.
23515 (*mulsi3addsi_v6): Likewise.
23516 (*mulsidi3adddi_v6): Likewise.
23517 (*mulsidi3_nov6): Likewise.
23518 (*mulsidi3_v6): Likewise.
23519 (*umulsidi3_nov6): Likewise.
23520 (*umulsidi3_v6): Likewise.
23521 (*umulsidi3adddi): Likewise.
23522 (*umulsidi3adddi_v6): Likewise.
23523 (*smulsi3_highpart_nov6): Likewise.
23524 (*smulsi3_highpart_v6): Likewise.
23525 (*umulsi3_highpart_nov6): Likewise.
23526 (*umulsi3_highpart_v6): Likewise.
23527 (mulhisi3): Likewise.
23528 (*mulhisi3tb): Likewise.
23529 (*mulhisi3bt): Likewise.
23530 (*mulhisi3tt): Likewise.
23531 (maddhisi4): Likewise.
23532 (*maddhisi4tb): Likewise.
23533 (*maddhisi4tt): Likewise.
23534 (maddhidi4): Likewise.
23535 (*maddhidi4tb): Likewise.
23536 (*maddhidi4tt): Likewise.
23537 (divsi3): Likewise.
23538 (udivsi3): Likewise.
23539 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
23540 (thumb2_mulsi_short_compare0): Likewise.
23541 (thumb2_mulsi_short_compare0_scratch): Likewise.
23542 * config/arm/arm1020e.md (1020mult1): Update attribute change.
23543 (1020mult2): Likewise.
23544 (1020mult3): Likewise.
23545 (1020mult4): Likewise.
23546 (1020mult5): Likewise.
23547 (1020mult6): Likewise.
23548 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
23550 (cortex_a15_mult64): Likewise.
23551 (cortex_a15_sdiv): Likewise.
23552 (cortex_a15_udiv): Likewise.
23553 * config/arm/arm1026ejs.md (mult1): Update attribute change.
23559 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
23560 (pj4_ir_div): Likewise.
23561 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
23562 (11_mult2): Likewise.
23563 (11_mult3): Likewise.
23564 (11_mult4): Likewise.
23565 (11_mult5): Likewise.
23566 (11_mult6): Likewise.
23567 (11_mult7): Likewise.
23568 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
23569 (cortex_a8_mla): Likewise.
23570 (cortex_a8_mull): Likewise.
23571 (cortex_a8_smulwy): Likewise.
23572 (cortex_a8_smlald): Likewise.
23573 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
23574 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
23575 (cortex_r4_mul_3): Likewise.
23576 (cortex_r4_mla_4): Likewise.
23577 (cortex_r4_mla_3): Likewise.
23578 (cortex_r4_smlald): Likewise.
23579 (cortex_r4_mull): Likewise.
23580 (cortex_r4_sdiv): Likewise.
23581 (cortex_r4_udiv): Likewise.
23582 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
23583 (cortex_a7_idiv): Likewise.
23584 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
23585 (9_mult2): Likewise.
23586 (9_mult3): Likewise.
23587 (9_mult4): Likewise.
23588 (9_mult5): Likewise.
23589 (9_mult6): Likewise.
23590 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
23591 (cortex_a53_sdiv): Likewise.
23592 (cortex_a53_udiv): Likewise.
23593 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
23594 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
23595 (mp626_mult2): Likewise.
23596 (mp626_mult3): Likewise.
23597 (mp626_mult4): Likewise.
23598 * config/arm/fa526.md (526_mult1): Update attribute change.
23599 (526_mult2): Likewise.
23600 * config/arm/arm-generic.md (mult): Update attribute change.
23601 (mult_ldsched_strongarm): Likewise.
23602 (mult_ldsched): Likewise.
23603 (multi_cycle): Likewise.
23604 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
23605 * config/arm/fa606te.md (606te_mult1): Update attribute change.
23606 (606te_mult2): Likewise.
23607 (606te_mult3): Likewise.
23608 (606te_mult4): Likewise.
23609 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
23610 (cortex_a9_mac16): Likewise.
23611 (cortex_a9_multiply): Likewise.
23612 (cortex_a9_mac): Likewise.
23613 (cortex_a9_multiply_long): Likewise.
23614 * config/arm/fa626te.md (626te_mult1): Update attribute change.
23615 (626te_mult2): Likewise.
23616 (626te_mult3): Likewise.
23617 (626te_mult4): Likewise.
23619 2013-06-18 Richard Biener <rguenther@suse.de>
23622 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
23624 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23627 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
23628 with next_active_insn.
23630 2013-06-18 Alan Modra <amodra@gmail.com>
23632 * config/rs6000/rs6000.h (enum data_align): New.
23633 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
23634 (DATA_ABI_ALIGNMENT): Define.
23635 (CONSTANT_ALIGNMENT): Correct comment.
23636 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
23637 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
23639 2013-06-17 David Malcolm <dmalcolm@redhat.com>
23641 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
23642 ATTRIBUTE_UNUSED marking.
23644 2013-06-17 Sofiane Naci <sofiane.naci@arm.com>
23646 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
23647 alternative and update.
23648 (aarch64_dup_lanedi): Delete.
23649 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
23650 * config/aarch64/aarch64-simd-builtins.def: Update.
23652 2013-06-17 Richard Biener <rguenther@suse.de>
23654 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
23655 (lto_input_scc): Declare.
23656 (lto_input_tree_1): Likewise.
23657 (struct lto_stats_d): Add num_tree_bodies_output and
23658 num_pickle_refs_output.
23659 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
23660 (lto_read_tree_1): Split out from ...
23661 (lto_read_tree): ... this.
23662 (lto_input_scc): New function.
23663 (lto_input_tree_1): Split out from ...
23664 (lto_input_tree): ... this. Handle LTO_tree_scc.
23665 (lto_data_in_create): Create the streamer cache without hashes.
23666 * lto-streamer-out.c (create_output_block): Create the streamer
23667 cache with hashes when not doing WPA.
23668 (lto_write_tree_1): Split out from ...
23669 (lto_write_tree): ... this.
23670 (get_symbol_initial_value): New function.
23671 (lto_output_tree_1): Split out from ...
23672 (lto_output_tree): ... this. Write trees as series of SCCs
23673 using a DFS walk via DFS_write_tree.
23674 (struct sccs, struct scc_entry): New types.
23675 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
23676 (DFS_write_tree_body): New function.
23677 (DFS_write_tree): Likewise.
23678 (hash_tree): Likewise.
23679 (scc_entry_compare): Likewise.
23680 (hash_scc): Likewise.
23681 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
23682 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
23683 TREE_CHAIN as regular reference.
23684 (streamer_read_integer_cst): Remove.
23685 (streamer_get_pickled_tree): Adjust.
23686 * tree-streamer-out.c (streamer_write_chain): Disable streaming
23687 of DECL_EXTERNALs in BLOCK_VARS for now.
23688 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
23690 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
23691 Add hash value argument and record that if hashes are recorded
23693 (streamer_tree_cache_insert_1): Adjust.
23694 (streamer_tree_cache_insert): Likewise.
23695 (streamer_tree_cache_insert_at): Rename to ...
23696 (streamer_tree_cache_replace_tree): ... this and adjust.
23697 (streamer_tree_cache_append): Adjust.
23698 (record_common_node): Likewise.
23699 (streamer_tree_cache_create): Add argument whether to
23700 record hash values together with trees.
23701 (streamer_tree_cache_delete): Adjust.
23702 * tree-streamer.h (struct streamer_tree_cache_d): Add
23704 (streamer_read_integer_cst): Remove.
23705 (streamer_tree_cache_insert): Adjust.
23706 (streamer_tree_cache_append): Likewise.
23707 (streamer_tree_cache_insert_at): Rename to ...
23708 (streamer_tree_cache_replace_tree): ... this and adjust.
23709 (streamer_tree_cache_create): Add argument whether to record hashes.
23710 (streamer_tree_cache_get): Rename to ...
23711 (streamer_tree_cache_get_tree): ... this.
23712 (streamer_tree_cache_get_hash): New function.
23713 * tree.c (cache_integer_cst): New function.
23714 * tree.h (cache_integer_cst): Declare.
23715 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
23716 * lto-symtab.c (lto_varpool_replace_node): Only release
23717 DECL_INITIAL of non-prevailing decls.
23718 * varpool.c (varpool_remove_initializer): Do not release
23719 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
23721 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
23723 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
23724 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
23725 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
23726 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
23727 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
23728 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
23729 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
23730 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
23731 instead of TARGET_64BIT.
23732 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
23733 Require ISA_HAS_<D>DIV.
23735 2013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
23737 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
23738 (mips*-*-linux*): Move default with_llsc setting to where other
23740 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
23742 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
23743 Likewise. Remove default with_tune setting. Move default float
23744 setting to its own block. Handle with_llsc in the same block as above.
23746 2013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
23748 PR rtl-optimization/57425
23749 PR rtl-optimization/57569
23750 * alias.c (write_dependence_p): Add new parameters mem_mode,
23751 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
23752 Changed all callers.
23753 (canon_anti_dependence): New function.
23754 * cse.c (check_dependence): Use canon_anti_dependence.
23755 * cselib.c (cselib_invalidate_mem): Likewise.
23756 * rtl.h (canon_anti_dependence): Declare.
23758 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
23760 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
23761 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
23762 ".set mips3" for 64-bit targets.
23764 2013-06-15 Dehao Chen <dehao@google.com>
23766 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
23767 * gimple-low.c (gimple_check_call_matching_types): Likewise.
23768 (gimple_check_call_args): Likewise.
23769 * value-prof.c (check_ic_target): Likewise.
23770 * ipa-inline.c (early_inliner): Likewise.
23771 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
23772 * cgraph.c (cgraph_create_edge_1): Likewise.
23773 (cgraph_make_edge_direct): Likewise.
23775 2013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
23778 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
23779 rs6000_output_move_128bit to handle emitting quad memory
23780 operations. Set attribute length to 8 bytes.
23782 2013-06-14 Vidya Praveen <vidyapraveen@arm.com>
23784 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
23786 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
23787 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
23788 (aarch64_<su>mlsl<mode>): Likewise.
23790 2013-06-14 Mike Stump <mikestump@comcast.net>
23792 * Makefile.in (TARGET_H): Add insn-codes.h.
23794 2013-06-14 Alan Modra <amodra@gmail.com>
23796 PR middle-end/57134
23797 PR middle-end/57586
23798 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
23799 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
23800 bitfield expansion when EXPAND_MEMORY.
23801 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
23803 2013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
23805 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
23806 test for clearing quad memory on 32-bit later.
23808 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
23810 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
23811 (fold_negate_expr): Likewise.
23812 (fold_real_zero_addition_p): Handle vectors.
23813 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
23815 2013-06-14 Alan Modra <amodra@gmail.com>
23817 * varasm.c (force_const_mem): Revert 2013-06-07 change.
23819 2013-06-13 Jan Hubicka <jh@suse.cz>
23821 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
23822 Local comdats are not externally visible.
23823 * symtab.c (dump_symtab_base): Dump externally visible.
23824 (verify_symtab_base): Verify back links in the symtab hash.
23826 2013-06-13 Bin Cheng <bin.cheng@arm.com>
23828 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
23829 CONVERT_EXPR as equal nodes.
23831 2013-06-13 Bin Cheng <bin.cheng@arm.com>
23833 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
23835 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
23837 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
23838 Generalize to complex and vector.
23839 * tree.c (build_all_ones_cst): New function.
23840 * tree.h (build_all_ones_cst): Declare it.
23842 2013-06-13 Alan Modra <amodra@gmail.com>
23844 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
23845 * config/rs6000/rs6000.md (signbittf2): New insn.
23846 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
23847 (abstf2_internal, cmptf_internal2): Likewise.
23848 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
23850 2013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
23851 Pat Haugen <pthaugen@us.ibm.com>
23852 Peter Bergner <bergner@vnet.ibm.com>
23854 * config/rs6000/rs6000.c (emit_load_locked): Add support for
23855 power8 byte, half-word, and quad-word atomic instructions.
23856 (emit_store_conditional): Likewise.
23857 (rs6000_expand_atomic_compare_and_swap): Likewise.
23858 (rs6000_expand_atomic_op): Likewise.
23860 * config/rs6000/sync.md (larx): Add new modes for power8.
23862 (AINT): New mode iterator to include TImode as well as normal
23863 integer modes on power8.
23864 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
23865 that VSX registers are not considered. Use AINT mode iterator
23866 instead of INT1 to allow inclusion of quad word atomic operations
23868 (load_locked<mode>): Likewise.
23869 (store_conditional<mode>): Likewise.
23870 (atomic_compare_and_swap<mode>): Likewise.
23871 (atomic_exchange<mode>): Likewise.
23872 (atomic_nand<mode>): Likewise.
23873 (atomic_fetch_<fetchop_name><mode>): Likewise.
23874 (atomic_nand_fetch<mode>): Likewise.
23875 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
23877 (ATOMIC): On power8, add QImode, HImode modes.
23878 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
23879 modes that promote to SImode.
23880 (load_lockedti): Convert TImode arguments to PTImode, so that we
23881 get a guaranteed even/odd register pair.
23882 (load_lockedpti): Likewise.
23883 (store_conditionalti): Likewise.
23884 (store_conditionalpti): Likewise.
23886 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
23887 atomic load/store instructions.
23890 2013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
23892 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
23894 (insn_count): New attribute, with most cases extracted from...
23895 (length): ...here. Redefine most cases in terms of insn_count.
23896 (single_insn): Delete.
23897 (can_delay): Use insn_count to check for single instructions.
23898 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
23899 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
23900 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
23901 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
23902 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
23903 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
23904 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
23905 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
23906 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
23907 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
23908 rather than "length".
23909 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
23910 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
23911 Use "insn_count" rather than "length".
23912 * config/mips/mips-dsp.md
23913 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
23914 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
23917 2013-06-12 Marc Glisse <marc.glisse@inria.fr>
23919 PR tree-optimization/57361
23920 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
23922 2013-06-12 Sofiane Naci <sofiane.naci@arm.com>
23924 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
23926 (aarch64_simd_combine<mode>): New instruction expansion.
23927 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
23928 function prototype.
23929 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
23930 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
23932 2013-06-12 Jan Hubicka <jh@suse.cz>
23934 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
23935 decl has when in streaming stage.
23936 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
23937 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
23939 2013-06-12 Roland Stigge <stigge@antcom.de>
23942 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
23944 2013-06-12 Jakub Jelinek <jakub@redhat.com>
23946 PR tree-optimization/57537
23947 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
23948 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
23950 2013-06-12 Richard Biener <rguenther@suse.de>
23952 * data-streamer.h (streamer_write_char_stream): CSE
23953 obs->current_pointer.
23954 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
23955 streamer_write_char_stream manually and optimize the resulting loop.
23956 (streamer_write_hwi_stream): Likewise.
23958 2013-06-12 Jan Hubicka <jh@suse.cz>
23960 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
23961 * cgraph.h (varpool_create_empty_node): Declare.
23962 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
23964 * symtab.c (symtab_unregister_node): Be lax about missin entries
23966 (symtab_get_node): Update comment.
23967 * varpool.c (varpool_create_empty_node): Break out from ...
23968 (varpool_node_for_decl): ... here.
23969 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
23971 2013-06-12 Eric Botcazou <ebotcazou@adacore.com>
23973 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
23974 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
23975 part. Use straight-line flow at the end.
23976 <COMPONENT_REF>: Remove superfluous else.
23977 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
23979 2013-06-12 Jakub Jelinek <jakub@redhat.com>
23982 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
23983 target hook even for !TREE_PUBLIC decls. If no resolution info
23984 is available, return false for common and external decls.
23986 2013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
23988 * config/rl78/constraints.md (U): New constraint.
23989 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
23992 2013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
23995 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
23996 to allow returning address to AT_PLATFORM name.
23998 2013-06-11 Jan Hubicka <jh@suse.cz>
24000 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
24001 * cgraph.h (symtab_node_base): Add weakref flag.
24002 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
24003 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
24004 (output_weakrefs): Use weakref flag.
24005 * fold-const.c (simple_operand_p): Handle WEAK.
24006 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
24007 * ipa.c (varpool_externally_visible_p): Drop weakref.
24008 (function_and_variable_visibility): Update comment; fix weakref
24009 sanity checks; do not clear DECL_WEAK on them.
24010 * lto-cgraph.c (lto_output_node): update.
24011 (lto_output_varpool_node): Update.
24012 (input_overwrite_node): Update.
24013 (input_node): Update.
24014 (input_varpool_node): Update.
24015 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
24016 (lto_symtab_merge_symbols): Add sanity check.
24017 (lto_symtab_prevailing_decl): Do not special case weakrefs.
24018 * passes.c (rest_of_decl_compilation): Set static flag, too.
24019 * symtab.c (dump_symtab_base): Dump weakref.
24020 (verify_symtab_base): Sanity check weakrefs.
24021 (symtab_make_decl_local): Remove duplicated code.
24022 (symtab_alias_ultimate_target): Simplify.
24023 * varpool.c (varpool_create_variable_alias): Set weakref flag.
24025 2013-06-11 Tom de Vries <tom@codesourcery.com>
24027 * genautomata.c (gen_regexp_sequence): Handle els_num == -1. Handle
24028 sequence_vect == NULL.
24030 2013-06-11 DJ Delorie <dj@redhat.com>
24032 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
24033 (rl78_unwind_word_mode): New.
24035 2013-06-11 David Malcolm <dmalcolm@redhat.com>
24037 * final.c (debug_prefix_maps): Make static.
24039 2013-06-11 David Malcolm <dmalcolm@redhat.com>
24041 * function.c (initial_trampoline): Remove stray copy.
24043 2013-06-11 Sofiane Naci <sofiane.naci@arm.com>
24045 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
24047 2013-06-11 Martin Jambor <mjambor@suse.cz>
24049 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
24050 within bounds at the beginning of the function.
24052 2013-06-11 Alan Modra <amodra@gmail.com>
24054 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
24056 (get_named_section): Don't NULL !DECL_P decl.
24058 2013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
24060 * doc/invoke.texi (core-avx2): Document.
24062 (atom): Updated with MOVBE.
24064 2013-06-11 Richard Biener <rguenther@suse.de>
24066 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
24068 2013-06-11 Anton Blanchard <anton@samba.org>
24070 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
24071 correct shift value in little-endian mode.
24073 2013-06-11 Jakub Jelinek <jakub@redhat.com>
24076 * varasm.c (get_variable_align): Move #endif to the right place.
24078 2013-06-10 Cary Coutant <ccoutant@google.com>
24080 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
24081 for hash so that hash table traversal order is deterministic.
24083 2013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
24084 Pat Haugen <pthaugen@us.ibm.com>
24085 Peter Bergner <bergner@vnet.ibm.com>
24087 * config/rs6000/vector.md (GPR move splitter): Do not split moves
24088 of vectors in GPRS if they are direct moves or quad word load or
24091 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
24093 (direct_move_p): Likewise.
24094 (quad_load_store_p): Likewise.
24096 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
24097 classes into bins based on the physical register type.
24098 (reg_class_to_reg_type): Likewise.
24099 (IS_STD_REG_TYPE): Likewise.
24100 (IS_FP_VECT_REG_TYPE): Likewise.
24101 (reload_fpr_gpr): Arrays to determine what insn to use if we can
24102 use direct move instructions.
24103 (reload_gpr_vsx): Likewise.
24104 (reload_vsx_gpr): Likewise.
24105 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
24106 information that is a simplification of register classes. Also
24107 precalculate direct move reload helpers.
24108 (direct_move_p): New function to return true if the operation can
24109 be done as a direct move instruciton.
24110 (quad_load_store_p): New function to return true if the operation
24111 is a quad memory operation.
24112 (rs6000_legitimize_address): If quad memory, only allow register
24113 indirect for TImode addresses.
24114 (rs6000_legitimate_address_p): Likewise.
24115 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
24116 (rs6000_reload_register_type): Likewise.
24117 (register_to_reg_type): Return register type.
24118 (rs6000_secondary_reload_simple_move): New helper function for
24119 secondary reload and secondary memory needed to identify anything
24120 that is a simple move, and does not need reloading.
24121 (rs6000_secondary_reload_direct_move): New helper function for
24122 secondary reload to identify cases that can be done with several
24123 instructions via the direct move instructions.
24124 (rs6000_secondary_reload_move): New helper function for secondary
24125 reload to identify moves between register types that can be done.
24126 (rs6000_secondary_reload): Add support for quad memory operations
24127 and for direct move.
24128 (rs6000_secondary_memory_needed): Likewise.
24129 (rs6000_debug_secondary_memory_needed): Change argument names.
24130 (rs6000_output_move_128bit): New function to return the move to
24131 use for 128-bit moves, including knowing about the various
24132 limitations of quad memory operations.
24134 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
24135 memory operations. call rs6000_output_move_128bit for the actual
24136 instruciton(s) to generate.
24137 (vsx_movti_64bit): Likewise.
24139 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
24140 (UNSPEC_P8V_MTVSRWZ): Likewise.
24141 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
24142 (UNSPEC_P8V_MTVSRD): Likewise.
24143 (UNSPEC_P8V_XXPERMDI): Likewise.
24144 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
24145 (UNSPEC_FUSION_GPR): Likewise.
24146 (FMOVE128_GPR): New iterator for direct move.
24147 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
24148 (f32_sv): Likewise.
24149 (f32_dm): Likewise.
24150 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
24151 loads and direct move instructions.
24152 (zero_extendsidi2_lfiwzx): Likewise.
24153 (extendsidi2_lfiwax): Likewise.
24154 (extendsidi2_nocell): Likewise.
24155 (floatsi<mode>2_lfiwax): Likewise.
24156 (lfiwax): Likewise.
24157 (floatunssi<mode>2_lfiwzx): Likewise.
24158 (lfiwzx): Likewise.
24159 (fix_trunc<mode>_stfiwx): Likewise.
24160 (fixuns_trunc<mode>_stfiwx): Likewise.
24161 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
24162 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
24163 (parity<mode>2_cmpb): Set length/type attr.
24164 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
24165 for 'mr.' to fast_compare.
24166 (bpermd_<mode>): Change type attr to popcnt.
24167 (p8_fmrgow_<mode>): New insns for power8 direct move support.
24168 (p8_mtvsrwz_1): Likewise.
24169 (p8_mtvsrwz_2): Likewise.
24170 (reload_fpr_from_gpr<mode>): Likewise.
24171 (p8_mtvsrd_1): Likewise.
24172 (p8_mtvsrd_2): Likewise.
24173 (p8_xxpermdi_<mode>): Likewise.
24174 (reload_vsx_from_gpr<mode>): Likewise.
24175 (reload_vsx_from_gprsf): Likewise.
24176 (p8_mfvsrd_3_<mode>): LIkewise.
24177 (reload_gpr_from_vsx<mode>): Likewise.
24178 (reload_gpr_from_vsxsf): Likewise.
24179 (p8_mfvsrd_4_disf): Likewise.
24180 (multi-word GPR splits): Do not split direct moves or quad memory
24183 2013-06-10 David Malcolm <dmalcolm@redhat.com>
24185 * tree-into-ssa.c (interesting_blocks): Make static.
24187 2013-06-10 Jakub Jelinek <jakub@redhat.com>
24190 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
24191 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
24192 Use DATA_ABI_ALIGNMENT for that case instead if defined.
24193 (get_variable_align): New function.
24194 (get_variable_section, emit_bss, emit_common,
24195 assemble_variable_contents, place_block_symbol): Use
24196 get_variable_align instead of DECL_ALIGN.
24197 (assemble_noswitch_variable): Add align argument, use it
24198 instead of DECL_ALIGN.
24199 (assemble_variable): Adjust caller. Use get_variable_align
24200 instead of DECL_ALIGN.
24201 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
24203 (DATA_ABI_ALIGNMENT): Define.
24204 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
24205 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
24206 opt is false, only return the psABI mandated alignment increase.
24207 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
24208 (DATA_ABI_ALIGNMENT): ... this.
24209 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
24210 (DATA_ABI_ALIGNMENT): ... this.
24211 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
24212 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
24213 (DATA_ABI_ALIGNMENT): ... this.
24214 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
24215 * doc/tm.texi: Regenerated.
24217 2013-06-10 Uros Bizjak <ubizjak@gmail.com>
24219 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
24220 cmp_code to construct REG_EQUAL note.
24222 2013-06-09 Jakub Jelinek <jakub@redhat.com>
24225 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
24226 that operands[2] doesn't overlap with operands[0].
24228 2013-06-09 David Edelsohn <dje.gcc@gmail.com>
24229 Jan Hubicka <jh@suse.cz>
24231 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
24232 hack to mark symbols as used.
24234 2013-06-08 Vladimir Makarov <vmakarov@redhat.com>
24236 PR rtl-optimization/57559
24237 * lra-constraints.c (process_alt_operands): Don't discourage
24238 memory with known offset for offsetable memory constraint.
24239 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
24241 2013-06-08 Eric Botcazou <ebotcazou@adacore.com>
24243 * varasm.c (struct oc_local_state): Reorder fields.
24244 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
24245 and adjust accordingly.
24246 (output_constructor): Reorder initialization code and adjust call to
24247 output_constructor_bitfield.
24249 2013-06-07 Jan Hubicka <jh@suse.cz>
24251 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
24253 2013-06-07 David Malcolm <dmalcolm@redhat.com>
24255 * tree-object-size.c (unknown): Make const.
24257 2013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24259 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
24260 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
24261 for last alternative in the cpu_facility attribute.
24263 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24266 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
24267 (xordi3): Change operand 2 constraint to arm_xordi_operand.
24268 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
24269 * config/arm/constraints.md (Dg): New constraint.
24270 * config/arm/neon.md (xordi3_neon): Remove.
24271 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
24272 * config/arm/predicates.md (arm_xordi_operand): New predicate.
24274 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24276 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
24277 Clean up alternatives.
24279 2013-06-07 Alan Modra <amodra@gmail.com>
24281 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
24284 2013-06-07 Alan Modra <amodra@gmail.com>
24286 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
24288 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24290 * config/arm/constraints.md (Df): New constraint.
24291 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
24292 Correct length attribute for last two alternatives.
24294 2013-06-07 Alan Modra <amodra@gmail.com>
24296 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
24297 override user -mfp-in-toc.
24298 (offsettable_ok_by_alignment): Consider just the current access
24299 rather than the whole object, unless BLKmode. Handle
24300 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
24301 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
24302 for -mcmodel=medium.
24303 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
24304 override user -mfp-in-toc or -msum-in-toc. Default to
24305 -mno-fp-in-toc for -mcmodel=medium.
24307 2013-06-06 DJ Delorie <dj@redhat.com>
24309 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
24310 TARGET_VALID_POINTER_MODE.
24312 2013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
24313 Pat Haugen <pthaugen@us.ibm.com>
24314 Peter Bergner <bergner@vnet.ibm.com>
24316 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
24317 Document new power8 builtins.
24319 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
24320 condition code register, to allow 128-bit logical operations to be
24321 done in the VSX or GPR registers.
24322 (nor<mode>3): Use the canonical form for nor.
24323 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
24324 vclz*, and vpopcnt* vector instructions.
24325 (nand<mode>3): Likewise.
24326 (orc<mode>3): Likewise.
24327 (clz<mode>2): LIkewise.
24328 (popcount<mode>2): Likewise.
24330 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
24331 that only the GPRs are recognized.
24333 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
24334 support for new power8 builtins.
24336 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
24338 (xscvdpspn): Likewise.
24344 (vpopcnt): Likewise.
24345 (vpopcntb): Likewise.
24346 (vpopcnth): Likewise.
24347 (vpopcntw): Likewise.
24348 (vpopcntd): Likewise.
24350 (vmrgew): Likewise.
24351 (vmrgow): Likewise.
24353 (eqv_v16qi3): Likewise.
24354 (eqv_v8hi3): Likewise.
24355 (eqv_v4si3): Likewise.
24356 (eqv_v2di3): Likewise.
24357 (eqv_v4sf3): Likewise.
24358 (eqv_v2df3): Likewise.
24360 (nand_v16qi3): Likewise.
24361 (nand_v8hi3): Likewise.
24362 (nand_v4si3): Likewise.
24363 (nand_v2di3): Likewise.
24364 (nand_v4sf3): Likewise.
24365 (nand_v2df3): Likewise.
24367 (orc_v16qi3): Likewise.
24368 (orc_v8hi3): Likewise.
24369 (orc_v4si3): Likewise.
24370 (orc_v2di3): Likewise.
24371 (orc_v4sf3): Likewise.
24372 (orc_v2df3): Likewise.
24374 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
24375 allow power8 quad mode in 64-bit.
24376 (rs6000_builtin_vectorized_function): Add support to vectorize
24377 ISA 2.07 count leading zeros, population count builtins.
24378 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
24379 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
24380 (builtin_function_type): Add vgbbd builtin function which takes an
24382 (altivec_expand_vec_perm_const): Add support for new power8 merge
24385 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
24386 that does not include TImdoe for use with 32-bit.
24387 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
24389 (UNSPEC_VSX_CVDPSPN): Likewise.
24390 (vsx_xscvdpspn): Likewise.
24391 (vsx_xscvspdpn): Likewise.
24392 (vsx_xscvdpspn_scalar): Likewise.
24393 (vsx_xscvspdpn_directmove): Likewise.
24394 (vsx_and<mode>3): Split logical operations into 32-bit and
24395 64-bit. Add support to do logical operations on TImode as well as
24396 VSX vector types. Allow logical operations to be done in either
24397 VSX registers or in general purpose registers in 64-bit mode. Add
24398 splitters if GPRs were used. For AND, add clobber of CCmode to
24399 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
24401 (vsx_and<mode>3_32bit): Likewise.
24402 (vsx_and<mode>3_64bit): Likewise.
24403 (vsx_ior<mode>3): Likewise.
24404 (vsx_ior<mode>3_32bit): Likewise.
24405 (vsx_ior<mode>3_64bit): Likewise.
24406 (vsx_xor<mode>3): Likewise.
24407 (vsx_xor<mode>3_32bit): Likewise.
24408 (vsx_xor<mode>3_64bit): Likewise.
24409 (vsx_one_cmpl<mode>2): Likewise.
24410 (vsx_one_cmpl<mode>2_32bit): Likewise.
24411 (vsx_one_cmpl<mode>2_64bit): Likewise.
24412 (vsx_nor<mode>3): Likewise.
24413 (vsx_nor<mode>3_32bit): Likewise.
24414 (vsx_nor<mode>3_64bit): Likewise.
24415 (vsx_andc<mode>3): Likewise.
24416 (vsx_andc<mode>3_32bit): Likewise.
24417 (vsx_andc<mode>3_64bit): Likewise.
24418 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
24419 and xxlorc instructions.
24420 (vsx_eqv<mode>3_64bit): Likewise.
24421 (vsx_nand<mode>3_32bit): Likewise.
24422 (vsx_nand<mode>3_64bit): Likewise.
24423 (vsx_orc<mode>3_32bit): Likewise.
24424 (vsx_orc<mode>3_64bit): Likewise.
24426 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
24428 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
24430 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
24431 (p8_vmrgow): Likewise.
24432 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
24433 GPRs to be split under VSX.
24434 (p8v_clz<mode>2): Add power8 count leading zero support.
24435 (p8v_popcount<mode>2): Add power8 population count support.
24436 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
24439 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
24442 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
24444 (vec_nand): Likewise.
24445 (vec_vclz): Likewise.
24446 (vec_vclzb): Likewise.
24447 (vec_vclzd): Likewise.
24448 (vec_vclzh): Likewise.
24449 (vec_vclzw): Likewise.
24450 (vec_vgbbd): Likewise.
24451 (vec_vmrgew): Likewise.
24452 (vec_vmrgow): Likewise.
24453 (vec_vpopcnt): Likewise.
24454 (vec_vpopcntb): Likewise.
24455 (vec_vpopcntd): Likewise.
24456 (vec_vpopcnth): Likewise.
24457 (vec_vpopcntw): Likewise.
24459 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
24461 PR rtl-optimization/57468
24462 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
24465 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
24467 PR rtl-optimization/57459
24468 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
24469 type when setting live regs.
24471 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
24473 * config/s390/s390.opt (mlra): New option.
24474 * config/s390/s390.c (s390_decompose_address): Check displacement
24475 for all registers for LRA.
24476 (s390_secondary_reload): Don't used secondary reloads for LRA.
24477 (s390_lra_p): New function.
24478 (TARGET_LRA_P): Define.
24479 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
24480 of attribute cpu_facility to zarch for the last alternative.
24481 (*cmpmem_short): Ditto.
24483 2013-06-06 Eric Botcazou <ebotcazou@adacore.com>
24485 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
24486 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
24487 (arm_expand_prologue): Likewise.
24489 2013-06-06 Teresa Johnson <tejohnson@google.com>
24492 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
24493 as this is now done by redirect_edge_and_branch_force.
24494 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
24495 barriers, and fix interaction with splitting.
24496 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
24497 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
24498 reflect changes made in the routine.
24499 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
24500 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
24501 since this is called in cfglayout mode, and replace partition fixup
24502 with assert as that is now done by force_nonfallthru_and_redirect.
24503 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
24504 already be marked with region crossing note.
24505 (insert_section_boundary_note): Make non-static, gate on flag
24506 has_bb_partition, rewrite to also check for multiple partitions.
24507 (rest_of_handle_reorder_blocks): Remove call to
24508 insert_section_boundary_note, now done later during free_cfg.
24509 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
24510 * bb-reorder.h (insert_section_boundary_note): Declare.
24511 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
24512 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
24513 invoke insert_section_boundary_note.
24514 (try_redirect_by_replacing_jump): Remove unnecessary
24515 check for region crossing note.
24516 (fixup_partition_crossing): New function.
24517 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
24518 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
24519 in non-cfglayout mode.
24520 (force_nonfallthru_and_redirect): Fixup partition boundaries,
24521 remove old code that tried to do this. Emit barrier correctly
24522 when we are in cfglayout mode.
24523 (last_bb_in_partition): New function.
24524 (rtl_split_edge): Correctly fixup partition boundaries.
24525 (commit_one_edge_insertion): Remove old code that tried to
24526 fixup region crossing edge since this is now handled in
24527 split_block, and set up insertion point correctly since
24528 block may now end in a jump.
24529 (verify_hot_cold_block_grouping): Guard against checking when not in
24530 linearized RTL mode.
24531 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
24533 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
24534 rtl_verify_flow_info, so not called in cfglayout mode.
24535 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
24536 (fixup_reorder_chain): Remove old code that attempted to fixup region
24537 crossing note as this is now handled in force_nonfallthru_and_redirect.
24538 (duplicate_insn_chain): Don't duplicate switch section notes.
24539 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
24541 * basic-block.h (emit_barrier_after_bb): Declare.
24543 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24545 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
24546 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
24547 arm_usatsihi): Adjust alternatives for arm_restrict_it.
24549 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24551 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
24553 * config/arm/ldmstm.md: Regenerate.
24555 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24557 * config/arm/sync.md (atomic_loaddi_1):
24558 Disable predication for arm_restrict_it.
24559 (arm_load_exclusive<mode>): Likewise.
24560 (arm_load_exclusivesi): Likewise.
24561 (arm_load_exclusivedi): Likewise.
24562 (arm_load_acquire_exclusive<mode>): Likewise.
24563 (arm_load_acquire_exclusivesi): Likewise.
24564 (arm_load_acquire_exclusivedi): Likewise.
24565 (arm_store_exclusive<mode>): Likewise.
24566 (arm_store_exclusive<mode>): Likewise.
24567 (arm_store_release_exclusivedi): Likewise.
24568 (arm_store_release_exclusive<mode>): Likewise.
24570 2013-06-06 Richard Biener <rguenther@suse.de>
24572 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
24574 (lto_tag_is_tree_code_p): Adjust.
24575 (lto_tag_is_gimple_code_p): Likewise.
24576 (lto_gimple_code_to_tag): Likewise.
24577 (lto_tag_to_gimple_code): Likewise.
24578 (lto_tree_code_to_tag): Likewise.
24579 (lto_tag_to_tree_code): Likewise.
24580 * data-streamer.h (streamer_write_hwi_in_range): Use
24581 uhwi streaming to stream the normalized range.
24582 (streamer_read_hwi_in_range): Likewise.
24584 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24586 * config/arm/arm.md (enabled_for_depr_it): New attribute.
24587 (predicable_short_it): Likewise.
24588 (predicated): Likewise.
24589 (enabled): Handle above.
24590 (define_cond_exec): Set predicated attribute to yes.
24592 2013-06-05 Mike Stump <mikestump@comcast.net>
24594 * gdbinit.in (__FUNCTION__): Add.
24596 2013-06-05 Uros Bizjak <ubizjak@gmail.com>
24598 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
24599 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
24601 2013-06-05 Jan Hubicka <jh@suse.cz>
24603 * varasm.c (mark_decl_referenced): Revert the removal until targets
24606 2013-06-05 David Edelsohn <dje.gcc@gmail.com>
24608 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
24609 instead of mark_decl_referenced.
24611 2013-06-05 Jan Hubicka <jh@suse.cz>
24613 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
24614 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
24615 and symtab_used_from_object_file_p.
24616 (cgraph_make_node_local_1): Clear forced_by_abi.
24617 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
24618 * cgraph.h (symtab_node_base): Add forced_by_abi.
24619 (decide_is_variable_needed): Remove.
24620 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
24621 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
24622 (decide_is_symbol_needed): ... this one; handle symbols in general;
24623 always analyze virtuals; honnor forced_by_abi.
24624 (cgraph_finalize_function): Update.
24625 (varpool_finalize_decl): Update.
24626 (symbol_defined_and_needed): Remove.
24627 (analyze_functions): Update.
24628 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
24629 output_refs, input_overwrite_node): Handle forced_by_abi.
24630 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
24631 (address_taken_from_non_vtable_p): ... this one.
24632 (comdat_can_be_unshared_p_1): New function.
24633 (cgraph_comdat_can_be_unshared_p): Rename to ...
24634 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
24635 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
24636 (function_and_variable_visibility): Clear forced_by_abi as needed.
24637 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
24638 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
24639 * symtab.c (dump_symtab_base): Dump forced_by_abi.
24640 * varpool.c (decide_is_variable_needed): Remove.
24642 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24644 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
24645 (arm_option_override): Override arm_restrict_it where appropriate.
24646 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
24647 * config/arm/arm.opt (mrestrict-it): New command-line option.
24648 * doc/invoke.texi: Document -mrestrict-it.
24650 2013-06-05 David Malcolm <dmalcolm@redhat.com>
24652 * tsan.c (tsan_atomic_table): Make const.
24654 2013-06-05 Richard Biener <rguenther@suse.de>
24656 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
24657 index associated with the tree we are supposed to replace.
24658 * tree-streamer-out.c (pack_ts_base_value_fields): Output
24659 TREE_ASM_WRITTEN as zero for everything but SSA names.
24661 2013-06-05 David Malcolm <dmalcolm@redhat.com>
24663 * tree-ssa-structalias.c (call_stmt_vars): Make static.
24665 2013-06-04 Jan Hubicka <jh@suse.cz>
24667 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
24668 (input_node, input_varpool_node): Handle correctly external same
24670 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
24671 nodes at ltrans stage.
24673 2013-06-04 Jan Hubicka <jh@suse.cz>
24675 * ipa-inline.c (update_caller_keys): Fix availability test.
24676 (update_callee_keys): Likewise.
24677 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
24678 to follow ELF standard.
24680 2013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
24682 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
24683 (mips64r5900el-*-elf*): New configurations.
24684 * config/mips/mips-cpus.def (r5900): New processor.
24685 * config/mips/mips-tables.opt: Regenerate.
24686 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
24687 (mips_issue_rate): Handle PROCESSOR_R5900.
24688 (mips_reorg_process_insns): Force reorder mode for the R5900.
24689 * config/mips/mips.h (TARGET_MIPS5900): Define.
24690 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
24692 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
24694 * config/mips/mips.md (processor): Add r5900.
24695 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
24697 2013-06-04 Ian Bolton <ian.bolton@arm.com>
24699 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
24700 into function to generate MOVI instruction.
24701 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
24702 (aarch64_preferred_simd_mode): Turn into wrapper.
24703 (aarch64_output_scalar_simd_mov_immediate): New function.
24704 * config/aarch64/aarch64-protos.h: Add prototype for above.
24706 2013-06-04 Ian Bolton <ian.bolton@arm.com>
24708 * config/aarch64/aarch64.c (simd_immediate_info): Remove
24709 element_char member.
24710 (sizetochar): Return signed char.
24711 (aarch64_simd_valid_immediate): Remove elchar and other
24712 unnecessary variables.
24713 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
24714 Calculate element_char as required.
24715 * config/aarch64/aarch64-protos.h: Update and move prototype
24716 for aarch64_output_simd_mov_immediate.
24717 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
24720 2013-06-04 Ian Bolton <ian.bolton@arm.com>
24722 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
24723 information completed by aarch64_simd_valid_immediate.
24724 (aarch64_legitimate_constant_p): Update arguments.
24725 (aarch64_simd_valid_immediate): Work with struct rather than many
24727 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
24728 (aarch64_simd_make_constant): Update arguments.
24729 (aarch64_output_simd_mov_immediate): Work with struct rather than
24730 many pointers. Output immediate directly rather than as operand.
24731 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
24733 * config/aarch64/constraints.md (Dn): Update arguments.
24735 2013-06-04 Ian Bolton <ian.bolton@arm.com>
24737 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
24739 (aarch64_simd_immediate_valid_for_move): Remove.
24740 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
24741 (aarch64_simd_make_constant): Update call.
24742 (aarch64_output_simd_mov_immediate): Update call.
24743 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
24745 * config/aarch64/constraints.md (Dn): Update call.
24747 2013-06-04 Ian Bolton <ian.bolton@arm.com>
24749 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
24750 return type to bool for prototype.
24751 (aarch64_legitimate_constant_p): Check for true instead of not -1.
24752 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
24753 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
24755 2013-06-04 Catherine Moore <clm@codesourcery.com>
24757 * config/mips/mips.opt (meva): New.
24758 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
24759 (ASM_SPEC): Handle -meva.
24760 * doc/invoke.texi (meva): Document.
24762 2013-06-04 Alan Modra <amodra@gmail.com>
24764 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
24767 2013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24769 * rtl.def: Add extra fourth optional field to define_cond_exec.
24770 * gensupport.c (process_one_cond_exec): Process attributes from
24772 * doc/md.texi: Document fourth field in define_cond_exec.
24774 2013-06-04 Eric Botcazou <ebotcazou@adacore.com>
24776 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
24777 out the processing order as in store_bit_field_1.
24779 2013-06-04 Jan Hubicka <jh@suse.cz>
24781 PR middle-end/57500
24782 * cgraphunit.c (cgraph_process_same_body_aliases): Create
24783 non-VAR_DECL node if it does not exist yet.
24785 2013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
24787 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
24788 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
24789 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
24790 target_cpu_default setting.
24792 2013-06-03 Teresa Johnson <tejohnson@google.com>
24794 * dumpfile.c (opt_info_switch_p): Change -fopt-info
24795 default to -fopt-info=optimized instead of all.
24796 * doc/invoke.texi: Ditto.
24797 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
24798 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
24799 (execute_vect_slp): Emit BB vectorization success under
24800 MSG_OPTIMIZED_LOCATIONS.
24801 * tree-vect-slp.c (vect_slp_transform_bb): Change
24802 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
24803 * tree-vect-loop.c (vect_transform_loop): Ditto.
24805 2013-06-03 Jason Merrill <jason@redhat.com>
24808 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
24809 Use TARGET_EXPR for C++.
24811 2013-06-03 Jakub Jelinek <jakub@redhat.com>
24813 PR rtl-optimization/57268
24814 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
24815 if DEBUG_INSN_P (insn).
24818 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
24820 PR rtl-optimization/57268
24821 * sched-deps.c (sched_analyze_2): Flush dependence lists if
24822 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
24824 2013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
24826 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
24827 (ix86_avoid_lea_for_addr): Likewise.
24828 (exact_dependency_1): Likewise.
24829 (ix86_adjust_cost): Likewise.
24830 (swap_top_of_ready_list): Fix formatting and !reload_completed check
24832 (do_reorder_for_imul): Fix typo, formatting and
24833 !reload_completed check removed.
24834 (ix86_sched_reorder): Fix typo and formatting.
24835 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
24838 2013-06-03 Sofiane Naci <sofiane.naci@arm.com>
24840 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
24842 2013-06-03 Eric Botcazou <ebotcazou@adacore.com>
24844 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
24845 <STRING_CST>: Likewise.
24846 <VECTOR_CST>: Likewise.
24848 2013-06-01 Janus Weil <janus@gcc.gnu.org>
24849 Mikael Morin <mikael@gcc.gnu.org>
24851 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
24852 * config.in: Regenerated.
24853 * configure: Regenerated.
24855 2013-06-01 Jan Hubicka <jh@suse.cz>
24857 PR middle-end/57366
24858 * cgraphunit.c (compile): When weakref is not supported,
24859 set up transparent aliases before final output pass.
24860 * varasm.c (assemble_alias): Do not try to do it here.
24862 2013-06-01 Jan Hubicka <jh@suse.cz>
24864 PR middle-end/57467
24865 * passes.c (for_per_function): Skip unanalyzed functions.
24867 2013-06-01 Jan Hubicka <jh@suse.cz>
24869 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
24870 (lto_symtab_merge_symbols_1): ... this one.
24871 (lto_symtab_merge_cgraph_nodes): Rename to ...
24872 (lto_symtab_merge_symbols): ... this one; simplify.
24873 * cgraph.c (same_body_aliases_done): Rename to ...
24874 (cpp_implicit_aliases_done): ... this one.
24875 (cgraph_create_function_alias): Update.
24876 (cgraph_same_body_alias): Update.
24877 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
24878 (verify_edge_corresponds_to_fndecl): Simplify.
24879 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
24880 (cgraph_node): Remove same_body_alias.
24881 (varpool_node): Remove alias_of and extra_name_alias.
24882 (same_body_aliases_done): Rename to ..
24883 (cpp_implicit_aliases_done): ... this one.
24884 (symtab_alias_ultimate_target): Add default parameter.
24885 (symtab_resolve_alias): New function.
24886 (fixup_same_cpp_alias_visibility): Declare.
24887 (cgraph_function_node): Add default parameter.
24888 (cgraph_node_asm_name): Likewise.
24889 (cgraph_function_or_thunk_node): Add default parameter; do
24890 not ICE when it is NULL.
24891 (varpool_variable_node): Likewise.
24892 * tree-emutls.c (create_emultls_var): Update.
24893 (ipa_lower_emutls): Update.
24894 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
24895 (cgraph_reset_node): Reset alias info.
24896 (cgraph_finalize_function): Update.
24897 (fixup_same_cpp_alias_visibility): Move to symtab.c.
24898 (analyze_function): Simplify.
24899 (cgraph_process_same_body_aliases): Simplify.
24900 (analyze_functions): Fixup same body aliases.
24901 (handle_alias_pairs): Simplify.
24902 (assemble_thunk): Update.
24903 (assemble_thunks_and_aliases): Update.
24904 (output_weakrefs): Rewrite.
24905 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
24906 (lto_output_varpool_node): Likewise.
24907 (compute_ltrans_boundary): Remve assert.
24908 (get_alias_symbol): New functoin.
24909 (input_node): Rewrite alias handling.
24910 (input_varpool_node): Likewise.
24911 * ipa-pure-const.c (propagate_pure_const): Fix formating.
24912 * ipa.c (process_references): Handle weakrefs correctly.
24913 (symtab_remove_unreachable_nodes): Likewise.
24914 * trans-mem.c (get_cg_data): Update.
24915 (ipa_tm_create_version_alias): Update.
24916 (ipa_tm_execute): Update.
24917 * symtab.c (dump_symtab_base): Dump aliases.
24918 (verify_symtab_base): Verify aliases.
24919 (symtab_node_availability): New function.
24920 (symtab_alias_ultimate_target): Simplify.
24921 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
24922 handle all the fixup cases.
24923 (symtab_resolve_alias): New function.
24924 * passes.c (ipa_write_summaries): Handle weakrefs.
24925 * varpool.c (varpool_analyze_node): Simplify.
24926 (assemble_aliases): Update.
24927 (varpool_create_variable_alias): Simplify.
24928 (varpool_extra_name_alias): Simplify.
24929 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
24930 (lto_symtab_merge_symbols): ... this one.
24932 2013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
24935 PR rtl-optimization/57268
24936 * sched-deps.c (sched_analyze_2): Flush dependence lists if
24937 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
24939 2013-06-01 Tobias Burnus <burnus@net-b.de>
24941 Partially reverted:
24942 2013-05-31 Tobias Burnus <burnus@net-b.de>
24944 PR middle-end/57073
24945 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
24948 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
24950 PR rtl-optimization/57268
24951 * sched-deps.c (sched_analyze_2): Flush dependence lists if
24952 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
24954 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
24956 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
24957 unordered comparison operators when -fno-trapping-math is in effect
24959 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
24960 and implement unordered comparison operators properly on the e500.
24962 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
24964 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
24965 for constant scalar integers.
24966 (simplify_relational_operation_1): Likewise.
24968 2013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
24970 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
24971 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
24974 2013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
24975 Igor Zamyatin <igor.zamyatin@intel.com>
24977 Silvermont (SLM) architecture performance tuning.
24978 * config/i386/i386.h (enum ix86_tune_indices): Add
24979 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
24980 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
24982 * config/i386/i386.c (initial_ix86_tune_features)
24983 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
24984 (ix86_lea_outperforms): Handle Silvermont tuning.
24985 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
24987 (ix86_use_lea_for_mov): Likewise.
24988 (ix86_avoid_lea_for_addr): Likewise.
24989 (ix86_lea_for_add_ok): Likewise.
24990 (exact_dependency_1): New function.
24991 (exact_store_load_dependency): Likewise.
24992 (ix86_adjust_cost): Handle Silvermont tuning.
24993 (do_reoder_for_imul): Likewise.
24994 (swap_top_of_ready_list): New function.
24995 (ix86_sched_reorder): Changed to handle Silvermont tuning.
24997 * config/i386/i386.md (peepholes that split memory operand in fp
25000 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
25002 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
25003 Remove un-necessary braces.
25005 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
25007 * config/aarch64/aarch64.c (aarch64_classify_symbol):
25008 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
25010 2013-05-31 Tobias Burnus <burnus@net-b.de>
25012 PR middle-end/57073
25013 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
25015 2013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25018 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
25019 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
25020 * config/arm/neon.md (iordi3_neon): Remove.
25021 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
25022 * config/arm/predicates.md (imm_for_neon_logic_operand):
25023 Move to earlier in the file.
25024 (neon_logic_op2): Likewise.
25025 (arm_iordi_operand_neon): New predicate.
25027 2013-05-31 Richard Biener <rguenther@suse.de>
25029 PR tree-optimization/57478
25030 PR tree-optimization/57453
25031 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
25034 2013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
25036 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
25037 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
25039 2013-05-30 Tobias Burnus <burnus@net-b.de>
25040 Thomas Koenig <tkoenig@gcc.gnu.org>
25042 PR middle-end/57073
25043 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
25044 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
25046 2013-05-30 Steven Bosscher <steven@gcc.gnu.org>
25048 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
25050 2013-05-30 Vladimir Makarov <vmakarov@redhat.com>
25052 * target.def (register_usage_leveling_p): New hook.
25053 * targhooks.c (default_register_usage_leveling_p): New.
25054 * targhooks.h (default_register_usage_leveling_p): New prototype.
25055 * lra-assigns.c (register_usage_leveling_p): Use the hook.
25056 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
25057 * doc/tm.texi: Update.
25058 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
25060 2013-05-30 Ian Bolton <ian.bolton@arm.com>
25062 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
25063 (*insv_reg<mode>): New define_insn.
25065 2013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
25067 PR rtl-optimization/57439
25068 * postreload.c (move2add_valid_value_p): Check that we have
25069 a zero subreg_regno_offset when accessing the register in
25070 the requested mode.
25072 2013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
25073 Igor Zamyatin <igor.zamyatin@intel.com>
25075 Silvermont (SLM) architecture pipeline model, tuning and
25077 * config.gcc: Add slm config options and target.
25079 * config/i386/slm.md: New.
25081 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
25083 * config/i386/i386-c.c (ix86_target_macros_internal): New case
25085 (ix86_target_macros_internal): Likewise.
25087 * config/i386/i386.c (slm_cost): New cost.
25088 (m_SLM): New macro flag.
25089 (initial_ix86_tune_features): Set m_SLM.
25090 (x86_accumulate_outgoing_args): Likewise.
25091 (x86_arch_always_fancy_math_387): Likewise.
25092 (processor_target_table): Add slm cost.
25093 (cpu_names): Add slm cpu name.
25094 (x86_option_override_internal): Set SLM ISA.
25095 (ix86_issue_rate): New case PROCESSOR_SLM.
25096 (ia32_multipass_dfa_lookahead): Likewise.
25097 (fold_builtin_cpu): Add slm.
25099 * config/i386/i386.h (TARGET_SLM): New target macro.
25100 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
25101 (processor_type): Add PROCESSOR_SLM.
25103 * config/i386/i386.md (cpu): Add new value "slm".
25104 (slm.md): Include slm.md.
25106 2013-05-30 Bernd Schmidt <bernds@codesourcery.com>
25107 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25109 * config/arm/arm-protos.h: Add and update function protos.
25110 * config/arm/arm.c (use_simple_return_p): New added.
25111 (thumb2_expand_return): Check simple_return flag.
25112 * config/arm/arm.md: Add simple_return and conditional simple_return.
25113 * config/arm/iterators.md: Add iterator for return and simple_return.
25115 2013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25117 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
25118 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
25119 (arm_emit_vfp_multi_reg_pop): Likewise.
25120 (thumb2_emit_ldrd_pop): Likewise.
25121 (arm_expand_epilogue): Add misc REG_CFA notes.
25122 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
25124 2013-05-29 Lawrence Crowl <crowl@google.com>
25126 * config/arm/t-arm: Update for below.
25128 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
25129 Change type to hash_table. Update dependent calls and types.
25131 * config/i386/t-cygming: Update for below.
25133 * config/i386/t-interix: Update for below.
25135 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
25136 Change type to hash_table. Update dependent calls and types.
25137 (i386_find_on_wrapper_list::wrappers): Likewise.
25139 * config/ia64/t-ia64: Update for below.
25141 * config/ia64/ia64.c (bundle_state_table):
25142 Change type to hash_table. Update dependent calls and types.
25144 * config/mips/mips.c (mips_reorg_process_insns::htab):
25145 Change type to hash_table. Update dependent calls and types.
25147 * config/sol2.c (solaris_comdat_htab):
25148 Change type to hash_table. Update dependent calls and types.
25150 * config/t-sol2: Update for above.
25152 2013-05-29 Teresa Johnson <tejohnson@google.com>
25154 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
25155 functions are not yet marked as defined.
25157 2013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
25158 Pat Haugen <pthaugen@us.ibm.com>
25159 Peter Bergner <bergner@vnet.ibm.com>
25161 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
25165 (vrotl<mode>3): Likewise.
25166 (vashl<mode>3): Likewise.
25167 (vlshr<mode>3): Likewise.
25168 (vashr<mode>3): Likewise.
25170 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
25171 support for power8 V2DI builtins.
25173 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
25174 power8 V2DI builtins.
25175 (vupkhsw): Likewise.
25176 (vupklsw): Likewise.
25177 (vaddudm): Likewise.
25178 (vminsd): Likewise.
25179 (vmaxsd): Likewise.
25180 (vminud): Likewise.
25181 (vmaxud): Likewise.
25182 (vpkudum): Likewise.
25183 (vpksdss): Likewise.
25184 (vpkudus): Likewise.
25185 (vpksdus): Likewise.
25190 (vsubudm): Likewise.
25191 (vcmpequd): Likewise.
25192 (vcmpgtsd): Likewise.
25193 (vcmpgtud): Likewise.
25194 (vcmpequd_p): Likewise.
25195 (vcmpgtsd_p): Likewise.
25196 (vcmpgtud_p): Likewise.
25197 (vupkhsw): Likewise.
25198 (vupklsw): Likewise.
25199 (vaddudm): Likewise.
25200 (vmaxsd): Likewise.
25201 (vmaxud): Likewise.
25202 (vminsd): Likewise.
25203 (vminud): Likewise.
25204 (vpksdss): Likewise.
25205 (vpksdus): Likewise.
25206 (vpkudum): Likewise.
25207 (vpkudus): Likewise.
25212 (vsubudm): Likewise.
25214 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
25215 support for power8 V2DI instructions.
25217 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
25218 power8 V2DI instructions. Combine pack and unpack insns to use an
25219 iterator for each mode. Check whether a particular mode supports
25220 Altivec instructions instead of just checking TARGET_ALTIVEC.
25221 (UNSPEC_VPKUWUM): Likewise.
25222 (UNSPEC_VPKSHSS): Likewise.
25223 (UNSPEC_VPKSWSS): Likewise.
25224 (UNSPEC_VPKUHUS): Likewise.
25225 (UNSPEC_VPKSHUS): Likewise.
25226 (UNSPEC_VPKUWUS): Likewise.
25227 (UNSPEC_VPKSWUS): Likewise.
25228 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
25229 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
25230 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
25231 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
25232 (UNSPEC_VUPKHSB): Likewise.
25233 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
25234 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
25235 (UNSPEC_VUPKHSH): Likewise.
25236 (UNSPEC_VUPKLSB): Likewise.
25237 (UNSPEC_VUPKLSH): Likewise.
25239 (VI_char): Likewise.
25240 (VI_scalar): Likewise.
25241 (VI_unit): Likewise.
25243 (VP_small): Likewise.
25244 (VP_small_lc): Likewise.
25245 (VU_char): Likewise.
25246 (add<mode>3): Likewise.
25247 (altivec_vaddcuw): Likewise.
25248 (altivec_vaddu<VI_char>s): Likewise.
25249 (altivec_vadds<VI_char>s): Likewise.
25250 (sub<mode>3): Likewise.
25251 (altivec_vsubcuw): Likewise.
25252 (altivec_vsubu<VI_char>s): Likewise.
25253 (altivec_vsubs<VI_char>s): Likewise.
25254 (altivec_vavgs<VI_char>): Likewise.
25255 (altivec_vcmpbfp): Likewise.
25256 (altivec_eq<mode>): Likewise.
25257 (altivec_gt<mode>): Likewise.
25258 (altivec_gtu<mode>): Likewise.
25259 (umax<mode>3): Likewise.
25260 (smax<mode>3): Likewise.
25261 (umin<mode>3): Likewise.
25262 (smin<mode>3): Likewise.
25263 (altivec_vpkuhum): Likewise.
25264 (altivec_vpkuwum): Likewise.
25265 (altivec_vpkshss): Likewise.
25266 (altivec_vpkswss): Likewise.
25267 (altivec_vpkuhus): Likewise.
25268 (altivec_vpkshus): Likewise.
25269 (altivec_vpkuwus): Likewise.
25270 (altivec_vpkswus): Likewise.
25271 (altivec_vpks<VI_char>ss): Likewise.
25272 (altivec_vpks<VI_char>us): Likewise.
25273 (altivec_vpku<VI_char>us): Likewise.
25274 (altivec_vpku<VI_char>um): Likewise.
25275 (altivec_vrl<VI_char>): Likewise.
25276 (altivec_vsl<VI_char>): Likewise.
25277 (altivec_vsr<VI_char>): Likewise.
25278 (altivec_vsra<VI_char>): Likewise.
25279 (altivec_vsldoi_<mode>): Likewise.
25280 (altivec_vupkhsb): Likewise.
25281 (altivec_vupkhs<VU_char>): Likewise.
25282 (altivec_vupkls<VU_char>): Likewise.
25283 (altivec_vupkhsh): Likewise.
25284 (altivec_vupklsb): Likewise.
25285 (altivec_vupklsh): Likewise.
25286 (altivec_vcmpequ<VI_char>_p): Likewise.
25287 (altivec_vcmpgts<VI_char>_p): Likewise.
25288 (altivec_vcmpgtu<VI_char>_p): Likewise.
25289 (abs<mode>2): Likewise.
25290 (vec_unpacks_hi_v16qi): Likewise.
25291 (vec_unpacks_hi_v8hi): Likewise.
25292 (vec_unpacks_lo_v16qi): Likewise.
25293 (vec_unpacks_hi_<VP_small_lc>): Likewise.
25294 (vec_unpacks_lo_v8hi): Likewise.
25295 (vec_unpacks_lo_<VP_small_lc>): Likewise.
25296 (vec_pack_trunc_v8h): Likewise.
25297 (vec_pack_trunc_v4si): Likewise.
25298 (vec_pack_trunc_<mode>): Likewise.
25300 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
25302 (vec_vmaxsd): Likewise.
25303 (vec_vmaxud): Likewise.
25304 (vec_vminsd): Likewise.
25305 (vec_vminud): Likewise.
25306 (vec_vpksdss): Likewise.
25307 (vec_vpksdus): Likewise.
25308 (vec_vpkudum): Likewise.
25309 (vec_vpkudus): Likewise.
25310 (vec_vrld): Likewise.
25311 (vec_vsld): Likewise.
25312 (vec_vsrad): Likewise.
25313 (vec_vsrd): Likewise.
25314 (vec_vsubudm): Likewise.
25315 (vec_vupkhsw): Likewise.
25316 (vec_vupklsw): Likewise.
25318 2013-05-29 Jan Hubicka <jh@suse.cz>
25320 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
25321 flags; reorder rest of fields in more consistent way.
25322 (varpool_node): Remove analyzed, finalized and alias.
25323 (cgraph_ndoe): Likewise.
25324 (symtab_alias_ultimate_target): New function.
25325 (cgraph_function_node): Move offline.
25326 (cgraph_reset_node): Declare.
25327 (cgraph_comdat_can_be_unshared_p): Remove.
25328 (varpool_remove_initializer): Declare.
25329 (varpool_first_defined_variable, varpool_next_defined_variable
25330 cgraph_first_defined_function, cgraph_next_defined_function): Update.
25331 (cgraph_function_with_gimple_body_p): Update.
25332 (varpool_all_refs_explicit_p): Update.
25333 (symtab_alias_target): New function.
25334 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
25335 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
25336 (cgraph_function_or_thunk_node): Simplify using
25337 symtab_alias_ultimate_target.
25338 (varpool_variable_node): Likewise.
25339 * cgraph.c (cgraph_create_function_alias): Update.
25340 (cgraph_add_thunk): Update.
25341 (cgraph_remove_node): Update.
25342 (dump_cgraph_node): Do not dump removed flags.
25343 (cgraph_function_body_availability): Update.
25344 (cgraph_propagate_frequency): Update.
25345 (verify_cgraph_node): Check sanity of local flag.
25346 (cgraph_function_node): Move here from cgraph.h; revamp for
25347 cgraph_function_or_thunk_node.
25348 * lto-symtab.c (lto_varpool_replace_node): Update.
25349 (lto_symtab_resolve_can_prevail_p): Update.
25350 (lto_symtab_merge_cgraph_nodes): Update.
25351 * ipa-cp.c (determine_versionability, initialize_node_lattices,
25352 propagate_constants_accross_call, devirtualization_time_bonus,
25353 ipcp_propagate_stage): Update.
25354 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
25355 * ipa-inline-transform.c (clone_inlined_nodes,
25356 preserve_function_body_p): Update.
25357 * ipa-reference.c (propagate): Update.
25358 (write_node_summary_p): Update.
25359 * toplev.c (wrapup_global_declaration_2): Update.
25360 * cgraphunit.c (cgraph_analyze_function): Rename to ...
25361 (analyze_function) ... this one.
25362 (cgraph_process_new_functions): Update.
25363 (cgraph_reset_node): Export.
25364 (cgraph_finalize_function): Update.
25365 (cgraph_add_new_function): Update.
25366 (process_function_and_variable_attributes): Update.
25367 (varpool_finalize_decl): Update.
25368 (symbol_finalized): Remove.
25369 (symbol_finalized_and_needed): Rename to ...
25370 (symbol_defined_and_needed): ... update.
25371 (cgraph_analyze_functions): Update.
25372 (handle_alias_pairs): Update.
25373 (mark_functions_to_output): Update.
25374 (assemble_thunk): Update.
25375 (output_in_order): Update.
25376 (output_weakrefs): Update.
25377 (finalize_compilation_unit): Update.
25378 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
25379 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
25380 input_node, input_varpool_node): Update.
25381 * dbxout.c (dbxout_expand_expr): Update.
25382 * cgraphclones.c (cgraph_clone_node): Update.
25383 (cgraph_copy_node_for_versioning): Update.
25384 (cgraph_materialize_clone): Update.
25385 (cgraph_materialize_all_clones): Update.
25386 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
25387 propagate_pure_const, propagate_nothrow): Update.
25388 * lto-streamer-out.c (lto_output, write_symbol): Update.
25389 * ipa-utils.c (ipa_reverse_postorder): Update.
25390 * ipa-inline.c (can_inline_edge_p): Update.
25391 (update_caller_keys, ipa_inline): Update.
25392 * dwarf2out.c (reference_to_unused,
25393 premark_types_used_by_global_vars_helper): Update.
25394 * tree-eh.c (tree_could_trap_p): Update.
25395 * ipa-split.c (consider_split, execute_split_functions): Update.
25396 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
25397 has_addr_references_p): Update; move ahead in file for better
25399 (process_references): Simplify.
25400 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
25401 bodies are removed.
25402 (cgraph_comdat_can_be_unshared_p): Make static.
25403 (cgraph_externally_visible_p): Update.
25404 (varpool_externally_visible_p): Update.
25405 (function_and_variable_visibility): Update.
25406 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
25407 ipa_tm_mark_force_output_node): Update.
25408 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
25409 estimate_edge_devirt_benefit, inline_generate_summary,
25410 inline_write_summary): Update.
25411 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
25412 * ipa-prop.c (ipa_compute_jump_functions): Update.
25413 (ipa_print_node_params, ipa_prop_read_section,
25414 ipa_update_after_lto_read, read_replacements_section): Update.
25415 * varasm.c (mark_decl_referenced): Update.
25416 (assemble_alias, dump_tm_clone_pairs): Update.
25417 * tree-inline.c (copy_bb): Update.
25418 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
25420 * symtab.c (dump_symtab_base): Print new flags.
25421 (verify_symtab_base): Verify new flags.
25422 (symtab_alias_ultimate_target): New function.
25423 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
25424 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
25426 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
25428 * i386.c (ix86_get_function_versions_dispatcher,
25429 ix86_generate_version_dispatcher_body): Update.
25430 (fold_builtin_cpu): Use varpool_add_new_variable.
25431 * varpool.c (varpool_remove_initializer): Break out from ...
25432 (varpool_remove_node): ... this one.
25433 (dump_varpool_node, varpool_node_for_asm,
25434 cgraph_variable_initializer_availability, varpool_analyze_node,
25435 varpool_assemble_decl, varpool_remove_unreferenced_decls,
25436 varpool_finalize_named_section_flags, varpool_create_variable_alias):
25439 2013-05-29 Jan Hubicka <jh@suse.cz>
25441 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
25443 2013-05-29 Easwaran Raman <eraman@google.com>
25445 PR tree-optimization/57442
25446 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
25447 when control exits the main loop.
25449 2013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
25451 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
25453 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
25454 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
25455 * rx/t-rx: Add rx100 under multi library matches option for nofpu
25458 2013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25460 PR tree-optimization/57441
25461 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
25462 Don't limit size of incr_vec to number of candidates.
25464 2013-05-29 Steve Ellcey <sellcey@imgtec.com>
25466 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
25467 and mips16 directories.
25468 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
25469 (MULTILIB_DIRNAMES): Ditto.
25470 (MULTILIB_EXCEPTIONS): Add new exceptions.
25471 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
25472 (MULTILIB_DIRNAMES): Ditto.
25473 (MULTILIB_EXCEPTIONS): Add new exceptions.
25475 2012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
25476 Marcus Shawcroft <marcus.shawcroft@arm.com>
25478 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
25479 SYMBOL_TINY_ABSOLUTE.
25480 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
25481 SYMBOL_TINY_ABSOLUTE.
25482 (aarch64_expand_mov_immediate): Likewise.
25483 (aarch64_classify_symbol): Likewise.
25484 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
25485 Permit SYMBOL_TINY_ABSOLUTE.
25486 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
25488 2013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
25489 Marcus Shawcroft <marcus.shawcroft@arm.com>
25491 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
25492 Refactor if/switch. Replace gcc_assert with if.
25494 2013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
25496 * config/i386/i386.c (initial_ix86_tune_features): Enable
25497 FP Reassociation for AMD bdver1 and bdver2.
25499 2013-05-29 Martin Jambor <mjambor@suse.cz>
25501 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
25502 and IMAGPART_EXPR do not occur within other handled_components.
25504 2013-05-29 Richard Biener <rguenther@suse.de>
25506 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
25507 access on whether the use is in the BB we currently try to
25509 (vect_bb_vectorization_profitable_p): Pass the BB we currently
25510 vectorize to vect_bb_slp_scalar_cost.
25512 2013-05-29 Richard Biener <rguenther@suse.de>
25514 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
25515 computing scalar cost offsetted by stmts that are kept live
25517 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
25518 for computation of scalar cost.
25520 2013-05-28 Steve Ellcey <sellcey@mips.com>
25522 * config/mips/mips-cpus.def (mips32r2): Change processor type.
25524 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
25526 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
25527 array notation built-in reduction functions.
25528 * doc/passes.texi (Passes): Added documentation about changes done
25530 * doc/invoke.texi (C Dialect Options): Added documentation about
25531 the -fcilkplus flag.
25532 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
25533 (BUILTINS_DEF): Depend on cilkplus.def.
25534 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
25535 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
25536 * cilkplus.def: New file.
25538 2013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
25540 PR rtl-optimization/57439
25541 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
25543 2013-05-28 Easwaran Raman <eraman@google.com>
25545 PR tree-optimization/57337
25546 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
25547 (find_insert_point): Correctly identify the insertion point
25548 when two statements with the same UID is compared.
25550 2013-05-28 Richard Biener <rguenther@suse.de>
25552 PR tree-optimization/56787
25553 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
25554 from the list of data references.
25555 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
25557 (vect_analyze_loop_operations): Likewise.
25558 (vect_transform_loop): Remove clobbers.
25560 2013-05-28 Martin Jambor <mjambor@suse.cz>
25562 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
25563 and REALPART_EXPRs have scalar type.
25565 2013-05-28 Richard Biener <rguenther@suse.de>
25567 PR tree-optimization/57411
25568 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
25570 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
25571 virtual operand propagation.
25573 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
25575 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
25576 destination register for bmasksi_vis.
25577 (vector_init_bshuffle): Likewise.
25578 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
25580 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
25582 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
25583 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
25584 mode if the instruction isn't available in the original mode.
25585 * config/sparc/sparc.opt (mfix-ut699): New option.
25586 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
25587 (divdf3): Turn into expander.
25588 (divdf3_nofix): New insn.
25589 (divdf3_fix): Likewise.
25590 (divsf3): Disable if -mfix-ut699.
25591 (sqrtdf2): Turn into expander.
25592 (sqrtdf2_nofix): New insn.
25593 (sqrtdf2_fix): Likewise.
25594 (sqrtsf2): Disable if -mfix-ut699.
25596 2013-05-27 Richard Biener <rguenther@suse.de>
25598 PR middle-end/57412
25599 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
25600 block for the new loop.
25602 2013-05-27 Richard Biener <rguenther@suse.de>
25604 PR tree-optimization/57343
25605 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
25606 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
25607 (number_of_iterations_cond): Do not build the folded tree.
25609 2013-05-27 Richard Biener <rguenther@suse.de>
25612 PR middle-end/57381
25613 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
25614 OEP_CONSTANT_ADDRESS_OF retained.
25616 PR tree-optimization/57417
25617 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
25618 for unchanged base.
25619 (set_ssa_val_to): Compare addresses using
25620 get_addr_base_and_unit_offset.
25622 2013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
25624 PR rtl-optimization/56833
25625 * postreload.c (move2add_record_mode): New function.
25626 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
25627 (move2add_use_add2_insn): Use move2add_record_sym_value.
25628 (move2add_use_add3_insn): Likewise.
25629 (reload_cse_move2add): Use move2add_valid_value_p and
25630 move2add_record_mode. Invalidate call-clobbered and REG_INC
25631 affected regs by setting reg_mode to VOIDmode.
25632 (move2add_note_store): Don't pretend the inside of a SUBREG is
25633 the actual destination. Invalidate single/leading registers by
25634 setting reg_mode to VOIDmode.
25635 Use move2add_record_sym_value, move2add_valid_value_p and
25636 move2add_record_mode.
25638 2013-05-27 Richard Biener <rguenther@suse.de>
25640 PR tree-optimization/57396
25641 * tree-affine.c (double_int_constant_multiple_p): Properly
25642 return false for val == 0 and div != 0.
25644 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
25646 * config/mips/mips.h: Use #elif in preprocessor conditions.
25648 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
25651 * config/mips/constraints.md (kl): New constraint.
25652 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
25653 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
25654 constraint for operand 0. Split after CSE for MIPS16. Emit a move
25655 from LO for MIPS16.
25656 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
25658 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
25661 * config/mips/mips.c (mips_can_inline_p): New function.
25662 (TARGET_CAN_INLINE_P): Define.
25664 2013-05-25 Steven Bosscher <steven@gcc.gnu.org>
25666 * sched-int.h (ds_t, dw_t): Make unsigned int.
25667 Fix documentation that describes how all the ds_t bits are used.
25668 Reserve the last bit for delayed-branch scheduling.
25669 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
25670 (BITS_PER_DEP_WEAK): Fix definition and documentation.
25671 (gen_dep_weak_1): Remove prototype.
25672 * sched-deps.c (get_dep_weak_1): Make static.
25673 * target.def (speculate_insn, needs_block_p, gen_spec_check,
25674 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
25675 * doc/tm.texi: Regenerate.
25676 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
25678 2013-05-24 Steven Bosscher <steven@gcc.gnu.org>
25681 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
25683 2013-05-24 Nathan Sidwell <nathan@codesourcery.com>
25684 Sandra Loosemore <sandra@codesourcery.com>
25686 * config.gcc (powerpc-*): Allow native for with-cpu.
25688 2013-05-24 Jeff Law <law@redhat.com>
25690 PR tree-optimization/57124
25691 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
25692 conversion feeding a condition if the range has an overflow
25693 if -fstrict-overflow. Add warnings for when we do make the
25696 2013-05-24 Dehao Chen <dehao@google.com>
25698 * tree-cfg.c (locus_discrim_map): Fix the typo.
25699 (locus_discrim_hasher): Likewise.
25700 (locus_discrim_hasher::hash): Likewise.
25701 (locus_discrim_hasher::equal): Likewise.
25703 2013-05-24 Martin Jambor <mjambor@suse.cz>
25705 PR tree-optimization/57294
25706 * cgraph.h (ipa_record_stmt_references): Declare.
25707 * cgraphbuild.c (ipa_record_stmt_references): New function.
25708 (build_cgraph_edges): Use ipa_record_stmt_references.
25709 (rebuild_cgraph_edges): Likewise.
25710 (cgraph_rebuild_references): Likewise.
25711 * ipa-prop.c (ipa_modify_call_arguments): Discard references
25712 associated with the old statement and build references from the
25713 newly built statements.
25714 * ipa-ref.c (ipa_remove_stmt_references): New function.
25715 * ipa-ref.h (ipa_remove_stmt_references): Declare.
25717 2013-05-24 Vladimir Makarov <vmakarov@redhat.com>
25719 * lra-constraints.c (emit_spill_move): Use smaller mode for
25721 (check_and_process_move): Consider mem-reg moves for secondary
25723 (curr_insn_transform): Don't lose insns emitted before for
25724 secondary memory moves.
25725 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
25726 reg set up in the current insn.
25728 2013-05-24 Dehao Chen <dehao@google.com>
25730 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
25732 (locus_descrim_hasher::equal): Likewise.
25733 (build_gimple_cfg): New discriminator assignment algorithm.
25734 (make_edges): Likewise.
25735 (next_discriminator_for_locus): Likewise.
25736 (same_line_p): Likewise.
25737 (assign_discriminators): Likewise.
25738 (make_cond_expr_edges): Likewise.
25739 (make_gimple_switch_edges): Likewise.
25740 (make_goto_expr_edges): Likewise.
25741 (make_gimple_asm_edges): Likewise.
25743 2013-05-24 Ian Bolton <ian.bolton@arm.com>
25745 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
25746 X format specifier to only display bottom 16 bits.
25747 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
25748 immediate to match for operand 2, since it will be masked.
25750 2013-05-24 Richard Biener <rguenther@suse.de>
25752 PR tree-optimization/57287
25753 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
25754 all SSA names that occur in abnormal PHIs.
25756 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
25759 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
25760 that index is not negative.
25762 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
25764 PR rtl-optimization/55177
25765 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
25766 (simplify_byte_swapping_operation): New.
25767 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
25768 (simplify_relational_operation_1): Deal with BSWAP.
25770 2013-05-23 Richard Henderson <rth@redhat.com>
25773 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
25774 (ix86_reorg): Call it.
25776 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
25779 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
25780 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
25781 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
25783 2013-05-23 Christian Bruel <christian.bruel@st.com>
25786 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
25788 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
25789 Marcus Shawcroft <marcus.shawcroft@arm.com>
25791 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
25792 * config/aarch64/constraints.md (Usa): Remove.
25793 * doc/md.texi (AArch64 Usa): Remove.
25795 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
25796 Marcus Shawcroft <marcus.shawcroft@arm.com>
25798 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
25799 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
25800 * config/aarch64/predicates.md (aarch64_const_address): Remove.
25801 (aarch64_mov_operand): Use aarch64_mov_operand_p.
25803 2013-05-23 Vidya Praveen <vidyapraveen@arm.com>
25805 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
25806 instruction (AdvSIMD).
25807 * config/aarch64/aarch64-builtins.c
25808 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
25809 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
25811 2013-05-23 Martin Jambor <mjambor@suse.cz>
25813 PR middle-end/57347
25814 * tree.h (contains_bitfld_component_ref_p): Declare.
25815 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
25816 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
25818 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
25819 not access a bit-field. Assert all final offsets are byte-aligned.
25821 2013-05-23 Richard Biener <rguenther@suse.de>
25823 PR tree-optimization/57380
25824 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
25825 least one invariant or re-used load.
25826 * passes.c (init_optimization_passes): Move pass_phiprop before
25829 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
25831 * config/aarch64/aarch64-simd.md
25832 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
25834 2013-05-23 Richard Biener <rguenther@suse.de>
25836 PR middle-end/57381
25837 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
25838 OEP_CONSTANT_ADDRESS_OF retained.
25840 2013-05-23 Jakub Jelinek <jakub@redhat.com>
25842 PR middle-end/57344
25843 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
25844 don't lower unit. Handle unit not being always BITS_PER_WORD.
25846 2013-05-23 Richard Biener <rguenther@suse.de>
25848 PR rtl-optimization/57341
25849 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
25850 instead of true_dependence.
25852 2013-05-22 David Malcolm <dmalcolm@redhat.com>
25854 * bb-reorder.c (branch_threshold): Make const.
25855 (exec_threshold): Ditto.
25857 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
25858 Pat Haugen <pthaugen@us.ibm.com>
25859 Peter Bergner <bergner@vnet.ibm.com>
25861 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
25862 documentation for the power8 crypto builtins.
25864 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
25866 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
25867 macros for defining power8 builtin functions.
25868 (BU_P8V_AV_2): Likewise.
25869 (BU_P8V_AV_P): Likewise.
25870 (BU_P8V_VSX_1): Likewise.
25871 (BU_P8V_OVERLOAD_1): Likewise.
25872 (BU_P8V_OVERLOAD_2): Likewise.
25873 (BU_CRYPTO_1): Likewise.
25874 (BU_CRYPTO_2): Likewise.
25875 (BU_CRYPTO_3): Likewise.
25876 (BU_CRYPTO_OVERLOAD_1): Likewise.
25877 (BU_CRYPTO_OVERLOAD_2): Likewise.
25878 (XSCVSPDP): Fix typo, point to the correct instruction.
25879 (VCIPHER): Add power8 crypto builtins.
25880 (VCIPHERLAST): Likewise.
25881 (VNCIPHER): Likewise.
25882 (VNCIPHERLAST): Likewise.
25883 (VPMSUMB): Likewise.
25884 (VPMSUMH): Likewise.
25885 (VPMSUMW): Likewise.
25886 (VPERMXOR_V2DI): Likewise.
25887 (VPERMXOR_V4SI: Likewise.
25888 (VPERMXOR_V8HI: Likewise.
25889 (VPERMXOR_V16QI: Likewise.
25890 (VSHASIGMAW): Likewise.
25891 (VSHASIGMAD): Likewise.
25892 (VPMSUM): Likewise.
25893 (VPERMXOR): Likewise.
25894 (VSHASIGMA): Likewise.
25896 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
25897 __CRYPTO__ if the crypto instructions are available.
25898 (altivec_overloaded_builtins): Add support for overloaded power8
25901 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
25902 support for power8 crypto builtins.
25903 (builtin_function_type): Likewise.
25904 (altivec_init_builtins): Add support for builtins that take vector
25905 long long (V2DI) arguments.
25907 * config/rs6000/crypto.md: New file, define power8 crypto
25910 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
25911 Pat Haugen <pthaugen@us.ibm.com>
25912 Peter Bergner <bergner@vnet.ibm.com>
25914 * doc/invoke.texi (Option Summary): Add power8 options.
25915 (RS/6000 and PowerPC Options): Likewise.
25917 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
25918 constraints.md instead of rs6000.h. Reorder w* constraints. Add
25919 wm, wn, wr documentation.
25921 * config/rs6000/constraints.md (wm): New constraint for VSX
25922 registers if direct move instructions are enabled.
25923 (wn): New constraint for no registers.
25924 (wq): New constraint for quad word even GPR registers.
25925 (wr): New constraint if 64-bit instructions are enabled.
25926 (wv): New constraint if power8 vector instructions are enabled.
25927 (wQ): New constraint for quad word memory locations.
25929 * config/rs6000/predicates.md (const_0_to_15_operand): New
25930 constraint for 0..15 for crypto instructions.
25931 (gpc_reg_operand): If VSX allow registers in VSX registers as well
25932 as GPR and floating point registers.
25933 (int_reg_operand): New predicate to match only GPR registers.
25934 (base_reg_operand): New predicate to match base registers.
25935 (quad_int_reg_operand): New predicate to match even GPR registers
25936 for quad memory operations.
25937 (vsx_reg_or_cint_operand): New predicate to allow vector logical
25938 operations in both GPR and VSX registers.
25939 (quad_memory_operand): New predicate for quad memory operations.
25940 (reg_or_indexed_operand): New predicate for direct move support.
25942 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
25943 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
25944 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
25945 (POWERPC_MASKS): Add power8 options.
25946 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
25949 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
25950 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
25952 * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
25953 (-mpower8-fusion): New power8 options.
25954 (-mpower8-fusion-sign): Likewise.
25955 (-mpower8-vector): Likewise.
25956 (-mcrypto): Likewise.
25957 (-mdirect-move): Likewise.
25958 (-mquad-memory): Likewise.
25960 * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
25961 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
25963 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
25964 (rs6000_debug_vector_unit): Add p8_vector.
25965 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
25966 definitions. Also print fusion state.
25967 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
25968 (rs6000_builtin_mask_calculate): Add power8 builtin support.
25969 (rs6000_option_override_internal): Add support for power8.
25970 (rs6000_common_init_builtins): Add debugging for skipped builtins
25971 if -mdebug=builtin.
25972 (rs6000_adjust_cost): Add power8 support.
25973 (rs6000_issue_rate): Likewise.
25974 (insn_must_be_first_in_group): Likewise.
25975 (insn_must_be_last_in_group): Likewise.
25976 (force_new_group): Likewise.
25977 (rs6000_register_move_cost): Likewise.
25978 (rs6000_opt_masks): Likewise.
25980 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
25981 power8 capable assembler, default to power7 options.
25982 (TARGET_DIRECT_MOVE): Likewise.
25983 (TARGET_CRYPTO): Likewise.
25984 (TARGET_P8_VECTOR): Likewise.
25985 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
25986 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
25987 (VECTOR_MEM_P8_VECTOR_P): Likewise.
25988 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
25989 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
25990 (TARGET_XSCVDPSPN): Likewise.
25991 (TARGET_XSCVSPDPN): Likewsie.
25992 (TARGET_SYNC_HI_QI): Likewise.
25993 (TARGET_SYNC_TI): Likewise.
25994 (MASK_CRYPTO): Likewise.
25995 (MASK_DIRECT_MOVE): Likewise.
25996 (MASK_P8_FUSION): Likewise.
25997 (MASK_P8_VECTOR): Likewise.
25998 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
25999 temporary used by some of the direct move instructions to get two FP
26000 temporary registers does not force creation of a stack frame.
26001 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
26002 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
26003 that any VSX registers are tieable, even if they are also an
26004 Altivec vector mode.
26005 (r6000_reg_class_enum): Add wm, wr, wv constraints.
26006 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
26007 (RS6000_BTM_CRYPTO): Likewise.
26008 (RS6000_BTM_COMMON): Likewise.
26010 * config/rs6000/rs6000.md (cpu attribute): Add power8.
26011 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
26012 (enum rs6000_vector): Add power8 vector support.
26014 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26018 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
26019 (any_sibcall_could_use_r3): this and handle indirect calls.
26020 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
26022 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26024 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
26026 2013-05-22 Richard Biener <rguenther@suse.de>
26028 PR middle-end/57349
26029 * profile.c (branch_prob): Do not split blocks that are
26030 abnormally receiving from ECF_RETURNS_TWICE functions.
26032 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26034 * recog.c (offsettable_address_addr_space_p): Fix calculation of
26035 address mode. Move pointer mode initialization to the same place.
26037 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
26039 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
26040 while it has any effect.
26042 2013-05-21 Easwaran Raman <eraman@google.com>
26044 PR tree-optimization/57322
26045 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
26046 UID of the statement added to the BB to be 1.
26048 2013-05-21 Jakub Jelinek <jakub@redhat.com>
26050 PR tree-optimization/57331
26051 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
26052 of conversion from pointer type to integral type with integer.
26054 2013-05-21 Martin Jambor <mjambor@suse.cz>
26057 * ipa-prop.c (ipa_read_node_info): Process param_used and
26058 controlled_uses in the same order as when writing.
26060 2013-05-21 Magnus Granberg <baldrick@free.fr>
26063 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
26065 2013-05-21 Richard Biener <rguenther@suse.de>
26067 PR tree-optimization/57318
26068 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
26069 estimate stmts with side-effects as likely eliminated.
26071 2013-05-21 Richard Biener <rguenther@suse.de>
26073 PR tree-optimization/57330
26074 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
26075 preserve the call stmts fntype.
26077 2013-05-21 Richard Biener <rguenther@suse.de>
26079 PR tree-optimization/57303
26080 * tree-ssa-sink.c (statement_sink_location): Improve killing
26081 stmt detection and properly handle self-assignments.
26083 2013-05-21 Christian Bruel <christian.bruel@st.com>
26085 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
26086 spanning registers. LEAF_REG_REMAP is supported only for contiguous
26087 registers. Set register size out of the PARALLEL loop.
26089 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
26092 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
26093 (*fmasf4, *fmasf4_media): New insns.
26095 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
26097 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
26098 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
26099 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
26100 (mips_idiv_insns): Update the comments to say that the returned
26101 instruction counts are in units of BASE_INSN_LENGTH.
26102 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
26103 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
26104 using 2 rather than 4 as the length of indirect MIPS16 and
26105 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
26106 length of a NOP. Don't divide MIPS16 lengths by 2.
26107 (mips16_split_long_branches): Assume a branch is long if the
26108 length is greater than 4 rather than 8.
26109 * config/mips/mips.md (length): Give MIPS16 lengths directly,
26110 rather than multiplying them by 2. Multiply instruction counts
26111 by BASE_INSN_LENGTH rather than 4.
26112 (*jump_mips16, tls_get_tp_mips16_<mode>)
26113 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
26115 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
26117 * config/mips/mips.md (extended_mips16): Remove branch case.
26118 (length): Remove duplicated extended_mips16 test.
26120 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
26122 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
26124 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
26126 * recog.h (Recog_data): Rename to...
26127 (recog_data_d): ...this.
26128 (recog_data): Update accordingly.
26129 * recog.c (recog_data): Likewise.
26130 * reload.c (save_recog_data): Likewise.
26131 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
26132 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
26134 2013-05-17 Julian Brown <julian@codesourcery.com>
26136 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
26137 found in a REG_EQUAL note, invalidate it.
26139 2013-05-17 Easwaran Raman <eraman@google.com>
26141 * tree-ssa-reassoc.c (find_insert_point): New function.
26142 (insert_stmt_after): Likewise.
26143 (get_def_stmt): Likewise.
26144 (ensure_ops_are_available): Likewise.
26145 (not_dominated_by): Likewise.
26146 (rewrite_expr_tree): Do not move statements beyond what is
26147 necessary. Remove call to swap_ops_for_binary_stmt...
26148 (reassociate_bb): ... and move it here.
26149 (build_and_add_sum): Assign UIDs for new statements.
26150 (linearize_expr): Likewise.
26151 (do_reassoc): Renumber gimple statement UIDs.
26153 2013-05-17 Jan Hubicka <jh@suse.cz>
26155 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
26157 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
26158 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
26160 (output_weakrefs): Update.
26162 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
26163 Martin Jambor <mjambor@suse.cz>
26165 PR middle-end/57276
26166 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
26167 value that corresponds to the given aggval is found in values vector.
26169 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
26171 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
26172 sse, sse2, sse3, ssse3 and sse4a flags to options.
26174 2013-05-17 David Malcolm <dmalcolm@redhat.com>
26176 * gengtype-state.c: (s_expr_writer): New class, to handle
26177 prettifying of output layout of s-expressions.
26178 (state_writer): New class, to write out gtype.state.
26179 (state_written_type_count): Move this variable into member data of
26181 (s_expr_writer::s_expr_writer): New code: constructor for new class
26182 (state_writer::state_writer(): ditto
26183 (s_expr_writer::write_new_line): New function
26184 (s_expr_writer::write_any_indent): ditto
26185 (s_expr_writer::begin_s_expr): ditto
26186 (s_expr_writer::end_s_expr): ditto
26187 (write_state_fileloc): convert to method of state_writer...
26188 (state_writer:: write_state_fileloc): ...and use methods of
26189 s_expr_writer to write indentation into the gtype.state output file
26190 to visually represent the hierarchical structure of the list
26192 (write_state_fields): ditto, renaming to...
26193 (state_writer::write_state_fields)
26194 (write_state_a_string): ditto, renaming to...
26195 (state_writer::write_state_a_string)
26196 (write_state_string_option): ditto, renaming to...
26197 (state_writer::write_state_string_option)
26198 (write_state_type_option): ditto, renaming to...
26199 (state_writer::write_state_type_option)
26200 (write_state_nested_option): ditto, renaming to...
26201 (state_writer::write_state_nested_option)
26202 (write_state_option): ditto, renaming to...
26203 (state_writer::write_state_option)
26204 (write_state_options): ditto, renaming to...
26205 (state_writer::write_state_options)
26206 (write_state_lang_bitmap): ditto, renaming to...
26207 (state_writer::write_state_lang_bitmap)
26208 (write_state_version): ditto, renaming to...
26209 (state_writer::write_state_version)
26210 (write_state_scalar_type): ditto, renaming to...
26211 (state_writer::write_state_scalar_type)
26212 (write_state_string_type): ditto, renaming to...
26213 (state_writer::write_state_string_type)
26214 (write_state_undefined_type): ditto, renaming to...
26215 (state_writer::write_state_undefined_type)
26216 (write_state_struct_union_type): ditto, renaming to...
26217 (state_writer::write_state_struct_union_type)
26218 (write_state_struct_type): ditto, renaming to...
26219 (state_writer::write_state_struct_type)
26220 (write_state_user_struct_type): ditto, renaming to...
26221 (state_writer::write_state_user_struct_type)
26222 (write_state_lang_struct_type): ditto, renaming to...
26223 (state_writer::write_state_lang_struct_type)
26224 (write_state_param_struct_type): ditto, renaming to...
26225 (state_writer::write_state_param_struct_type)
26226 (write_state_pointer_type): ditto, renaming to...
26227 (state_writer::write_state_pointer_type)
26228 (write_state_array_type): ditto, renaming to...
26229 (state_writer::write_state_array_type)
26230 (write_state_gc_used): ditto, renaming to...
26231 (state_writer::write_state_gc_used)
26232 (write_state_common_type_content): ditto, renaming to...
26233 (state_writer::write_state_common_type_content)
26234 (write_state_type): ditto, renaming to...
26235 (state_writer::write_state_type)
26236 (write_state_pair_list): ditto, renaming to...
26237 (state_writer::write_state_pair_list)
26238 (write_state_pair): ditto, renaming to...
26239 (state_writer::write_state_pair)
26240 (write_state_typedefs): ditto, renaming to...
26241 (state_writer::write_state_typedefs)
26242 (write_state_structures): ditto, renaming to...
26243 (state_writer::write_state_structures)
26244 (write_state_param_structs): ditto, renaming to...
26245 (state_writer::write_state_param_structs)
26246 (write_state_variables): ditto, renaming to...
26247 (state_writer::write_state_variables)
26248 (write_state_srcdir): ditto, renaming to...
26249 (state_writer::write_state_srcdir)
26250 (write_state_files_list): ditto, renaming to...
26251 (state_writer::write_state_files_list)
26252 (write_state_languages): ditto, renaming to...
26253 (state_writer::write_state_languages)
26254 (write_state): create a state_writer instance and use it when
26255 writing out the state file
26257 2013-05-17 Mike Stump <mikestump@comcast.net>
26259 PR rtl-optimization/57304
26260 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
26261 accessing DF_REF_REAL_LOC.
26263 2013-05-17 Jakub Jelinek <jakub@redhat.com>
26265 PR rtl-optimization/57281
26266 PR rtl-optimization/57300
26267 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
26268 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
26269 what the other splitter did if the registers are dead.
26271 2013-05-17 Richard Biener <rguenther@suse.de>
26273 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
26276 2013-05-17 Jakub Jelinek <jakub@redhat.com>
26278 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
26281 2013-05-17 Marek Polacek <polacek@redhat.com>
26283 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
26284 length when doing non-zero store of storing '\0' to '\0'.
26286 2013-05-17 Jakub Jelinek <jakub@redhat.com>
26288 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
26289 vect_external_def oprnd1 with loop_vinfo, try to emit
26290 optional cast, negation and and stmts on the loop preheader
26291 edge instead of into the pattern def seq.
26293 PR tree-optimization/57051
26294 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
26295 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
26297 2013-05-16 Nick Clifton <nickc@redhat.com>
26299 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
26300 (rl78_is_naked_func): New function.
26301 (rl78_expand_prologue): Skip prologue generation for naked functions.
26302 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
26303 * doc/extend.texi (naked): Add RL78 to the list of processors
26304 that supports this attribute.
26306 2013-05-16 Jeff Law <law@redhat.com>
26308 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
26310 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
26312 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
26313 cache parameters using detect_caches_amd also for CYRIX,
26314 NSC and TM2 signatures.
26316 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
26317 Dzianis Kahanovich <mahatma@eu.by>
26321 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
26322 VIA/Centaur processors and determine their cache parameters
26323 using detect_caches_amd.
26325 2013-05-16 Teresa Johnson <tejohnson@google.com>
26327 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
26328 (rtl_verify_edges): New function.
26329 (rtl_verify_bb_insns): Ditto.
26330 (rtl_verify_bb_pointers): Ditto.
26331 (rtl_verify_bb_insn_chain): Ditto.
26332 (rtl_verify_fallthru): Ditto.
26333 (rtl_verify_bb_layout): Ditto.
26334 (rtl_verify_flow_info_1): Outline checks into new functions.
26335 (rtl_verify_flow_info): Ditto.
26337 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
26339 * cfghooks.c (copy_bbs): Add update_dominance argument.
26340 * cfghooks.h (copy_bbs): Update prototype.
26341 * tree-cfg.c (gimple_duplicate_sese_region):
26342 Add update_dominance argument.
26343 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
26344 * tree-ssa-loop-ch.c (copy_loop_headers): Update
26345 gimple_duplicate_sese_region call.
26346 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
26347 Update copy_bbs call.
26348 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
26349 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
26351 2013-05-16 Jakub Jelinek <jakub@redhat.com>
26353 * tree-vectorizer.h (NUM_PATTERNS): Increment.
26354 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
26355 vect_recog_rotate_pattern.
26356 (vect_recog_rotate_pattern): New function.
26358 2013-05-16 Jason Merrill <jason@redhat.com>
26360 * Makefile.in (LLINKER): New variable.
26361 (mostlyclean): Remove link mutex.
26362 * configure.ac: Handle --enable-link-mutex.
26363 * lock-and-run.sh: New script.
26365 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26368 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
26371 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26373 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
26375 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
26377 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
26378 * config/arm/arm.c (next_consecutive_mem): New function.
26379 (gen_movmem_ldrd_strd): Likewise.
26380 * config/arm/arm.md (movmemqi): Update condition and code.
26381 (unaligned_loaddi, unaligned_storedi): New patterns.
26383 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26385 * config.gcc: Obsolete *-*-solaris2.9*.
26386 * doc/install.texi (Specific, *-*-solaris2*): Document it.
26388 2013-05-16 Richard Biener <rguenther@suse.de>
26390 * passes.c (init_optimization_passes): Move pass_parallelize_loops
26391 earlier, after GRAPHITE transforms and IV canonicalization.
26393 2013-05-16 Jakub Jelinek <jakub@redhat.com>
26395 * omp-low.c (extract_omp_for_data): For collapsed loops,
26396 if at least one of the loops is known at compile time to
26397 iterate zero times, set count to 0.
26398 (expand_omp_regimplify_p): New function.
26399 (expand_omp_for_generic): For collapsed loops, if at least
26400 one of the loops isn't known to iterate at least once,
26401 add runtime check with setting count to 0.
26402 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
26403 For unsigned types if it isn't known at compile time that
26404 the loop will iterate at least once, add runtime check to bypass
26405 the whole loop if initial condition isn't true.
26407 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
26409 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
26411 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
26413 PR middle-end/57286
26414 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
26415 transformations to avoid an infinite loop.
26417 2013-05-16 Marek Polacek <polacek@redhat.com>
26419 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
26421 2013-05-15 Leif Ekblad <leif@rdos.net>
26423 * config/i386/i386.c (ix86_decompose_address): Use
26424 DEFAULT_TLS_SEG_REG to access TLS segment register.
26425 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
26426 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
26427 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
26429 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
26432 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
26433 sibling calls to functions that would normally be lazily bound,
26434 unless $gp is call-clobbered.
26436 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
26438 * config/i386/i386.c (ix86_option_override_internal): Update
26439 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
26440 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
26441 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
26442 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
26444 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
26446 2013-05-15 Andreas Schwab <schwab@suse.de>
26448 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
26449 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
26452 2013-05-15 Teresa Johnson <tejohnson@google.com>
26454 * loop-unroll.c (report_unroll_peel): Check decision before
26455 emitting unroll/peel message.
26457 2013-05-15 Teresa Johnson <tejohnson@google.com>
26459 * function.h (has_bb_partition): New rtl_data flag.
26460 (bb_reorder_complete): Ditto.
26461 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
26462 instead of flag_reorder_blocks_and_partition.
26463 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
26464 with some enhancements.
26465 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
26466 * bb-reorder.c (connect_traces): Check for has_bb_partition
26467 instead of flag_reorder_blocks_and_partition.
26468 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
26469 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
26470 verify_hot_cold_block_grouping.
26471 (partition_hot_cold_basic_blocks): Set has_bb_partition.
26473 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26476 * config/arm/predicates.md (call_insn_operand): New predicate.
26477 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
26478 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
26479 if insn is not a tail call.
26480 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
26482 * config/arm/arm.h (enum reg_class): New caller save register class.
26483 (REG_CLASS_NAMES): Likewise.
26484 (REG_CLASS_CONTENTS): Likewise.
26485 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
26488 2013-05-15 Richard Biener <rguenther@suse.de>
26490 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
26491 of MSG_OPTIMIZED_LOCATIONS.
26492 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
26493 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
26495 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
26496 of MSG_OPTIMIZED_LOCATIONS.
26497 (execute_vect_slp): Likewise.
26498 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
26499 (vect_create_cond_for_alias_checks): Likewise.
26500 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
26501 (vect_recog_widen_mult_pattern): Likewise.
26502 (vect_recog_widen_sum_pattern): Likewise.
26503 (vect_recog_over_widening_pattern): Likewise.
26504 (vect_recog_widen_shift_pattern): Likewise.
26505 (vect_recog_vector_vector_shift_pattern): Likewise.
26506 (vect_recog_divmod_pattern): Likewise.
26507 (vect_recog_mixed_size_cond_pattern): Likewise.
26508 (vect_recog_bool_pattern): Likewise.
26509 (vect_pattern_recog_1): Likewise.
26511 2013-05-15 Martin Jambor <mjambor@suse.cz>
26513 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
26514 non-functions to builtin_unreachable.
26515 * ipa-inline-transform.c (inline_call): Do not assert estimates were
26516 correct when new direct edges were discovered.
26518 2013-05-15 Martin Jambor <mjambor@suse.cz>
26520 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
26521 header, print symbol order instead of node uid, print more information
26522 about indirect edge targets.
26523 (ipa_make_edge_direct_to_target): Print symbol order instead of node
26525 (ipa_make_edge_direct_to_target): Likewise.
26526 (remove_described_reference): Likewise.
26527 (propagate_controlled_uses): Likewise.
26528 (ipa_print_node_params): Also print symbol order.
26529 (ipcp_transform_function): Print symbol order instead of node uids.
26530 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
26531 (cgraph_get_create_real_symbol_node): Likewise.
26532 * ipa-cp.c (print_lattice): Likewise.
26533 (print_all_lattices): Likewise.
26534 (determine_versionability): Likewise.
26535 (initialize_node_lattices): Likewise.
26536 (estimate_local_effects): Likewise.
26537 (update_profiling_info): Likewise.
26538 (create_specialized_node): Likewise.
26539 (perhaps_add_new_callers): Likewise.
26540 (decide_about_value): Likewise.
26541 (decide_whether_version_node): Likewise.
26542 (identify_dead_nodes): Likewise.
26543 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
26544 (dump_inline_summary): Likewise.
26545 (estimate_node_size_and_time): Likewise.
26546 (inline_analyze_function): Likewise.
26547 * ipa-inline.c (report_inline_failed_reason): Likewise.
26548 (want_early_inline_function_p): Likewise.
26549 (edge_badness): Likewise.
26550 (update_edge_key): Likewise.
26551 (inline_small_functions): Likewise. Add dumping of order to two other
26553 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
26554 instead of node uids.
26555 (propagate_pure_const): Likewise.
26556 (propagate_pure_const): Likewise.
26557 * ipa-utils.c (dump_cgraph_node_set): Likewise.
26558 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
26559 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
26561 * tree-pretty-print.c (dump_function_header): Likewise.
26562 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
26563 Print symbol order instead of node uids.
26565 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26567 * config/s390/s390.c (s390_register_move_cost): Don't impose the
26568 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
26570 2013-05-15 Richard Biener <rguenther@suse.de>
26572 PR tree-optimization/57275
26573 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
26574 return value for fail to do runtime alias checks for gather loads.
26576 2013-05-15 Jan Hubicka <jh@suse.cz>
26580 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
26581 weakrefs are not external.
26582 (lto_symtab_merge_decls): Fix thinko when dealing with
26583 non-lto_symtab decls.
26584 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
26585 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
26586 * varpool.c (dump_varpool_node): Dump more flags.
26588 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
26590 * config/i386/i386.c (processor_alias_table): Add instruction
26591 FSGSBASE for AMD bdver3 architecture.
26593 2013-05-14 Jakub Jelinek <jakub@redhat.com>
26595 * tree.c (warn_deprecated_use): Print file:line using locus color.
26596 * diagnostic.c (diagnostic_report_current_module): Print file:line
26597 and file:line:column using locus color.
26599 2013-05-14 Mike Stump <mikestump@comcast.net>
26601 * gdbinit.in: Add __null.
26603 2013-05-14 Mike Stump <mikestump@comcast.net>
26605 * recog.h: Rename struct recog_data to Recog_data.
26606 * recog.c: Likewise.
26607 * reload.c (can_reload_into): Likewise.
26608 * config/picochip/picochip.c: Likewise.
26610 2013-05-14 Mike Stump <mikestump@comcast.net>
26612 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
26614 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
26616 * resource.h (struct resources): Remove unch_memory member.
26617 (CLEAR_RESOURCE): Don't clear unch_memory.
26618 * resource.c (mark_referenced_resources): Don't set it.
26619 (mark_set_resources): Likewise.
26620 (mark_target_live_regs): Don't clear it.
26621 (init_resource_info): Likewise.
26622 * reorg.c (resource_conflicts_p): Don't compare it.
26623 (redundant_insn): Don't set it.
26625 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
26627 * emit-rtl.c (next_label): Remove unused function.
26628 (skip_consecutive_labels, link_cc0_insns): Move to ...
26629 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
26630 only place where these functions are used, and make them static.
26632 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
26634 * fold-const.c (fold_negate_expr): Handle vectors.
26635 (fold_truth_not_expr): Make it static.
26636 (fold_invert_truthvalue): New static function.
26637 (invert_truthvalue_loc): Handle vectors. Do not call
26638 fold_truth_not_expr directly.
26639 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
26640 <TRUTH_NOT_EXPR>: Do not cast to boolean.
26641 (fold_comparison): Handle vector constants.
26642 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
26643 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
26644 * tree.h (fold_truth_not_expr): Remove declaration.
26646 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
26648 * config/aarch64/aarch64-simd.md
26649 (aarch64_vcond_internal<mode>): Rename to...
26650 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
26651 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
26652 float modes. Clarify all iterator modes.
26653 (vcond<mode><mode>): Use new name for vcond expanders.
26654 (vcond<v_cmp_result><mode>): Likewise.
26655 (vcondu<mode><mode>: Likewise.
26656 * config/aarch64/iterators.md (VDQF_COND): New.
26658 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
26661 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
26662 variable for the shift amount. Check that we shift by non-negative
26665 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
26668 * config/arm/arm.h (EPILOGUE_USES): Only return true
26669 for LR_REGNUM after epilogue_completed.
26671 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
26673 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
26674 is error_mark_node.
26676 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26679 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
26680 and Solaris 11+/x86 with gld.
26681 * configure: Regenerate.
26683 2013-05-14 Jakub Jelinek <jakub@redhat.com>
26685 * expmed.c (expand_shift_1): Canonicalize rotates by
26686 constant bitsize / 2 to bitsize - 1.
26687 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
26688 case ROTATERT>: Likewise.
26691 2013-05-10 Jakub Jelinek <jakub@redhat.com>
26693 * config/i386/i386.md (rotateinv): New code attr.
26694 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
26695 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
26696 roll $31, %eax, etc.
26698 2013-05-14 Richard Biener <rguenther@suse.de>
26700 PR middle-end/57235
26701 * tree-eh.c (sink_clobbers): Give up for successors with
26702 multiple predecessors and no virtual uses.
26704 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
26706 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
26707 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
26709 2013-05-14 Jakub Jelinek <jakub@redhat.com>
26711 PR middle-end/57251
26712 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
26713 the case when both op0 and op1 have VOIDmode.
26715 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
26717 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
26718 in multiply-accumulate mode.
26720 2013-05-13 Guozhi Wei <carrot@google.com>
26722 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
26724 2013-05-13 Kai Tietz <ktietz@redhat.com>
26727 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
26728 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
26729 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
26730 * config/i386/i386.c (ix86_option_override_internal): Likewise.
26731 (ix86_expand_prologue): Likewise.
26732 (ix86_expand_split_stack_prologue): Likewise.
26733 (legitimate_pic_address_disp_p): Likewise.
26734 (legitimize_pic_address): Likewise.
26735 (legitimize_tls_address): Likewise.
26736 (legitimize_pe_coff_symbol): Likewise.
26737 (output_pic_addr_const): Likewise.
26738 (construct_plt_address): Likewise.
26739 (ix86_expand_call): Likewise.
26740 (x86_output_mi_thunk): Likewise.
26741 (x86_function_profiler): Likewise.
26743 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
26745 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
26746 similar switch cases.
26747 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
26748 (aarch64_simd_mov_to_<mode>low): Delete.
26749 (aarch64_simd_mov_to_<mode>high): Delete.
26750 (move_lo_quad_<mode>): Add w<-r alternative.
26751 (aarch64_simd_move_hi_quad_<mode>): Likewise.
26752 (aarch64_simd_mov_from_*): Update type attribute.
26753 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
26756 2013-05-13 Jan Hubicka <jh@suse.cz>
26758 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
26759 * config/i386/i386.c (ix86_compute_frame_layout,
26760 ix86_expand_epilogue, emit_i387_cw_initialization,
26761 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
26762 ix86_local_alignment): Fix use of size/speed predicates.
26764 2013-05-13 Jakub Jelinek <jakub@redhat.com>
26766 PR tree-optimization/45216
26767 PR tree-optimization/57157
26768 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
26769 the (-Y) & (B - 1) variant if OP is |.
26770 * expmed.c (expand_shift_1): For rotations by const0_rtx just
26771 return shifted. Use (-op1) & (prec - 1) as other_amount
26772 instead of prec - op1.
26774 2013-05-13 Martin Jambor <mjambor@suse.cz>
26776 PR middle-end/42371
26777 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
26778 (ipa_constant_data): New type.
26779 (ipa_jump_func): Use ipa_constant_data to hold information about
26780 constant jump functions.
26781 (ipa_get_jf_constant): Adjust to jump function type changes.
26782 (ipa_get_jf_constant_rdesc): New function.
26783 (ipa_param_descriptor): New field controlled_uses.
26784 (ipa_get_controlled_uses): New function.
26785 (ipa_set_controlled_uses): Likewise.
26786 * ipa-ref.h (ipa_find_reference): Declare.
26787 * ipa-prop.c (ipa_cst_ref_desc): New type.
26788 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
26790 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
26791 New parameter cs. Adjust all callers.
26792 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
26793 (remove_described_reference): New function.
26794 (jfunc_rdesc_usable): Likewise.
26795 (try_make_edge_direct_simple_call): Decrement controlled use count,
26796 attempt to remove reference if it hits zero.
26797 (combine_controlled_uses_counters): New function.
26798 (propagate_controlled_uses): Likewise.
26799 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
26800 (ipa_edge_duplication_hook): Duplicate reference descriptions.
26801 (ipa_print_node_params): Print described use counter.
26802 (ipa_write_jump_function): Adjust to jump function type changes.
26803 (ipa_read_jump_function): New parameter CS, pass it to
26804 ipa_set_jf_constant. Adjust caller.
26805 (ipa_write_node_info): Stream controlled use count
26806 (ipa_read_node_info): Likewise.
26807 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
26809 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
26810 count. Remove cloning-added reference if it reaches zero.
26811 * ipa-ref.c (ipa_find_reference): New function.
26813 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
26815 * config/i386/i386.c (processor_target_table): Modified default
26816 alignment values for AMD BD and BT architectures.
26818 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
26820 * tree-vect-generic.c (uniform_vector_p): Move ...
26821 * tree.c (uniform_vector_p): ... here.
26822 * tree.h (uniform_vector_p): Declare it.
26823 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
26826 2013-05-13 Jakub Jelinek <jakub@redhat.com>
26828 PR tree-optimization/57230
26829 * tree-ssa-strlen.c (handle_char_store): Record length for
26830 array store from STRING_CST.
26832 PR tree-optimization/57230
26833 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
26836 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
26838 * config/epiphany/epiphany.c (epiphany_init): Check size of
26839 NUM_MODES_FOR_MODE_SWITCHING.
26840 (epiphany_expand_prologue):
26841 Remove CONFIG_REGNUM initial value handling code.
26842 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
26843 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
26844 (emit_set_fp_mode, epiphany_mode_after): Likewise.
26845 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
26846 Don't return 1 for FP_MODE_NONE.
26847 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
26848 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
26849 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
26850 * config/epiphany/epiphany.md (save_config): New pattern.
26852 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
26854 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
26856 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
26858 * config/i386/i386.md (memory): Handle sseishft1.
26859 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
26860 (*vec_extractv2di_1): Ditto.
26862 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
26864 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
26867 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
26869 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
26870 Add mthumb/march=armv7-a multilib.
26871 Add mthumb/march=armv7-r multilib.
26872 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
26874 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
26876 * config/v850/t-rtems: Add more multilibs.
26878 2013-05-10 Richard Biener <rguenther@suse.de>
26880 PR tree-optimization/57214
26881 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
26882 not propagate from SSA names that occur in abnormal PHI nodes.
26884 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
26886 * stor-layout.c (element_precision): New function.
26887 * machmode.h (element_precision): Declare it.
26888 * tree.c (build_minus_one_cst): New function.
26889 (element_precision): Likewise.
26890 * tree.h (build_minus_one_cst): Declare new function.
26891 (element_precision): Likewise.
26892 * fold-const.c (operand_equal_p): Use element_precision.
26893 (fold_binary_loc): Handle vector types.
26894 * convert.c (convert_to_integer): Use element_precision.
26895 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
26898 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
26900 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
26901 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
26902 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
26903 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
26904 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
26905 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
26906 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
26907 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
26908 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
26909 (Uuw8): New constraints.
26910 (Usb4): Move into alphabetical order.
26911 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
26912 (sd8_operand, ub8_operand, uw8_operand): New predicates.
26913 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
26914 previously unnamed patterns.
26915 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
26916 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
26917 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
26918 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
26919 of set_attr_alternative/if_then_else. Use extended_mips16 instead
26920 of specific lengths.
26922 2013-05-10 Jakub Jelinek <jakub@redhat.com>
26924 * config/i386/i386.md (rotateinv): New code attr.
26925 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
26926 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
26927 roll $31, %eax, etc.
26929 PR tree-optimization/45216
26930 PR tree-optimization/57157
26931 * tree-ssa-forwprop.c (simplify_rotate): New function.
26932 (ssa_forward_propagate_and_combine): Call it.
26934 2013-05-10 Richard Biener <rguenther@suse.de>
26936 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
26937 disable peeling when we version for aliasing.
26938 (vector_alignment_reachable_p): Honor explicit user alignment.
26939 (vect_supportable_dr_alignment): Likewise.
26940 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
26941 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
26942 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
26943 then peeling to arrange for the cost-model check to come first.
26945 2013-05-10 Alan Modra <amodra@gmail.com>
26947 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
26948 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
26949 * configure: Regenerate.
26951 2013-05-10 Alan Modra <amodra@gmail.com>
26954 * varasm.c (default_elf_select_section): Move !DECL_P check..
26955 (get_named_section): ..to here before calling get_section_name.
26957 (default_section_type_flags): Add DECL_P check.
26958 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
26959 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
26961 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
26963 * config/epiphany/epiphany.c (epiphany_expand_prologue):
26964 When using gen_stack_adjust_str with a register offset, add a
26965 REG_FRAME_RELATED_EXPR note.
26967 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
26969 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
26970 (*vec_extractv4si_zext_mem): Ditto.
26971 (*vec_extractv2di): Add 0->x and x->x alternatives.
26972 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
26973 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
26975 2013-05-09 Jason Merrill <jason@redhat.com>
26977 N3639 C++1y VLA support
26978 * gimplify.c (gimplify_vla_decl): Don't touch an existing
26981 * tree.c (build_constructor_va): New.
26982 * tree.h: Declare it.
26984 2013-05-09 Martin Jambor <mjambor@suse.cz>
26987 * gimple-fold.c (canonicalize_constructor_val): Call
26988 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
26990 2013-05-09 Jan Hubicka <jh@suse.cz>
26991 Richard Biener <rguenther@suse.de>
26994 * symtab.c (symtab_make_decl_local): Do not add private names.
26996 2013-05-09 Jan Hubicka <jh@suse.cz>
26999 * symtab.c (insert_to_assembler_name_hash): Handle clones.
27000 (unlink_from_assembler_name_hash): Likewise.
27001 (symtab_prevail_in_asm_name_hash, symtab_register_node,
27002 symtab_unregister_node, symtab_initialize_asm_name_hash,
27003 change_decl_assembler_name): Update.
27005 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
27007 * config/aarch64/aarch64.md: New movtf split.
27008 (*movtf_aarch64): Update.
27009 (aarch64_movdi_tilow): Handle TF modes and rename to
27010 aarch64_movdi_<mode>low.
27011 (aarch64_movdi_tihigh): Handle TF modes and rename to
27012 aarch64_movdi_<mode>high
27013 (aarch64_movtihigh_di): Handle TF modes and rename to
27014 aarch64_mov<mode>high_di
27015 (aarch64_movtilow_di): Handle TF modes and rename to
27016 aarch64_mov<mode>low_di
27017 (aarch64_movtilow_tilow): Remove spurious whitespace.
27018 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
27020 (aarch64_print_operand): Update.
27022 2013-05-09 Alan Modra <amodra@gmail.com>
27024 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
27026 * configure: Regenerate.
27028 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
27030 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
27031 splitter preparation statements.
27032 * config/i386/sse.md (*vec_extract* splitters): Ditto.
27033 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
27036 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27038 * gimple-ssa-strength-reduction.c (count_candidates): Change
27039 return value to int.
27040 (analyze_candidates_and_replace): Change type of length to int.
27042 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
27044 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
27045 (*vec_extract<mode>): Use VI12_128 mode iterator.
27046 (*vec_extract<mode>_mem): Ditto.
27047 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
27050 2013-05-08 Diego Novillo <dnovillo@google.com>
27055 2012-08-17 Diego Novillo <dnovillo@google.com>
27058 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
27059 * config.in: Regenerate.
27060 * configure: Regenerate.
27061 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
27063 2013-05-08 Jan Hubicka <jh@suse.cz>
27066 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
27067 * cgraph.h (symtab_node_base): Add unique_name.
27068 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
27069 input_overwrite_node, input_varpool_node): Stream unique_name.
27070 * cgraphclones.c (cgraph_create_virtual_clone,
27071 cgraph_function_versioning): Set unique_name.
27072 * ipa.c (function_and_variable_visibility): Set unique_name.
27074 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27076 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
27077 (alloc_cand_and_find_basis): Restrict conditional candidate
27078 processing to CAND_MULTs.
27080 2013-05-08 Jan Hubicka <jh@suse.cz>
27083 lto-symtab.c (lto_symtab_symbol_p): New function.
27084 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
27085 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
27086 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
27087 Skip static symbols.
27089 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
27091 PR tree-optimization/57200
27092 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
27093 Only call inform if the preceding warning_at returns true.
27095 2013-05-07 Han Shen <shenhan@google.com>
27097 * cfgexpand.c (record_or_union_type_has_array_p): New function.
27098 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
27099 * common.opt (fstack-protector-strong): New option.
27100 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
27101 * doc/invoke.texi (Optimization Options): Document
27102 "-fstack-protector-strong".
27103 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
27105 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
27107 * config/mips/mips.c (mips_machine_reorg2): Return 0.
27109 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
27111 * ira.c (update_equiv_regs): Add insn having equiv memory even if
27112 it is not lhs of the insn.
27113 (setup_reg_equiv): Remove insn having equiv memory which it is not
27115 * lra-constraints.c (process_address): Try to improve generation
27116 code for address base + disp.
27117 (lra_constraints): Make correct the code for checking insn setting
27118 up backward equivalence. Remove insn only if it is in the init
27120 * lra-eliminations.c (update_reg_eliminate): Change return value.
27121 (lra_eliminate): Use the result.
27123 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
27125 * config/i386/sse.md (ssescalarnummask): New mode attribute.
27126 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
27127 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
27128 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
27129 register target operands.
27130 (*vec_extractv8hi_sse2): New pattern.
27131 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
27132 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
27133 (*vec_extract<mode>_mem): New insn and split pattern.
27135 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
27137 * config/arm/arm.c (arm_asan_shadow_offset): New function.
27138 (TARGET_ASAN_SHADOW_OFFSET): Define.
27139 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
27140 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
27142 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27144 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
27145 (incr_vec_index): Return -1 if increment not found.
27146 (create_add_on_incoming_edge): Assert if increment not found.
27147 (record_increment): Limit number of increments recorded.
27148 (all_phi_incrs_profitable): Return false if an increment not found.
27149 (replace_profitable_candidates): Don't process increments that were
27151 (analyze_candidates_and_replace): Limit size of incr_vec.
27153 2013-05-07 Richard Biener <rguenther@suse.de>
27155 * calls.c (special_function_p): setjmp-like functions are leaf.
27156 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
27157 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
27159 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
27161 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
27162 (aarch64_simd_mov<mode>): New expander.
27163 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
27164 (aarch64_simd_mov_to_<mode>high): Likewise.
27165 (aarch64_simd_mov_from_<mode>low): Likewise.
27166 (aarch64_simd_mov_from_<mode>high): Likewise.
27167 (aarch64_dup_lane<mode>): Update.
27168 (aarch64_dup_lanedi): New instruction pattern.
27169 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
27170 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
27172 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27174 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
27175 (replace_mult_candidate): Remove unnecessary argument; remove
27176 unnecessary parameter from call to introduce_cast_before_cand.
27177 (replace_unconditional_candidate): Remove unnecessary parameter
27178 from call to replace_mult_candidate.
27179 (replace_conditional_candidate): Likewise.
27180 (insert_initializers): Use make_temp_ssa_name.
27181 (introduce_cast_before_cand): Remove unnecessary argument; use
27182 make_temp_ssa_name.
27183 (replace_one_candidate): Remove unnecessary argument; remove
27184 unnecessary parameter from calls to introduce_cast_before_cand.
27185 (replace_profitable_candidates): Remove unnecessary parameters
27186 from calls to replace_one_candidate.
27188 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27190 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
27191 phi def as possibly hiding a basis for a CAND_ADD whose operands
27192 have been commuted in the analysis.
27193 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
27195 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
27197 * config/aarch64/aarch64.md
27198 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
27199 shift value between 0-4.
27201 2013-05-07 Richard Biener <rguenther@suse.de>
27203 * double-int.h (rshift): New overload.
27204 * double-int.c (rshift): New function.
27205 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
27206 (create_reference_ops_from_ref): Remove.
27207 (vn_reference_insert): Use shared ops for constructing the
27208 reference and copy it.
27210 2013-05-07 Richard Biener <rguenther@suse.de>
27212 PR middle-end/57190
27213 * tree-eh.c (sink_clobbers): Properly propagate
27214 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
27216 2013-05-07 Jakub Jelinek <jakub@redhat.com>
27218 PR tree-optimization/57149
27219 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
27220 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
27221 collect_phi_def_edges, execute_late_warn_uninitialized): Use
27222 uninit_undefined_value_p instead of ssa_undefined_value_p.
27225 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
27226 for modifier == EXPAND_INITIALIZER.
27228 2013-05-07 Anton Blanchard <anton@samba.org>
27230 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
27231 for powerpc64 little endian.
27232 * configure: Regenerate.
27234 2013-05-06 Graham Stott <grahams@btinternet.com>
27236 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
27237 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
27238 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
27239 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
27241 2013-05-06 Graham Stott <grahams@btinternet.com>
27243 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
27244 codes which allow non-lvalues.
27246 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
27248 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
27249 components are all 1s.
27250 (integer_minus_onep): New function.
27251 * tree.h (integer_minus_onep): Declare it.
27252 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
27253 integer_minus_onep instead of integer_all_onesp.
27255 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
27258 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
27259 variations of these patterns.
27261 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
27263 * config/i386/i386.md (isa): Add x64_sse4 member.
27264 (enabled): Handle x64_sse4.
27265 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
27266 instruction for 64bit SSE4_1 targets. Update insn attributes.
27267 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
27268 instruction for SSE4_1 targets. Update insn attributes.
27269 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
27270 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
27271 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
27273 (*vec_extractv4si): Rename from *sse4_1_pextrd.
27274 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
27275 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
27277 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
27280 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
27282 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
27284 * final.c (do_assembler_dialects): Don't handle curly braces and
27285 vertical bar escaped by % as dialect delimiters.
27286 (output_asm_insn): Print curly braces and vertical bar if escaped
27287 by % and ASSEMBLER_DIALECT defined.
27288 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
27289 * doc/tm.texi: Regenerated.
27291 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
27293 * config/mips/mips.c: Include tree-pass.h.
27294 (mips_reorg): Split in pre- and post-dbr_schedule parts.
27295 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
27296 (pass_mips_machine_reorg2): New machine specific pass.
27297 (insert_pass_mips_machine_reorg2): New pass plugin definition.
27298 (mips_option_override): Register the new pass.
27299 * rtl.h (cleanup_barriers): Remove prototype.
27300 (dbr_schedule): Likewise.
27301 * jump.c (cleanup_barriers): Make static.
27302 * reorg.c (dbr_schedule): Likewise.
27304 2013-05-06 Richard Biener <rguenther@suse.de>
27306 PR tree-optimization/57185
27307 * tree-parloops.c (add_field_for_reduction): Handle anonymous
27308 SSA names properly.
27310 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
27313 * config/i386/i386.c (add_parameter_dependencies): Add dependence
27314 between "first_arg" and "insn", not "last" and "insn".
27316 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27318 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
27319 (find_candidates_in_block): Re-enable slsr_process_phi.
27320 (create_phi_basis): Fix double counting of candidate adjustment.
27322 2013-05-06 Richard Biener <rguenther@suse.de>
27324 PR middle-end/57147
27325 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
27326 the edge is also fallthru, preserve it and just clear the
27328 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
27329 also complex, preserve that and just clear the fallthru flag.
27330 * tree-inline.c (update_ssa_across_abnormal_edges): Also
27331 update virtual operands.
27333 2013-05-06 Alan Modra <amodra@gmail.com>
27335 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
27336 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
27337 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
27338 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
27339 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
27340 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
27342 2013-05-06 Alan Modra <amodra@gmail.com>
27344 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
27345 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
27346 (DEFAULT_ASM_ENDIAN): Define.
27347 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
27348 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
27349 Update -K PIC clause from sysv4.h.
27350 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
27351 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
27353 2013-05-06 Alan Modra <amodra@gmail.com>
27355 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
27356 twice for little-endian.
27357 (ashrdi3_no_power, ashrdi3): Support little-endian.
27359 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
27362 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
27363 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
27365 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
27366 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
27367 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
27370 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
27371 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27373 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
27374 * config/pa/pa.opt: Make mbig-switch a no-op.
27375 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
27376 (CASE_VECTOR_MODE): Always return SImode.
27377 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
27378 for the !TARGET_BIG_SWITCH case.
27379 * config/pa/pa-linux.h: Likewise.
27380 * config/pa/pa-openbsd.h: Likewise.
27381 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
27382 * config/pa/pa.md (short_jump): Remove define_insn.
27383 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
27384 (casesi0): Remove define_insn.
27385 (type): Remove btable_branch.
27386 (pa_combine_type): Likewise.
27387 (in_nullified_branch_delay): Likewise.
27388 (in_call_delay): Likewise.
27389 (define_delay): Likewise.
27390 (define_insn_reservation "Z3"): Likewise.
27391 (define_insn_reservation "Z4"): Likewise.
27392 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
27393 (pa_adjust_insn_length): Remove adjustment for btable branches.
27394 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
27397 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
27399 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
27400 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
27401 Add m->r,x alternatives.
27402 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
27403 splitters using SWI48x mode iterator.
27404 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
27405 TARGET_64BIT. Add m->x alternative.
27406 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
27407 Add o->x alternative. Enable for TARGET_SSE.
27408 (sse_storeq): Remove expander.
27409 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
27410 with memory input operand.
27411 (*vec_extractv2di_1 splitter): New.
27412 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
27413 * config/i386/i386.md (ssevecmodelower): New mode attribute.
27415 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
27417 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
27418 (INT_LOWPART): Delete.
27419 (extract_MB): Adjust.
27420 (extract_ME): Adjust.
27421 (print_operand): Adjust.
27423 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
27425 * config/rs6000/predicates.md (reg_or_add_cint_operand,
27426 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
27427 (reg_or_logical_cint_operand, easy_fp_constant,
27428 logical_const_operand): Delete "CONST_DOUBLE" case.
27429 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
27430 "HOST_BITS_PER_WIDE_INT == 64" test.
27431 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
27432 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
27433 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
27434 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
27436 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
27437 CONST_DOUBLE DImode/VOIDmode case.
27438 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
27439 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
27440 CONST_DOUBLE VOIDmode case.
27441 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
27442 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
27443 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
27444 Delete CONST_DOUBLE case.
27445 (splitters for mov FMOVE64 const_double): Delete
27446 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
27447 "HOST_BITS_PER_WIDE_INT >= 64" test.
27448 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
27450 (mov DI const_double): Delete.
27452 2013-05-04 Jakub Jelinek <jakub@redhat.com>
27454 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
27455 on op shows all bits zero in mode of a lowpart subreg, return zero.
27457 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
27460 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
27461 to save TFmode registers and DImode to save TImode registers for
27462 caller save operations.
27463 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
27464 mark being partially clobbered since they only use the first
27467 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
27468 and TDmode only use the upper 64-bits of each VSX register.
27470 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27472 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
27473 (find_candidates_in_block): Disable slsr_process_phi.
27475 2013-05-03 Guozhi Wei <carrot@google.com>
27477 * coverage.c (coverage_obj_init): Move the construction of gcov
27479 (build_init_ctor): ... here.
27481 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27483 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
27484 (slsr_cand_d): Redefine def_phi.
27485 (stride_status, phi_adjust_status, count_phis_status): New enums.
27486 (find_phi_def): New.
27487 (find_basis_for_base_expr): New.
27488 (find_basis_for_candidate): Handle hidden bases.
27489 (alloc_cand_and_find_basis): Handle phi candidates.
27490 (slsr_process_phi): New.
27491 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
27492 (create_mul_imm_cand): Likewise.
27493 (create_add_ssa_cand): Exclude phi base candidates.
27494 (create_add_imm_cand): Likewise.
27495 (slsr_process_cast): Likewise.
27496 (slsr_process_copy): Likewise.
27497 (find_candidates_in_block): Handle phi candidates.
27498 (dump_candidate): Likewise.
27499 (unconditional_cands): Delete.
27500 (unconditional_cands_with_known_stride_p): Delete.
27501 (phi_dependent_cand_p): New.
27502 (cand_increment): Handle phi-dependent candidates.
27503 (replace_dependent): Delete.
27504 (replace_mult_candidate): New.
27505 (replace_unconditional_candidate): New.
27506 (incr_vec_index): Move to avoid forward reference.
27507 (create_add_on_incoming_edge): New.
27508 (create_phi_basis): New.
27509 (replace_dependents): Delete.
27510 (replace_conditional_candidate): New.
27511 (phi_add_costs): New.
27512 (replace_uncond_cands_and_profitable_phis): New.
27513 (record_increment): Handle phi adjustments.
27514 (record_phi_increments): New.
27515 (record_increments): Handle phi adjustments.
27516 (phi_incr_cost): New.
27517 (lowest_cost_path): Handle phis.
27518 (total_savings): Likewise.
27519 (analyze_increments): Likewise.
27520 (ncd_with_phi): New.
27521 (ncd_of_cand_and_phis): New.
27522 (nearest_common_dominator_for_cands): Handle phi increments.
27523 (all_phi_incrs_profitable): New.
27524 (replace_profitable_candidates): Handle phi-dependent candidates.
27525 (analyze_candidates_and_replace): Likewise.
27527 2013-05-03 Teresa Johnson <tejohnson@google.com>
27530 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
27531 do not exceed REG_BR_PROB_BASE.
27533 2013-05-03 Jeff Law <law@redhat.com>
27535 PR tree-optimization/57144
27536 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
27537 operand of the condition will bit into the new type when eliminating
27538 a cast feeding a condition.
27540 2013-05-03 Jakub Jelinek <jakub@redhat.com>
27542 PR rtl-optimization/57130
27543 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
27544 of COMPARE as in_code to the recursive call if needed.
27546 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
27548 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
27549 (enabled): Handle new members.
27550 * config/i386/sse.md (*vec_concatv2si): Merge from
27551 *vec_concatv2si_sse2 and vec_concatv2si_sse.
27552 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
27554 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
27556 PR tree-optimization/57027
27557 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
27558 for fnms opportunity, check we got the prerequisite kind
27559 of tree / gimple before using accessor functions.
27561 2013-05-03 Richard Biener <rguenther@suse.de>
27563 * double-int.h (lshift): New overload without precision
27564 and arith argument.
27565 (operator *=, operator +=, operator -=): Move ...
27566 * double-int.c (operator *=, operator +=, operator -=): ... here
27567 and implement more efficiently.
27568 (mul_double_with_sign): Remove.
27569 (lshift_double): Adjust to take unsinged shift argument, push
27570 dispatching code to callers.
27571 (mul_double_wide_with_sign): Add early out for callers that
27572 are not interested in high parts or overflow.
27573 (lshift): New function.
27574 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
27575 dispatch code here.
27576 (lrotate, rrotate): Use logical shifts.
27577 * expr.c (get_inner_reference): Use lshift.
27578 * fixed-value.c (do_fixed_divide): Likewise.
27579 * tree-dfa.c (get_ref_base_and_extent): Likewise.
27580 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
27581 (indirect_refs_may_alias_p): Likewise.
27582 (stmt_kills_ref_p_1): Likewise.
27584 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
27586 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
27588 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
27590 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
27591 scalar form of FABD instruction.
27593 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
27595 * lra-constraints.c (process_alt_operands): Add checking alt
27596 number to choose the best alternative.
27598 2013-05-02 Richard Biener <rguenther@suse.de>
27600 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
27601 bitmap and its handling.
27602 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
27604 2013-05-02 Richard Biener <rguenther@suse.de>
27606 PR middle-end/57140
27607 * tree-inline.c (copy_loops): Properly handle removed loops.
27608 (copy_cfg_body): Mark destination loops for fixup if source
27609 loops needed fixup.
27611 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
27614 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
27615 generating simple_return for naked functions.
27617 2013-05-02 Martin Jambor <mjambor@suse.cz>
27619 PR middle-end/56988
27620 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
27621 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
27623 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
27624 ipa_agg_replacement_value structures.
27625 (known_aggs_to_agg_replacement_list): Likewise.
27626 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
27627 (read_agg_replacement_chain): Likewise.
27628 (ipcp_transform_function): Also check that by_ref flags match.
27630 2013-05-02 Richard Biener <rguenther@suse.de>
27632 * graphds.h (struct graph): Add obstack member.
27633 * graphds.c (new_graph): Initialize obstack and allocate
27635 (add_edge): Allocate edge from the obstack.
27636 (free_graph): Free the obstack instead of all edges and vertices.
27638 2013-05-02 Teresa Johnson <tejohnson@google.com>
27640 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
27642 * cfg.c (update_bb_profile_for_threading): Ditto.
27643 * tree-inline.c (copy_bb): Ditto.
27644 (copy_edges_for_bb): Ditto.
27645 (initialize_cfun): Ditto.
27646 (copy_cfg_body): Ditto.
27647 (expand_call_inline): Ditto.
27648 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
27649 (estimate_node_size_and_time): Ditto.
27650 (inline_merge_summary): Ditto.
27651 * cgraphclones.c (cgraph_clone_edge): Ditto.
27652 (cgraph_clone_node): Ditto.
27653 * sched-rgn.c (compute_dom_prob_ps): Ditto.
27654 (compute_trg_info): Ditto.
27656 2013-05-02 Ian Bolton <ian.bolton@arm.com>
27658 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
27659 S reg when fp attribute set.
27660 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
27662 2013-05-02 Ian Bolton <ian.bolton@arm.com>
27664 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
27666 (*and_one_cmplsi3_compare0_uxtw): Likewise.
27667 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
27668 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
27670 2013-05-02 Richard Biener <rguenther@suse.de>
27672 * tree-scalar-evolution.c (scev_info_hasher): Remove.
27673 (struct instantiate_cache_entry): New type.
27674 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
27675 (struct instantiate_cache_type): New type.
27676 (set_instantiated_value, get_instantiated_value): Remove.
27677 (get_instantiated_value_entry): New function.
27678 (instantiate_scev_name): Use the new cache and adjust.
27679 (instantiate_scev_poly): Adjust.
27680 (instantiate_scev_binary): Likewise.
27681 (instantiate_array_ref): Likewise.
27682 (instantiate_scev_convert): Likewise.
27683 (instantiate_scev_not): Likewise.
27684 (instantiate_scev_3): Likewise.
27685 (instantiate_scev_2): Likewise.
27686 (instantiate_scev_r): Likewise.
27687 (instantiate_scev): Likewise.
27688 (resolve_mixers): Likewise.
27690 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
27693 * lra-constraints.c (best_small_class_operands_num): Remove.
27694 (process_alt_operands): Remove small_class_operands_num. Take
27695 small classes operands into losers and only if the operand is not
27696 matched. Modify debugging output.
27697 (curr_insn_transform): Remove best_small_class_operands_num.
27700 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
27702 * config/aarch64/aarch64-builtins.c
27703 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
27704 * config/aarch64/aarch64-simd-builtins.def
27705 (reduc_splus_): Add new modes.
27706 (reduc_uplus_): New.
27707 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
27708 (reduc_uplus_v4sf): Likewise.
27709 (reduc_splus_v4sf): Likewise.
27710 (aarch64_addv<mode>): Likewise.
27711 (reduc_uplus_<mode>): Likewise.
27712 (reduc_splus_<mode>): Likewise.
27713 (aarch64_addvv2di): Likewise.
27714 (reduc_uplus_v2di): Likewise.
27715 (reduc_splus_v2di): Likewise.
27716 (aarch64_addvv2si): Likewise.
27717 (reduc_uplus_v2si): Likewise.
27718 (reduc_splus_v2si): Likewise.
27719 (reduc_<sur>plus_<mode>): New.
27720 (reduc_<sur>plus_v2di): Likewise.
27721 (reduc_<sur>plus_v2si): Likewise.
27722 (reduc_<sur>plus_v4sf): Likewise.
27723 (aarch64_addpv4sf): Likewise.
27724 * config/aarch64/arm_neon.h
27725 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
27726 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
27727 add UNSPEC_SADDV, UNSPEC_UADDV.
27729 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
27731 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
27733 * config/aarch64/arm_neon.h
27734 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
27736 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
27738 * config/aarch64/aarch64-builtins
27739 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
27741 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
27743 * config/aarch64/aarch64-simd-builtins.def
27744 (reduc_smax_): New.
27745 (reduc_smin_): Likewise.
27746 (reduc_umax_): Likewise.
27747 (reduc_umin_): Likewise.
27748 (reduc_smax_nan_): Likewise.
27749 (reduc_smin_nan_): Likewise.
27752 (smax): Update for V2SF, V4SF and V2DF modes.
27755 (smin_nan): Likewise.
27756 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
27757 (<su><maxmin><mode>3): ...This, refactor.
27758 (s<maxmin><mode>3): New.
27759 (<maxmin_uns><mode>3): Likewise.
27760 (reduc_<maxmin_uns>_<mode>): Refactor.
27761 (reduc_<maxmin_uns>_v4sf): Likewise.
27762 (reduc_<maxmin_uns>_v2si): Likewise.
27763 (aarch64_<fmaxmin><mode>: Remove.
27764 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
27766 (vmin<q>_f<32,64>): Likewise.
27767 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
27769 (su): Add mappings for smax, smin, umax, umin.
27771 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
27772 (FMAXMIN): Rename as...
27773 (FMAXMIN_UNS): ...This.
27775 (fmaxminv): Likewise.
27776 (fmaxmin): Likewise.
27778 (maxmin_uns_op): Likewise.
27780 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
27782 * config/aarch64/arm_neon.h
27783 (vac<ge, gt><sd>_f<32, 64>): Rename to...
27784 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
27785 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
27787 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
27789 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
27790 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
27792 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
27794 * config/aarch64/aarch64-simd.md
27795 (vcond<mode>_internal): Handle special cases for constant masks.
27796 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
27797 (vcondu<mode><mode>): Likewise.
27798 (vcond<v_cmp_result><mode>): New.
27800 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
27802 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
27803 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
27804 * config/aarch64/aarch64-simd-builtins.def
27805 (cmeq): Update to BUILTIN_VALLDI.
27810 * config/aarch64/arm_neon.h
27811 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
27812 to builtins or C as appropriate.
27814 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
27816 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
27818 (cmhi): Rename to...
27820 * config/aarch64/aarch64-simd.md
27821 (simd_mode): Add SF.
27822 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
27823 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
27824 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
27825 (cstore<mode>_neg): ...This.
27826 * config/aarch64/iterators.md
27828 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
27829 (COMPARISONS): New.
27830 (UCOMPARISONS): Likewise.
27831 (optab): Add missing comparisons.
27837 (VCMP_S): Likewise.
27838 (VCMP_U): Likewise.
27839 (V_cmp_result): Add DF, SF modes.
27840 (v_cmp_result): Likewise.
27842 (vmtype): Likewise.
27843 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
27845 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
27847 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
27848 define_insn to define_insn_and_split.
27849 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
27850 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
27851 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
27852 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
27853 (thumb2_negscc): Likewise.
27855 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
27857 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
27859 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
27861 * config/arm/thumb2.md: Remove trailing whitespaces.
27863 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27865 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
27866 Use gen_int_mode rather than GEN_INT.
27868 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
27870 * value-prof.c (stream_in_histogram_value): Remove the strayed
27873 2013-04-30 Richard Biener <rguenther@suse.de>
27875 PR middle-end/57122
27876 * cfghooks.c (split_edge): Properly check for the loop latch edge.
27878 2013-04-30 Richard Biener <rguenther@suse.de>
27880 PR middle-end/57107
27881 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
27883 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
27885 PR rtl-optimization/56957
27886 PR rtl-optimization/57105
27887 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
27888 variable. Use just INSN_UID for determining whether an insn
27889 should be only disconnected from the insn stream.
27890 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
27892 2013-04-30 Jakub Jelinek <jakub@redhat.com>
27894 PR tree-optimization/57104
27895 * tsan.c (instrument_expr): Don't instrument accesses to
27896 DECL_HARD_REGISTER VAR_DECLs.
27898 2013-04-30 Richard Biener <rguenther@suse.de>
27900 * function.h (loops_for_fn): New inline function.
27901 (set_loops_for_fn): Likewise.
27902 * cfgloop.h (place_new_loop): Add struct function parameter.
27903 (get_loop): Likewise.
27904 (get_loops): Likewise.
27905 (number_of_loops): Likewise.
27906 (fel_next): Adjust.
27907 (fel_init): Likewise.
27908 * cfg.c (get_loop_copy): Adjust.
27909 * cfgloop.c (flow_loops_dump): Likewise.
27910 (record_loop_exits): Likewise.
27911 (verify_loop_structure): Likewise.
27912 * cfgloopanal.c (mark_irreducible_loops): Likewise.
27913 (estimate_reg_pressure_cost): Likewise.
27914 (mark_loop_exit_edges): Likewise.
27915 * cfgloopmanip.c (place_new_loop): Likewise.
27916 (add_loop): Likewise.
27917 (duplicate_loop): Likewise.
27918 * graph.c (draw_cfg_nodes): Likewise.
27919 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
27920 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
27921 (extract_affine_chrec): Likewise.
27922 (build_scop_iteration_domain): Likewise.
27923 * graphite.c (graphite_initialize): Likewise.
27924 * ira-build.c (create_loop_tree_nodes): Likewise.
27925 (more_one_region_p): Likewise.
27926 (rebuild_regno_allocno_maps): Likewise.
27927 (mark_loops_for_removal): Likewise.
27928 (mark_all_loops_for_removal): Likewise.
27929 (remove_unnecessary_regions): Likewise.
27930 (ira_build): Likewise.
27931 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
27932 * loop-init.c (fix_loop_structure): Likewise.
27933 (gate_rtl_move_loop_invariants): Likewise.
27934 (gate_rtl_unswitch): Likewise.
27935 (gate_rtl_unroll_and_peel_loops): Likewise.
27936 (rtl_doloop): Likewise.
27937 * lto-streamer-in.c (input_cfg): Likewise.
27938 * lto-streamer-out.c (output_cfg): Likewise.
27939 * modulo-sched.c (sms_schedule): Likewise.
27940 * predict.c (tree_estimate_probability): Likewise.
27941 (tree_estimate_probability_driver): Likewise.
27942 (estimate_loops): Likewise.
27943 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
27944 (move_sese_region_to_fn): Likewise.
27945 (debug_loop_num): Likewise.
27946 * tree-chrec.c (chrec_evaluate): Likewise.
27947 (hide_evolution_in_other_loops_than_loop): Likewise.
27948 (chrec_component_in_loop_num): Likewise.
27949 (reset_evolution_in_loop): Likewise.
27950 (evolution_function_is_invariant_rec_p): Likewise.
27951 * tree-if-conv.c (main_tree_if_conversion): Likewise.
27952 * tree-inline.c (copy_loops): Likewise.
27953 (copy_cfg_body): Likewise.
27954 (tree_function_versioning): Likewise.
27955 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
27956 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
27958 (add_to_evolution_1): Likewise.
27959 (scev_const_prop): Likewise.
27960 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
27961 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
27962 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
27963 (tree_ssa_lim_initialize): Likewise.
27964 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
27965 (verify_loop_closed_ssa): Likewise.
27966 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
27967 (tree_ssa_loop_im): Likewise.
27968 (tree_ssa_loop_unswitch): Likewise.
27969 (tree_vectorize): Likewise.
27970 (check_data_deps): Likewise.
27971 (tree_ssa_loop_ivcanon): Likewise.
27972 (tree_ssa_loop_bounds): Likewise.
27973 (tree_complete_unroll): Likewise.
27974 (tree_complete_unroll_inner): Likewise.
27975 (tree_parallelize_loops): Likewise.
27976 (tree_ssa_loop_prefetch): Likewise.
27977 (tree_ssa_loop_ivopts): Likewise.
27978 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
27979 * tree-vectorizer.c (vectorize_loops): Likewise.
27981 2013-04-29 Mike Frysinger <vapier@gentoo.org>
27983 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
27984 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
27985 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
27986 with EABI_LINK_SPEC.
27988 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
27991 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
27994 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
27997 * lra-constraints.c (process_alt_operands): Discourage a bit more
27998 using memory for pseudos. Print cost dump for alternatives.
27999 Modify cost values for conflicts with early clobbers.
28000 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
28002 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
28005 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
28007 2013-04-29 Ian Bolton <ian.bolton@arm.com>
28009 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
28010 from/to S register.
28011 (movdi_aarch64): Support LDR/STR from/to D register.
28013 2013-04-29 Ian Bolton <ian.bolton@arm.com>
28015 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
28016 or higher by default.
28018 2013-04-29 Richard Biener <rguenther@suse.de>
28020 PR middle-end/57075
28021 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
28022 even if not adding abnormal edges for calls that can make
28025 2013-04-29 Richard Biener <rguenther@suse.de>
28027 PR middle-end/57103
28028 * tree-cfg.c (move_stmt_op): Fix condition under which to update
28030 (move_stmt_r): Remove redundant checking.
28032 2013-04-29 Teresa Johnson <tejohnson@google.com>
28035 * basic-block.h (apply_scale): New function.
28036 (apply_probability): Use apply_scale.
28037 * gimple-streamer-in.c (input_bb): Ditto.
28038 * lto-streamer-in.c (input_cfg): Ditto.
28039 * lto-cgraph.c (merge_profile_summaries): Ditto.
28040 * tree-optimize.c (execute_fixup_cfg): Ditto.
28041 * tree-inline.c (copy_bb): Update comment to use apply_scale.
28042 (copy_edges_for_bb): Ditto.
28043 (copy_cfg_body): Ditto.
28045 2013-04-29 Tom de Vries <tom@codesourcery.com>
28047 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
28048 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
28049 (tail_merge_optimize): Handle current_loops == NULL.
28051 2013-04-26 Jeff Law <law@redhat.com>
28053 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
28054 (simplify_cond_using_ranges): Generalize code to simplify
28055 COND_EXPRs where one argument is a constant and the other
28056 is an SSA_NAME created by an integral type conversion.
28058 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28060 * config/arm/arm.md (store_minmaxsi): Use only when
28061 optimize_insn_for_size_p.
28063 2013-04-29 Christian Bruel <christian.bruel@st.com>
28066 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
28068 2013-04-29 Richard Biener <rguenther@suse.de>
28070 PR middle-end/57089
28071 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
28072 loop tree make sure to schedule a fixup for the child as well.
28073 (expand_omp_for_generic): Properly add loops.
28074 (expand_omp_for_static_nochunk): Likewise.
28075 (expand_omp_for_static_chunk): Likewise.
28076 (expand_omp_for): For the degenerate case fixup loops.
28077 (expand_omp_sections): Fix default bb placement in loops.
28078 (expand_omp_atomic_pipeline): Properly add loops.
28080 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28082 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
28084 2013-04-29 Tom de Vries <tom@codesourcery.com>
28086 * tree-ssa-tail-merge.c: Update header comment.
28088 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28090 * config/aarch64/arm_neon.h
28091 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
28092 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
28093 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
28094 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
28095 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
28096 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
28097 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
28098 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
28100 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28102 * config/aarch64/aarch64-simd.md
28103 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
28104 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
28105 fix_trunc, fixuns_trunc.
28106 (ftrunc<VDQF:mode>2): New.
28107 * config/aarch64/iterators.md (optab): Add fix, fixuns.
28108 (fix_trunc_optab): New.
28110 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28112 * config/aarch64/aarch64-builtins.c
28113 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
28114 iceilf, lround, iroundf.
28116 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
28119 * config/i386/i386.h (enum ix86_tune_indices)
28120 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
28121 New, split from X86_TUNE_INTER_UNIT_MOVES.
28122 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
28123 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
28124 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
28125 (TARGET_INTER_UNIT_MOVES): Remove.
28126 * config/i386/i386.c (initial_ix86_tune_features): Update.
28127 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
28128 (ix86_expand_convert_uns_didf_sse): Use
28129 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
28130 (ix86_expand_vector_init_one_nonzero): Ditto.
28131 (ix86_expand_vector_init_interleave): Ditto.
28132 (inline_secondary_memory_needed): Return true for moves from SSE class
28133 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
28134 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
28135 * config/i386/constraints.md (Yi, Ym): Depend on
28136 TARGET_INTER_UNIT_MOVES_TO_VEC.
28137 (Yj, Yn): New constraints.
28138 * config/i386/i386.md (*movdi_internal): Change constraints of
28139 operand 1 from Yi to Yj and from Ym to Yn.
28140 (*movsi_internal): Ditto.
28141 (*movdf_internal): Ditto.
28142 (*movsf_internal): Ditto.
28143 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
28144 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
28145 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
28146 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
28147 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
28148 * config/i386/sse.md (movdi_to_sse): Ditto.
28149 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
28150 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
28151 TARGET_INTER_UNIT_MOVES.
28152 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
28153 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
28154 instead of TARGET_INTER_UNIT_MOVES.
28155 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
28156 operand 1 from Yi to Yj and from Ym to Yn.
28158 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28160 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
28161 (float_truncate_hi_): Likewise.
28162 (float_extend_lo_): Likewise.
28163 (float_truncate_lo_): Likewise.
28164 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
28165 (aarch64_float_extend_lo_v2df): Likewise.
28166 (vec_unpacks_hi_v4sf): Likewise.
28167 (aarch64_float_truncate_lo_v2sf): Likewise.
28168 (aarch64_float_truncate_hi_v4sf): Likewise.
28169 (vec_pack_trunc_v2df): Likewise.
28170 (vec_pack_trunc_df): Likewise.
28172 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28174 * config/aarch64/aarch64-builtins.c
28175 (aarch64_fold_builtin): Fold float conversions.
28176 * config/aarch64/aarch64-simd-builtins.def
28177 (floatv2si, floatv4si, floatv2di): New.
28178 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
28179 * config/aarch64/aarch64-simd.md
28180 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
28181 * config/aarch64/iterators.md (FLOATUORS): New.
28182 (optab): Add float, floatuns.
28183 (su_optab): Likewise.
28185 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28187 * config/aarch64/aarch64-builtins.c
28188 (aarch64_builtin_vectorized_function): Use new names for
28190 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
28191 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
28192 (fcvtzu): Split as...
28193 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
28194 (fcvtas): Split as...
28195 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
28196 (fcvtau): Split as...
28197 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
28198 (fcvtps): Split as...
28199 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
28200 (fcvtpu): Split as...
28201 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
28202 (fcvtms): Split as...
28203 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
28204 (fcvtmu): Split as...
28205 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
28206 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
28207 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
28208 (lfrintnusf, lfrintnudf): Likewise.
28209 * config/aarch64/aarch64-simd.md
28210 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
28212 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
28213 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
28214 (fcvt_pattern): Likewise.
28216 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28218 * config/aarch64/aarch64-simd.md
28219 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
28220 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
28222 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28224 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
28225 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
28226 (vrnd<a,m,n,p>_f32): Implement using builtins.
28227 (vrnd<i,x><q>_f<32, 64>): New.
28229 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28231 * config/aarch64/aarch64-builtins.c
28232 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
28233 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
28234 (frintz): Rename to...
28236 (frintp): Rename to...
28238 (frintm): Rename to...
28240 (frinti): Rename to...
28241 (nearbyint): ...this.
28242 (frintx): Rename to...
28244 (frinta): Rename to...
28246 * config/aarch64/aarch64-simd.md
28247 (aarch64_frint<frint_suffix><mode>): Delete.
28248 (<frint_pattern><mode>2): Convert to insn.
28249 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
28250 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
28251 (frint_pattern): Likewise.
28252 (frint_suffix): Likewise.
28254 2013-04-29 Richard Biener <rguenther@suse.de>
28256 PR tree-optimization/57081
28257 * loop-init.c: Include tree-flow.h.
28258 (loop_optimizer_finalize): Free number of iteration estimates.
28259 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
28261 2013-04-29 Jakub Jelinek <jakub@redhat.com>
28263 PR tree-optimization/57083
28264 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
28265 non-singleton shift count range, zero extend low_bound for uns case.
28267 * config/i386/predicates.md (general_vector_operand): New predicate.
28268 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
28269 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
28270 if they aren't nonimmediate operands. If their original values
28271 satisfy const_vector_equal_evenodd_p, don't shift them.
28272 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
28273 predicates. For the SSE4.1 case force operands[{1,2}] into registers
28274 if not nonimmediate_operand.
28275 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
28276 instead of register_operand.
28277 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
28279 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
28281 * stor-layout.c (finalize_size_functions): Allocate a structure and
28282 reset cfun before dumping the functions.
28284 2013-04-27 Jakub Jelinek <jakub@redhat.com>
28286 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
28289 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
28290 use xop_pmacsdqh if uns_p.
28291 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
28292 the immediate rotate count.
28294 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
28296 * rtl.h (struct rtx_def): Add comment for field jump.
28297 (LRA_SUBREG_P): New macro.
28298 * recog.c (register_operand): Check LRA_SUBREG_P.
28299 * lra.c (lra): Add note at the end of RTL code. Align non-empty
28301 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
28302 (lra_final_code_change): Skip subreg change for operators.
28303 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
28304 if there are no operand changes.
28305 * lra-constraints.c (curr_insn_set): New.
28306 (match_reload): Set LRA_SUBREG_P.
28307 (emit_spill_move): Ditto.
28308 (check_and_process_move): Use curr_insn_set. Process only single
28309 set insns. Don't initialize sec_mem_p and change_p.
28310 (simplify_operand_subreg): Use LRA_SUBREG_P.
28311 (reg_in_class_p): New function.
28312 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
28313 of #ifdef. Add code to remove cycling.
28314 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
28315 non-null disp. Reload inner instead of disp when base and index
28316 are null. Try to put lo_sum into register.
28317 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
28318 (check_and_process_move): Move code for move cost check to
28319 simple_move_p. Remove equiv_substitution.
28320 (simple_move_p): New function.
28321 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
28322 curr_insn_set. Call check_and_process_move only for single set
28323 insns. Use the new function. Move call of check_and_process_move
28324 after operand equiv substitution and address process.
28326 2013-04-26 Jakub Jelinek <jakub@redhat.com>
28329 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
28330 with nonlocal goto receivers or returns twice calls, ignore
28331 unininitialized values from abnormal edges to nl goto receiver
28332 or returns twice call.
28334 2013-04-26 Jakub Jelinek <jakub@redhat.com>
28336 PR tree-optimization/57051
28337 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
28338 and VEC_RSHIFT_EXPR if shift count is a multiple of element
28341 2013-04-26 Richard Biener <rguenther@suse.de>
28343 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
28344 (expand_omp_taskreg): Likewise. Mark loops for fixup.
28345 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
28346 (fixup_loop_arrays_after_move): New function.
28347 (move_sese_region_to_fn): Properly outline the loop tree parts
28348 of the SESE region.
28350 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
28352 * config/i386/i386.md (type, unit): Fix long lines.
28354 2013-04-26 Richard Biener <rguenther@suse.de>
28356 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
28357 (lto-streamer-out.o): Likewise.
28358 * cfgloop.c (init_loops_structure): Export, add struct function
28359 argument and adjust.
28360 (flow_loops_find): Adjust.
28361 * cfgloop.h (enum loop_estimation): Add EST_LAST.
28362 (init_loops_structure): Declare.
28363 * lto-streamer-in.c: Include cfgloop.h.
28364 (input_cfg): Input the loop tree.
28365 * lto-streamer-out.c: Include cfgloop.h.
28366 (output_cfg): Output the loop tree.
28367 (output_struct_function_base): Do not drop PROP_loops.
28369 2013-03-26 Richard Biener <rguenther@suse.de>
28371 * tree-cfg.c (execute_build_cfg): Build the loop tree.
28372 (pass_build_cfg): Provide PROP_loops.
28373 (move_sese_region_to_fn): Remove loops that are outlined into fn
28375 * tree-inline.c: Include cfgloop.h.
28376 (initialize_cfun): Do not drop PROP_loops.
28377 (copy_loops): New function.
28378 (copy_cfg_body): Copy loop structure.
28379 (tree_function_versioning): Initialize destination loop tree.
28380 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
28381 (pass_parallelize_loops): Do IL verification.
28382 * loop-init.c (loop_optimizer_init): Fixup loops if required.
28383 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
28384 the CFG make sure we fixup loops as well.
28385 * tree-ssa-tail-merge.c: Include cfgloop.h.
28386 (replace_block_by): When merging loop latches mark loops for fixup.
28387 * lto-streamer-out.c (output_struct_function_base): Drop
28388 PROP_loops for now.
28389 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
28390 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
28391 * ipa-split.c: Include cfgloop.h.
28392 (split_function): Add the new return block to the loop tree root.
28393 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
28394 whether we have removed the forwarder block.
28395 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
28396 * cfgloop.h (place_new_loop): Declare.
28397 * cfgloopmanip.c (place_new_loop): Export.
28398 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
28399 (tree-switch-conversion.o): Likewise.
28400 (tree-complex.o): Likewise.
28401 (tree-inline.o): Likewise.
28402 (tree-ssa-tailmerge.o): Likewise.
28403 (ipa-split.o): Likewise.
28404 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
28405 (tree-ssa-copy.o): Likewise.
28406 * tree-switch-conversion.c: Include cfgloop.h
28407 (process_switch): If we emit a bit-test cascade, schedule loops
28409 * tree-complex.c: Include cfgloop.h.
28410 (expand_complex_div_wide): Properly add new basic-blocks to loops.
28411 * asan.c: Include cfgloop.h.
28412 (create_cond_insert_point): Properly add new basic-blocks to
28413 loops, schedule loop fixup.
28414 * cfgloop.c (verify_loop_structure): Check that looks are not
28416 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
28418 (expand_omp_for_generic): Likewise.
28419 (expand_omp_sections): Likewise.
28420 (expand_omp_atomic_pipeline): Schedule loops for fixup.
28421 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
28422 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
28423 is initialized, not when loops are present.
28424 * tree-parloops.c (parallelize_loops): Remove checking here.
28425 * passes.c (init_optimization_passes): Schedule a copy-propagation
28426 pass before complete unrolling of inner loops.
28428 2013-04-26 Jakub Jelinek <jakub@redhat.com>
28430 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
28431 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
28432 (colorize_init): Add argument to _WIN32 version.
28433 * toplev.c: Include diagnostic-color.h.
28434 (process_options): Default to -fdiagnostics-color=auto if
28435 GCC_COLORS env var is in the environment.
28436 * common.opt (fdiagnostics-color=): Add Var and Init.
28437 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
28438 env var is in the environment, the default is auto rather than never.
28440 * diagnostic.h (file_name_as_prefix): Add context argument.
28441 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
28442 the string as locus.
28443 * langhooks.c (lhd_print_error_function): Adjust caller.
28445 2013-04-25 Lawrence Crowl <crowl@google.com>
28447 * var-tracking.c (shared_hash_def::htab):
28448 Change type to hash_table. Update dependent calls and types.
28450 2013-04-25 Lawrence Crowl <crowl@google.com>
28452 * Makefile.in: Update as needed below.
28454 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
28455 Move declaration to after the type's method definitons.
28457 * attribs.c (htab_t scoped_attributes::attribute_hash):
28458 Change type to hash_table. Update dependent calls and types.
28460 * bitmap.c (htab_t bitmap_desc_hash):
28461 Change type to hash_table. Update dependent calls and types.
28463 * cselib.c (htab_t cselib_hash_table):
28464 Change type to hash_table. Update dependent calls and types.
28466 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
28467 (hash_string_slot_node): Move implementation into lto-streamer.h
28468 struct string_slot_hasher.
28469 (eq_string_slot_node): Likewise.
28471 * data-streamer-out.c: Update output_block::string_hash_table
28472 dependent calls and types.
28474 * dwarf2cfi.c (htab_t trace_index):
28475 Change type to hash_table. Update dependent calls and types.
28477 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
28478 Change type to hash_table. Update dependent calls and types.
28479 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
28480 (htab_t optimize_external_refs::map): Likewise.
28481 (htab_t output_comp_unit::extern_map): Likewise.
28482 (htab_t output_comdat_type_unit::extern_map): Likewise.
28483 (htab_t output_macinfo::macinfo_htab): Likewise.
28484 (htab_t optimize_location_lists::htab): Likewise.
28485 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
28487 * except.c (htab_t ehspec_hash_type):
28488 Change type to hash_table. Update dependent calls and types.
28489 (assign_filter_values::ttypes): Likewise.
28490 (assign_filter_values::ehspec): Likewise.
28491 (sjlj_assign_call_site_values::ar_hash): Likewise.
28492 (convert_to_eh_region_ranges::ar_hash): Likewise.
28494 * gcse.c (htab_t pre_ldst_table):
28495 Change type to hash_table. Update dependent calls and types.
28497 * ggc-common.c (htab_t saving_htab):
28498 Change type to hash_table. Update dependent calls and types.
28499 (htab_t loc_hash): Likewise.
28500 (htab_t ptr_hash): Likewise.
28501 (call_count): Rename ggc_call_count.
28502 (call_alloc): Rename ggc_call_alloc.
28503 (loc_descriptor): Rename make_loc_descriptor.
28504 (add_statistics): Rename ggc_add_statistics.
28506 * ggc-common.c (saving_htab):
28507 Change type to hash_table. Update dependent calls and types.
28509 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
28510 (push_gimplify_context): Likewise.
28511 (pop_gimplify_context): Likewise.
28512 (struct gimple_temp_hash_elt): Added.
28513 (struct gimplify_hasher): Likewise.
28514 (struct gimplify_ctx.temp_htab):
28515 Change type to hash_table. Update dependent calls and types.
28517 * gimple-fold.c: Include gimplify-ctx.h.
28519 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
28520 Change type to hash_table. Update dependent calls and types.
28521 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
28522 avoid potential global name collision.
28524 * gimplify.c: Include gimplify-ctx.h.
28525 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
28526 (htab_t gimplify_ctx::temp_htab):
28527 Update dependent calls and types for new type hash_table.
28528 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
28529 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
28531 * gimplify-ctx.h: New.
28532 (struct gimple_temp_hash_elt): Move from gimplify.c.
28533 (class gimplify_hasher): New.
28534 (struct gimplify_ctx): Move from gimple.h.
28535 (htab_t gimplify_ctx::temp_htab):
28536 Change type to hash_table. Update dependent calls and types.
28538 * graphite-clast-to-gimple.c: Include graphite-htab.h.
28539 (htab_t ivs_params::newivs_index):
28540 Change type to hash_table. Update dependent calls and types.
28541 (htab_t ivs_params::params_index): Likewise.
28542 (htab_t print_generated_program::params_index): Likewise.
28543 (htab_t gloog::newivs_index): Likewise.
28544 (htab_t gloog::params_index): Likewise.
28546 * graphite.c: Include graphite-htab.h.
28547 4htab_t graphite_transform_loops::bb_pbb_mapping):
28548 Change type to hash_table. Update dependent calls and types.
28550 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
28551 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
28552 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
28554 * graphite-dependences.c: Include graphite-htab.h.
28555 (loop_is_parallel_p): Change hash table type of parameter.
28557 * graphite-htab.h: New.
28558 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
28559 (extern find_pbb_via_hash): Move from graphite-poly.h.
28560 (extern loop_is_parallel_p): Move from graphite-poly.h.
28561 (extern get_loop_body_pbbs): Move from graphite-poly.h.
28563 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
28564 (extern loop_is_parallel_p): Move to graphite-htab.h.
28565 (extern get_loop_body_pbbs): Move to graphite-htab.h.
28567 * haifa-sched.c (htab_t delay_htab):
28568 Change type to hash_table. Update dependent calls and types.
28569 (htab_t delay_htab_i2): Likewise.
28571 * ira-color.c (htab_t allocno_hard_regs_htab):
28572 Change type to hash_table. Update dependent calls and types.
28574 * ira-costs.c (htab_t cost_classes_htab):
28575 Change type to hash_table. Update dependent calls and types.
28577 * loop-invariant.c (htab_t merge_identical_invariants::eq):
28578 Change type to hash_table. Update dependent calls and types.
28580 * loop-iv.c (htab_t bivs):
28581 Change type to hash_table. Update dependent calls and types.
28583 * loop-unroll.c (htab_t opt_info::insns_to_split):
28584 Change type to hash_table. Update dependent calls and types.
28585 (htab_t opt_info::insns_with_var_to_expand): Likewise.
28587 * lto-streamer.h (struct string_slot): Move from data-streamer.h
28588 (struct string_slot_hasher): New.
28589 (htab_t output_block::string_hash_table):
28590 Change type to hash_table. Update dependent calls and types.
28592 * lto-streamer-in.c (freeing_string_slot_hasher): New.
28593 (htab_t file_name_hash_table):
28594 Change type to hash_table. Update dependent calls and types.
28596 * lto-streamer-out.c: Update output_block::string_hash_table dependent
28599 * lto-streamer.c (htab_t tree_htab):
28600 Change type to hash_table. Update dependent calls and types.
28602 * omp-low.c: Include gimplify-ctx.h.
28604 * passes.c (htab_t name_to_pass_map):
28605 Change type to hash_table. Update dependent calls and types.
28606 (pass_traverse): Rename to passes_pass_traverse.
28608 * plugin.c (htab_t event_tab):
28609 Change type to hash_table. Update dependent calls and types.
28611 * postreload-gcse.c (htab_t expr_table):
28612 Change type to hash_table. Update dependent calls and types.
28613 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
28615 * sese.c (debug_rename_map_1): Make extern.
28616 (htab_t copy_bb_and_scalar_dependences::rename_map):
28617 Change type to hash_table. Update dependent calls and types.
28619 * sese.h (extern debug_rename_map): Move to .c file.
28621 * store-motion.c (htab_t store_motion_mems_table):
28622 Change type to hash_table. Update dependent calls and types.
28624 * trans-mem.c (htab_t tm_new_mem_hash):
28625 Change type to hash_table. Update dependent calls and types.
28627 * tree-browser.c (htab_t TB_up_ht):
28628 Change type to hash_table. Update dependent calls and types.
28630 * tree-cfg.c (htab_t discriminator_per_locus):
28631 Change type to hash_table. Update dependent calls and types.
28633 * tree-complex.c: Include tree-hasher.h
28634 (htab_t complex_variable_components):
28635 Change type to hash_table. Update dependent calls and types.
28637 * tree-eh.c (htab_t finally_tree):
28638 Change type to hash_table. Update dependent calls and types.
28640 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
28641 struct int_tree_hasher.
28642 (extern int_tree_map_eq): Likewise.
28643 (uid_decl_map_hash): Removed.
28644 (extern decl_tree_map_eq): Likewise.
28646 * tree-hasher.h: New.
28647 (struct int_tree_hasher): New.
28648 (typedef int_tree_htab_type): New.
28650 * tree-inline.c: Include gimplify-ctx.h.
28652 * tree-mudflap.c: Include gimplify-ctx.h.
28654 * tree-parloops.c: Include tree-hasher.h.
28655 (htab_t eliminate_local_variables_stmt::decl_address):
28656 Change type to hash_table. Update dependent calls and types.
28657 (htab_t separate_decls_in_region::decl_copies): Likewise.
28659 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
28660 Change type to hash_table. Update dependent calls and types.
28662 * tree-sra.c (candidates):
28663 Change type to hash_table. Update dependent calls and types.
28665 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
28667 (int_tree_map_hash): Likewise.
28669 * tree-ssa-dom.c (htab_t avail_exprs):
28670 Change type to hash_table. Update dependent calls and types.
28672 * tree-ssa-live.c (var_map_base_init::tree_to_index):
28673 Change type to hash_table. Update dependent calls and types.
28675 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
28676 Change type to hash_table. Update dependent calls and types.
28678 * tree-ssa-phiopt.c (seen_ssa_names):
28679 Change type to hash_table. Update dependent calls and types.
28681 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
28682 Change type to hash_table. Update dependent calls and types.
28684 * tree-ssa-uncprop.c (equiv):
28685 Change type to hash_table. Update dependent calls and types.
28687 2013-04-25 Jakub Jelinek <jakub@redhat.com>
28689 PR rtl-optimization/57003
28690 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
28691 call note_stores with kill_clobbered_value callback again after
28692 killing regs_invalidated_by_call.
28694 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
28696 * config/aarch64/aarch64-simd.md
28697 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
28698 (aarch64_simd_bsl<mode>): Likewise.
28699 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
28701 2013-04-25 Marek Polacek <polacek@redhat.com>
28703 PR tree-optimization/57066
28704 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
28706 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
28708 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
28710 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
28712 * config/aarch64/aarch64-builtins.c
28713 (aarch64_fold_builtin): New.
28714 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
28715 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
28716 * config/aarch64/aarch64-simd-builtins.def (abs): New.
28717 * config/aarch64/arm_neon.h
28718 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
28720 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
28721 Tejas Belagod <tejas.belagod@arm.com>
28723 * config/aarch64/aarch64-builtins.c
28724 (aarch64_gimple_fold_builtin): New.
28725 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
28726 * config/aarch64/aarch64-simd-builtins.def (addv): New.
28727 * config/aarch64/aarch64-simd.md (addpv4sf): New.
28728 (addvv4sf): Update.
28729 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
28731 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
28733 * config/aarch64/aarch64.md
28734 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
28736 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
28738 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
28739 (*ngcsi_uxtw): New pattern.
28741 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28742 Julian Brown <julian@codesourcery.com>
28744 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
28745 (TB_DREG): Add T_V4HF.
28746 (v4hf_UP): New macro.
28747 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
28748 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
28749 Handle initialisation of V4HF. Adjust initialisation of reinterpret
28751 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
28752 (arm_vector_mode_supported_p): Handle V4HF.
28753 (arm_mangle_map): Handle V4HFmode.
28754 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
28755 * config/arm/arm_neon_builtins.def: Add entries for
28756 vcvtv4hfv4sf, vcvtv4sfv4hf.
28757 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
28758 (neon_vcvtv4hfv4sf): Likewise.
28759 * config/arm/neon-gen.ml: Handle half-precision floating point
28761 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
28762 * config/arm/arm_neon.h: Regenerate.
28763 * config/arm/neon.ml (type elts): Add F16.
28764 (type vectype): Add T_float16x4, T_floatHF.
28765 (type vecmode): Add V4HF.
28766 (type features): Add Requires_FP_bit feature.
28767 (elt_width): Handle F16.
28768 (elt_class): Likewise.
28769 (elt_of_class_width): Likewise.
28770 (mode_of_elt): Refactor.
28771 (type_for_elt): Handle F16, fix error messages.
28772 (vectype_size): Handle T_float16x4.
28773 (vcvt_sh): New function.
28774 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
28775 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
28776 (string_of_mode): Handle V4HF.
28777 * doc/arm-neon-intrinsics.texi: Regenerate.
28779 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
28781 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
28782 format specifier in 'X' case.
28784 2013-04-25 Alan Modra <amodra@gmail.com>
28787 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
28788 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
28789 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
28790 Repeat for many other rotate/shift and mask patterns using subregs.
28791 Name lshiftrt insns.
28792 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
28793 on WORDS_BIG_ENDIAN.
28795 2013-04-25 Alan Modra <amodra@gmail.com>
28797 * config.gcc: Support little-endian powerpc-linux targets.
28798 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
28799 (LINK_OS_LINUX_SPEC): Define.
28800 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
28801 Preserve MASK_LITTLE_ENDIAN.
28802 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
28803 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
28804 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
28805 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
28806 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
28807 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
28808 Correct fp word order for little-endian. Don't shift toc entries
28809 smaller than a word for little-endian.
28810 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
28811 (bswapdi2 splits): Correct low-part subreg for little-endian.
28812 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
28813 low/high where such is correct only for be.
28814 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
28815 little-endian for -mcall-aixdesc.
28817 2013-04-25 Alan Modra <amodra@gmail.com>
28819 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
28820 replace_equiv_address_nv.
28822 2013-04-25 Alan Modra <amodra@gmail.com>
28824 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
28826 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
28829 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
28830 * rtl.h (struct rtx_def): ...
28832 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
28834 PR rtl-optimizations/57046
28835 * lra-constraints (split_reg): Set up lra_risky_transformations_p
28836 for multi-reg splits.
28838 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
28840 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
28842 2013-04-24 Sterling Augustine <saugustine@google.com>
28844 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
28845 (comp_dir_string, debug_str_dwo_section): New.
28846 (DEBUG_STR_DWO_SECTION): Rename to ...
28847 (DEBUG_DWO_STR_SECTION): ... this.
28848 (DEBUG_NORM_STR_SECTION): Delete.
28849 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
28850 (DEBUG_STR_DWO_SECTION_FLAGS): New.
28851 (find_AT_string): Move most logic to ...
28852 (find_AT_string_in_table): ... here. New.
28853 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
28854 add_skeleton_AT_string. Delete logic.
28855 (output_skeleton_debug_sections): Remove call to
28856 add_top_level_skeleton_die_attrs.
28857 (add_comp_dir_attribute): Move logic to comp_dir_string.
28858 (dwarf2out_init): Initialize debug_str_dwo_section.
28859 (output_indirect_string): Call find_string_form.
28860 (output_indirect_strings): Rewrite.
28861 (prune_unused_types): Empty skeleton_debug_str_hash.
28862 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
28863 (dwarf2out_finish): Call output_indirect_strings.
28865 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
28867 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
28869 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
28871 * rtl.h (struct rtx_def): Add comment for field jump.
28872 (LRA_SUBREG_P): New macro.
28873 * recog.c (register_operand): Check LRA_SUBREG_P.
28874 * lra.c (lra): Add note at the end of RTL code. Align non-empty
28876 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
28877 (lra_final_code_change): Skip subreg change for operators.
28878 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
28879 if there are no operand changes.
28880 * lra-constraints.c (curr_insn_set): New.
28881 (match_reload): Set LRA_SUBREG_P.
28882 (emit_spill_move): Ditto.
28883 (check_and_process_move): Use curr_insn_set. Process only single
28884 set insns. Don't initialize sec_mem_p and change_p.
28885 (simplify_operand_subreg): Use LRA_SUBREG_P.
28886 (reg_in_class_p): New function.
28887 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
28888 of #ifdef. Add code to remove cycling.
28889 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
28890 non-null disp. Reload inner instead of disp when base and index
28891 are null. Try to put lo_sum into register.
28892 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
28893 (check_and_process_move): Move code for move cost check to
28894 simple_move_p. Remove equiv_substitution.
28895 (simple_move_p): New function.
28896 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
28897 curr_insn_set. Call check_and_process_move only for single set
28898 insns. Use the new function. Move call of check_and_process_move
28899 after operand equiv substitution and address process.
28901 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
28903 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
28904 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
28905 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
28907 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
28909 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
28911 2013-04-24 Marek Polacek <polacek@redhat.com>
28913 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
28914 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
28915 (select_loops_exit_conditions): Likewise.
28916 (number_of_iterations_for_all_loops): Likewise.
28917 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
28918 (scev_analysis): Likewise.
28920 2013-04-02 Catherine Moore <clm@codesourcery.com>
28921 Chao-ying Fu <fu@mips.com>
28923 * config/mips/micromips.md (jraddiusp): New pattern.
28924 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
28925 instruction if possible.
28927 2013-04-24 Alan Modra <amodra@gmail.com>
28929 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
28931 2013-04-24 Julian Brown <julian@codesourcery.com>
28932 Chung-Lin Tang <cltang@codesourcery.com>
28934 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
28935 dependency behavior in enumeration type DIE generation. Add TODO note
28936 to comments about future DW_FORM_sdata/udata re-work of related code.
28938 2013-04-23 Lawrence Crowl <crowl@google.com>
28940 * Makefile.in: Update as needed below.
28942 * hash-table.h (class hash_table):
28943 Correct many methods with parameter types compare_type to the correct
28944 value_type. (Correct code was unlikely to notice the change.)
28945 (hash_table::elements_with_deleted) New.
28946 (class hashtable::iterator): New.
28947 (hashtable::begin()): New.
28948 (hashtable::end()): New.
28949 (FOR_EACH_HASH_TABLE_ELEMENT): New.
28951 * statistics.c (statistics_hashes):
28952 Change type to hash_table. Update dependent calls and types.
28954 * tree-into-ssa.c (var_infos):
28955 Change type to hash_table. Update dependent calls and types.
28957 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
28958 Change type to hash_table. Update dependent calls and types.
28960 * tree-ssa-loop-im.c (struct mem_ref.refs):
28961 Change type to hash_table. Update dependent calls and types.
28963 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
28964 Change type to hash_table. Update dependent calls and types.
28966 * tree-ssa-sccvn.c (vn_tables_s::nary):
28967 Change type to hash_table. Update dependent calls and types.
28968 (vn_tables_s::phis): Likewise.
28969 (vn_tables_s::references): Likewise.
28971 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
28972 (vn_reference_eq): Update parameter and return types.
28974 * tree-ssa-structalias.c (pointer_equiv_class_table):
28975 Change type to hash_table. Update dependent calls and types.
28976 (location_equiv_class_table): Likewise.
28978 * tree-vect-data-refs.c: Consequential changes for making
28979 peeling a hash_table.
28981 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
28982 (destroy_loop_vec_info): Dependent hash_table update.
28984 * tree-vectorizer.h (peeling_htab):
28985 Change type to hash_table. Update dependent calls and types.
28987 2013-04-23 Shiva Chen <shiva0217@gmail.com>
28989 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
28990 to check the register content is equal or not.
28991 * lra-constraints.c (match_reload): Use lra_assign_reg_val
28992 to assign register content record.
28993 * lra-eliminations.c (update_reg_eliminate): Use
28994 lra_update_reg_val_offset to update register content offset.
28995 * lra-int.h (struct lra_reg): Add offset member.
28996 (lra_reg_val_equal_p): New static inline function.
28997 (lra_update_reg_val_offset): New static inline function.
28998 (lra_assign_reg_val): New static inline function.
28999 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
29000 to assign register content record.
29001 (initialize_lra_reg_info_element): Initial offset to zero.
29003 2013-04-23 Catherine Moore <clm@codesourcery.com>
29005 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
29006 operands. Record compression.
29008 2013-04-23 Xinliang David Li <davidxl@google.com>
29010 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
29012 2013-04-23 Richard Biener <rguenther@suse.de>
29014 PR middle-end/57036
29015 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
29016 parameter, only add abnormal goto edges from the copied body
29017 if the call could perform abnormal gotos.
29018 (copy_cfg_body): Adjust.
29020 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
29022 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
29024 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
29026 * coretypes.h (gimple_stmt_iterator): Add struct to make
29029 2013-04-23 Richard Biener <rguenther@suse.de>
29031 PR tree-optimization/57026
29032 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
29033 from SSA names occuring in abnormal PHI nodes.
29035 2013-04-22 Andi Kleen <ak@linux.intel.com>
29037 * lto/lto.c (print_lto_report_1): Fix LTO report names.
29039 2013-04-22 Andi Kleen <ak@linux.intel.com>
29041 * lto/lto.c (print_lto_report_1): Declare early.
29042 (read_cgraph_and_symbols): Call print_lto_report_1 early.
29044 2013-04-22 Andi Kleen <ak@linux.intel.com>
29046 * common.opt (-flto-report-wpa): Add.
29047 * doc/invoke.texi (-flto-report-wpa): Add.
29048 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
29051 2013-04-22 Xinliang David Li <davidxl@google.com>
29053 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
29054 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
29055 * Makefile.in: New dependency
29057 David Daney <ddaney.cavm@gmail.com>
29059 * configure.ac (gcc_cv_as_micromips_support): Use the
29060 --fatal-warnings option.
29061 * configure: Regenerate.
29063 2013-04-22 Marek Polacek <polacek@redhat.com>
29066 * tsan.c (instrument_expr): Don't instrument expression
29067 in case its size is zero.
29069 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
29073 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
29075 * config/alpha/alpha.c (TARGET_LRA_P): New define.
29077 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
29079 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
29080 (gimple_stmt_iterator): New typedef.
29081 * gimple.h (gimple_stmt_iterator): Rename to...
29082 (gimple_stmt_iterator_d): ... This.
29083 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
29084 trees be valid for GIMPLE and GENERIC.
29085 (TARGET_GIMPLE_FOLD_BUILTIN): New.
29086 * gimple-fold.c (gimple_fold_call): Call target hook
29087 gimple_fold_builtin.
29088 * hooks.c (hook_bool_gsiptr_false): New.
29089 * hooks.h (hook_bool_gsiptr_false): New.
29090 * target.def (fold_stmt): New.
29091 * doc/tm.texi: Regenerate.
29093 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
29096 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
29097 a set sp if no stack realignment.
29099 2013-04-22 Nick Clifton <nickc@redhat.com>
29101 * config.gcc (tilegx-linux): Extend extra_objs rather than
29103 (tilepro-linux): Likewise.
29105 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
29107 * config/aarch64/aarch64-builtins.c
29109 (CF0, CF1, CF2, CF3, CF4, CF10): New.
29110 (VAR<1-12>): Add MAP parameter.
29111 (BUILTIN_*): Likewise.
29112 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
29113 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
29114 (aarch64_ushl_n<mode>): Likewise.
29115 (aarch64_sshr_n<mode>): Likewise.
29116 (aarch64_ushr_n<mode>): Likewise.
29117 (aarch64_<maxmin><mode>): Likewise.
29118 (aarch64_sqrt<mode>): Likewise.
29119 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
29120 (vshr<q>_n_*): Likewise.
29122 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
29124 * config/aarch64/aarch64-builtins.c
29125 (aarch64_simd_builtin_type_mode): Handle SF types.
29127 (BUILTIN_GPF): Define.
29128 (aarch64_init_simd_builtins): Handle SF types.
29129 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
29130 (frecps): Likewise.
29131 (frecpx): Likewise.
29132 * config/aarch64/aarch64-simd.md
29133 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
29134 (aarch64_frecpe<mode>): New.
29135 (aarch64_frecps<mode>): Likewise.
29136 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
29137 (v8type): Add frecp<esx>.
29138 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
29139 (aarch64_frecps<mode>): Likewise.
29140 * config/aarch64/iterators.md (FRECP): New.
29141 (frecp_suffix): Likewise.
29142 * config/aarch64/arm_neon.h
29143 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
29145 2013-04-22 Christian Bruel <christian.bruel@st.com>
29148 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
29149 (REG_CLASS_NAMES): Idem.
29150 (REG_CLASS_CONTENTS): Idem.
29151 (REGCLASS_HAS_FP_REG): Idem.
29152 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
29153 (sh_conditional_register_usage): Idem.
29155 2013-04-21 Jeff Law <law@redhat.com>
29157 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
29158 (ssa_forward_propagate_and_combine): Use it.
29160 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
29162 * lra.c: Update the flow chart diagram.
29164 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
29166 PR rtl-optimization/56847
29167 * lra-constraints.c (process_alt_operands): Discourage alternative
29168 with non-matche doffsettable memory constraint fro memory with
29171 2013-04-19 Richard Biener <rguenther@suse.de>
29173 PR tree-optimization/56982
29174 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
29176 * gimplify.c (gimplify_call_expr): Notice special calls.
29177 (gimplify_modify_expr): Likewise.
29178 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
29179 abnormal control flow receivers.
29180 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
29181 in the same way as cfun->has_nonlocal_labels.
29182 (gimple_purge_dead_abnormal_call_edges): Likewise.
29183 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
29184 receivers start a basic-block.
29186 2013-04-19 Richard Biener <rguenther@suse.de>
29188 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
29190 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
29191 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
29192 (SLP_TREE_LOAD_PERMUTATION): Add.
29193 (vect_transform_slp_perm_load): Adjust prototype.
29194 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
29195 (vect_free_slp_instance): Likewise.
29196 (vect_create_new_slp_node): Likewise.
29197 (vect_supported_slp_permutation_p): Remove.
29198 (vect_slp_rearrange_stmts): Adjust.
29199 (vect_supported_load_permutation_p): Likewise. Inline
29200 vect_supported_slp_permutation_p here.
29201 (vect_analyze_slp_instance): Compute load permutations per
29202 slp node instead of per instance.
29203 (vect_get_slp_defs): Adjust.
29204 (vect_transform_slp_perm_load): Likewise.
29205 (vect_schedule_slp_instance): Remove redundant code.
29206 (vect_schedule_slp): Remove hack for PR56270, add it ...
29207 * tree-vect-stmts.c (vectorizable_load): ... here, do not
29208 CSE loads for SLP. Adjust.
29210 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
29212 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
29213 spelling in two comments.
29215 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
29218 * config/arm/arm.c (load_multiple_sequence): Require SP
29219 as base register for loads if SP is in the register list.
29221 2013-04-19 Martin Jambor <mjambor@suse.cz>
29223 PR tree-optimization/56718
29224 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
29225 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
29226 and made public. Adjusted all callers.
29227 (ipa_intraprocedural_devirtualization): New function.
29228 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
29229 (ipa_intraprocedural_devirtualization): Likewise.
29230 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
29232 2013-04-19 Richard Biener <rguenther@suse.de>
29234 PR tree-optimization/57000
29235 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
29237 2013-04-19 Terry Guo <terry.guo@arm.com>
29239 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
29241 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
29242 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
29243 (cortex_m4_fmacs): Use new reservations.
29244 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
29246 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
29248 PR rtl-optimization/56999
29249 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
29251 (lra_coalesce): Remove split_origin_bitmap and related code.
29252 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
29253 ranges if necessary.
29255 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
29257 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
29259 (ix86_expand_call): Remove clobbered_registers array and use
29260 x86_64_ms_sysv_extra_clobbered_registers instead.
29261 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
29263 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
29265 * config/i386/i386.md (*call_rex64_ms_sysv): Use
29266 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
29267 (*call_value_rex64_ms_sysv): Ditto.
29269 2013-04-18 Cary Coutant <ccoutant@google.com>
29271 * dwarf2out.c (output_pubnames): Check die_perennial_p of
29272 parent instead of die_mark.
29274 2013-04-18 Diego Novillo <dnovillo@google.com>
29276 * gimple.c (create_gimple_tmp): New.
29277 (get_expr_type): New.
29278 (build_assign): New.
29279 (build_type_cast): New.
29280 * gimple.h (enum ssa_mode): Define.
29281 (gimple_seq_set_location): New.
29282 * asan.c (build_check_stmt): Change some gimple_build_* calls
29283 to use build_assign and build_type_cast.
29285 2013-04-18 Richard Biener <rguenther@suse.de>
29287 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
29288 handle negative step. Remove redundant checks.
29289 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
29290 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
29291 for negative step and grouped loads fail to vectorize.
29293 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
29295 * emit-rtl.c (reset_insn_used_flags): New function.
29296 (reset_all_used_flags): Use it.
29297 (verify_insn_sharing): New function.
29298 (verify_rtl_sharing): Fix verification for SEQUENCEs.
29300 2013-04-18 Jakub Jelinek <jakub@redhat.com>
29302 PR tree-optimization/56984
29303 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
29304 and (x >> M) >= N don't register any assertion if N << M is the
29307 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
29309 * lower-subreg.c (resolve_simple_move): If called self-recursive,
29310 do not delete_insn insns that have not yet been emitted, only
29311 unlink them with remove_insn.
29312 * df-scan.c (df_insn_delete): Revert r197492.
29314 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
29316 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
29317 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
29319 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
29321 * config/arm/arm.md (movsicc_insn): Convert define_insn into
29322 define_insn_and_split.
29323 (and_scc,ior_scc,negscc): Likewise.
29324 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
29326 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
29328 * config/arm/arm.c (use_return_insn): Return 0 for targets that
29329 can benefit from using a sequence of LDRD instructions in epilogue
29330 instead of a single LDM instruction.
29332 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
29335 * doc/extend.texi: Fix typo.
29337 2013-04-17 Richard Biener <rguenther@suse.de>
29339 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
29340 (vect_build_slp_tree): ... here.
29341 (vect_build_slp_tree_1): Compute which stmts of the SLP group
29342 match. Remove special-casing of mismatched complex loads.
29343 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
29344 re-try the match with swapped commutative operands.
29345 (vect_supported_load_permutation_p): Remove special-casing of
29346 mismatched complex loads.
29347 (vect_analyze_slp_instance): Adjust.
29349 2013-04-17 Richard Biener <rguenther@suse.de>
29351 PR rtl-optimization/56921
29352 * cfgloop.h (struct loop): Add simple_loop_desc member.
29353 (struct niter_desc): Mark with GTY(()).
29354 (simple_loop_desc): Do not use aux field but simple_loop_desc.
29355 * loop-iv.c (get_simple_loop_desc): Likewise.
29356 (free_simple_loop_desc): Likewise.
29359 2013-04-16 Richard Biener <rguenther@suse.de>
29361 PR rtl-optimization/56921
29362 * loop-init.c (pass_rtl_move_loop_invariants): Add
29363 TODO_do_not_ggc_collect to todo_flags_finish.
29364 (pass_rtl_unswitch): Same.
29365 (pass_rtl_unroll_and_peel_loops): Same.
29366 (pass_rtl_doloop): Same.
29368 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
29370 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
29371 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
29372 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
29374 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
29375 * tree-streamer.c (record_common_node): Adjust reference in comment.
29377 2013-04-17 Terry Guo <terry.guo@arm.com>
29379 * config/arm/cortex-m4.md: Add a new bypass.
29381 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29383 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
29385 (*subs_<optab><mode>_multp2): New pattern.
29386 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
29387 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
29389 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29391 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
29392 (*subs_mul_imm_<mode>): New pattern.
29394 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
29397 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
29398 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
29399 (vsx_movti_32bit): Change j->wa to O->wa.
29401 2013-04-16 Richard Biener <rguenther@suse.de>
29403 PR rtl-optimization/56921
29404 * loop-init.c (pass_rtl_move_loop_invariants): Add
29405 TODO_do_not_ggc_collect to todo_flags_finish.
29406 (pass_rtl_unswitch): Same.
29407 (pass_rtl_unroll_and_peel_loops): Same.
29408 (pass_rtl_doloop): Same.
29410 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
29412 * config/arm/arm.c (emit_multi_reg_push): New declaration
29413 for an existing function.
29414 (arm_emit_strd_push): New function.
29415 (arm_expand_prologue): Used here.
29416 (arm_emit_ldrd_pop): New function.
29417 (arm_expand_epilogue): Used here.
29418 (arm_get_frame_offsets): Update condition.
29419 (arm_emit_multi_reg_pop): Add a special case for load of a single
29420 register with writeback.
29422 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
29424 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
29427 2013-04-16 Richard Biener <rguenther@suse.de>
29429 PR tree-optimization/56756
29430 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
29431 (first_mem_ref_loc): New.
29432 (execute_sm): Place the load temporarily before a previous
29433 access instead of in the latch edge to ensure its SSA dependencies
29434 are defined at points dominating the load.
29436 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
29438 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
29439 correct fix by moving header and footer insn to the footer of
29440 the merged basic block. Clear BB_END of the merged-away block.
29442 PR middle-end/43631
29443 * emit-rtl.c (make_note_raw): New function.
29444 (link_insn_into_chain): New static inline function.
29445 (add_insn): Use it.
29446 (add_insn_before, add_insn_after): Factor insn chain linking code...
29447 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
29448 using link_insn_into_chain.
29449 (note_outside_basic_block_p): New helper function for emit_note_after
29450 and emit_note_before.
29451 (emit_note_after): Use nobb variant of add_insn_after if the note
29452 should not be contained in a basic block.
29453 (emit_note_before): Use nobb variant of add_insn_before if the note
29454 should not be contained in a basic block.
29455 (emit_note_copy): Use make_note_raw.
29456 (emit_note): Likewise.
29457 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
29458 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
29459 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
29460 the moved barrier the tail of the basic block it follows.
29461 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
29463 2013-04-15 Jakub Jelinek <jakub@redhat.com>
29465 PR tree-optimization/56962
29466 * gimple-ssa-strength-reduction.c (record_increment): Only set
29467 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
29468 either rhs1 or rhs2 is equal to c->base_expr.
29470 2013-04-15 Richard Biener <rguenther@suse.de>
29472 PR tree-optimization/56933
29473 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
29475 (GROUP_READ_WRITE_DEPENDENCE): Remove.
29476 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
29477 * tree-vect-data-refs.c (vect_analyze_group_access): Move
29478 dependence check ...
29479 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
29481 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
29482 GROUP_READ_WRITE_DEPENDENCE.
29484 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29486 * emit-rtl.c (reset_all_used_flags): New function.
29487 (verify_rtl_sharing): Call reset_all_used_flags before and after
29488 performing the checks.
29490 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29492 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
29493 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
29494 * config/arm/constraints.md (De): New constraint.
29495 * config/arm/neon.md (anddi3_neon): Delete.
29496 (neon_vand<mode>): Expand to standard anddi3 pattern.
29497 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
29498 Move earlier in the file.
29499 (neon_inv_logic_op2): Likewise.
29500 (arm_anddi_operand_neon): New predicate.
29502 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29504 * configure.ac (gcc_cv_ld_as_needed): Set
29505 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
29506 Use -z ignore, -z record on *-*-solaris2*.
29507 (HAVE_LD_AS_NEEDED): Update comment.
29508 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
29509 * configure: Regenerate.
29510 * config.in: Regenerate.
29511 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
29512 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
29513 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
29514 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
29515 equivalents. Fix markup.
29516 * doc/tm.texi: Regenerate.
29518 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
29520 * config/i386/i386.opt: New option mstack-protector-guard=.
29521 * config/i386/i386-opts.h: Add enum stack_protector_guard.
29522 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
29523 TARGET_SSP_TLS_GUARD.
29524 * config/i386/i386.c (ix86_option_override_internal): Set
29525 ix86_stack_protector_guard.
29526 * config/i386/i386.md (stack_protect_set): Enable for
29527 TARGET_SSP_TLS_GUARD only.
29528 (stack_protect_set_<mode>): Ditto.
29529 (stack_protect_test): Ditto.
29530 (stack_protect_test_<mode>): Ditto.
29531 * doc/invoke.texi (i386 Option): Document.
29533 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
29536 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
29537 (S_MODES): Set H_MODE bit.
29538 (SF_MODES): Set only S_MODE and SF_MODE bits.
29539 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
29540 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
29541 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
29542 <MODE_FLOAT>: Likewise.
29544 2013-04-15 Joey Ye <joey.ye@arm.com>
29546 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
29548 2013-04-15 Joey Ye <joey.ye@arm.com>
29550 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
29552 (thumb_far_jump_used_p): Count instruction size and set
29555 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
29557 * reorg.c (fill_simple_delay_slots): Reindent block of code.
29558 * resource.c (mark_target_live_regs): Reformat conditional block.
29560 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
29562 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
29563 notes, they are emitted only just before final.
29564 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
29566 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
29568 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
29569 * cfgrtl.c (delete_insn): Call it here instead.
29570 * lra-spills.c (lra_final_code_change): Use delete_insn.
29571 * haifa-sched.c (sched_remove_insn): Likewise.
29572 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
29573 returning to the nop pool.
29574 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
29575 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
29577 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
29579 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
29580 * doc/tm.texi: Regenerated.
29582 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
29584 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
29587 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
29589 * df-core.c (df_find_def): Compare register numbers.
29590 (df_find_use): Likewise.
29592 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
29595 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
29596 lra_in_progress for return.
29598 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
29600 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
29601 define_insn into define_insn_and_split and emit movsicc patterns.
29603 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
29605 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
29607 2013-04-12 Richard Biener <rguenther@suse.de>
29609 * tree-pass.h (TODO_do_not_ggc_collect): New.
29610 * passes.c (execute_one_ipa_transform_pass): Honor
29611 TODO_do_not_ggc_collect.
29612 (execute_one_pass): Likewise.
29615 2013-04-10 Richard Biener <rguenther@suse.de>
29617 * passes.c (init_optimization_passes): Remove reload pass.
29618 * ira.c (do_reload): Merge into ...
29620 (rest_of_handle_reload): Remove.
29621 (pass_reload): Likewise.
29622 * config/i386/i386.c (ix86_option_override): Refer to ira instead
29623 of reload for vzeroupper pass placement.
29625 2013-04-12 Jakub Jelinek <jakub@redhat.com>
29627 PR tree-optimization/56918
29628 PR tree-optimization/56920
29629 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
29630 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
29631 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
29632 use wide_mul_with_sign method.
29634 2013-04-12 Richard Biener <rguenther@suse.de>
29636 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
29637 not be considered a gimple constant.
29639 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
29641 * fold-const.c (const_binop): Handle vector shifts by a scalar.
29642 (fold_binary_loc): Call const_binop also for mixed vector-scalar
29645 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
29646 Jakub Jelinek <jakub@redhat.com>
29648 * opts.c: Include diagnostic-color.h.
29649 (common_handle_option): Handle OPT_fdiagnostics_color_.
29650 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
29651 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
29652 (diagnostic-color.o): New.
29653 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
29654 (diagnostic_color_rule): New enum.
29655 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
29656 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
29657 the location string.
29658 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
29659 either NULL, or color kind.
29660 * diagnostic-color.c: New file.
29661 * diagnostic-color.h: New file.
29662 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
29664 * doc/invoke.texi (-fdiagnostics-color): Document.
29665 * pretty-print.h (pp_show_color): Define.
29666 (struct pretty_print_info): Add show_color field.
29667 * diagnostic.c: Include diagnostic-color.h.
29668 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
29669 macros. Colorize error:, warning: etc. strings and also the location
29671 (diagnostic_show_locus): Colorize the caret line.
29672 * pretty-print.c: Include diagnostic-color.h.
29673 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
29674 inside of %< %> quotes or quoted through q format modifier.
29676 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29678 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
29680 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29682 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
29683 code in CC_NZ mode.
29684 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
29687 2013-04-11 Marek Polacek <polacek@redhat.com>
29689 PR tree-optimization/48184
29690 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
29692 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
29694 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
29695 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
29696 (skip_simple_arithmetic): Tidy up.
29697 * tree.h (skip_simple_constant_arithmetic): Declare.
29699 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29701 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
29703 2013-04-11 Richard Biener <rguenther@suse.de>
29705 * tree-vect-loop.c (get_initial_def_for_induction): Properly
29706 generate vector constants.
29708 2013-04-11 Richard Biener <rguenther@suse.de>
29710 PR tree-optimization/56878
29711 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
29712 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
29714 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
29715 Prefer to align the DR with the most invariant base address.
29717 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
29719 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
29722 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
29724 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
29725 floating-point vector comparisons against 0.
29727 2013-04-11 Jakub Jelinek <jakub@redhat.com>
29729 PR tree-optimization/56899
29730 * fold-const.c (extract_muldiv_1): Apply distributive law
29731 only if TYPE_OVERFLOW_WRAPS (ctype).
29733 2013-04-11 Bin Cheng <bin.cheng@arm.com>
29736 * ira-costs.c (scan_one_insn): Check whether the source rtx of
29737 loading has side effect.
29739 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
29741 * config/sparc/sparc.c: Include tree-pass.h.
29742 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
29743 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
29744 head of file. Change return type. Split off gate function.
29745 (sparc_gate_work_around_errata): New function.
29746 (pass_work_around_errata): New pass definition.
29747 (insert_pass_work_around_errata) New pass insert definition to
29748 insert pass_work_around_errata just after delayed-branch scheduling.
29749 (sparc_option_override): Insert the pass.
29750 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
29752 2013-04-10 David S. Miller <davem@davemloft.net>
29754 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
29755 or -mcpu=hypersparc.
29757 * target.def (cstore_mode): New hook.
29758 * target.h: Include insn-codes.h
29759 * targhooks.c: Likewise.
29760 (default_cstore_mode): New function.
29761 * targhooks.h: Declare it.
29762 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
29763 * doc/tm.texi: Rebuild.
29764 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
29765 target hook, rather than inspecting the insn_data.
29766 * config/sparc/sparc.c (sparc_cstore_mode): New function.
29767 (TARGET_CSTORE_MODE): Redefine.
29768 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
29770 * config/sparc/predicates.md (cstore_result_operand): New special
29772 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
29773 Use it for operand 0.
29774 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
29775 (*snesi_special): Likewise.
29776 (*snesi_zero): Likewise.
29777 (*seqsi_zero): Likewise.
29778 (*sltu_insn): Likewise.
29779 (*sgeu_insn): Likewise.
29780 (*seqdi_special): Make operand 0 and comparison operation be of
29782 (*snedi_special): Likewise.
29783 (*snedi_special_vis3): Likewise.
29784 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
29785 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
29786 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
29787 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
29788 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
29789 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
29790 (*sltu_extend_sp64): Likewise.
29791 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
29792 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
29793 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
29794 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
29795 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
29797 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
29799 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
29800 (aarch64_start_file): Use the new function.
29802 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
29803 Jason Merrill <jason@redhat.com>
29805 * common.opt: Add -gdwarf.
29806 * opts.c (common_handle_option): Handle it.
29807 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
29809 2013-04-10 Richard Biener <rguenther@suse.de>
29811 * passes.c (execute_todo): Do not call ggc_collect conditional here.
29812 (execute_one_ipa_transform_pass): But unconditionally here.
29813 (execute_one_pass): And here.
29814 (init_optimization_passes): Remove reload pass.
29815 * tree-pass.h (TODO_ggc_collect): Remove.
29816 (pass_reload): Likewise.
29817 * ira.c (do_reload): Merge into ...
29819 (rest_of_handle_reload): Remove.
29820 (pass_reload): Likewise.
29821 * config/i386/i386.c (ix86_option_override): Refer to ira instead
29822 of reload for vzeroupper pass placement.
29823 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
29824 and todo_flags_finish of all passes.
29826 2013-04-10 Richard Biener <rguenther@suse.de>
29828 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
29829 first_const_oprnd field, rename first_def_type to first_op_type.
29830 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
29831 (vect_get_and_check_slp_defs): Always use the type of the
29832 operand. Allow mixed vect_external_def, vect_constant_def types.
29833 (vect_get_constant_vectors): Handle mixed vect_external_def,
29834 vect_constant_def types.
29836 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
29838 PR tree-optimization/55524
29839 * tree-ssa-math-opts.c
29840 (convert_mult_to_fma): Don't use an fms construct
29841 when we don't have an fms operation, but fnma, and it looks
29842 likely that we'll be able to use the latter.
29844 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
29846 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
29848 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
29849 inline fail caused by overwritable functions.
29851 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
29853 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
29854 unnecessary bits in the constant power of two case.
29856 2013-04-10 Richard Biener <rguenther@suse.de>
29858 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
29859 broken code swapping operands.
29860 (vect_build_slp_tree): Do not compute load permutations here.
29861 (vect_analyze_slp_instance): Compute load permutations here,
29862 after building the SLP tree.
29864 2013-04-09 Christian Bruel <christian.bruel@st.com>
29866 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
29867 of next/prev_real_insn.
29869 2013-04-09 Jan Hubicka <jh@suse.cz>
29871 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
29872 Drop aliased parameter.
29873 (function_and_variable_visibility): Do not handle alias pairs.
29874 * cgraph.c (varpool_externally_visible_p): Update prototype.
29875 * varpool.c (varpool_add_new_variable): Update.
29877 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29879 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
29881 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
29883 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
29885 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
29887 2013-04-09 Marek Polacek <polacek@redhat.com>
29889 PR tree-optimization/48762
29890 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
29892 2013-04-09 Richard Biener <rguenther@suse.de>
29894 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
29896 (vect_build_slp_tree): Likewise.
29897 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
29898 calculating the cost of a SLP instance.
29899 (vect_analyze_slp_instance): Use it from here, after building
29902 2013-04-09 Jakub Jelinek <jakub@redhat.com>
29904 PR middle-end/56883
29905 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
29906 expand_omp_for_static_chunk): Use simple_p = true in
29907 force_gimple_operand_gsi calls when assigning to addressable decls.
29909 2013-04-09 Jeff Law <law@redhat.com>
29911 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
29912 when the boolean was created by converting a wider object which
29913 had a boolean range.
29915 2013-04-09 Richard Biener <rguenther@suse.de>
29917 * tree-vectorizer.h (slp_void_p): Remove.
29918 (slp_tree): Typedef before _slp_tree declaration.
29919 (struct _slp_tree): Use a vector of slp_tree as children.
29920 (vect_get_place_in_interleaving_chain): Remove.
29921 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
29923 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
29925 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
29926 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
29927 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
29928 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
29929 Use slp_node instead of slp_void_p and adjust.
29931 2013-04-09 Richard Biener <rguenther@suse.de>
29933 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
29934 work that is not necessary.
29936 2013-04-09 Jakub Jelinek <jakub@redhat.com>
29938 PR tree-optimization/56854
29939 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
29940 forward into clobber stmts if it would change MEM_REF lhs into
29943 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
29945 * tree.c (type_hash_lookup, type_hash_add): Make static.
29946 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
29948 2013-04-09 Richard Biener <rguenther@suse.de>
29950 * tree.h (unsave_expr_now): Remove.
29951 * tree-inline.c (mark_local_for_remap_r): Remove.
29952 (unsave_expr_1): Likewise.
29953 (unsave_r): Likewise.
29954 (unsave_expr_now): Likewise.
29955 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
29956 (propagate_tree_value): Likewise.
29958 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
29960 * doc/rtl.texi (sequence): Rewrite documentation to match the
29961 current use of SEQUENCE rtl objects.
29962 * rtl.def (SEQUENCE): Likewise.
29964 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
29965 Update documentation.
29966 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
29967 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
29969 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
29971 2013-04-08 Teresa Johnson <tejohnson@google.com>
29973 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
29974 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
29976 (estimate_edge_size_and_time): Add comment to suggest using rounding
29978 (estimate_node_size_and_time): Ditto.
29979 (remap_edge_change_prob): Use helper rounding divide methods.
29980 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
29981 (gimple_mod_pow2_value_transform): Ditto.
29982 (gimple_mod_subtract_transform): Ditto.
29983 (gimple_ic_transform): Ditto.
29984 (gimple_stringops_transform): Ditto.
29985 * stmt.c (conditional_probability): Ditto.
29986 (emit_case_dispatch_table): Ditto.
29987 * lto-cgraph.c (merge_profile_summaries): Ditto.
29988 * tree-optimize.c (execute_fixup_cfg): Ditto.
29989 * cfgcleanup.c (try_forward_edges): Ditto.
29990 * cfgloopmanip.c (scale_loop_profile): Ditto.
29992 (duplicate_loop_to_header_edge): Ditto.
29993 (lv_adjust_loop_entry_edge): Ditto.
29994 * tree-vect-loop.c (vect_transform_loop): Ditto.
29995 * profile.c (compute_branch_probabilities): Ditto.
29996 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
29997 * lto-streamer-in.c (input_cfg): Ditto.
29998 * gimple-streamer-in.c (input_bb): Ditto.
29999 * ipa-cp.c (update_profiling_info): Ditto.
30000 (update_specialized_profile): Ditto.
30001 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
30002 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
30004 * sched-rgn.c (compute_dom_prob_ps): Ditto.
30005 (compute_trg_info): Ditto.
30006 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
30007 (purge_dead_edges): Ditto.
30008 * loop-unswitch.c (unswitch_loop): Ditto.
30009 * cgraphclones.c (cgraph_clone_edge): Ditto.
30010 (cgraph_clone_node): Ditto.
30011 * tree-inline.c (copy_bb): Ditto.
30012 (copy_edges_for_bb): Ditto.
30013 (initialize_cfun): Ditto.
30014 (copy_cfg_body): Ditto.
30015 (expand_call_inline): Ditto.
30017 2013-04-08 Kai Tietz <ktietz@redhat.com>
30019 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
30020 TARGET_CYGWIN64 by TARGET_64BIT.
30022 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
30024 * config/epiphany/epiphany.md (GPR_1): New constant.
30025 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
30026 * config/epiphany/epiphany.c (gen_compare_reg):
30027 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
30028 is already in place.
30029 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
30030 Don't require being called during rtl expansion; If y operlaps r0,
30032 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
30033 (epiphany_expand_epilogue): Likewise.
30035 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
30036 Don't use CC_FPmode for ORDERED / UNORDERED.
30037 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
30039 * config/epiphany/constraints.md (CnL): New constraint.
30040 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
30041 * config/epiphany/predicates.md (add_operand): Allow 1024.
30043 * config/epiphany/epiphany.md (logical_op): New code iterator.
30044 (op_mnc): New code attribute.
30045 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
30046 (mov_f+1, mov_f+2): New peephole2 patterns.
30048 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
30049 (cstoresi4): Also allow re-use of zero result when doing a NE
30050 comparison to a non-zero operand.
30051 Use (clobber (scratch)) for first insn if the gpr output is not needed.
30053 * config/epiphany/epiphany.md (<insn_opname>v2si3):
30054 Use gen_addsi3_i / gen_subsi3_i.
30056 2013-04-08 Jakub Jelinek <jakub@redhat.com>
30060 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
30061 contain anything but clobbers, at most one __builtin_stack_restore,
30062 optionally debug stmts and final resx, and if it has at least one
30063 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
30064 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
30065 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
30066 which isn't defaut definition, remove them.
30067 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
30068 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
30069 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
30070 with MEM_REF LHS with SSA_NAME address.
30072 2013-04-08 Jeff Law <law@redhat.com>
30074 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
30076 2013-04-08 Richard Biener <rguenther@suse.de>
30078 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
30080 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
30081 determined vector type.
30082 (vect_analyze_data_refs): Likewise.
30083 (vect_get_new_vect_var): Adjust.
30084 (vect_create_destination_var): Preserve SSA name versions.
30085 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
30086 not dump anything here.
30088 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
30090 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
30091 Add member lr_slot_known.
30092 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
30094 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
30095 Remove code that sets lr_slot_offset according to what a previous
30096 version of epiphany_emit_save_restore used to do.
30097 (epiphany_emit_save_restore): When doing an lr save or restore,
30098 set/verify lr_slot_known and lr_slot_offset.
30100 2013-04-08 Xinyu Qi <xyqi@marvell.com>
30103 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
30106 2013-04-08 Richard Biener <rguenther@suse.de>
30108 * alias.c (find_base_term): Fix thinko in previous change.
30110 2013-04-08 Jakub Jelinek <jakub@redhat.com>
30112 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
30113 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
30114 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
30115 if possible to compute val.
30116 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
30117 For QImode integers don't require anything about precision. Use
30118 const_with_all_bytes_same to find out if the constant doesn't have
30119 repeated bytes in it.
30121 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30123 * config/s390/s390.c (s390_expand_insv): Only accept insertions
30126 2013-04-08 Marek Polacek <polacek@redhat.com>
30128 PR rtl-optimization/48182
30129 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
30132 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
30135 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
30136 nuses, make sure we have a label.
30138 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30141 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
30142 (rs6000_emit_swdiv_low_precision): Remove.
30143 (rs6000_emit_swdiv): Rewrite to handle between one and four
30144 iterations of Newton-Raphson generally; modify required number of
30145 iterations for some cases.
30146 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
30148 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
30150 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
30151 set-but-unused variable.
30153 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
30154 basic blocks of released function bodies garbage-collectable.
30156 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
30157 (struct rtl_opt_pass): Add TODO_df_finish.
30159 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
30161 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30163 * config/arm/constraints.md (q): New constraint.
30164 * config/arm/ldrdstrd.md: New file.
30165 * config/arm/arm.md (ldrdstrd.md) New include.
30166 (arm_movdi): Use "q" instead of "r" constraint
30167 for double-word memory access.
30168 (movdf_soft_insn): Likewise.
30169 * config/arm/vfp.md (movdi_vfp): Likewise.
30170 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
30171 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
30172 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
30173 (mem_ok_for_ldrd_strd): Likewise.
30174 (output_move_double): Update assertion.
30176 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30178 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
30180 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30182 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
30183 define_insn_and_split.
30184 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
30186 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30188 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
30189 define_insn_and_split.
30190 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
30191 (shiftsi3_compare): New pattern.
30192 (rrx): New pattern.
30193 * config/arm/unspecs.md (UNSPEC_RRX): New.
30195 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30197 * config/arm/arm.md (negdi_extendsidi): New pattern.
30198 (negdi_zero_extendsidi): Likewise.
30200 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30202 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
30203 define_insn_and_split.
30204 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
30205 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
30207 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30209 * config/arm/arm.md (arm_subdi3): Convert define_insn into
30210 define_insn_and_split.
30211 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
30212 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
30214 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30216 * config/arm/arm.md (subsi3_carryin): New pattern.
30217 (subsi3_carryin_const): Likewise.
30218 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
30219 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
30221 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30223 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
30225 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30227 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
30228 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
30230 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30232 * config/arm/arm.c (arm_expand_builtin): Change fcode
30233 type to unsigned int.
30235 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30237 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
30239 2013-04-04 Ian Lance Taylor <iant@google.com>
30241 * doc/standards.texi (Standards): The Go frontend supports the Go 1
30244 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
30246 PR middle-end/56729
30247 * df-scan.c (df_insn_delete): Disable failing assert.
30249 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30251 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
30252 New function prototype.
30253 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
30254 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
30255 (arm_builtin_vectorized_function): New function.
30257 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30259 * config/arm/arm_neon_builtins.def: New file.
30260 * config/arm/arm.c (neon_builtin_data): Move contents to
30261 arm_neon_builtins.def.
30262 (enum arm_builtins): Include neon builtin definitions.
30263 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
30264 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
30266 2013-04-04 Marek Polacek <polacek@redhat.com>
30268 PR tree-optimization/48186
30269 * predict.c (maybe_hot_frequency_p): Return false if
30270 HOT_BB_FREQUENCY_FRACTION is 0.
30271 (cgraph_maybe_hot_edge_p): Likewise.
30273 2013-04-04 Richard Biener <rguenther@suse.de>
30275 PR tree-optimization/56826
30276 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
30279 2013-04-04 Richard Biener <rguenther@suse.de>
30281 PR tree-optimization/56213
30282 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
30283 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
30285 2013-04-04 Richard Biener <rguenther@suse.de>
30287 PR tree-optimization/56837
30288 * tree-loop-distribution.c (classify_partition): For non-zero
30289 values require that the value has the same precision as its
30290 mode to be useful as memset value.
30292 2013-04-03 Nick Clifton <nickc@redhat.com>
30294 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
30295 (fmssf4): Use fmsf.s on E3V5 architectures.
30296 (fnmasf4): Use fnmaf.s on E3V5 architectures.
30297 (fnmssf4): Use fnmsf.s on E3V5 architectures.
30299 2013-04-03 Jeff Law <law@redhat.com>
30301 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
30302 (lra-eliminations.o): Likewise.
30304 2013-04-03 Teresa Johnson <tejohnson@google.com>
30306 * gcov-io.c (compute_working_sets): Moved most of body of old
30307 compute_working_sets here from profile.c.
30308 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
30309 (gcov_working_set_t): Moved typedef here from basic-block.h
30310 (compute_working_set): Declare.
30311 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
30312 (get_working_sets): Renamed from compute_working_set,
30313 replace most of body with call to new compute_working_sets.
30314 (get_exec_counts): Replace call to compute_working_sets
30315 to get_working_sets.
30316 * profile.h (get_working_sets): Renamed from compute_working_set.
30317 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
30318 to get_working_sets.
30319 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
30320 * gcov-dump.c (dump_working_sets): New function.
30322 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
30324 * hwint.c (sext_hwi, zext_hwi): New functions.
30325 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
30326 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
30327 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
30328 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
30329 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
30330 (sext_hwi, zext_hwi): New functions.
30332 2013-04-03 Jeff Law <law@redhat.com>
30334 PR tree-optimization/56799
30335 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
30336 back test for widening conversion erroneously dropped in prior change.
30338 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30341 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
30342 instead of next_real_insn.
30344 2013-04-03 Marek Polacek <polacek@redhat.com>
30347 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
30349 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30352 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
30354 (thumb1_output_casesi): Likewise.
30355 (thumb2_output_casesi): Likewise.
30357 2013-04-03 Richard Biener <rguenther@suse.de>
30359 PR tree-optimization/56817
30360 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
30362 (tree_unroll_loops_completely_1): ... new function to manually
30363 walk the loop tree, properly defering outer loops of unrolled
30364 loops to later iterations.
30366 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
30368 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
30369 (vectorizable_load): Likewise.
30370 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
30371 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
30373 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
30375 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
30378 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30380 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
30382 2013-04-03 Bin Cheng <bin.cheng@arm.com>
30384 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
30386 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
30388 PR tree-optimization/56790
30389 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
30392 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
30394 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
30396 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
30397 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
30400 2013-04-03 Jakub Jelinek <jakub@redhat.com>
30403 * tree.h (force_folding_builtin_constant_p): New decl.
30404 * builtins.c (force_folding_builtin_constant_p): New variable.
30405 (fold_builtin_constant_p): Fold immediately also if
30406 force_folding_builtin_constant_p.
30408 2013-04-03 Richard Biener <rguenther@suse.de>
30410 PR tree-optimization/56812
30411 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
30412 DRs of the same interleaving chain are independent.
30414 2013-04-02 Jason Merrill <jason@redhat.com>
30416 * gdbinit.in (pbb): Use debug fn.
30418 2013-04-02 Lawrence Crowl <crowl@google.com>
30420 * sese.h (struct ivtype_map_elt_s): Remove unused.
30421 (extern debug_ivtype_map): Remove unused.
30422 (extern eq_ivtype_map_elts): Remove unused.
30423 * sese.c (debug_ivtype_map): Removed unused.
30424 (debug_ivtype_map_1): Removed unused.
30425 (debug_ivtype_elt): Remove unused.
30426 (eq_ivtype_map_elts): Remove unused.
30428 2013-04-02 Kai Tietz <ktietz@redhat.com>
30431 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
30432 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
30433 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
30435 (legitimize_pe_coff_symbol): Likewise.
30436 (is_imported_p): New helper-function.
30437 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
30438 for Windows x64 targets.
30439 (ix86_expand_prologue): Optimize for pe-coff targets.
30440 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
30441 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
30442 medium/large code-model.
30443 (legitimize_pic_address): Likewise.
30444 (legitimize_tls_address): Likewise.
30445 (ix86_expand_call): Likewise.
30446 (x86_output_mi_thunk): Likewise.
30447 (get_dllimport_decl): Add new beimport argument.
30448 (construct_plt_address): Don't assert for x64 pe-coff targets.
30449 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
30451 (SYMBOL_FLAG_STUBVAR): New macro.
30452 (SYMBOL_REF_STUBVAR_P): Likewise.
30453 * config/i386/winnt.c (stub_list): New structure.
30454 (stub_head): New local variable.
30455 (i386_pe_record_stub): New function.
30456 (i386_pe_file_end): Emit refptr-stubs.
30458 2013-04-02 Jakub Jelinek <jakub@redhat.com>
30460 PR rtl-optimization/56745
30461 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
30462 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
30465 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
30466 and both of them are MEM_REFs, just compare first argument for
30467 equality and attempt to deal even with differing offsets.
30470 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
30471 of gimple_clobber_p to be MEM_REF.
30472 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
30473 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
30474 after gimplification.
30475 * asan.c (get_mem_ref_of_assignment): Don't instrument
30476 gimple_clobber_p stmts.
30477 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
30478 gimple_clobber_p stmt if they have MEM_REF lhs and
30479 are dead because of another gimple_clobber_p stmt.
30480 * tree-ssa-live.c (clear_unused_block_pointer): Treat
30481 gimple_clobber_p stmts like debug stmts.
30482 (remove_unused_locals): Remove clobbers with MEM_REF lhs
30483 that refer to unused VAR_DECLs or uninitialized values.
30484 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
30485 gimple_clobber_p stmts if they refer to removed parameters.
30486 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
30489 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
30491 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
30492 using SWI48 mode attribute.
30494 2013-04-02 Wei Mi <wmi@google.com>
30496 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
30497 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
30498 *<rotate_insn><mode>3_mask in i386.md.
30500 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
30502 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
30504 2013-04-02 Richard Biener <rguenther@suse.de>
30506 PR tree-optimization/56778
30507 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
30508 Runtime alias tests are not supported for gather loads.
30509 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
30510 stmts referenced from SSA operands before updating SSA form.
30512 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
30513 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30515 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
30516 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
30517 * config/arm/cortex-a53.md: New file.
30518 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
30519 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
30520 * config/arm/arm.c (arm_issue_rate): Likewise.
30521 * config/arm/arm-tune.md: Regenerate
30522 * config/arm/arm-tables.opt: Regenerate.
30523 * config/arm/arm-cores.def: Add cortex-a53.
30525 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
30527 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
30530 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
30532 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
30533 scalar load/store operations using B/H registers.
30534 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
30536 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
30538 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
30540 * config/aarch64/aarch64.c
30541 (aarch64_simd_scalar_immediate_valid_for_move): New.
30542 * config/aarch64/aarch64-protos.h
30543 (aarch64_simd_scalar_immediate_valid_for_move): New.
30544 * config/aarch64/constraints.md (Dh, Dq): New.
30545 * config/aarch64/iterators.md (hq): New.
30547 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
30549 * reorg.c (get_branch_condition): Deal with conditional returns.
30550 (fill_simple_delay_slots): Remove dead code dealing with jumps.
30552 2013-04-01 Wei Mi <wmi@google.com>
30554 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
30555 Truncate operand 2 using %b asm operand modifier.
30556 (*<shift_insn><mode>3_mask): Ditto.
30557 (*<rotate_insn><mode>3_mask): Ditto.
30559 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
30561 PR middle-end/56798
30562 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
30564 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
30566 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
30568 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
30570 2013-03-30 Lawrence Crowl <crowl@google.com>
30572 * dse.c (clear_alias_sets): Remove never set.
30573 (disqualified_clear_alias_sets): Remove never set.
30574 (clear_alias_mode_pool): Remove never set.
30575 (dse_step0): Remove condition that is never true.
30576 (canon_address): Remove condition that is never true.
30577 (dse_step7): Remove condition that is never true.
30578 (rest_of_handle_dse): Remove condition that is never true.
30579 (rest_of_handle_dse::did_global): Remove never read from above.
30580 (dse_step2_spill): Remove never called from above.
30581 (dse_step5_spill): Remove never called from above.
30583 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
30585 * doc/md.texi (Standard Names) <casesi>: Update documentation for
30586 JUMP_TABLE_DATA changes.
30587 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
30588 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
30589 (Insns) <jump_table_data>: New entry.
30590 * doc/tm.texi: Regenerate.
30592 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
30594 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
30595 for table jump at the end of a basic block using tablejump_p.
30596 * targhooks.c (default_invalid_within_doloop): Likewise.
30597 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
30598 target hook implementation that is identical to the default hook.
30599 (rs6000_invalid_within_doloop): Remove.
30601 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
30602 unused variable from tablejump_p call.
30604 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
30605 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
30606 (INSN_DELETED_P): Likewise.
30607 (emit_jump_table_data): New prototype.
30608 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
30609 after 4th as unused.
30610 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
30611 * sched-vis.c (print_insn): Likewise.
30612 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
30613 insn for compatibility with back ends that use next_active_insn to
30614 identify jump table data.
30615 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
30616 (remove_insn): Likewise.
30617 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
30619 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
30620 (emit_jump_table_data): New function.
30622 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
30623 basic block, a JUMP_TABLE_DATA never is.
30624 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
30625 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
30626 off from code handling real insns.
30627 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
30628 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
30629 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
30630 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
30631 is not a NONDEBUG_INSN_P.
30632 * ira-costs.c (scan_one_insn): Likewise.
30633 * jump.c (mark_all_labels): Likewise.
30634 (mark_jump_label_1): Likewise.
30635 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
30636 * lra.c (get_insn_freq): Expect all insns reaching here to be in
30638 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
30639 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
30640 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
30641 JUMP_TABLE_DATA_P insns.
30642 (calculate_elim_costs_all_insns): Likewise.
30643 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
30644 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
30645 (delete_output_reload): Code style fixups.
30646 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
30647 insn flags on this non-insn.
30648 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
30649 as scheduling barriers, for pre-change compatibility.
30650 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
30651 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
30653 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
30654 redundant JUMP_TABLE_DATA_P test.
30655 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
30656 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
30657 (frv_for_each_packet): Likewise.
30658 * config/i386/i386.c (min_insn_size): Likewise.
30659 (ix86_avoid_jump_mispredicts): Likewise.
30660 * config/m32r/m32r.c (m32r_is_insn): Likewise.
30661 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
30662 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
30663 (mips16_insn_length): Robustify.
30664 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
30665 (mips16_split_long_branches): Likewise.
30666 * config/pa/pa.c (pa_combine_instructions): Likewise.
30667 * config/rs6000/rs6000.c (get_next_active_insn): Treat
30668 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
30669 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
30670 as contributing to pool range lengths.
30671 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
30672 Remove redundant JUMP_TABLE_DATA_P test.
30673 (sh_loop_align): Likewise.
30674 (split_branches): Likewise.
30675 (sh_insn_length_adjustment): Likewise.
30676 * config/spu/spu.c (get_branch_target): Likewise.
30678 2013-03-29 Jan Hubicka <jh@suse.cz>
30680 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
30681 gcov streaming; stream hot bb threshold to ltrans.
30682 * predict.c (get_hot_bb_threshold): Break out from ....
30683 (maybe_hot_count_p): ... here.
30684 (set_hot_bb_threshold): New function.
30685 * lto-section-in.c (lto_section_name): Add profile.
30686 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
30687 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
30688 and data-streamer.h
30689 (histogram_entry): New structure.
30690 (histogram, histogram_pool): New global vars.
30691 (histogram_hash): New structure.
30692 (histogram_hash::hash): New method.
30693 (histogram_hash::equal): Likewise.
30694 (account_time_size): New function.
30695 (cmp_counts): New function.
30696 (dump_histogram): New function.
30697 (ipa_profile_generate_summary): New function.
30698 (ipa_profile_write_summary): New function.
30699 (ipa_profile_read_summary): New function.
30700 (ipa_profile): Decide on threshold.
30701 (pass_ipa_profile): Add ipa_profile_write_summary and
30702 ipa_profile_read_summary.
30703 * Makefile.in (ipa.o): Update dependencies.
30704 * lto-streamer.h (LTO_section_ipa_profile): New section.
30706 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
30708 * tree.h (VAR_P): New.
30710 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
30713 * doc/invoke.texi ([-fwhole-program]): Fix typo.
30715 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
30717 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
30718 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
30719 (control_flow_insn_p): Likewise.
30720 * cfgrtl.c (duplicate_insn_chain): Likewise.
30721 * final.c (get_attr_length_1): Likewise.
30722 (shorten_branches): Likewise.
30723 (final_scan_insn): Likewise.
30724 * function.c (instantiate_virtual_regs): Likewise.
30725 * gcse.c (insert_insn_end_basic_block): Likewise.
30726 * ira-costs.c (scan_one_insn): Likewise.
30727 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
30728 * lra.c (check_rtl): Likewise.
30729 * reload1.c (elimination_costs_in_insn): Likewise.
30730 * reorg.c (follow_jumps): Likewise.
30732 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
30733 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
30734 (thumb_far_jump_used_p): Likewise.
30735 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
30736 (workaround_speculation): Likewise.
30737 (add_sched_insns_for_speculation): Likewise.
30738 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
30739 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
30740 (frv_for_each_packet): Likewise.
30741 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
30742 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
30743 (final_emit_insn_group_barriers): Likewise.
30744 * config/m32r/m32r.c (m32r_is_insn): Likewise.
30745 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
30746 (mips16_insn_length): Likewise.
30747 * config/pa/pa.c (pa_reorg): Likewise.
30748 (pa_combine_instructions): Likewise.
30749 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
30750 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
30751 (sh_reorg): Likewise.
30752 (split_branches): Likewise.
30753 * config/spu/spu.c (get_branch_target): Likewise.
30755 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
30758 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
30760 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
30761 Fix declaration name.
30763 2013-03-28 Lawrence Crowl <crowl@google.com>
30765 * graphds.h (struct graph.indicies): Remove unused.
30766 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
30767 (SCOP_ORIGINAL_PDDRS): Remove unused.
30768 * sese.h (extern insert_loop_close_phis): Removed unused.
30769 (extern insert_guard_phis): Removed unused.
30770 (extern ivtype_map_elt_info): Removed unused.
30771 (new_ivtype_map_elt): Removed unused.
30772 * sese.c (ivtype_map_elt_info): Removed unused.
30774 2013-03-28 Lawrence Crowl <crowl@google.com>
30776 * Makefile.in: Add several missing include dependences.
30778 (test-dump.o): New. This object is not added to any executable,
30779 but is present for ad-hoc testing.
30781 (debug (const bitmap_head_def &)): New.
30782 (debug (const bitmap_head_def *)): New.
30784 (extern debug (const bitmap_head_def &)): New.
30785 (extern debug (const bitmap_head_def *)): New.
30787 (debug (edge_def &)): New.
30788 (debug (edge_def *)): New.
30790 (debug (basic_block_def &)): New.
30791 (debug (basic_block_def *)): New.
30793 (dump_node (const_tree, int, FILE *)): Correct source file.
30795 (debug (die_struct &)): New.
30796 (debug (die_struct *)): New.
30798 (extern debug (die_struct &)): New.
30799 (extern debug (die_struct *)): New.
30800 * gimple-pretty-print.c
30801 (debug (gimple_statement_d &)): New.
30802 (debug (gimple_statement_d *)): New.
30803 * gimple-pretty-print.h
30804 (extern debug (gimple_statement_d &)): New.
30805 (extern debug (gimple_statement_d *)): New.
30807 (debug (ira_allocno_copy &)): New.
30808 (debug (ira_allocno_copy *)): New.
30809 (debug (ira_allocno &)): New.
30810 (debug (ira_allocno *)): New.
30812 (extern debug (ira_allocno_copy &)): New.
30813 (extern debug (ira_allocno_copy *)): New.
30814 (extern debug (ira_allocno &)): New.
30815 (extern debug (ira_allocno *)): New.
30817 (debug (live_range &)): New.
30818 (debug (live_range *)): New.
30820 (debug (lra_live_range &)): New.
30821 (debug (lra_live_range *)): New.
30823 (debug (lra_live_range &)): New.
30824 (debug (lra_live_range *)): New.
30826 (debug (omega_pb_d &)): New.
30827 (debug (omega_pb_d *)): New.
30829 (extern debug (omega_pb_d &)): New.
30830 (extern debug (omega_pb_d *)): New.
30832 (debug (const rtx_def &)): New.
30833 (debug (const rtx_def *)): New.
30835 (debug_tree (tree): Move within file.
30836 (debug_raw (const tree_node &)): New.
30837 (debug_raw (const tree_node *)): New.
30838 (dump_tree_via_hooks (const tree_node *, int)): New.
30839 (debug (const tree_node &)): New.
30840 (debug (const tree_node *)): New.
30841 (debug_verbose (const tree_node &)): New.
30842 (debug_verbose (const tree_node *)): New.
30843 (debug_head (const tree_node &)): New.
30844 (debug_head (const tree_node *)): New.
30845 (debug_body (const tree_node &)): New.
30846 (debug_body (const tree_node *)): New.
30847 (debug_vec_tree (tree): Move and reimplement in terms of dump.
30848 (debug (vec<tree, va_gc> &)): New.
30849 (debug (vec<tree, va_gc> *)): New.
30851 (extern debug (const rtx_def &)): New.
30852 (extern debug (const rtx_def *)): New.
30854 (debug_raw (simple_bitmap_def &)): New.
30855 (debug_raw (simple_bitmap_def *)): New.
30856 (debug (simple_bitmap_def &)): New.
30857 (debug (simple_bitmap_def *)): New.
30859 (extern debug (simple_bitmap_def &)): New.
30860 (extern debug (simple_bitmap_def *)): New.
30861 (extern debug_raw (simple_bitmap_def &)): New.
30862 (extern debug_raw (simple_bitmap_def *)): New.
30864 (debug (vinsn_def &)): New.
30865 (debug (vinsn_def *)): New.
30866 (debug_verbose (vinsn_def &)): New.
30867 (debug_verbose (vinsn_def *)): New.
30868 (debug (expr_def &)): New.
30869 (debug (expr_def *)): New.
30870 (debug_verbose (expr_def &)): New.
30871 (debug_verbose (expr_def *)): New.
30872 (debug (vec<rtx> &)): New.
30873 (debug (vec<rtx> *)): New.
30875 (extern debug (vinsn_def &)): New.
30876 (extern debug (vinsn_def *)): New.
30877 (extern debug_verbose (vinsn_def &)): New.
30878 (extern debug_verbose (vinsn_def *)): New.
30879 (extern debug (expr_def &)): New.
30880 (extern debug (expr_def *)): New.
30881 (extern debug_verbose (expr_def &)): New.
30882 (extern debug_verbose (expr_def *)): New.
30883 (extern debug (vec<rtx> &)): New.
30884 (extern debug (vec<rtx> *)): New.
30886 (_list_iter_cond_expr): Make inline instead of static.
30888 (debug (sreal &)): New.
30889 (debug (sreal *)): New.
30891 (extern debug (sreal &)): New.
30892 (extern debug (sreal *)): New.
30894 (extern debug_raw (const tree_node &)): New.
30895 (extern debug_raw (const tree_node *)): New.
30896 (extern debug (const tree_node &)): New.
30897 (extern debug (const tree_node *)): New.
30898 (extern debug_verbose (const tree_node &)): New.
30899 (extern debug_verbose (const tree_node *)): New.
30900 (extern debug_head (const tree_node &)): New.
30901 (extern debug_head (const tree_node *)): New.
30902 (extern debug_body (const tree_node &)): New.
30903 (extern debug_body (const tree_node *)): New.
30904 (extern debug (vec<tree, va_gc> &)): New.
30905 (extern debug (vec<tree, va_gc> *)): New.
30907 (debug (struct loop &)): New.
30908 (debug (struct loop *)): New.
30909 (debug_verbose (struct loop &)): New.
30910 (debug_verbose (struct loop *)): New.
30911 * tree-dump.c: Add header dependence.
30913 (extern debug (struct loop &)): New.
30914 (extern debug (struct loop *)): New.
30915 (extern debug_verbose (struct loop &)): New.
30916 (extern debug_verbose (struct loop *)): New.
30918 (debug (data_reference &)): New.
30919 (debug (data_reference *)): New.
30920 (debug (vec<data_reference_p> &)): New.
30921 (debug (vec<data_reference_p> *)): New.
30922 (debug (vec<ddr_p> &)): New.
30923 (debug (vec<ddr_p> *)): New.
30925 (extern debug (data_reference &)): New.
30926 (extern debug (data_reference *)): New.
30927 (extern debug (vec<data_reference_p> &)): New.
30928 (extern debug (vec<data_reference_p> *)): New.
30929 (extern debug (vec<ddr_p> &)): New.
30930 (extern debug (vec<ddr_p> *)): New.
30932 (debug (pt_solution &)): New.
30933 (debug (pt_solution *)): New.
30935 (extern debug (pt_solution &)): New.
30936 (extern debug (pt_solution *)): New.
30938 (debug (_var_map &)): New.
30939 (debug (_var_map *)): New.
30940 (debug (tree_live_info_d &)): New.
30941 (debug (tree_live_info_d *)): New.
30943 (extern debug (_var_map &)): New.
30944 (extern debug (_var_map *)): New.
30945 (extern debug (tree_live_info_d &)): New.
30946 (extern debug (tree_live_info_d *)): New.
30948 2013-03-28 Jan Hubicka <jh@suse.cz>
30950 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
30952 2013-03-28 Ian Bolton <ian.bolton@arm.com>
30954 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
30955 record only when desired or required.
30957 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
30959 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
30960 *vec_extractv2di_1_rex64. Use x64 isa attribute.
30962 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
30964 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
30965 (*andsi3_compare0_uxtw): New pattern.
30966 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
30967 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
30969 2013-03-28 Jan Hubicka <jh@suse.cz>
30971 * data-streamer-in.c (streamer_read_gcov_count): New function.
30972 * gimple-streamer-out.c: Include value-prof.h.
30973 (output_gimple_stmt): Output histogram.
30974 (output_bb): Use streamer_write_gcov_count.
30975 * value-prof.c: Include data-streamer.h
30976 (dump_histogram_value): Add HIST_TYPE_MAX.
30977 (stream_out_histogram_value): New function.
30978 (stream_in_histogram_value): New function.
30979 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
30980 (stream_out_histogram_value, stream_in_histogram_value): Declare.
30981 * data-streamer-out.c (streamer_write_gcov_count): New function.
30982 (streamer_write_gcov_count_stream): New function.
30983 * lto-cgraph.c (lto_output_edge): Update counter streaming.
30984 (lto_output_node): Likewise.
30985 (input_node, input_edge): Likewise.
30986 * lto-streamer-out.c (output_cfg): Update streaming.
30987 * lto-streamer-in.c (input_cfg): Likewise.
30988 * data-streamer.h (streamer_write_gcov_count,
30989 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
30990 * gimple-streamer-in.c: Include value-prof.h
30991 (input_gimple_stmt): Input histograms.
30992 (input_bb): Update profile streaming.
30994 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
30996 * genmodes.c (emit_max_int): New function.
30997 (emit_insn_modes_h): Added call to emit_max_function.
30998 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
31000 * machmode.def: Fixed comment.
31002 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
31004 * combine.c (try_combine): Removed useless assert.
31005 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
31007 2013-03-28 Marek Polacek <polacek@redhat.com>
31008 Richard Biener <rguenther@suse.de>
31010 PR tree-optimization/56695
31011 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
31012 build signed result of a vector comparison.
31013 * tree-cfg.c (verify_gimple_comparison): Check that a result
31014 of a vector comparison has signed type.
31016 2013-03-28 Richard Biener <rguenther@suse.de>
31018 PR tree-optimization/37021
31019 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
31020 do not restrict gaps between groups.
31021 * tree-vect-stmts.c (vectorizable_load): Properly account for
31022 a gap between groups.
31024 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
31026 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
31027 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
31030 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
31032 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
31033 * doc/extend.texi (Named Address Spaces): Ditto.
31034 (Variable Attributes): Ditto.
31036 2013-03-27 Kai Tietz <ktietz@redhat.com>
31038 * config.build: Add support for cygwin x64 target.
31039 * config.gcc: Likewise.
31040 * config.host: Likewise.
31041 * configure.ac: Likewise
31042 * configure: Regenerated.
31044 2013-03-27 Kai Tietz <ktietz@redhat.com>
31046 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
31047 * config/i386/t-cygwin-w64: New file.
31048 * config/i386/cygwin-w64.h: New file.
31049 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
31050 and add support for x64-cygwin target.
31051 (CPP_SPEC): Likewise.
31052 (CXX_WRAP_SPEC_LIST): Undefine before define.
31053 (LIBGCJ_SONAME): Use 15 as version.
31055 2013-03-27 Richard Biener <rguenther@suse.de>
31057 PR tree-optimization/56716
31058 * tree-ssa-structalias.c (perform_var_substitution): Adjust
31059 dumping for ref nodes.
31061 2013-03-27 Martin Jambor <mjambor@suse.cz>
31063 PR tree-optimization/55334
31064 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
31065 restricted pointers to arrays.
31067 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
31069 * Makefile.in (.SUFFIXES): Add .cc.
31070 (.c.o): Apply same recipe for implicit rule .cc.o.
31072 2013-03-27 Richard Biener <rguenther@suse.de>
31074 PR tree-optimization/37021
31075 * tree-vect-data-refs.c (vect_check_strided_load): Allow
31076 REALPART/IMAGPART_EXPRs around the supported refs.
31077 * tree-ssa-structalias.c (find_func_aliases): Assume that
31078 floating-point values are not used to transfer pointers.
31080 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
31082 * target.def (TARGET_HAS_IFUNC_P): New target hook.
31083 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
31084 * doc/tm.texi: Regenerate.
31085 * targhooks.h (default_has_ifunc_p): New.
31086 * targhooks.c (default_has_ifunc_p): Ditto.
31087 * config/linux-protos.h: New file.
31088 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
31089 hook for linux which disables support of indirect functions in android.
31090 * config/linux-android.c: New file.
31091 * config/t-linux-android.c: Ditto.
31092 * config.gcc: Added new object file linux-android.o.
31093 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
31094 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
31095 * varasm.c (do_assemble_alias): Likewise.
31096 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
31097 doesn't support indirect functions.
31098 * configure: Regenerate.
31100 2013-03-27 Bin Cheng <bin.cheng@arm.com>
31103 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
31104 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
31107 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31109 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
31111 2013-03-27 Terry Guo <terry.guo@arm.com>
31113 * config/arm/arm-cores.def: Added core cortex-r7.
31114 * config/arm/arm-tune.md: Regenerated.
31115 * config/arm/arm-tables.opt: Regenerated.
31116 * doc/invoke.texi: Added entry for core cortex-r7.
31118 2013-03-27 Walter Lee <walt@tilera.com>
31120 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
31121 double-decrement of next_scratch_regno.
31123 2013-03-27 Walter Lee <walt@tilera.com>
31125 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
31127 (insn_v1mulus): Ditto.
31128 (insn_v2muls): Ditto.
31130 2013-03-27 Walter Lee <walt@tilera.com>
31132 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
31133 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
31135 2013-03-27 Walter Lee <walt@tilera.com>
31137 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
31138 (*sibcall_value): Ditto.
31140 2013-03-27 Walter Lee <walt@tilera.com>
31142 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
31143 (insn_mnz_v8qi): ... this ...
31144 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
31146 (insn_v<n>mnz): Replaced by ...
31147 (insn_v1mnz): ... this ...
31148 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
31150 (insn_mz_<mode>): Replaced by ...
31151 (insn_mz_v8qi): ... this ...
31152 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
31154 (insn_v<n>mz): Replaced by ...
31155 (insn_v1mz): ... this ...
31156 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
31159 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
31161 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
31163 2013-03-26 Roland McGrath <mcgrathr@google.com>
31165 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
31166 than fprintf with a non-constant, non-format string.
31168 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
31170 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
31171 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
31172 operand 0 predicate.
31173 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
31174 attribute. Use general_x64nomem_operand as operand 1 predicate.
31175 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
31176 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
31177 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
31178 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
31179 (mov<mode>_insv_1): Remove expander. Merge insn with
31180 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
31181 Use general_x64nomem_operand as operand 1 predicate.
31182 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
31183 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
31184 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
31185 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
31186 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
31187 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
31188 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
31189 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
31190 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
31191 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
31192 (general_x64nomem_operand): Ditto.
31194 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
31196 * config/rtems.opt: Add -pthread option.
31198 2013-03-26 Richard Biener <rguenther@suse.de>
31200 * alias.c (find_base_term): Avoid redundant and not used recursion.
31201 (base_alias_check): Get the initial base term from the caller.
31202 (true_dependence_1): Compute and pass base terms to base_alias_check.
31203 (write_dependence_p): Likewise.
31204 (may_alias_p): Likewise.
31206 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
31208 * config/aarch64/aarch64.c (aarch64_classify_address): Support
31209 PC-relative load in SI modes and above only.
31211 2013-03-26 Xinyu Qi <xyqi@marvell.com>
31213 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
31214 * config/arm/iwmmxt.md (WCGR0): Update.
31215 (WCGR1, WCGR2, WCGR3): Likewise.
31217 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
31219 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
31220 Use x64 and nox64 isa attributes.
31222 2013-03-26 Richard Biener <rguenther@suse.de>
31224 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
31225 alignment computations and rely on get_object_alignment_1
31226 for the !TYPE_P case.
31227 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
31229 2013-03-26 Walter Lee <walt@tilera.com>
31231 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
31232 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
31234 2013-03-25 Jeff Law <law@redhat.com>
31236 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
31237 check for INTEGRAL_TYPE_P that was missing due to checking in
31238 wrong version of prior patch.
31240 2013-03-25 Walter Lee <walt@tilera.com>
31242 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
31243 TILEGX_INSN_SHUFFLEBYTES1.
31244 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
31246 (tilegx_builtins): Ditto.
31247 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
31249 2013-03-25 Walter Lee <walt@tilera.com>
31251 * config/tilegx/tilegx.md (floatsisf2): New pattern.
31252 (floatunssisf2): New pattern.
31253 (floatsidf2): New pattern.
31254 (floatunssidf2): New pattern.
31256 2013-03-25 Walter Lee <walt@tilera.com>
31258 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
31259 tests for constraint J, K, N, P.
31261 2013-03-25 Walter Lee <walt@tilera.com>
31263 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
31264 Use indirect/pcrel encoding.
31265 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
31268 2013-03-25 Steve Ellcey <sellcey@mips.com>
31270 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
31271 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
31272 * config/mips/mips.c (mips_option_override): Set IMADD default.
31273 * config/mips/mips.h (PTF_AVOID_IMADD): New.
31274 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
31275 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
31276 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
31277 * doc/invoke.texi (-mimadd/-mno-imadd): New.
31279 2013-03-25 Jeff Law <law@redhat.com>
31281 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
31282 slightly to avoid creating and folding useless trees. Simplify
31283 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
31285 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
31287 * config/i386/i386.md (*zero_extendsidi2): Merge with
31288 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
31289 * config/i386/predicates.md (x86_64_zext_operand): Rename from
31290 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
31291 targets. Clarify comment.
31293 2013-03-25 Martin Jambor <mjambor@suse.cz>
31295 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
31296 pass-through jump functions differently.
31297 (ipa_read_jump_function): Likewise. Also use setter functions to set
31300 2013-03-25 Martin Jambor <mjambor@suse.cz>
31302 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
31303 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
31305 (ipa_get_indirect_edge_target): New function.
31306 (devirtualization_time_bonus): New parameter known_aggs, pass it to
31307 ipa_get_indirect_edge_target. Update all callers.
31308 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
31309 ipa_get_indirect_edge_target_1 instead of calling
31310 ipa_get_indirect_edge_target.
31311 (create_specialized_node): Pass aggvlas to
31312 ipcp_discover_new_direct_edges.
31314 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31316 * config/arm/arm.md (f_sels, f_seld): New types.
31317 (*cmov<mode>): New pattern.
31318 * config/arm/predicates.md (arm_vsel_comparison_operator): New
31321 2013-03-25 Kai Tietz <ktietz@redhat.com>
31323 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
31324 POSIX-printf for mingw-hosted builds.
31326 2013-03-25 Richard Biener <rguenther@suse.de>
31328 PR middle-end/56694
31329 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
31330 must-not-throw stmt location.
31332 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31334 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
31335 Emit load-acquire versions when acq is true.
31336 (arm_emit_store_exclusive): Add rel parameter.
31337 Emit store-release versions when rel is true.
31338 (arm_split_compare_and_swap): Use acquire-release instructions
31340 of barriers when appropriate.
31341 (arm_split_atomic_op): Likewise.
31342 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
31343 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
31344 (VUNSPEC_SLX): Likewise.
31345 (VUNSPEC_LDA): Likewise.
31346 (VUNSPEC_STL): Likewise.
31347 * config/arm/sync.md (atomic_load<mode>): New pattern.
31348 (atomic_store<mode>): Likewise.
31349 (arm_load_acquire_exclusive<mode>): Likewise.
31350 (arm_load_acquire_exclusivesi): Likewise.
31351 (arm_load_acquire_exclusivedi): Likewise.
31352 (arm_store_release_exclusive<mode>): Likewise.
31354 2013-03-25 Catherine Moore <clm@codesourcery.com>
31356 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
31357 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
31358 * config/mip/predicates.md (lwsp_swsp_operand,
31359 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
31360 sb16_operand, db4_operand, db7_operand, ib3_operand,
31361 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
31362 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
31363 andi16_operand): New predicates.
31364 * config/mips/mips.md (compression): New attribute.
31365 (enabled): New attribute.
31366 (length): Consider compression in computing length.
31367 (shift_compression): New code attribute.
31368 (*add<mode>3): New operands. Record compression.
31369 (sub<mode>3): Likewise.
31370 (one_cmpl<mode>2): Likewise.
31371 (*and<mode>3): Likewise.
31372 (*ior<mode>3): Likewise.
31373 (unnamed pattern for xor): Likewise.
31374 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
31375 (*<optab><mode>3): Likewise.
31376 (*mov<mode>_internal: Likewise.
31377 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
31378 (mips_unsigned_immediate_p): New.
31379 (umips_lwsp_swsp_address_p): New.
31380 (m16_based_address_p): New.
31381 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
31382 (mips_unsigned_immediate_p): New prototype.
31383 (lwsp_swsp_address_p): New prototype.
31384 (m16_based_address_p): New prototype.
31385 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
31386 (mips_signed_immediate_p): New function.
31387 (m16_based_address_p): New function.
31388 (lwsp_swsp_address_p): New function.
31389 (mips_print_operand_punctuation): Recognize short delay slot insns
31390 for microMIPS.add<mode>3"
31392 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31395 * config/arm/iterators.md (v_cmp_result): New mode attribute.
31396 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
31398 2013-03-25 Richard Biener <rguenther@suse.de>
31400 PR tree-optimization/56689
31401 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
31404 2013-03-25 Richard Biener <rguenther@suse.de>
31406 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
31408 (memory_references): Likewise.
31409 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
31410 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
31411 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
31412 (gather_mem_refs_in_loops): Fold into ...
31413 (analyze_memory_references): ... this. Move initialization
31414 to tree_ssa_lim_initialize.
31415 (fill_always_executed_in): Rename to ...
31416 (fill_always_executed_in_1): ... this.
31417 (fill_always_executed_in): Move contains_call computation to
31418 this new function from ...
31419 (tree_ssa_lim_initialize): ... here.
31420 (tree_ssa_lim): Call fill_always_executed_in.
31422 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
31424 * postreload.c (reload_combine): Fix code detecting returns.
31426 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
31428 * function.c (emit_use_return_register_into_block): On cc0 targets,
31429 do not emit the sequence between cc0 setter and user.
31431 2013-03-25 Kai Tietz <ktietz@redhat.com>
31433 * config/i386/predicates.md (local_symbolic_operand): Interpret
31434 dll-imported symbols as none-local.
31436 2013-03-25 Richard Biener <rguenther@suse.de>
31438 * tree-ssa-loop-im.c (struct depend): Remove.
31439 (struct lim_aux_data): Make depends a vec of gimples.
31440 (free_lim_aux_data): Adjust.
31441 (add_dependency): Likewise.
31442 (set_level): Likewise.
31444 2013-03-25 Richard Biener <rguenther@suse.de>
31446 PR middle-end/56434
31447 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
31448 the pointer returned by calls with ECF_MALLOC set.
31450 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
31452 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
31454 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
31456 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
31457 using MMXMODE mode iterator.
31458 (*move<mode>_internal): Merge with *movv2sf_internal and
31459 *movv2sf_internal_rex64 using MMXMODE mode iterator.
31461 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
31463 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
31464 (record_last_mem_set_info): Likewise.
31466 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
31467 of XNEWVEC followed by memset.
31468 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
31470 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
31472 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
31473 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
31474 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
31475 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
31476 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
31477 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
31478 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
31479 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
31480 BARRIER_P instead of GET_CODE.
31482 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
31484 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
31485 inaccuracy in the probing code.
31487 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
31488 (ctrapdi4): Likewise.
31490 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
31492 * calls.c (expand_call): Add missing guard to code handling return
31493 of non-BLKmode structures in MSB.
31494 * function.c (expand_function_end): Likewise.
31496 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
31498 * combine.c (try_combine): Adjust comment. Do not add the set of
31499 insn #0 if the destination indirectly is set or dies in insn #2.
31500 Tidy up code to distribute a new note.
31502 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
31504 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
31505 also for alternatives 16 and 17.
31507 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
31509 * config/i386/sse.md (*mov<mode>_internal): Merge with
31510 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
31511 Emit insn template depending on type attribute. Use
31512 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
31513 movd instead of movq mnemonic for interunit moves. Rewrite mode
31514 attribute calculation. Remove unit attribute calculation.
31515 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
31516 Set prefix_data16 attribute for DImode ssemov types.
31517 Use Ym instead of y for SSE-MMX conversion alternatives.
31518 Reorder operand constraints.
31520 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
31522 * df.h (df_insn_delete): Adjust prototype.
31523 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
31524 and let it decide whether mark the basic block dirty.
31525 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
31526 * df-scan.c (df_insn_info_delete): New helper function, split
31527 off from df_insn_delete.
31528 (df_scan_free_bb_info): Use it.
31529 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
31531 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
31532 that the insn is actually an insn and it has a non-NULL basic block.
31533 Do not mark basic block dirty if only deleting a DEBUG_INSN.
31535 2013-03-22 Richard Biener <rguenther@suse.de>
31537 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
31539 (mem_ref_alloc): Do not allocate them.
31540 (refs_independent_p): Do not query or maintain a cache.
31542 2013-03-22 Richard Biener <rguenther@suse.de>
31544 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
31545 (gather_mem_refs_in_loops): Do not compute it.
31546 (analyze_memory_references): Do not allocate it.
31547 (tree_ssa_lim_finalize): Do not free it.
31548 (for_all_locs_in_loop): Do not query all_refs_in_loop.
31550 2013-03-22 Richard Biener <rguenther@suse.de>
31552 * is-a.h (as_a): Use gcc_checking_assert.
31554 2013-03-22 Ian Bolton <ian.bolton@arm.com>
31556 * config/aarch64/aarch64.c (aarch64_print_operand): New
31557 format specifier for printing a constant in hex.
31558 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
31559 format specifier for printing second operand.
31561 2013-03-22 Richard Biener <rguenther@suse.de>
31563 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
31565 (gather_mem_refs_in_loops): Perform store accumulation here.
31566 (create_vop_ref_mapping_loop): Remove.
31567 (create_vop_ref_mapping): Likewise.
31568 (analyze_memory_references): Initialize refs_stored_in_loop.
31569 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
31570 (record_indep_loop): Remove.
31571 (record_dep_loop): New function.
31572 (ref_indep_loop_p_1): Adjust to only walk over references
31573 in the loop, not its subloops.
31574 (ref_indep_loop_p): Rename to ...
31575 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
31576 maintaining a more fine-grained cache.
31577 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
31578 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
31580 2013-03-22 Richard Biener <rguenther@suse.de>
31582 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
31583 (struct mem_ref): Make accesses_in_loop a vec of a vec of
31584 aggregate mem_ref_loc.
31585 (free_mem_ref_locs): Inline into ...
31586 (memref_free): ... this and adjust.
31587 (mem_ref_alloc): Adjust.
31588 (mem_ref_locs_alloc): Remove.
31589 (record_mem_ref_loc): Adjust.
31590 (get_all_locs_in_loop): Rewrite into ...
31591 (for_all_locs_in_loop): ... this iterator.
31592 (rewrite_mem_ref_loc): New functor.
31593 (rewrite_mem_refs): Use for_all_locs_in_loop.
31594 (sm_set_flag_if_changed): New functor.
31595 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
31596 (ref_always_accessed): New functor.
31597 (ref_always_accessed_p): Use for_all_locs_in_loop.
31599 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
31601 * tree-pass.h (PROP_gimple_lvec): New.
31602 * passes.c (dump_properties): Handle PROP_gimple_lvec.
31603 (init_optimization_passes): Move pass_lower_vector.
31604 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
31606 (pass_lower_vector): Provide PROP_gimple_lvec.
31607 (pass_lower_vector_ssa): Likewise.
31608 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
31610 2013-03-21 Mark Wielaard <mjw@redhat.com>
31612 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
31614 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
31616 * config/i386/i386.md (*movdi_internal): Disparage slightly
31617 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
31618 conversion alternatives.
31620 2013-03-21 Jakub Jelinek <jakub@redhat.com>
31622 PR middle-end/48087
31623 * diagnostic.def (DK_WERROR): New kind.
31624 * diagnostic.h (werrorcount): Define.
31625 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
31626 promoted to DK_ERROR, increment DK_WERROR counter instead of
31628 * toplev.c (toplev_main): Call print_ignored_options even if
31629 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
31630 even if just werrorcount is non-zero.
31633 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
31635 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
31636 (string_cst_pool_decl): New function.
31637 (optimize_one_addr_into_implicit_ptr): New function.
31638 (resolve_addr_in_expr): Optimize DWARF location expression
31639 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
31640 which doesn't live in memory, but has DW_AT_location or
31641 DW_AT_const_value, or refers to a string literal, into
31642 DW_OP_GNU_implicit_pointer.
31643 (optimize_location_into_implicit_ptr): New function.
31644 (resolve_addr): If removing DW_AT_location of a variable because
31645 it was DW_OP_addr of address of the variable, but the variable doesn't
31646 live in memory, try to emit const value attribute for the initializer.
31648 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
31650 * tree.h (VECTOR_TYPE_P): New macro.
31651 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
31652 TYPE_MODE): Use it.
31653 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
31654 VEC_COND_EXPR cannot be lvalues.
31655 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
31657 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
31659 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
31660 Restrict the transformation to equal modes.
31662 2013-03-21 Richard Biener <rguenther@suse.de>
31664 PR tree-optimization/39326
31665 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
31666 (MEM_ANALYZABLE): Adjust.
31667 (record_mem_ref_loc): Move bitmap ops ...
31668 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
31669 unanalyzable refs, do not record locations for it.
31670 (analyze_memory_references): Allocate ref zero as shared
31672 (refs_independent_p): Do not test for unanalyzed mems here.
31673 (ref_indep_loop_p_1): Special-case disambiguation against
31674 the unanalyzed ref.
31675 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
31677 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
31679 * config/arm/arm-protos.h (tune_params): Add
31680 prefer_neon_for_64bits field.
31681 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
31682 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
31683 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
31684 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
31685 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
31686 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
31687 (arm_option_override): Handle -mneon-for-64bits new option.
31688 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
31689 (prefer_neon_for_64bits): Declare new variable.
31690 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
31691 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
31692 (arch_enabled): Handle new arch types. Remove support for onlya8
31694 (one_cmpldi2): Use new arch names.
31695 (zero_extend<mode>di2, extend<mode>di2): Ditto.
31696 * config/arm/arm.opt (mneon-for-64bits): Add option.
31697 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
31698 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
31699 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
31701 * doc/invoke.texi (-mneon-for-64bits): Document.
31703 2013-03-21 Richard Biener <rguenther@suse.de>
31705 PR tree-optimization/39326
31706 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
31707 (sort_bbs_in_loop_postorder_cmp): New function.
31708 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
31710 2013-03-21 Richard Biener <rguenther@suse.de>
31712 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
31713 (vect_insert_into_interleaving_chain): Likewise.
31714 (vect_drs_dependent_in_basic_block): Inline ...
31715 (vect_slp_analyze_data_ref_dependence): ... here. New function,
31717 (vect_analyze_data_ref_dependence): ... here. Simplify.
31718 (vect_check_interleaving): Simplify.
31719 (vect_analyze_data_ref_dependences): Likewise. Split out ...
31720 (vect_slp_analyze_data_ref_dependences): ... this new function.
31721 (dr_group_sort_cmp): New function.
31722 (vect_analyze_data_ref_accesses): Compute data-reference groups
31723 here instead of in vect_analyze_data_ref_dependence. Use
31724 a more efficient algorithm.
31725 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
31726 vect_slp_analyze_data_ref_dependences. Call
31727 vect_analyze_data_ref_accesses earlier.
31728 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
31729 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
31730 (vect_slp_analyze_data_ref_dependences): New prototype.
31732 2013-03-21 Richard Biener <rguenther@suse.de>
31734 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
31735 ref is stored in the loop.
31736 (find_refs_for_sm): Walk only over all stores.
31737 (store_motion_loop): Allocate from lim_bitmap_obstack.
31738 (store_motion): Likewise.
31740 2013-03-21 Richard Biener <rguenther@suse.de>
31742 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
31743 Update virtual SSA form.
31745 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31747 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
31748 * configure: Regenerate.
31749 * config.in: Regenerate.
31750 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
31751 if !HAVE_LD_EH_FRAME_CIEV3.
31753 2013-03-21 Richard Biener <rguenther@suse.de>
31755 * tree-cfg.c (verify_expr_no_block): New function.
31756 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
31757 nor DECL_VALUE_EXPR have locations with associated blocks.
31758 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
31759 (clear_unused_block_pointer): Remove code dealing with
31760 blocks in DECL_DEBUG_EXPR locations.
31762 2013-03-21 Richard Biener <rguenther@suse.de>
31764 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
31765 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
31766 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
31767 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
31768 instead of DECL_DEBUG_EXPR_IS_FROM.
31769 * gimplify.c (gimplify_modify_expr): Likewise.
31770 * tree-cfg.c (verify_expr_location_1): Likewise.
31771 * tree-complex.c (create_one_component_var): Likewise.
31772 * tree-sra.c (create_access_replacement): Likewise.
31773 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
31774 (clear_unused_block_pointer): Likewise.
31775 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
31776 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
31777 * var-tracking.c (var_debug_decl): Likewise.
31778 (track_expr_p): Likewise.
31779 * tree-inline.c (add_local_variables): Likewise. Set
31780 DECL_HAS_DEBUG_EXPR_P after copying it.
31781 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
31782 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
31784 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
31787 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
31788 * configure: Regenerate.
31789 * config.in: Regenerate.
31790 * config/i386/i386.md (*movdf_internal): Use
31791 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
31792 movd instead of movq mnemonic for interunit moves.
31793 (*movdi_internal): Ditto.
31795 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31797 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
31798 (abd<mode>_3): New pattern.
31799 (aba<mode>_3): New pattern.
31800 (fabd<mode>_3): New pattern.
31802 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31804 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
31805 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
31806 occurrence of REGISTER_PREFIX as its empty string.
31808 2013-03-20 Jeff Law <law@redhat.com>
31810 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
31811 addititional equivalences for equality comparisons between an SSA_NAME
31812 and a constant where the SSA_NAME was set from a widening conversion.
31814 2013-03-20 Walter Lee <walt@tilera.com>
31816 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
31818 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
31820 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
31821 depending on type attribute.
31822 (*movti_internal): Ditto.
31823 (*movtf_internal): Ditto.
31824 (*movxf_internal): Ditto.
31825 (*movdf_internal): Ditto.
31826 (*movsf_internal): Ditto.
31828 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
31830 * config/i386/i386.md (*movti_internal): Set prefix attribute to
31831 maybe_vex for sselog1 and ssemov types.
31832 (*movdi_internal): Reorder operand constraints.
31833 (*movsi_internal): Ditto. Set prefix attribute to
31834 maybe_vex for sselog1 and ssemov types.
31835 (*movtf_internal): Set prefix attribute to maybe_vex
31836 for sselog1 and ssemov types.
31837 (*movdf_internal): Ditto. Set prefix_data16 attribute for
31838 DImode ssemov types. Reorder operand constraints.
31839 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
31840 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
31841 attribute for SImode ssemov types. Reorder operand constraints.
31843 2013-03-20 Martin Jambor <mjambor@suse.cz>
31845 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
31846 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
31848 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
31850 * config/rs6000/predicates.md (indexed_address, update_address_mem
31851 update_indexed_address_mem): New predicates.
31852 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
31853 attribute for load/store instructions.
31854 * config/rs6000/dfp.md (movsd_store): Likewise.
31855 (movsd_load): Likewise.
31856 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
31857 (unnamed HI->DI extend define_insn): Likewise.
31858 (unnamed SI->DI extend define_insn): Likewise.
31859 (unnamed QI->SI extend define_insn): Likewise.
31860 (unnamed QI->HI extend define_insn): Likewise.
31861 (unnamed HI->SI extend define_insn): Likewise.
31862 (unnamed HI->SI extend define_insn): Likewise.
31863 (extendsfdf2_fpr): Likewise.
31864 (movsi_internal1): Likewise.
31865 (movsi_internal1_single): Likewise.
31866 (movhi_internal): Likewise.
31867 (movqi_internal): Likewise.
31868 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
31869 attribute for load/store instructions.
31870 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
31872 (mov<mode>_softfloat): Likewise.
31873 (mov<mode>_hardfloat32): Likewise.
31874 (mov<mode>_hardfloat64): Likewise.
31875 (mov<mode>_softfloat64): Likewise.
31876 (movdi_internal32): Likewise.
31877 (movdi_internal64): Likewise.
31878 (probe_stack_<mode>): Likewise.
31880 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
31882 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
31883 floating point, and decimal floating point to reload iterator.
31885 * config/rs6000/constraints.md (wl constraint): New constraints to
31886 return FLOAT_REGS if certain options are used to reduce the number
31887 of separate patterns that exist in the file.
31888 (wx constraint): Likewise.
31889 (wz constraint): Likewise.
31891 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
31892 -mdebug=reg, print wg, wl, wx, and wz constraints.
31893 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
31894 Initialize the reload functions for 64-bit binary/decimal floating
31896 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
31897 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
31898 create the buffer on the stack to overcome not having a 32-bit
31900 (rs6000_emit_move): Likewise.
31901 (rs6000_secondary_memory_needed_rtx): Likewise.
31902 (rs6000_alloc_sdmode_stack_slot): Likewise.
31903 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
31904 via xxlxor, just like DFmode 0.0.
31906 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
31907 define as 1 if we are running on a power7 or newer.
31908 (enum r6000_reg_class_enum): Add new constraints.
31910 * config/rs6000/dfp.md (movsd): Delete, combine with binary
31911 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
31912 with other moves by using conditional constraits (wg). Use LFIWZX
31913 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
31914 (movsd splitter): Likewise.
31915 (movsd_hardfloat): Likewise.
31916 (movsd_softfloat): Likewise.
31918 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
31919 binary and decimal floating point moves.
31920 (fmove_ok): New attributes to combine binary and decimal floating
31921 point moves, and to combine power6x (mfpgpr) moves along normal
31923 (real_value_to_target): Likewise.
31924 (f32_lr): Likewise.
31925 (f32_lm): Likewise.
31926 (f32_li): Likewise.
31927 (f32_sr): Likewise.
31928 (f32_sm): Likewise.
31929 (f32_si): Likewise.
31930 (movsf): Combine binary and decimal floating point moves. Combine
31931 power6x (mfpgpr) moves with other moves by using conditional
31932 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
31933 (mov<mode> for SFmode/SDmode); Likewise.
31934 (SFmode/SDmode splitters): Likewise.
31935 (movsf_hardfloat): Likewise.
31936 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
31937 (movsf_softfloat): Likewise.
31938 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
31940 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
31941 wx and wz constraints.
31943 * config/rs6000/constraints.md (wg constraint): New constraint to
31944 return FLOAT_REGS if -mmfpgpr (power6x) was used.
31946 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
31949 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
31950 -mdebug=reg, print wg, wl, wx, and wz constraints.
31951 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
31952 Initialize the reload functions for 64-bit binary/decimal floating
31954 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
31955 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
31956 create the buffer on the stack to overcome not having a 32-bit
31958 (rs6000_emit_move): Likewise.
31959 (rs6000_secondary_memory_needed_rtx): Likewise.
31960 (rs6000_alloc_sdmode_stack_slot): Likewise.
31961 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
31962 via xxlxor, just like DFmode 0.0.
31964 * config/rs6000/dfp.md (movdd): Delete, combine with binary
31965 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
31966 with other moves by using conditional constraits (wg). Use LFIWZX
31967 and STFIWX for loading SDmode on power7.
31968 (movdd splitters): Likewise.
31969 (movdd_hardfloat32): Likewise.
31970 (movdd_softfloat32): Likewise.
31971 (movdd_hardfloat64_mfpgpr): Likewise.
31972 (movdd_hardfloat64): Likewise.
31973 (movdd_softfloat64): Likewise.
31975 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
31976 64-bit binary and decimal floating point moves.
31977 (FMOVE64X): Likewise.
31978 (movdf): Combine 64-bit binary and decimal floating point moves.
31979 Combine power6x (mfpgpr) moves with other moves by using
31980 conditional constraits (wg).
31981 (mov<mode> for DFmode/DDmode): Likewise.
31982 (DFmode/DDmode splitters): Likewise.
31983 (movdf_hardfloat32): Likewise.
31984 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
31985 (movdf_softfloat32): Likewise.
31986 (movdf_hardfloat64_mfpgpr): Likewise.
31987 (movdf_hardfloat64): Likewise.
31988 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
31989 (movdf_softfloat64): Likewise.
31990 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
31991 (reload_<mode>_load): Move to later in the file so they aren't in
31992 the middle of the floating point move insns.
31993 (reload_<mode>_store): Likewise.
31995 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
31998 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
31999 constraint if -mdebug=reg.
32000 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
32001 Enable using dd reload support if needed.
32003 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
32004 binary and decimal floating point moves in rs6000.md.
32005 (movtd_internal): Likewise.
32007 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
32008 decimal floating point moves.
32010 (movtf_internal): Likewise.
32011 (mov<mode>_internal, TDmode/TFmode): Likewise.
32012 (movtf_softfloat): Likewise.
32013 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
32015 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
32016 movdi_internal64, using wg constraint for move direct operations.
32017 (movdi_internal64): Likewise.
32019 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
32020 MODES_TIEABLE_P for selected modes. Print the numerical value of
32021 the various virtual registers. Use GPR/FPR first/last values,
32022 instead of hard coding the register numbers. Print which modes
32023 have reload functions registered.
32024 (rs6000_option_override_internal): If -mdebug=reg, trace the options
32025 settings before/after setting cpu, target and subtarget settings.
32026 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
32027 and for secondary reload failures in rs6000_secondary_reload_inner.
32028 (rs6000_secondary_reload_fail): Likewise.
32029 (rs6000_secondary_reload_inner): Likewise.
32031 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
32032 macros for first/last GPR and FPR registers.
32033 (LAST_GPR_REGNO): Likewise.
32034 (FIRST_FPR_REGNO): Likewise.
32035 (LAST_FPR_REGNO): Likewise.
32037 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
32038 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
32039 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
32040 (vcond<mode><mode>): Likewise.
32041 (vcondu<mode><mode>): Likewise.
32042 (vector_gtu<mode>): Likewise.
32043 (vector_gte<mode>): Likewise.
32044 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
32045 to prevent the compiler from converting DImode operations to TImode.
32046 (ior<mode>3): Likewise.
32047 (and<mode>3): Likewise.
32048 (one_cmpl<mode>2): Likewise.
32049 (nor<mode>3): Likewise.
32050 (andc<mode>3): Likewise.
32052 * config/rs6000/constraints.md (wt constraint): New constraint
32053 that returns VSX_REGS if TImode is allowed in VSX registers.
32055 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
32056 constant under VSX.
32058 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
32059 similar to TImode, but it is restricted to being in the GPRs.
32061 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
32062 TImode to occupy a single VSX register.
32064 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
32065 -mvsx-timode for power7/power8.
32066 (power7 cpu): Likewise.
32067 (power8 cpu): Likewise.
32069 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
32070 sure that TFmode/TDmode take up two registers if they are ever
32071 allowed in the upper VSX registers.
32072 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
32074 (rs6000_init_hard_regno_mode_ok): Likewise.
32075 (rs6000_debug_reg_global): Add debugging for PTImode and wt
32076 constraint. Print if LRA is turned on.
32077 (rs6000_option_override_internal): Give an error if -mvsx-timode
32078 and VSX is not enabled.
32079 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
32080 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
32081 to reg+offset addressing. Use PTImode when checking offset
32082 addresses for validity.
32083 (reg_offset_addressing_ok_p): Likewise.
32084 (rs6000_legitimate_offset_address_p): Likewise.
32085 (rs6000_legitimize_address): Likewise.
32086 (rs6000_legitimize_reload_address): Likewise.
32087 (rs6000_legitimate_address_p): Likewise.
32088 (rs6000_eliminate_indexed_memrefs): Likewise.
32089 (rs6000_emit_move): Likewise.
32090 (rs6000_secondary_reload): Likewise.
32091 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
32092 reloads to fpr registers to continue to use reg+offset addressing,
32093 but 64-bit reloads to altivec registers need reg+reg addressing.
32094 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
32095 it. Treat LO_SUM like a PLUS operation.
32096 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
32097 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
32098 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
32099 registers to share a register with a smaller sized type, since VSX
32100 puts scalars in the upper 64-bits.
32101 (print_operand): Add support for PTImode.
32102 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
32103 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
32104 registers, but don't have arithmetic support.
32105 (rs6000_memory_move_cost): Add test for VSX.
32106 (rs6000_opt_masks): Add -mvsx-timode.
32108 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
32111 (VSr): Use wt constraint for TImode.
32112 (VSv): Drop TImode support.
32113 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
32114 (vsx_movti_64bit): Likewise.
32115 (vsx_movti_32bit): Likewise.
32116 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
32117 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
32118 one '?' on the appropriate output constraint. Do not allow TImode
32119 logical operations on 32-bit systems.
32120 (vsx_ior<mode>3): Likewise.
32121 (vsx_xor<mode>3): Likewise.
32122 (vsx_one_cmpl<mode>2): Likewise.
32123 (vsx_nor<mode>3): Likewise.
32124 (vsx_andc<mode>3): Likewise.
32125 (vsx_concat_<mode>): Likewise.
32126 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
32128 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
32129 OPTION_MASK_VSX_TIMODE.
32130 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
32131 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
32133 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
32134 (TI2 iterator): New iterator for TImode, PTImode.
32135 (wd mode attribute): Add values for vector types.
32136 (movti_string): Replace TI move operations with operations for TImode
32137 and PTImode. Add support for TImode being allowed in VSX registers.
32138 (mov<mode>_string, TImode/PTImode): Likewise.
32139 (movti_ppc64): Likewise.
32140 (mov<mode>_ppc64, TImode/PTImode): Likewise.
32141 (TI mode splitters): Likewise.
32143 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
32146 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
32148 PR tree-optimization/56355
32149 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
32150 Also handle integers with undefined overflow.
32152 2013-03-20 Catherine Moore <clm@codesourcery.com>
32153 Maciej W. Rozycki <macro@codesourcery.com>
32154 Tom de Vries <tom@codesourcery.com>
32155 Nathan Sidwell <nathan@codesourcery.com>
32156 Iain Sandoe <iain@codesourcery.com>
32157 Nathan Froyd <froydnj@codesourcery.com>
32158 Chao-ying Fu <fu@mips.com>
32160 * doc/extend.texi: (micromips, nomicromips, nocompression):
32161 Document new function attributes.
32162 * doc/invoke.texi (minterlink-compressed, mmicromips,
32163 m14k, m14ke, m14kec): Document new options.
32164 (minterlink-mips16): Update documentation.
32165 * doc/md.texi (ZC, ZD): Document new constraints.
32166 * configure.ac (gcc_cv_as_micromips): Check if linker
32167 supports the .set micromips directive.
32168 * configure: Regenerate.
32169 * config.in: Regenerate.
32170 * config/mips/mips-tables.opt: Regenerate.
32171 * config/mips/micromips.md: New file.
32172 * constraints.md (ZC, ZD): New constraints.
32173 * config/mips/predicates.md (movep_src_register): New predicate.
32174 (movep_src_operand): New predicate.
32175 (non_volatile_mem_operand): New predicate.
32176 * config/mips/mips.md (multimem): New type.
32177 (length): Differentiate between 17-bit and 18-bit branch offsets.
32178 (MOVEP1, MOVEP2): New mode iterator.
32179 (mov_<load>l): Use ZC constraint.
32180 (mov_<load>r): Likewise.
32181 (mov_<store>l): Likewise.
32182 (mov_<store>r): Likewise.
32183 (*branch_equality<mode>_inverted): Add microMIPS support.
32184 (*branch_equality<mode>): Likewise.
32185 (*jump_absolute): Likewise.
32186 (indirect_jump_<mode>): Likewise.
32187 (tablejump_<mode>): Likewise.
32188 (<optab>_internal): Likewise.
32189 (sibcall_internal): Likewise.
32190 (sibcall_value_internal): Likewise.
32191 (prefetch): Use constraint ZD.
32192 * config/mips/mips.opt (minterlink-compressed): New option.
32193 (minterlink-mips16): Now an alias for minterlink-compressed.
32194 (mmicromips): New option.
32195 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
32196 (compare_and_swap_12): Likewise.
32197 (sync_add<mode>): Likewise.
32198 (sync_<optab>_12): Likewise.
32199 (sync_old_<optab>_12): Likewise.
32200 (sync_new_<optab>_12): Likewise.
32201 (sync_nand_12): Likewise.
32202 (sync_old_nand_12): Likewise.
32203 (sync_new_nand_12): Likewise.
32204 (sync_sub<mode>): Likewise.
32205 (sync_old_add<mode>): Likewise.
32206 (sync_old_sub<mode>): Likewise.
32207 (sync_new_add<mode>): Likewise.
32208 (sync_new_sub<mode>): Likewise.
32209 (sync_<optab><mode>): Likewise.
32210 (sync_old_<optab><mode>): Likewise.
32211 (sync_new_<optab><mode>): Likewise.
32212 (sync_nand<mode>): Likewise.
32213 (sync_old_nand<mode>): Likewise.
32214 (sync_new_nand<mode>): Likewise.
32215 (sync_lock_test_and_set<mode>): Likewise.
32216 (test_and_set_12): Likewise.
32217 (atomic_compare_and_swap<mode>): Likewise.
32218 (atomic_exchange<mode>_llsc): Likewise.
32219 (atomic_fetch_add<mode>_llsc): Likewise.
32220 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
32221 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
32222 (umips_save_restore_pattern_p): Likewise.
32223 (umips_load_store_pair_p): Likewise.
32224 (umips_output_load_store_pair): Likewise.
32225 (umips_movep_target_p): Likewise.
32226 (umips_12bit_offset_address_p): Likewise.
32227 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
32228 (mips_base_mips16): Rename this...
32229 (mips_base_compression_flags): ...to this. Update all uses.
32230 (mips_attribute_table): Add micromips, nomicromips and nocompression.
32231 (mips_mips16_decl_p): Delete.
32232 (mips_nomips16_decl_p): Delete.
32233 (mips_get_compress_on_flags): New function.
32234 (mips_get_compress_off_flags): New function.
32235 (mips_get_compress_mode): New function.
32236 (mips_get_compress_on_name): New function.
32237 (mips_get_compress_off_name): New function.
32238 (mips_insert_attributes): Support multiple compression types.
32239 (mips_merge_decl_attributes): Likewise.
32240 (umips_12bit_offset_address_p): New function.
32241 (mips_start_function_definition): Emit .set micromips directive.
32242 (mips_call_may_need_jalx_p): New function.
32243 (mips_function_ok_for_sibcall): Add microMIPS support.
32244 (mips_print_operand_punctuation): Support short delay slots and
32246 (umips_swm_mask, umips_swm_encoding): New.
32247 (umips_build_save_restore): New function.
32248 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
32249 (was_mips16_p): Remove.
32250 (old_compression_mode): New.
32251 (mips_set_compression_mode): New function.
32252 (mips_set_current_function): Add microMIPS support.
32253 (mips_option_override): Likewise.
32254 (umips_save_restore_pattern_p): New function.
32255 (umips_output_save_restore): New function.
32256 (umips_load_store_pair_p_1): New function.
32257 (umips_load_store_pair_p): New function.
32258 (umips_output_load_store_pair_1): New function.
32259 (umips_output_load_store_pair): New function.
32260 (umips_movep_target_p) New function.
32261 (mips_prepare_pch_save): Add microMIPS support.
32262 * config/mips/mips.h (TARGET_COMPRESSION): New.
32263 (TARGET_CPU_CPP_BUILTINS): Update macro
32264 to use new compression flags and to support microMIPS.
32265 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
32266 (MIPS_ARCH_FLOAT_SPEC): Likewise.
32267 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
32268 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
32269 (ASM_SPEC): Support mmicromips and mno-micromips.
32270 (M16STORE_REG_P): New macro.
32271 (MIPS_CALL): Support TARGET_MICROMIPS.
32272 (MICROMIPS_J): New macro.
32273 (mips_base_mips16): Rename this...
32274 (mips_base_compression_flags): ...to this.
32275 (UMIPS_12BIT_OFFSET_P): New macro.
32276 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
32277 (MULTILIB_DIRNAMES): Likewise.
32278 2013-03-20 Richard Biener <rguenther@suse.de>
32280 PR tree-optimization/56661
32281 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
32282 the result does not have to be distinct.
32284 2013-03-20 Richard Biener <rguenther@suse.de>
32286 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
32289 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32290 Steven Bosscher <steven@gcc.gnu.org>
32292 PR rtl-optimization/56605
32293 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
32295 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
32298 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
32299 that require movd instead of movq.
32301 2013-03-20 Richard Biener <rguenther@suse.de>
32303 * tree-ssa-structalias.c (struct variable_info): Add pointer
32304 to the first field of an aggregate with sub-vars. Make
32305 this and the pointer to the next subfield its ID.
32306 (vi_next): New function.
32307 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
32308 storedanything_id, integer_id): Increment by one.
32309 (new_var_info, get_call_vi, lookup_call_clobber_vi,
32310 get_call_clobber_vi): Adjust.
32311 (solution_set_expand): Simplify and speedup.
32312 (solution_set_add): Inline into ...
32313 (set_union_with_increment): ... this. Adjust accordingly.
32314 (do_sd_constraint): Likewise.
32315 (do_ds_constraint): Likewise.
32316 (do_complex_constraint): Simplify.
32317 (build_pred_graph): Adjust.
32318 (solve_graph): Likewise. Simplify and speedup.
32319 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
32320 get_constraint_for_component_ref, get_constraint_for_1,
32321 first_vi_for_offset, first_or_preceding_vi_for_offset,
32322 create_function_info_for, create_variable_info_for_1,
32323 create_variable_info_for, intra_create_variable_infos): Adjust.
32324 (init_base_vars): Push NULL for ID zero.
32325 (compute_points_to_sets): Adjust.
32327 2013-03-20 Richard Biener <rguenther@suse.de>
32329 * cfgloop.c (verify_loop_structure): Streamline and avoid
32330 ICEing on corrupt loop tree.
32331 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
32334 2013-03-20 Richard Biener <rguenther@suse.de>
32336 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
32337 check whether an SSA update is needed.
32339 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
32341 * config/mips/constraints.md (T): Rename to...
32345 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
32346 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
32348 2013-03-19 Ian Bolton <ian.bolton@arm.com>
32350 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
32351 (*subsi3_carryin_uxtw): Likewise.
32353 2013-03-19 Ian Bolton <ian.bolton@arm.com>
32355 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
32356 (*rorsi3_insn_uxtw): Likewise.
32358 2013-03-19 Ian Bolton <ian.bolton@arm.com>
32360 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
32361 (*extrsi5_insn_uxtw): Likewise.
32363 2013-03-19 Richard Biener <rguenther@suse.de>
32365 PR tree-optimization/56273
32366 * passes.c (init_optimization_passes): Move second VRP after DOM.
32368 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
32370 * config/i386/i386.md (*movti_internal): Merge from
32371 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
32372 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
32373 nox64 isa attributes.
32375 2013-03-18 Richard Biener <rguenther@suse.de>
32377 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
32379 (merge_node_constraints): Likewise.
32380 (build_succ_graph): Likewise.
32381 (valid_graph_edge): Inline into single caller.
32382 (unify_nodes): Likewise. Use bitmap_set_bit return value
32384 (scc_visit): Fix formatting and variable use.
32385 (do_sd_constraint): Use gcc_checking_assert.
32386 (do_ds_constraint): Likewise.
32387 (do_complex_constraint): Likewise.
32388 (condense_visit): Likewise. Cleanup.
32389 (dump_pred_graph): New function.
32390 (perform_var_substitution): Dump the pred-graph before
32391 variable substitution.
32392 (find_equivalent_node): Use gcc_checking_assert.
32393 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
32395 2013-03-18 Richard Biener <rguenther@suse.de>
32397 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
32398 Remove cond_expr_stmt_list argument and do not gimplify the
32400 (vect_loop_versioning): Adjust.
32401 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
32402 Cleanup to use less temporaries.
32403 (vect_create_data_ref_ptr): Cleanup.
32405 2013-03-18 Jakub Jelinek <jakub@redhat.com>
32407 PR tree-optimization/56635
32408 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
32409 require types_compatible_p types.
32411 2013-03-18 Nick Clifton <nickc@redhat.com>
32413 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
32414 spurious backslash.
32416 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
32417 Add missing line to comment describing function.
32419 2013-03-18 Richard Biener <rguenther@suse.de>
32421 PR tree-optimization/56210
32422 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
32423 Handle string / character search functions.
32424 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
32426 2013-03-18 Richard Biener <rguenther@suse.de>
32428 PR middle-end/56483
32429 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
32430 and implement properly.
32431 * gimple.h (gimple_cond_single_var_p): Remove.
32433 2013-03-18 Richard Biener <rguenther@suse.de>
32435 * tree-data-ref.h (find_data_references_in_loop): Declare.
32436 * tree-data-ref.c (get_references_in_stmt): Use a stack
32437 vector pre-allocated in the callers.
32438 (find_data_references_in_stmt): Adjust.
32439 (graphite_find_data_references_in_stmt): Likewise.
32440 (create_rdg_vertices): Likewise.
32441 (find_data_references_in_loop): Export.
32442 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
32443 Compute dependences here...
32444 (vect_analyze_data_refs): ...not here. When we encounter
32445 a non-vectorizable data reference in basic-block vectorization
32446 truncate the data reference vector. Do not bother to
32447 fixup data-dependence information for gather loads.
32448 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
32449 of data references, as reported.
32451 2013-03-18 Richard Biener <rguenther@suse.de>
32453 PR tree-optimization/3713
32454 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
32455 has_constants and expr.
32456 (stmt_has_constants): Properly valueize SSA names when deciding
32457 whether the stmt has constants.
32459 2013-03-18 Richard Biener <rguenther@suse.de>
32461 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
32462 whole function when there is nothing to do.
32463 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
32464 * tree-vectorizer.c (vectorize_loops): Update virtual and
32465 loop-closed SSA once.
32466 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
32468 2013-03-18 Richard Biener <rguenther@suse.de>
32470 PR middle-end/56113
32471 * domwalk.c (bb_postorder): New global static.
32472 (cmp_bb_postorder): New function.
32473 (walk_dominator_tree): Replace scheme imposing an order for
32474 visiting dominator sons by one sorting them at the time they
32475 are pushed on the stack.
32477 2013-03-18 Richard Biener <rguenther@suse.de>
32479 PR tree-optimization/39326
32480 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
32481 (struct mem_ref): Replace mem member with ao_ref typed member.
32482 (MEM_ANALYZABLE): Adjust.
32483 (memref_eq): Likewise.
32484 (mem_ref_alloc): Likewise.
32485 (gather_mem_refs_stmt): Likewise.
32486 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
32487 (execute_sm_if_changed_flag_set): Adjust.
32488 (execute_sm): Likewise.
32489 (ref_always_accessed_p): Likewise.
32490 (refs_independent_p): Likewise.
32491 (can_sm_ref_p): Likewise.
32493 2013-03-18 Jakub Jelinek <jakub@redhat.com>
32496 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
32497 return 1 even for !unsignedp.
32499 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
32501 * config/i386/i386.md (isa): Add x64 and nox64.
32502 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
32503 (*pushtf): Enable *roF alternative for x64 isa only.
32504 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
32505 mode attribute of integer alternatives to DImode for TARGET_64BIT.
32506 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
32507 (*movtf_internal): Merge from *movtf_internal_rex64 and
32508 *movtf_internal_sse. Use x64 and nox64 isa attributes.
32509 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
32510 nox64 isa attributes.
32511 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
32512 nox64 isa attributes.
32513 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
32515 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
32517 * config/alpha/alpha.c (TARGET_LRA_P): New define.
32519 2013-03-17 Jakub Jelinek <jakub@redhat.com>
32522 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
32523 class names. Remove trailing comma after "ALL_REGS".
32525 2013-03-16 Jan Hubicka <jh@suse.cz>
32527 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
32528 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
32529 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
32530 of cgraph_get_create_node.
32531 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
32533 2013-03-16 Jason Merrill <jason@redhat.com>
32536 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
32537 with DW_AT_default_value.
32539 2013-03-16 Jakub Jelinek <jakub@redhat.com>
32541 * BASE-VER: Set to 4.9.0.
32543 2013-03-14 Andi Kleen <ak@linux.intel.com>
32546 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
32547 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
32548 Document _x* TSX intrinsics.
32550 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
32551 David Holsgrove <david.holsgrove@xilinx.com>
32553 * configure.ac: Add MicroBlaze TLS support detection.
32554 * configure: Regenerate.
32555 * config/microblaze/microblaze-protos.h
32556 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
32557 symbol_mentioned_p, label_mentioned_p): Add prototypes.
32558 * config/microblaze/microblaze.c (microblaze_address_type): Add
32559 ADDRESS_TLS and tls_reloc address types.
32560 (microblaze_address_info): Add tls_reloc.
32561 (TARGET_HAVE_TLS): Define.
32562 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
32563 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
32564 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
32565 load_tls_operand, microblaze_call_tls_get_addr,
32566 microblaze_legitimize_tls_address): New functions.
32567 (microblaze_classify_unspec): Handle UNSPEC_TLS.
32568 (get_base_reg): Use microblaze_tls_symbol_p.
32569 (microblaze_classify_address): Handle TLS.
32570 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
32571 label_mentioned_p and microblaze_tls_referenced_p.
32572 (microblaze_legitimize_address): Handle TLS.
32573 (microblaze_address_insns): Handle ADDRESS_TLS.
32574 (pic_address_needs_scratch): Handle TLS.
32575 (print_operand_address): Handle TLS.
32576 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
32577 (microblaze_expand_move): Handle TLS.
32578 (microblaze_legitimate_constant_p): Check
32579 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
32580 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
32581 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
32582 (PIC_OFFSET_TABLE_REGNUM): Set.
32583 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
32584 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
32585 (addsi3, movsi_internal2, movdf_internal): Update constraints
32586 * config/microblaze/predicates.md (arith_plus_operand): Define
32587 (move_operand): Redefine as move_src_operand,
32588 check microblaze_tls_referenced_p.
32590 2013-03-14 Ian Bolton <ian.bolton@arm.com>
32592 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
32593 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
32595 2013-03-14 Ian Bolton <ian.bolton@arm.com>
32597 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
32600 2013-03-14 Jakub Jelinek <jakub@redhat.com>
32602 PR tree-optimization/53265
32603 * common.opt (Waggressive-loop-optimizations): New option.
32604 * tree-ssa-loop-niter.c: Include tree-pass.h.
32605 (do_warn_aggressive_loop_optimizations): New function.
32606 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
32607 if number_of_latch_executions returned constant.
32608 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
32609 early. If number_of_latch_executions returned constant, set
32610 nb_iterations_upper_bound back to it.
32611 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
32613 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
32614 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
32616 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
32617 (MULTILIB_OSDIRNAMES): Set.
32618 * genmultilib: If defaultosdirname doesn't start with :: , set
32619 defaultosdirname2 instead, clear it and emit two . multilib_raw
32620 entries instead of just one.
32622 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
32624 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
32625 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
32626 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
32627 (SUBTARGET_OVERRIDE_OPTIONS): New.
32629 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
32632 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
32633 (musermode): Convert to Var(TARGET_USERMODE).
32634 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
32635 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
32636 * config/sh/sh.c (sh_option_override): Use
32637 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
32638 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
32640 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
32642 (udivsi3_i4_single, divsi3_i4_single): Use
32643 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
32645 2013-03-13 Dave Korn <dave.korn.cygwin@gmail.com>
32647 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
32650 2013-03-13 Richard Biener <rguenther@suse.de>
32652 PR tree-optimization/56608
32653 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
32654 calls when vectorizing basic-blocks.
32656 2013-03-13 Jakub Jelinek <jakub@redhat.com>
32659 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
32662 2013-03-12 Jakub Jelinek <jakub@redhat.com>
32664 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
32666 2013-03-11 Jan Hubicka <jh@suse.cz>
32669 * lto-streamer-out.c (output_symbol_p): Skip references from
32670 constructors of external variables.
32672 2013-03-11 Jan Hubicka <jh@suse.cz>
32674 PR middle-end/56571
32675 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
32677 * emit-rtl.c (verify_rtx_sharing): Likewise.
32678 (copy_insn_1): Likewise.
32679 * rtl.c (copy_rtx): Likewise.
32681 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
32684 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
32685 output_operand_lossage message.
32687 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
32690 * arm.c (shift_op): Validate RTL pattern on the fly.
32691 (arm_print_operand, case 'S'): Don't use shift_operator to validate
32694 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
32697 * config/pa/pa.md (call_value): Check for calls to powf and direct to
32698 new call patterns that clobber %fr12.
32699 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
32700 split and postreload patterns.
32701 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
32702 registers %fr12 and %fr12R as call used.
32704 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
32706 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
32707 (canon_address, record_store, replace_read, check_mem_read_rtx,
32708 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
32709 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
32710 rest_of_handle_dse): Likewise.
32712 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
32714 PR middle-end/56524
32715 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
32717 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
32718 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
32719 (save_optabs_if_changed): Replace with...
32720 (init_tree_optimization_optabs): ...this.
32721 * optabs.c (save_optabs_if_changed): Rename to...
32722 (init_tree_optimization_optabs): ...this. Take the optimization node
32723 as argument. Do nothing if the base optabs are already correct.
32724 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
32725 to recompute optabs.
32726 * function.h (function): Remove optabs field.
32727 * function.c (invoke_set_current_function_hook): Call
32728 init_tree_optimization_optabs. Use the result to initialize
32731 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
32733 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
32734 if GTMA_HAS_NO_INSTRUMENTATION.
32735 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
32736 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
32737 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
32738 * gimple-pretty-print.c (dump_gimple_transaction): Handle
32739 GTMA_HAS_NO_INSTRUMENTATION.
32741 2013-03-08 Jakub Jelinek <jakub@redhat.com>
32743 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
32746 2013-03-08 Marek Polacek <polacek@redhat.com>
32747 Jakub Jelinek <jakub@redhat.com>
32749 PR tree-optimization/56478
32750 * predict.c (is_comparison_with_loop_invariant_p): Change the
32751 type of loop_step to tree.
32752 (predict_loops): Adjust.
32753 (predict_iv_comparison): Perform the computations on double_ints.
32755 2013-03-08 Richard Biener <rguenther@suse.de>
32757 PR tree-optimization/56570
32758 * tree-cfg.c (verify_expr_location_1): Verify locations for
32760 * tree-sra.c (create_access_replacement): Strip locations
32761 from DECL_DEBUG_EXPRs.
32763 2013-03-08 Richard Biener <rguenther@suse.de>
32765 * tree-inline.c (expand_call_inline): Do not associate
32766 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
32767 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
32769 2013-03-08 Richard Biener <rguenther@suse.de>
32771 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
32772 or block changes with -Og. Fix for location / block encoding
32773 changes and PHI arguments with locations.
32775 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
32777 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
32779 (struct output_info): Likewise.
32780 (register_overhead): Remove bad gcc_assert.
32781 (bitmap_find_bit): If there is only a single bitmap element, do not
32782 count a miss as a search.
32783 (print_statistics): Update for counter type changes.
32784 (dump_bitmap_statistics): Likewise. Print headers such that they
32785 are properly lined up with the printed counters.
32787 2013-03-07 Jakub Jelinek <jakub@redhat.com>
32789 PR tree-optimization/56559
32790 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
32791 check that it has only a single use.
32793 2013-03-07 Richard Biener <rguenther@suse.de>
32795 * doc/invoke.texi (fwhole-program): Discourage use in combination
32798 2013-03-06 Jakub Jelinek <jakub@redhat.com>
32800 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
32802 PR tree-optimization/56539
32803 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
32804 instead of GSI_CONTINUE_LINKING as last argument to
32805 force_gimple_operand_gsi. Adjust function comment.
32807 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
32810 PR middle-end/56548
32811 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
32812 promoted mode, convert the result back to the original mode.
32814 2013-03-06 Richard Biener <rguenther@suse.de>
32816 PR middle-end/56294
32817 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
32818 (insert_updated_phi_nodes_compare_uids): New function.
32819 (update_ssa): Sort symbols_to_rename after UID before
32820 traversing it to insert PHI nodes.
32822 2013-03-06 Richard Biener <rguenther@suse.de>
32824 PR middle-end/50494
32825 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
32826 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
32829 2013-02-13 Richard Biener <rguenther@suse.de>
32832 * varasm.c (output_constant_def_1): Get the decl representing
32833 the constant as argument.
32834 (output_constant_def): Wrap output_constant_def_1.
32835 (make_decl_rtl): Use output_constant_def_1 with the decl
32836 representing the constant.
32837 (build_constant_desc): Optionally re-use a decl already
32838 representing the constant.
32839 (tree_output_constant_def): Adjust.
32841 2013-03-06 Joey Ye <joey.ye@arm.com>
32844 * gcc.c (convert_white_space): New function.
32845 (main): Handles white space in function name.
32847 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
32850 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
32851 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
32852 to SH_DIV_CALL_TABLE for TARGET_SH2.
32853 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
32855 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
32856 call-table options.
32858 2013-03-05 Sterling Augustine <saugustine@google.com>
32859 Cary Coutant <ccoutant@google.com>
32862 * dwarf2out.c (resolve_addr): Don't call
32863 remove_loc_list_addr_table_entries a second time for the same
32866 2013-03-05 Jakub Jelinek <jakub@redhat.com>
32869 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
32870 (avoid_complex_debug_insns): New function.
32871 (expand_debug_locations): Call it.
32873 PR rtl-optimization/56484
32874 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
32875 lifetimes of hard registers on small register class machines.
32877 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
32879 * config/microblaze/microblaze-protos.h: Rename
32880 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
32881 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
32883 (microblaze_fast_interrupt_function_p): New function.
32884 (microblaze_is_interrupt_handler): Rename to
32885 microblaze_is_interrupt_variant and add fast_interrupt check.
32886 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
32887 (save_restore_insns): Likewise.
32888 (compute_frame_size): Likewise.
32889 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
32890 (microblaze_globalize_label): Likewise.
32891 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
32892 * config/microblaze/microblaze.md: Use wrapper
32893 microblaze_is_interrupt_variant.
32895 2013-03-05 Kai Tietz <ktietz@redhat.com>
32897 * sdbout.c (sdbout_one_type): Switch to current function's section
32898 supporting cold/hot.
32900 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
32902 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
32905 2013-03-05 Jakub Jelinek <jakub@redhat.com>
32907 PR middle-end/56461
32908 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
32909 if VALGRIND_GET_VBITS is defined, temporarily make object
32910 memory all defined, and restore previous valgrind addressability
32911 and definability afterwards. Free this_object at the end.
32913 PR middle-end/56461
32914 * lra.c (lra): Call lra_clear_live_ranges if live_p,
32915 right before calling lra_create_live_ranges, also call it
32916 when clearing live_p. Only call lra_clear_live_ranges
32917 at the end if live_p.
32919 PR middle-end/56461
32920 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
32922 2013-03-05 Richard Biener <rguenther@suse.de>
32924 PR tree-optimization/56521
32925 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
32928 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
32931 * except.h (remove_unreachable_eh_regions): New prototype.
32932 * except.c (remove_eh_handler_splicer): New function, split out
32933 of remove_eh_handler.
32934 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
32935 warning about running it on many EH regions one at a time.
32936 (remove_unreachable_eh_regions_worker): New function, walk the
32937 EH tree in depth-first order and remove non-marked regions.
32938 (remove_unreachable_eh_regions): New function.
32939 * tree-eh.c (mark_reachable_handlers): New function, split out
32940 from remove_unreachable_handlers.
32941 (remove_unreachable_handlers): Use mark_reachable_handlers and
32942 remove_unreachable_eh_regions.
32943 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
32944 and remove_unreachable_eh_regions.
32946 2013-03-05 Richard Biener <rguenther@suse.de>
32948 PR middle-end/56525
32949 * loop-init.c (fix_loop_structure): Remove loops in two stages,
32950 not freeing them until the end.
32952 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32954 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
32956 2013-03-05 Richard Biener <rguenther@suse.de>
32958 PR tree-optimization/56270
32959 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
32960 of loads after scheduling an SLP instance.
32962 2013-03-05 Jakub Jelinek <jakub@redhat.com>
32964 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
32966 (check_gcc_parallelize): Run guality.exp as a separate job from
32967 vect.exp with unsorted.exp and $(dg_target_exps) separately from
32968 struct-layout-1.exp with stackalign.exp.
32970 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
32972 PR middle-end/56461
32973 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
32974 load_index sbitmap even if some bit in it isn't set.
32976 PR middle-end/56461
32977 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
32978 (discover_iteration_bound_by_body_walk): Change queues to
32979 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
32980 spelling in comment. Call safe_push on queues[bound_index] directly.
32981 Release queues[queue_index] in every iteration unconditionally.
32982 Release bounds vector.
32984 PR middle-end/56461
32985 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
32986 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
32987 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
32990 2013-03-05 Richard Biener <rguenther@suse.de>
32993 * tree-inline.c (remap_blocks_to_null): New function.
32994 (expand_call_inline): When expanding a call stmt without
32995 an associated block inline remap all callee blocks to NULL.
32997 2013-03-05 Jakub Jelinek <jakub@redhat.com>
32999 PR rtl-optimization/56494
33000 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
33001 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
33002 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
33004 PR middle-end/56461
33005 * sel-sched-ir.c (free_sched_pools): Release
33006 succs_info_pool.stack[succs_info_pool.max_top] vectors too
33007 if succs_info_pool.max_top isn't -1.
33010 * opts.c (opts_obstack, opts_concat): Moved to...
33011 * opts-common.c (opts_obstack, opts_concat): ... here.
33013 2013-03-04 Jakub Jelinek <jakub@redhat.com>
33015 PR middle-end/56461
33016 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
33018 2013-03-04 Martin Jambor <mjambor@suse.cz>
33020 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
33021 all appropriate places.
33023 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
33025 PR tree-optimization/56424
33026 * ipa-split.c (split_function): Do not set the RSO flag if result is
33027 not by reference and its type is a register type.
33029 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
33031 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
33032 (microblaze_legitimate_pic_operand): Likewise
33033 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
33034 new function microblaze_legitimate_pic_operand
33035 * config/microblaze/microblaze-protos.h
33036 (microblaze_legitimate_pic_operand): Declare.
33038 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
33040 * config/microblaze/predicates.md (call_insn_simple_operand):
33041 New predicate for supported rtx code types.
33042 * config/microblaze/microblaze.md (call_internal1): Use
33043 call_insn_simple_operand predicate.
33045 2013-03-04 Jakub Jelinek <jakub@redhat.com>
33047 PR middle-end/56461
33048 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
33049 partitions.ordered_remove.
33051 PR middle-end/56461
33052 * tree-vect-stmts.c (vectorizable_conversion): Don't call
33053 vec_oprnds0.create (1) for modifier == NONE.
33055 PR middle-end/56461
33056 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
33057 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
33058 vec_oprnds1 right before pushing anything to it for
33061 PR middle-end/56461
33062 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
33063 set nbbs to 0 instead of having separate code path.
33064 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
33065 instead of false as last argument if returning NULL.
33067 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
33069 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
33070 the attribute is now called "target" instead of "option".
33071 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
33072 * doc/tm.texi.in (Target Attributes): Likewise document the correct
33073 attribute/pragma name for TARGET_OPTION_VALID_P and
33074 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
33075 * doc/tm.texi: Regenerated.
33077 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
33079 * config/microblaze/microblaze.c:
33080 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
33081 * config/microblaze/microblaze.h: Add -mxl-reorder to
33083 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
33084 instructions emitted if TARGET_REORDER.
33085 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
33086 or 0 for -m/-mno case, but initialises as 2 to detect default use case
33089 2013-03-01 Xinliang David Li <davidxl@google.com>
33091 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
33094 2013-03-01 Jakub Jelinek <jakub@redhat.com>
33096 PR middle-end/56461
33097 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
33098 vector even when returning true. Fix up function comment formatting.
33100 PR middle-end/56461
33101 * ira-build.c (ira_loop_nodes_count): New variable.
33102 (create_loop_tree_nodes): Initialize it.
33103 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
33105 PR middle-end/56461
33106 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
33107 method on dr_chain and result_chain.
33108 * tree-vect-stmts.c (vectorizable_store): Only call
33109 result_chain.create if j == 0.
33111 PR middle-end/56461
33112 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
33113 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
33114 before overwriting it.
33116 2013-03-01 Tobias Burnus <burnus@net-b.de>
33118 * doc/extended.texi (C Extensions): Change order in @menu
33120 (Other MIPS Built-in Functions): Move last MIPS entry before
33121 "picoChip Built-in Functions".
33122 (SH Built-in Functions): Move after RX Built-in Functions.
33123 * doc/gcc.texi (Introduction): Change order in @menu
33125 * doc/md.texi (Constraints): Ditto.
33126 * gty.texi (Type Information): Ditto.
33127 (User-provided marking routines for template types): Make
33129 * doc/invoke.texi (AArch64 Options): Move before
33130 "Adapteva Epiphany Options".
33132 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
33133 Jakub Jelinek <jakub@redhat.com>
33136 * asan.c (gate_asan): Lookup no_sanitize_address instead of
33137 no_address_safety_analysis attribute.
33138 * doc/extend.texi (no_address_safety_attribute): Rename to
33139 no_sanitize_address attribute, mention no_address_safety_analysis
33140 attribute as deprecated alias.
33142 2013-02-28 Jakub Jelinek <jakub@redhat.com>
33144 PR middle-end/56461
33145 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
33146 type to vec<vec<tree> > *.
33147 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
33148 to be vec<tree> instead of vec<tree> *, set vec_defs
33149 to vNULL and call vec_defs.create (number_of_vects), adjust other
33151 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
33152 vectorizable_condition): Adjust vect_get_slp_defs callers.
33154 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
33156 * config/aarch64/aarch64.c
33157 (aarch64_float_const_representable): Remove unused variable.
33159 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
33161 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
33163 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
33165 * config/aarch64/aarch64-builtins.c
33166 (aarch64_init_simd_builtins): Make static.
33168 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
33170 * config/aarch64/aarch64.c
33171 (aarch64_simd_make_constant): Make static.
33173 2013-02-28 Martin Jambor <mjambor@suse.cz>
33175 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
33176 with no initialization to the RHS of debug statements.
33178 2013-02-28 Martin Jambor <mjambor@suse.cz>
33180 PR tree-optimization/56294
33181 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
33183 (get_access_replacement): Do not call create_access_replacement.
33184 Assert a replacement exists.
33185 (get_repl_default_def_ssa_name): Create the replacement declaration
33188 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33190 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
33191 final_end_function.
33193 2013-02-28 Marek Polacek <polacek@redhat.com>
33195 PR rtl-optimization/56466
33196 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
33197 if we're changing a loop.
33198 (peel_loops_completely): Likewise.
33200 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
33203 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
33205 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
33208 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
33209 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
33210 INTX_FTYPE_FX, FX_FTYPE_INTX.
33211 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
33213 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
33215 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
33216 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
33217 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
33218 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
33219 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
33220 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
33221 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
33222 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
33223 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
33224 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
33225 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
33226 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
33227 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
33228 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
33229 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
33230 (avrxmega6): Increase max flash segments from 5 to 6.
33231 * config/avr/t-multilib: Regenerate.
33232 * config/avr/avr-tables.opt: Regenerate.
33233 * doc/avr-mmcu.texi: Regenerate.
33235 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
33237 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
33238 (avr_device_to_arch): Rename to avr_device_to_ld.
33239 (avr_device_to_as): New prototype.
33240 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
33241 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
33242 * config/avr/driver-avr.c (avr_device_to_as): New.
33243 (avr_device_to_arch): Rename to avr_device_to_ld.
33245 2013-02-27 Jakub Jelinek <jakub@redhat.com>
33247 PR middle-end/56461
33248 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
33249 method on dr_chain and result_chain.
33251 PR middle-end/56461
33252 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
33253 pointer_set_destroy on not_executed_last_iteration.
33255 PR middle-end/56461
33256 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
33258 PR middle-end/56461
33259 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
33260 FOR_EACH_DEFINED_FUNCTION when freeing state.
33262 PR middle-end/56461
33263 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
33265 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
33268 PR middle-end/56461
33269 * ipa-cp.c (decide_whether_version_node): Call vec_free on
33270 known_aggs[i].items and release known_aggs vector.
33272 PR middle-end/56461
33273 * ipa-reference.c (propagate): Free node_info even for alias nodes.
33275 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
33277 * config/microblaze/microblaze.c (microblaze_emit_compare):
33278 Use xor for EQ/NE comparisions.
33279 * config/microblaze/microblaze.md (cstoresf4): Add constraints
33280 (cbranchsf4): Adjust operator to comparison_operator.
33282 2013-02-27 Jakub Jelinek <jakub@redhat.com>
33284 PR middle-end/56461
33285 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
33287 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
33288 vec_safe_push, always update *slot.
33289 (redirect_edge_var_map_clear): Use vec_free.
33290 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
33291 (free_var_map_entry): Use vec_free.
33292 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
33293 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
33295 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
33297 PR middle-end/45472
33298 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
33299 when the may_trap_p bit of the exprs being merged differs.
33300 Reorder tests for speculativeness in the logical and operator.
33302 2013-02-27 Jakub Jelinek <jakub@redhat.com>
33304 * incpath.c (add_standard_paths): Use reconcat instead of concat
33305 where appropriate and avoid leaking memory.
33307 * opts.h: Include obstack.h.
33308 (opts_concat): New prototype.
33309 (opts_obstack): New declaration.
33310 * opts.c (opts_concat): New function.
33311 (opts_obstack): New variable.
33312 (init_options_struct): Call gcc_init_obstack on opts_obstack.
33313 (finish_options): Use opts_concat instead of concat
33314 and XOBNEWVEC instead of XNEWVEC.
33315 * opts-common.c (generate_canonical_option, decode_cmdline_option,
33316 generate_option): Likewise.
33317 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
33318 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
33321 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
33322 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
33324 2013-02-26 Jakub Jelinek <jakub@redhat.com>
33326 PR middle-end/56461
33327 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
33329 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
33331 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
33332 (arm_block_move_unaligned_straight): Likewise.
33333 (arm_adjust_block_mem): Likewise.
33335 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
33338 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
33339 temp, cond and label.
33340 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
33343 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
33344 * config/c6x/c6x.h (dbx_register_map): Update declaration.
33347 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
33348 of prologue/epilogue functions.
33351 * config/tilegx/tilegx.c (tilegx_expand_prologue):
33352 Remove unused variable cfa_offset.
33353 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
33356 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
33357 type promotion to unsigned.
33360 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
33361 for HOST_WIDE_INT of 32 bit / same size as int.
33362 (arm_block_move_unaligned_straight): Likewise.
33363 (arm_adjust_block_mem): Likewise.
33366 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
33369 2013-02-26 Marek Polacek <polacek@redhat.com>
33371 PR tree-optimization/56426
33372 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
33374 2013-02-26 Richard Biener <rguenther@suse.de>
33377 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
33378 unused variable loops.
33380 2013-02-26 Jakub Jelinek <jakub@redhat.com>
33382 PR tree-optimization/56448
33383 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
33384 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
33385 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
33386 later operands of the references, or even first operand for
33387 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
33389 PR tree-optimization/56443
33390 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
33391 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
33392 to type_for_mode langhook.
33394 2013-02-25 Matt Turner <mattst88@gmail.com>
33396 * doc/invoke.texi: Document r4700.
33398 2013-02-25 Richard Biener <rguenther@suse.de>
33400 PR tree-optimization/56175
33401 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
33403 (simplify_bitwise_binary): ... here. Also guard the conversion
33404 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
33406 2013-02-25 Catherine Moore <clm@codesourcery.com>
33409 2013-02-24 Catherine Moore <clm@codesourcery.com>
33410 Maciej W. Rozycki <macro@codesourcery.com>
33411 Tom de Vries <tom@codesourcery.com>
33412 Nathan Sidwell <nathan@codesourcery.com>
33413 Iain Sandoe <iain@codesourcery.com>
33414 Nathan Froyd <froydnj@codesourcery.com>
33415 Chao-ying Fu <fu@mips.com>
33417 * doc/extend.texi: (micromips, nomicromips, nocompression):
33418 Document new function attributes.
33419 * doc/invoke.texi (minterlink-compressed, mmicromips,
33420 m14k, m14ke, m14kec): Document new options.
33421 (minterlink-mips16): Update documentation.
33422 * doc/md.texi (ZC, ZD): Document new constraints.
33423 * configure.ac (gcc_cv_as_micromips): Check if linker
33424 supports the .set micromips directive.
33425 * configure: Regenerate.
33426 * config.in: Regenerate.
33427 * config/mips/mips-tables.opt: Regenerate.
33428 * config/mips/micromips.md: New file.
33429 * constraints.md (ZC, AD): New constraints.
33430 * config/mips/predicates.md (movep_src_register): New predicate.
33431 (movep_src_operand): New predicate.
33432 (non_volatile_mem_operand): New predicate.
33433 * config/mips/mips.md (multimem): New type.
33434 (length): Differentiate between 17-bit and 18-bit branch offsets.
33435 (MOVEP1, MOVEP2): New mode iterator.
33436 (mov_<load>l): Use ZC constraint.
33437 (mov_<load>r): Likewise.
33438 (mov_<store>l): Likewise.
33439 (mov_<store>r): Likewise.
33440 (*branch_equality<mode>_inverted): Add microMIPS support.
33441 (*branch_equality<mode>): Likewise.
33442 (*jump_absolute): Likewise.
33443 (indirect_jump_<mode>): Likewise.
33444 (tablejump_<mode>): Likewise.
33445 (<optab>_internal): Likewise.
33446 (sibcall_internal): Likewise.
33447 (sibcall_value_internal): Likewise.
33448 (prefetch): Use constraint ZD.
33449 * config/mips/mips.opt (minterlink-compressed): New option.
33450 (minterlink-mips16): Now an alias for minterlink-compressed.
33451 (mmicromips): New option.
33452 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
33453 (compare_and_swap_12): Likewise.
33454 (sync_add<mode>): Likewise.
33455 (sync_<optab>_12): Likewise.
33456 (sync_old_<optab>_12): Likewise.
33457 (sync_new_<optab>_12): Likewise.
33458 (sync_nand_12): Likewise.
33459 (sync_old_nand_12): Likewise.
33460 (sync_new_nand_12): Likewise.
33461 (sync_sub<mode>): Likewise.
33462 (sync_old_add<mode>): Likewise.
33463 (sync_old_sub<mode>): Likewise.
33464 (sync_new_add<mode>): Likewise.
33465 (sync_new_sub<mode>): Likewise.
33466 (sync_<optab><mode>): Likewise.
33467 (sync_old_<optab><mode>): Likewise.
33468 (sync_new_<optab><mode>): Likewise.
33469 (sync_nand<mode>): Likewise.
33470 (sync_old_nand<mode>): Likewise.
33471 (sync_new_nand<mode>): Likewise.
33472 (sync_lock_test_and_set<mode>): Likewise.
33473 (test_and_set_12): Likewise.
33474 (atomic_compare_and_swap<mode>): Likewise.
33475 (atomic_exchange<mode>_llsc): Likewise.
33476 (atomic_fetch_add<mode>_llsc): Likewise.
33477 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
33478 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
33479 (umips_save_restore_pattern_p): Likewise.
33480 (umips_load_store_pair_p): Likewise.
33481 (umips_output_load_store_pair): Likewise.
33482 (umips_movep_target_p): Likewise.
33483 (umips_12bit_offset_address_p): Likewise.
33484 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
33485 (mips_base_mips16): Rename this...
33486 (mips_base_compression_flags): ...to this. Update all uses.
33487 (mips_attribute_table): Add micromips, nomicromips and nocompression.
33488 (mips_mips16_decl_p): Delete.
33489 (mips_nomips16_decl_p): Delete.
33490 (mips_get_compress_on_flags): New function.
33491 (mips_get_compress_off_flags): New function.
33492 (mips_get_compress_mode): New function.
33493 (mips_get_compress_on_name): New function.
33494 (mips_get_compress_off_name): New function.
33495 (mips_insert_attributes): Support multiple compression types.
33496 (mips_merge_decl_attributes): Likewise.
33497 (umips_12bit_offset_address_p): New function.
33498 (mips_start_function_definition): Emit .set micromips directive.
33499 (mips_call_may_need_jalx_p): New function.
33500 (mips_function_ok_for_sibcall): Add microMIPS support.
33501 (mips_print_operand_punctuation): Support short delay slots and
33503 (umips_swm_mask, umips_swm_encoding): New.
33504 (umips_build_save_restore): New function.
33505 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
33506 (was_mips16_p): Remove.
33507 (old_compression_mode): New.
33508 (mips_set_compression_mode): New function.
33509 (mips_set_current_function): Add microMIPS support.
33510 (mips_option_override): Likewise.
33511 (umips_save_restore_pattern_p): New function.
33512 (umips_output_save_restore): New function.
33513 (umips_load_store_pair_p_1): New function.
33514 (umips_load_store_pair_p): New function.
33515 (umips_output_load_store_pair_1): New function.
33516 (umips_output_load_store_pair): New function.
33517 (umips_movep_target_p) New function.
33518 (mips_prepare_pch_save): Add microMIPS support.
33519 * config/mips/mips.h (TARGET_COMPRESSION): New.
33520 (TARGET_CPU_CPP_BUILTINS): Update macro
33521 to use new compression flags and to support microMIPS.
33522 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
33523 (MIPS_ARCH_FLOAT_SPEC): Likewise.
33524 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
33525 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
33526 (ASM_SPEC): Support mmicromips and mno-micromips.
33527 (M16STORE_REG_P): New macro.
33528 (MIPS_CALL): Support TARGET_MICROMIPS.
33529 (MICROMIPS_J): New macro.
33530 (mips_base_mips16): Rename this...
33531 (mips_base_compression_flags): ...to this.
33532 (UMIPS_12BIT_OFFSET_P): New macro.
33533 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
33534 (MULTILIB_DIRNAMES): Likewise.
33536 2013-02-25 Tom de Vries <tom@codesourcery.com>
33538 PR rtl-optimization/56131
33539 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
33540 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
33541 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
33543 2013-02-25 Tobias Burnus <burnus@net-b.de>
33545 * doc/invoke.texi (-fsanitize=): Move from optimization
33546 to debugging options.
33548 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
33550 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
33552 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
33553 Alexander Monakov <amonakov@ispras.ru>
33555 PR middle-end/56077
33556 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
33557 flush pending lists also on non-jumps. Adjust comment.
33559 2013-02-24 Catherine Moore <clm@codesourcery.com>
33560 Maciej W. Rozycki <macro@codesourcery.com>
33561 Tom de Vries <tom@codesourcery.com>
33562 Nathan Sidwell <nathan@codesourcery.com>
33563 Iain Sandoe <iain@codesourcery.com>
33564 Nathan Froyd <froydnj@codesourcery.com>
33565 Chao-ying Fu <fu@mips.com>
33567 * doc/extend.texi: (micromips, nomicromips, nocompression):
33568 Document new function attributes.
33569 * doc/invoke.texi (minterlink-compressed, mmicromips,
33570 m14k, m14ke, m14kec): Document new options.
33571 (minterlink-mips16): Update documentation.
33572 * doc/md.texi (ZC, ZD): Document new constraints.
33573 * configure.ac (gcc_cv_as_micromips): Check if linker
33574 supports the .set micromips directive.
33575 * configure: Regenerate.
33576 * config.in: Regenerate.
33577 * config/mips/mips-tables.opt: Regenerate.
33578 * config/mips/micromips.md: New file.
33579 * constraints.md (ZC, AD): New constraints.
33580 * config/mips/predicates.md (movep_src_register): New predicate.
33581 (movep_src_operand): New predicate.
33582 (non_volatile_mem_operand): New predicate.
33583 * config/mips/mips.md (multimem): New type.
33584 (length): Differentiate between 17-bit and 18-bit branch offsets.
33585 (MOVEP1, MOVEP2): New mode iterator.
33586 (mov_<load>l): Use ZC constraint.
33587 (mov_<load>r): Likewise.
33588 (mov_<store>l): Likewise.
33589 (mov_<store>r): Likewise.
33590 (*branch_equality<mode>_inverted): Add microMIPS support.
33591 (*branch_equality<mode>): Likewise.
33592 (*jump_absolute): Likewise.
33593 (indirect_jump_<mode>): Likewise.
33594 (tablejump_<mode>): Likewise.
33595 (<optab>_internal): Likewise.
33596 (sibcall_internal): Likewise.
33597 (sibcall_value_internal): Likewise.
33598 (prefetch): Use constraint ZD.
33599 * config/mips/mips.opt (minterlink-compressed): New option.
33600 (minterlink-mips16): Now an alias for minterlink-compressed.
33601 (mmicromips): New option.
33602 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
33603 (compare_and_swap_12): Likewise.
33604 (sync_add<mode>): Likewise.
33605 (sync_<optab>_12): Likewise.
33606 (sync_old_<optab>_12): Likewise.
33607 (sync_new_<optab>_12): Likewise.
33608 (sync_nand_12): Likewise.
33609 (sync_old_nand_12): Likewise.
33610 (sync_new_nand_12): Likewise.
33611 (sync_sub<mode>): Likewise.
33612 (sync_old_add<mode>): Likewise.
33613 (sync_old_sub<mode>): Likewise.
33614 (sync_new_add<mode>): Likewise.
33615 (sync_new_sub<mode>): Likewise.
33616 (sync_<optab><mode>): Likewise.
33617 (sync_old_<optab><mode>): Likewise.
33618 (sync_new_<optab><mode>): Likewise.
33619 (sync_nand<mode>): Likewise.
33620 (sync_old_nand<mode>): Likewise.
33621 (sync_new_nand<mode>): Likewise.
33622 (sync_lock_test_and_set<mode>): Likewise.
33623 (test_and_set_12): Likewise.
33624 (atomic_compare_and_swap<mode>): Likewise.
33625 (atomic_exchange<mode>_llsc): Likewise.
33626 (atomic_fetch_add<mode>_llsc): Likewise.
33627 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
33628 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
33629 (umips_save_restore_pattern_p): Likewise.
33630 (umips_load_store_pair_p): Likewise.
33631 (umips_output_load_store_pair): Likewise.
33632 (umips_movep_target_p): Likewise.
33633 (umips_12bit_offset_address_p): Likewise.
33634 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
33635 (mips_base_mips16): Rename this...
33636 (mips_base_compression_flags): ...to this. Update all uses.
33637 (mips_attribute_table): Add micromips, nomicromips and nocompression.
33638 (mips_mips16_decl_p): Delete.
33639 (mips_nomips16_decl_p): Delete.
33640 (mips_get_compress_on_flags): New function.
33641 (mips_get_compress_off_flags): New function.
33642 (mips_get_compress_mode): New function.
33643 (mips_get_compress_on_name): New function.
33644 (mips_get_compress_off_name): New function.
33645 (mips_insert_attributes): Support multiple compression types.
33646 (mips_merge_decl_attributes): Likewise.
33647 (umips_12bit_offset_address_p): New function.
33648 (mips_start_function_definition): Emit .set micromips directive.
33649 (mips_call_may_need_jalx_p): New function.
33650 (mips_function_ok_for_sibcall): Add microMIPS support.
33651 (mips_print_operand_punctuation): Support short delay slots and
33653 (umips_swm_mask, umips_swm_encoding): New.
33654 (umips_build_save_restore): New function.
33655 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
33656 (was_mips16_p): Remove.
33657 (old_compression_mode): New.
33658 (mips_set_compression_mode): New function.
33659 (mips_set_current_function): Add microMIPS support.
33660 (mips_option_override): Likewise.
33661 (umips_save_restore_pattern_p): New function.
33662 (umips_output_save_restore): New function.
33663 (umips_load_store_pair_p_1): New function.
33664 (umips_load_store_pair_p): New function.
33665 (umips_output_load_store_pair_1): New function.
33666 (umips_output_load_store_pair): New function.
33667 (umips_movep_target_p) New function.
33668 (mips_prepare_pch_save): Add microMIPS support.
33669 * config/mips/mips.h (TARGET_COMPRESSION): New.
33670 (TARGET_CPU_CPP_BUILTINS): Update macro
33671 to use new compression flags and to support microMIPS.
33672 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
33673 (MIPS_ARCH_FLOAT_SPEC): Likewise.
33674 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
33675 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
33676 (ASM_SPEC): Support mmicromips and mno-micromips.
33677 (M16STORE_REG_P): New macro.
33678 (MIPS_CALL): Support TARGET_MICROMIPS.
33679 (MICROMIPS_J): New macro.
33680 (mips_base_mips16): Rename this...
33681 (mips_base_compression_flags): ...to this.
33682 (UMIPS_12BIT_OFFSET_P): New macro.
33683 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
33684 (MULTILIB_DIRNAMES): Likewise.
33686 2013-02-24 Jakub Jelinek <jakub@redhat.com>
33689 * target-globals.c (save_target_globals): For init_reg_sets and
33690 target_reinit remporarily set this_fn_optabs to this_target_optabs.
33692 2013-02-22 James Greenhalgh <james.greenhalgh@arm.com>
33694 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
33695 * config/aarch64/t-aarch64
33696 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
33698 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
33700 PR inline-asm/56148
33701 * lra-constraints.c (process_alt_operands): Reload operand
33702 conflicting with earlier clobber only if no more other conflicting
33705 2013-02-22 Jakub Jelinek <jakub@redhat.com>
33708 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
33709 if not linking a shared library.
33711 2013-02-22 Seth LaForge <sethml@google.com>
33713 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
33715 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
33717 * config/arm/arm.md (split for extendsidi): Update condition.
33718 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
33719 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
33720 (qhs_zextenddi_cstr): Likewise.
33722 2013-02-21 Jakub Jelinek <jakub@redhat.com>
33724 PR middle-end/56420
33725 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
33726 avoid signed wrapping.
33727 (expand_mult): Handle properly multiplication by
33728 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
33729 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
33730 in the compiler if coeff is HOST_WIDE_INT_MIN.
33731 (expand_divmod): Don't make ext_op1 static, change it's type to
33732 uhwi. Avoid undefined behavior in -INTVAL (op1).
33734 PR rtl-optimization/50339
33735 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
33737 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
33738 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
33739 into splitting_ashiftrt field.
33740 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
33742 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
33745 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
33747 PR middle-end/56108
33748 * trans-mem.c (execute_tm_mark): Do not expand transactions that
33749 are sure to go irrevocable.
33751 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
33753 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
33754 scalars are valid operands.
33756 2013-02-21 Martin Jambor <mjambor@suse.cz>
33758 PR tree-optimization/56310
33759 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
33760 only matching indices and non-negative final offsets.
33761 (intersect_aggregates_with_edge): Pass src_idx to
33762 agg_replacements_to_vector. Pass src_idx insstead of index to
33763 intersect_with_agg_replacements.
33765 2013-02-21 Martin Jambor <mjambor@suse.cz>
33767 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
33768 instead of hard-wired defaults.
33770 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
33772 * doc/invoke.texi (MIPS Options): Update documentation of the
33773 floating-point multiply-accumulate instruction restrictions.
33775 2013-02-21 Kostya Serebryany <kcc@google.com>
33777 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
33778 asan_shadow_offset on x86_64 linux.
33780 2013-02-21 Richard Biener <rguenther@suse.de>
33782 PR tree-optimization/56415
33784 2013-02-11 Richard Biener <rguenther@suse.de>
33786 PR tree-optimization/56273
33787 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
33790 2013-02-21 Jakub Jelinek <jakub@redhat.com>
33793 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
33796 PR inline-asm/56405
33797 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
33798 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
33800 2013-02-20 Jan Hubicka <jh@suse.cz>
33802 PR tree-optimization/56265
33803 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
33804 when target is referenced for first time.
33806 2013-02-20 Richard Biener <rguenther@suse.de>
33808 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
33809 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
33810 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
33811 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
33812 not return anything.
33813 (rename_ssa_copies): Do not remove unused locals.
33814 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
33815 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
33816 * passes.c (execute_function_todo): Do not schedule unused locals
33817 removal if cleanup_tree_cfg did something.
33818 * tree-ssa-live.c (remove_unused_locals): Dump statistics
33819 about the number of removed locals.
33821 2013-02-20 Richard Biener <rguenther@suse.de>
33823 PR tree-optimization/56398
33824 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
33826 2013-02-20 Martin Jambor <mjambor@suse.cz>
33828 PR tree-optimization/55334
33829 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
33830 restricted pointers to arrays.
33832 2013-02-20 Richard Biener <rguenther@suse.de>
33833 Jakub Jelinek <jakub@redhat.com>
33835 PR tree-optimization/56396
33836 * tree-ssa-ccp.c (n_const_val): New static variable.
33837 (get_value): Return NULL for SSA names we don't have a lattice
33839 (ccp_initialize): Initialize n_const_val.
33840 * tree-ssa-copy.c (n_copy_of): New static variable.
33841 (init_copy_prop): Initialize n_copy_of.
33842 (get_value): Return NULL_TREE for SSA names we don't have a
33845 2013-02-20 Martin Jambor <mjambor@suse.cz>
33847 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
33849 2013-02-20 Richard Biener <rguenther@suse.de>
33851 * genpreds.c (write_lookup_constraint): Do not compare first
33852 letter of the constraint again.
33854 2013-02-20 Richard Biener <rguenther@suse.de>
33856 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
33858 (get_use_iv_cost): Terminate hashtable walk when coming across
33861 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
33863 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
33864 reassociation for avx2 targets.
33866 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
33868 * config/microblaze/microblaze.c: microblaze_has_clz = 0
33869 Add version check for v8.10.a to enable microblaze_has_clz
33870 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
33871 version and TARGET_PATTERN_COMPARE check
33872 * config/microblaze/microblaze.md: New clzsi2 instruction
33874 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
33876 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
33877 function before branching.
33879 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
33881 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
33883 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
33885 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
33887 PR middle-end/55889
33888 * sel-sched.c: Include ira.h.
33889 (implicit_clobber_conflict_p): New function.
33890 (moveup_expr): Use it.
33891 * Makefile.in (sel-sched.o): Depend on ira.h.
33893 2013-02-19 Richard Biener <rguenther@suse.de>
33895 PR tree-optimization/56384
33896 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
33897 (vn_hash_type): Split out from ...
33898 (vn_hash_constant_with_type): ... here.
33899 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
33900 (vn_phi_eq): Compare types from vn_phi_s structure.
33901 (vn_phi_lookup): Populate vn_phi_s type.
33902 (vn_phi_insert): Likewise.
33904 2013-02-19 Jakub Jelinek <jakub@redhat.com>
33906 PR tree-optimization/56350
33907 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
33908 if haven't found reduction or nested cycle operand, rather than
33909 asserting we must find it.
33911 PR tree-optimization/56381
33912 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
33915 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
33916 Jakub Jelinek <jakub@redhat.com>
33919 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
33920 (swap_optab_enable): Same.
33921 (init_all_optabs): Use argument instead of global.
33922 * tree.h (struct tree_optimization_option): New field target_optabs.
33923 * expr.h (init_all_optabs): Add argument to prototype.
33924 (TREE_OPTIMIZATION_OPTABS): New.
33925 (save_optabs_if_changed): Protoize.
33926 * optabs.h: Declare this_fn_optabs.
33927 * optabs.c (save_optabs_if_changed): New.
33928 Declare this_fn_optabs.
33929 (init_optabs): Add argument to init_all_optabs() call.
33930 * function.c (invoke_set_current_function_hook): Handle per
33932 * function.h (struct function): New field optabs.
33933 * config/mips/mips.c (mips_set_mips16_mode): Handle when
33934 optimization_current_node has changed.
33935 * target-globals.h (save_target_globals_default_opts): Protoize.
33936 * target-globals.c (save_target_globals_default_opts): New.
33938 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33941 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
33942 registers %fr12 and %fr12R as call used.
33945 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
33946 and HImode, require all displacements to be an integer multiple of
33948 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
33949 only allow QImode and HImode when reload is in progress and strict is
33950 true. Likewise for symbolic addresses. Use base14_operand to check
33951 displacements in REG+BASE addresses.
33953 2013-02-18 Richard Biener <rguenther@suse.de>
33955 PR tree-optimization/56366
33956 * tree-vect-loop.c (get_initial_def_for_induction): Properly
33957 handle sign-conversion of outer-loop initial induction value.
33959 2013-02-18 Richard Biener <rguenther@suse.de>
33961 PR middle-end/56349
33962 * cfghooks.c (merge_blocks): If we merge a latch into another
33963 block adjust references to it.
33964 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
33965 (verify_loop_structure): Verify that a recorded latch is in fact
33968 2013-02-18 Richard Biener <rguenther@suse.de>
33970 PR tree-optimization/56321
33971 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
33972 order SSA name release and virtual operand unlinking.
33974 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
33976 * config/microblaze/microblaze.md (save_stack_block): Define.
33977 (restore_stack_block): Likewise.
33979 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
33981 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
33982 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
33983 * config/microblaze/microblaze.c (microblaze_option_override):
33984 Bail out early for PIC modes when target does not support PIC.
33986 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
33988 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
33989 Replace with a microblaze version.
33990 (microblaze_trampoline_init): Adapt for microblaze.
33991 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
33994 2013-02-16 Jakub Jelinek <jakub@redhat.com>
33995 Dodji Seketeli <dodji@redhat.com>
33998 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
33999 (instrument_mem_region_access): Do not forget to always put
34000 instrumentation of the of 'base' and 'base + len' in a "if (len !=
34001 0) statement, even for cases where either 'base' or 'base + len'
34002 are not instrumented -- because they have been previously
34003 instrumented. Simplify the logic by putting all the statements
34004 instrument 'base + len' inside a sequence, and then insert that
34005 sequence right before the current insertion point. Then, to
34006 instrument 'base + len', just get an iterator on that statement.
34007 And do not forget to update the pointer to iterator the function
34008 received as argument.
34010 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
34012 PR rtl-optimization/56348
34013 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
34015 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
34017 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
34018 (clean_graph_dump_file): Pass base to start_graph_dump.
34020 2013-02-14 Richard Henderson <rth@redhat.com>
34023 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
34025 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
34027 * collect2-aix.h: Define F_LOADONLY.
34029 2013-02-14 Richard Biener <rguenther@suse.de>
34032 * varasm.c (output_constant_def_1): Get the decl representing
34033 the constant as argument.
34034 (output_constant_def): Wrap output_constant_def_1.
34035 (make_decl_rtl): Use output_constant_def_1 with the decl
34036 representing the constant.
34037 (build_constant_desc): Optionally re-use a decl already
34038 representing the constant.
34039 (tree_output_constant_def): Adjust.
34041 2013-02-14 Dodji Seketeli <dodji@redhat.com>
34044 * asan.c (instrument_builtin_call): Really put the length of the
34045 second source argument into src1_len.
34047 2013-02-13 Jakub Jelinek <jakub@redhat.com>
34049 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
34050 argument. If it is false, don't create edge from then_bb to
34052 (insert_if_then_before_iter): Pass true to it.
34053 (build_check_stmt): Pass false to it.
34054 (transform_statements): Flush hash table only on extended basic
34055 block boundaries, rather than at the beginning of every bb.
34056 Don't flush hash table on nonfreeing_call_p calls.
34057 * tree-flow.h (nonfreeing_call_p): New prototype.
34058 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
34060 2013-02-13 David S. Miller <davem@davemloft.net>
34062 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
34064 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
34067 * ira.c (max_regno_before_ira): Move from ...
34069 (fix_reg_equiv_init): Use max_regno_before_ira instead of
34072 2013-02-13 Jakub Jelinek <jakub@redhat.com>
34074 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
34076 2013-02-13 Richard Biener <rguenther@suse.de>
34079 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
34080 globals in MEM_REFs.
34082 2013-02-13 Richard Biener <rguenther@suse.de>
34084 * loop-init.c (loop_optimizer_init): Clear loop state when
34085 re-initializing preserved loops.
34086 * loop-unswitch.c (unswitch_single_loop): Return whether
34087 we unswitched the loop. Do not verify loop state here.
34088 (unswitch_loops): When we unswitched a loop discover new loops.
34090 2013-02-13 Kostya Serebryany <kcc@google.com>
34092 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
34094 * sanitizer.def: Rename __asan_init to __asan_init_v1.
34096 2013-02-12 Dodji Seketeli <dodji@redhat.com>
34098 Avoid instrumenting duplicated memory access in the same basic block
34099 * Makefile.in (asan.o): Add new dependency on hash-table.h
34100 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
34101 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
34102 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
34103 (free_mem_ref_resources, has_mem_ref_been_instrumented)
34104 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
34105 (get_mem_ref_of_assignment): New functions.
34106 (get_mem_refs_of_builtin_call): Extract from
34107 instrument_builtin_call and tweak a little bit to make it fit with
34109 (instrument_builtin_call): Use the new
34110 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
34111 of is_gimple_builtin_call.
34112 (instrument_derefs, instrument_mem_region_access): Insert the
34113 instrumented memory reference into the hash table.
34114 (maybe_instrument_assignment): Renamed instrument_assignment into
34115 this, and change it to advance the iterator when instrumentation
34116 actually happened and return true in that case. This makes it
34117 homogeneous with maybe_instrument_assignment, and thus give a
34118 chance to callers to be more 'regular'.
34119 (transform_statements): Clear the memory reference hash table
34120 whenever we enter a new BB, when we cross a function call, or when
34121 we are done transforming statements. Use
34122 maybe_instrument_assignment instead of instrumentation. No more
34123 need to special case maybe_instrument_assignment and advance the
34124 iterator after calling it; it's now handled just like
34125 maybe_instrument_call. Update comment.
34127 2013-02-13 Richard Biener <rguenther@suse.de>
34129 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
34130 Fix loop discovery code.
34132 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
34134 PR inline-asm/56148
34135 * lra-constraints.c (process_alt_operands): Match early clobber
34136 operand with itself. Check conflicts with earlyclobber only if
34137 the operand is not reloaded. Prefer to reload conflicting operand
34138 if earlyclobber and matching operands are the same.
34140 2013-02-12 Richard Biener <rguenther@suse.de>
34143 * lto-streamer-out.c (write_symbol): Do not output symbols
34144 for hard register variables.
34146 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
34149 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
34150 (umulsidi3_insn, mulsidi3_insn): New insns.
34152 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
34154 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
34155 (struct tune_params): Add vec_costs field.
34156 * config/arm/arm.c (arm_builtin_vectorization_cost)
34157 (arm_add_stmt_cost): New functions.
34158 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
34159 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
34160 (arm_default_vec_cost): New struct of type cpu_vec_costs.
34161 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
34162 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
34163 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
34164 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
34166 2013-02-12 Richard Biener <rguenther@suse.de>
34169 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
34170 decls again if possible.
34172 2013-02-12 Richard Biener <rguenther@suse.de>
34174 PR middle-end/56288
34175 * tree-ssa.c (verify_ssa_name): Fix check, move
34176 SSA_NAME_IN_FREE_LIST check up.
34178 2013-02-12 Jakub Jelinek <jakub@redhat.com>
34179 Steven Bosscher <steven@gcc.gnu.org>
34181 PR rtl-optimization/56151
34182 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
34183 equal to op0 or op1, and last_insn pattern is CODE operation
34184 with MEM dest and one of the operands matches that MEM.
34186 2013-02-11 Sriraman Tallam <tmsriram@google.com>
34188 * doc/extend.texi: Document Function Multiversioning and "default"
34189 parameter string to target attribute.
34190 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
34191 target attribute parameter is "default".
34192 (ix86_compare_version_priority): Remove checks for target attribute.
34193 (ix86_mangle_function_version_assembler_name): Change error to sorry.
34194 Remove check for target attribute equal to NULL. Add assert.
34195 (ix86_generate_version_dispatcher_body): Change error to sorry.
34197 2013-02-11 Iain Sandoe <iain@codesourcery.com>
34198 Jack Howarth <howarth@bromo.med.uc.edu>
34199 Patrick Marlier <patrick.marlier@gmail.com>
34202 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
34203 define ENDFILE_SPEC as TM_DESTRUCTOR.
34204 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
34206 2013-02-11 Alexander Potapenko <glider@google.com>
34207 Jack Howarth <howarth@bromo.med.uc.edu>
34208 Jakub Jelinek <jakub@redhat.com>
34211 * config/darwin.c (cdtor_record): Rename ctor_record.
34212 (sort_cdtor_records): Rename sort_ctor_records.
34213 (finalize_dtors): New routine to sort destructors by
34214 priority before use in assemble_integer.
34215 (machopic_asm_out_destructor): Use finalize_dtors if needed.
34217 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
34219 PR rtl-optimization/56275
34220 * simplify-rtx.c (avoid_constant_pool_reference): Check that
34221 offset is non-negative and less than cmode size before
34222 calling simplify_subreg.
34224 2013-02-11 Richard Biener <rguenther@suse.de>
34226 PR tree-optimization/56264
34227 * cfgloop.h (fix_loop_structure): Adjust prototype.
34228 * loop-init.c (fix_loop_structure): Return the number of
34229 newly discovered loops.
34230 * tree-cfgcleanup.c (repair_loop_structures): When new loops
34231 are discovered, do a full loop-closed SSA rewrite.
34233 2013-02-11 Richard Biener <rguenther@suse.de>
34235 PR tree-optimization/56273
34236 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
34238 (check_array_ref): Fix missing newline in dumps.
34239 (search_for_addr_array): Likewise.
34241 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
34243 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
34245 2013-02-09 Jakub Jelinek <jakub@redhat.com>
34248 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
34250 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
34252 PR rtl-optimization/56246
34253 * lra-constraints.c (simplify_operand_subreg): Try to reuse
34255 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
34256 constraints are satisfied.
34258 2013-02-08 Jeff Law <law@redhat.com>
34261 * emit-rtl.c (reg_is_parm_p): New function.
34262 * regs.h (reg_is_parm_p): New prototype.
34263 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
34264 callee-clobbered registers.
34266 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
34269 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
34270 If there is no implicit builtin declaration, just return NULL.
34272 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
34274 * config/i386/sse.md (FMAMODEM): New mode iterator.
34275 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
34276 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
34278 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
34280 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
34281 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
34282 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
34284 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
34286 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
34287 (microblaze*-*-elf): Likewise.
34288 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
34290 * config/microblaze/microblaze-c.c: Add builtin defines for
34291 _LITTLE_ENDIAN and _BIG_ENDIAN.
34292 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
34293 add to TARGET_DEFAULT flags.
34294 Expand ASM_SPEC and LINK_SPEC.
34295 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
34296 * config/microblaze/microblaze.md: Update extendsidi2 and
34297 movdi_internal instructions to use low-order / high-order reg
34299 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
34300 options and inversemask / mask of LITTLE_ENDIAN.
34301 * config/microblaze/t-microblaze: Expand multilib options to
34302 include mlittle-endian (le) and update exceptions patterns.
34304 2013-02-08 Jakub Jelinek <jakub@redhat.com>
34306 PR rtl-optimization/56195
34307 * lra-constraints.c (get_reload_reg): Don't reuse regs
34308 if they have smaller mode than requested, if they have
34309 wider mode than requested, try to return a SUBREG.
34311 PR tree-optimization/56250
34312 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
34313 if type is unsigned and code isn't MULT_EXPR.
34315 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
34317 PR tree-optimization/56064
34318 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
34319 bits according to mode.
34320 * fixed-value.h (fixed_from_double_int)
34321 (const_fixed_from_double_int): Adjust comments.
34323 2013-02-08 Richard Biener <rguenther@suse.de>
34326 * lto-streamer.h (struct data_in): Remove current_file, current_line
34327 and current_col members.
34328 * lto-streamer-out.c (lto_output_location): Stream changed bits
34329 en-block for efficiency.
34330 * lto-streamer-in.c (clear_line_info): Remove.
34331 (lto_input_location): Cache current file, line and column
34332 globally via local statics. Read changed bits en-block.
34333 (input_function): Do not call clear_line_info.
34334 (lto_read_body): Likewise.
34335 (lto_input_toplevel_asms): Likewise.
34337 2013-02-08 Michael Matz <matz@suse.de>
34339 PR tree-optimization/52448
34340 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
34341 (nt_call_phase): New static.
34342 (add_or_mark_expr): Only mark accesses with newer phase than any
34344 (nonfreeing_call_p): New.
34345 (nt_init_block): Update nt_call_phase, mark blocks as visited.
34346 (nt_fini_block): Keep blocks marked as visited.
34347 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
34349 2013-02-08 Richard Biener <rguenther@suse.de>
34351 * ira.c (ira): Free broken dominator information.
34353 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
34355 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
34357 2013-02-08 Marek Polacek <polacek@redhat.com>
34359 * cfgloop.c (verify_loop_structure): Add more checking of headers.
34361 2013-02-08 Richard Biener <rguenther@suse.de>
34363 PR middle-end/56181
34364 * cfgloop.h (flow_loops_find): Adjust.
34365 (bb_loop_header_p): Declare.
34366 * cfgloop.c (bb_loop_header_p): New function split out from ...
34367 (flow_loops_find): ... here. Adjust function signature,
34368 support incremental loop structure update.
34369 (verify_loop_structure): Cleanup. Verify a loop is a loop.
34370 * cfgloopmanip.c (fix_loop_structure): Move ...
34371 * loop-init.c (fix_loop_structure): ... here.
34372 (apply_loop_flags): Split out from ...
34373 (loop_optimizer_init): ... here.
34374 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
34375 in incremental mode, only remove dead loops here.
34377 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
34380 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
34381 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
34382 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
34383 (*round<mode>3.libgcc): New insns for fixed-modes.
34384 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
34385 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
34386 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
34387 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
34388 implementations. Define to __builtin_avr_absFX,
34389 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
34390 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
34391 __builtin_avr_countlsFX, respectively.
34392 * config/avr/avr-c.c (target.h): Include it.
34393 (enum avr_builtin_id): New enum.
34394 (avr_resolve_overloaded_builtin): New static function.
34395 (avr_register_target_pragmas): Use it to set
34396 targetm.resolve_overloaded_builtin.
34397 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
34398 tree nodes used by DEF_BUILTIN.
34399 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
34400 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
34401 <AVR_BUILTIN_xxBITS>: Same.
34403 2013-02-08 Richard Biener <rguenther@suse.de>
34405 * cfgloop.c (verify_loop_structure): Properly handle
34406 a loop exiting to another loop header.
34407 * ira-int.h (ira_loops): Remove.
34408 * ira.c (ira_loops): Remove.
34409 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
34410 (do_reload): Use loop_optimizer_finalize.
34411 * ira-build.c (create_loop_tree_nodes): Use get_loops and
34412 number_of_loops to access the loop tree.
34413 (more_one_region_p): Likewise.
34414 (finish_loop_tree_nodes): Likewise.
34415 (rebuild_regno_allocno_maps): Likewise.
34416 (mark_loops_for_removal): Likewise.
34417 (mark_all_loops_for_removal): Likewise.
34418 (remove_unnecessary_regions): Likewise.
34419 (ira_build): Likewise.
34420 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
34422 2013-02-08 Richard Biener <rguenther@suse.de>
34424 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
34425 * ipa-pure-const.c (analyze_function): Avoid calling
34426 mark_irreducible_loops twice.
34427 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
34429 2013-02-07 David S. Miller <davem@davemloft.net>
34431 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
34433 * var-tracking.c (vt_add_function_parameter): Test the presence of
34434 HAVE_window_save properly and do not remap argument registers when
34435 we have a leaf function.
34437 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
34440 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
34442 * config/i386/i386.c (ix86_print_operand): Ditto.
34444 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
34446 * lra-constraints.c (process_alt_operands): Fix recently added comment.
34448 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
34450 PR rtl-optimization/56225
34451 * lra-constraints.c (process_alt_operands): Check that reload hard
34452 reg can hold value for strict_low_part.
34454 2013-02-07 Jakub Jelinek <jakub@redhat.com>
34457 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
34458 dwarf2out_end_function.
34459 (in_first_function_p, maybe_at_text_label_p,
34460 first_loclabel_num_not_at_text_label): New variables.
34461 (dwarf2out_var_location): In the first function find out
34462 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
34463 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
34466 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
34468 PR rtl-optimization/56178
34469 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
34470 SUBREG of a register. Tidy up related block of code.
34471 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
34472 note if the source is a register or a SUBREG of a register.
34474 2013-02-07 Jakub Jelinek <jakub@redhat.com>
34477 * config/rs6000/rs6000.md (ptrm): New mode attr.
34478 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
34479 call_value_indirect_aix<pttrsize>,
34480 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
34483 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
34485 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
34486 if -bnortl. Convert to strcmp and strncmp.
34488 2013-02-07 Alan Modra <amodra@gmail.com>
34491 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
34492 addresses won't wrap when offsetting.
34493 (rs6000_secondary_reload): Provide secondary reloads needed for
34494 wrapping LO_SUM addresses.
34496 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
34498 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
34499 MACH, just __MACH__.
34501 2013-02-06 Richard Biener <rguenther@suse.de>
34503 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
34504 instead of calling fix_loop_structure.
34506 2013-02-06 Jakub Jelinek <jakub@redhat.com>
34508 PR middle-end/56217
34509 * omp-low.c (use_pointer_for_field): Return false if
34510 lower_send_shared_vars doesn't generate any copy-out code.
34512 2013-02-06 Tom de Vries <tom@codesourcery.com>
34514 PR rtl-optimization/56131
34515 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
34516 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
34517 of the label is NULL. Add comment.
34519 2013-02-05 Jakub Jelinek <jakub@redhat.com>
34521 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
34524 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
34525 (STATIC_LIBTSAN_LIBS): Likewise.
34526 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
34527 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
34528 is defined, don't add anything else beyond that.
34529 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
34530 (LINK_COMMAND_SPEC): Use them.
34532 PR tree-optimization/56205
34533 * tree-stdarg.c (check_all_va_list_escapes): Return true if
34534 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
34535 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
34537 2013-02-05 Richard Biener <rguenther@suse.de>
34539 PR tree-optimization/53342
34540 PR tree-optimization/53185
34541 * tree-vectorizer.h (vect_check_strided_load): Remove.
34542 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
34543 not disallow peeling for vectorized strided loads.
34544 (vect_check_strided_load): Make static and simplify.
34545 (vect_analyze_data_refs): Adjust.
34546 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
34547 correctly when vectorizing strided loads.
34549 2013-02-05 Richard Biener <rguenther@suse.de>
34551 * doc/install.texi: Refer to ISL, not PPL.
34553 2013-02-05 Jan Hubicka <jh@suse.cz>
34555 PR tree-optimization/55789
34556 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
34558 2013-02-05 Jan Hubicka <jh@suse.cz>
34560 PR tree-optimization/55789
34561 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
34562 the dead call anyway.
34564 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
34567 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
34569 2013-02-04 Alexander Potapenko <glider@google.com>
34570 Jack Howarth <howarth@bromo.med.uc.edu>
34571 Jakub Jelinek <jakub@redhat.com>
34574 * config/darwin.c (sort_ctor_records): Stabilized qsort
34575 on constructor priority by using original position.
34576 (finalize_ctors): New routine to sort constructors by
34577 priority before use in assemble_integer.
34578 (machopic_asm_out_constructor): Use finalize_ctors if needed.
34580 2013-02-04 Jakub Jelinek <jakub@redhat.com>
34583 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
34584 about visibility on artificial decls.
34585 * config/sol2.c (solaris_assemble_visibility): Likewise.
34587 2013-02-04 Kai Tietz <ktietz@redhat.com>
34590 * config/i386/i386.c (function_value_ms_64): Add additional valtype
34591 argument and improve checking of return-argument types for 16-byte
34593 (ix86_function_value_1): Add additional valtype argument on call
34594 of function_value_64.
34595 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
34596 handling infunction_value_64 function.
34598 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
34600 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
34602 2013-02-04 Richard Biener <rguenther@suse.de>
34604 PR tree-optimization/56188
34605 * tree-ssa-structalias.c (label_visit): Consider case with
34606 initially non-empty points-to set.
34607 (perform_var_substitution): Dump node mapping and clean up.
34609 2013-02-04 Richard Guenther <rguenther@suse.de>
34612 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
34613 node prevail as last resort.
34614 (lto_symtab_merge_decls): Remove guard on LTRANS here.
34615 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
34617 2013-02-04 Richard Biener <rguenther@suse.de>
34619 PR tree-optimization/56113
34620 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
34622 (equiv_class_lookup_or_add): ... this.
34623 (label_visit): Adjust and fix error in previous patch.
34624 (perform_var_substitution): Adjust.
34626 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
34628 * config/sh/divtab.c: Fix formatting and comments throughout the file.
34629 * config/sh/sh4-300.md: Likewise.
34630 * config/sh/sh4a.md: Likewise.
34631 * config/sh/constraints.md: Likewise.
34632 * config/sh/sh.md: Likewise.
34633 * config/sh/netbsd-elf.h: Likewise.
34634 * config/sh/predicates.md: Likewise.
34635 * config/sh/sh-protos.h: Likewise.
34636 * config/sh/ushmedia.h: Likewise.
34637 * config/sh/linux.h: Likewise.
34638 * config/sh/sh.c: Likewise.
34639 * config/sh/superh.h: Likewise.
34640 * config/sh/elf.h: Likewise.
34641 * config/sh/sh4.md: Likewise.
34642 * config/sh/sh.h: Likewise.
34644 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
34646 * config/pa/constraints.md: Adjust unused letters. Change "T"
34647 constraint to match_test floating_point_store_memory_operand().
34648 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
34649 (base14_operand): New.
34650 (floating_point_store_memory_operand): New.
34651 (integer_store_memory_operand): Revise to use base14_operand and
34652 reg_plus_base_memory_operand.
34653 (move_dest_operand): Allow symbolic_memory_operands.
34654 (symbolic_memory_operand): Check for LO_SOM.
34655 (symbolic_operand): Change default case to break.
34656 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
34657 CONST_DOUBLE values to be reloaded by putting them into memory when
34658 the destination is a floating point register.
34659 (movdf): Remove code to handle CONST_DOUBLE.
34661 (reload_indf_r1): New.
34662 (reload_insf_r1): New.
34663 Consistently use "Q" and "T" constraints with integer and floating
34664 point move instructions, respectively.
34665 (movdi): Remove FAIL.
34666 Change predicate for source operand unamed DImode move from
34667 general_operand to move_src_operand.
34668 (umulsidi3): Change predicate for destination operand to
34670 Likewise for similar unamed patterns.
34671 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
34672 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
34673 (hppa_legitimize_address): Simplify mask calculation.
34674 (pa_emit_move_sequence): Revised handling of secondary reloads from
34675 REG+D addresses for floating point loads and stores. Directly handle
34676 loading CONST0_RTX (mode) to a floating point register.
34677 (pa_secondary_reload): Handle reloading DF and SFmode constant values
34678 to floating point registers. Don't restrict secondary reloads to
34679 floating point registers to integer modes. Revise some comments and
34681 (TARGET_LEGITIMATE_ADDRESS_P): Define.
34682 (pa_legitimate_address_p): New.
34683 (pa_legitimize_reload_address): New.
34684 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
34685 (STRICT_REG_OK_FOR_BASE_P): New.
34686 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
34687 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
34689 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
34690 Andrew Dixie <andrewd@gentrack.com>
34692 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
34695 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
34697 * expmed.c (extract_bit_field_1): Pass the full width of the
34698 structure to get_best_reg_extraction_insn.
34700 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
34703 * configure.ac (use_cxa_atexit): Add AIX.
34704 * configure: Regenerate.
34706 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
34708 2013-02-01 Jakub Jelinek <jakub@redhat.com>
34711 * final.c (need_profile_function): New variable.
34712 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
34713 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
34714 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
34715 notes, targetm.asm_out.function_prologue doesn't emit anything,
34716 HAVE_prologue and profiler should be emitted before prologue,
34717 set need_profile_function instead of emitting it.
34718 (final_scan_insn): If need_profile_function, emit
34719 profile_function on the first NOTE_INSN_BASIC_BLOCK or
34720 NOTE_INSN_FUNCTION_BEG note.
34722 2013-02-01 Richard Henderson <rth@redhat.com>
34724 * config/rs6000/rs6000.md (smulditi3): New.
34727 * config/alpha/alpha.md (umulditi3): New.
34729 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
34731 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
34732 (ASM_OUTPUT_ALIGNED_LOCAL): New.
34734 2013-02-01 Richard Biener <rguenther@suse.de>
34736 PR tree-optimization/56113
34737 * tree-ssa-structalias.c (label_visit): Reduce work for
34738 single-predecessor nodes.
34740 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
34742 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
34743 range isn't testing for zero.
34745 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
34747 PR middle-end/56113
34748 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
34750 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
34751 Nick Clifton <nickc@redhat.com>
34753 * config/v850/constraints.md (Q): Define as a memory constraint.
34754 * config/v850/predicates.md (label_ref_operand): New predicate.
34755 (e3v5_shift_operand): New predicate.
34756 (ior_operator): New predicate.
34757 * config/v850/t-v850: Add e3v5 multilib.
34758 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
34759 (v850_gen_movdi): Prototype.
34760 * config/v850/v850.c: Add support for e3v5 architecture.
34761 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
34763 (construct_save_jarl): Add e3v5 long JARL support.
34764 (v850_adjust_insn_length): New function. Adjust length of call
34765 insns when using e3v5 instructions.
34766 (v850_gen_movdi): New function: Generate instructions to move a
34768 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
34769 (CPP_SPEC): Define __v850e3v5__ as appropriate.
34770 (TARGET_USE_FPU): Enable for e3v5.
34771 (CONST_OK_FOR_W): New macro.
34772 (ADJUST_INSN_LENGTH): Define.
34773 * config/v850/v850.md (UNSPEC_LOOP): Define.
34774 (attr cpu): Add v850e3v5.
34775 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
34776 (movdi): New pattern.
34777 (movdi_internal): New pattern.
34778 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
34779 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
34780 (cstoresf4): Likewise.
34781 (cstoredf4): Likewise.
34782 (insv): New pattern.
34783 (rotlso3_a): New pattern.
34784 (rotlsi3_b): New pattern
34785 (rotlsi3_v850e3v5): New pattern.
34786 (doloop_begin): New pattern.
34787 (fix_loop_counter): New pattern.
34788 (doloop_end): New pattern.
34789 (branch_normal): Add e3v5 long branch support.
34790 (branch_invert): Likewise.
34791 (branch_z_normal): Likewise.
34792 (branch_z_invert): Likewise.
34793 (branch_nz_normal): Likewise.
34794 (branch_nz_invert): Likewise.
34795 (call_internal_short): Add e3v5 register-indirect JARL support.
34796 (call_internal_long): Likewise.
34797 (call_value_internal_short): Likewise.
34798 (call_value_internal_long): Likewise.
34799 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
34800 (mloop): New option.
34801 * config.gcc: Add support for configuring v840e3v5 target.
34802 * doc/invoke.texi: Document new v850 specific command line options.
34804 2013-01-31 Paul Koning <ni1d@arrl.net>
34808 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
34809 children if parent is a class.
34810 (prune_unused_types_prune): Don't add DW_AT_declaration.
34812 2013-01-31 Richard Biener <rguenther@suse.de>
34814 PR tree-optimization/56157
34815 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
34816 match up operand with SLP child.
34818 2013-01-31 Jason Merrill <jason@redhat.com>
34821 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
34822 parameters the first time.
34823 (gen_scheduled_generic_parms_dies): Check completeness here.
34825 2013-01-31 Richard Biener <rguenther@suse.de>
34827 PR middle-end/53073
34828 * common.opt (faggressive-loop-optimizations): New flag,
34829 enabled by default.
34830 * doc/invoke.texi (faggressive-loop-optimizations): Document.
34831 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
34832 infer_loop_bounds_from_undefined by it.
34834 2013-01-31 Richard Biener <rguenther@suse.de>
34836 PR tree-optimization/56150
34837 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
34838 visit virtual operands.
34839 (find_uses_to_rename_bb): Likewise.
34841 2013-01-31 Richard Biener <rguenther@suse.de>
34843 PR tree-optimization/56150
34844 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
34845 mixed store non-store stmts.
34847 2013-01-30 Jakub Jelinek <jakub@redhat.com>
34850 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
34851 LIBASAN_EARLY_SPEC is defined.
34852 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
34853 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
34855 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
34858 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
34859 invalid args instead of ICEing on it.
34860 (ix86_valid_target_attribute_tree): Return error_mark_node if
34861 ix86_valid_target_attribute_inner_p failed.
34862 (ix86_valid_target_attribute_p): Return false only if
34863 ix86_valid_target_attribute_tree returned error_mark_node. Allow
34864 target("default") attribute.
34865 (sorted_attr_string): Change argument from const char * to tree,
34866 merge in all target attribute arguments rather than just one.
34867 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
34868 instead of free. Avoid using strcat.
34869 (ix86_mangle_function_version_assembler_name): Mangle
34870 target("default") as if no target attribute is present. Adjust
34871 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
34872 instead of xmalloc and XDELETEVEC instead of free.
34873 (ix86_function_versions): Don't return true if one of the decls
34874 doesn't have target attribute. If they don't and one of the decls
34875 is DECL_FUNCTION_VERSIONED, report an error. Adjust
34876 sorted_attr_string caller. Use XDELETEVEC instead of free.
34877 (ix86_supports_function_versions): Remove.
34878 (make_name): Fix up formatting.
34879 (make_dispatcher_decl): Remove resolver_name and its initialization.
34880 Avoid leaking memory.
34881 (is_function_default_version): Return true if there is
34882 target("default") attribute rather than no target attribute at all.
34883 (make_resolver_func): Avoid leaking memory.
34884 (ix86_generate_version_dispatcher_body): Likewise.
34885 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
34886 * target.def (supports_function_versions): Remove.
34887 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
34888 * doc/tm.texi: Regenerated.
34890 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
34892 PR rtl-optimization/56144
34893 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
34894 for values with side effects.
34896 2013-01-30 Richard Biener <rguenther@suse.de>
34898 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
34899 (sparseset_pop): Likewise.
34900 * cfganal.c (compute_idf): Likewise. Increase work-stack size
34901 to be able to use quick_push in the worker loop.
34903 2013-01-30 Marek Polacek <polacek@redhat.com>
34905 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
34907 2013-01-30 Richard Biener <rguenther@suse.de>
34910 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
34912 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
34914 PR tree-optimization/56064
34915 * fixed-value.c (fixed_from_double_int): New function.
34916 * fixed-value.h (fixed_from_double_int): New prototype.
34917 (const_fixed_from_double_int): New static inline function.
34918 * fold-const.c (native_interpret_fixed): New static function.
34919 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
34920 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
34921 (native_encode_fixed): New static function.
34922 (native_encode_expr) <FIXED_CST>: Use it.
34923 (native_interpret_int): Move double_int worker code to...
34924 * double-int.c (double_int::from_buffer): ...this new static method.
34925 * double-int.h (double_int::from_buffer): Prototype it.
34927 2013-01-30 Richard Biener <rguenther@suse.de>
34929 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
34930 New pointer-map and obstack.
34931 (init_alias_vars): Allocate pointer-map and obstack.
34932 (delete_points_to_sets): Free them.
34933 (find_what_var_points_to): Cache result.
34934 (find_what_p_points_to): Adjust for changed interface of
34935 find_what_var_points_to.
34936 (compute_points_to_sets): Likewise.
34937 (ipa_pta_execute): Likewise.
34939 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34941 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
34942 * configure: Regenerate.
34943 * config.in: Regenerate.
34944 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
34945 #nobits/#progbits if supported.
34947 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
34950 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
34951 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
34952 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
34954 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
34956 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
34957 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
34959 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
34961 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
34962 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
34964 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
34966 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
34968 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
34969 * config/arm/cortex-a7.md: New bypasses using
34970 arm_mac_accumulator_is_result.
34972 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
34974 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
34975 (cortex_a7_neon_mla): Likewise.
34976 (cortex_a7_fpfmad): New reservation.
34977 (cortex_a7_fpmacs): Use ffmas and update required units.
34978 (cortex_a7_fpmuld): Update required units and latency.
34979 (cortex_a7_fpmacd): Likewise.
34980 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
34981 (cortex_a7_neon). Likewise.
34982 (bypass) Update participating units.
34984 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
34986 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
34987 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
34989 * config/arm/vfp11.md (vfp_farith): Use ffmas.
34990 (vfp_fmul): Use ffmad.
34991 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
34992 (cortex_r4_fmacd): Use ffmad.
34993 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
34994 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
34995 (cortex_a9_fmacd): Use ffmad.
34996 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
34997 (cortex_a8_vfp_macd): Use ffmad.
34998 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
34999 (cortex_a5_fpmacd): Use ffmad.
35000 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
35001 (cortex_a15_vfp_macd): Use ffmad.
35002 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
35004 2013-01-29 Jason Merrill <jason@redhat.com>
35007 * varasm.c (default_assemble_visibility): Don't warn about
35008 visibility on artificial decls.
35010 2013-01-29 Richard Biener <rguenther@suse.de>
35012 PR tree-optimization/56113
35013 * tree-ssa-structalias.c (equiv_class_lookup): Also return
35015 (label_visit): Free duplicate bitmaps and record the leader instead.
35016 (perform_var_substitution): Adjust.
35018 2013-01-29 Richard Biener <rguenther@suse.de>
35020 PR tree-optimization/55270
35021 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
35022 the CFG, schedule loops for fixup.
35024 2013-01-29 Nick Clifton <nickc@redhat.com>
35026 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
35029 2013-01-28 Leif Ekblad <leif@rdos.net>
35031 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
35032 * config/i386/i386.h (TARGET_RDOS): New macro.
35033 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
35034 * config/i386/i386.c (ix86_option_override_internal): For 64bit
35035 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
35036 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
35037 DEFAULT_LARGE_SECTION_THRESHOLD.
35038 * config/i386/i386.md (R14_REG, R15_REG): New constants.
35039 * config/i386/rdos.h: New file.
35040 * config/i386/rdos64.h: New file.
35042 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
35045 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
35048 2013-01-28 Jakub Jelinek <jakub@redhat.com>
35050 PR rtl-optimization/56117
35051 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
35052 call cselib_lookup_from_insn on the MEM before calling
35053 add_insn_mem_dependence.
35055 2013-01-28 Richard Biener <rguenther@suse.de>
35057 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
35058 to a stmt that didn't have one.
35059 (copy_phis_for_bb): Likewise for PHI arguments.
35060 (copy_debug_stmt): Likewise for debug stmts.
35062 2013-01-28 Richard Biener <rguenther@suse.de>
35064 PR tree-optimization/56034
35065 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
35066 (partition_builtin_p): Adjust.
35067 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
35068 it is the last partition.
35069 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
35070 up the vertex for the definition.
35071 (classify_partition): Classify whether a partition is a
35072 PKIND_REDUCTION, thus has uses outside of the loop.
35073 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
35074 Merge all PKIND_REDUCTION partitions into the last partition.
35075 (tree_loop_distribution): Seed partitions from reductions as well.
35077 2013-01-28 Jakub Jelinek <jakub@redhat.com>
35079 PR tree-optimization/56125
35080 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
35081 pow(x,c) into sqrt(x) * powi(x, n/2) or
35082 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
35083 optimizing for size.
35084 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
35085 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
35088 PR tree-optimization/56094
35089 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
35090 to UNKNOWN_LOCATION while gimplifying expr.
35092 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
35095 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
35096 operand 0 in movabs insn template for -masm=intel asm alternative.
35097 (*movabs<mode>_2): Ditto for operand 1.
35099 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
35102 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
35105 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
35107 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
35110 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
35112 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
35113 Undef to avoid warning.
35115 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
35117 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
35118 * configure: Regenerate.
35120 2013-01-25 Jakub Jelinek <jakub@redhat.com>
35122 PR tree-optimization/56098
35123 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
35124 for stmts with volatile ops.
35125 (cond_store_replacement): Don't optimize if assign has volatile ops.
35126 (cond_if_else_store_replacement_1): Don't optimize if either
35127 then_assign or else_assign have volatile ops.
35128 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
35131 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
35133 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
35135 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
35137 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
35138 missing ':' in asm example.
35140 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
35142 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
35143 entries into lane and laneq entries.
35144 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
35145 Remove AdvSIMD scalar modes.
35146 (aarch64_sq<r>dmulh_laneq<mode>): New.
35147 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
35149 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
35150 builtin implementations to relfect changes in RTL in aarch64-simd.md.
35151 * config/aarch64/iterators.md (VCOND): New.
35154 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
35157 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
35158 Add NULL LIBNAME argument to existing definitions.
35159 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
35160 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
35161 * config/avr/avr.c (DEF_BUILTIN): Same.
35162 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
35163 (avr_expand_builtin): Expand to a vanilla call if a libgcc
35164 implementation is available (DECL_ASSEMBLER_NAME is set).
35165 (avr_fold_absfx): New static function.
35166 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
35167 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
35168 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
35169 AVR_BUILTIN_ABSLLK.
35170 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
35171 (abshk, absk, abslk, absllk): Provide as static inline functions.
35173 2013-01-25 Marek Polacek <polacek@redhat.com>
35175 PR tree-optimization/56035
35176 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
35178 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
35180 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
35181 (*movtf_internal_rex64): Add (!o,C) alternative
35182 (*movxf_internal_rex64): Ditto.
35183 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
35185 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
35187 * doc/invoke.texi: fix typo.
35188 * doc/objc.texi: fix typo.
35190 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
35192 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
35193 for the first two alternatives.
35195 2013-01-24 Diego Novillo <dnovillo@google.com>
35197 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
35198 (ggc-zone.o): Remove.
35199 * configure.ac: Remove option --with-gc.
35200 * configure: Re-generate.
35201 * doc/install.texi: Remove documentation for --with-gc.
35202 * gengtype.c (write_enum_defn): Remove. Update all users.
35203 (write_Types_process_field): Remove generation of gt_e_* argument.
35204 (output_type_enum): Remove. Update all users.
35205 (write_enum_defn): Remove. Update all users.
35206 (enum alloc_zone): Remove. Update all users.
35207 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
35208 * ggc-common.c (ggc_splay_alloc): Remove first argument.
35209 Update all callers.
35210 (struct ptr_data): Remove field TYPE. Update all users.
35211 (gt_pch_note_object): Remove argument TYPE. Update all users.
35212 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
35214 * ggc-none.c (ggc_alloc_typed_stat): Remove.
35215 (struct alloc_zone): Remove.
35216 (ggc_internal_alloc_zone_stat): Remove.
35217 (ggc_internal_cleared_alloc_zone_stat): Remove.
35218 * ggc-page.c (ggc_alloc_typed_stat): Remove.
35219 (ggc_pch_count_object): Remove last argument. Update all users.
35220 (ggc_pch_alloc_object): Remove last argument. Update all users.
35221 (struct alloc_zone): Remove.
35222 * ggc-zone.c: Remove.
35223 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
35224 (struct alloc_zone): Remove.
35225 (ggc_alloc_typed_stat): Remove.
35226 (ggc_alloc_typed): Remove.
35227 (ggc_splay_alloc): Remove first argument.
35228 (rtl_zone): Remove. Update all users.
35229 (tree_zone): Remove. Update all users.
35230 (tree_id_zone): Remove. Update all users.
35231 (ggc_internal_zone_alloc_stat): Remove. Update all users.
35232 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
35233 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
35234 * tree-ssanames.c: Remove references to zone allocator in comments.
35236 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
35238 * config/avr/avr.c (avr_out_fract): Make register numbers that
35239 might be outside of source operand signed.
35241 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
35243 * config/i386/constraints.md (Yf): New constraint.
35244 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
35245 of f constraint to conditionaly disable x87 register preferences.
35246 (*movdf_internal): Ditto.
35247 (*movsf_internal): Ditto.
35249 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
35251 PR inline-asm/55934
35252 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
35253 that have operands with impossible constraints.
35254 Add a FIXME for a speed-up opportunity.
35255 * lra-constraints.c (process_alt_operands): Verify that a class
35256 selected from constraints on asms is valid for the operand mode.
35257 (curr_insn_transform): Remove incorrect comment.
35259 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
35261 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
35262 TOC operand is a valid symbol ref in the constant pool.
35264 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
35266 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
35268 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
35271 * config/avr/stdfix.h: New file.
35272 * t-avr (stdfix-gcc.h): New rule to build it.
35273 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
35275 2013-01-23 Kostya Serebryany <kcc@google.com>
35277 * config/darwin.h: remove dependency on
35278 CoreFoundation (asan on Mac OS).
35280 2013-01-23 Jakub Jelinek <jakub@redhat.com>
35283 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
35284 instead of cmpdi_operand for first comparison operand.
35285 Don't assert that comparison operands aren't both constants.
35287 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
35289 * doc/install.texi (Downloading the Source): Update references to
35290 downloading separate components.
35292 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
35294 * doc/extend.texi (__int128): Improve grammar.
35296 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
35299 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
35300 alternative to (o,r).
35301 (*movdi_internal_rex64): Remove (!o,n) alternative.
35302 (DImode immediate->memory splitter): Remove.
35303 (DImode immediate->memory peephole2): Remove.
35304 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
35305 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
35306 alternative to (!o,*r).
35307 (*movtf_internal_sse): New pattern.
35308 (*movxf_internal_rex64): New pattern.
35309 (*movxf_internal): Disable for TARGET_64BIT.
35310 (*movdf_internal_rex64): Remove (!o,F) alternative.
35312 2013-01-22 Jakub Jelinek <jakub@redhat.com>
35314 PR middle-end/56074
35315 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
35316 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
35317 * tree-vect-loop-manip.c (find_loop_location): Also ignore
35318 stmt locations where LOCATION_LOCUS of the stmt location is
35319 UNKNOWN_LOCATION or BUILTINS_LOCATION.
35322 * config/i386/i386.md (UNSPEC_STOS): New.
35323 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
35324 *strsetqi_1): Add UNSPEC_STOS.
35326 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
35329 * doc/invoke.texi: Remove left over -Wsynth example.
35331 2013-01-21 Jakub Jelinek <jakub@redhat.com>
35333 PR tree-optimization/56051
35334 * fold-const.c (fold_binary_loc): Don't fold
35335 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
35336 a narrowing conversion, or widening conversion from signed
35339 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
35341 PR rtl-optimization/56023
35342 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
35343 dependent on debug instruction.
35345 2013-01-21 Martin Jambor <mjambor@suse.cz>
35347 PR middle-end/56022
35348 * function.c (allocate_struct_function): Call
35349 invoke_set_current_function_hook earlier.
35351 2013-01-21 Jakub Jelinek <jakub@redhat.com>
35353 * reload1.c (init_reload): Only initialize reload_obstack
35354 during the first call.
35356 2013-01-21 Marek Polacek <polacek@redhat.com>
35358 * cfgloop.c (verify_loop_structure): Fix up grammar.
35360 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
35362 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
35363 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
35365 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35368 * config/arm/marvell-pj4.md: Update copyright year.
35369 Fix up use of alu to alu_reg and simple_alu_imm.
35371 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
35373 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
35375 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
35378 * lra-constraints.c (curr_insn_transform): Don't reuse original
35379 insn for secondary memory move when memory mode should be different.
35381 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
35383 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
35384 atomic_storedi_1): New patterns.
35386 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
35388 btver2 pipeline descriptions.
35389 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
35391 * config/i386/i386.md (btver2_decode): New type attributes.
35392 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
35394 * config/i386/btver2.md: New file describing btver2 pipelines.
35396 2013-01-19 Andrew Pinski <apinski@cavium.com>
35398 PR tree-optimization/52631
35399 * tree-ssa-sccvn (visit_use): Before looking up the original
35400 statement, try looking up the simplified expression.
35402 2013-01-19 Anthony Green <green@moxielogic.com>
35404 * config/moxie/moxie.c (moxie_expand_prologue): Set
35405 current_function_static_stack_size.
35407 2013-01-18 Jakub Jelinek <jakub@redhat.com>
35409 PR tree-optimization/56029
35410 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
35411 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
35413 2013-01-18 Sharad Singhai <singhai@google.com>
35415 PR tree-optimization/55995
35416 * dumpfile.c (dump_loc): Print location only if available.
35417 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
35419 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
35422 * lra-constraints.c (curr_insn_transform): Reuse original insn for
35423 secondary memory move.
35424 (inherit_reload_reg): Use rclass instead of cl for
35425 check_secondary_memory_needed_p.
35427 2013-01-18 Jakub Jelinek <jakub@redhat.com>
35429 PR middle-end/56015
35430 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
35431 the case where writing real complex part of target modifies op1.
35433 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
35435 * config/aarch64/aarch64-simd.md
35436 (aarch64_vcond_internal<mode>): Handle unordered cases.
35437 * config/aarch64/iterators.md (v_cmp_result): New.
35439 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
35440 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35442 * config/arm/marvell-pj4.md: New file.
35443 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
35444 * config/arm/arm.md (generic_sched): Add marvell_pj4.
35445 (generic_vfp): Likewise.
35446 * config/arm/arm-cores.def: Add marvell-pj4.
35447 * config/arm/arm-tune.md: Regenerate.
35448 * config/arm/arm-tables.opt: Regenerate.
35449 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
35450 * doc/invoke.texi: Document marvell-pj4.
35452 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
35454 * config/aarch64/arm_neon.h: Map scalar types to standard types.
35456 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
35461 * var-tracking.c (negative_power_of_two_p): New.
35462 (global_get_addr_cache, local_get_addr_cache): New.
35463 (get_addr_from_global_cache, get_addr_from_local_cache): New.
35464 (vt_canonicalize_addr): Rewrite using the above. Adjust the
35466 (vt_stack_offset_p): Remove.
35467 (vt_canon_true_dep): Always canonicalize loc's address.
35468 (clobber_overlapping_mems): Make sure we have a MEM.
35469 (local_get_addr_clear_given_value): New.
35470 (val_reset): Clear local cached entries.
35471 (compute_bb_dataflow): Create and release the local cache.
35472 Disable duplicate MEMs clobbering.
35473 (emit_notes_in_bb): Clobber MEMs likewise.
35474 (vt_emit_notes): Create and release the local cache.
35475 (vt_initialize, vt_finalize): Create and release the global
35476 cache, respectively.
35477 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
35479 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
35481 PR libmudflap/53359
35482 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
35483 not found in the symtab.
35485 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
35488 PR rtl-optimization/55547
35489 PR rtl-optimization/53827
35492 * alias.c (offset_overlap_p): New, factored out of...
35493 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
35494 the conservative special case for symbolic constants. Don't
35495 adjust zero sizes on alignment.
35497 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
35499 PR rtl-optimization/52573
35500 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
35501 REG_UNUSED for the same register.
35503 2013-01-17 Richard Biener <rguenther@suse.de>
35504 Marek Polacek <polacek@redhat.com>
35506 PR rtl-optimization/55833
35507 * loop-unswitch.c (unswitch_loops): Move loop verification...
35508 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
35509 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
35510 Set it to true when we're removing a loop from hierarchy tree in
35511 an irreducible region.
35512 (fix_bb_placements): Adjust caller.
35513 (fix_loop_placements): Likewise.
35515 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
35517 * config/avr/builtins.def (DEF_BUILTIN): Factor out
35518 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
35519 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
35520 Remove ID. Adjust comments.
35521 * config/avr/avr-c.c (avr_builtin_name): Remove.
35522 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
35523 * config/avr/avr.c (avr_tolower): New static function.
35524 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
35525 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
35526 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
35529 2013-01-17 Jan Hubicka <jh@suse.cz>
35531 PR tree-optimization/55273
35532 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
35534 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
35537 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
35538 store through atomic_store<mode>_1.
35539 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
35541 2013-01-17 Martin Jambor <mjambor@suse.cz>
35543 PR tree-optimizations/55264
35544 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
35545 for virtual methods.
35546 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
35547 virtual methods before inlining is over.
35548 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
35550 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
35553 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
35555 PR rtl-optimization/56005
35556 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
35557 pending reads for prefetch.
35559 2013-01-16 Ian Bolton <ian.bolton@arm.com>
35561 * config/aarch64/aarch64.md
35562 (*cstoresi_neg_uxtw): New pattern.
35563 (*cmovsi_insn_uxtw): New pattern.
35564 (*<optab>si3_uxtw): New pattern.
35565 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
35566 (*<optab>si3_insn_uxtw): New pattern.
35567 (*bswapsi2_uxtw): New pattern.
35569 2013-01-16 Richard Biener <rguenther@suse.de>
35571 * tree-inline.c (tree_function_versioning): Remove set but
35572 never used variable.
35574 2013-01-16 Richard Biener <rguenther@suse.de>
35576 PR tree-optimization/55964
35577 * tree-flow.h (rename_variables_in_loop): Remove.
35578 (rename_variables_in_bb): Likewise.
35579 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
35580 (copy_loop_before): Adjust and delete update-ssa status.
35581 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
35582 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
35583 (rename_variables_in_loop): Remove.
35584 (slpeel_update_phis_for_duplicate_loop): Likewise.
35585 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
35586 use available cfg machinery instead of duplicating it.
35587 Update PHI nodes and perform poor-mans SSA update here.
35588 (slpeel_tree_peel_loop_to_edge): Adjust.
35590 2013-01-16 Richard Biener <rguenther@suse.de>
35592 PR tree-optimization/54767
35593 PR tree-optimization/53465
35594 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
35595 (vrp_visit_phi_node): For PHI arguments coming via backedges
35596 drop all symbolical range information.
35597 (execute_vrp): Compute backedges.
35599 2013-01-16 Richard Biener <rguenther@suse.de>
35601 * doc/install.texi: Update CLooG and ISL requirements to
35604 2013-01-16 Christian Bruel <christian.bruel@st.com>
35607 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
35608 (broken_move): Handle UNSPECV_SP_SWITCH_B.
35609 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
35611 2013-01-16 DJ Delorie <dj@redhat.com>
35613 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
35614 (UNSPECV_SP_SWITCH_E): New.
35615 (sp_switch_1): Change to an unspec.
35616 (sp_switch_2): Change to an unspec. Don't use post-inc when we
35619 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
35621 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
35622 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
35623 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
35624 (expand_mem_thread_fence): Ditto.
35625 (expand_mem_signal_fence): Ditto.
35626 (expand_atomic_load): Ditto.
35627 (expand_atomic_store): Ditto.
35629 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
35631 PR rtl-optimization/55547
35632 PR rtl-optimization/53827
35635 * alias.c (memrefs_conflict_p): Set sizes to negative after
35638 2013-01-15 Jakub Jelinek <jakub@redhat.com>
35641 * function.c (thread_prologue_and_epilogue_insns): Always
35642 add crtl->drap_reg to set_up_by_prologue.set, even if
35643 stack_realign_drap is false.
35645 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
35647 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
35648 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
35649 *call): Fix indention.
35651 2013-01-15 Tom de Vries <tom@codesourcery.com>
35654 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
35657 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
35659 PR rtl-optimization/55153
35660 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
35662 2013-01-15 Martin Jambor <mjambor@suse.cz>
35664 PR tree-optimization/55920
35665 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
35666 accesses as grp_to_be_debug_replaced.
35668 2013-01-15 Jakub Jelinek <jakub@redhat.com>
35670 PR tree-optimization/55920
35671 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
35672 there is non-useless type conversion needed from debug rhs to lhs,
35673 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
35675 2013-01-15 Joseph Myers <joseph@codesourcery.com>
35676 Mikael Pettersson <mikpe@it.uu.se>
35679 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
35681 (ASM_OUTPUT_CASE_LABEL): Remove.
35682 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
35683 * final.c (shorten_branches): Update alignment of labels before
35684 jump tables if CASE_VECTOR_SHORTEN_MODE.
35686 2013-01-15 Richard Biener <rguenther@suse.de>
35689 * system.h: Do not include gmp.h for building host tools.
35691 2013-01-15 Richard Biener <rguenther@suse.de>
35693 PR middle-end/55882
35694 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
35695 account for bitpos when computing alignment.
35697 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
35699 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
35700 (ix86_target_macros_internal): Likewise.
35702 * config/i386/i386.c (m_CORE2I7): Removed.
35703 (m_CORE_HASWELL): New macro.
35704 (m_CORE_ALL): Likewise.
35705 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
35706 (initial_ix86_arch_features): Likewise.
35707 (processor_target_table): Initializations for Core avx2.
35708 (cpu_names): New names "core-avx2".
35709 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
35710 PROCESSOR_CORE_HASWELL.
35711 (ix86_issue_rate): New case.
35712 (ia32_multipass_dfa_lookahead): Likewise.
35713 (ix86_sched_init_global): Likewise.
35715 * config/i386/i386.h (TARGET_HASWELL): New macro.
35716 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
35717 (processor_type): New PROCESSOR_HASWELL.
35719 2013-01-15 Jakub Jelinek <jakub@redhat.com>
35721 PR tree-optimization/55955
35722 * tree-vect-loop.c (vectorizable_reduction): Give up early on
35723 *SHIFT_EXPR and *ROTATE_EXPR codes.
35725 PR tree-optimization/48766
35726 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
35727 -ftrapv disable -fwrapv.
35729 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
35732 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
35733 etc. to 1 and not to __flash.
35734 Use LL suffix for __INT24_MAX__ with -mint8.
35735 Use ULL suffix for __UINT24_MAX__ with -mint8.
35737 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
35739 * config/avr/avr-arch.h
35740 (struct base_arch_s): Use typedef avr_arch_t instead.
35741 (struct arch_info_s): Use typedef avr_arch_info_t instead.
35742 (struct mcu_type_s): Use typedef avr_mcu_t instead.
35743 * config/avr/avr.c: Same.
35744 * config/avr/avr-devices.c: Same.
35745 * config/avr/driver-avr.c: Same.
35746 * config/avr/gen-avr-mmcu-texi.c: Same.
35747 * config/avr/avr-mcus.def: Adjust comment.
35749 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
35751 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
35752 * config/aarch64/iterators.md (VALLDI): New.
35754 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
35755 Andi Kleen <ak@linux.intel.com>
35758 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
35759 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
35762 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
35764 * config/avr/avr-stdint.h: Remove trailing blanks.
35765 * config/avr/avr-log.h: Same.
35766 * config/avr/avr-arch.h: Same.
35767 * config/avr/avr-devices.c: Same.
35768 * config/avr/avr-dimode.md: Same.
35769 * config/avr/predicates.md: Same.
35770 * config/avr/avr-c.c: Same. And fix typo.
35772 * config/avr/avr-protos.h: Same. And:
35773 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
35774 (init_cumulative_args): Rename to avr_init_cumulative_args.
35775 (expand_prologue): Rename to avr_expand_prologue.
35776 (expand_epilogue): Rename to avr_expand_epilogue.
35777 (adjust_insn_length): Rename to avr_adjust_insn_length.
35778 (notice_update_cc): Rename to avr_notice_update_cc.
35779 (final_prescan_insn): Rename to avr_final_prescan_insn.
35780 * config/avr/avr.c: Same.
35781 * config/avr/avr.h: Same.
35782 * config/avr/avr.md: Remove trailing blanks.
35783 (prologue): Use avr_expand_prologue.
35784 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
35786 2013-01-14 Richard Biener <rguenther@suse.de>
35788 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
35789 verify_location, collect_subblocks): New functions.
35790 (verify_gimple_in_cfg): Verify that locations only reference
35791 BLOCKs in the functions BLOCK tree.
35793 2013-01-14 Richard Biener <rguenther@suse.de>
35795 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
35797 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
35799 (insert_out_of_ssa_copy_on_edge): Likewise.
35800 (rewrite_close_phi_out_of_ssa): Likewise.
35801 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
35803 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
35804 propagated constants.
35805 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
35808 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
35810 * config/avr/avr-modes.def: Add GPL copyright notice.
35812 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
35814 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
35815 MEMMODEL_MASK to determine memory model.
35816 (atomic_store<mode>): Ditto from operands[2].
35817 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
35819 2013-01-13 Jakub Jelinek <jakub@redhat.com>
35822 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
35823 (fold_gimple_assign): Don't call unshare_expr here.
35824 (fold_ctor_reference): Call unshare_expr.
35826 2013-01-13 Terry Guo <terry.guo@arm.com>
35828 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
35829 * doc/fragments.texi: Document MULTILIB_REUSE.
35830 * gcc.c (multilib_reuse): New internal spec.
35831 (set_multilib_dir): Also search multilib from multilib_reuse.
35832 * genmultilib (tmpmultilib3): Refactor code.
35833 (tmpmultilib4): Ditto.
35834 (multilib_reuse): New multilib argument.
35836 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
35838 * Makefile.in: Update copyright.
35840 2013-01-12 Tom de Vries <tom@codesourcery.com>
35842 PR middle-end/55890
35843 * calls.c (expand_call): Check if arg_nr is valid.
35845 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
35847 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
35848 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
35849 documentation. Add missing '__' in front of
35850 __builtin_ia32_packssdw256.
35852 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35855 * config/s390/s390.c (s390_preferred_reload_class): Do not return
35856 NO_REGS for larl operands.
35857 (s390_reload_larl_operand): Use s390_load_address instead of
35860 2013-01-11 Richard Biener <rguenther@suse.de>
35862 * tree-cfg.c (verify_node_sharing_1): Split out from ...
35863 (verify_node_sharing): ... here.
35864 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
35866 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
35868 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
35869 Substitute TREECHECKING.
35870 * configure: Regenerate.
35871 * Makefile.in (TREECHECKING): New.
35873 2013-01-11 Richard Guenther <rguenther@suse.de>
35875 PR tree-optimization/44061
35876 * tree-vrp.c (extract_range_basic): Compute zero as
35877 value-range for __builtin_constant_p of function parameters.
35879 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
35881 Update copyright years.
35883 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
35885 PR rtl-optimization/55672
35886 * lra-eliminations.c (mark_not_eliminable): Permit addition with
35887 const to be eliminable.
35889 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
35891 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
35892 * configure: Regenerate.
35894 2013-01-10 Richard Biener <rguenther@suse.de>
35896 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
35898 2013-01-10 Richard Biener <rguenther@suse.de>
35901 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
35902 locations for virtual PHI arguments.
35903 (rewrite_update_phi_arguments): Likewise.
35905 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
35907 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
35910 2013-01-10 Jakub Jelinek <jakub@redhat.com>
35912 PR tree-optimization/55921
35913 * tree-complex.c (expand_complex_asm): New function.
35914 (expand_complex_operations_1): Call it for GIMPLE_ASM.
35916 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35919 * config/s390/s390.c (s390_symref_operand_p)
35920 (s390_loadrelative_operand_p): Merge the two functions.
35921 (s390_check_qrst_address, print_operand_address): Add parameters
35922 to s390_loadrelative_operand_p invokation.
35923 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
35924 (s390_reload_larl_operand, s390_secondary_reload): Use
35925 s390_loadrelative_operand_p instead of s390_symref_operand_p.
35926 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
35928 2013-01-09 Mike Stump <mikestump@comcast.net>
35930 * dse.c (record_store): Remove unnecessary assert.
35932 2013-01-09 Jan Hubicka <jh@suse.cz>
35934 PR tree-optimization/55569
35935 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
35936 * cfgloop.h (scale_loop_profile): Likewise.
35938 2013-01-09 Jan Hubicka <jh@suse.cz>
35941 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
35943 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
35945 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
35947 PR middle-end/55114
35948 * expr.h (maybe_emit_group_store): Declare.
35949 * expr.c (maybe_emit_group_store): New function.
35950 * builtins.c (expand_builtin_int_roundingfn): Call it.
35951 (expand_builtin_int_roundingfn_2): Likewise.
35953 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
35955 PR rtl-optimization/55829
35956 * lra-constraints.c (match_reload): Add code for absent output.
35957 (curr_insn_transform): Add code for reloads of matched inputs
35960 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
35962 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
35963 attribute of movddup insn to DF.
35964 (*vec_interleave_lowv2df): Ditto.
35965 (vec_dupv2df): Ditto.
35967 2013-01-09 Jan Hubicka <jh@suse.cz>
35969 PR tree-optimiation/55875
35970 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
35971 EVERY_ITERATION parameter.
35972 (number_of_iterations_exit): Check if exit is executed every iteration.
35973 (idx_infer_loop_bounds): Similarly here.
35974 (n_of_executions_at_most): Simplify
35975 to only test for cases where statement is dominated by the
35976 particular bound; handle correctly the "postdominance" test.
35977 (scev_probably_wraps_p): Use max loop iterations info
35978 as a global bound first.
35980 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
35981 Nick Clifton <nickc@redhat.com>
35983 * config/v850/v850.md (cbranchsf4): New pattern.
35984 (cstoresf4): New pattern.
35985 (cbranchdf4): New pattern.
35986 (cstoredf4): New pattern.
35987 (movsicc): Disallow floating point comparisons.
35988 (cmpsf_le_insn): Fix order of operators.
35989 (cmpsf_lt_insn): Likewise.
35990 (cmpsf_eq_insn): Likewise.
35991 (cmpdf_le_insn): Likewise.
35992 (cmpdf_lt_insn): Likewise.
35993 (cmpdf_eq_insn): Likewise.
35994 (cmpsf_ge_insn): Use LE comparison.
35995 (cmpdf_ge_insn): Likewise.
35996 (cmpsf_gt_insn): Use LT comparison.
35997 (cmpdf_gt_insn): Likewise.
35998 (cmpsf_ne_insn): Delete pattern.
35999 (cmpdf_ne_insn): Delete pattern.
36000 * config/v850/v850.c (v850_gen_float_compare): Use
36001 gen_cmpdf_eq_insn for NE comparison.
36002 (v850_float_z_comparison_operator)
36003 (v850_float_nz_comparison_operator): Move from here ...
36004 * config/v850/predicates.md: ... to here. Move GT and GE
36005 comparisons into v850_float_z_comparison_operator.
36006 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
36008 (v850_float_nz_comparison_operator): Likewise.
36010 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
36012 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
36013 with calls to gen_insvsi/gen_insvdi.
36015 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
36017 * config/i386/i386.c (initial_ix86_tune_features): Set up
36018 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
36020 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
36021 Jakub Jelinek <jakub@redhat.com>
36023 PR tree-optimization/48189
36024 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
36025 If nitercst is 0, don't predict the exit edge.
36027 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
36029 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
36030 in asm_fprintf with reg_names.
36031 (aarch64_print_operand_address): Likewise.
36032 (aarch64_return_addr): Likewise.
36033 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
36035 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
36037 * config/pa/pa.h (VAL_U6_BITS_P): Define.
36038 (INT_U6_BITS): Likewise.
36039 * config/pa/predicates.md (uint6_operand): New predicate.
36040 (shift5_operand, shift6_operand): Likewise.
36041 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
36043 (lshrdi3): Use shift6_operand.
36044 (shrpsi4, shrpdi4): New insn patterns.
36045 (extzv): Delete expander.
36046 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
36047 predicates in unamed zero extract patterns. Tighten common constraint.
36048 (extv): Delete expander.
36049 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
36050 predicates in unamed sign extract patterns. Tighten common constraint.
36051 (insv): Delete expander.
36052 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
36053 predicates in unamed insert patterns. Tighten common constraint.
36054 Change uint32_operand predicate to uint6_operand predicate in unamed
36055 DImode pattern to insert constant values of type 1...1xxxx.
36057 2013-01-04 Jan Hubicka <jh@suse.cz>
36059 PR tree-optimization/55823
36060 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
36063 2013-01-08 Jakub Jelinek <jakub@redhat.com>
36064 Uros Bizjak <ubizjak@gmail.com>
36066 PR rtl-optimization/55845
36067 * df-problems.c (can_move_insns_across): Stop scanning at
36068 volatile_insn_p source instruction or give up if
36069 across_from .. across_to range contains any volatile_insn_p
36072 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
36074 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
36075 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
36077 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
36078 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
36080 2013-01-08 Jakub Jelinek <jakub@redhat.com>
36083 * asan.c (asan_clear_shadow): New function.
36084 (asan_emit_stack_protection): Use it.
36086 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
36088 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
36089 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
36090 with tab instead of space.
36092 2013-01-08 Nick Clifton <nickc@redhat.com>
36094 * config/rl78/rl78.c (rl78_expand_prologue): Always select
36095 register bank 0 at the start of an interrupt handler.
36096 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
36099 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
36101 * config/aarch64/aarch64-simd.md
36102 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
36103 (aarch64_simd_bsl): Likewise.
36104 (aarch64_vcond_internal<mode>): Likewise.
36105 (vcond<mode><mode>): Likewise.
36106 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
36107 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
36109 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
36111 * config/aarch64/aarch64-builtins.c
36112 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
36114 2013-01-08 Martin Jambor <mjambor@suse.cz>
36117 * tree-sra.c (analyze_access_subtree): Return true also after
36118 potentially creating a debug-only replacement.
36120 2013-01-08 Jakub Jelinek <jakub@redhat.com>
36122 PR middle-end/55890
36123 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
36125 PR tree-optimization/54120
36126 * tree-vrp.c (range_fits_type_p): Don't allow
36127 src_precision < precision from signed vr to unsigned_p
36128 if vr->min or vr->max is negative.
36129 (simplify_float_conversion_using_ranges): Test can_float_p
36130 against CODE_FOR_nothing.
36132 2013-01-08 Jakub Jelinek <jakub@redhat.com>
36133 Richard Biener <rguenther@suse.de>
36135 PR middle-end/55851
36136 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
36137 types instead of just INTEGER_TYPE types.
36139 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
36141 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
36144 2013-01-07 Steve Ellcey <sellcey@mips.com>
36147 * config/mips/mips.opt: Change mad to mmad to match documentation.
36149 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
36152 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
36153 .progmemx.data now.
36155 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
36158 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
36159 (avr_addrspace_t): Add .section_name field.
36160 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
36162 (avr_addrspace): Same. Initialize .section_name. Remove last
36163 NULL entry. Put __memx into .progmemx.data.
36164 (progmem_section_prefix): Remove.
36165 (avr_asm_init_sections): No need to initialize progmem_section.
36166 (avr_asm_named_section): Use avr_addrspace[].section_name to get
36167 section name prefix.
36168 (avr_asm_select_section): Ditto. And use get_unnamed_section to
36169 retrieve the progmem section.
36170 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
36171 boundary to run over avr_addrspace[].
36172 (avr_register_target_pragmas): Ditto.
36174 2013-01-06 Jakub Jelinek <jakub@redhat.com>
36176 * varasm.c (output_constant_def_contents): For asan_protect_global
36177 protected strings, adjust DECL_ALIGN if needed, before testing for
36179 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
36180 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
36182 (output_object_block): For asan protected decls, emit asan padding
36183 after their contents.
36184 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
36185 (asan_finish_file): Test it here instead.
36187 2013-01-07 Nick Clifton <nickc@redhat.com>
36188 Matthias Klose <doko@debian.org>
36189 Doug Kwan <dougkwan@google.com>
36190 H.J. Lu <hongjiu.lu@intel.com>
36193 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
36195 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
36197 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
36199 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
36201 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
36203 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
36206 * doc/install.texi (Cross-Compiler-Specific Options): Document
36209 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
36211 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
36212 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
36213 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
36214 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
36215 vqmovun_high_s64): Fix source operand number and update copyright.
36217 2013-01-07 Richard Biener <rguenther@suse.de>
36219 PR middle-end/55890
36220 * gimple.h (gimple_call_builtin_p): New overload.
36221 * gimple.c (validate_call): New function.
36222 (gimple_call_builtin_p): Likewise.
36223 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
36224 Use gimple_call_builtin_p.
36225 (find_func_clobbers): Likewise.
36226 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
36227 (strlen_optimize_stmt): Likewise.
36229 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
36231 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
36232 (vld1q_dup_*): Likewise.
36233 (vld1_*): Likewise.
36234 (vld1q_*): Likewise.
36235 (vld1_lane_*): Likewise.
36236 (vld1q_lane_*): Likewise.
36238 2013-01-07 Richard Biener <rguenther@suse.de>
36240 * lto-streamer.h (LTO_minor_version): Bump to 2.
36242 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
36244 * config/aarch64/aarch64-protos.h
36245 (aarch64_const_double_zero_rtx_p): Rename to...
36246 (aarch64_float_const_zero_rtx_p): ...this.
36247 (aarch64_float_const_representable_p): New.
36248 (aarch64_output_simd_mov_immediate): Likewise.
36249 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
36250 move immediate case.
36251 * config/aarch64/aarch64.c
36252 (aarch64_const_double_zero_rtx_p): Rename to...
36253 (aarch64_float_const_zero_rtx_p): ...this.
36254 (aarch64_print_operand): Allow printing of new constants.
36255 (aarch64_valid_floating_const): New.
36256 (aarch64_legitimate_constant_p): Check for valid floating-point
36258 (aarch64_simd_valid_immediate): Likewise.
36259 (aarch64_vect_float_const_representable_p): New.
36260 (aarch64_float_const_representable_p): Likewise.
36261 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
36262 (aarch64_output_simd_mov_immediate): New.
36263 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
36264 (*movdf_aarch64): Likewise.
36265 * config/aarch64/constraints.md (Ufc): New.
36266 (Y): call aarch64_float_const_zero_rtx.
36267 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
36269 2013-01-07 Richard Biener <rguenther@suse.de>
36271 PR tree-optimization/55888
36272 PR tree-optimization/55862
36273 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
36274 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
36275 not if it is contained therein.
36277 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
36279 * config/avr/t-avr: Typo.
36281 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
36284 * config/avr/t-avr: Don't automatically rebuild
36285 $(srcdir)/config/avr/t-multilib
36286 $(srcdir)/config/avr/avr-tables.opt
36287 $(srcdir)/doc/avr-mmcu.texi
36288 (avr-mcus): New phony target to build them on request.
36289 (s-avr-mlib, s-avr-mmcu-texi): Remove.
36290 * avr/avr-mcus.def: Adjust comments.
36292 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
36294 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
36296 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
36298 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
36300 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
36302 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
36304 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
36306 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
36307 to generate profiling.
36308 * config/rs6000/aix64.h (LIB_SPEC): Same.
36310 2013-01-04 Andrew Pinski <apinski@cavium.com>
36312 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
36314 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
36316 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
36318 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
36320 (ix86_expand_move): Ditto.
36321 (ix86_zero_extend_to_Pmode): Ditto.
36322 (ix86_expand_call): Ditto.
36323 (ix86_expand_special_args_builtin): Ditto.
36324 (ix86_expand_builtin): Ditto.
36326 2013-01-04 Richard Biener <rguenther@suse.de>
36328 PR tree-optimization/55862
36329 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
36330 translating them through PHI nodes.
36332 2013-01-04 Martin Jambor <mjambor@suse.cz>
36334 PR tree-optimization/55755
36335 * tree-sra.c (sra_modify_assign): Do not check that an access has no
36336 children when trying to avoid producing a VIEW_CONVERT_EXPR.
36338 2013-01-04 Marek Polacek <polacek@redhat.com>
36340 PR middle-end/55859
36341 * opts.c (default_options_optimization): Clarify error message.
36343 2013-01-04 Richard Biener <rguenther@suse.de>
36345 PR middle-end/55863
36346 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
36349 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
36352 * config/pa/pa.md (movsi): Revert previous change.
36353 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
36356 2013-01-03 Richard Henderson <rth@redhat.com>
36358 * config/i386/i386.c (ix86_expand_move): Always assign to op1
36359 after eliminating TLS symbols.
36361 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
36364 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
36365 * graphite-poly.c (debug_gmp_value): Likewise.
36367 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
36370 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
36371 selected code model, define __code_mode_small__, __code_model_medium__,
36372 __code_model_large__, __code_model_32__ or __code_model_kernel__.
36373 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
36374 xchg temporary register with %k. Declare temporary register as
36376 [__x86_64__]: For medium and large code models, preserve %rbx register.
36378 2013-01-03 Richard Biener <rguenther@suse.de>
36380 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
36381 (dump_subscript): Adjust.
36382 (finalize_ddr_dependent): Do not dump redundant info.
36383 (analyze_siv_subscript): Adjust.
36384 (subscript_dependence_tester): Likewise.
36385 (compute_affine_dependence): Likewise.
36387 2013-01-03 Richard Biener <rguenther@suse.de>
36390 2013-01-03 Richard Biener <rguenther@suse.de>
36392 PR tree-optimization/55857
36393 * tree-vect-stmts.c (vectorizable_load): Do not setup
36394 re-alignment for invariant loads.
36396 2013-01-02 Richard Biener <rguenther@suse.de>
36398 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
36399 invariant load do not generate a vector load from the scalar location.
36401 2013-01-03 Richard Biener <rguenther@suse.de>
36403 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
36404 for not vectorizing.
36405 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
36406 not build INDIRECT_REFs, call get_name once only.
36407 (vect_create_data_ref_ptr): Likewise. Dump base object kind
36408 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
36410 2013-01-03 Richard Biener <rguenther@suse.de>
36412 PR tree-optimization/55857
36413 * tree-vect-stmts.c (vectorizable_load): Do not setup
36414 re-alignment for invariant loads.
36416 2013-01-03 Richard Biener <rguenther@suse.de>
36419 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
36420 prefer a built-in decl.
36422 2013-01-03 Jakub Jelinek <jakub@redhat.com>
36424 * gcc.c (process_command): Update copyright notice dates.
36425 * gcov.c (print_version): Likewise.
36426 * gcov-dump.c (print_version): Likewise.
36428 PR rtl-optimization/55838
36429 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
36430 iv0.step, iv1.step and step.
36432 2013-01-03 Jakub Jelinek <jakub@redhat.com>
36433 Marc Glisse <marc.glisse@inria.fr>
36435 PR tree-optimization/55832
36436 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
36437 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
36438 integer_{one,zero}_node.
36440 2013-01-03 Jakub Jelinek <jakub@redhat.com>
36443 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
36444 * var-tracking.c (reverse_op): Don't add reverse ops to
36445 VALUEs that have already
36446 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
36448 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
36450 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
36452 2013-01-02 Teresa Johnson <tejohnson@google.com>
36454 * dumpfile.c (dump_loc): Print filename with location.
36455 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
36456 new location_t parameter to emit complete unroll message with
36457 new dump framework.
36458 (canonicalize_loop_induction_variables): Compute loops location
36459 and pass to try_unroll_loop_completely.
36460 * loop-unroll.c (report_unroll_peel): New function.
36461 (peel_loops_completely): Use new dump format with location
36462 for main dumpfile message, and invoke report_unroll_peel on success.
36463 (decide_unrolling_and_peeling): Ditto.
36464 (decide_peel_once_rolling): Remove old dumpfile message subsumed
36465 by report_unroll_peel.
36466 (decide_peel_completely): Ditto.
36467 (decide_unroll_constant_iterations): Ditto.
36468 (decide_unroll_runtime_iterations): Ditto.
36469 (decide_peel_simple): Ditto.
36470 (decide_unroll_stupid): Ditto.
36471 * cfgloop.c (get_loop_location): New function.
36472 * cfgloop.h (get_loop_location): Declare.
36474 2013-01-02 Sriraman Tallam <tmsriram@google.com>
36476 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
36479 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
36481 PR middle-end/55198
36482 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
36483 BLKmode objects when EXPAND_MEMORY is specified.
36485 2013-01-02 Sriraman Tallam <tmsriram@google.com>
36487 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
36489 (fold_builtin_cpu): Do not share cpu model decls across statements.
36491 2013-01-02 Jason Merrill <jason@redhat.com>
36494 * tree.c (build_array_type_1): Revert earlier change.
36496 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
36498 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
36500 * config/aarch64/aarch64-tune.md: Re-generate.
36502 2013-01-02 Richard Biener <rguenther@suse.de>
36504 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
36505 invariant load do not generate a vector load from the scalar location.
36507 2013-01-02 Richard Biener <rguenther@suse.de>
36510 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
36511 * configure: Regenerate.
36513 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
36515 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
36516 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
36517 (expand_builtin_int_roundingfn_2): Keep the original target around
36518 for the fallback case.
36520 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
36522 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
36523 to be clear for sign changes.
36525 2013-01-01 Jan Hubicka <jh@suse.cz>
36527 * ipa-inline-analysis.c: Fix formatting.
36529 2013-01-01 Jakub Jelinek <jakub@redhat.com>
36531 PR tree-optimization/55831
36532 * tree-vect-loop.c (get_initial_def_for_induction): Use
36533 gsi_after_labels instead of gsi_start_bb.
36535 Copyright (C) 2013 Free Software Foundation, Inc.
36537 Copying and distribution of this file, with or without modification,
36538 are permitted in any medium without royalty provided the copyright
36539 notice and this notice are preserved.