1 2016-11-21 Segher Boessenkool <segher@kernel.crashing.org>
3 PR rtl-optimization/78400
4 * shrink-wrap.c (try_shrink_wrapping_separate): Call
5 df_update_entry_exit_and_calls instead of df_update_entry_block_defs
6 and df_update_exit_block_uses.
8 2016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
11 * doc/invoke.texi (-Wno-builtin-declaration-mismatch): Document the
12 new default-enabled warning..
13 * builtin-types.def (BT_CONST_TM_PTR): New primitive type.
14 (BT_PTR_CONST_STRING): Updated.
15 (BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR): Removed.
16 (BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_TM_PTR): New function type.
17 * builtins.def (DEF_TM_BUILTIN): Disable BOTH_P for TM builtins.
18 (strftime): Update builtin function.
19 * tree-core.h (TI_CONST_TM_PTR_TYPE): New enum value.
20 * tree.h (const_tm_ptr_type_node): New type node.
21 * tree.c (free_lang_data, build_common_tree_nodes): Initialize
22 const_tm_ptr_type_node.
24 2016-11-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26 PR tree-optimization/78413
27 * tree-if-conv.c (versionable_outer_loop_p): Require that both
28 inner and outer loop latches have single predecessors.
30 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
33 * config/avr/avr.c (avr_decl_maybe_lds_p): New static function.
34 (avr_encode_section_info) [TARGET_ABSDATA && AVR_TINY]: Use it.
36 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
38 * rtl.h: Adjust prototype.
39 * rtlanal.c (dead_or_set_p): Change argument type to rtx_insn *.
40 (dead_or_set_regno_p): Likewise.
42 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
44 * rtl.h: Adjust prototype.
45 * rtlanal.c (add_int_reg_note): Change argument type to rtx_insn *.
47 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
49 * function.c (contains): Change argument type to rtx_insn *.
50 (prologue_contains): Likewise.
51 (epilogue_contains): Likewise.
52 (prologue_epilogue_contains): Likewise.
53 * function.h: Adjust prototype.
55 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
57 * optabs.c (emit_libcall_block): Change argument type to
59 * optabs.h: Adjust prototype.
61 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
63 * cfgrtl.c (delete_insn): Change argument type to rtx_insn *.
64 (fixup_reorder_chain): Adjust.
65 * cfgrtl.h: Adjust prototype.
67 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
69 * rtl.h: Adjust prototype.
70 * rtlanal.c (replace_label_in_insn): Change argument type to
73 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
75 * config/v850/v850.c (expand_prologue): Adjust.
76 (expand_epilogue): Likewise.
77 * expr.c (init_expr_target): Likewise.
78 * genrecog.c (print_subroutine): Always make the argument type
80 * recog.h: Adjust prototype.
82 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
84 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): split
85 up variables to make some rtx_insn *.
86 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
87 * config/arc/arc.c: Likewise.
88 * config/arm/arm.c: Likewise.
89 * config/mn10300/mn10300.c (mn10300_legitimize_pic_address):
91 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue):
93 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
95 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
97 * config/arm/arm.c (legitimize_pic_address): Change to use
98 rtx_insn * as the type of variables.
99 (arm_pic_static_addr): Likewise.
100 (arm_emit_movpair): Likewise.
101 * config/c6x/c6x.c (reorg_split_calls): Likewise.
102 * config/darwin.c (machopic_legitimize_pic_address): Likewise.
103 * config/frv/frv.c (frv_optimize_membar_local): Likewise.
104 * config/frv/frv.md: Likewise.
105 * config/i386/i386-protos.h: Likewise.
106 * config/i386/i386.c (ix86_expand_split_stack_prologue):
108 (ix86_split_fp_branch): Likewise.
109 (predict_jump): Likewise.
110 * config/ia64/ia64.c: Likewise.
111 * config/mcore/mcore.c: Likewise.
112 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
114 * config/s390/s390.c: Likewise.
115 * config/s390/s390.md: Likewise.
116 * config/spu/spu.md: Likewise.
117 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address):
119 * lower-subreg.c (resolve_simple_move): Likewise.
121 2016-11-20 Jeff Law <law@redhat.com>
124 * reload.h (struct target_reload): Make x_double_reg_address_ok
126 * reload.c (find_reloads_address): Check if double_reg_address_ok
127 is true for the mode of the memory reference.
128 * reload1.c (init_reload): Initialize double_reg_address_ok for
131 2016-11-20 Aldy Hernandez <aldyh@redhat.com>
134 * tree-ssa-uninit.c: Define new global max_phi_args.
135 (compute_uninit_opnds_pos): Use max_phi_args.
136 (prune_uninit_phi_opnds): Same.
137 (use_pred_not_overlap_with_undef_path_pred): Remove reference to
138 missing NUM_PREDS in function comment.
139 (can_one_predicate_be_invalidated_p): New.
140 (can_chain_union_be_invalidated_p): New.
141 (flatten_out_predicate_chains): New.
142 (uninit_ops_invalidate_phi_use): New.
143 (is_use_properly_guarded): Call uninit_ops_invalidate_phi_use.
145 2016-11-20 Marc Glisse <marc.glisse@inria.fr>
147 * fold-const.c (fold_comparison): Ignore EXACT_DIV_EXPR.
148 * match.pd (A /[ex] B CMP C): New simplifications.
150 2016-11-20 Marc Glisse <marc.glisse@inria.fr>
152 * match.pd (0 / X, X / X, X % X): New simplifications.
154 2016-11-19 Jakub Jelinek <jakub@redhat.com>
156 * config/i386/i386.c (ix86_can_inline_p): Use || instead of &
157 when checking if callee's isa flags are subset of caller's isa flags.
160 * config/i386/i386.c (ix86_valid_target_attribute_tree): Don't
161 clear opts->x_ix86_isa_flags, clear opts->x_ix86_isa_flags2
162 instead and using = 0 instead of &= 0.
164 * config/i386/i386.c (def_builtin, def_builtin2, def_builtin_const2,
165 ix86_add_new_builtins): Formatting fixes.
166 (ix86_expand_builtin): Use || instead of && for isa vs. isa2.
167 (ix86_get_builtin): Likewise.
169 * config/i386/i386.c (ix86_expand_builtin): Remove msk_mov variable,
170 don't initialize it, don't use it for the case where it isn't
171 provable %{z} nor using the same argument, instead move merge
172 argument into a new pseudo and use that as target. Formatting fixes.
174 2016-11-19 Jeff Law <law@redhat.com>
177 * config/m68k/m68k.md (bsetdreg): New pattern.
178 (bchgdreg, bclrdreg): Likewise.
180 2016-11-19 Kaz Kojima <kkojima@gcc.gnu.org>
183 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Use copy_to_mode_reg
184 instead of force_reg.
185 (sh_expand_setmem): Likewise.
187 2016-11-19 Krister Walfridsson <krister.walfridsson@gmail.com>
189 * config.gcc (*-*-netbsd): Set use_gcc_stdint=wrap.
191 2016-11-18 Walter Lee <walt@tilera.com>
193 * config/tilegx/tilegx.c (tilegx_gen_bundles): Preserve
194 end-of-bundle marker for consecutive barriers.
196 2016-11-18 Walter Lee <walt@tilera.com>
198 * config/tilegx/tilegx.md (clzsi2): Fix for big-endian.
200 2016-11-18 Jakub Jelinek <jakub@redhat.com>
203 * multiple_target.c (get_attr_len): Start with argnum and increment
204 argnum on every arg. Use strchr in a loop instead of counting commas
206 (get_attr_str): Increment argnum for every comma in the string.
207 (separate_attrs): Use for instead of while loop, simplify.
208 (expand_target_clones): Rename defenition argument to definition.
209 Free attrs and attr_str even when diagnosing errors. Temporarily
210 change input_location around targetm.target_option.valid_attribute_p
211 calls. Don't emit warning or errors if that function fails.
213 * dwarf2out.c (size_of_discr_list): Fix typo in function comment.
216 * dwarf2out.c (abbrev_opt_base_type_end): New variable.
217 (die_abbrev_cmp): Sort dies with die_abbrev smaller than
218 abbrev_opt_base_type_end only by increasing die_abbrev, before
220 (optimize_abbrev_table): Don't change abbrev numbers of
221 base types and CU or optimize implicit consts in them if
222 calc_base_type_die_sizes has been called during build_abbrev_table.
223 (calc_base_type_die_sizes): If abbrev_opt_start, set
224 abbrev_opt_base_type_end to one plus largest base type's
227 2016-11-18 Jeff Law <law@redhat.com>
230 * config/m68k/m68k.c (moveq feeding equality comparison): New
232 * config/m68k/predicates.md (addq_subq_operand): New predicate.
233 (equality_comparison_operator): Likewise.
235 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
237 * rtlanal.c (load_extend_op): Move to...
238 * rtl.h: ...here and make inline.
240 2016-11-18 Terry Guo <terry.guo@arm.com>
241 Thomas Preud'homme <thomas.preudhomme@arm.com>
243 * common/config/arm/arm-common.c (arm_target_thumb_only): New function.
244 * config/arm/arm-opts.h: Include arm-flags.h.
245 (struct arm_arch_core_flag): Define.
246 (arm_arch_core_flags): Define.
247 * config/arm/arm-protos.h: Include arm-flags.h
248 (FL_NONE, FL_ANY, FL_CO_PROC, FL_ARCH3M, FL_MODE26, FL_MODE32,
249 FL_ARCH4, FL_ARCH5, FL_THUMB, FL_LDSCHED, FL_STRONG, FL_ARCH5E,
250 FL_XSCALE, FL_ARCH6, FL_VFPV2, FL_WBUF, FL_ARCH6K, FL_THUMB2, FL_NOTM,
251 FL_THUMB_DIV, FL_VFPV3, FL_NEON, FL_ARCH7EM, FL_ARCH7, FL_ARM_DIV,
252 FL_ARCH8, FL_CRC32, FL_SMALLMUL, FL_NO_VOLATILE_CE, FL_IWMMXT,
253 FL_IWMMXT2, FL_ARCH6KZ, FL2_ARCH8_1, FL2_ARCH8_2, FL2_FP16INST,
254 FL_TUNE, FL_FOR_ARCH2, FL_FOR_ARCH3, FL_FOR_ARCH3M, FL_FOR_ARCH4,
255 FL_FOR_ARCH4T, FL_FOR_ARCH5, FL_FOR_ARCH5T, FL_FOR_ARCH5E,
256 FL_FOR_ARCH5TE, FL_FOR_ARCH5TEJ, FL_FOR_ARCH6, FL_FOR_ARCH6J,
257 FL_FOR_ARCH6K, FL_FOR_ARCH6Z, FL_FOR_ARCH6ZK, FL_FOR_ARCH6KZ,
258 FL_FOR_ARCH6T2, FL_FOR_ARCH6M, FL_FOR_ARCH7, FL_FOR_ARCH7A,
259 FL_FOR_ARCH7VE, FL_FOR_ARCH7R, FL_FOR_ARCH7M, FL_FOR_ARCH7EM,
260 FL_FOR_ARCH8A, FL2_FOR_ARCH8_1A, FL2_FOR_ARCH8_2A, FL_FOR_ARCH8M_BASE,
261 FL_FOR_ARCH8M_MAIN, arm_feature_set, ARM_FSET_MAKE,
262 ARM_FSET_MAKE_CPU1, ARM_FSET_MAKE_CPU2, ARM_FSET_CPU1, ARM_FSET_CPU2,
263 ARM_FSET_EMPTY, ARM_FSET_ANY, ARM_FSET_HAS_CPU1, ARM_FSET_HAS_CPU2,
264 ARM_FSET_HAS_CPU, ARM_FSET_ADD_CPU1, ARM_FSET_ADD_CPU2,
265 ARM_FSET_DEL_CPU1, ARM_FSET_DEL_CPU2, ARM_FSET_UNION, ARM_FSET_INTER,
266 ARM_FSET_XOR, ARM_FSET_EXCLUDE, ARM_FSET_IS_EMPTY,
267 ARM_FSET_CPU_SUBSET): Move to ...
268 * config/arm/arm-flags.h: This new file.
269 * config/arm/arm.h (TARGET_MODE_SPEC_FUNCTIONS): Define.
270 (EXTRA_SPEC_FUNCTIONS): Add TARGET_MODE_SPEC_FUNCTIONS to its value.
271 (TARGET_MODE_SPECS): Define.
272 (DRIVER_SELF_SPECS): Add TARGET_MODE_SPECS to its value.
274 2016-11-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
276 * config/arm/arm-protos.h (FL_NONE, FL_ANY, FL_CO_PROC, FL_ARCH3M,
277 FL_MODE26, FL_MODE32, FL_ARCH4, FL_ARCH5, FL_THUMB, FL_LDSCHED,
278 FL_STRONG, FL_ARCH5E, FL_XSCALE, FL_ARCH6, FL_VFPV2, FL_WBUF,
279 FL_ARCH6K, FL_THUMB2, FL_NOTM, FL_THUMB_DIV, FL_VFPV3, FL_NEON,
280 FL_ARCH7EM, FL_ARCH7, FL_ARM_DIV, FL_ARCH8, FL_CRC32, FL_SMALLMUL,
281 FL_NO_VOLATILE_CE, FL_IWMMXT, FL_IWMMXT2, FL_ARCH6KZ, FL2_ARCH8_1,
282 FL2_ARCH8_2, FL2_FP16INST): Reindent comment, add final dot when
283 missing and make value unsigned.
284 (arm_feature_set): Use unsigned entries instead of unsigned long.
286 2016-11-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
288 Re-apply after PR bootstrap/77359 is fixed:
289 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
291 * explow.c (get_dynamic_stack_size): Take known alignment of stack
292 pointer + STACK_DYNAMIC_OFFSET into account when calculating the
295 2016-11-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
298 * config/rs6000/rs6000.c (rs6000_stack_info): Properly align local
299 variables in functions calling alloca. Also update the ASCII
301 * config/rs6000/rs6000.h (STARTING_FRAME_OFFSET)
302 (STACK_DYNAMIC_OFFSET): Likewise.
303 * config/rs6000/aix.h (STARTING_FRAME_OFFSET)
304 (STACK_DYNAMIC_OFFSET): Copy AIX specific versions of the rs6000.h
307 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
308 Alan Hayward <alan.hayward@arm.com>
309 David Sherwood <david.sherwood@arm.com>
311 * combine.c (try_combine): Use rtx_mode_t instead of std::make_pair.
312 * dwarf2out.c (mem_loc_descriptor, loc_descriptor): Likewise.
313 (add_const_value_attribute): Likewise.
314 * explow.c (plus_constant): Likewise.
315 * expmed.c (expand_mult, make_tree): Likewise.
316 * expr.c (convert_modes): Likewise.
317 * loop-doloop.c (doloop_optimize): Likewise.
318 * postreload.c (reload_cse_simplify_set): Likewise.
319 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
320 (simplify_binary_operation_1, simplify_const_binary_operation):
321 (simplify_const_relational_operation, simplify_immed_subreg): Likewise.
322 * wide-int.h: Update documentation to recommend rtx_mode_t
323 instead of std::make_pair.
325 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
326 Alan Hayward <alan.hayward@arm.com>
327 David Sherwood <david.sherwood@arm.com>
329 * tree.h (SET_DECL_MODE): New macro.
330 * cfgexpand.c (avoid_deep_ter_for_debug): Use SET_DECL_MODE.
331 (expand_gimple_basic_block): Likewise.
332 * function.c (split_complex_args): Likeise.
333 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
334 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Likewise.
335 * stor-layout.c (layout_decl, relayout_decl): Likewise.
336 (finish_bitfield_representative): Likewise.
337 * tree.c (make_node_stat): Likewise.
338 * tree-inline.c (remap_ssa_name): Likewise.
339 (tree_function_versioning): Likewise.
340 * tree-into-ssa.c (rewrite_debug_stmt_uses): Likewise.
341 * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
342 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
343 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Likewise.
344 * tree-ssa.c (insert_debug_temp_for_var_def): Likewise.
345 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
346 * varasm.c (make_debug_expr_from_rtl): Likewise.
348 2016-11-18 Segher Boessenkool <segher@kernel.crashing.org>
350 PR rtl-optimization/71785
351 * bb-reorder.c (maybe_duplicate_computed_goto): New function.
352 (duplicate_computed_gotos): New function.
353 (pass_duplicate_computed_gotos::execute): Rewrite.
355 2016-11-17 Jeff Law <law@redhat.com>
358 * config/m68k/m68k.c (m68k_expand_epilogue): Emit a scheduling
359 barrier prior to deallocating the stack.
361 2016-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
363 * config/arc/arc.md (cmem bit/sign-extend peephole2): New peephole
364 to make better use of cmem loads in the case where a single bit is
366 * config/arc/predicates.md (ge_lt_comparison_operator): New
369 2016-11-17 Andrew Senkevich <andrew.senkevich@intel.com>
371 * config/i386/i386.c (processor_features): Add F_AVX5124VNNIW,
373 (isa_names_table): Handle new features.
375 2016-11-17 Kirill Yukhin <kirill.yukhin@gmail.com>
376 Andrew Senkevich <andrew.senkevich@intel.com>
378 * common/config/i386/i386-common.c
379 (OPTION_MASK_ISA_AVX5124FMAPS_SET,
380 OPTION_MASK_ISA_AVX5124FMAPS_UNSET,
381 OPTION_MASK_ISA_AVX5124VNNIW_SET,
382 OPTION_MASK_ISA_AVX5124VNNIW_UNSET): New.
383 (ix86_handle_option): Handle OPT_mavx5124fmaps,
385 * config.gcc: Add avx5124fmapsintrin.h, avx5124vnniwintrin.h.
386 * config/i386/avx5124fmapsintrin.h: New file.
387 * config/i386/avx5124vnniwintrin.h: Ditto.
388 * config/i386/constraints.md (h): New constraint.
389 * config/i386/cpuid.h: (bit_AVX5124VNNIW,
390 bit_AVX5124FMAPS): New.
391 * config/i386/driver-i386.c (host_detect_local_cpu):
392 Detect avx5124fmaps, avx5124vnniw.
393 * config/i386/i386-builtin-types.def: Add types
394 V16SF_FTYPE_V16SF_V16SF_V16SF_V16SF_V16SF_PCV4SF_V16SF_UHI,
395 V16SF_FTYPE_V16SF_V16SF_V16SF_V16SF_V16SF_PCV4SF,
396 V4SF_FTYPE_V4SF_V4SF_V4SF_V4SF_V4SF_PCV4SF,
397 V4SF_FTYPE_V4SF_V4SF_V4SF_V4SF_V4SF_PCV4SF_V4SF_UQI,
398 V16SI_FTYPE_V16SI_V16SI_V16SI_V16SI_V16SI_PCV4SI,
399 V16SI_FTYPE_V16SI_V16SI_V16SI_V16SI_V16SI_PCV4SI_V16SI_UHI.
400 * config/i386/i386-builtin.def (__builtin_ia32_4fmaddps_mask,
401 __builtin_ia32_4fmaddps, __builtin_ia32_4fmaddss,
402 __builtin_ia32_4fmaddss_mask, __builtin_ia32_4fnmaddps_mask,
403 __builtin_ia32_4fnmaddps, __builtin_ia32_4fnmaddss,
404 __builtin_ia32_4fnmaddss_mask, __builtin_ia32_vp4dpwssd,
405 __builtin_ia32_vp4dpwssd_mask, __builtin_ia32_vp4dpwssds,
406 __builtin_ia32_vp4dpwssds_mask): New.
407 * config/i386/i386-c.c (ix86_target_macros_internal):
408 Define __AVX5124FMAPS__, __AVX5124VNNIW__.
409 * config/i386/i386-modes.def: Fixed comment typos, added new
410 modes (VECTOR_MODES (FLOAT, 256), VECTOR_MODE (INT, SI, 64)).
411 * config/i386/i386.c (ix86_target_string): Add -mavx5124fmaps,
413 (PTA_AVX5124FMAPS, PTA_AVX5124VNNIW): Define.
414 (ix86_option_override_internal): Handle new options.
415 (ix86_valid_target_attribute_inner_p): Add avx5124fmaps,
417 (ix86_expand_builtin): Handle new builtins.
418 (ix86_additional_allocno_class_p): New.
419 * config/i386/i386.h (TARGET_AVX5124FMAPS,
420 TARGET_AVX5124FMAPS_P,
422 TARGET_AVX5124VNNIW_P): Define.
423 (reg_class): Add MOD4_SSE_REGS.
424 (MOD4_SSE_REG_P, MOD4_SSE_REGNO_P): New.
425 * config/i386/i386.opt: Add mavx5124fmaps, mavx5124vnniw.
426 * config/i386/immintrin.h: Include avx5124fmapsintrin.h,
427 avx5124vnniwintrin.h.
428 * config/i386/sse.md (unspec): Add UNSPEC_VP4FMADD,
430 UNSPEC_VP4DPWSSD, UNSPEC_VP4DPWSSDS.
431 (define_mode_iterator IMOD4): New.
432 (define_mode_attr imod4_narrow): Ditto.
433 (define_insn "mov<mode>"): Ditto.
434 (define_insn "avx5124fmaddps_4fmaddps"): Ditto.
435 (define_insn "avx5124fmaddps_4fmaddps_mask"): Ditto.
436 (define_insn "avx5124fmaddps_4fmaddps_maskz"): Ditto.
437 (define_insn "avx5124fmaddps_4fmaddss"): Ditto.
438 (define_insn "avx5124fmaddps_4fmaddss_mask"): Ditto.
439 (define_insn "avx5124fmaddps_4fmaddss_maskz"): Ditto.
440 (define_insn "avx5124fmaddps_4fnmaddps"): Ditto.
441 (define_insn "avx5124fmaddps_4fnmaddps_mask"): Ditto.
442 (define_insn "avx5124fmaddps_4fnmaddps_maskz"): Ditto.
443 (define_insn "avx5124fmaddps_4fnmaddss"): Ditto.
444 (define_insn "avx5124fmaddps_4fnmaddss_mask"): Ditto.
445 (define_insn "avx5124fmaddps_4fnmaddss_maskz"): Ditto.
446 (define_insn "avx5124vnniw_vp4dpwssd"): Ditto.
447 (define_insn "avx5124vnniw_vp4dpwssd_mask"): Ditto.
448 (define_insn "avx5124vnniw_vp4dpwssd_maskz"): Ditto.
449 (define_insn "avx5124vnniw_vp4dpwssds"): Ditto.
450 (define_insn "avx5124vnniw_vp4dpwssds_mask"): Ditto.
451 (define_insn "avx5124vnniw_vp4dpwssds_maskz"): Ditto.
452 * init-regs.c (initialize_uninitialized_regs): Add emit_clobber call.
453 * genmodes.c (mode_size_inline): Extend return type.
454 * machmode.h (mode_size, mode_base_align): Extend type.
456 2016-11-17 Michael Meissner <meissner@linux.vnet.ibm.com>
459 * config/rs6000/predicates.md (fusion_addis_mem_combo_load): Add
460 the appropriate checks for SFmode/DFmode load/stores in GPR
462 (fusion_addis_mem_combo_store): Likewise.
463 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Rename
464 fusion_fpr_* to fusion_vsx_* and add in support for ISA 3.0 scalar
465 d-form instructions for traditional Altivec registers.
466 (emit_fusion_p9_load): Likewise.
467 (emit_fusion_p9_store): Likewise.
468 * config/rs6000/rs6000.md (p9 fusion store peephole2): Remove
469 early clobber from scratch register. Do not match if the register
470 being stored is the scratch register.
471 (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_load): Rename fusion_fpr_*
472 to fusion_vsx_* and add in support for ISA 3.0 scalar d-form
473 instructions for traditional Altivec registers.
474 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
475 (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
476 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
478 2016-11-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
481 * config/arm/arm.c (thumb1_expand_prologue): Distinguish between lr
482 being live in the function and lr needing to be saved. Distinguish
483 between already saved pushable registers and registers to push.
484 Check for LR being an available pushable register.
486 2016-11-17 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
488 * config/i386/i386.md (cmpstrnsi): New test to bail out if neither
489 string input is a string constant.
490 * builtins.c (expand_builtin_strncmp): Attempt expansion of strncmp
491 via cmpstrnsi even if neither string is constant.
493 2016-11-17 Jakub Jelinek <jakub@redhat.com>
496 * varasm.c (default_use_anchors_for_symbol_p): Fix a comment typo.
497 Don't test decl != NULL. Don't look at DECL_SIZE, but DECL_SIZE_UNIT
498 instead, return false if it is NULL, or doesn't fit into uhwi, or
499 is larger or equal to targetm.max_anchor_offset.
501 2016-11-17 Pip Cet <pipcet@gmail.com>
502 Eric Botcazou <ebotcazou@adacore.com>
504 PR rtl-optimization/78355
505 * doc/tm.texi.in (SLOW_UNALIGNED_ACCESS): Document that the macro only
506 needs to deal with unaligned accesses.
507 * doc/tm.texi: Regenerate.
508 * lra-constraints.c (simplify_operand_subreg): Only invoke
509 SLOW_UNALIGNED_ACCESS on innermode if the MEM is not aligned enough.
511 2016-11-17 David Malcolm <dmalcolm@redhat.com>
513 * input.c (selftest::test_lexer_string_locations_long_line): New
515 (selftest::test_lexer_string_locations_raw_string_multiline): New
517 (selftest::input_c_tests): Call the new functions, via
518 for_each_line_table_case.
520 2016-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
522 * config/aarch64/aarch64.md (mov<mode>): Call
523 aarch64_split_dimode_const_store on DImode constant stores.
524 * config/aarch64/aarch64-protos.h (aarch64_split_dimode_const_store):
526 * config/aarch64/aarch64.c (aarch64_split_dimode_const_store): New
529 2016-11-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
530 Richard Biener <rguenther@suse.de>
532 PR tree-optimization/77848
533 * tree-if-conv.c (tree_if_conversion): Always version loops unless
534 the user specified -ftree-loop-if-convert.
536 2016-11-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
539 * config/arm/arm.md (*thumb2_ldrd, *thumb2_ldrd_base,
540 *thumb2_ldrd_base_neg, *thumb2_strd, *thumb2_strd_base,
541 *thumb2_strd_base_neg): Recognize insn regardless of
542 current_tune->prefer_ldrd_strd.
543 * config/arm/ldrdstrd.md: Enable all ldrd/strd peephole rules
546 2016-11-17 Claudiu Zissulescu <claziss@synopsys.com>
548 * config/arc/arc.c (arc_ccfsm_post_advance): Handle return
551 2016-11-17 Claudiu Zissulescu <claziss@synopsys.com>
553 * config/arc/arc-arches.def: Add FPX quarkse instruction as valid
555 * config/arc/arc-c.def (__ARC_FPX_QUARK__): Define.
556 * config/arc/arc-cpus.def (quarkse_em): Add.
557 * config/arc/arc-options.def (FL_FPX_QUARK, FL_QUARK): Likewise.
558 * config/arc/arc-opts.h (FPX_QK): Define.
559 * config/arc/arc-tables.opt: Regenerate.
560 * config/arc/arc.c (gen_compare_reg): Change.
561 (arc_register_move_cost): Avoid Dy,Dx moves.
562 * config/arc/arc.h (TARGET_HARD_FLOAT): Change.
563 (TARGET_FPX_QUARK, TARGET_FP_ASSIST): Define.
564 * config/arc/arc.md (divsf3, sqrtsf2, fix_truncsfsi2, floatsisf2):
566 * config/arc/fpu.md (divsf3_fpu, sqrtsf2_fpu, floatsisf2_fpu)
567 (fix_truncsfsi2_fpu): Rename.
568 * config/arc/fpx.md (cmp_quark, cmpsf_quark_, cmpsf_quark_ord)
569 (cmpsf_quark_uneq, cmpsf_quark_eq, divsf3_quark, sqrtsf2_quark)
570 (fix_truncsfsi2_quark, floatsisf2_quark): New patterns.
571 * config/arc/t-multilib: Regenerate.
573 2016-11-17 Georg-Johann Lay <avr@gjlay.de>
575 * config/avr/avr.c (avr_print_operand_address): Use CONST_INT_P if
577 (ashlqi3_out, ashlsi3_out, ashrqi3_out, ashrhi3_out): Same.
578 (ashrsi3_out, lshrqi3_out, lshrhi3_out, lshrsi3_out): Same.
579 (avr_rtx_costs_1, extra_constraint_Q): Same.
580 (avr_address_cost): Use SUBREG_P if possible.
582 2016-11-17 Richard Biener <rguenther@suse.de>
585 * tree-cfgcleanup.c (cleanup_control_flow_bb): Do not turn
586 non-local goto into CFG.
588 2016-11-17 Richard Biener <rguenther@suse.de>
590 * common.opt (ftree-loop-if-convert-stores): Mark as preserved for
591 backward compatibility.
592 * doc/invoke.texi (ftree-loop-if-convert-stores): Remove.
593 * tree-if-conv.c (pass_if_conversion::gate): Do not test
594 flag_tree_loop_if_convert_stores.
595 (pass_if_conversion::execute): Likewise.
597 2016-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
599 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): Check for
600 const_double code before calling aarch64_float_const_zero_rtx_p.
602 2016-11-17 Richard Biener <rguenther@suse.de>
604 PR tree-optimization/78306
605 * ipa-inline-analysis.c (initialize_inline_failed): Do not
606 inhibit inlining if function calls cilk_spawn.
607 (can_inline_edge_p): Likewise.
609 2016-11-17 Richard Biener <rguenther@suse.de>
612 * fold-const.c (negate_expr_p): Fix multiplication case.
614 2016-11-17 Chung-Lin Tang <cltang@codesourcery.com>
617 * config/nios2/nios2.c (nios2_init_libfuncs): Remove TARGET_LINUX_ABI
619 (TARGET_INIT_LIBFUNCS): Delete definition and...
620 * config/nios2/linux.h (TARGET_INIT_LIBFUNCS): ...move to here, add
623 2016-11-17 Krister Walfridsson <krister.walfridsson@gmail.com>
625 * config/netbsd-stdint.h: New.
626 * config.gcc (i[34567]86-*-netbsd): Add netbsd-stdint.h to tm_file.
627 (x86_64-*-netbsd*): Likewise.
629 2016-11-16 Andrew PInski <apinski@cavium.com>
631 * config/aarch64/aarch64.opt (mverbose-cost-dump): New option.
632 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
633 flag_aarch64_verbose_cost instead of checking for details dump.
634 (aarch64_rtx_costs_wrapper): Likewise.
636 2016-11-16 Jakub Jelinek <jakub@redhat.com>
638 PR rtl-optimization/78378
639 * combine.c (make_extraction): Use force_to_mode for non-{REG,MEM}
640 inner only if pos is 0. Fix up formatting.
642 2016-11-17 Alan Modra <amodra@gmail.com>
644 PR rtl-optimization/78325
645 PR rtl-optimization/70890
646 * ira.c (combine_and_move_insns): Only remove REG_EQUIV notes
649 2016-11-16 Jason Merrill <jason@redhat.com>
651 * rtl.h: Declare gt_ggc_mx and gt_pch_nx.
653 2016-11-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
654 Richard Biener <rguenther@suse.de>
656 PR tree-optimization/77848
657 * tree-if-conv.c (version_loop_for_if_conversion): When versioning
658 an outer loop, only save basic block aux information for the inner
660 (versionable_outer_loop_p): New function.
661 (tree_if_conversion): Version the outer loop instead of the inner
662 one if the pattern will be recognized for outer-loop
665 2016-11-16 Andrew Burgess <andrew.burgess@embecosm.com>
667 * gcc/bb-reorder.c: Remove 'toplev.h' include.
668 (pass_partition_blocks::gate): No longer check
669 user_defined_section_attribute, instead check the function decl
670 for a section attribute.
671 * gcc/c-family/c-attribs.c (handle_section_attribute): No longer
672 set user_defined_section_attribute.
673 * gcc/final.c (rest_of_handle_final): Likewise.
674 * gcc/toplev.c: Remove definition of user_defined_section_attribute.
675 * gcc/toplev.h: Remove declaration of
676 user_defined_section_attribute.
678 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
680 * config/mips/mips.md (casesi_internal_mips16_<mode>):
681 Explicitly switch between JR and JRC for the table jump. Adjust
684 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
686 * config/mips/mips.md (casesi_internal_mips16_<mode>): Set
687 `insn_count' to 11 rather than 16.
689 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
691 * config/mips/mips.md (casesi_internal_mips16_<mode>): Use the
692 `ltu' rather than `leu' operation in the RTL pattern
694 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
696 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add
697 missing <d> instruction prefixes throughout. Correct
700 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
702 * config/mips/mips.c (mips_output_jump): Output R_MICROMIPS_JALR
703 rather than R_MIPS_JALR relocation in microMIPS code. Do not
704 cancel short delay slots in PIC call relaxation.
706 2016-11-16 Thomas Preud'homme <thomas.preudhomme@arm.com>
708 * config/arm/arm.md (arm_addsi3): Add alternative for addition of
709 general register with general register or ARM constant into SP
712 2016-11-16 Jakub Jelinek <jakub@redhat.com>
715 * omp-low.c (expand_omp_for_static_nochunk): Don't assert
716 that loop->header == body_bb if broken_loop.
718 2015-11-16 Wilco Dijkstra <wdijkstr@arm.com>
720 * tree-ssa-math-opts.c (bswap_replace): Remove test
721 of SLOW_UNALIGNED_ACCESS.
723 2016-11-16 Alexander Monakov <amonakov@ispras.ru>
725 * config/nvptx/mkoffload.c (main): Check that either OpenACC or OpenMP
726 is selected. Pass -mgomp to offload compiler in OpenMP case.
727 * config/nvptx/nvptx-protos.h (nvptx_shuffle_kind): Move enum
728 declaration from nvptx.c.
729 (nvptx_gen_shuffle): Declare.
730 (nvptx_output_set_softstack): Declare.
731 * config/nvptx/nvptx.c (nvptx_shuffle_kind): Move to nvptx-protos.h.
732 (need_softstack_decl): New variable.
733 (need_unisimt_decl): New variable.
734 (diagnose_openacc_conflict): New. Use it...
735 (nvptx_option_override): ...here. Handle TARGET_GOMP.
736 (nvptx_encode_section_info): Handle "shared" attribute.
737 (write_as_kernel): Restrict to OpenACC target regions.
738 (init_softstack_frame): New.
739 (nvptx_init_unisimt_predicate): New.
740 (write_omp_entry): New. Use it...
741 (nvptx_declare_function_name): ...here to emit OpenMP target region
742 entrypoints. Handle TARGET_SOFT_STACK. Call
743 nvptx_init_unisimt_predicate.
744 (nvptx_output_set_softstack): New.
745 (nvptx_get_drap_rtx): Return %argp as the DRAP if needed.
746 (nvptx_gen_shuffle): Export.
747 (nvptx_output_call_insn): Handle COND_EXEC patterns. Emit instruction
749 (nvptx_print_operand): Fix handling of instruction predicates.
750 (nvptx_get_unisimt_master): New helper function.
751 (nvptx_get_unisimt_predicate): Ditto.
752 (nvptx_call_insn_is_syscall_p): Ditto.
753 (nvptx_unisimt_handle_set): Ditto.
754 (nvptx_reorg_uniform_simt): New. Transform code for -muniform-simt.
755 (nvptx_reorg): Call nvptx_reorg_uniform_simt.
756 (nvptx_handle_shared_attribute): New. Use it...
757 (nvptx_attribute_table): ... here (new entry).
758 (nvptx_record_offload_symbol): Handle NULL attributes.
759 (nvptx_file_end): Handle need_softstack_decl and need_unisimt_decl.
760 (nvptx_simt_vf): New.
761 (TARGET_SIMT_VF): Define.
762 * config/nvptx/nvptx.h (TARGET_CPU_CPP_BUILTINS): Define
763 __nvptx_softstack or __nvptx_unisimt__ when -msoft-stack, or resp.
764 -muniform-simt option is active.
765 (STACK_SIZE_MODE): Define.
766 (FIXED_REGISTERS): Adjust.
767 (SOFTSTACK_SLOT_REGNUM): New.
768 (SOFTSTACK_PREV_REGNUM): New.
769 (REGISTER_NAMES): Adjust.
770 (struct machine_function): New fields.
771 * config/nvptx/nvptx.md (UNSPEC_SET_SOFTSTACK): New.
772 (UNSPEC_VOTE_BALLOT): Ditto.
773 (UNSPEC_LANEID): Ditto.
774 (UNSPECV_NOUNROLL): Ditto.
775 (atomic): New attribute.
776 (predicable): New attribute. Generate predicated forms via
778 (br_true): Mark as not predicable.
780 (br_true_uni): Ditto.
781 (br_false_uni): Ditto.
783 (trap_if_true): Ditto.
784 (trap_if_false): Ditto.
786 (nvptx_forked): Ditto.
787 (nvptx_joining): Ditto.
789 (nvptx_barsync): Ditto.
790 (epilogue): Emit stack restore if TARGET_SOFT_STACK.
791 (allocate_stack): Implement for TARGET_SOFT_STACK. Remove unused code.
792 (allocate_stack_<mode>): Remove unused pattern.
793 (set_softstack_insn): New pattern.
794 (restore_stack_block): Handle for TARGET_SOFT_STACK.
795 (nvptx_vote_ballot): New pattern.
796 (omp_simt_lane): Ditto.
797 (omp_simt_last_lane): Ditto.
798 (omp_simt_ordered): Ditto.
799 (omp_simt_vote_any): Ditto.
800 (omp_simt_xchg_bfly): Ditto.
801 (omp_simt_xchg_idx): Ditto.
802 (nvptx_nounroll): Ditto.
803 (atomic_compare_and_swap<mode>_1): Mark with atomic attribute.
804 (atomic_exchange<mode>): Ditto.
805 (atomic_fetch_add<mode>): Ditto.
806 (atomic_fetch_addsf): Ditto.
807 (atomic_fetch_<logic><mode>): Ditto.
808 * config/nvptx/nvptx.opt: (msoft-stack): New option.
809 (muniform-simt): Ditto.
811 * config/nvptx/t-nvptx (MULTILIB_OPTIONS): New.
812 * doc/extend.texi (Nvidia PTX Variable Attributes): New section.
813 * doc/invoke.texi (msoft-stack): Document.
814 (muniform-simt): Document
816 * doc/tm.texi: Regenerate.
817 * doc/tm.texi.in: (TARGET_SIMT_VF): New hook.
818 * target.def: Define it.
819 * target-insns.def (omp_simt_lane): New.
820 (omp_simt_last_lane): New.
821 (omp_simt_ordered): New.
822 (omp_simt_vote_any): New.
823 (omp_simt_xchg_bfly): New.
824 (omp_simt_xchg_idx): New.
826 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
828 * config/mips/mips-protos.h (mips_set_text_contents_type): New
830 * config/mips/mips.h (ASM_OUTPUT_BEFORE_CASE_LABEL): New macro.
831 (ASM_OUTPUT_CASE_END): Likewise.
832 * config/mips/mips.c (mips_set_text_contents_type): New
834 (mips16_emit_constants): Record the pool's initial label number
835 with the `consttable' insn. Emit a `consttable_end' insn at the
837 (mips_final_prescan_insn): Call `mips_set_text_contents_type'
838 for `consttable' insns.
839 (mips_final_postscan_insn): Call `mips_set_text_contents_type'
840 for `consttable_end' insns.
841 * config/mips/mips.md (unspec): Add UNSPEC_CONSTTABLE_END enum
843 (consttable): Add operand.
844 (consttable_end): New insn.
846 2016-11-16 Yuri Rumyantsev <ysrumyan@gmail.com>
848 * params.def (PARAM_VECT_EPILOGUES_NOMASK): New.
849 * tree-if-conv.c (tree_if_conversion): Make public.
850 * * tree-if-conv.h: New file.
851 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences) Avoid
852 dynamic alias checks for epilogues.
853 * tree-vect-loop-manip.c (vect_do_peeling): Return created epilog.
854 * tree-vect-loop.c: include tree-if-conv.h.
855 (new_loop_vec_info): Add zeroing orig_loop_info field.
856 (vect_analyze_loop_2): Don't try to enhance alignment for epilogues.
857 (vect_analyze_loop): Add argument ORIG_LOOP_INFO which is not NULL
858 if epilogue is vectorized, set up orig_loop_info field of loop_vinfo
859 using passed argument.
860 (vect_transform_loop): Check if created epilogue should be returned
861 for further vectorization with less vf. If-convert epilogue if
862 required. Print vectorization success for epilogue.
863 * tree-vectorizer.c (vectorize_loops): Add epilogue vectorization
864 if it is required, pass loop_vinfo produced during vectorization of
865 loop body to vect_analyze_loop.
866 * tree-vectorizer.h (struct _loop_vec_info): Add new field
868 (LOOP_VINFO_ORIG_LOOP_INFO): New.
869 (LOOP_VINFO_EPILOGUE_P): New.
870 (LOOP_VINFO_ORIG_VECT_FACTOR): New.
871 (vect_do_peeling): Change prototype to return epilogue.
872 (vect_analyze_loop): Add argument of loop_vec_info type.
873 (vect_transform_loop): Return created loop.
875 2016-11-16 Segher Boessenkool <segher@kernel.crashing.org>
877 * config/rs6000/rs6000.c (rs6000_components_for_bb): Mark the LR
878 component as used also if LR_REGNO is a live input to the bb.
879 * df-scan.c (df_get_entry_block_def_set): Return immediately after
880 clearing the set if DF_SCAN_EMPTY_ENTRY_EXIT is set.
881 (df_get_exit_block_use_set): Ditto.
882 * df.h (df_scan_flags): New enum.
883 * shrink-wrap.c (try_shrink_wrapping_separate): Set
884 DF_SCAN_EMPTY_ENTRY_EXIT in df_scan->local_flags, and call
885 df_update_entry_block_defs and df_update_exit_block_uses
886 at the start; clear the flag and call those functions at the end.
888 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
889 Alan Hayward <alan.hayward@arm.com>
890 David Sherwood <david.sherwood@arm.com>
892 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Set
893 nb_iterations to the number of latch iterations rather than the
894 number of loop iterations.
896 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
897 Alan Hayward <alan.hayward@arm.com>
898 David Sherwood <david.sherwood@arm.com>
900 * combine.c (maybe_swap_commutative_operands): New function.
901 (combine_simplify_rtx): Use it.
902 (change_zero_ext): Likewise.
903 (make_compound_operation_int): New function, split out of...
904 (make_compound_operation): ...here. Use
905 maybe_swap_commutative_operands for both.
907 2016-11-16 Richard Earnshaw <rearnsha@arm.com>
909 * arm/arm-fpus.def (vfpv2): New FPU, currently an alias for 'vfp'.
910 (neon-vfpv3): New FPU, currently an alias for 'neon'.
911 * arm/arm-tables.opt: Regenerated.
912 * arm/t-aprofile (MULTILIB_REUSE): Add reuse rules for vfpv2 and
914 * doc/invoke.texi (ARM: -mfpu): Document new options. Note that 'vfp'
915 and 'neon' are aliases for specific implementations.
917 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
918 Alan Hayward <alan.hayward@arm.com>
919 David Sherwood <david.sherwood@arm.com>
921 * optabs.c (vector_compare_rtx): Add a cmp_mode parameter
922 and use it in the final call to gen_rtx_fmt_ee.
923 (expand_vec_cond_expr): Update accordingly.
924 (expand_vec_cmp_expr): Likewise.
926 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
927 Alan Hayward <alan.hayward@arm.com>
928 David Sherwood <david.sherwood@arm.com>
930 * cprop.c (local_cprop_find_used_regs): Use df_read_modify_subreg_p.
932 2016-11-16 Richard Biener <rguenther@suse.de>
935 * gimplify.c (gimplify_function_tree): Do not instrument
936 GNU extern inline functions.
938 2016-11-16 Martin Liska <mliska@suse.cz>
941 * gimplify.c (gimplify_switch_expr): Always save previous
942 gimplify_ctxp->live_switch_vars.
944 2016-11-16 Andrew Burgess <andrew.burgess@embecosm.com>
946 * config/arc/arc.md (movb peephole2): New peephole2 to merge two
947 zero_extract operations to allow a movb to occur.
948 * testsuite/gcc.target/arc/movb-1.c: Update little endian arc results.
949 * testsuite/gcc.target/arc/movb-2.c: Likewise.
950 * testsuite/gcc.target/arc/movb-5.c: Likewise.
951 * testsuite/gcc.target/arc/movh_cl-1.c: Extend test to cover
954 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
955 Alan Hayward <alan.hayward@arm.com>
956 David Sherwood <david.sherwood@arm.com>
958 * expr.c (emit_group_load_1): Tighten check for whether an
959 access involves only one operand of a CONCAT. Use extract_bit_field
960 for constants if the bit range does span the whole operand.
962 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
963 Alan Hayward <alan.hayward@arm.com>
964 David Sherwood <david.sherwood@arm.com>
966 * rtlanal.c (rtx_addr_can_trap_p_1): Handle unknown sizes.
968 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
969 Alan Hayward <alan.hayward@arm.com>
970 David Sherwood <david.sherwood@arm.com>
972 * tree-vect-loop.c (vect_transform_loop): Protect the updates of
973 all three iteration counts with an any_* test. Use a single update
974 for each count. Fix the calculation of nb_iterations_estimate.
976 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
978 * config/pdp11/pdp11.c: Include dbxout.h.
980 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
982 * config/arc/arc.c (arc_loop_hazard): Add missing brackets.
984 2016-11-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
987 * config/arm/arm.md (*extv_reg): Restrict operands 2 and 3 to the
988 proper ranges for an SBFX instruction.
989 (extzv_t2): Likewise for UBFX.
991 2016-11-16 Richard Biener <rguenther@suse.de>
993 PR tree-optimization/78348
994 * tree-loop-distribution.c (enum partition_kind): Add PKIND_MEMMOVE.
995 (generate_memcpy_builtin): Honor PKIND_MEMCPY on the partition.
996 (classify_partition): Set PKIND_MEMCPY if dependence analysis
997 revealed no dependency, PKIND_MEMMOVE otherwise.
999 2016-11-16 Jakub Jelinek <jakub@redhat.com>
1002 * ubsan.c (ubsan_build_overflow_builtin): Add DATAP argument, if
1003 it points to non-NULL tree, use it instead of ubsan_create_data.
1004 (instrument_si_overflow): Handle vector signed integer overflow
1006 * ubsan.h (ubsan_build_overflow_builtin): Add DATAP argument.
1007 * tree-vrp.c (simplify_internal_call_using_ranges): Punt for
1008 vector IFN_UBSAN_CHECK_*.
1009 * internal-fn.c (expand_addsub_overflow): Add DATAP argument,
1010 pass it through to ubsan_build_overflow_builtin.
1011 (expand_neg_overflow, expand_mul_overflow): Likewise.
1012 (expand_vector_ubsan_overflow): New function.
1013 (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB,
1014 expand_UBSAN_CHECK_MUL): Use tit for vector arithmetics.
1015 (expand_arith_overflow): Adjust expand_*_overflow callers.
1017 2016-11-16 Matthias Klose <doko@ubuntu.com>
1019 * doc/install.texi: Remove references to java/libjava.
1021 2016-11-16 Kugan Vivekanandarajah <kuganv@linaro.org>
1023 * tree-ssa-coalesce.c (register_default_def): Remove register_ssa_partition.
1024 (create_outofssa_var_map): Likewise.
1025 * tree-ssa-live.c (register_ssa_partition_check): Remove.
1026 * tree-ssa-live.h (register_ssa_partition): Likewise.
1028 2016-11-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
1030 * genattrtab.c (attr_rtx_1): Avoid allocating new rtx objects.
1031 Clear ATTR_CURR_SIMPLIFIED_P for re-used binary rtx objects.
1032 Use DEF_ATTR_STRING for string arguments. Use RTL_HASH for
1033 integer arguments. Only set ATTR_PERMANENT_P on newly hashed
1034 rtx when all sub-rtx are also permanent.
1035 (attr_eq): Simplify.
1036 (attr_copy_rtx): Remove.
1037 (make_canonical, get_attr_value): Use attr_equal_p.
1038 (copy_boolean): Rehash NOT.
1039 (simplify_test_exp_in_temp,
1040 optimize_attrs): Remove call to attr_copy_rtx.
1041 (attr_alt_intersection, attr_alt_union,
1042 attr_alt_complement, mk_attr_alt): Rehash EQ_ATTR_ALT.
1043 (make_automaton_attrs): Use attr_eq.
1045 2016-11-15 Matthias Klose <doko@ubuntu.com>
1047 * doc/install.texi: Remove references to java/libjava.
1048 * doc/sourcebuild.texi: Likewise.
1049 * doc/invoke.texi: Likewise.
1050 * doc/standards.texi: Likewise.
1052 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
1053 Alan Hayward <alan.hayward@arm.com>
1054 David Sherwood <david.sherwood@arm.com>
1056 * config/i386/i386.h (INCOMING_RETURN_ADDR_RTX): Use Pmode instead
1058 * config/ia64/ia64.h (INCOMING_RETURN_ADDR_RTX): Likewise.
1059 * config/iq2000/iq2000.h (INCOMING_RETURN_ADDR_RTX): Likewise.
1060 * config/m68k/m68k.h (INCOMING_RETURN_ADDR_RTX): Likewise.
1061 * config/microblaze/microblaze.h (INCOMING_RETURN_ADDR_RTX): Likewise.
1062 * config/mips/mips.h (INCOMING_RETURN_ADDR_RTX): Likewise.
1063 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Likewise.
1064 * config/nios2/nios2.h (INCOMING_RETURN_ADDR_RTX): Likewise.
1066 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
1067 Alan Hayward <alan.hayward@arm.com>
1068 David Sherwood <david.sherwood@arm.com>
1070 * dce.c (check_argument_store): Pass the size instead of
1071 the memory reference.
1072 (find_call_stack_args): Pass MEM_SIZE to check_argument_store.
1074 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
1075 Alan Hayward <alan.hayward@arm.com>
1076 David Sherwood <david.sherwood@arm.com>
1078 * alias.c (canon_rtx): Use simplify_gen_binary.
1080 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
1081 Alan Hayward <alan.hayward@arm.com>
1082 David Sherwood <david.sherwood@arm.com>
1084 * rtl.h (load_extend_op): Declare.
1085 * rtlanal.c (load_extend_op): New function.
1086 (nonzero_bits1): Use it.
1087 (num_sign_bit_copies1): Likewise.
1088 * cse.c (cse_insn): Likewise.
1089 * fold-const.c (fold_single_bit_test): Likewise.
1090 (fold_unary_loc): Likewise.
1091 * fwprop.c (free_load_extend): Likewise.
1092 * postreload.c (reload_cse_simplify_set): Likewise.
1093 (reload_cse_simplify_operands): Likewise.
1094 * combine.c (try_combine): Likewise.
1095 (simplify_set): Likewise. Remove redundant SUBREG_BYTE and
1096 subreg_lowpart_p checks.
1098 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
1099 Alan Hayward <alan.hayward@arm.com>
1100 David Sherwood <david.sherwood@arm.com>
1102 * combine.c (simplify_shift_const_1): Use the number of bits
1103 in the inner mode to determine the range of the shift.
1104 When handling shifts of vectors, skip any rules that apply
1107 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
1108 Alan Hayward <alan.hayward@arm.com>
1109 David Sherwood <david.sherwood@arm.com>
1111 * rtlanal.c (num_sign_bit_copies1): Calculate bitwidth after
1114 2016-11-15 Matthias Klose <doko@ubuntu.com>
1116 * doc/install.texi: Remove references to gcj/libjava.
1117 * doc/invoke.texi: Likewise.
1119 2016-11-15 Jeff Law <law@redhat.com>
1121 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove unneeded
1122 parameter. Callers changed.
1123 (check-subpath_and_update_thread_path): Extracted from
1124 fsm_find_control_statement_thread_paths.
1125 (handle_phi, handle_assignment, handle_assignment_p): Likewise.
1126 (handle_phi, handle_assignment): Allow any constant node, not
1129 2016-11-15 Claudiu Zissulescu <claziss@synopsys.com>
1131 * config/arc/arc-arch.h: New file.
1132 * config/arc/arc-arches.def: Likewise.
1133 * config/arc/arc-cpus.def: Likewise.
1134 * config/arc/arc-options.def: Likewise.
1135 * config/arc/t-multilib: Likewise.
1136 * config/arc/genmultilib.awk: Likewise.
1137 * config/arc/genoptions.awk: Likewise.
1138 * config/arc/arc-tables.opt: Likewise.
1139 * config/arc/driver-arc.c: Likewise.
1140 * testsuite/gcc.target/arc/nps400-cpu-flag.c: Likewise.
1141 * common/config/arc/arc-common.c (arc_handle_option): Trace
1143 * config.gcc (arc*-*-*): Add arc-tables.opt to arc's extra
1144 options; check for supported cpu against arc-cpus.def file.
1145 (arc*-*-elf*, arc*-*-linux-uclibc*): Use new make fragment; define
1146 TARGET_CPU_BUILD macro; add driver-arc.o as an extra object.
1147 * config/arc/arc-c.def: Add emacs local variables.
1148 * config/arc/arc-opts.h (processor_type): Use arc-cpus.def file.
1149 (FPU_FPUS, FPU_FPUD, FPU_FPUDA, FPU_FPUDA_DIV, FPU_FPUDA_FMA)
1150 (FPU_FPUDA_ALL, FPU_FPUS_DIV, FPU_FPUS_FMA, FPU_FPUS_ALL)
1151 (FPU_FPUD_DIV, FPU_FPUD_FMA, FPU_FPUD_ALL): New defines.
1152 (DEFAULT_arc_fpu_build): Define.
1153 (DEFAULT_arc_mpy_option): Define.
1154 * config/arc/arc-protos.h (arc_init): Delete.
1155 * config/arc/arc.c (arc_cpu_name): New variable.
1156 (arc_selected_cpu, arc_selected_arch, arc_arcem, arc_archs)
1157 (arc_arc700, arc_arc600, arc_arc601): New variable.
1158 (arc_init): Add static; remove selection of default tune value,
1159 cleanup obsolete error messages.
1160 (arc_override_options): Make use of .def files for selecting the
1161 right cpu and option configurations.
1162 * config/arc/arc.h (stdbool.h): Include.
1163 (TARGET_CPU_DEFAULT): Define.
1164 (CPP_SPEC): Remove mcpu=NPS400 handling.
1165 (arc_cpu_to_as): Declare.
1166 (EXTRA_SPEC_FUNCTIONS): Define.
1167 (OPTION_DEFAULT_SPECS): Likewise.
1168 (ASM_DEFAULT): Remove.
1169 (ASM_SPEC): Use arc_cpu_to_as.
1170 (DRIVER_SELF_SPECS): Remove deprecated options.
1171 (arc_base_cpu): Declare.
1172 (TARGET_ARC600, TARGET_ARC601, TARGET_ARC700, TARGET_EM)
1173 (TARGET_HS, TARGET_V2, TARGET_ARC600): Make them use arc_base_cpu
1175 (MULTILIB_DEFAULTS): Use ARC_MULTILIB_CPU_DEFAULT.
1176 * config/arc/arc.md (attr_cpu): Remove.
1177 * config/arc/arc.opt (mno-mpy): Deprecate.
1178 (mcpu=ARC600, mcpu=ARC601, mcpu=ARC700, mcpu=NPS400, mcpu=ARCEM)
1179 (mcpu=ARCHS): Remove.
1180 (mcrc, mdsp-packa, mdvbf, mmac-d16, mmac-24, mtelephony, mrtsc):
1182 (mbarrel_shifte, mspfp_, mdpfp_, mdsp_pack, mmac_): Remove.
1183 (arc_fpu): Use new defines.
1184 (mpy-option): Change to use numeric or string like inputs.
1185 * config/arc/t-arc (driver-arc.o): New target.
1186 (arc-cpus, t-multilib, arc-tables.opt): Likewise.
1187 * config/arc/t-arc-newlib: Delete.
1188 * config/arc/t-arc-uClibc: Renamed to t-uClibc.
1189 * doc/invoke.texi (ARC): Update arc options.
1191 2016-11-15 Maciej W. Rozycki <macro@imgtec.com>
1193 * config/mips/mips.c (mips16_emit_constants): Emit `consttable'
1194 insn at the beginning of the constant pool.
1195 (mips_insert_insn_pseudos): New function.
1196 (mips_machine_reorg2): Call it.
1197 * config/mips/mips.md (unspec): Add UNSPEC_CONSTTABLE and
1198 UNSPEC_INSN_PSEUDO enum values.
1199 (insn_pseudo, consttable): New insns.
1201 2016-11-15 Michael Matz <matz@suse.de>
1203 PR missed-optimization/77881
1204 * combine.c (simplify_comparison): Remove useless subregs
1205 also inside the loop, not just after it.
1206 (make_compound_operation): Recognize some subregs as being
1209 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
1210 Alan Hayward <alan.hayward@arm.com>
1211 David Sherwood <david.sherwood@arm.com>
1213 * dwarf2out.c (mem_loc_descriptor): Fix GET_MODE_CLASS/
1216 2016-11-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1218 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Add support
1219 for using xxinsertw and vinsert{b,h} on ISA 3.0.
1221 * config/rs6000/vsx.md (vsx_extract_<mode>): Update comment.
1222 (vsx_set_<mode>_p9): New insn to generate xxinsertw and
1223 vinsert{b,h} on ISA 3.0.
1225 2016-11-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
1227 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
1228 and cmpnop in two steps: first the ones not accessed in original gimple
1229 expression in a endian independent way and then the ones not accessed
1230 in the final result in an endian-specific way.
1231 (bswap_replace): Stop doing big endian adjustment.
1233 2016-11-14 Uros Bizjak <ubizjak@gmail.com>
1235 * config/i386/i386.md (*andndi3_doubleword): Merge operand constraints.
1236 (*ashl<mode>3_doubleword): Ditto.
1238 2016-11-14 Martin Liska <mliska@suse.cz>
1240 * tree-ssa-dse.c (dse_optimize_stmt): Remove quotes and extra
1243 2016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com>
1244 Richard Biener <rguenther@suse.de>
1246 * doc/invoke.texi (fgimple): Document.
1247 * dumpfile.h (TDF_GIMPLE): Add.
1248 * dumpfile.c (dump_options): Add gimple.
1249 * gimple-pretty-print.c (dump_gimple_switch): Adjust dump
1251 (dump_gimple_label): Likewise.
1252 (dump_gimple_phi): Likewise.
1253 (dump_gimple_bb_header): Likewise.
1254 (dump_phi_nodes): Likewise.
1255 (pp_cfg_jump): Likewise. Pass in dump flags.
1256 (dump_implicit_edges): Adjust.
1257 * passes.c (pass_init_dump_file): Do not dump function header
1259 * tree-cfg.c (dump_function_to_file): Dump function return type
1260 and __GIMPLE keyword for TDF_GIMPLE. Change guard for dumping
1262 * tree-pretty-print.c (dump_decl_name): Adjust dump for TDF_GIMPLE.
1263 (dump_generic_node): Likewise.
1264 * function.h (struct function): Add pass_startwith member.
1265 * passes.c (execute_one_pass): Implement startwith.
1266 * tree-ssanames.c (make_ssa_name_fn): New argument, check for version
1267 and assign proper version for parsed ssa names.
1268 * tree-ssanames.h (make_ssa_name_fn): Add new argument to the function.
1269 * internal-fn.c (expand_PHI): New function.
1270 * internal-fn.h (expand_PHI): Declared here.
1271 * internal-fn.def: New defination for PHI.
1272 * tree-cfg.c (lower_phi_internal_fn): New function.
1273 (build_gimple_cfg): Call it.
1274 (verify_gimple_call): Condition for passing label as arg in internal
1276 * tree-into-ssa.c (rewrite_add_phi_arguments): Handle already
1277 present PHIs with arguments.
1279 2016-11-14 Martin Liska <mliska@suse.cz>
1282 * common.opt: Add prefer-atomic as a new enum value for
1284 * coretypes.h: Likewise.
1285 * doc/invoke.texi: Document the new option value.
1286 * gcc.c: Replace atomic with prefer-atomic. Remove warning.
1287 * tree-profile.c (tree_profiling): Select default value
1288 of -fprofile-update when 'prefer-atomic' is selected.
1290 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
1292 * config/arm/cortex-a57.md (cortex_a57_alu): Move extend here, bfm...
1293 (cortex_a57_alu_shift): ...here.
1295 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
1297 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3)
1299 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
1300 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
1301 (<optab>si3_insn_uxtw): Likewise.
1302 (<optab><mode>3_insn): Likewise.
1303 (<ANY_EXTEND:optab><GPI:mode>_ashl<SHORT:mode>): Likewise.
1304 (zero_extend<GPI:mode>_lshr<SHORT:mode>): Likewise.
1305 (extend<GPI:mode>_ashr<SHORT:mode>): Likewise.
1306 (<optab><mode>): Likewise.
1307 (insv<mode>): Likewise.
1308 (andim_ashift<mode>_bfiz): Likewise.
1309 * config/aarch64/thunderx.md (thunderx_shift): Add bfx.
1310 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
1311 * config/arm/cortex-a57.md (cortex_a57_alu): Add bfx.
1312 * config/arm/exynos-m1.md (exynos_m1_alu): Add bfx.
1313 (exynos_m1_alu_p): Likewise.
1314 * config/arm/types.md: Add bfx.
1315 * config/arm/xgene1.md (xgene1_bfm): Add bfx.
1317 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
1319 * config/aarch64/aarch64.c (cortexa57_vector_cost):
1320 Change vec_stmt_cost, vec_align_load_cost and vec_unalign_load_cost.
1322 2016-11-14 Richard Biener <rguenther@suse.de>
1324 PR tree-optimization/78312
1325 * gimple-ssa-backprop.c (backprop::prepare_change): Reset
1326 flow-sensitive info.
1328 2016-11-14 Georg-Johann Lay <avr@gjlay.de>
1331 * doc/invoke.texi (AVR Options) [-mabsdata]: Document new option.
1332 * config/avr/avr.opt (-mabsdata): New option.
1333 * config/avr/avr-arch.h (avr_device_specific_features): Add AVR_ISA_LDS.
1334 * config/avr/avr.c (avr_encode_section_info) [AVR_TINY]: If
1335 -mabsdata & symbol is not progmem, tag as AVR_SYMBOL_FLAG_TINY_ABSDATA.
1336 * config/avr/avr-mcus.def (attiny4/5/9/10/20): Use AVR_ISA_LDS.
1337 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Print cc1_absdata
1338 spec depending on AVR_ISA_LDS.
1339 * config/avr/specs.h (CC1_SPEC): Enhanced by cc1_absdata spec.
1341 2016-11-13 Jakub Jelinek <jakub@redhat.com>
1343 * match.pd: Don't try to compare addresses of variables with
1346 2016-11-13 Kugan Vivekanandarajah <kuganv@linaro.org>
1348 * ipa-cp.c (ipa_get_jf_pass_through_result): Skip unary expressions.
1349 (propagate_vr_accross_jump_function): Handle unary expressions.
1350 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
1351 (load_from_param_1): New.
1352 (load_from_unmodified_param): Factor common part into load_from_param_1.
1353 (load_from_param): New.
1354 (compute_complex_assign_jump_func): Handle unary expressions.
1355 (update_jump_functions_after_inlining): Likewise.
1356 (ipa_write_jump_function): Likewise.
1357 (ipa_read_jump_function): Likewise.
1359 2016-11-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1362 * doc/invoke.texi: Document Wrestrict.
1363 * pretty-print.c (pp_format): Add case for "Z" specifier.
1364 (test_pp_format): Test "Z" specifier.
1366 2016-11-13 Eric Botcazou <ebotcazou@adacore.com>
1368 * ipa-icf.c (sem_function::merge): Do not create a wrapper also if the
1369 original function needs a static chain.
1371 2016-11-13 David Edelsohn <dje.gcc@gmail.com>
1374 * config/rs6000/rs6000.c (rs6000_asm_weaken_decl): Protect
1377 2016-11-12 Segher Boessenkool <segher@kernel.crashing.org>
1380 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
1381 return early if !optional_tbtab.
1383 2016-11-11 Eric Botcazou <ebotcazou@adacore.com>
1385 PR rtl-optimization/59461
1386 * doc/rtl.texi (paradoxical subregs): Add missing word.
1387 * combine.c (reg_nonzero_bits_for_combine): Do not discard results
1388 in modes with precision larger than that of last_set_mode.
1389 * rtlanal.c (nonzero_bits1) <SUBREG>: If WORD_REGISTER_OPERATIONS is
1390 set and LOAD_EXTEND_OP is appropriate, propagate results from inner
1391 REGs to paradoxical SUBREGs.
1392 (num_sign_bit_copies1) <SUBREG>: Likewise. Check that the mode is not
1393 larger than a word before invoking LOAD_EXTEND_OP on it.
1395 2016-11-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1398 * config/rs6000/vsx.md (vsx_extract_<mode>_p9): Correct the
1399 element order for little endian ordering.
1401 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Use
1402 VECTOR_ELT_ORDER_BIG and not BYTES_BIG_ENDIAN to adjust element
1405 2016-11-11 Uros Bizjak <ubizjak@gmail.com>
1408 * config/i386/i386.md (rotate to rotatex splitter): Avoid overflow
1409 when calculating operand 2.
1410 (rotate to rotatex zext splitter): Ditto.
1412 2016-11-11 Jeff Law <law@redhat.com>
1414 * gimple-ssa-isolate-paths.c (is_divmod_with_given_divisor): New
1416 (stmt_uses_name_in_undefined_way): New function, extracted from
1417 find_implicit_erroneous_behavior and extended for div/mod case.
1418 (stmt_uses_0_or_null_in_undefined_way): New function, extracted from
1419 find_explicit_erroneous_behavior and extended for div/mod case.
1420 (find_implicit_erroneous_behavior): Use new helper function.
1421 (find_explicit_erroneous_behavior): Use new helper function.
1423 2016-11-11 Richard Biener <rguenther@suse.de>
1425 PR tree-optimization/71575
1426 * graphite-isl-ast-to-gimple.c (copy_cond_phi_nodes): Remove
1429 2016-11-11 Richard Biener <rguenther@suse.de>
1432 * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
1433 about uninitialized destination arg of BIT_INSERT_EXPR.
1435 2016-11-10 Sandra Loosemore <sandra@codesourcery.com>
1438 * doc/invoke.texi (Code Gen Options) [-fno-common]: Use correct
1439 terminology. Expand to remove ambiguity.
1441 2016-11-10 Segher Boessenkool <segher@kernel.crashing.org>
1443 PR rtl-optimization/78232
1444 * combine.c (try_combine): Add a big comment about why reusing i2dest
1446 (change_zero_ext): Do not call simplify_gen_binary, do the
1447 simplifications manually.
1449 2016-11-10 Michael Meissner <meissner@linux.vnet.ibm.com>
1451 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If ISA 3.0,
1452 enable HImode and QImode to go in vector registers by default if
1453 the -mvsx-small-integer option is enabled.
1454 (rs6000_secondary_reload_simple_move): Likewise.
1455 (rs6000_preferred_reload_class): Don't force integer constants to
1456 be loaded into vector registers that we can easily make into
1457 memory (or being created in the GPRs and moved over with direct move).
1458 * config/rs6000/vsx.md (UNSPEC_P9_MEMORY): Delete, no longer used.
1459 (vsx_extract_<mode>): Rework V4SImode, V8HImode, and V16QImode
1460 vector extraction on ISA 3.0 when the scalar integer can be
1461 allocated in vector registers. Generate the VEC_SELECT directy,
1462 and don't use UNSPEC's to avoid having the scalar type in a vector
1463 register. Make the expander target registers, and let the
1464 combiner fold in results storing to memory, if the machine
1466 (vsx_extract_<mode>_di): Likewise.
1467 (vsx_extract_<mode>_p9): Likewise.
1468 (vsx_extract_<mode>_di_p9): Likewise.
1469 (vsx_extract_<mode>_store_p9): Likewise.
1470 (vsx_extract_si): Likewise.
1471 (vsx_extract_<mode>_p8): Likewise.
1472 (p9_lxsi<wd>zx): Delete, no longer used.
1473 (p9_stxsi<wd>x): Likewise.
1474 * config/rs6000/rs6000.md (INT_ISA3): New mode iterator for
1475 integers in vector registers for ISA 3.0.
1476 (QHI): Update comment.
1477 (zero_extendqi<mode>2): Add support for ISA 3.0 scalar load or
1478 vector extract instructions in sign/zero extend.
1479 (zero_extendhi<mode>): Likewise.
1480 (extendqi<mode>): Likewise.
1481 (extendhi<mode>2): Likewise.
1482 (HImode splitter for load/sign extend in vector register): Likewise.
1483 (float<QHI:mode><FP_ISA3:mode>2): Eliminate old method of
1484 optimizing floating point conversions to/from small data types and
1485 rewrite it to support QImode/HImode being allowed in vector
1486 registers on ISA 3.0.
1487 (float<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
1488 (floatuns<QHI:mode><FP_ISA3:mode>2): Likewise.
1489 (floatuns<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
1490 (fix_trunc<SFDF:mode><QHI:mode>2): Likewise.
1491 (fix_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
1492 (fixuns_trunc<SFDF:mode><QHI:mode>2): Likewise.
1493 (fixuns_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
1494 VSPLITISW on ISA 2.07.
1495 (movhi_internal): Combine movhi_internal and movqi_internal into
1496 one mov<mode>_internal with an iterator. Add support for QImode
1497 and HImode being allowed in vector registers. Make large number
1498 of attributes and constraints easier to read.
1499 (movqi_internal): Likewise.
1500 (mov<mode>_internal): Likewise.
1501 (movdi_internal64): Fix constraint to allow loading -16..15 with
1502 VSPLITISW on ISA 2.07.
1503 (integer XXSPLTIB splitter): Add support for QI, HI, and SImode as
1506 2016-11-10 Pat Haugen <pthaugen@us.ibm.com>
1508 PR rtl-optimization/78241
1509 * loop-unroll.c (unroll_loop_runtime_iterations): Don't adjust 'niter',
1510 but emit initial peel copy if niter expr is not reliable.
1512 2016-11-10 Segher Boessenkool <segher@kernel.crashing.org>
1514 * dwarf2cfi.c (dump_cfi_row): Add forward declaration.
1515 (maybe_record_trace_start): If the CFI is different on the new and
1516 old paths, print out both to the dump file before ICEing.
1518 2016-11-10 Vladimir Makarov <vmakarov@redhat.com>
1520 * target.def (additional_allocno_class_p): New.
1521 * hooks.h (hook_bool_reg_class_t_false): New prototype.
1522 * hooks.c (hook_bool_reg_class_t_false): New.
1523 * ira.c (setup_allocno_and_important_classes): Use the new hook.
1524 * doc/tm.texi.in (TARGET_ADDITIONAL_ALLOCNO_CLASS_P): Add it.
1525 * doc/tm.texi: Update.
1527 2016-11-10 Jason Merrill <jason@redhat.com>
1529 * gengtype.c (new_structure): Append to structures list.
1530 (find_structure): Likewise.
1532 2016-11-10 Jim Wilson <jim.wilson@linaro.org>
1534 * tree-loop-distribution.c (pg_add_dependence_edges): Return 2 if
1535 this_dir is 2. Check for this_dir non-zero before dir != this_dir
1538 2016-11-10 Jakub Jelinek <jakub@redhat.com>
1540 * omp-low.c (lower_omp_target): Fix up argument to is_reference.
1541 (expand_omp_ordered_sink): Handle TREE_PURPOSE of deps being
1543 * gimplify.c (gimplify_scan_omp_clauses): Likewise. Set
1544 ctx->target_map_scalars_firstprivate on OMP_TARGET even for Fortran.
1545 Remove omp_no_lastprivate callers. Propagate lastprivate on combined
1546 teams distribute parallel for simd even to distribute and teams
1547 construct. For OMP_CLAUSE_DEPEND add missing break at the end of
1548 OMP_CLAUSE_DEPEND_SINK case.
1549 (omp_notice_variable): Use lang_hooks.decls.omp_scalar_p.
1550 (omp_no_lastprivate): Removed.
1551 (gimplify_adjust_omp_clauses): Remove omp_no_lastprivate callers.
1552 (gimplify_omp_for): Likewise.
1553 (computable_teams_clause): Fail for automatic vars from current
1554 function not yet seen in bind expr.
1555 * langhooks.c (lhd_omp_scalar_p): New function.
1556 * langhooks.h (struct lang_hooks_for_decls): Add omp_scalar_p.
1557 * varpool.c (varpool_node::get_create): Set node->offloading
1558 even for DECL_EXTERNAL decls.
1559 * langhooks-def.h (lhd_omp_scalar_p): New prototype.
1560 (LANG_HOOKS_OMP_SCALAR_P): Define.
1561 (LANG_HOOKS_DECLS): Use it.
1563 2016-11-10 Martin Liska <mliska@suse.cz>
1566 * gimplify.c (gimplify_switch_expr): Create live_switch_vars
1567 only when SWITCH_BODY is a BIND_EXPR.
1569 2016-11-10 Pierre-Marie de Rodat <derodat@adacore.com>
1572 * dwarf2out.c (dwarf2out_early_global_decl): Call dwarf2out_decl
1573 on the context only when it has no DIE yet.
1575 2016-11-10 Richard Earnshaw <rearnsha@arm.com>
1577 * arm.h (target_cpus): Delete.
1578 * arm-opts.h (enum processor_type): Prefix entires with TARGET_CPU_.
1579 * arm.c (all_cores): Prefix IDENT with TARGET_CPU_.
1580 (all_architectures): Likewise.
1581 (arm_option_override): Adjust use of CPU enums.
1582 (arm_sched_reorder): Likewise.
1583 * vfp.md (movdi_vfp, movdi_vfp_cortexa8): Likewise.
1584 * arm.opt (mcpu, mtune): Adjust use of CPU enums.
1585 * arm/genopt.sh (processor_type): Prefix enumeration entries with
1587 * arm-tables.opt: Regenerated.
1589 2016-11-10 Siddhesh Poyarekar <siddhesh.poyarekar@linaro.org>
1591 * config/aarch64/aarch64-cores.def (qdf24xx): Update part number.
1593 * config/aarch64/aarch64-tune.md: Regenerated.
1594 * config/arm/arm-cores.def (falkor): New core.
1595 * config/arm/arm-tables.opt: Regenerated.
1596 * config/arm/arm-tune.md: Regenerated.
1597 * config/arm/bpabi.h (BE8_LINK_SPEC): Add falkor support.
1598 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
1599 * doc/invoke.texi (AArch64 Options/-mtune): Document it.
1600 (ARM Options/-mtune): Likewise.
1602 2016-11-10 Kugan Vivekanandarajah <kuganv@linaro.org>
1605 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
1607 * ipa-cp.c (ipa_get_jf_pass_through_result): Handle unary expressions.
1608 (propagate_vr_accross_jump_function): Likewise.
1609 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
1610 (load_from_param_1): New.
1611 (load_from_unmodified_param): Factor common part into load_from_param_1.
1612 (load_from_param): New.
1613 (compute_complex_assign_jump_func): Handle unary expressions.
1614 (ipa_write_jump_function): Likewise.
1615 (ipa_read_jump_function): Likewise.
1617 2016-11-09 Segher Boessenkool <segher@kernel.crashing.org>
1619 * simplify-rtx.c (simplify_binary_operation_1): Simplify
1620 (xor (and (xor A B) C) B) to (ior (and A C) (and B ~C)) and
1621 (xor (and (xor A B) C) A) to (ior (and A ~C) (and B C)) if C
1624 2016-11-09 David Malcolm <dmalcolm@redhat.com>
1626 * print-rtl-function.c: Include varasm.h.
1627 (print_any_param_name): New function.
1628 (print_param): New function.
1629 (print_rtx_function): Call print_param for each argument.
1630 * print-rtl.c (rtx_writer::finish_directive): New function.
1631 * print-rtl.h (rtx_writer::finish_directive): New decl.
1633 2016-11-09 Uros Bizjak <ubizjak@gmail.com>
1636 * config/i386/i386.md (*<shift_insn><mode>3_doubleword): Mark
1637 operand 0 as earlyclobber.
1638 (*ashl<mode>3_doubleword): Ditto for all operand 0 alternatives.
1640 2016-11-09 Martin Liska <mliska@suse.cz>
1642 * fold-const-call.c (fold_const_call): Fix up type of s0 and s1.
1644 2016-11-09 Jakub Jelinek <jakub@redhat.com>
1647 * builtins.c (expand_builtin_memcmp): Formatting fix.
1649 * flag-types.h (enum sanitize_code): Add SANITIZE_SHIFT_BASE
1650 and SANITIZE_SHIFT_EXPONENT, change SANITIZE_SHIFT to bitwise
1651 or of them, renumber other enumerators.
1652 * opts.c (sanitizer_opts): Add shift-base and shift-exponent.
1653 * doc/invoke.texi: Document -fsanitize=shift-base and
1654 -fsanitize-shift-exponent, document -fsanitize=shift as
1655 having those 2 suboptions.
1657 2016-11-09 Richard Biener <rguenther@suse.de>
1659 * fold-const.c (tree_swap_operands_p): Remove unused arg.
1660 * fold-const.c (tree_swap_operands_p): Likewise.
1661 (fold_binary_loc): Adjust.
1662 (fold_ternary_loc): Likewise.
1663 * genmatch.c (dt_operand::gen_gimple_exp): Likewise.
1664 * gimple-fold.c (fold_stmt_1): Likewise.
1665 * gimple-match-head.c (gimple_resimplify2): Likewise.
1666 (gimple_resimplify3): Likewise.
1667 (gimple_simplify): Likewise.
1668 * tree-ssa-dom.c (record_equality): Likewise.
1669 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Likewise.
1670 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
1671 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): Likewise.
1673 2016-11-09 Richard Biener <rguenther@suse.de>
1675 * tree-ssa-dom.c (canonicalize_comparison): Remove.
1676 (optimize_stmt): Remove redundant pre-propagation canonicalization
1677 of comparison operand order.
1679 2016-11-09 Martin Liska <mliska@suse.cz>
1681 * fold-const-call.c (fold_const_call): Fix the folding.
1683 2016-11-09 Richard Biener <rguenther@suse.de>
1685 * common.opt (flag_evaluation_order): Remove.
1686 * expr.c (expand_operands): Remove code guarded by
1687 flag_evaluation_order.
1688 * fold-const.c (reorder_operands_p): Remove, it always returns
1690 (negate_expr_p): Remove calls to reorder_operands_p.
1691 (fold_negate_expr): Likewise.
1692 (tree_swap_operands_p): Likewise.
1693 (fold_binary_loc): Likewise.
1695 2016-11-09 Andreas Schwab <schwab@suse.de>
1698 * config/m68k/m68k.md: Reject out-of-range bit pos in bit-fields
1699 insns operating on a register.
1701 2016-11-09 Richard Biener <rguenther@suse.de>
1703 PR tree-optimization/78007
1704 * tree-vect-stmts.c (vectorizable_bswap): New function.
1705 (vectorizable_call): Call vectorizable_bswap for
1706 BUILT_IN_BSWAP{16,32,64} if arguments are not promoted.
1708 2016-11-09 Richard Biener <rguenther@suse.de>
1710 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
1711 Look at the DR_BASE_ADDRESS object for forcing alignment.
1713 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
1715 * ipa-cp.c (ipa_get_jf_pass_through_result): Handle unary expressions.
1716 (propagate_vr_accross_jump_function): Likewise.
1717 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
1718 (load_from_param_1): New.
1719 (load_from_unmodified_param): Factor common part into load_from_param_1.
1720 (load_from_param): New.
1721 (compute_complex_assign_jump_func): Handle unary expressions.
1722 (ipa_write_jump_function): Likewise.
1723 (ipa_read_jump_function): Likewise.
1725 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
1728 * ipa-cp.c (propagate_vr_accross_jump_function): Pass param type.
1729 Also fold constant passed as argument while computing value range.
1730 (propagate_constants_accross_call): Pass param type.
1731 * ipa-prop.c: export ipa_get_callee_param_type.
1732 * ipa-prop.h: export ipa_get_callee_param_type.
1734 2016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
1736 * asan.h (asan_intercepted_p): Handle BUILT_IN_STRCSPN,
1737 BUILT_IN_STRPBRK, BUILT_IN_STRSPN and BUILT_IN_STRSTR.
1739 2016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
1741 * asan.h (ASAN_STACK_MAGIC_PARTIAL): Remove.
1742 * asan.c (ASAN_STACK_MAGIC_PARTIAL): Replace with
1743 ASAN_STACK_MAGIC_MIDDLE.
1744 (asan_global_struct): Increase the size of fields.
1745 (asan_add_global): Add new field constructor.
1746 * sanitizer.def (__asan_version_mismatch_check_v6): Replace with
1747 __asan_version_mismatch_check_v8.
1749 2016-11-08 David Edelsohn <dje.gcc@gmail.com>
1751 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Test XCOFF_DEBUGGING_INFO
1754 2016-11-08 Uros Bizjak <ubizjak@gmail.com>
1757 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
1758 Handle ASHIFT and LSHIFTRT.
1759 (dimode_scalar_chain::compute_convert_gain): Ditto.
1760 (dimode_scalar_chain::convert_insn): Ditto.
1762 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1764 * gimple-ssa-store-merging.c: Include selftest.h
1765 (verify_array_eq): New function.
1766 (verify_shift_bytes_in_array): Likewise.
1767 (verify_shift_bytes_in_array_right): Likewise.
1768 (verify_clear_bit_region): Likewise.
1769 (verify_clear_bit_region_be): Likewise.
1770 (store_merging_c_tests): Likewise.
1771 * selftest.h (store_merging_c_tests): Declare prototype.
1772 * selftest-run-tests.c (selftest::run_tests): Run
1773 store_merging_c_tests.
1775 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1777 * config/arm/arm.opt (mold-rtx-costs): Delete.
1778 (mnew-generic-costs): Delete.
1779 * config/arm/arm-protos.h (struct tune_params): Delete rtx_costs field.
1780 * config/arm/arm.c (arm_rtx_costs_1): Delete.
1781 (arm_size_rtx_costs): Likewise.
1782 (arm_slowmul_rtx_costs): Likewise.
1783 (arm_fastmul_rtx_costs): Likewise.
1784 (arm_xscale_rtx_costs): Likewise.
1785 (arm_9e_rtx_costs): Likewise.
1786 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
1787 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
1788 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
1789 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
1790 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
1791 arm_cortex_a5_tune, arm_xgene1_tune, arm_marvell_pj4_tune,
1792 arm_cortex_a35_tune, arm_exynosm1_tune, arm_cortex_a73_tune,
1793 arm_cortex_m7_tune):
1794 Delete rtx_costs field.
1795 (arm_new_rtx_costs): Rename to...
1796 (arm_rtx_costs_internal): ... This.
1797 (arm_rtx_costs): Remove old way of doing rtx costs.
1799 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1801 * config/arm/arm.c (arm_slowmul_tune): Use generic_extra_costs.
1802 (arm_fastmul_tune): Likewise.
1803 (arm_strongarm_tune): Likewise.
1804 (arm_xscale_tune): Likewise.
1805 (arm_9e_tune): Likewise.
1806 (arm_marvell_pj4_tune): Likewise.
1807 (arm_v6t2_tune): Likewise.
1808 (arm_v6m_tune): Likewise.
1809 (arm_fa726te_tune): Likewise.
1811 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1813 PR tree-optimization/78234
1814 * gimple-ssa-store-merging.c (clear_bit_region): Fix off-by-one error
1817 2016-11-08 Martin Liska <mliska@suse.cz>
1820 * dbgcnt.def: Add new debug counter asan_use_after_scope.
1821 * gimplify.c (gimplify_decl_expr): Do not sanitize vars
1822 with a value expr. Do not add artificial variables to
1823 live_switch_vars. Use the debug counter.
1824 (gimplify_target_expr): Use the debug counter.
1825 * internal-fn.def: Remove ECF_TM_PURE from ASAN_MARK builtin.
1826 * sanitizer.def: Set ATTR_NOTHROW_LEAF_LIST to
1827 BUILT_IN_ASAN_CLOBBER_N and BUILT_IN_ASAN_UNCLOBBER_N.
1829 2016-11-08 Richard Biener <rguenther@suse.de>
1831 * tree-vect-stmts.c (get_group_load_store_type): If the
1832 access is aligned do not trigger peeling for gaps.
1833 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
1834 force alignment of vars with DECL_USER_ALIGN.
1836 2016-11-08 James Greenhalgh <james.greenhalgh@arm.com>
1838 * config/aarch64/t-aarch64 (aarch64-c.o): Depend on TARGET_H.
1840 2016-11-08 Richard Biener <rguenther@suse.de>
1842 PR tree-optimization/78205
1843 * tree-vect-stmts.c (vectorizable_load): Move check whether
1844 we may run into gaps when BB vectorizing SLP permutations ...
1845 * tree-vect-slp.c (vect_supported_load_permutation_p): ...
1846 here where we can do a more precise check.
1848 2016-11-08 Richard Biener <rguenther@suse.de>
1850 PR tree-optimization/78224
1851 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
1852 Split the fallthru edge in case its successor may have PHIs.
1853 Do not free dominance info.
1855 2016-11-07 Jakub Jelinek <jakub@redhat.com>
1858 * config/i386/i386.c (ix86_gimple_fold_builtin): Do not adjust
1859 EH info even for bzhi and pdep/pext.
1861 2016-11-07 Peter Bergner <bergner@vnet.ibm.com>
1863 * config.gcc (powerpc*-*-*, rs6000*-*-*): Remove setting of
1864 INCLUDE_EXTRA_SPEC for Advance Toolchain builds.
1866 2016-11-07 Segher Boessenkool <segher@kernel.crashing.org>
1868 * config/rs6000/rs6000.md (div<mode>3): Expand using rs6000_emit_swdiv
1870 * config/rs6000/vector.md (div<mode>3): Ditto.
1872 2016-11-07 David Edelsohn <dje.gcc@gmail.com>
1874 * configure.ac (.hidden): Change to conftest_s string. Provide string
1876 (gcc_cv_ld_hidden): Yes for AIX.
1877 * configure: Regenerate.
1879 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Don't set for AIX (XCOFF).
1881 * config/rs6000/rs6000-protos.h (rs6000_asm_weaken_decl): Declare
1882 (rs6000_xcoff_asm_output_aligned_decl_common): Declare.
1883 * config/rs6000/xcoff.h (TARGET_ASM_GLOBALIZE_DECL_NAME): Define.
1884 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
1885 (ASM_OUTPUT_ALIGNED_COMMON): Delete.
1886 * config/rs6000/rs6000.c (rs6000_init_builtins): Change clog rename
1888 (rs6000_xcoff_visibility): New.
1889 (rs6000_xcoff_declare_function_name): Add visibility support.
1890 (rs6000_xcoff_asm_globalize_decl_name): New.
1891 (rs6000_xcoff_asm_output_aligned_decl_common): New.
1892 (rs6000_asm_weaken_decl): New.
1893 (rs6000_code_end): Disable HIDDEN_LINKONCE on XCOFF.
1894 config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Change definition to
1897 2016-11-07 Jack Howarth <howarth.at.gcc@gmail.com>
1900 * incpath.c: (remove_dup(): Also silently ignore EPERM.
1902 2016-11-07 Martin Jambor <mjambor@suse.cz>
1904 * tree.c (verify_type_variant): Use pointer comparison to check that
1905 TYPE_SIZE_UNIT match.
1907 2016-11-07 Jakub Jelinek <jakub@redhat.com>
1910 * dse.c (dse_step5): Call scan_reads even if just
1911 insn_info->frame_read. Improve and fix dump file messages.
1914 * config/i386/i386.c (ix86_expand_sse_cmp): Force dest into
1915 cmp_mode argument even for -O0 if cmp_mode != mode and maskcmp.
1917 2016-11-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1920 * match.pd: Add following two patterns:
1921 (x == 0 & y == 0) -> (x | typeof(x)(y)) == 0.
1922 (x != 0 | y != 0) -> (x | typeof(x)(y)) != 0.
1924 2016-11-07 Bernd Schmidt <bschmidt@redhat.com>
1926 * emit-rtl.c (emit_copy_of_insn_after): Duplicate notes in order.
1927 * sel-sched-ir.c (create_copy_of_insn_rtx): Likewise.
1928 * rtl.h (duplicate_reg_notes): Declare.
1929 * rtlanal.c (duplicate_reg_note): New function.
1931 PR rtl-optimization/77309
1932 * combine.c (make_compound_operation): Allow EQ for IN_CODE, and
1933 don't assume an equality comparison for plain COMPARE.
1934 (simplify_comparison): Pass a more accurate code to
1935 make_compound_operation.
1937 2016-11-07 Pat Haugen <pthaugen@us.ibm.com>
1939 * target.def (compute_pressure_classes): New target hook.
1940 * doc/tm.texi.in: Document it.
1941 * doc/tm.texi: Regenerate.
1942 * ira.c (setup_pressure_classes): Call target hook if defined.
1944 2016-11-07 David Malcolm <dmalcolm@redhat.com>
1946 * print-rtl.c (rtx_writer::operand_has_default_value_p): New
1948 (rtx_writer::print_rtx): In compact mode, omit trailing operands
1949 that have the default values.
1950 * print-rtl.h (rtx_writer::operand_has_default_value_p): New
1952 * rtl-tests.c (selftest::test_dumping_insns): Remove empty
1953 label string from expected dump.
1954 (seltest::test_uncond_jump): Remove trailing "(nil)" for REG_NOTES
1957 2016-11-07 Jakub Jelinek <jakub@redhat.com>
1960 * alias.c (nonoverlapping_memrefs_p): If one decl is
1961 FUNCTION_DECL or LABEL_DECL and the other is not, return 1.
1963 2016-11-07 Richard Biener <rguenther@suse.de>
1966 * config/i386/i386.c (ix86_gimple_fold_builtin): Do not adjust
1969 2016-11-07 Richard Biener <rguenther@suse.de>
1971 PR tree-optimization/78218
1972 * gimple-ssa-store-merging.c
1973 (pass_store_merging::terminate_all_aliasing_chains):
1974 Drop unused argument, fix alias check to also consider uses.
1975 (pass_store_merging::execute): Adjust.
1977 2016-11-07 Richard Biener <rguenther@suse.de>
1979 PR tree-optimization/78228
1980 * tree-ssa-phiopt.c (abs_replacement): Avoid introducing
1983 2016-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1986 * config/aarch64/aarch64.md (*tb<optab><mode>1): Use
1987 aarch64_simd_shift_imm_<mode> predicate for operand 1.
1988 (<optab>, ANY_EXTRACT): Use tighter predicates on operands 2 and 3
1989 to restrict them to an appropriate range and add FAIL check if the
1990 region they specify is out of range. Delete useless constraint
1992 (*<optab><mode>, ANY_EXTRACT): Add appropriate predicates on operands
1993 2 and 3 to restrict their range and add pattern predicate.
1995 2016-11-07 Martin Liska <mliska@suse.cz>
1997 * asan.c (enum asan_check_flags): Move the enum to header file.
1998 (asan_init_shadow_ptr_types): Make type creation more generic.
1999 (shadow_mem_size): New function.
2000 (asan_emit_stack_protection): Use newly added ASAN_SHADOW_GRANULARITY.
2001 Rewritten stack unpoisoning code.
2002 (build_shadow_mem_access): Add new argument return_address.
2003 (instrument_derefs): Instrument local variables if use after scope
2004 sanitization is enabled.
2005 (asan_store_shadow_bytes): New function.
2006 (asan_expand_mark_ifn): Likewise.
2007 (asan_sanitize_stack_p): Moved from asan_sanitize_stack_p.
2008 * asan.h (enum asan_mark_flags): Moved here from asan.c
2009 (asan_protect_stack_decl): Protect all declaration that need
2011 (asan_sanitize_use_after_scope): New function.
2012 (asan_no_sanitize_address_p): Likewise.
2013 * cfgexpand.c (partition_stack_vars): Consider
2014 asan_sanitize_use_after_scope in condition.
2015 (expand_stack_vars): Likewise.
2016 * common.opt (-fsanitize-address-use-after-scope): New option.
2017 * doc/invoke.texi (use-after-scope-direct-emission-threshold):
2018 Explain the parameter.
2019 * flag-types.h (enum sanitize_code): Define SANITIZE_USE_AFTER_SCOPE.
2020 * gimplify.c (build_asan_poison_call_expr): New function.
2021 (asan_poison_variable): Likewise.
2022 (gimplify_bind_expr): Generate poisoning/unpoisoning for local
2023 variables that have address taken.
2024 (gimplify_decl_expr): Likewise.
2025 (gimplify_target_expr): Likewise for C++ temporaries.
2026 (sort_by_decl_uid): New function.
2027 (gimplify_expr): Unpoison all variables for a label we can jump
2028 from outside of a scope.
2029 (gimplify_switch_expr): Unpoison variables defined in the switch
2031 (gimplify_function_tree): Clear asan_poisoned_variables.
2032 (asan_poison_variables): New function.
2033 (warn_switch_unreachable_r): Handle IFN_ASAN_MARK.
2034 * internal-fn.c (expand_ASAN_MARK): New function.
2035 * internal-fn.def (ASAN_MARK): Declare.
2036 * opts.c (finish_options): Handle -fstack-reuse if
2037 -fsanitize-address-use-after-scope is enabled.
2038 (common_handle_option): Enable address sanitization if
2039 -fsanitize-address-use-after-scope is enabled.
2040 * params.def (PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD):
2042 * params.h: Likewise.
2043 * sancov.c (pass_sanopt::execute): Handle IFN_ASAN_MARK.
2044 * sanitizer.def: Define __asan_poison_stack_memory and
2045 __asan_unpoison_stack_memory functions.
2046 * asan.c (asan_mark_poison_p): New function.
2047 (transform_statements): Handle asan_mark_poison_p calls.
2048 * gimple.c (nonfreeing_call_p): Handle IFN_ASAN_MARK.
2050 2016-11-07 Tamar Christina <tamar.christina@arm.com>
2053 * Makefile.in (SELFTEST_FLAGS): Added -o /dev/null.
2055 2016-11-07 Martin Liska <mliska@suse.cz>
2057 * tree-profile.c (gimple_gen_time_profiler): Set proper type
2058 to time_profiler_counter_ptr.
2060 2016-11-07 Richard Biener <rguenther@suse.de>
2062 PR tree-optimization/37150
2063 * tree-vectorizer.h (vect_transform_slp_perm_load): Add n_perms
2065 * tree-vect-slp.c (vect_supported_load_permutation_p): Adjust.
2066 (vect_analyze_slp_cost_1): Account for the real number of
2067 permutations emitted and for dead loads.
2068 (vect_transform_slp_perm_load): Add n_perms parameter counting
2069 the number of emitted permutations.
2070 * tree-vect-stmts.c (vectorizable_load): Adjust.
2072 2016-11-07 Richard Biener <rguenther@suse.de>
2074 PR tree-optimization/78189
2075 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Fix
2076 alignment computation.
2078 2016-11-06 Kugan Vivekanandarajah <kuganv@linaro.org>
2080 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove unreachable code.
2082 2016-11-05 Martin Sebor <msebor@redhat.com>
2084 * doc/invoke.texi (Warning Options): Correct typos in -Walloca
2087 2016-11-05 David Edelsohn <dje.gcc@gmail.com>
2091 * ipa-comdats.c (pass_ipa_comdats::gate): Require HAVE_COMDAT_GROUP.
2093 2016-11-04 Jakub Jelinek <jakub@redhat.com>
2096 * alias.c (nonoverlapping_memrefs_p): Return 0 if exprx or expry
2097 doesn't have rtl set.
2099 2016-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2101 * config/rs6000/rs6000.c (gimple-ssa.h): New #include.
2102 (TARGET_GIMPLE_FOLD_BUILTIN): Define as
2103 rs6000_gimple_fold_builtin.
2104 (rs6000_gimple_fold_builtin): New function. Add handling for
2105 early expansion of vector addition builtins.
2107 2016-11-04 Eric Botcazou <ebotcazou@adacore.com>
2109 * expr.h (copy_blkmode_from_reg): Delete.
2110 * expr.c (copy_blkmode_from_reg): Make static.
2112 2016-11-04 Eric Botcazou <ebotcazou@adacore.com>
2114 * defaults.h (LOAD_EXTEND_OP): Define if not already defined.
2115 * combine.c (LOAD_EXTEND_OP): Delete.
2116 (simplify_comparison): Fix comment about LOAD_EXTEND_OP.
2117 * cse.c (LOAD_EXTEND_OP): Delete.
2118 * fold-const.c (LOAD_EXTEND_OP): Likewise.
2119 * fwprop.c (free_load_extend): Remove #ifdef LOAD_EXTEND_OP/#endif.
2120 * postreload.c (LOAD_EXTEND_OP): Delete.
2121 * reload.c (push_reload): Remove #ifdef LOAD_EXTEND_OP/#endif.
2122 Convert conditional compilation based on WORD_REGISTER_OPERATIONS.
2123 (find_reloads): Likewise.
2124 * reload1.c (eliminate_regs_1): Likewise.
2125 * rtlanal.c (nonzero_bits1): Remove #ifdef LOAD_EXTEND_OP/#endif.
2126 (num_sign_bit_copies1): Likewise.
2128 2016-11-04 David Malcolm <dmalcolm@redhat.com>
2130 * config/i386/i386.c: Include "selftest.h" and "selftest-rtl.h".
2131 (selftest::ix86_test_dumping_hard_regs): New function.
2132 (selftest::ix86_run_selftests): New function.
2133 (TARGET_RUN_TARGET_SELFTESTS): When CHECKING_P, wire this up to
2134 selftest::ix86_run_selftests.
2135 * doc/tm.texi.in (TARGET_RUN_TARGET_SELFTESTS): New.
2136 * doc/tm.texi: Regenerate
2137 * selftest-rtl.h: New file.
2138 * rtl-tests.c: Include "selftest-rtl.h".
2139 (selftest::assert_rtl_dump_eq): Make non-static.
2140 (ASSERT_RTL_DUMP_EQ): Move to selftest-rtl.h.
2141 (selftest::test_dumping_regs): Update comment.
2142 * selftest-run-tests.c: Include "target.h".
2143 (selftest::run_tests): If non-NULL, call
2144 targetm.run_target_selftests.
2145 * target.def (run_target_selftests): New hook.
2147 2016-11-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
2149 * config/arm/arm-arches.def (armv8-m.main+dsp): Set Cortex-M33 as
2150 representative core for this architecture.
2151 * config/arm/arm-cores.def (cortex-m33): Define new processor.
2152 * config/arm/arm-tables.opt: Regenerate.
2153 * config/arm/arm-tune.md: Likewise.
2154 * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex-M33 to the list of
2155 valid -mcpu options.
2156 * doc/invoke.texi (ARM Options): Document new Cortex-M33 processor.
2158 2016-11-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
2160 * config/arm/arm-arches.def (armv8-m.base): Set Cortex-M23 as
2161 representative core for this architecture.
2162 * config/arm/arm-cores.def (cortex-m23): Define new processor.
2163 * config/arm/arm-tables.opt: Regenerate.
2164 * config/arm/arm-tune.md: Likewise.
2165 * config/arm/arm.c (arm_v6m_tune): Add Cortex-M23 to the list of cores
2166 this tuning parameters apply to in the comment.
2167 * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex-M23 to the list of
2168 valid -mcpu options.
2169 * doc/invoke.texi (ARM Options): Document new Cortex-M23 processor.
2171 2016-11-04 Bin Cheng <bin.cheng@arm.com>
2173 * fold-const.c (fold_cond_expr_with_comparison): Remove call
2174 to pedantic_non_lvalue_loc. Remove useless code for lvalue
2175 where cond_expr can't be a lvalue.
2177 2016-11-04 Claudiu Zissulescu <claziss@synopsys.com>
2179 * config/arc/arc.c (arc_process_double_reg_moves): Use
2181 * config/arc/arc.md (movsi_insn): Disable unsupported move
2182 instructions for ARCv2 cores.
2183 (movdi): Use prepare_move_operands.
2184 (movsf, movdf): Use move_dest_operand predicate.
2185 * config/arc/constraints.md (Chs): Enable when barrel shifter is
2187 * config/arc/fpu.md (divsf3): Change to divsf3_fpu.
2188 * config/arc/fpx.md (dexcl_3op_peep2_insn): Dx data register is
2190 (dexcl_3op_peep2_insn_nores): Likewise.
2191 * config/arc/arc.h (SHIFT_COUNT_TRUNCATED): Define to one.
2192 (LINK_COMMAND_SPEC): Remove.
2194 2016-11-04 Richard Biener <rguenther@suse.de>
2197 * loop-invariant.c (find_exits): Record entering inner
2198 loops as possibly exiting to handle infinite sub-loops.
2199 * tree-ssa-loop-im.c: Include tree-ssa-loop-niter.h.
2200 (fill_always_executed_in_1): Honor infinite child loops.
2202 2016-11-03 Michael Meissner <meissner@linux.vnet.ibm.com>
2205 * config/rs6000/vsx.md (vsx_extract_<mode>_di): The element number
2206 has already been adjusted for endianness, so don't adjust it any
2210 * config/rs6000/rs6000.h (FLOAT128_IBM_P): Do not allow IFmode or
2211 ICmode unless we have standard PowerPC floating point.
2212 * config/rs6000/rs6000.md (FP iterator): Likewise.
2213 (FMOVE128 iterator): Likewise.
2215 2016-11-03 Jakub Jelinek <jakub@redhat.com>
2216 Alexandre Oliva <aoliva@redhat.com>
2217 Jason Merrill <jason@redhat.com>
2221 * langhooks.h (struct lang_hooks_for_types): Add type_dwarf_attribute
2223 * langhooks.c (lhd_type_dwarf_attribute): New function.
2224 * langhooks-def.h (lhd_type_dwarf_attribute): Declare.
2225 (LANG_HOOKS_TYPE_DWARF_ATTRIBUTE): Define.
2226 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add
2227 LANG_HOOKS_TYPE_DWARF_ATTRIBUTE.
2228 (check_qualified_type, check_aligned_type): Call it.
2229 * dwarf2out.c (modified_type_die): Don't use type_main_variant
2230 for FUNCTION_TYPE or METHOD_TYPE, instead walk over variants with
2231 check_base_type and check_lang_type.
2232 (gen_ptr_to_mbr_type_die): If lookup_type_die is already non-NULL,
2233 return early. For pointer-to-data-member add DW_AT_use_location
2235 (gen_subroutine_type_die): Add DW_AT_{,rvalue_}reference attribute
2237 (gen_type_die_with_usage): Don't use type_main_variant
2238 for FUNCTION_TYPE or METHOD_TYPE, instead walk over variants with
2239 check_base_type and check_lang_type. Formatting fixes. Call
2240 get_debug_type langhook.
2242 2016-11-03 Jason Merrill <jason@redhat.com>
2244 * tree.c (check_lang_type): New.
2245 (check_qualified_type): Use it.
2246 (check_aligned_type): Use it.
2247 * tree.h: Declare it.
2249 2016-11-03 Richard Earnshaw <rearnsha@arm.com>
2251 * config.gcc (arm-wrs-vxworks): Set target_cpu_cname.
2252 (arm*-freebsd*): Likewise.
2253 (arm*-*-netbsdelf*): Likewise.
2254 (arm*-*-linux*): Likewise.
2255 (arm*-*-uclinux*eabi*): Likewise.
2256 (arm*-*-phoenix*): Likewise.
2257 (arm*-*-eabi*, arm*-*-symbianelf*, arm*-*-rtems*): Likewise.
2258 (arm*-*-*): Don't clobber target_cpu_cname when --with-cpu is not
2259 specified. Default to arm6 if target_cpu_cname is not set.
2260 * arm/arm.c (arm_option_override): Simplify logic. Assert that the
2261 default cpu has been correctly configured.
2262 * arm/arm.h (TARGET_CPU_DEFAULT): Delete.
2263 (target_cpus): Delete TARGET_CPU_generic, add TARGET_CPU_num_cores.
2264 * arm/freebsd.h (SUBTARGET_CPU_DEFAULT): Delete.
2265 * arm/linux-eabi.h (SUBTARGET_CPU_DEFAULT): Delete.
2266 * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Delete.
2267 * arm/symbian.h (SUBTARGET_CPU_DEFAULT): Delete.
2268 * arm/unknown-elf.h (SUBTARGET_CPU_DEFAULT): Delete.
2270 2016-11-03 Jiong Wang <jiong.wang@arm.com>
2272 * reg-notes.def (CFA_VAL_EXPRESSION): New entry.
2273 * dwarf2cfi.c (dwarf2out_frame_debug_cfa_val_expression): New function.
2274 (dwarf2out_frame_debug): Support REG_CFA_VAL_EXPRESSION.
2275 (output_cfa_loc): Support DW_CFA_val_expression.
2276 (output_cfa_loc_raw): Likewise.
2277 (output_cfi): Likewise.
2278 (output_cfi_directive): Likewise.
2279 * dwarf2out.c (dw_cfi_oprnd1_desc): Support DW_CFA_val_expression.
2280 (dw_cfi_oprnd2_desc): Likewise.
2281 (mem_loc_descriptor): Recognize new pattern generated for value
2284 2016-11-03 Segher Boessenkool <segher@kernel.crashing.org>
2286 PR rtl-optimization/78186
2287 * combine.c (change_zero_ext): Mask the RHS of a zero_extract as
2288 well, when converting to IOR.
2290 2016-11-03 Eric Botcazou <ebotcazou@adacore.com>
2292 * config/sparc/sparc.md (vec_interleave_lowv8qi): Delete.
2293 (vec_interleave_highv8qi): Likewise.
2295 2016-11-03 Martin Liska <mliska@suse.cz>
2297 * profile.c (instrument_values): Fix coding style.
2298 (branch_prob): Use renamed function.
2299 * tree-profile.c (init_ic_make_global_vars): Likewise.
2300 (gimple_init_edge_profiler): Rename to
2301 gimple_init_gcov_profiler.
2302 tree_time_profiler_counter variable declaration.
2303 (gimple_gen_time_profiler): Rewrite to do a direct gimple code
2305 * value-prof.h: Remove an argument.
2307 2016-11-03 Richard Biener <rguenther@suse.de>
2309 * config/rs6000/rs6000.c (rs6000_xcoff_declare_object_name): Use
2310 symtab_node::get_create.
2312 2016-11-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2314 * rtlanal.c (nonzero_bits1): Fix WORD_REGISTER_OPERATIONS condition.
2315 Move comments into more natural position.
2317 2016-11-03 Vineet Gupta <vgupta@synopsys.com>
2319 * config/arc/arc.h (SIZE_TYPE): Define as unsigned int.
2320 (PTRDIFF_TYPE): Define as int.
2322 2016-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2324 * ccmp.c (expand_ccmp_expr_1): Adjust.
2325 (expand_ccmp_expr): Likewise.
2326 (expand_ccmp_next): Likewise.
2327 * config/aarch64/aarch64.c (aarch64_gen_ccmp_next): Likewise.
2328 (aarch64_gen_ccmp_first): Likewise.
2329 * doc/tm.texi: Regenerate.
2330 * target.def (gen_ccmp_first): Change argument types to rtx_insn *.
2331 (gen_ccmp_next): Likewise.
2333 2016-11-03 Bin Cheng <bin.cheng@arm.com>
2335 * tree-vect-loop.c (destroy_loop_vec_info): Handle cond_expr.
2336 (vect_is_simple_reduction): Swap cond_reduction by inversion.
2338 2016-11-02 Uros Bizjak <ubizjak@gmail.com>
2340 * config/i386/i386.c (ix86_init_libfuncs): New. Call
2341 darwin_rename_builtins here.
2342 (ix86_expand_divmod_libfunc): New.
2343 (TARGET_INIT_LIBFUNCS): Unconditionally define to ix86_init_libfuncs.
2344 (TARGET_EXPAND_DIVMOD_LIBFUNC): Define.
2346 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
2347 Nathan Sidwell <nathan@acm.org>
2349 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): Set to zero.
2351 2016-11-02 Max Filippov <jcmvbkbc@gmail.com>
2353 * config/xtensa/xtensa.c (xtensa_output_integer_literal_parts):
2355 (xtensa_output_literal): Use xtensa_output_integer_literal_parts
2356 to format MODE_INT and MODE_PARTIAL_INT literals.
2358 2016-11-02 Segher Boessenkool <segher@kernel.crashing.org>
2361 * config/r6000/rs6000.c (rs6000_get_separate_components): Return
2362 NULL if TARGET_SPE_ABI.
2364 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2366 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Don't forget to
2367 clear padding bits even when they're less than a byte.
2369 2016-11-02 Richard Biener <rguenther@suse.de>
2371 * gimple-ssa-store-merging.c: Include gimplify-me.h.
2372 (imm_store_chain_info::output_merged_stores): Force base_addr
2373 to be proper GIMPLE for a MEM_REF address.
2374 (pass_store_merging::execute): Restrict negative bitpos
2375 handling to non-MEM_REF bases. Remove TREE_THIS_VOLATILE
2376 check. Take into account non-NULL_TREE offset if the base
2377 is already addressable.
2379 2016-11-26 Wilco Dijkstra <wdijkstr@arm.com>
2381 * config/aarch64/aarch64-simd.md (aarch64_crypto_sha1hv4si):
2383 (aarch64_be_crypto_sha1hv4si): New pattern.
2385 2016-11-02 Wilco Dijkstra <wdijkstr@arm.com>
2387 * config/aarch64/aarch64.md (add<mode>3): Remove
2388 redundant code. Don't split frame based additions.
2390 2016-11-02 Richard Biener <rguenther@suse.de>
2392 * gimple-ssa-store-merging.c (struct store_immediate_info): Remove
2393 redundant val and dest members.
2394 (store_immediate_info::store_immediate_info): Adjust.
2395 (merged_store_group::merged_store_group): Adjust.
2396 (merged_store_group::apply_stores): Likewise.
2397 (struct imm_store_chain_info): Add base_addr field.
2398 (imm_store_chain_info::imm_store_chain_info): New constructor.
2399 (imm_store_chain_info::terminate_and_process_chain): Do not pass base.
2400 (imm_store_chain_info::output_merged_store): Likewise. Use
2401 addr_base which is already the address.
2402 (imm_store_chain_info::output_merged_stores): Likewise.
2403 (pass_tree_store_merging::terminate_all_aliasing_chains): Take
2404 imm_store_chain_info instead of base. Fix alias check.
2405 (pass_tree_store_merging::terminate_and_release_chain): Likewise.
2406 (imm_store_chain_info::coalesce_immediate_stores): Adjust.
2407 (pass_store_merging::execute): Refuse to operate on TARGET_MEM_REF.
2408 use the address of the base and adjust for other changes.
2410 2016-11-02 Martin Liska <mliska@suse.cz>
2412 * fold-const-call.c (host_size_t_cst_p): Test whether
2413 t is convertible to size_t.
2415 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2417 PR tree-optimization/78170
2418 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Truncate padding
2419 introduced by native_encode_expr on little-endian as well.
2421 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2423 PR tree-optimization/78162
2424 * gimple-ssa-store-merging.c (execute): Mark stores with bitpos < 0
2427 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2429 * config/aarch64/aarch64.c (aarch64_register_saved_on_entry): Add
2431 (aarch64_next_callee_save): Likewise.
2432 (aarch64_pushwb_single_reg): Likewise.
2433 (aarch64_gen_storewb_pair): Likewise.
2434 (aarch64_push_regs): Likewise.
2435 (aarch64_gen_loadwb_pair): Likewise.
2436 (aarch64_pop_regs): Likewise.
2437 (aarch64_gen_store_pair): Likewise.
2438 (aarch64_gen_load_pair): Likewise.
2439 (aarch64_save_callee_saves): Likewise.
2440 (aarch64_restore_callee_saves): Likewise.
2442 2016-11-02 Richard Biener <rguenther@suse.de>
2444 PR tree-optimization/78035
2445 PR tree-optimization/77964
2446 * gimple-pretty-print.c (pp_points_to_solution): Print
2447 vars_contains_interposable.
2448 * tree-ssa-alias.c: Include varasm.h.
2449 (ptrs_compare_unequal): Check vars_contains_interposable and
2450 decl_binds_to_current_def_p.
2451 (dump_points_to_solution): Dump vars_contains_interposable.
2452 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_interposable
2454 * tree-ssa-structalias.c: Include varasm.h.
2455 (set_uids_in_ptset): Record whether vars contains a
2456 not decl_binds_to_current_def_p variable in vars_contains_interposable.
2457 (ipa_escaped_pt): Update initializer.
2459 2016-11-02 Richard Biener <rguenther@suse.de>
2461 PR tree-optimization/78047
2462 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Initialize
2463 fake field at offset zero conservatively regarding to may_have_pointers.
2465 2016-11-02 Richard Biener <rguenther@suse.de>
2467 * tree-vrp.c (evrp_dom_walker::before_dom_children): Call
2468 infer_value_range on stmt ops and update value-ranges.
2469 Dump visited stmts and blocks.
2470 (evrp_dom_walker::push_value_range): Dump changes.
2471 (evrp_dom_walker::pop_value_range): Likewise.
2472 (evrp_dom_walker::try_find_new_range): Avoid noop changes.
2474 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2476 * emit-rtl.c (prev_nonnote_insn_bb): Change argument type to
2478 * rtl.h (prev_nonnote_insn_bb): Adjust prototype.
2480 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2482 * cfgrtl.c (delete_insn_chain): Change argument type to rtx_insn *
2483 and adjust for that.
2484 * cfgrtl.h (delete_insn_chain): Adjust prototype.
2486 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2488 * config/rl78/rl78.c (gen-and_emit_move): Change argument type
2490 (transcode_memory_rtx): Likewise.
2491 (move_to_acc): Likewise.
2492 (move_from_acc): Likewise.
2493 (move_acc_to_reg): Likewise.
2494 (move_to_x): Likewise.
2495 (move_to_hl): Likewise.
2496 (move_to_de): Likewise.
2497 * config/rs6000/rs6000.c (emit_frame_save): Likewise.
2498 (rs6000_emit_savres_rtx): Likewise.
2499 (rs6000_emit_prologue): Likewise.
2500 * reorg.c (update_reg_unused_notes): Likewise.
2501 * rtl.h (remove_note): Adjust prototype.
2502 * rtlanal.c (remove_note): Make argument type rtx_insn *.
2504 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2506 * config/alpha/alpha.c (alpha_legitimize_address_1): Split up
2507 variables so some can be rtx_insn *.
2508 (alpha_emit_xfloating_libcall): Likewise.
2509 * config/mips/mips.c (mips_call_tls_get_addr): Likewise.
2510 (mips_legitimize_tls_address): Likewise.
2511 * optabs.c (expand_binop): Likewise.
2512 * reload1.c (gen_reload): Likewise.
2514 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2516 * reorg.c (relax_delay_slots): Split up the trial variable.
2518 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2520 * config/arc/arc.c (arc_emit_call_tls_get_addr): Make the type
2521 of variables rtx_insn *.
2522 * config/arm/arm.c (arm_call_tls_get_addr): Likewise.
2523 (legitimize_tls_address): Likewise.
2524 * config/bfin/bfin.c (hwloop_optimize): Likewise.
2525 (bfin_gen_bundles): Likewise.
2526 * config/c6x/c6x.c (reorg_split_calls): Likewise.
2527 (c6x_reorg): Likewise.
2528 * config/frv/frv.c (frv_reorder_packet): Likewise.
2529 * config/i386/i386.c (ix86_split_idivmod): Likewise.
2530 * config/ia64/ia64.c (ia64_expand_compare): Likewise.
2531 * config/m32c/m32c.c (m32c_prepare_shift): Likewise.
2532 * config/mn10300/mn10300.c: Likewise.
2533 * config/rl78/rl78.c: Likewise.
2534 * config/s390/s390.c (s390_fix_long_loop_prediction): Likewise.
2535 * config/sh/sh-mem.cc (sh_expand_cmpstr): Likewise.
2536 (sh_expand_cmpnstr): Likewise.
2537 (sh_expand_strlen): Likewise.
2538 (sh_expand_setmem): Likewise.
2539 * config/sh/sh.md: Likewise.
2540 * emit-rtl.c (emit_pattern_before): Likewise.
2541 * except.c: Likewise.
2542 * final.c: Likewise.
2545 2016-11-01 Jason Merrill <jason@redhat.com>
2547 * tree-inline.c (copy_tree_body_r): Only copy the taken branch of
2548 a COND_EXPR with constant condition.
2550 2016-11-01 Jakub Jelinek <jakub@redhat.com>
2552 * dwarf2out.c (gen_variable_die): Remove again origin_die variable
2553 and its initialization.
2555 2016-11-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2557 * dwarf2out.c (output_rnglists): Wrap basebuf, len in
2560 2016-11-01 Jakub Jelinek <jakub@redhat.com>
2562 * dwarf2out.c (add_name_and_src_coords_attributes): Add NO_LINKAGE_NAME
2563 argument, don't call add_linkage_name if it is true.
2564 (gen_variable_die): For C++ inline static data members, consider the
2565 initial call when old_die is NULL to be declaration and call
2566 add_name_and_src_coords_attributes in that case with true as
2567 NO_LINKAGE_NAME. Add DW_AT_inline attribute if needed.
2568 (gen_member_die): For C++ inline static data members, emit a
2569 definition DIE right away in DW_TAG_compile_unit context.
2571 2016-11-01 John David Anglin <danglin@gcc.gnu.org>
2574 * config/pa/pa.md: Add new shift/add patterns to handle
2575 (plus (mult (reg) (mem_shadd_operand)) (reg)) source operand.
2577 2016-11-01 Max Filippov <jcmvbkbc@gmail.com>
2579 * config/xtensa/xtensa-protos.h
2580 (xtensa_use_return_instruction_p): New prototype.
2581 * config/xtensa/xtensa.c (xtensa_current_frame_size,
2582 xtensa_callee_save_size): Remove.
2583 (struct machine_function): Add new fields: current_frame_size,
2584 callee_save_size, frame_laid_out and epilogue_done.
2585 (compute_frame_size, xtensa_expand_prologue,
2586 xtensa_expand_epilogue): Replace xtensa_callee_save_size with
2587 cfun->machine->callee_save_size and xtensa_current_frame_size
2588 with cfun->machine->current_frame_size.
2589 (compute_frame_size): Update cfun->machine->frame_laid_out and
2590 don't update frame layout after reload completion.
2591 (xtensa_expand_epilogue): Set cfun->machine->epilogue_done
2592 instead of zeroing xtensa_current_frame_size.
2593 (xtensa_use_return_instruction_p): New function.
2594 * config/xtensa/xtensa.h (xtensa_current_frame_size): Remove
2596 (INITIAL_ELIMINATION_OFFSET): Use return value of
2597 compute_frame_size instead of xtensa_current_frame_size value.
2598 * config/xtensa/xtensa.md ("return" pattern): Use new predicate
2599 function xtensa_use_return_instruction_p instead of inline code.
2601 2016-11-01 Jakub Jelinek <jakub@redhat.com>
2603 * tree.h (BLOCK_IN_COLD_SECTION_P): Define.
2604 * final.c (final_scan_insn): Set BLOCK_IN_COLD_SECTION_P.
2605 * dwarf2out.c (rnglist_idx): New variable.
2606 (struct dw_ranges): Add label, idx and maybe_new_sec fields.
2607 (DEBUG_RNGLISTS_SECTION): Define.
2608 (ranges_base_label): New variable.
2609 (size_of_die) <case dw_val_class_range_list>: If using
2610 DW_FORM_rnglistx, count size of uleb128 of range list index.
2611 (value_format) <case dw_val_class_range_list>: For
2612 -gdwarf-5 -gsplit-dwarf return DW_FORM_rnglistx.
2613 (output_range_list_offset): Handle -gdwarf-5 .debug_rnglists
2614 offsets. Multiply dwarf < 5 offsets by 2 * DWARF_ADDR_SIZE.
2615 (add_ranges_num): Remove useless prototype. Don't multiply
2616 by 2 * DWARF2_ADDR_SIZE. Add maybe_new_sec argument, adjust
2617 for new fields added to dw_ranges struct.
2618 (add_ranges): Add maybe_new_sec argument and pass it
2619 through to add_ranges_num.
2620 (note_rnglist_head): New function.
2621 (add_ranges_by_labels): Pass true as maybe_new_sec to
2622 add_ranges_num, call note_rnglist_head on the head of the list.
2623 (output_ranges): Add function comment. Switch to
2624 .debug_ranges section here and emit .Ldebug_ranges0 label.
2625 (index_rnglists, output_rnglists): New functions.
2626 (gen_subprogram_die): Formatting fixes.
2627 (add_high_low_attributes): Don't divide offsets
2628 by 2 * DWARF2_ADDR_SIZE. Call note_rnglist_head on the
2629 first list element or when pointing into the middle of
2630 a list. Pass true as second argument to add_ranges on the
2631 first block fragment after cold/hot section switch.
2632 (init_sections_and_labels): For -gdwarf-5 use .debug_rnglists
2633 section instead of .debug_ranges. Initialize
2634 ranges_base_label if -gdwarf-5 -gsplit-dwarf.
2635 (dwarf2out_finish): For -gdwarf-5 -gsplit-dwarf call
2636 index_rnglists and add DW_AT_rnglists_base attr. Don't switch
2637 to dwarf_ranges_section here or emit .Ldebug_ranges0 label.
2638 Call output_rnglists for -gdwarf-5.
2639 (dwarf2out_c_finalize): Clear rnglist_idx.
2641 2016-11-01 Fritz Reese <fritzoreese@gmail.com>
2643 * combine.c (simplify_compare_const): Add gcc_fallthrough.
2645 2016-11-01 Bilyan Borisov <bilyan.borisov@arm.com>
2646 Tamar Christina <tamar.christina@arm.com>
2648 * config/arm/arm-c.c (arm_cpu_builtins): New macro definition.
2649 * config/arm/arm_neon.h (vmaxnm_f32): New intrinsinc.
2650 (vmaxnmq_f32): Likewise.
2651 (vminnm_f32): Likewise.
2652 (vminnmq_f32): Likewise.
2653 * config/arm/arm_neon_builtins.def (vmaxnm): New builtin.
2655 * config/arm/neon.md (neon_<fmaxmin_op><mode>, VCVTF): New
2658 2016-10-31 Michael Meissner <meissner@linux.vnet.ibm.com>
2660 * config/rs6000/vsx.md (VSX_EXTRACT_FL): New iterator for all
2661 binary floating point types supported by the hardware except for
2663 (vsx_xvcvsxwdp_df): Provide scalar result alternative to the
2664 vector instruction for optimizing extracting a SImode from a
2665 V4SImode vector and converting it to floating point.
2666 (vsx_xvcvuxwdp_df): Likewise.
2667 (vsx_extract_si): On ISA 3.0, allow extract target and temporary
2668 registers to be any VSX register. Move stores to the end of the
2670 (vsx_extract_si_<uns>float_df): New combiner pattern and splitter
2671 to optimize extracting a SImode from a V4SImode vector and
2672 converting it to a binary floating point type supported by the
2673 hardware. Use the vector converts instead of extracting the
2674 element, sign extending it, and then converting it to double.
2675 Other floating point types than double first convert to double,
2676 then the double is converted to that type.
2677 (vsx_extract_si_<uns>float_<mode>): Likewise.
2679 2016-10-31 Andrew Pinski <apinski@cavium.com>
2681 * config/aarch64/driver-aarch64.c (host_detect_local_cpu):
2682 Rewrite handling of part num to handle the case where
2683 multiple implementers share the same part num.
2685 2016-10-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2686 Jakub Jelinek <jakub@redhat.com>
2688 * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): Adjust for -gdwarf-5.
2689 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Likewise.
2691 2016-10-31 Jakub Jelinek <jakub@redhat.com>
2693 * dwarf2out.c (dwarf_AT): Handle DW_AT_dwo_name.
2694 (use_debug_types): Adjust comment for DWARF5 DW_UT_type units.
2695 (new_die): Handle DW_TAG_skeleton_unit like DW_TAG_compile_unit.
2696 (is_cu_die, is_unit_die): Likewise.
2697 (should_move_die_to_comdat, break_out_comdat_types): Adjust
2698 comments for DWARF5 DW_UT_type units.
2699 (output_compilation_unit_header): Add UT argument, output
2700 start of DWARF5 .debug_info section header.
2701 (output_comp_unit): Add dwo_id argument. Adjust
2702 output_compilation_unit_header caller, for DW_UT_split_compile
2703 emit dwo_id field, otherwise padding1. Emit padding2 field.
2704 (add_top_level_skeleton_die_attrs): Add DW_AT_dwo_name
2705 rather than DW_AT_GNU_dwo_name attr for -gdwarf-5.
2706 (output_skeleton_debug_sections): Add dwo_id argument, for
2707 -gdwarf-5 emit DWARF 5 DW_UT_skeleton header.
2708 (output_comdat_type_unit): For -gdwarf-5 emit .debug_info
2709 DW_UT_type or DW_UT_split_type units rather than .debug_types.
2710 (dwarf2out_finish): Use DW_TAG_skeleton_unit rather than
2711 DW_TAG_compile_unit for skeleton unit die. Don't add
2712 DW_AT_GNU_dwo_id attributes for -gdwarf-5, instead pass checksum
2713 address to output_comp_unit and output_skeleton_debug_sections.
2715 * dwarf2out.c (debug_line_str_section): New variable.
2716 (debug_line_str_hash): Likewise.
2717 (DEBUG_LINE_STR_SECTION): Define.
2718 (set_indirect_string): Handle DW_FORM_line_strp like
2720 (find_string_form): Fix up formatting.
2721 (size_of_die): Handle DW_FORM_line_strp like DW_FORM_strp.
2723 (output_die): Handle DW_FORM_line_strp.
2724 (DWARF5_USE_DEBUG_LINE_STR): Define.
2725 (output_line_string): New function.
2726 (output_file_names): Add -gdwarf-5 support.
2727 (output_line_info): Likewise.
2728 (init_sections_and_labels): Initialize debug_line_str_section.
2729 (output_indirect_string): Change 2nd argument from void *
2730 to enum dwarf_form form, compare with form rather than
2732 (output_indirect_strings): Pass DW_FORM_strp to
2733 output_indirect_string traversion.
2734 (dwarf2out_finish): Output .debug_line_str strings.
2735 (dwarf2out_c_finalize): Clear debug_line_str_section and
2736 debug_line_str_hash.
2738 2016-10-31 Tom Tromey <tom@tromey.com>
2741 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_form_tls_address.
2742 (resolve_args_picking_1): Move DW_OP_form_tls_address case next to
2743 DW_OP_GNU_push_tls_address case.
2744 (loc_list_from_tree_1): Use DW_OP_form_tls_address.
2746 2016-10-31 Jakub Jelinek <jakub@redhat.com>
2748 * dwarf2out.h (struct dw_loc_descr_node): Adjust comment
2749 for frame_offset_rel bit.
2750 (struct array_descr_info): Add rank field.
2751 * dwarf2out.c (struct loc_descr_context): Add placeholder_arg
2752 and placeholder_seen fields.
2753 (resolve_args_picking_1): Handle also frame_offset_rel DW_OP_dup
2754 and DW_OP_over. Optimize DW_OP_pick 0 into DW_OP_dup and
2755 DW_OP_pick 1 into DW_OP_over.
2756 (function_to_dwarf_procedure, type_byte_size, field_byte_offset,
2757 gen_variant_part): Clear placeholder_{arg,seen}.
2758 (loc_list_from_tree_1): Drop const from context argument.
2759 Handle integral PLACEHOLDER_EXPR if context->placeholder_arg.
2760 (loc_list_for_address_of_addr_expr_of_indirect_ref,
2761 loc_list_from_tree, loc_descriptor_from_tree): Drop const from
2763 (add_scalar_info): Drop const from context argument. Handle
2764 context->placeholder_arg.
2765 (add_bound_info): Drop const from context argument.
2766 (gen_descr_array_type_die): Drop const from ctx variable.
2767 Initialize placeholder_arg and placeholder_seen. Add DW_AT_rank
2768 attribute and use a single DW_TAG_generic_subrange instead of
2769 7 DW_TAG_subrange_type for assumed rank arrays.
2771 * dwarf2out.h (enum dw_val_class): Add dw_val_class_loclistsptr.
2772 * dwarf2out.c (struct dw_loc_list_struct): Change emitted field
2773 from bool to 1-bit uchar bitfield. Add num_assigned and
2774 offset_emitted bitfields.
2775 (dw_val_equal_p): Compare v.val_lbl_id rather than v.val_unsigned
2776 for dw_val_class_lineptr and dw_val_class_macptr. Handle
2777 dw_val_class_loclistsptr.
2778 (new_addr_loc_descr): Fix up formatting.
2779 (DEBUG_LOCLISTS_SECTION, DEBUG_DWO_LOCLISTS_SECTION): Define.
2780 (add_AT_low_high_pc): Fix up formatting.
2781 (add_AT_loclistsptr): New function.
2782 (AT_lbl): Allow dw_val_class_loclistsptr.
2783 (print_dw_val, attr_checksum, attr_checksum_ordered, same_dw_val_p):
2784 Handle dw_val_class_loclistsptr.
2785 (loc_list_idx): New variable.
2786 (output_loclists_offsets, assign_location_list_indexes): New
2788 (size_of_die): For dw_val_class_loc_list -gsplit-dwarf -gdwarf-5
2789 add size_of_uleb128 of the index. Drop never used
2790 dwarf_split_debug_info AT_index handling. Handle
2791 dw_val_class_loclistsptr.
2792 (value_format): Return DW_FORM_loclistsx for dw_val_class_loc_list
2793 if -gsplit-dwarf -gdwarf-5. Handle dw_val_class_loclistsptr.
2794 (output_loc_list): Handle DWARF 5 .debug_loclists* format.
2795 (output_loc_list_offset): Handle -gsplit-dwarf -gdwarf-5
2796 DW_FORM_loclistx indexes.
2797 (output_attr_index_or_value): Fix up formatting. Don't handle
2798 dw_val_class_loc_list here.
2799 (output_die): Formatting fixes. Handle dw_val_class_loclistsptr.
2800 For dw_val_class_loc_list call output_loc_list_offset rather than
2801 output_attr_index_or_value.
2802 (init_sections_and_labels): For -gdwarf-5 use .debug_loclists
2803 or .debug_loclists.dwo section name for debug_loc_section.
2804 (resolve_addr_in_expr): Formatting fix.
2805 (index_location_lists): Likewise.
2806 (dwarf2out_finish): If there are any location lists, for
2807 -gsplit-dwarf -gdwarf-5 add DW_AT_loclists_base attribute. Call
2808 index_location_lists only if have_location_lists. Call
2809 assign_location_list_indexes for -gsplit-dwarf -gdwarf-5. Emit
2810 .debug_loclists{,.dwo} section header for -gdwarf-5, for -gdwarf-5
2811 -gsplit-dwarf also emit offset table.
2813 * dwarf2out.c (DWARF_LARGEST_DATA_FORM_BITS): Define.
2814 (size_of_die, value_format, output_die): Use
2815 DW_FORM_data16 for 128-bit dw_val_class_const_double or
2816 dw_val_class_wide_int.
2818 * dwarf2out.c (dwarf_op): Renamed to ...
2819 (dwarf_OP): ... this.
2820 (convert_descriptor_to_mode, scompare_loc_descriptor,
2821 minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
2822 implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr): Adjust
2824 (dwarf_AT, dwarf_TAG): New functions.
2825 (check_die): Disallow DW_AT_call_all_calls next to
2826 DW_AT_GNU_all_call_sites.
2827 (gen_call_site_die): Use dwarf_TAG and dwarf_AT with DWARF 5 tag
2828 and attributes instead of the corresponding GNU tag and attributes.
2829 (gen_subprogram_die): Likewise. Emit call site information even
2830 for -gdwarf-5 -gstrict-dwarf. Replace DW_AT_GNU_defaulted with
2831 DW_AT_defaulted in comment.
2832 (resolve_addr): Handle DW_AT_call_origin attribute on
2833 DW_TAG_call_site DIE like DW_AT_abstract_origin on
2834 DW_TAG_GNU_call_site DIE.
2836 * dwarf2out.c (dwarf_op): New function.
2837 (size_of_loc_descr): Handle DW_OP_{implicit_pointer,entry_value},
2838 DW_OP_{const,regval,deref}_type and DW_OP_{convert,reinterpret}.
2839 (output_loc_operands, output_loc_operands_raw): Likewise.
2840 (resolve_args_picking_1, prune_unused_types_walk_loc_descr,
2841 mark_base_types, hash_loc_operands, compare_loc_operands): Likewise.
2842 (resolve_addr_in_expr): Likewise. Only punt for !dwarf_strict
2843 if dwarf_version < 5.
2844 (convert_descriptor_to_mode): Use dwarf_op (DW_OP_xxx) instead of
2846 (scompare_loc_descriptor, ucompare_loc_descriptor,
2847 minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
2848 implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr,
2849 optimize_location_into_implicit_ptr): Likewise. Only punt for
2850 !dwarf_strict if dwarf_version < 5.
2851 (string_cst_pool_decl): Adjust comment.
2852 (non_dwarf_expression): Handle DW_OP_implicit_pointer.
2854 * dwarf2out.h (enum dw_val_class): Add dw_val_class_const_implicit,
2855 dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
2856 (struct dw_val_node): Add val_file_implicit field.
2857 * dwarf2out.c (dw_val_equal_p, print_dw_val, attr_checksum,
2858 attr_checksum_ordered, same_dw_val_p, size_of_die, value_format,
2859 output_die): Handle dw_val_class_const_implicit,
2860 dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
2861 (abbrev_die_table): Change into va_gc vec.
2862 (abbrev_die_table_allocated, abbrev_die_table_in_use,
2863 ABBREV_DIE_TABLE_INCREMENT): Remove.
2864 (AT_int, AT_unsigned, AT_file): Allow dw_val_class_*_implicit.
2865 (abbrev_opt_start, abbrev_usage_count, sorted_abbrev_dies): New
2867 (build_abbrev_table): Adjust for abbrev_die_table being a va_gc vec.
2868 If abbrev_opt_start, fill in abbrev_usage_count and abbrev_dies
2870 (die_abbrev_cmp, optimize_implicit_const, optimize_abbrev_table): New
2872 (output_die_abbrevs): For DW_FORM_implicit_const emit sleb128 with
2874 (output_abbrev_section): Adjust for abbrev_die_table being a va_gc
2876 (output_comp_unit): Initialize abbrev_opt_start if emitting the main
2877 unit. Call optimize_abbrev_table.
2878 (dwarf2out_init, dwarf2out_finish, dwarf2out_c_finalize): Adjust for
2879 abbrev_die_table being a va_gc vec.
2881 PR tree-optimization/77860
2882 * tree-ssa-reassoc.c (eliminate_using_constants): Handle
2883 also integral complex and vector constants.
2885 * dwarf2out.c (dwarf2out_define, dwarf2out_undef, output_macinfo_op,
2886 optimize_macinfo_range, save_macinfo_strings): Replace
2887 DW_MACRO_GNU_* constants with corresponding DW_MACRO_* constants.
2888 (output_macinfo): Likewise. Emit .debug_macro* rather than
2889 .debug_macinfo* even for -gstrict-dwarf -gdwarf-5.
2890 (init_sections_and_labels): Use .debug_macro* labels rather than
2891 .debug_macinfo* labels even for -gstrict-dwarf -gdwarf-5.
2892 (dwarf2out_finish): Use DW_AT_macros instead of DW_AT_macro_info
2893 or DW_AT_GNU_macros for -gdwarf-5.
2895 2016-10-31 Waldemar Brodkorb <wbx@openadk.org>
2897 * config/microblaze/linux.h (UCLIBC_DYNAMIC_LINKER): Define.
2899 2016-09-11 Le-Chun Wu <lcwu@google.com>
2900 Mark Wielaard <mjw@redhat.com>
2902 * common.opt (Wshadow=global): New option. Default for -Wshadow.
2903 (Wshadow=local): New option.
2904 (Wshadow-local): Hidden alias for -Wshadow=local.
2905 (Wshadow=compatible-local): New option.
2906 (Wshadow-compatible-local): Hidden alias for
2907 -Wshadow=compatible-local.
2908 * doc/invoke.texi: Document Wshadow=global, Wshadow=local and
2909 Wshadow=compatible-local.
2911 2016-10-31 Bin Cheng <bin.cheng@arm.com>
2913 * tree-vect-slp.c (vect_get_and_check_slp_defs): New parameter SWAP.
2914 Check slp defs for COND_EXPR by swapping/inverting operands if the
2915 new parameter SWAP indicates so.
2916 (vect_build_slp_tree_1): New parameter SWAP. Check COND_EXPR stmt
2917 is isomorphic to the first stmt via swapping/inverting. Store swap
2918 information in the new parameter SWAP.
2919 (vect_build_slp_tree): New local array SWAP and pass it to function
2920 vect_build_slp_tree_1. Cleanup result handling code for function
2921 call to vect_get_and_check_slp_defs. Skip operand swapping if the
2922 order of operands has been fixed as indicated by SWAP[i].
2924 2016-10-31 Bin Cheng <bin.cheng@arm.com>
2926 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): Skip
2927 unnecessary data dependence check after visited store stmt.
2929 2016-10-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2931 PR tree-optimization/71915
2932 PR tree-optimization/71490
2933 * gimple-ssa-strength-reduction.c (struct slsr_cand_d): Add
2935 (find_basis_for_base_expr): Require stride types to match when
2937 (alloc_cand_and_find_basis): Record the stride type.
2938 (slsr_process_phi): Pass stride type to alloc_cand_and_find_basis.
2939 (backtrace_base_for_ref): Pass types to legal_cast_p_1 rather than
2940 the expressions having those types.
2941 (slsr_process_ref): Pass stride type to alloc_cand_and_find_basis.
2942 (create_mul_ssa_cand): Likewise.
2943 (create_mul_imm_cand): Likewise.
2944 (create_add_ssa_cand): Likewise.
2945 (create_add_imm_cand): Likewise.
2946 (legal_cast_p_1): Change interface to accept types rather than the
2947 expressions having those types.
2948 (legal_cast_p): Pass types to legal_cast_p_1.
2949 (slsr_process_cast): Pass stride type to
2950 alloc_cand_and_find_basis.
2951 (slsr_process_copy): Likewise.
2952 (dump_candidate): Display stride type when a cast exists.
2953 (create_add_on_incoming_edge): Introduce a cast when necessary for
2955 (analyze_increments): Change the code checking for invalid casts
2956 to rely on the stride type, and update the documentation and
2957 example. Change the code checking for pointer multiplies to rely
2959 (insert_initializers): Introduce a cast when necessary for the
2960 stride type. Use the stride type for the type of the initializer.
2962 2016-10-30 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2964 * config/arm/arm.c (arm_const_not_ok_for_debug_p): Use VAR_P.
2966 2016-10-29 Jakub Jelinek <jakub@redhat.com>
2968 PR rtl-optimization/77919
2969 * expr.c (expand_expr_real_1) <normal_inner_ref>: Only avoid forcing
2970 into memory if both modes are complex and their inner modes have the
2971 same precision. If the two modes are different complex modes, convert
2972 each part separately and generate a new CONCAT.
2974 2016-10-29 John David Anglin <danglin@gcc.gnu.org>
2976 * config/pa/pa64-hpux.h (FINI_SECTION_ASM_OP): Define to null string.
2978 2016-10-29 Jakub Jelinek <jakub@redhat.com>
2981 * gimple-ssa-store-merging.c
2982 (imm_store_chain_info::output_merged_store): Use build_aligned_type
2983 instead of SET_TYPE_ALIGN on shared integral type.
2985 2016-10-29 John David Anglin <danglin@gcc.gnu.org>
2987 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
2988 (MALLOC_ABI_ALIGNMENT): Define to 128 on all targets except SOM.
2991 2016-10-28 Jeff Law <law@redhat.com>
2993 * config/vax/vax.h (REGNO_REG_CLASS): Access the REGNO argument.
2994 * config/spu/spu.h (REGNO_REG_CLASS): Likewise.
2996 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
2998 * doc/sourcebuild.texi (Ada Tests): Remove mention of gcc chapter.
3000 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
3002 * target.def (min_arithmetic_precision): New hook.
3003 * doc/tm.texi.in (Misc): Add TARGET_MIN_ARITHMETIC_PRECISION.
3004 * doc/tm.texi: Regenerate.
3005 * internal-fn.c (expand_arith_overflow): Adjust handling of target
3006 dependent support by means of TARGET_MIN_ARITHMETIC_PRECISION.
3007 * targhooks.c (default_min_arithmetic_precision): New function.
3008 * targhooks.h (default_min_arithmetic_precision): Declare.
3009 * config/sparc/sparc.c (TARGET_MIN_ARITHMETIC_PRECISION): Define.
3010 (sparc_min_arithmetic_precision): New function.
3012 2016-10-28 Segher Boessenkool <segher@kernel.crashing.org>
3015 * combine.c (change_zero_ext): Handle zero_ext of hard registers.
3016 Swap commutative operands in new RTL if needed. Handle zero_ext
3018 (recog_for_combine): Pass *pnewpat to change_zero_ext instead of
3021 2016-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3022 Kugan Vivekanandarajah <kuganv@linaro.org>
3023 Jim Wilson <jim.wilson@linaro.org>
3025 PR tree-optimization/43721
3026 * target.def: New hook expand_divmod_libfunc.
3027 * doc/tm.texi.in: Add hook for TARGET_EXPAND_DIVMOD_LIBFUNC.
3028 * doc/tm.texi: Regenerate.
3029 * internal-fn.def: Add new entry for DIVMOD ifn.
3030 * internal-fn.c (expand_DIVMOD): New.
3031 * tree-ssa-math-opts.c: Include optabs-libfuncs.h, tree-eh.h,
3033 (widen_mul_stats): Add new field divmod_calls_inserted.
3034 (target_supports_divmod_p): New.
3035 (divmod_candidate_p): Likewise.
3036 (convert_to_divmod): Likewise.
3037 (pass_optimize_widening_mul::execute): Call calculate_dominance_info,
3038 renumber_gimple_stmt_uids at beginning of function. Call
3039 convert_to_divmod and record stats for divmod.
3040 * config/arm/arm.c (arm_expand_divmod_libfunc): Override hook
3041 TARGET_EXPAND_DIVMOD_LIBFUNC.
3042 * doc/sourcebuild.texi: Add items for arm_divmod_simode, divmod,
3045 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
3046 Segher Boessenkool <segher@kernel.crashing.org>
3048 * dojump.c (do_jump_by_parts_greater_rtx): Invert probability when
3049 swapping the arms of the branch.
3050 * internal-fn.c (expand_addsub_overflow): Use a straight-line code
3051 sequence for the generic signed-signed-signed case.
3053 2016-10-28 Jeff Law <law@redhat.com>
3055 * config/bfin/bfin.c (bfin_legitimate_address_p): Add missing
3057 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
3059 2016-10-28 Segher Boessenkool <segher@kernel.crashing.org>
3061 PR rtl-optimization/78029
3062 * function.c (prologue_contains, epilogue_contains): New functions.
3063 (record_prologue_seq, record_epilogue_seq): New functions.
3064 * function.h (prologue_contains, epilogue_contains,
3065 record_prologue_seq, record_epilogue_seq): New declarations.
3066 * sched-deps.c (sched_analyze_insn): Make dependencies to prevent
3067 mixing prologue and epilogue insns.
3068 (init_deps): Initialize the new fields in struct deps_desc.
3069 * sched-int.h (struct deps_desc): New fields last_prologue,
3070 last_epilogue, and last_logue_was_epilogue.
3071 * shrink-wrap.c (emit_common_heads_for_components): Record all
3072 emitted prologue and epilogue insns.
3073 (emit_common_tails_for_components): Ditto.
3074 (insert_prologue_epilogue_for_components): Ditto.
3076 2016-10-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3079 * Makefile.in (OBJS): Add gimple-ssa-store-merging.o.
3080 * common.opt (fstore-merging): New Optimization option.
3081 * opts.c (default_options_table): Add entry for
3082 OPT_ftree_store_merging.
3083 * fold-const.h (can_native_encode_type_p): Declare prototype.
3084 * fold-const.c (can_native_encode_type_p): Define.
3085 * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Define.
3086 (PARAM_MAX_STORES_TO_MERGE): Likewise.
3087 * timevar.def (TV_GIMPLE_STORE_MERGING): New timevar.
3088 * passes.def: Insert pass_tree_store_merging.
3089 * tree-pass.h (make_pass_store_merging): Declare extern
3091 * gimple-ssa-store-merging.c: New file.
3092 * doc/invoke.texi (Optimization Options): Document
3094 (--param documentation): Document store-merging-allow-unaligned
3095 and max-stores-to-merge.
3097 2016-10-28 Will Schmidt <will_schmidt@vnet.ibm.com>
3100 * gimplify.c (gimplify_init_constructor): Move emit of constructor
3101 assignment to earlier in the if/else logic.
3103 2016-10-28 Richard Biener <rguenther@suse.de>
3107 * fold-const.c (make_bit_field_ref): Only adjust alias set
3108 when the original alias set was zero.
3110 2016-10-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3112 * config/s390/s390.c (s390_adjust_loop_scan_osc): New function.
3113 (s390_adjust_loops): New function.
3114 (s390_reorg): Invoke s390_adjust_loops.
3115 * config/s390/s390.md: (UNSPEC_OSC_BREAK): New constant.
3116 ("osc_break"): New insn definition.
3118 2016-10-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3120 * config/s390/s390.opt: Support alternate cpu level naming (archXX).
3121 * config.gcc: Support alternate archXX cpu levels with
3122 --with-arch= and --with-tune=.
3123 * config/s390/linux.h: Translate new archXX cpu levels to the
3124 original names when calling GAS.
3125 * config/s390/tpf.h: Likewise.
3126 * doc/invoke.texi: Document the alternate cpu level names.
3128 2016-10-28 Jakub Jelinek <jakub@redhat.com>
3130 PR rtl-optimization/77919
3131 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force CONCAT into
3132 MEM if mode1 is not a complex mode.
3134 PR rtl-optimization/78132
3135 * ree.c (combine_reaching_defs): Give up if copy_needed and
3136 !HARD_REGNO_MODE_OK (REGNO (src_reg), dst_mode).
3138 2016-10-27 Eric Botcazou <ebotcazou@adacore.com>
3140 * config/sparc/sparc.md (<*vlop:code><VL:mode>3): Remove leading '*'.
3142 2016-10-27 Michael Meissner <meissner@linux.vnet.ibm.com>
3144 * config/rs6000/constraints.md (wH constraint): Add new
3145 constraints for allowing 32-bit integers (and eventually 8/16-bit
3146 integers) into the vector registers.
3147 (wI constraint): Likewise.
3148 (wJ constraint): Likewise.
3149 (wK constraint): Likewise.
3150 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
3151 -mvsx-small-integer as a default option for ISA 2.07
3153 (POWERPC_MASKS): Likewise.
3154 * config/rs6000/rs6000.opt (-mvsx-small-integer): Add new debug
3155 switch to turn off small integer support in vector registers.
3156 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Eliminate
3157 test for -mupper-regs-di, since it is already done with the
3158 reg_add[mode].scalar_in_vsx_p. Add support for the switch
3159 -mvsx-small-integer.
3160 (rs6000_debug_reg_global): Add support for wH, wI, wJ, and wK
3162 (rs6000_setup_reg_addr_masks): Likewise.
3163 (rs6000_init_hard_regno_mode_ok): Likewise.
3164 (rs6000_option_override_internal): Add consistency checks for
3165 -mvsx-small-integer.
3166 (rs6000_secondary_reload_simple_move): SImode is a simple move if
3167 -mvsx-small-integer.
3168 (rs6000_secondary_reload): Use std::swap.
3169 (rs6000_preferred_reload_class): Don't prefer FLOAT_REGS over
3170 VSX_REGS for small integers in vector registers, since there is no
3171 D-FORM address mode for such types.
3172 (rs6000_register_move_cost): Use FIRST_FPR_REGNO instead of 32.
3173 (rs6000_opt_masks): Add -mvsx-small-integer.
3174 * config/rs6000/vsx.md (VSINT_84): Add SImode for small integer
3176 (VSX_EXTRACT_I2): Clone VSX_EXTRACT_I, but drop V4SI since SImode
3177 extracts can be done on ISA 2.07.
3178 (vsx_extract_<mode>): Add support for small integers in vsx
3180 (vsx_extract_<mode>_p9): Use 'v' instead of VSX_EX, since we no
3181 longer support V4SImode in this pattern.
3182 (vsx_extract_si): New insn to support extraction of SImode in ISA
3183 2.07 using either xxextractuw or vspltw.
3184 (vsx_extract_<mode>_p8): Use 'v' instead of VSX_EX, since we no
3185 longer support V4SImode in this pattern.
3186 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wH, wI,
3187 wJ, and wK constraints.
3188 * config/rs6000/rs6000.md (f32_sv): Use correct instruction for
3189 storing SDmode with VSX instructions.
3190 (zero_extendsi<mode>2): Reorder pattern, so RLDICL comes after the
3191 GPR load and before the FPR and VSX loads. Remove ??, ! from the
3192 constraints. Add MFVSRWZ and XXEXTRACTUW instructions to support
3193 small integers in vector registers.
3194 (extendsi<mode>2): Reorder pattern, so EXTSW comes after the GPR
3195 load and before the FPR and VSX loads. Remove ??, ! from the
3196 constraints. Add VEXTSW2D support for small integers in vector
3198 (lfiwax): Remove ! constraint. Add VEXTSW2D support for small
3199 integers in vector registers.
3200 (floatsi<mode>2_lfiwax): If -mvsx-small-integer issue a normal
3201 move instead of using an UNSPEC.
3202 (lfiwzx): Remove ! constraint. Add XXEXTRACTUW support for small
3203 integers in vector registers.
3204 (floatunssi<mode>2_lfiwzx): If -mvsx-small-integer issue a normal
3205 move instead of using an UNSPEC.
3206 (movsi_internal1): Add support for -mvsx-small-integer. Align
3207 columns so that it is more readable.
3208 (SImode splitter for ISA 3.0 constants): Add splitter for
3209 -128..127 constants that can easily be constructed on ISA 3.0.
3210 * doc/md.texi (PowerPC Constraints): Document wH, wI, wJ, and wK
3213 2016-10-27 Jakub Jelinek <jakub@redhat.com>
3216 * omp-simd-clone.c (simd_clone_adjust): Handle noreturn declare simd
3219 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
3221 * builtins.c (expand_builtin_nonlocal_goto): Avoid evaluating
3222 PIC_OFFSET_TABLE_REGNUM twice.
3224 2016-10-27 Bin Cheng <bin.cheng@arm.com>
3226 * match.pd ((convert (op:s (convert@2 @0) (convert?@3 @1)))): Add
3227 support for constant operand for OP.
3229 2016-10-27 Jakub Jelinek <jakub@redhat.com>
3231 * dwarf2out.c (gen_member_die): Only reparent_child instead of
3232 splice_child_die if child doesn't have DW_AT_specification attribute.
3234 2016-10-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
3236 * config/arm/arm.h (TARGET_HAVE_LDREX): Define for ARMv8-M Baseline.
3237 (TARGET_HAVE_LDREXBH): Likewise.
3238 (TARGET_HAVE_LDACQ): Likewise.
3240 2016-10-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
3242 * config/arm/arm.c (arm_split_atomic_op): Add function comment. Add
3243 logic to to decide whether to copy over old value to register for new
3245 * config/arm/sync.md: Add comments explaning why mode and code
3246 attribute are not defined in iterators.md
3247 (thumb1_atomic_op_str): New code attribute.
3248 (thumb1_atomic_newop_str): Likewise.
3249 (thumb1_atomic_fetch_op_str): Likewise.
3250 (thumb1_atomic_fetch_newop_str): Likewise.
3251 (thumb1_atomic_fetch_oldop_str): Likewise.
3252 (atomic_exchange<mode>): Add new ARMv8-M Baseline only alternatives to
3253 mirror the more restrictive constraints of the Thumb-1 insns after
3254 split compared to Thumb-2 counterpart insns.
3255 (atomic_<sync_optab><mode>): Likewise. Add comment to keep constraints
3256 in sync with non atomic version.
3257 (atomic_nand<mode>): Likewise.
3258 (atomic_fetch_<sync_optab><mode>): Likewise.
3259 (atomic_fetch_nand<mode>): Likewise.
3260 (atomic_<sync_optab>_fetch<mode>): Likewise.
3261 (atomic_nand_fetch<mode>): Likewise.
3262 * config/arm/thumb1.md (thumb1_addsi3): Add comment to keep contraint
3263 in sync with atomic version.
3264 (thumb1_subsi3_insn): Likewise.
3265 (thumb1_andsi3_insn): Likewise.
3266 (thumb1_iorsi3_insn): Likewise.
3267 (thumb1_xorsi3_insn): Likewise.
3269 2016-10-27 Nick Clifton <nickc@redhat.com>
3271 * plugin.c (register_plugin_info): Produce an error message if the
3272 plugin is not found in the hash table.
3274 2016-10-27 Bin Cheng <bin.cheng@arm.com>
3276 * match.pd ((convert1 (minmax ((convert2 (x) c)))) -> minmax (x c)):
3279 2016-10-26 Kelvin Nilsen <kelvin@gcc.gnu.org>
3282 * config/rs6000/rs6000.c (spe_init_builtins): Modify loops to not
3283 define builtin functions from the bdesc_spe_predicates or
3284 bdesc_spe_evsel arrays if the builtin mask is not compatible with
3285 the current compiler configuration.
3286 (paired_init_builtins): Modify loop to not define define builtin
3287 functions from the bdesc_paried_preds array if the builtin mask is
3288 not compatible with the current compiler configuration.
3289 (altivec_init_builtins): Modify loops to not define the
3290 __builtin_altivec_stxvl function nor the builtin functions from
3291 the bdesc_dst or bdesc_altivec_preds, or bdesc_abs arrays if the
3292 builtin mask is not compatible with the current compiler
3295 2016-10-26 Jeff Law <law@redhat.com>
3297 * config/sh/sh.c (output_branch): Add missing fallthru comments.
3298 (gen_shl_and): Likewise.
3299 * config/sh/sh.md (movsicc): Add missing fallthru comments.
3301 * config/mips/mips.c (mips16_constant_cost): Add missing
3303 (mips16_build_call_stub): Increase buffer size. Adjust
3306 2016-10-26 David Malcolm <dmalcolm@redhat.com>
3308 * print-rtl.c (rtx_writer::print_rtx_operand_code_u): Print
3309 INSN_UIDs for all insns in compact mode.
3310 (rtx_writer::print_rtx): Likewise.
3311 * print-rtl.h (rtx_writer::flag_compact): Update comment.
3312 * rtl-tests.c (selftest::test_dumping_insns): Update expected
3313 output to include INSN_UID.
3314 (selftest::test_uncond_jump): Likewise.
3316 2016-10-26 Pat Haugen <pthaugen@us.ibm.com>
3318 * haifa-sched.c (call_used_regs_num): Rename to...
3319 (call_saved_regs_num): ...this.
3320 (fixed_regs_num): New variable.
3321 (sched_pressure_start_bb): Subtract out fixed_regs. Scale call_saved
3323 (alloc_global_sched_pressure_data): Compute call_saved and fixed regs.
3325 2016-10-26 David Malcolm <dmalcolm@redhat.com>
3327 * print-rtl-function.c (print_rtx_function): Rewrite in terms of
3329 * print-rtl.c (outfile): Delete global.
3330 (sawclose): Likewise.
3332 (in_call_function_usage): Likewise.
3333 (flag_compact): Likewise.
3334 (flag_simple): Likewise.
3335 (rtx_writer::rtx_writer): New ctor.
3336 (print_rtx_operand_code_0): Convert to...
3337 (rtx_writer::print_rtx_operand_code_0): ...this.
3338 (print_rtx_operand_code_e): Convert to...
3339 (rtx_writer::print_rtx_operand_code_e): ...this.
3340 (print_rtx_operand_codes_E_and_V): Convert to...
3341 (rtx_writer::print_rtx_operand_codes_E_and_V): ...this.
3342 (print_rtx_operand_code_i): Convert to...
3343 (rtx_writer::print_rtx_operand_code_i): ...this.
3344 (print_rtx_operand_code_r): Convert to...
3345 (rtx_writer::print_rtx_operand_code_r): ...this.
3346 (print_rtx_operand_code_u): Convert to...
3347 (rtx_writer::print_rtx_operand_code_u): ...this.
3348 (print_rtx_operand): Convert to...
3349 (rtx_writer::print_rtx_operand): ...this.
3350 (print_rtx): Convert to...
3351 (rtx_writer::print_rtx): ...this.
3352 (print_inline_rtx): Rewrite in terms of class rtx_writer.
3353 (debug_rtx): Likewise.
3354 (print_rtl): Convert to...
3355 (rtx_writer::print_rtl): ...this.
3356 (print_rtl): Reimplement in terms of class rtx_writer.
3357 (print_rtl_single): Rewrite in terms of class rtx_writer.
3358 (print_rtl_single_with_indent): Convert to..
3359 (rtx_writer::print_rtl_single_with_indent): ...this.
3360 (print_simple_rtl): Rewrite in terms of class rtx_writer.
3361 * print-rtl.h (flag_compact): Delete decl.
3362 (class rtx_writer): New class.
3363 * rtl-tests.c (selftest::assert_rtl_dump_eq): Rewrite in terms of
3366 2016-10-26 Jeff Law <law@redhat.com>
3368 * config/microblaze/microblaze.c (tls_mentioned_p): Avoid
3371 * config/arc/arc.c (acr_print_operand): Adjust fallthru comment.
3372 (check_if_valid_sleep_operand): Add missing fallthru comment.
3373 (arc_register_move_cost): Increase buffer size.
3374 * config/arc/arc.md (cbranch4si_scratch): Add missing fallthru
3376 * config/arc/predicates.md (move_str_operand): Avoid fallthru.
3378 * config/cr16/cr16.c (cr16_print_operand): Add missing fallthru
3379 comment. Add gcc_unreachable for path that should never happen.
3381 * config/epiphany/epiphany.c (epiphany_print_operand): Adjust
3384 2016-10-26 Jakub Jelinek <jakub@redhat.com>
3385 Martin Liska <mliska@suse.cz>
3388 * gimplify.c (gimplify_adjust_omp_clauses_1): For all added map
3389 clauses with OMP_CLAUSE_SIZE being a decl, call omp_notice_variable
3390 on outer context if any.
3392 2016-10-26 Jakub Jelinek <jakub@redhat.com>
3394 * gen-pass-instances.awk (adjust_linenos): Increment pass_lines[p]
3395 by increment rather than double it.
3396 (insert_remove_pass): Strip leading whitespace from args[3]. Don't
3397 emit a space before args[4].
3398 (END): Don't emit a space before with_arg.
3400 2016-10-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
3402 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Add new ARMv8-M
3403 Baseline only alternatives to (i) hold store atomic success value in a
3404 return register rather than a scratch register, (ii) use a low register
3405 for it and to (iii) ensure the cbranchsi insn generated by the split
3406 respect the constraints of Thumb-1 cbranchsi4_insn and
3408 * config/arm/thumb1.md (cbranchsi4_insn): Add comment to indicate
3409 constraints must match those in atomic_compare_and_swap.
3410 (cbranchsi4_scratch): Likewise.
3412 2016-10-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
3414 * config/arm/arm.c (arm_expand_compare_and_swap): Add new bdst local
3415 variable. Add the new parameter to the insn generator. Set that
3416 parameter to be CC flag for 32-bit targets, bval otherwise. Set the
3417 return value from the negation of that parameter for Thumb-1, keeping
3418 the logic unchanged otherwise except for using bdst as the destination
3419 register of the compare_and_swap insn.
3420 (arm_split_compare_and_swap): Add explanation about how is the value
3421 returned to the function comment. Rename scratch variable to
3422 neg_bval. Adapt initialization of variables holding operands to the
3423 new operand numbers. Use return register to hold result of store
3424 exclusive for Thumb-1, scratch register otherwise. Construct the
3425 appropriate cbranch for Thumb-1 targets, keeping the logic unchanged
3426 for 32-bit targets. Guard Z flag setting to restrict to 32bit targets.
3427 Use gen_cbranchsi4 rather than hand-written conditional branch to loop
3428 for strongly ordered compare_and_swap.
3429 * config/arm/predicates.md (cc_register_operand): New predicate.
3430 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Use a
3431 match_operand with the new predicate to accept either the CC flag or a
3432 destination register for the boolean return value, restricting it to
3433 CC flag only via constraint. Adapt operand numbers accordingly.
3435 2016-10-26 Jeff Law <law@redhat.com>
3437 * config/fr30/fr30.c (fr30_print_operand): Adjust fallthru comment.
3439 * config/frv/frv.c (comparison_string): Do not fall through after
3442 * config/iq2000/iq2000.c (iq2000_function_arg): Adjust fallthru
3444 (expand_one_builtin): Add missing break.
3446 * config/m32c/m32c.c (encode_pattern_1): Add fallthru comment.
3447 (m32c_legitimate_address_p): Likewise.
3449 * config/m32r/m32r.c (m32r_print_operand): Adjust fallthru comment.
3451 * config/mcore/mcore.c (mcore_gen_compare): Adjust fallthru comments.
3453 * config/microblaze/microblaze.c (microblaze_function_arg): Adjust
3456 * config/msp430/msp430.c (msp430_legitimate_address_p): Adjust
3459 * config/nios2/nios2.c (nios2_rtx_costs): Avoid fallthru.
3461 * config/rl78/rl78.c (rl78_calculate_death_notes): Add fallthru
3463 (rl78_asm_ctor_dtor): Increase buffer size.
3465 * config/stormy16/stormy16.c (xstormy16_asm_output_destrutor): Increase
3467 (xstormy16_asm_output_constructor): Likewise.
3469 * config/pa/pa.c (pa_asm_output_mi_thunk): Increase buffer
3472 * config/h8300/h8300.c (h8300_print_operand): Adjust FALLTHRU
3473 comment to silence warning.
3475 * config/spu/spu.c (spu_sched_reorder): Add missing fallthru comment.
3476 (spu_legitimate_address_p): Fix logic error and add missing fallthru
3479 2016-10-26 Michael Matz <matz@suse.de>
3481 PR tree-optimization/78060
3482 PR tree-optimization/78061
3483 PR tree-optimization/78088
3484 * tree-ssa-loop-split.c (easy_exit_values): New function.
3485 (tree_ssa_split_loops): Use it.
3486 (compute_new_first_bound): Change order of operations,
3487 fix invalid use of types.
3489 2016-10-26 Georg-Johann Lay <avr@gjlay.de>
3491 gen-pass-instances.awk is sensitive to the order in which
3492 passes are added; passes that appear later have to be added first.
3496 * config/avr/avr-passes.def: Swap order of directives for
3497 gen-pass-instances.awk.
3499 2016-10-25 Jeff Law <law@redhat.com>
3501 * config/vax/vax.c (vad_address_cost_1): Add missing FALLTHRU comment.
3502 (vax_notice_update_cc): Likewise.
3504 2016-10-25 Eric Botcazou <ebotcazou@adacore.com>
3506 * config.gcc (sparc*-*-solaris2*): Adjust.
3507 (sparc64-*-linux*): Likewise.
3508 * config/sparc/default-64.h: Rename to...
3509 * config/sparc/default64.h: ...this.
3510 * config/sparc/sparc.c (sparc_option_override): Replace TARGET_64BIT
3512 (sparc_mangle_type): Replace !TARGET_64BIT with TARGET_ARCH32.
3513 * config/sparc/sparc.h: Minor tweaks.
3514 * config/sparc/sparc.md: Replace !TARGET_64BIT and !TARGET_ARCH64 with
3515 TARGET_ARCH32 throughout. Minor various tweaks throughout.
3517 2016-10-25 David Malcolm <dmalcolm@redhat.com>
3519 * input.c (fcache::file_patch): Add comment about lifetime.
3520 (selftest::cpp_reader_ptr): New class.
3521 (selftest::lexer_test): Convert m_parser from cpp_reader *
3522 to a cpp_reader_ptr, and move m_tempfile to after it.
3523 (selftest::lexer_test::lexer_test): Update for above reordering.
3524 (lexer_test::~lexer_test): Move cleanup of m_parser to
3525 cpp_reader_ptr's dtor.
3527 2016-10-25 David Malcolm <dmalcolm@redhat.com>
3529 * toplev.c (toplev::main): Remove call to
3530 location_adhoc_data_fini.
3532 2016-10-25 Eric Botcazou <ebotcazou@adacore.com>
3534 * tree.h (wi::fits_to_tree_p): Accept only 0 and 1 for boolean types.
3535 * tree.c (int_fits_type_p): Likewise. Adjust head comment.
3537 2016-10-25 David Malcolm <dmalcolm@redhat.com>
3539 * ggc-tests.c (forcibly_ggc_collect): Rename to...
3540 (selftest::forcibly_ggc_collect): ...this, and remove "static".
3541 (test_basic_struct): Update for above renaming.
3542 (test_length): Likewise.
3543 (test_union): Likewise.
3544 (test_finalization): Likewise.
3545 (test_deletable_global): Likewise.
3546 (test_inheritance): Likewise.
3547 (test_chain_next): Likewise.
3548 (test_user_struct): Likewise.
3549 (test_tree_marking): Likewise.
3550 * selftest-run-tests.c (selftest::run_tests): Call
3551 selftest::forcibly_ggc_collect at the end of the selftests.
3552 * selftest.h (selftest::forcibly_ggc_collect): New decl.
3554 2016-10-25 Jakub Jelinek <jakub@redhat.com>
3557 * optabs.def (vcondeq_optab, vec_cmpeq_optab): New optabs.
3558 * optabs.c (expand_vec_cond_expr): For comparison codes
3559 EQ_EXPR and NE_EXPR, attempt vcondeq_optab as fallback.
3560 (expand_vec_cmp_expr): For comparison codes
3561 EQ_EXPR and NE_EXPR, attempt vec_cmpeq_optab as fallback.
3562 * optabs-tree.h (expand_vec_cmp_expr_p, expand_vec_cond_expr_p):
3563 Add enum tree_code argument.
3564 * optabs-query.h (get_vec_cmp_eq_icode, get_vcond_eq_icode): New
3566 * optabs-tree.c (expand_vec_cmp_expr_p): Add CODE argument. For
3567 CODE EQ_EXPR or NE_EXPR, attempt to use vec_cmpeq_optab as
3569 (expand_vec_cond_expr_p): Add CODE argument. For CODE EQ_EXPR or
3570 NE_EXPR, attempt to use vcondeq_optab as fallback.
3571 * tree-vect-generic.c (expand_vector_comparison,
3572 expand_vector_divmod, expand_vector_condition): Adjust
3573 expand_vec_cmp_expr_p and expand_vec_cond_expr_p callers.
3574 * tree-vect-stmts.c (vectorizable_condition,
3575 vectorizable_comparison): Likewise.
3576 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern,
3577 check_bool_pattern, search_type_for_mask_1): Likewise.
3578 * expr.c (do_store_flag): Likewise.
3579 * doc/md.texi (@code{vec_cmpeq@var{m}@var{n}},
3580 @code{vcondeq@var{m}@var{n}}): Document.
3581 * config/i386/sse.md (vec_cmpeqv2div2di, vcondeq<VI8F_128:mode>v2di):
3584 2016-10-25 Jeff Law <law@redhat.com>
3586 * config/v850/v850.c (v850_handle_data_area_attribute): Fix fallthru
3588 (v850_output_aligned_bss): Add missing break.
3590 * config/m68k/m68k.c (m68k_get_reloc_decoration): Add gcc_unreachable.
3592 2016-10-25 Martin Liska <mliska@suse.cz>
3595 * sanopt.c (imm_dom_path_with_freeing_call): Handle gasm
3596 statements as they can also contain possibly a freeing call.
3598 2016-10-25 H.J. Lu <hongjiu.lu@intel.com>
3599 Martin Liska <mliska@suse.cz>
3602 * common.opt: Mark flag_ipa_icf_variables as Optimization flag.
3603 * ipa-icf.c (sem_function::get_hash): Add target optimization
3606 2016-10-25 Wilco Dijkstra <wdijkstr@arm.com>
3609 * config/arm/neon.md (ashldi3_neon): Add "r 0 i" and "&r r i" variants.
3610 Remove partial overlap check for shift by 1.
3611 (ashldi3_neon): Likewise.
3613 2016-10-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
3615 * config/arm/constraints.md (Q constraint): Document its use for
3617 (Pf constraint): New constraint for relaxed, consume or relaxed memory
3619 * config/arm/sync.md (atomic_load<mode>): Add new ARMv8-M Baseline only
3620 alternatives to allow any register when memory model matches Pf and
3621 thus lda is used, but only low registers otherwise. Use unpredicated
3622 output template for Thumb-1 targets.
3623 (atomic_store<mode>): Likewise for stl.
3624 (arm_load_exclusive<mode>): Add new ARMv8-M Baseline only alternative
3625 whose output template does not have predication.
3626 (arm_load_acquire_exclusive<mode>): Likewise.
3627 (arm_load_exclusivesi): Likewise.
3628 (arm_load_acquire_exclusivesi): Likewise.
3629 (arm_store_release_exclusive<mode>): Likewise.
3630 (arm_store_exclusive<mode>): Use unpredicated output template for
3633 2016-10-25 Jakub Jelinek <jakub@redhat.com>
3635 * internal-fn.def (LAUNDER): New internal function.
3636 * internal-fn.c (expand_LAUNDER): New function.
3638 2016-10-25 Georg-Johann Lay <avr@gjlay.de>
3639 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
3641 New avr target pass to work around performance loss by PR fix.
3645 * config/avr/avr.md (casesi_<mode>_sequence) [qi,hi]: New insn.
3646 (*cmp<mode>) [qi,qq,uqq,hi,hq,uhq,ha,uha]: Rename to cmp<mode>3.
3647 * config/avr/predicates.md (extend_operator): New.
3648 * config/avr/avr-passes.def (avr_pass_casesi): Register new pass.
3649 * config/avr/avr-protos.h (avr_casei_sequence_check_operands)
3650 (make_avr_pass_casesi): New prototypes.
3651 * config/avr/avr.c (print-rtl.h): Include it.
3652 (pass_data avr_pass_data_casesi): Data for new pass.
3653 (avr_pass_casesi): New class implementing rtl_opt_pass .avr-casesi.
3654 (make_avr_pass_casesi, avr_parallel_insn_from_insns)
3655 (avr_is_casesi_sequence, avr_casei_sequence_check_operands)
3656 (avr_optimize_casesi): New functions.
3658 2016-10-25 Georg-Johann Lay <avr@gjlay.de>
3659 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
3663 * config/avr/avr.md (casesi): Rewrite avoiding subregs of SI.
3665 2016-10-24 Jakub Jelinek <jakub@redhat.com>
3667 * dwarf2out.c (gen_subprogram_die): Add DW_AT_reference or
3668 DW_AT_rvalue_reference attributes.
3670 2016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de>
3672 * doc/invoke.text (Wint-in-bool-context): Update documentation.
3673 * value-prof.c (stringop_block_profile): Fix a warning.
3675 2016-10-24 Martin Sebor <msebor@redhat.com>
3678 * builtins.c (string_length): New function.
3679 (c_strlen): Use string_length. Correctly handle wide strings.
3680 * gimple-ssa-sprintf.c (target_max_value, target_size_max): New
3682 (target_int_max): Call target_max_value.
3683 (format_result::knownrange): New data member.
3684 (fmtresult::fmtresult): Define default constructor.
3685 (format_integer): Use it and set format_result::knownrange.
3686 Handle global constants.
3687 (format_floating_max): Add third argument.
3688 (format_floating): Recompute maximum value for %a for each argument.
3689 (get_string_length): Use fmtresult default ctor.
3690 (format_string): Set format_result::knownrange.
3691 (format_directive): Check format_result::knownrange.
3692 (add_bytes): Same. Correct caret placement in diagnostics.
3693 (pass_sprintf_length::compute_format_length): Set
3694 format_result::knownrange.
3695 (pass_sprintf_length::handle_gimple_call): Use target_size_max.
3697 2016-10-24 Jakub Jelinek <jakub@redhat.com>
3699 * config/i386/i386.c (ix86_in_large_data_p, ix86_expand_builtin): Use
3700 VAR_P (x) instead of TREE_CODE (x) == VAR_DECL.
3702 2016-10-24 Ximin Luo <infinity0@pwned.gg>
3705 * dwarf2out.c (file_table_relative_p): Remove.
3706 (gen_compile_unit_die, dwarf2out_early_finish): Emit DW_AT_comp_dir
3707 also for absolute paths.
3708 * doc/tm.texi: Update.
3709 * doc/tm.texi.in (SDB and DWARF) <TARGET_FORCE_AT_COMP_DIR>: Remove.
3710 * target.def (force_at_comp_dir): Remove hook.
3711 * config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Remove define.
3713 2016-10-24 Richard Biener <rguenther@suse.de>
3715 * tree-vrp.c (evrp_dom_walker::before_dom_children): Ignore
3716 backedges when identifying the single predecessor to take
3717 conditional info from. Use SCEV to get at ranges for loop IVs.
3718 * lto-streamer-out.c (lto_write_mode_table): CSE inner mode to
3719 avoid false warning.
3721 2016-10-24 Georg-Johann Lay <avr@gjlay.de>
3724 * doc/extend.texi (AVR Variable Attributes) [absdata]: Document it.
3725 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_ABSDATA): New macro.
3726 (avr_address_tiny_absdata_p): New static function.
3727 (avr_legitimate_address_p, avr_legitimize_address) [AVR_TINY]: Use
3728 it to determine validity of constant addresses.
3729 (avr_attribute_table) [absdata]: New variable attribute...
3730 (avr_handle_absdata_attribute): ...and handler.
3731 (avr_decl_absdata_p): New static function.
3732 (avr_encode_section_info) [AVR_TINY]: Use it to add flag
3733 AVR_SYMBOL_FLAG_TINY_ABSDATA to respective symbols_refs.
3734 (avr_address_cost) [AVR_TINY]: absdata addresses cost 2.
3736 2016-10-24 Richard Biener <rguenther@suse.de>
3738 PR tree-optimization/78076
3739 * tree-ssa-loop-split.c (tree_ssa_split_loops): Reset aux
3740 also on the loop tree root.
3742 2016-10-24 Jakub Jelinek <jakub@redhat.com>
3744 * config/i386/i386.c (ix86_fold_builtin): Handle
3745 IX86_BUILTIN_BEXTR{,I}{32,64}, IX86_BUILTIN_BZHI{32,64},
3746 IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
3747 (ix86_gimple_fold_builtin): Handle IX86_BUILTIN_BZHI{32,64},
3748 IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
3750 2016-10-24 Martin Liska <mliska@suse.cz>
3753 * opts.c (finish_options): Skip conditionally.
3755 2016-10-23 Martin Sebor <msebor@redhat.com>
3758 * config/rs6000/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define.
3759 * config/rs6000/linux64.h (TARGET_PRINTF_POINTER_FORMAT): Likewise.
3761 2016-10-23 Eric Botcazou <ebotcazou@adacore.com>
3763 * config/sparc/sparc.md (cpu_feature): Minor tweak.
3764 (enabled): Likewise.
3765 (movsi_insn, movdi_insn_sp32, movdi_insn_sp64, movsf_insn,
3766 movdf_insn_sp32, movdf_insn_sp64, zero_extendsidi2_insn_sp64,
3767 sign_extendsidi2_insn, mov<VM32:mode>_insn, mov<VM64:mode>_insn_sp64,
3768 mov<VM64:mode>_insn_sp32, not_<code><mode>, nand<mode>_vis,
3769 <code>_not1<mode>_vi, <code>_not2<mode>_vis, one_cmpl<mode>2,
3770 fcmp<code><GCM:gcm_name>, pdistn<mode>_vis): Likewise.
3772 2016-10-23 Eric Botcazou <ebotcazou@adacore.com>
3774 * config/sparc/sparc-c.c (sparc_target_macros): Replace TARGET_64BIT
3775 with TARGET_ARCH64. Define __VIS to 0x400 if TARGET_VIS4.
3777 2016-10-21 Andrew Pinski <apinski@cavium.com>
3779 * config/aarch64/aarch64-cores.def: Rewrite so IMP and PART are
3781 * config/aarch64/driver-aarch64.c (struct aarch64_core_data): Change
3782 implementer_id to unsigned char.
3783 Change part_no to unsigned int.
3784 (AARCH64_BIG_LITTLE): New define.
3785 (INVALID_IMP): New define.
3786 (INVALID_CORE): New define.
3787 (cpu_data): Change the last element's implementer_id and part_no to
3789 (valid_bL_string_p): Rewrite to ..
3790 (valid_bL_core_p): this for integers instead of strings.
3791 (parse_field): New function.
3792 (contains_string_p): Rewrite to ...
3793 (contains_core_p): this for integers and only for the part_no.
3794 (host_detect_local_cpu): Rewrite handling of implementation and
3795 par num to be integers; simplifying the code.
3797 2016-10-21 Kugan Vivekanandarajah <kuganv@linaro.org>
3799 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Create nonzero
3800 value range for pointers in more cases.
3802 2016-10-21 Wilco Dijkstra <wdijkstr@arm.com>
3804 * config/aarch64/aarch64.c (aarch64_add_constant_internal):
3805 Add extra argument to allow emitting the move immediate.
3806 Use add/sub with positive immediate.
3807 (aarch64_add_constant): Add inline function.
3808 (aarch64_add_sp): Likewise.
3809 (aarch64_sub_sp): Likewise.
3810 (aarch64_expand_prologue): Call aarch64_sub_sp.
3811 (aarch64_expand_epilogue): Call aarch64_add_sp.
3812 Decide when to leave out move.
3813 (aarch64_output_mi_thunk): Call aarch64_add_constant.
3815 2016-10-21 Wilco Dijkstra <wdijkstr@arm.com>
3817 * config/aarch64/aarch64.c (aarch64_layout_frame):
3818 Align FP callee-saves.
3820 2016-10-21 Jakub Jelinek <jakub@redhat.com>
3822 * config/i386/adxintrin.h (_subborrow_u32, _addcarry_u32,
3823 _addcarryx_u32, _subborrow_u64, _addcarry_u64, _addcarryx_u64):
3825 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
3826 _rdseed64_step): Likewise.
3827 * config/i386/tbmintrin.h (__bextri_u32): Likewise.
3830 * config/i386/i386.c: Include fold-const-call.h, tree-vrp.h
3831 and tree-ssanames.h.
3832 (ix86_fold_builtin): Fold IX86_BUILTIN_[LT]ZCNT{16,32,64}
3833 with INTEGER_CST argument.
3834 (ix86_gimple_fold_builtin): New function.
3835 (TARGET_GIMPLE_FOLD_BUILTIN): Define.
3837 * dwarf2out.c (ranges_table): Change into vec<dw_ranges, va_gc> *.
3838 (ranges_by_label): Change into vec<dw_ranges_by_label, va_gc> *.
3839 (ranges_table_allocated, ranges_table_in_use,
3840 ranges_by_label_allocated, ranges_by_label_in_use,
3841 RANGES_TABLE_INCREMENT): Removed.
3842 (add_ranges_num): Use vec_safe_push into ranges_table.
3843 (add_ranges_by_labels): Use vec_safe_push into ranges_by_label.
3844 (output_ranges): Adjust for ranges_table and ranges_by_label
3845 conversion from arrays to vec.
3846 (add_high_low_attributes, dwarf2out_finish): Adjust for range_table
3847 conversion from arrays to vec.
3848 (dwarf2out_c_finalize): Don't clear ranges_table_allocated,
3849 ranges_table_in_use, ranges_by_label_allocated and
3850 ranges_by_label_in_use. Set ranges_by_label to NULL instead of 0.
3852 * dwarf2out.c (gen_variable_die): Emit DW_AT_const_expr attribute
3853 if needed. Re-add origin_die variable and its initialization.
3855 * gimplify.c (gimplify_bind_expr): Handle oacc_declare_returns
3856 even for -fstack-reuse=none, or for volatile vars etc.
3858 2016-10-21 David Malcolm <dmalcolm@redhat.com>
3860 * print-rtl-function.c (flag_compact): Move extern decl to...
3861 * print-rtl.h (flag_compact): ...here.
3862 * rtl-tests.c (selftests::assert_rtl_dump_eq): New function.
3863 (ASSERT_RTL_DUMP_EQ): New macro.
3864 (selftest::test_dumping_regs): New function.
3865 (selftest::test_dumping_insns): New function.
3866 (selftest::test_uncond_jump): Add uses of ASSERT_RTL_DUMP_EQ on
3868 (selftest::rtl_tests_c_tests): Call the new test functions.
3870 2016-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3872 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
3873 (outgoing_edges_match): Likewise.
3874 (try_crossjump_to_edge): Likewise.
3875 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
3876 (rtl_tidy_fallthru_edge): Likewise.
3877 * rtl.h (tablejump_p): Adjust prototype.
3878 * rtlanal.c (tablejump_p): Return the label as a rtx_insn *.
3880 2016-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3882 * rtl.h (label_ref_label): New function.
3883 (set_label_ref_label): New function.
3884 (LABEL_REF_LABEL): Delete.
3885 * alias.c (rtx_equal_for_memref_p): Adjust.
3886 * cfgbuild.c (make_edges): Likewise.
3887 (purge_dead_tablejump_edges): Likewise.
3888 * cfgexpand.c (convert_debug_memory_address): Likewise.
3889 * cfgrtl.c (patch_jump_insn): Likewise.
3890 * combine.c (distribute_notes): Likewise.
3891 * cse.c (hash_rtx_cb): Likewise.
3892 (exp_equiv_p): Likewise.
3893 (fold_rtx): Likewise.
3894 (check_for_label_ref): Likewise.
3895 * cselib.c (rtx_equal_for_cselib_1): Likewise.
3896 (cselib_hash_rtx): Likewise.
3897 * emit-rtl.c (mark_label_nuses): Likewise.
3898 * explow.c (convert_memory_address_addr_space_1): Likewise.
3899 * final.c (output_asm_label): Likewise.
3900 (output_addr_const): Likewise.
3901 * gcse.c (add_label_notes): Likewise.
3902 * genconfig.c (walk_insn_part): Likewise.
3903 * genrecog.c (validate_pattern): Likewise.
3904 * ifcvt.c (cond_exec_get_condition): Likewise.
3905 (noce_emit_store_flag): Likewise.
3906 (noce_get_alt_condition): Likewise.
3907 (noce_get_condition): Likewise.
3908 * jump.c (maybe_propagate_label_ref): Likewise.
3909 (mark_jump_label_1): Likewise.
3910 (redirect_exp_1): Likewise.
3911 (rtx_renumbered_equal_p): Likewise.
3912 * lra-constraints.c (operands_match_p): Likewise.
3913 * print-rtl.c (print_value): Likewise.
3914 * reload.c (find_reloads): Likewise.
3915 * reload1.c (set_label_offsets): Likewise.
3916 * reorg.c (get_branch_condition): Likewise.
3917 * rtl-tests.c (test_uncond_jump): Likewise.
3918 * rtl.c (rtx_equal_p_cb): Likewise.
3919 (rtx_equal_p): Likewise.
3920 * rtlanal.c (reg_mentioned_p): Likewise.
3921 (rtx_referenced_p): Likewise.
3922 (get_condition): Likewise.
3923 * varasm.c (const_hash_1): Likewise.
3924 (compare_constant): Likewise.
3925 (const_rtx_hash_1): Likewise.
3926 (output_constant_pool_1): Likewise.
3928 2016-10-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3931 * reload.c (find_valid_class_1): Allow regclass if atleast one
3932 regno in regclass is ok. Compute and use rclass size based on
3933 actually available regnos for mode in rclass.
3935 2016-10-21 Eric Botcazou <ebotcazou@adacore.com>
3937 * config/sparc/sparc-modes.def (CCV): New.
3939 * config/sparc/predicates.md (v_comparison_operator): New.
3940 (icc_comparison_operator): Add support for CCV/CCXV.
3941 (xcc_comparison_operator): Likewise.
3942 * config/sparc/sparc.c (output_cbranch): Likewise.
3943 (sparc_print_operand): Likewise.
3944 * config/sparc/sparc.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
3945 (uaddvdi4): New expander.
3946 (addvdi4): Likewise.
3947 (uaddvdi4_sp32): New instruction.
3948 (addvdi4_sp32): Likewise.
3949 (uaddvsi4): New expander.
3950 (addvsi4): Likewise.
3951 (cmp_ccc_plus_sltu_set): New instruction.
3952 (cmp_ccv_plus): Likewise.
3953 (cmp_ccxv_plus): Likewise.
3954 (cmp_ccv_plus_set): Likewise.
3955 (cmp_ccxv_plus_set): Likewise.
3956 (cmp_ccv_plus_sltu_set): Likewise.
3957 (uaddvdi4): New expander.
3958 (subvdi4): Likewise.
3959 (usubdi4_sp32): New instruction.
3960 (subvdi4_sp32): Likewise.
3961 (usubvsi4): New expander.
3962 (subvsi4): Likewise.
3963 (cmpsi_minus_sltu_set): New instruction.
3964 (cmp_ccv_minus): Likewise.
3965 (cmp_ccxv_minus): Likewise.
3966 (cmp_ccv_minus_set): Likewise.
3967 (cmp_ccxv_minus_set): Likewise.
3968 (cmp_ccv_minus_sltu_set): Likewise.
3969 (unegvdi3): New expander.
3970 (negvdi3): Likewise.
3971 (unegdi3_sp32): New instruction.
3972 (negvdi3_sp32): Likewise.
3973 (unegvsi3): New expander.
3974 (negvsi3): Likewise.
3975 (cmp_ccc_neg_sltu_set): New instruction.
3976 (cmp_ccv_neg): Likewise.
3977 (cmp_ccxv_neg): Likewise.
3978 (cmp_ccv_neg_set): Likewise.
3979 (cmp_ccxv_neg_set): Likewise.
3980 (cmp_ccv_neg_sltu_set): Likewise.
3982 * tree-ssa-loop-split.c: Remove trailing spaces.
3983 * match.pd: Likewise.
3985 2016-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3987 PR rtl-optimization/78038
3988 * ree.c (get_defs): Return NULL if a defining insn for REG cannot
3989 be deduced to set REG through the RTL structure.
3990 (make_defs_and_copies_lists): Return false on a failing get_defs call.
3992 2016-10-21 Richard Biener <rguenther@suse.de>
3994 PR tree-optimization/78051
3995 * tree-vrp.c (evrp_dom_walker::before_dom_children): Update stmt
3996 and mark replaced if folding did something.
3998 2016-10-21 David Edelsohn <dje.gcc@gmail.com>
4000 * config/rs6000/rs6000.c (rs6000_assemble_visibility): Swap "internal"
4001 and "protected" in visibility types.
4002 (rs6000_xcoff_declare_function_name): Fix formatting.
4003 (rs6000_xcoff_declare_object_name): Fix formatting.
4005 2016-10-21 Uros Bizjak <ubizjak@gmail.com>
4007 * config/i386/i386.c (ix86_fold_builtin): Handle IX86_BUILTIN_INFQ
4008 and IX86_BUILTIN_HUGE_VALQ here ...
4009 (ix86_expand_builtin): ... not here.
4011 2016-10-20 Jakub Jelinek <jakub@redhat.com>
4013 * doc/gty.texi (for_user): Use @item next to @findex.
4015 2016-10-20 Uros Bizjak <ubizjak@gmail.com>
4018 * config/i386/bmiintrin.h (__tzcnt_u16): Call __builtin_ia32_tzcnt_u16.
4019 (__tzcnt_u32, _tzcnt_u32): Call __builtin_ia32_tzcnt_u32.
4020 (__tzcnt_u64, _tzcnt_u64): Call __builtin_ia32_tzcnt_u64.
4021 * config/i386/lzcntintrin.h (__lzcnt_u16): Call
4022 __builtin_ia32_lzcnt_u16.
4023 (__lzcnt_u32, _lzcnt_u32): Call __builtin_ia32_lzcnt_u32.
4024 (__lzcnt_u64, _lzcnt_u64): Call __builtin_ia32_lzcnt_u64.
4025 * config/i386/i386.md (UNSPEC_LZCNT, UNSPEC_TZCNT): New unspecs.
4026 (ctz<mode>2, *ctz<mode>2): Use SWI48 mode iterator.
4027 (bmi_tzcnt_<mode>): New expander.
4028 (*bmi_tzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
4029 (*bmi_tzcnt_<mode>_falsedep, *bmi_tzcnt_<mode>): New insn patterns.
4030 (clz<mode>2_lzcnt, *clz<mode>2_lzcnt): Use SWI48 mode iterator.
4031 (lzcnt_<mode>): New expander.
4032 (*lzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
4033 (*lzcnt_<mode>_falsedep, *lzcnt_<mode>): New insn patterns.
4034 * config/i386/i386-builtin-types.def (UINT_FTYPE_UINT): New.
4035 (UINT64_FTYPE_UINT64): New.
4036 * config/i386/i386-builtin.def (__builtin_clzs): Remove description.
4037 (__builtin_ia32_lzcnt_u16): New description.
4038 (__builtin_ia32_lzcnt_u32): Ditto.
4039 (__builtin_ia32_lzcnt_u64): Ditto.
4040 (__builtin_ctzs): Remove description.
4041 (__builtin_ia32_tzcnt_u16): New description.
4042 (__builtin_ia32_tzcnt_u32): Ditto.
4043 (__builtin_ia32_tzcnt_u64): Ditto.
4044 * config/i386/i386.c (ix86_expand_args_builtin): Handle
4045 UINT_FTYPE_UINT and UINT64_FTYPE_UINT64.
4047 2016-10-20 Martin Liska <mliska@suse.cz>
4050 * lto-streamer-in.c (fixup_call_stmt_edges_1): Replace value
4051 comparison with STMT_UID_NOT_IN_RANGE.
4052 (fixup_call_stmt_edges): Do not fixup edges of a thunk in
4055 2016-10-20 Eric Botcazou <ebotcazou@adacore.com>
4057 * compare-elim.c (conforming_compare): Accept UNSPECs.
4058 (find_comparison_dom_walker::before_dom_children): Deal with
4059 instructions both using and killing the flags register.
4060 (equivalent_reg_at_start): New function extracted from...
4061 (try_eliminate_compare): ...here. Use it and add support for
4062 registers and UNSPECs as second operand of the compare.
4063 * config/visium/visium-modes.def (CCV): New.
4064 * config/visium/predicates.md (visium_v_comparison_operator): New.
4065 (visium_branch_operator): Deal with CCV mode.
4066 * config/visium/visium.c (visium_select_cc_mode): Likewise.
4067 (output_cbranch): Likewise.
4068 * config/visium/visium.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
4069 (uaddv<mode>4): New expander.
4070 (addv<mode>4): Likewise.
4071 (add<mode>3_insn_set_carry): New instruction.
4072 (add<mode>3_insn_set_overflow): Likewise.
4073 (addsi3_insn_set_overflow): Likewise.
4074 (usubv<mode>4): New expander.
4075 (subv<mode>4): Likewise.
4076 (sub<mode>3_insn_set_carry): New instruction.
4077 (sub<mode>3_insn_set_overflow): Likewise.
4078 (subsi3_insn_set_overflow): Likewise.
4079 (unegv<mode>3): New expander.
4080 (negv<mode>3): Likewise.
4081 (neg<mode>2_insn_set_overflow): New instruction.
4082 (addv_tst<mode>): Likewise.
4083 (subv_tst<mode>): Likewise.
4084 (negv_tst<mode>): Likewise.
4085 (cbranch<mode>4_addv_insn): New splitter and instruction.
4086 (cbranch<mode>4_subv_insn): Likewise.
4087 (cbranch<mode>4_negv_insn): Likewise.
4089 2016-10-20 Richard Biener <rguenther@suse.de>
4091 * tree-ssa-alias.c (ptrs_compare_unequal): Remove code duplication.
4092 Handle decls possibly not bound.
4093 * tree-ssa-structalias.c (get_constraint_for_ssa_var): Add
4094 nothing_id for decls that might not be bound if we are interested
4096 (get_constraint_for_component_ref): Deal with that.
4098 2016-10-20 Michael Matz <matz@suse.de>
4101 * common.opt (-fsplit-loops): New flag.
4102 * passes.def (pass_loop_split): Add.
4103 * opts.c (default_options_table): Add OPT_fsplit_loops entry at -O3.
4104 (enable_fdo_optimizations): Add loop splitting.
4105 * timevar.def (TV_LOOP_SPLIT): Add.
4106 * tree-pass.h (make_pass_loop_split): Declare.
4107 * tree-ssa-loop-manip.h (rewrite_into_loop_closed_ssa_1): Declare.
4108 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h,
4109 * tree-ssa-loop-split.c: New file.
4110 * Makefile.in (OBJS): Add tree-ssa-loop-split.o.
4111 * doc/invoke.texi (fsplit-loops): Document.
4112 * doc/passes.texi (Loop optimization): Add paragraph about loop
4115 2016-10-20 Richard Biener <rguenther@suse.de>
4117 * cgraphunit.c (analyze_functions): Set node->definition to
4118 false to signal symbol removal to debug_hooks->late_global_decl.
4119 * ipa.c (symbol_table::remove_unreachable_nodes): When not in
4120 WPA signal symbol removal to the debuginfo machinery.
4121 * dwarf2out.c (dwarf2out_late_global_decl): Instead of
4122 using early_finised to guard the we're called for symbol
4123 removal case look at the symtabs definition flag.
4124 (gen_variable_die): Remove redundant check.
4126 2016-10-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4128 * config/s390/s390.md ("prefetch"): Add fallthrough comment.
4130 2016-10-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4132 PR tree-optimization/53979
4133 * match.pd ((a ^ b) | a -> a | b): New pattern.
4135 2016-10-19 John David Anglin <danglin@gcc.gnu.org>
4137 * config/pa/pa64-hpux.h (PA_INIT_FRAME_DUMMY_ASM_OP): Move to
4138 config/pa/pa64-hpux-lib.h.
4139 (PA_CRTBEGIN_HACK): Likewise.
4140 (DTOR_LIST_BEGIN): Likewise.
4142 2016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
4144 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
4145 register only if "in" and "out" are different registers.
4147 2016-10-19 Eric Botcazou <ebotcazou@adacore.com>
4149 * omp-low.c (pass_oacc_device_lower::gate): New method.
4150 (execute): Always call execute_oacc_device_lower.
4152 2016-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4154 PR tree-optimization/77916
4155 PR tree-optimization/77937
4156 * gimple-ssa-strength-reduction.c (analyze_increments): Remove
4158 (insert_initializers): Requirement of initializer for -1 should be
4159 based on pointer-typedness of the candidate basis.
4161 2016-10-19 Bin Cheng <bin.cheng@arm.com>
4163 PR tree-optimization/78005
4164 * tree-vect-loop-manip.c (vect_gen_prolog_loop_niters): Compute
4165 upper (included) bound for niters of prolog loop.
4166 (vect_gen_scalar_loop_niters): Change parameter VF to VFM1.
4167 Compute niters of scalar loop above which vectorized loop is
4168 preferred, as well as the upper (included) bound for the niters.
4169 (vect_do_peeling): Record niter bound for loops accordingly.
4171 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
4174 * tree-core.h (enum tree_index): Put the complex types after their
4176 * tree-streamer.c (verify_common_node_recorded): New function.
4177 (preload_common_nodes) <TREE_CODE (node) == COMPLEX_TYPE>: Use it.
4179 2016-10-19 Martin Liska <mliska@suse.cz>
4181 * cgraph.h (cgraph_edge::binds_to_current_def_p):
4182 Replace NULL with false as a return value.
4184 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
4186 PR tree-optimization/78024
4187 * omp-low.c (oacc_loop_discovery): Call clear_bb_flags before, and
4188 don't clear BB_VISITED after processing.
4190 2016-10-19 Richard Biener <rguenther@suse.de>
4192 * domwalk.c (dom_walker::walk): Use RPO order.
4194 2016-10-19 Richard Biener <rguenther@suse.de>
4196 * tree-vrp.c (evrp_dom_walker::evrp_dom_walker): Initialize
4198 (evrp_dom_walker::~evrp_dom_walker): Free it.
4199 (evrp_dom_walker::stmts_to_remove): Add.
4200 (evrp_dom_walker::before_dom_children): Mark PHIs and stmts
4201 whose output we fully propagate for removal. Propagate
4202 into BB destination PHI arguments.
4203 (execute_early_vrp): Remove queued stmts. Dump value ranges
4204 before stmt removal.
4206 2016-10-18 Aldy Hernandez <aldyh@redhat.com>
4208 * Makefile.in (OBJS): Add gimple-ssa-warn-alloca.o.
4209 * passes.def: Add two instances of pass_walloca.
4210 * tree-pass.h (make_pass_walloca): New.
4211 * gimple-ssa-warn-alloca.c: New file.
4212 * doc/invoke.texi: Document -Walloca, -Walloca-larger-than=, and
4213 -Wvla-larger-than= options.
4215 2016-10-18 Thomas Schwinge <thomas@codesourcery.com>
4217 * cfg.c (clear_bb_flags): Use FOR_ALL_BB_FN.
4218 * config/nvptx/nvptx.c (nvptx_find_sese): Likewise.
4220 2016-10-18 Kelvin Nilsen <kelvin@gcc.gnu.org>
4222 * config/rs6000/altivec.h (vec_xl_len): New macro.
4223 (vec_xst_len): New macro.
4224 (vec_cmpnez): New macro.
4225 (vec_cntlz_lsbb): New macro.
4226 (vec_cnttz_lsbb): New macro.
4227 (vec_xlx): New macro.
4228 (vec_xrx): New macro.
4229 (vec_all_nez): New C++ predicate template.
4230 (vec_any_eqz): New C++ predicate template.
4231 (vec_all_ne): Revised C++ predicate template under _ARCH_PWR9
4232 conditional compilation.
4233 (vec_any_eq): Revised C++ predicate template under _ARCH_PWR9
4234 conditional compilation.
4235 (vec_all_nez): New macro.
4236 (vec_any_eqz): New macro.
4237 (vec_all_ne): Revised macro under _ARCH_PWR9 conditional
4239 (vec_any_eq): Revised macro under _ARCH_PWR9 conditional
4241 * config/rs6000/vector.md (VI): Moved this mode iterator
4242 definition from altivec.md to vector.md.
4243 (UNSPEC_NEZ_P): New value.
4244 (vector_ne_<mode>_p): New expansion for implementation of
4245 vec_all_ne and vec_any_eq built-in functions.
4246 (vector_nez_<mode>_p): New expansion for implementation of
4247 vec_all_nez and vec_any_eqz built-in functions.
4248 (vector_ne_v2di_p): New expansion for implementation of vec_all_ne
4249 and vec_any_eq built-in function.
4250 (cr6_test_for_zero): New commentary to explain this expansion.
4251 (cr6_test_for_zero_reverse): New commentary to explain this expansion.
4252 (cr6_test_for_lt): New commentary to explain this expansion.
4253 (cr6_test_for_lt_reverse): New commentary to explain this
4255 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4256 overloaded function prototypes for vec_all_ne, vec_all_nez,
4257 vec_any_eq, vec_any_eqz, vec_cmpnez, vec_cntlz_lsbb,
4258 vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx, and vec_xrx
4260 (altivec_resolve_overloaded_builtin): Modify the handling of
4261 ALTIVEC_BUILTIN_VEC_CMPNE to use the Power9 instructions when
4262 the compiler is configured to support TARGET_P9_VECTOR.
4263 * config/rs6000/rs6000-builtin.def (BU_ALTIVEC_P): Add commentary
4264 to explain the special processing that is given to predicate
4265 built-ins introduced using this macro.
4266 (BU_ALTIVEC_OVERLOAD_P): Add commentary to alert maintainers to
4267 the special processing given to predicate built-ins introduced
4269 (BU_VSX_P): Likewise.
4270 (BU_P8V_AV_P): Likewise.
4271 (BU_P9V_AV_P): Likewise.
4272 (BU_P9V_AV_X): New macro.
4273 (BU_P9V_64BIT_AV_X): New macro.
4274 (BU_P9V_VSX_3): New macro.
4275 (BU_P9V_OVERLOAD_P): New macro.
4276 (LXVL): New BU_P9V_64BIT_VSX_2.
4277 (VEXTUBLX): New BU_P9V_AV_2.
4278 (VEXTUBRX): Likewise.
4279 (VEXTUHLX): Likewise.
4280 (VEXTUHRX): Likewise.
4281 (VEXTUWLX): Likewise.
4282 (VEXTUWRX): Likewise.
4283 (STXVL): New BU_P9V_64BIT_AV_X.
4284 (VCLZLSBB): New BU_P9V_AV_1.
4285 (VCTZLSBB): Likewise.
4286 (CMPNEB): New BU_P9V_AV_2.
4291 (VCMPNEB_P): New BU_P9V_AV_P.
4292 (VCMPNEH_P): Likewise.
4293 (VCMPNEW_P): Likewise.
4294 (VCMPNED_P): Likewise.
4295 (VCMPNEFP_P): Likewise.
4296 (VCMPNEDP_P): Likewise.
4297 (CMPNEZB): New BU_P9V_AV_2.
4298 (CMPNEZH): Likewise.
4299 (CMPNEZW): Likewise.
4300 (VCMPNEZB_P): New BU_P9V_AV_P.
4301 (VCMPNEZH_P): Likewise.
4302 (VCMPNEZW_P): Likewise.
4303 (LXVL): New BU_P9V_OVERLOAD_2.
4304 (STXVL): New BU_P9V_OVERLOAD_3.
4305 (VEXTULX): New BU_P9V_OVERLOAD_2.
4306 (VEXTURX): Likewise.
4308 (VCMPNEZ_P): New BU_P9V_OVERLOAD_P.
4309 (VCMPNE_P): Likewise.
4310 (VCLZLSBB): New BU_P9V_OVERLOAD_1.
4311 (VCTZLSBB): Likewise.
4312 * config/rs6000/rs6000.c (altivec_expand_predicate_builtin): Add
4313 comment to explain mode used for scratch register.
4314 (altivec_expand_stxvl_builtin): New function.
4315 (altivec_expand_builtin): Add case for new constant P9V_BUILTIN_STXVL.
4316 (altivec_init_builtins): Add initialized variable
4317 void_ftype_v16qi_pvoid_long and use this type to define the
4318 built-in function __builtin_altivec_stxvl.
4319 * config/rs6000/vsx.md (UNSPEC_LXVL): New value.
4320 (UNSPEC_STXVL): New value.
4321 (UNSPEC_VCLZLSBB): New value.
4322 (UNSPEC_VCTZLSBB): New value.
4323 (UNSPEC_VEXTUBLX): New value.
4324 (UNSPEC_VEXTUHLX): New value.
4325 (UNSPEC_VEXTUWLX): New value.
4326 (UNSPEC_VEXTUBRX): New value.
4327 (UNSPEC_VEXTUHRX): New value.
4328 (UNSPEC_VEXTUWRX): New value.
4329 (UNSPEC_VCMPNEB): New value.
4330 (UNSPEC_VCMPNEZB): New value.
4331 (UNSPEC_VCMPNEH): New value.
4332 (UNSPEC_VCMPNEZH): New value.
4333 (UNSPEC_VCMPNEW): New value.
4334 (UNSPEC_VCMPNEZW): New value.
4335 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
4336 vector of integer modes.
4337 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
4338 vector of float or double modes.
4339 (*vector_nez_<mode>_p): New insn for vector test all not equal or
4341 (lxvl): New expand for load VSX vector with length.
4342 (*lxvl): New insn for load VSX vector with length.
4343 (stxvl): New expand for store VSX vector with length.
4344 (*stxvl): New insn for store VSX vector with length.
4345 (vcmpneb): New insn for vector of byte compare not equal.
4346 (vcmpnezb): New insn for vector of byte compare not equal or zero.
4347 (vcmpneh): New insn for vector of half word compare not equal.
4348 (vcmpnezh): New insn for vector of half word compare not equal or
4350 (vcmpnew): New insn for vector of word compare not equal.
4351 (vcmpne<VSs>): New insn for vector of float or double compare not
4353 (vcmpnezw): New insn for vector of word compare not equal or zero.
4354 (vclzlsbb): New insn for vector count leading zero
4355 least-significant bits byte.
4356 (vctzlsbb): New insn for vector count trailing zero least
4357 signficant bits byte.
4358 (vextublx): New insn for vector extract unsigned byte left
4360 (vextubrx): New insn for vector extract unsigned byte right
4362 (vextuhlx): New insn for vector extract unsigned half word left
4364 (vextuhrx): New insn for vector extract unsigned half word right
4366 (vextuwlx): New insn for vector extract unsigned word left
4368 (vextuwrx): New insn for vector extract unsigned word right
4370 * config/rs6000/rs6000.h (RS6000_BTC_CONST): Enhance comment to
4371 clarify intent of this constant.
4372 * config/rs6000/altivec.md (VI): Move this mode iterator to vsx.md.
4373 * doc/extend.texi (PowerPC Altivec Built-in Functions): Add
4374 documentation for vec_all_nez, vec_any_eqz, vec_cmpnez,
4375 vec_cntlz_lsbb, vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx,
4376 and vec_xrx functions.
4378 2016-10-18 Andrew Pinski <apinski@cavium.com>
4381 * predict.c (is_exit_with_zero_arg): New function.
4382 (tree_bb_level_predictions): Don't consider paths leading to exit(0)
4385 2016-10-18 Uros Bizjak <ubizjak@gmail.com>
4388 * config/i386/i386.c (legitimize_tls_address)
4389 <case TLS_MODEL_INITIAL_EXEC>: For TARGET_64BIT || TARGET_ANY_GNU_TLS
4390 convert dest to Pmode if different than Pmode.
4392 2016-10-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4394 PR tree-optimization/77916
4395 * gimple-ssa-strength-reduction.c (analyze_increments): Reinstate
4396 stopgap fix, as pointers with -1 increment are still broken.
4398 2016-10-18 David Edelsohn <dje.gcc@gmail.com>
4400 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Move storage
4401 mapping class decoration from here...
4402 (rs6000_xcoff_encode_section): ...to here.
4404 (rs6000_savres_strategy) [AIX,ELFv2]: Inline FPR save and restore
4405 if shrink-wrapping and optimizing for speed.
4407 2016-10-18 Richard Biener <rguenther@suse.de>
4409 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
4410 not visited but non-executable predecessors. Return taken edge.
4411 Simplify conditions and refactor propagation vs. folding step.
4413 2016-10-18 Segher Boessenkool <segher@kernel.crashing.org>
4415 * config/rs6000/rs6000.c (rs6000_savres_strategy): Do not select
4416 {SAVE,REST}_MULTIPLE if shrink-wrapping separate components.
4417 (rs6000_get_separate_components): Assert we do not have those
4418 strategies selected.
4420 2016-10-18 Richard Biener <rguenther@suse.de>
4422 * tree-ssa-propagate.h (substitute_and_fold): Adjust prototype.
4423 * tree-ssa-propagate.c (ssa_prop_fini): Remove final BB_VISITED
4425 (substitute_and_fold_dom_walker): Adjust constructor.
4426 (substitute_and_fold_dom_walker::before_dom_children): Remove
4427 do_dce flag and handling (always true).
4428 (substitute_and_fold): Likewise.
4429 * tree-vrp.c (vrp_finalize): Adjust.
4430 (execute_early_vrp): Remove final BB_VISITED clearing.
4431 * tree-ssa-ccp.c (ccp_finalize): Adjust.
4432 * tree-ssa-copy.c (fini_copy_prop): Likewise.
4433 * ira.c (ira): Call clear_bb_flags.
4435 2016-10-18 Richard Biener <rguenther@suse.de>
4437 * genmatch.c (dt_operand::gen_gimple_expr): Use get_name to
4438 get at the operand to look at with TREE_OPERAND for generic
4441 2016-10-18 David Malcolm <dmalcolm@redhat.com>
4443 * genattrtab.c (attr_string): Use rtx_reader_ptr for call to
4445 (gen_attr): Use rtx_reader_ptr for lookup_enum_type call.
4446 (write_test_expr): Use rtx_reader_ptr for calls to
4448 (write_attr_value): Likewise.
4449 * genconditions.c (write_one_condition): Use rtx_reader_ptr for
4450 call to print_md_ptr_loc.
4451 (write_one_condition): Likewise for calls to print_c_condition.
4452 * genconstants.c: Include "statistics.h" and "vec.h".
4453 (main): Update for conversion to member functions.
4454 * genemit.c (emit_c_code): Use rtx_reader_ptr for
4455 call to print_md_ptr_loc.
4456 * genenums.c: Include "statistics.h" and "vec.h".
4457 (main): Update for conversion of traverse_enum_types to a method.
4458 * genmddeps.c: Include "statistics.h" and "vec.h".
4459 * genoutput.c (process_template): Use rtx_reader_ptr for call to
4461 * genpreds.c (write_predicate_subfunction): Likewise.
4462 (write_predicate_expr): Likewise for calls to print_c_condition.
4463 * genrecog.c (print_test): Likewise.
4464 * gensupport.c (process_rtx): Likewise for calls to
4465 copy_md_ptr_loc and join_c_conditions.
4466 (alter_test_for_insn): Likewise for call to join_c_conditions.
4467 (process_substs_on_one_elem): Likewise.
4468 (gen_mnemonic_setattr): Update for move of string_obstack to a
4469 field of rtx_reader.
4470 (mnemonic_htab_callback): Likewise. Fix formatting.
4471 (gen_mnemonic_attr): Likewise.
4472 * gentarget-def.c (def_target_insn): Use rtx_reader_ptr for calls
4473 to print_c_condition.
4474 * read-md.c: Include "statistics.h" and "vec.h".
4475 (string_obstack): Convert this global to field "m_string_obstack"
4476 of class rtx_reader.
4477 (ptr_locs): Likewise, as "m_ptr_locs".
4478 (ptr_loc_obstack): Likewise, as "m_ptr_loc_obstack".
4479 (joined_conditions): Likewise, as "m_joined_conditions".
4480 (joined_conditions_obstack): Likewise, as "m_joined_conditions_obstack".
4481 (md_constants): Likewise, as "m_md_constants".
4482 (enum_types): Likewise, as "m_enum_types".
4483 (set_md_ptr_loc): Convert to...
4484 (rtx_reader::set_md_ptr_loc): ...member function.
4485 (get_md_ptr_loc): Convert to...
4486 (rtx_reader::get_md_ptr_loc): ...member function.
4487 (copy_md_ptr_loc): Convert to...
4488 (rtx_reader::copy_md_ptr_loc): ...member function.
4489 (fprint_md_ptr_loc): Convert to...
4490 (rtx_reader::fprint_md_ptr_loc): ...member function.
4491 (print_md_ptr_loc): Convert to...
4492 (rtx_reader::print_md_ptr_loc): ...member function.
4493 (join_c_conditions): Convert to...
4494 (rtx_reader::join_c_conditions): ...member function.
4495 (fprint_c_condition): Convert to...
4496 (rtx_reader::fprint_c_condition): ...member function.
4497 (print_c_condition): Convert to...
4498 (rtx_reader::print_c_condition): ...member function.
4499 (read_name): Convert to...
4500 (rtx_reader::read_name): ...member function.
4501 (read_escape): Convert to...
4502 (rtx_reader::read_escape): ...member function.
4503 (read_quoted_string): Convert to...
4504 (rtx_reader::read_quoted_string): ...member function.
4505 (read_braced_string): Convert to...
4506 (rtx_reader::read_braced_string): ...member function.
4507 (read_string): Convert to...
4508 (rtx_reader::read_string): ...member function.
4509 (read_skip_construct): Convert to...
4510 (rtx_reader::read_skip_construct): ...member function.
4511 (handle_constants): Convert to...
4512 (rtx_reader::handle_constants): ...member function.
4513 (traverse_md_constants): Convert to...
4514 (rtx_reader::traverse_md_constants): ...member function.
4515 (handle_enum): Convert to...
4516 (rtx_reader::handle_enum): ...member function.
4517 (lookup_enum_type): Convert to...
4518 (rtx_reader::lookup_enum_type): ...member function.
4519 (traverse_enum_types): Convert to...
4520 (rtx_reader::traverse_enum_types): ...member function.
4521 (rtx_reader::rtx_reader): Move initializations
4522 of various former global data from rtx_reader::read_md_files to
4523 here, as fields, along with the call to unlock_std_streams.
4524 (rtx_reader::~rtx_reader): Clean up m_base_dir, and clean up
4526 (rtx_reader::read_md_files): Move initializations of various
4527 global data from here to the ctor.
4528 * read-md.h (read_name): Convert to...
4529 (rtx_reader::read_name): ...member function.
4530 (rtx_reader::read_escape): New method decl.
4531 (read_quoted_string): Convert to...
4532 (rtx_reader::read_quoted_string): ...member function.
4533 (rtx_reader::read_braced_string): New method decl.
4534 (read_string): Convert to...
4535 (rtx_reader::read_string): ...member function.
4536 (rtx_reader::read_skip_construct): New method decl.
4537 (rtx_reader::set_md_ptr_loc): New method decl.
4538 (rtx_reader::get_md_ptr_loc): New method decl.
4539 (copy_md_ptr_loc): Convert to...
4540 (rtx_reader::copy_md_ptr_loc): ...member function.
4541 (fprint_md_ptr_loc): Convert to...
4542 (rtx_reader::fprint_md_ptr_loc): ...member function.
4543 (print_md_ptr_loc): Convert to...
4544 (rtx_reader::print_md_ptr_loc): ...member function.
4545 (rtx_reader::lookup_enum_type): New method decl.
4546 (rtx_reader::traverse_enum_types): New method decl.
4547 (rtx_reader::handle_constants): New method decl.
4548 (traverse_md_constants): Convert to...
4549 (rtx_reader::traverse_md_constants): ...member function.
4550 (rtx_reader::handle_enum): New method decl.
4551 (rtx_reader::join_c_conditions): New method decl.
4552 (fprint_c_condition): Convert to...
4553 (rtx_reader::fprint_c_condition): ...member function.
4554 (print_c_condition): Convert to...
4555 (rtx_reader::print_c_condition): ...member function.
4556 (rtx_reader::apply_iterator_to_string): New method decl.
4557 (rtx_reader::copy_rtx_for_iterators): New method decl.
4558 (rtx_reader::read_conditions): New method decl.
4559 (rtx_reader::record_potential_iterator_use): New method decl.
4560 (rtx_reader::read_mapping): New method decl.
4561 (rtx_reader::read_rtx): New method decl.
4562 (rtx_reader::read_rtx_code): New method decl.
4563 (rtx_reader::read_rtx_operand): New method decl.
4564 (rtx_reader::read_nested_rtx): New method decl.
4565 (rtx_reader::read_rtx_variadic): New method decl.
4566 (rtx_reader::get_string_obstack): New method.
4567 (rtx_reader::get_md_constants): New method.
4568 (string_obstack): Convert global variable decl to...
4569 (rtx_reader::m_string_obstack): ...this new field.
4570 (rtx_reader::m_ptr_locs): New field.
4571 (rtx_reader::m_ptr_loc_obstack): New field.
4572 (rtx_reader::m_joined_conditions): New field.
4573 (rtx_reader::m_joined_conditions_obstack): New field.
4574 (rtx_reader::m_md_constants): New field.
4575 (rtx_reader::m_enum_types): New field.
4576 * read-rtl.c (apply_iterator_to_string): Convert to...
4577 (rtx_reader::apply_iterator_to_string): ...member function.
4578 (copy_rtx_for_iterators): Convert to...
4579 (rtx_reader::copy_rtx_for_iterators): ...member function.
4580 (add_condition_to_string): Use rtx_reader_ptr for
4581 calls join_c_conditions.
4582 (apply_iterators): Use rtx_reader_ptr for calls to
4583 join_c_conditions and copy_rtx_for_iterators.
4584 (read_conditions): Convert to...
4585 (rtx_reader::read_conditions): ...member function.
4586 (record_potential_iterator_use): Convert to...
4587 (rtx_reader::record_potential_iterator_use): ...member function.
4588 (read_mapping): Convert to...
4589 (rtx_reader::read_mapping): ...member function.
4590 (read_subst_mapping): Use rtx_reader_ptr for read_string call.
4591 (read_rtx): Convert to...
4592 (rtx_reader::read_rtx): ...member function.
4593 (read_rtx_code): Convert to...
4594 (rtx_reader::read_rtx_code): ...member function.
4595 (read_rtx_operand): Convert to...
4596 (rtx_reader::read_rtx_operand): ...member function. Update for move
4597 of string_obstack to a field.
4598 (read_nested_rtx): Convert to..
4599 (rtx_reader::read_nested_rtx): ...member function.
4600 (read_rtx_variadic): Convert to..
4601 (rtx_reader::read_rtx_variadic): ...member function.
4603 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
4605 * tree-vrp.c (get_value_range): Check get_ptr_nonnull.
4607 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
4609 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Set value range
4610 for pointer type too.
4611 (ipcp_update_vr): set_ptr_nonnull for pointer.
4613 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
4615 * tree-ssa-alias.h (pt_solution_singleton_or_null_p): Renamed from
4616 pt_solution_singleton_p.
4617 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use renamed
4618 pt_solution_singleton_or_null_p from pt_solution_singleton_p.
4619 * tree-ssa-structalias.c (find_what_p_points_to): Preserve
4620 pointer nonnull computed by VRP.
4621 Also Conservatively set pt.null to 1.
4622 (pt_solution_reset): Conservatively set pt.null to 1.
4623 (pt_solution_singleton_or_null_p): Renamed from
4624 pt_solution_singleton_p.
4625 * tree-ssanames.h (set_ptr_nonnull): Declare.
4626 (get_ptr_nonnull): Likewise.
4627 * tree-ssanames.c (set_ptr_nonnull): New.
4628 (get_ptr_nonnull): Likewise.
4629 * tree-vrp.c (vrp_finalize): Set ptr that are nonnull.
4630 (evrp_dom_walker::before_dom_children): Likewise.
4632 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
4634 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
4635 * config/i386/i386.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
4636 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
4637 * config/ia64/ia64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
4638 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to.
4639 * config/rs6000/rs6000.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
4640 (rs6000_option_override_internal): Clear it if ABI_AIX.
4641 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
4642 * config/sparc/sparc.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ... here.
4644 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4646 * gimple-ssa-strength-reduction.c (record_increment): Remove
4649 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
4651 * expmed.c (expand_shift_1): Add MAY_FAIL parameter and do not assert
4652 that the result is non-zero if it is true.
4653 (maybe_expand_shift): New wrapper around expand_shift_1.
4654 (emit_store_flag): Call maybe_expand_shift in lieu of expand_shift.
4656 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4658 PR tree-optimization/77916
4659 * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge):
4660 Don't allow a MINUS_EXPR for pointer arithmetic for either known
4662 (record_increment): Increments of -1 for unknown strides just use
4663 a multiply initializer like other negative values.
4664 (analyze_increments): Remove stopgap solution for -1 increment
4665 applied to pointer arithmetic.
4667 2016-10-17 Yuri Rumyantsev <ysrumyan@gmail.com>
4669 * dominance.c (dom_info::dom_info): Add new constructor for region
4670 which is vector of basic blocks.
4671 (dom_init): New method to initialize members common for both
4673 (dom_info::dom_info): Invoke dom_init for partial initialization.
4674 (dom_info::get_idom): Add check to corner cases on basic blocks which
4676 (dom_info::calc_dfs_tree): Check M_FAKE_EXIT_EDGE instead of M_REVERSE
4677 to detect unreachable bbs.
4678 (dom_info::calc_idoms): Likewise.
4679 (compute_dom_fast_query_in_region): New function.
4680 (calculate_dominance_info_for_region): Likewise.
4681 (free_dominance_info_for_region): Likewise.
4682 * dominance.h: Add prototypes for introduced region-based functions
4683 tree-if-conv.c: (build_region): New function.
4684 (if_convertible_loop_p_1): Invoke local version of post-dominators
4685 calculation before basic block predication with subsequent freeing
4686 post-dominator info.
4687 (tree_if_conversion): Remove free of post-dominator info
4688 (pass_if_conversion::execute): Delete detection of infinite loops
4689 and fake edges to exit block since post-dominator calculation is
4690 performed per if-converted loop only.
4692 2016-10-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
4695 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
4696 register explicitly.
4697 * config/arm/arm.md (ashldi3, ashrdi3, lshrdi3): Don't FAIL if
4698 optimizing for size.
4700 2016-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4702 * config/aarch64/aarch64.c: Delete inclusion of
4703 cortex-a57-fma-steering.h.
4704 (aarch64_override_options): Delete call
4705 to aarch64_register_fma_steering.
4706 * config/aarch64/aarch64-protos.h (make_pass_fma_steering): Declare.
4707 * config/aarch64/cortex-a57-fma-steering.h: Delete.
4708 * config/aarch64/aarch64-passes.def: New file.
4709 * config/aarch64/cortex-a57-fma-steering.c
4710 (aarch64_register_fma_steering): Delete definition.
4711 (make_pass_fma_steering): Remove static qualifier.
4712 * config/aarch64/t-aarch64 (PASSES_EXTRA): New directive.
4713 (cortex-a57-fma-steering.o): Remove dependency on
4714 cortex-a57-fma-steering.h.
4716 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
4718 * explow.c (validize_mem): Do not modify the argument in-place.
4720 2016-10-17 Thomas Schwinge <thomas@codesourcery.com>
4722 * tree-streamer.c (record_common_node): Explicitly list expected
4725 2016-10-17 Richard Biener <rguenther@suse.de>
4727 PR tree-optimization/77988
4728 * tree-vrp.c (remove_range_assertions): Use replace_uses_by.
4730 2016-10-17 Marek Polacek <polacek@redhat.com>
4732 * Makefile.in (C_COMMON_OBJS): Add c-family/c-attribs.o.
4734 2016-10-17 Richard Biener <rguenther@suse.de>
4736 * bb-reorder.c (reorder_basic_blocks_simple): Clear BB_VISITED
4739 2016-10-17 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4741 PR tree-optimization/71636
4742 * match.pd (x & ((1 << b) - 1) -> x & ~(~0 << b)): New pattern.
4744 2016-10-17 Richard Biener <rguenther@suse.de>
4746 * gimplify.c (gimplify_function_tree): Do not move the outer
4749 2016-10-17 Jakub Jelinek <jakub@redhat.com>
4751 * langhooks.h (struct lang_hooks_for_decls): Remove
4752 function_decl_explicit_p, function_decl_deleted_p and
4753 function_decl_defaulted hooks. Add decl_dwarf_attribute hook.
4754 * langhooks-def.h (lhd_decl_dwarf_attribute): Declare.
4755 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
4756 LANG_HOOKS_FUNCTION_DECL_DELETED_P,
4757 LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Remove.
4758 (LANG_HOOKS_DECL_DWARF_ATTRIBUTE): Define.
4759 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
4760 LANG_HOOKS_FUNCTION_DECL_DELETED_P and
4761 LANG_HOOKS_FUNCTION_DECL_DEFAULTED. Add
4762 LANG_HOOKS_DECL_DWARF_ATTRIBUTE.
4763 * langhooks.c (lhd_decl_dwarf_attribute): New function.
4764 * dwarf2out.c (gen_subprogram_die): Use
4765 lang_hooks.decls.decl_dwarf_attribute instead of
4766 lang_hooks.decls.function_decl_*.
4768 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
4772 * common.opt (-ftrampolines): New option.
4773 * doc/invoke.texi (Code Gen Options): Document it.
4774 * doc/tm.texi.in (Trampolines): Add TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
4775 * doc/tm.texi: Regenerate.
4776 * builtins.def: Add init_descriptor and adjust_descriptor.
4777 * builtins.c (expand_builtin_init_trampoline): Do not issue a warning
4778 on platforms with descriptors.
4779 (expand_builtin_init_descriptor): New function.
4780 (expand_builtin_adjust_descriptor): Likewise.
4781 (expand_builtin) <BUILT_IN_INIT_DESCRIPTOR>: New case.
4782 <BUILT_IN_ADJUST_DESCRIPTOR>: Likewise.
4783 * calls.c (prepare_call_address): Remove SIBCALLP parameter and add
4784 FLAGS parameter. Deal with indirect calls by descriptor and adjust.
4785 Set STATIC_CHAIN_REG_P on the static chain register, if any.
4786 (call_expr_flags): Set ECF_BY_DESCRIPTOR for calls by descriptor.
4787 (expand_call): Likewise. Move around call to prepare_call_address
4788 and pass all flags to it.
4789 * cfgexpand.c (expand_call_stmt): Reinstate CALL_EXPR_BY_DESCRIPTOR.
4790 * gimple.h (enum gf_mask): New GF_CALL_BY_DESCRIPTOR value.
4791 (gimple_call_set_by_descriptor): New setter.
4792 (gimple_call_by_descriptor_p): New getter.
4793 * gimple.c (gimple_build_call_from_tree): SetCALL_EXPR_BY_DESCRIPTOR.
4794 (gimple_call_flags): Deal with GF_CALL_BY_DESCRIPTOR.
4795 * langhooks.h (struct lang_hooks): Add custom_function_descriptors.
4796 * langhooks-def.h (LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS): Define.
4797 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS.
4798 * rtl.h (STATIC_CHAIN_REG_P): New macro.
4799 * rtlanal.c (find_first_parameter_load): Skip static chain registers.
4800 * target.def (custom_function_descriptors): New POD hook.
4801 * tree.h (FUNC_ADDR_BY_DESCRIPTOR): New flag on ADDR_EXPR.
4802 (CALL_EXPR_BY_DESCRIPTOR): New flag on CALL_EXPR.
4803 * tree-core.h (ECF_BY_DESCRIPTOR): New mask.
4804 Document FUNC_ADDR_BY_DESCRIPTOR and CALL_EXPR_BY_DESCRIPTOR.
4805 * tree.c (make_node_stat) <tcc_declaration>: Use FUNCTION_ALIGNMENT.
4806 (build_common_builtin_nodes): Initialize init_descriptor and
4808 * tree-nested.c: Include target.h.
4809 (struct nesting_info): Add 'any_descr_created' field.
4810 (get_descriptor_type): New function.
4811 (lookup_element_for_decl): New function extracted from...
4812 (create_field_for_decl): Likewise.
4813 (lookup_tramp_for_decl): ...here. Adjust.
4814 (lookup_descr_for_decl): New function.
4815 (convert_tramp_reference_op): Deal with descriptors.
4816 (build_init_call_stmt): New function extracted from...
4817 (finalize_nesting_tree_1): ...here. Adjust and deal with descriptors.
4818 * defaults.h (FUNCTION_ALIGNMENT): Define.
4819 (TRAMPOLINE_ALIGNMENT): Set to above instead of FUNCTION_BOUNDARY.
4820 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
4821 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
4822 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS):Likewise.
4823 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
4825 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
4827 * config/sparc/sparc.c (sparc_expand_vector_init): Only accept literal
4828 constants in CONST_VECTORs.
4830 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
4832 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use a scratch
4833 register as destination of bmask.
4834 (vector_init_bshuffle): Likewise.
4835 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
4836 (bmaskdi_vis): Enable only in 64-bit mode.
4838 2016-10-15 Segher Boessenkool <segher@kernel.crashing.org>
4840 * config/rs6000/rs6000.c (rs6000_get_separate_components): Do not
4841 make LR a separately shrink-wrapped component unless savres_strategy
4842 contains all of {SAVE,REST}_INLINE_{GPRS,FPRS,VRS}. Do not wrap
4843 GPRs unless both {SAVE,REST}_INLINE_GPRS. Do not disallow all
4844 wrapping when not both {SAVE,REST}_INLINE_GPRS.
4846 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
4848 * optabs.c (expand_parity): Fix mode mismatch, add final conversion
4849 and keep looping on failure.
4851 2016-10-14 David Malcolm <dmalcolm@redhat.com>
4853 * print-rtl-function.c (print_edge): Omit "(flags)" when none are
4855 (print_rtx_function): Update example in comment for...
4856 * print-rtl.c (print_rtx_operand_code_r): In compact mode, print
4857 non-virtual pseudos with a '%' sigil followed by the regno, offset
4858 by (LAST_VIRTUAL_REGISTER + 1), so that the first non-virtual
4859 pseudo is dumped as "%0".
4861 2016-10-14 Jakub Jelinek <jakub@redhat.com>
4864 * expr.c (expand_expr_real_1) <case CONST_DECL>: For EXPAND_WRITE
4867 2016-10-14 Eric Botcazou <ebotcazou@adacore.com>
4869 * config/sparc/sparc-passes.def: New file.
4870 * config/sparc/t-sparc (PASSES_EXTRA): Add sparc-passes.def.
4871 * config/sparc/sparc-protos.h (make_pass_work_around_errata): New.
4872 * config/sparc/sparc.c (sparc_option_override): Don't register passes.
4874 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
4876 * loop-unroll.c (unroll_loop_runtime_iterations): Condition initial
4877 loop peel to loops with exit test at the beginning.
4879 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
4881 PR rtl-optimization/68212
4882 * cfgloopmanip.c (duplicate_loop_to_header_edge): Use preheader edge
4883 frequency when computing scale factor for peeled copies.
4884 * loop-unroll.c (unroll_loop_runtime_iterations): Fix freq/count
4885 values for switch/peel blocks/edges.
4887 2016-10-14 Pedro Alves <palves@redhat.com>
4889 * coretypes.h (OVERRIDE, FINAL): Delete, moved to include/ansidecl.h.
4891 2016-10-14 Catherine Moore <clm@codesourcery.com>
4893 * config/mips/mips.c (mips_prepare_pch_save): Initialize
4894 micromips_globals to zero.
4896 2016-10-14 Richard Biener <rguenther@suse.de>
4898 PR tree-optimization/77979
4899 * tree-vrp.c (compare_name_with_value): Handle released SSA names
4900 in the equivalency sets.
4901 (compare_names): Likewise.
4903 2016-10-14 Martin Liska <mliska@suse.cz>
4905 * builtins.h(target_char_cst_p): Declare the function.
4906 * builtins.c (fold_builtin_memchr): Remove.
4907 (target_char_cst_p): Move the function from gimple-fold.c.
4908 (fold_builtin_3): Do not call the function.
4909 * gimple-fold.c (gimple_fold_builtin_memchr): New function.
4910 (gimple_fold_builtin): Call the function.
4911 * fold-const-call.c (fold_const_call_1): Handle CFN_BUILT_IN_MEMCHR.
4913 2016-10-14 Martin Liska <mliska@suse.cz>
4915 * builtins.c (fold_builtin_strcmp): Remove function.
4916 (fold_builtin_strncmp): Likewise.
4917 (fold_builtin_2): Remove call of the function.
4918 (fold_builtin_3): Likewise.
4919 * fold-const-call.c (fold_const_call): Add constant folding
4920 for CFN_BUILT_IN_STRCASECMP and CFN_BUILT_IN_STRNCASECMP.
4921 * fold-const-call.h (build_cmp_result): Declare the function.
4922 * gimple-fold.c (gimple_load_first_char): New function.
4923 (gimple_fold_builtin_string_compare): Likewise.
4924 (gimple_fold_builtin): Call the function.
4926 2016-10-14 Nathan Sidwell <nathan@acm.org>
4928 * gcov-io.c (gcov_open): Deconstify 'mode'.
4930 2016-10-14 Martin Liska <mliska@suse.cz>
4932 * fold-const.c (c_getstr): Support of properly \0-terminated
4933 string constants. New argument is added.
4934 * fold-const.h: New argument is added.
4936 2016-10-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4938 * config/aarch64/aarch64.c (aarch64_print_hint_for_core_or_arch):
4940 (aarch64_print_hint_for_core): Likewise.
4941 (aarch64_print_hint_for_arch): Likewise.
4942 (aarch64_validate_march): Use it. Fix indentation in type signature.
4943 (aarch64_validate_mcpu): Use aarch64_print_hint_for_core_or_arch.
4944 (aarch64_validate_mtune): Likewise.
4945 (aarch64_handle_attr_arch): Likewise.
4946 (aarch64_handle_attr_cpu): Likewise.
4947 (aarch64_handle_attr_tune): Likewise.
4949 2016-10-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4951 * optabs.def: Remove optab function gen_int_libfunc for sdivmod_optab
4954 2016-10-13 Andreas Schwab <schwab@linux-m68k.org>
4956 * config/m68k/m68k.c (m68k_option_override): Check
4957 opt_fstack_limit_symbol_arg and opt_fstack_limit_register_no
4958 instead of stack_limit_rtx.
4960 2016-10-13 Jakub Jelinek <jakub@redhat.com>
4962 * dwarf2out.c (gen_member_die): Handle inline static data member
4965 2016-10-13 Nathan Sidwell <nathan@acm.org>
4967 * gcov-io.c (gcov_open): Fix documentation. Simplify setting
4968 gcov_var.mode. Remove unnecessary fstat.
4970 2016-10-13 Segher Boessenkool <segher@kernel.crashing.org>
4973 * function.c (thread_prologue_and_epilogue_insns): Call all
4974 make_*logue_seq in the same order as traditional. Call them
4975 all a second time if shrink_wrapped_separate.
4977 2016-10-13 Marek Polacek <polacek@redhat.com>
4979 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
4980 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Don't
4983 2016-10-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4985 PR tree-optimization/77937
4986 * gimple-ssa-strength-reduction.c (analyze_increments): Set cost
4987 to infinite when we have a pointer with an increment of -1.
4989 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
4991 * coretypes.h: Move MEMMODEL_* macros and enum memmodel definition
4993 * memmodel.h: This file.
4994 * alias.c, asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
4995 caller-save.c, calls.c, ccmp.c, cfgbuild.c, cfgcleanup.c,
4996 cfgexpand.c, cfgloopanal.c, cfgrtl.c, cilk-common.c, combine.c,
4997 combine-stack-adj.c, common/config/aarch64/aarch64-common.c,
4998 common/config/arm/arm-common.c, common/config/bfin/bfin-common.c,
4999 common/config/c6x/c6x-common.c, common/config/i386/i386-common.c,
5000 common/config/ia64/ia64-common.c, common/config/nvptx/nvptx-common.c,
5001 compare-elim.c, config/aarch64/aarch64-builtins.c,
5002 config/aarch64/aarch64-c.c, config/aarch64/cortex-a57-fma-steering.c,
5003 config/arc/arc.c, config/arc/arc-c.c, config/arm/arm-builtins.c,
5004 config/arm/arm-c.c, config/avr/avr.c, config/avr/avr-c.c,
5005 config/avr/avr-log.c, config/bfin/bfin.c, config/c6x/c6x.c,
5006 config/cr16/cr16.c, config/cris/cris.c, config/darwin-c.c,
5007 config/darwin.c, config/epiphany/epiphany.c,
5008 config/epiphany/mode-switch-use.c,
5009 config/epiphany/resolve-sw-modes.c, config/fr30/fr30.c,
5010 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
5011 config/i386/i386-c.c, config/i386/winnt.c, config/iq2000/iq2000.c,
5012 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
5013 config/m68k/m68k.c, config/mcore/mcore.c,
5014 config/microblaze/microblaze.c, config/mmix/mmix.c,
5015 config/mn10300/mn10300.c, config/moxie/moxie.c,
5016 config/msp430/msp430.c, config/nds32/nds32-cost.c,
5017 config/nds32/nds32-intrinsic.c, config/nds32/nds32-md-auxiliary.c,
5018 config/nds32/nds32-memory-manipulation.c,
5019 config/nds32/nds32-predicates.c, config/nds32/nds32.c,
5020 config/nios2/nios2.c, config/nvptx/nvptx.c, config/pa/pa.c,
5021 config/pdp11/pdp11.c, config/rl78/rl78.c, config/rs6000/rs6000-c.c,
5022 config/rx/rx.c, config/s390/s390-c.c, config/s390/s390.c,
5023 config/sh/sh.c, config/sh/sh-c.c, config/sh/sh-mem.cc,
5024 config/sh/sh_treg_combine.cc, config/sol2.c, config/spu/spu.c,
5025 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
5026 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
5027 config/visium/visium.c, config/vms/vms-c.c, config/xtensa/xtensa.c,
5028 coverage.c, cppbuiltin.c, cprop.c, cse.c, cselib.c, dbxout.c, dce.c,
5029 df-core.c, df-problems.c, df-scan.c, dojump.c, dse.c, dwarf2asm.c,
5030 dwarf2cfi.c, dwarf2out.c, emit-rtl.c, except.c, explow.c, expmed.c,
5031 expr.c, final.c, fold-const.c, function.c, fwprop.c, gcse.c,
5032 ggc-page.c, haifa-sched.c, hsa-brig.c, hsa-gen.c, hw-doloop.c,
5033 ifcvt.c, init-regs.c, internal-fn.c, ira-build.c, ira-color.c,
5034 ira-conflicts.c, ira-costs.c, ira-emit.c, ira-lives.c, ira.c, jump.c,
5035 loop-doloop.c, loop-invariant.c, loop-iv.c, loop-unroll.c,
5036 lower-subreg.c, lra.c, lra-assigns.c, lra-coalesce.c,
5037 lra-constraints.c, lra-eliminations.c, lra-lives.c, lra-remat.c,
5038 lra-spills.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
5039 postreload-gcse.c, postreload.c, predict.c, print-rtl-function.c,
5040 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
5041 reload.c, reload1.c, reorg.c, resource.c, rtl-chkp.c, rtl-tests.c,
5042 rtlanal.c, rtlhooks.c, sched-deps.c, sched-rgn.c, sdbout.c,
5043 sel-sched-ir.c, sel-sched.c, shrink-wrap.c, simplify-rtx.c,
5044 stack-ptr-mod.c, stmt.c, stor-layout.c, target-globals.c,
5045 targhooks.c, toplev.c, tree-nested.c, tree-outof-ssa.c,
5046 tree-profile.c, tree-ssa-coalesce.c, tree-ssa-ifcombine.c,
5047 tree-ssa-loop-ivopts.c, tree-ssa-loop.c, tree-ssa-reassoc.c,
5048 tree-ssa-sccvn.c, tree-vect-data-refs.c, ubsan.c, valtrack.c,
5049 var-tracking.c, varasm.c: Include memmodel.h.
5050 * genattrtab.c (write_header): Include memmodel.h in generated file.
5051 * genautomata.c (main): Likewise.
5052 * gengtype.c (open_base_files): Likewise.
5053 * genopinit.c (main): Likewise.
5054 * genconditions.c (write_header): Include memmodel.h earlier in
5056 * genemit.c (main): Likewise.
5057 * genoutput.c (output_prologue): Likewise.
5058 * genpeep.c (main): Likewise.
5059 * genpreds.c (write_insn_preds_c): Likewise.
5060 * genrecog.c (write_header): Likewise.
5061 * Makefile.in (PLUGIN_HEADERS): Include memmodel.h
5063 2016-10-13 David Malcolm <dmalcolm@redhat.com>
5065 * function-tests.c (selftest::test_expansion_to_rtl): Add "true"
5066 for new "compact" param of print_rtx_function. Check for "cinsn"
5068 * print-rtl-function.c (flag_compact): New decl.
5069 (print_rtx_function): Add param "compact" and use it to set
5070 flag_compact, adding a description of the effect to the leading
5071 comment, and updating the example output.
5072 * print-rtl.c (flag_compact): New variable.
5073 (print_rtx_operand_code_0): Omit the JUMP_LABEL reference in compact
5075 (print_rtx_operand_code_i): When printing source locations, wrap
5076 xloc.file in quotes. Don't print INSN_CODEs in compact mode.
5077 (print_rtx_operand_code_r): Don't print regnos for hard regs and
5078 virtuals in compact mode.
5079 (print_rtx_operand_code_u): Don't print insn UIDs in compact mode,
5080 apart from in LABEL_REFs.
5081 (print_rtx_operand): In case 'w', don't print in hex in compact mode.
5082 Don't print basic block ids in compact mode.
5083 (print_rtx): In compact mode, prefix the code of insns with "c",
5084 only print the INSN_UID of CODE_LABELs, and omit their LABEL_NUSES.
5085 * print-rtl.h (print_rtx_function): Add "compact" param.
5087 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
5089 * arm.h (TARGET_VFP): Delete.
5090 (TARGET_VFPD32): Remove references to TARGET_VFP.
5091 (TARGET_VFP3, TARGET_VFP5): Likewise.
5092 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE): Likewise.
5093 (TARGET_NEON_FP16): Likewise.
5094 (TARGET_FMA): Likewise.
5095 (TARGET_CRYPTO): Likewise.
5096 (TARGET_NEON): Likewise.
5097 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
5098 (FUNCTION_ARG_REGNO_P): Likewise.
5099 * arm.c (arm_option_check_internal): Likewise.
5100 (arm_option_override): Likewise.
5101 (use_return_insn): Likewise.
5102 (arm_function_value_regno_p): Likewise.
5103 (arm_apply_result_size): Likewise.
5104 (use_vfp_abi): Likewise.
5105 (arm_legitimate_address_outer_p): Likewise.
5106 (thumb2_legitimate_address_p): Likewise.
5107 (arm_legitimate_index_p): Likewise.
5108 (thumb2_legitimate_index_p): Likewise.
5109 (arm_legitimate_address): Likewise.
5110 (arm_get_vfp_saved_size): Likewise.
5111 (arm_emit_vfp_multi_reg_pop): Likewise.
5112 (arm_get_frame_offsets): Likewise.
5113 (arm_save_coproc_regs): Likewise.
5114 (arm_hard_regno_mode_ok): Likewise.
5115 (arm_expand_epilogue_apcs_frame): Likewise.
5116 (arm_expand_epilogue): Likewise.
5117 (arm_file_start): Likewise.
5118 (arm_conditional_register_usage): Likewise.
5119 (arm_validize_comparison): Use vfp_compare_operand directly.
5120 * arm-builtins.c (arm_init_builtins): Remove references to TARGET_VFP.
5121 (arm_expand_vfp_builtin): Use TARGET_HARD_FLOAT for detecting
5123 (arm_atomic_assign_expand_fenv): Likewise.
5124 * arm.md (divsf3): Likewise.
5125 (arm_negsi2): Likewise.
5127 (arm_movdi): Likewise.
5128 (arm_movt): Likewise.
5129 (cbranchsf4): Change predicate to vfp_compare_operand.
5130 (cbranchdf4): Change predicate to vfp_compare_operand.
5131 (cstorehf4): Change predicate to vfp_compare_operand.
5132 (cstoresf4): Change predicate to vfp_compare_operand.
5133 (cstoredf4): Change predicate to vfp_compare_operand.
5134 (vfp_pop_multiple_with_writeback): Remove references to TARGET_VFP.
5135 (movhi_insn_arch4, movhi_bytes): Likewise.
5136 * constraints.md (Dt): Likewise.
5138 * iterators.md (SDF): Likewise.
5139 * predicates.md (arm_float_compare_operand): Delete.
5140 (const_double_vcvt_power_of_two_reciprocal): Remove references to
5142 (const_double_vcvt_power_of_two): Likewise.
5143 * thumb2.md thumb2_movsi_insn): Likewise.
5144 * vfp.md (arm_movhi_vfp, thumb2_movhi_vfp): Likewise.
5145 (movhf_vfp): Likewise.
5146 (arm_movsi_vfp, thumb2_movsi_vfp): Likewise.
5147 (movdi_vfp, movdi_vfp_cortexa8): Likewise.
5148 (movsf_vfp, thumb2_movsf_vfp): Likewise.
5149 (movdf_vfp, thumb2_movdf_vfp): Likewise.
5150 (movsfcc_vfp, abssf2_vfp, negsf2_vfp, addsf3_vfp): Likewise.
5151 (subsf3_vfp, divsf3_vfp): Likewise.
5152 (mulsf3_vfp, mulsf3negsf_vfp, negmulsf3_vfp): Likewise.
5153 (mulsf3addsf_vfp, (mulsf3subsf_vfp, mulsf3negsfaddsf_vfp): Likewise.
5154 (mulsf3negsfsubsf_vfp): Likewise.
5155 (truncsisf2_vfp, fixuns_truncsfsi2, floatsisf2_vfp): Likewise.
5156 (floatunssisf2, sqrtsf2_vfp): Likewise.
5157 (movcc_vfp): Likewise.
5158 (cmpsf_split_vfp, cmpsf_trap_split_vfp): Likewise.
5159 (cmpsf_vfp, cmpsf_trap_vfp): Likewise.
5160 (push_multi_vfp): Likewise.
5161 (set_fpscr, get_fpscr): Likewise.
5162 * arm-c.c (arm_cpu_builtins): Unconditionally define __VFP_FP__.
5164 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
5166 * arm.h (TARGET_VFP): Unconditionally define to 1.
5167 (arm_fpu_desc): Remove 'model' field.
5168 (TARGET_FPU_MODEL): Delete.
5169 * arm.c (all_fpus): Don't initialize the model field.
5170 (arm_can_inline_p): Don't check the FPU model.
5171 * arm-fpus.def: Remove redundant model field from all FPU
5174 2016-10-13 Richard Biener <rguenther@suse.de>
5177 * genmatch.c (struct capture): Add value_match member.
5178 (commutate): Preserve value_match.
5179 (lower_opt_convert): Likewise.
5180 (lower_cond): Likewise.
5181 (replace_id): Likewise.
5182 (struct dt_operand): Add value_match member.
5183 (decision_tree::cmp_node): Compare it.
5184 (decision_tree::insert_operand): Honor it when finding and
5185 when appending a DT_MATCH.
5186 (dt_operand::gen_match_op): Generate a type check after
5187 operand_equal_p if ! value_match for both GENERIC and GIMPLE.
5188 (parser::get_internal_capture_id): New helper.
5189 (parser::finish_match_operand): New function lowering @@<id>.
5190 (parser::parse_capture): Parse @@<id> as value-match.
5191 (parser::parse_expr): Use get_internal_capture_id.
5192 (parser::parse_simplify): Call finish_match_operand.
5193 (walk_captures): New helper.
5194 * match.pd (X - (X / Y) * Y -> X % Y): Use value-matching instead
5196 ((X /[ex] A) * A -> X): Likewise.
5197 ((X | Y) ^ X -> Y & ~ X): Handle constants properly by using
5198 convert[12] and value-matching.
5199 ((A | B) & (A | C) -> A | (B & C)): Likewise.
5200 ((X | Y) | Y -> X | Y): Likewise.
5201 ((X ^ Y) ^ Y -> X): Likewise.
5202 (A - (A & B) -> ~B & A): Likewise.
5203 ((T)(P + A) - (T)P -> (T) A): Likewise.
5204 ((T)P - (T)(P + A) -> -(T) A): Likewise.
5205 ((T)(P + A) - (T)(P + B) -> (T)A - (T)B): Likewise.
5206 * doc/match-and-simplify.texi: Amend capture section.
5208 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
5210 * config/arc/arc.md (umul_600): Remove predicated variant.
5211 (umul64_600): Likewise.
5213 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
5215 * config/arc/arc.h (INSN_LENGTH_ALIGNMENT): Change.
5217 2016-10-13 Bin Cheng <bin.cheng@arm.com>
5219 * tree-vect-loop.c (loop_niters_no_overflow): New func.
5220 (vect_transform_loop): Call loop_niters_no_overflow. Pass the
5221 no-overflow information to vect_do_peeling_for_loop_bound and
5222 vect_gen_vector_loop_niters.
5224 2016-10-13 Bin Cheng <bin.cheng@arm.com>
5226 * tree-predcom.c (tree_predictive_commoning_loop): Skip loop that only
5229 2016-10-13 Bin Cheng <bin.cheng@arm.com>
5231 * tree-vect-loop-manip.c (adjust_vec_debug_stmts): Don't release
5232 adjust_vec automatically.
5233 (slpeel_add_loop_guard): Remove param cond_expr_stmt_list. Rename
5234 param exit_bb to guard_to.
5235 (slpeel_checking_verify_cfg_after_peeling):
5236 (set_prologue_iterations):
5237 (create_lcssa_for_virtual_phi): New func which is factored out from
5238 slpeel_tree_peel_loop_to_edge.
5239 (slpeel_tree_peel_loop_to_edge):
5240 (iv_phi_p): New func.
5241 (vect_can_advance_ivs_p): Call iv_phi_p.
5242 (vect_update_ivs_after_vectorizer): Call iv_phi_p. Directly insert
5243 new gimple stmts in basic block.
5244 (vect_gen_niters_for_prolog_loop): Rename to...
5245 (vect_gen_prolog_loop_niters): ...Rename from. Change parameters and
5246 adjust implementation.
5247 (vect_update_inits_of_drs): Fix code style issue. Convert niters to
5248 sizetype if necessary.
5249 (vect_build_loop_niters): Move to here from tree-vect-loop.c. Change
5250 it to external function.
5251 (vect_gen_scalar_loop_niters, vect_gen_vector_loop_niters): New.
5252 (vect_gen_vector_loop_niters_mult_vf): New.
5253 (slpeel_update_phi_nodes_for_loops): New.
5254 (slpeel_update_phi_nodes_for_guard1): Reimplement.
5255 (find_guard_arg, slpeel_update_phi_nodes_for_guard2): Reimplement.
5256 (slpeel_update_phi_nodes_for_lcssa, vect_do_peeling): New.
5257 * tree-vect-loop.c (vect_build_loop_niters): Move to file
5258 tree-vect-loop-manip.c
5259 (vect_generate_tmps_on_preheader): Delete.
5260 (vect_transform_loop): Rename vectorization_factor to vf. Call
5261 vect_do_peeling instead of vect_do_peeling-* functions.
5262 * tree-vectorizer.h (vect_do_peeling): New decl.
5263 (vect_build_loop_niters, vect_gen_vector_loop_niters): New decls.
5264 (vect_do_peeling_for_loop_bound): Delete.
5265 (vect_do_peeling_for_alignment): Delete.
5267 2016-10-13 Bin Cheng <bin.cheng@arm.com>
5269 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg): Put
5270 duplicated loop after its preheader and after the original loop.
5272 2016-10-13 Bin Cheng <bin.cheng@arm.com>
5274 * tree-vect-loop.c (vect_analyze_loop_2): Check and skip loop if it
5275 has no enough iterations for LOOP_VINFO_PEELING_FOR_GAPS.
5277 2016-10-13 Bin Cheng <bin.cheng@arm.com>
5279 * tree-vect-loop.c (vectorizable_live_operation): Support handling
5280 for live variable outside loop but not in lcssa form.
5282 2016-10-13 Bin Cheng <bin.cheng@arm.com>
5284 * cfg.c (reset_original_copy_tables): New func.
5285 * cfg.h (reset_original_copy_tables): New decl.
5287 2016-10-13 Jakub Jelinek <jakub@redhat.com>
5290 * tree.h (FALLTHROUGH_LABEL_P): Use private_flag instead of
5292 * varasm.c (default_binds_local_p_3): Formatting fix.
5294 2016-10-13 Bin Cheng <bin.cheng@arm.com>
5296 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Fix code
5298 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
5299 Remove useless code.
5301 2016-10-13 Martin Liska <mliska@suse.cz>
5303 PR tree-optimization/77943
5304 * tree-ssa-tail-merge.c (merge_stmts_p): Do not merge BBs with
5305 a different EH landing pads.
5307 2016-10-13 Jakub Jelinek <jakub@redhat.com>
5310 * hooks.h (hook_tree_void_null): Declare.
5311 * hooks.c (hook_tree_void_null): New function.
5312 * langhooks.c (lhd_return_null_tree_v): Remove.
5313 * langhooks-def.h (lhd_return_null_tree_v): Remove.
5314 * cfgexpand.c (stack_protect_prologue): If guard_decl is NULL,
5315 set y to const0_rtx.
5316 * function.c (stack_protect_epilogue): Likewise.
5317 * config/tilepro/tilepro.c (TARGET_STACK_PROTECT_GUARD): Redefine
5318 if TARGET_THREAD_SSP_OFFSET is defined.
5319 * config/s390/s390.c (TARGET_STACK_PROTECT_GUARD): Likewise.
5320 * config/sparc/sparc.c (TARGET_STACK_PROTECT_GUARD): Likewise.
5321 * config/tilegx/tilegx.c (TARGET_STACK_PROTECT_GUARD): Likewise.
5322 * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Likewise.
5323 * config/i386/i386.c (TARGET_STACK_PROTECT_GUARD): Likewise.
5324 (ix86_stack_protect_guard): New function.
5326 2016-10-13 Richard Biener <rguenther@suse.de>
5328 * dwarf2out.c (tree_add_const_value_attribute): Do not try
5329 rtl_for_decl_init during early phase.
5330 (gen_variable_die): Do not create locations during early phase.
5331 (gen_label_die): Likewise.
5332 (decls_for_scope): Do not waste time handling BLOCK_NONLOCALIZED_VARs
5335 2016-10-12 Richard Biener <rguenther@suse.de>
5337 * tree-vrp.c (evrp_dom_walker::try_find_new_range): Renamed from
5338 try_add_new_range and made to eturn new range.
5339 (evrp_dom_walker::before_dom_children): Push op1 value range before
5340 pushing op0 value range.
5342 2016-10-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5344 PR tree-optimization/77937
5345 * gimple-ssa-strength-reduction.c (analyze_increments): Use
5346 POINTER_TYPE_P on the candidate type to determine whether
5347 candidates in this chain require pointer arithmetic.
5349 2016-10-12 Eric Botcazou <ebotcazou@adacore.com>
5351 * config/visium/visium.c (visium_gimplify_va_arg): Emit a big-endian
5352 correction if the type is smaller than a word.
5353 (visium_select_cc_mode): Add ... fall through ... comment.
5355 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
5357 * config/rs6000/rs6000.c (machine_function): Add new fields
5358 gpr_is_wrapped_separately and lr_is_wrapped_separately.
5359 (TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS,
5360 TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB,
5361 TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS,
5362 TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS,
5363 TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS,
5364 TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS): Define.
5365 (rs6000_get_separate_components): New function.
5366 (rs6000_components_for_bb): New function.
5367 (rs6000_disqualify_components): New function.
5368 (rs6000_emit_prologue_components): New function.
5369 (rs6000_emit_epilogue_components): New function.
5370 (rs6000_set_handled_components): New function.
5371 (rs6000_emit_prologue): Don't emit LR save if lr_is_wrapped_separately.
5372 Don't emit GPR saves if gpr_is_wrapped_separately for that register.
5373 (restore_saved_lr): Don't restore LR if lr_is_wrapped_separately.
5374 (rs6000_emit_epilogue): Don't emit GPR restores if
5375 gpr_is_wrapped_separately for that register. Don't make a
5376 REG_CFA_RESTORE note for registers we did not restore, either.
5378 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
5380 * function.c (thread_prologue_and_epilogue_insns): Call
5381 try_shrink_wrapping_separate. Compute the prologue_seq afterwards,
5382 if it has possibly changed. Compute the split_prologue_seq and
5383 epilogue_seq later, too.
5384 * shrink-wrap.c: #include cfgbuild.h and insn-config.h.
5385 (dump_components): New function.
5386 (struct sw): New struct.
5388 (init_separate_shrink_wrap): New function.
5389 (fini_separate_shrink_wrap): New function.
5390 (place_prologue_for_one_component): New function.
5391 (spread_components): New function.
5392 (disqualify_problematic_components): New function.
5393 (emit_common_heads_for_components): New function.
5394 (emit_common_tails_for_components): New function.
5395 (insert_prologue_epilogue_for_components): New function.
5396 (try_shrink_wrapping_separate): New function.
5397 * shrink-wrap.h: Declare try_shrink_wrapping_separate.
5399 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
5401 * regrename.c (build_def_use): Invalidate chains that have a
5402 REG_CFA_RESTORE on some instruction.
5404 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
5406 * dce.c (delete_unmarked_insns): Don't delete instructions with
5407 a REG_CFA_RESTORE note.
5409 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
5411 * common.opt (-fshrink-wrap-separate): New flag.
5412 * doc/invoke.texi: Document it.
5413 * doc/tm.texi.in (Shrink-wrapping separate components): New subsection.
5414 * doc/tm.texi: Regenerate.
5415 * emit-rtl.h (struct rtl_data): New field shrink_wrapped_separate.
5416 * target.def (shrink_wrap): New hook vector.
5417 (get_separate_components, components_for_bb, disqualify_components,
5418 emit_prologue_components, emit_epilogue_components,
5419 set_handled_components): New hooks.
5421 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
5423 * config/rs6000/rs6000.c (rs6000_return_in_memory): Warn for
5424 vector return by reference only if -Wpsabi.
5425 (rs6000_pass_by_reference): Similarly, for argument passing.
5427 2016-10-12 David Malcolm <dmalcolm@redhat.com>
5429 * function-tests.c: Include "print-rtl.h".
5430 (selftest::test_expansion_to_rtl): Call print_rtx_function on the
5431 function, and verify what is dumped.
5432 * print-rtl-function.c (print_edge): New function.
5433 (begin_any_block): New function.
5434 (end_any_block): New function.
5435 (can_have_basic_block_p): New function.
5436 (print_rtx_function): Track the basic blocks of insns in the
5437 chain, wrapping those that are within blocks within "(block)"
5438 directives. Remove the "(cfg)" directive.
5440 2016-10-12 David Malcolm <dmalcolm@redhat.com>
5442 * selftest.c (selftest::read_file): New function.
5443 (selftest::test_read_file): New function.
5444 (selftest::selftest_c_tests): Call test_read_file.
5445 * selftest.h (selftest::read_file): New decl.
5447 2016-10-12 Richard Biener <rguenther@suse.de>
5450 * cgraphunit.c (analyze_functions): Preserve cgraph nodes
5453 2016-10-12 Thomas Schwinge <thomas@codesourcery.com>
5455 * lto-streamer.c: Fix LTO_STREAMER_DEBUG build.
5457 * dwarf2out.c (dwarf2_lineno_debug_hooks): Use
5458 dwarf2out_assembly_start.
5460 * Makefile.in (SELFTEST_FLAGS): Add -nostdinc.
5462 * Makefile.in (SELFTEST_FLAGS): New variable.
5463 (s-selftest, selftest-gdb, selftest-valgrind): Use it.
5465 * vmsdbgout.c (vmsdbg_debug_hooks): Add filename parameter to
5468 2016-10-12 Georg-Johann Lay <avr@gjlay.de>
5470 * rtl.h (struct rtx_def): Comment how RTX_FLAGS will be
5471 dumped in RTL dumps.
5473 2016-10-12 Martin Liska <mliska@suse.cz>
5475 * gimple-fold.c (create_tmp_reg_or_ssa_name): New function.
5476 (gimple_fold_builtin_memory_op): Use the function.
5477 (gimple_fold_builtin_strchr): Likewise.
5478 (gimple_fold_builtin_strcat): Likewise.
5479 (gimple_build): Likewise.
5481 2016-10-12 Nathan Sidwell <nathan@acm.org>
5483 * diagnostic.c (diagnostc_report_diagnostic): Fix formatting.
5485 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
5487 * dwarf2out.c (int_loc_descriptor): Generate opcodes for another
5488 equivalent 32-bit constant (modulo 2**32) when that yields
5489 smaller instructions.
5490 (size_of_int_loc_descriptor): Update accordingly.
5492 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
5494 * dwarf2out.c (dwarf2out_early_global_decl): For nested
5495 functions, call dwarf2out_decl on the parent function first.
5497 2016-10-12 Richard Biener <rguenther@suse.de>
5499 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary constraint
5502 2016-10-12 Richard Biener <rguenther@suse.de>
5504 * tree-ssa-propagate.c
5505 (substitute_and_fold_dom_walker::before_dom_children): Do not
5506 ignore ASSERT_EXPRs but only preserve them.
5507 * tree-vrp.c (remove_range_assertions): Deal with ASSERT_EXPRs
5508 that have been propagated into.
5509 (vrp_finalize): Enable DCE for substitute_and_fold.
5511 2016-10-12 Richard Biener <rguenther@suse.de>
5513 PR tree-optimization/77920
5514 * tree-vrp.c (simplify_div_or_mod_using_ranges): Simplify.
5515 (simplify_min_or_max_using_ranges): Pass in gsi and use it.
5516 (simplify_abs_using_ranges): Likewise.
5517 (simplify_conversion_using_ranges): Likewise.
5518 (simplify_stmt_using_ranges): Adjust.
5520 2016-10-12 Jakub Jelinek <jakub@redhat.com>
5522 PR tree-optimization/77929
5523 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Handle
5524 (*ops)[ranges[i].idx]->op != ranges[i].exp case.
5526 2016-10-12 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
5529 * config/rs6000/vmx.md (vsx_concat_<mode>): The mtvsrdd instruction
5530 needs a base register for arg 1.
5532 2016-10-12 Jakub Jelinek <jakub@redhat.com>
5534 * common.opt (Wimplicit-fallthrough) Turn into alias to
5535 -Wimplicit-fallthrough=3. Remove EnabledBy.
5536 (Wimplicit-fallthrough=): New option.
5537 * gimplify.c (warn_implicit_fallthrough_r): Use
5538 OPT_Wimplicit_fallthrough_ instead of OPT_Wimplicit_fallthrough.
5539 * doc/invoke.texi (-Wimplicit-fallthrough): Document as alias
5540 to -Wimplicit-fallthrough=3.
5541 (-Wimplicit-fallthrough=): Document.
5543 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
5545 * config/sparc/sparc.c (emit_scc_insn): Remove direct support for EQ
5546 and GEU in DImode if TARGET_SUBXC.
5547 * config/sparc/sparc.md (seqdi<W:mode>_zero): Remove TARGET_SUBXC.
5548 (seqdi<W:mode>_zero_subxc): Delete.
5549 (neg_seqdi<W:mode>_zero): Remove TARGET_VIS3.
5550 (neg_seqdi<W:mode>_zero_vis3): Delete.
5551 (plus_seqdi<W:mode>_zero): Likewise.
5552 (minus_seqdi<W:mode>_zero): Likewise.
5553 (plus_plus_sltu<W:mode>): Accept only register.
5554 (addx<W:mode>): Likewise.
5555 (plus_sltu<W:mode>_vis3): Likewise.
5556 (plus_plus_sltu<W:mode>_vis3): Likewise.
5557 (neg_sgeu<W:mode>_vis3): Delete.
5558 (minus_sgeu<W:mode>_vis3): Likewise.
5559 (addxc<W:mode>): Accept only registers.
5560 (neg_sltu<W:mode>_subxc): Write %%g0 instead of 0.
5561 (minus_neg_sltu<W:mode>_subxc): Accept only register.
5562 (neg_plus_sltu<W:mode>_subxc): Likewise.
5563 (minus_sltu<W:mode>_subxc): Write %%g0 instead of 0.
5564 (minus_minus_sltu<W:mode>_subxc): Accept only register.
5565 (sgeu<W:mode>_insn_subxc): Delete.
5566 (plus_sgeu<W:mode>_subxc): Likewise.
5567 (subxc<W:mode>): Accept only register.
5568 (scc splitter): Split always GEU again.
5570 2016-10-11 Jeff Law <law@redhat.com>
5572 PR tree-optimization/77424
5573 * tree-ssa-threadupdate.c (thread_through_all_blocks): Remove
5574 dead conditionals. Assert that all e->aux fields are NULL.
5576 2016-10-11 David Malcolm <dmalcolm@redhat.com>
5578 * print-rtl.c (print_rtx): Rename "i" to "idx". Split out the
5579 operand-printing "switch" statement into...
5580 (print_rtx_operand_code_0): ...this new function, ...
5581 (print_rtx_operand_code_e): ...this new function, ...
5582 (print_rtx_operand_codes_E_and_V): ...this new function, ...
5583 (print_rtx_operand_code_i): ...this new function, ...
5584 (print_rtx_operand_code_r): ...this new function, ...
5585 (print_rtx_operand_code_u): ...this new function, ...
5586 (print_rtx_operand): ...and this new function.
5588 2016-10-11 Uros Bizjak <ubizjak@gmail.com>
5590 * config/alpha/alpha-passes.def: New file.
5591 * config/alpha/t-alpha: New file.
5592 * config/alpha/alpha-protos.h (gcc::context, rtl_opt_pass): Declare.
5593 (make_pass_handle_trap_shadows): New prototype.
5594 (make_pass_align_insns): Ditto.
5595 * config/alpha/alpha.c (alpha_option_override): Don't register
5597 * config.gcc (alpha*-*-*) Add alpha/t-alpha to tmake_file.
5599 2016-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
5602 * config/rs6000/rs6000.c (rs6000_init_builtins): Only create the
5603 distinct __ibm128 IBM extended double type if long doubles are
5604 128-bits and the default format for long double is IEEE 128-bit.
5606 2016-10-11 Richard Biener <rguenther@suse.de>
5608 * dwarf2out.c (DEBUG_STR_OFFSETS_SECTION): Remove conditional.
5609 (init_sections_and_labels): Use DEBUG_DWO_STR_OFFSETS_SECTION.
5610 (verify_die): New function.
5611 (dwarf2out_finish): Call it.
5612 (output_line_info): Handle case of -gsplit-dwarf without
5613 DWARF2_ASM_LINE_DEBUG_INFO.
5615 2016-10-11 Richard Biener <rguenther@suse.de>
5618 * gimple-low.c (lower_gimple_bind): Handle arbitrary common
5619 sub-chains of BLOCK_VARS and gimple_bind_vars.
5621 2016-10-11 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
5623 * config/i386/znver1.md : Fix imov/imovx load type reservations.
5625 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
5627 * config/sparc/sparc.opt (msubxc): New option.
5628 * doc/invoke.texi (SPARC options): Document it and tidy up.
5629 * doc/tm.texi.in (Condition Codes): Adjust SPARC example.
5630 * doc/tm.texi: Regenerate.
5631 * config/sparc/sparc-modes.def (CC_NOOV): Rename into...
5633 (CCX_NOOV): Rename into...
5637 * config/sparc/predicates.m (fcc_register_operand): Simplify.
5638 (fcc0_register_operand): Likewise.
5639 (icc_register_operand): New.
5640 (icc_or_fcc_register_operand): Simplify.
5641 (nz_comparison_operator): New.
5642 (c_comparison_operator): Likewise.
5643 (noov_compare_operator): Rename into...
5644 (icc_comparison_operator): ...this. Use above predicates.
5645 (noov_compare64_operator): Rename into...
5646 (v9_comparison_operator): ...this and tidy up.
5647 (fcc_comparison_operator): New.
5648 (icc_or_fcc_comparison_operator): Likewise.
5649 (v9_register_compare_operator): Rename info...
5650 (v9_register_comparison_operator): ...this.
5651 * config/sparc/sparc.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
5652 (sparc_option_override): Remove redundant VIS masks and add MASK_SUBXC
5654 (sparc_fixed_condition_code_regs): New function.
5655 (select_cc_mode): Remove ATTRIBUTE_UNUSED. Adjust for CCNZ/CCXNZ
5656 renaming and add support for CCC/CCXC.
5657 (output_cbranch): Likewise.
5658 (sparc_print_operand): Likewise.
5659 (gen_v9_scc): Remove obsolete assertion.
5660 (emit_scc_insn): Emit RTL directly for EQ and NE. Add direct support
5661 for EQ in DImode if TARGET_SUBXC. Remove test on TARGET_VIS3 for GEU.
5662 (output_cbcond): Remove bogus handling of CC modes.
5663 (sparc_register_move_cost): Return 100 for NO_REGS.
5664 * config/sparc/sparc.md (W): New mode iterator.
5665 (length): Adjust for noov_compare64_operator renaming.
5666 (cmpsi_sne): New instruction.
5667 (cmpdi_sne): Likewise.
5668 (seqdi_special): Delete.
5669 (seqdi_special): Likewise.
5670 (snesi<P:mode>_special): Likewise.
5671 (snedi_special): Likewise.
5672 (snedi_special_vis3): Likewise.
5673 (snesi patterns): Use W iterator.
5674 (snedi patterns): Likewise. Add TARGET_SUBXC patterns.
5675 (sltu patterns): Likewise.
5676 (sgeu patterns): Likewise.
5677 (scc splitter): Do not split GEU in DImode if TARGET_SUBXC.
5678 (normal_branch): Use icc_comparison_operator predicate.
5679 (inverted_branch): Likewise.
5680 (cbcond_sp32): Use comparison_operator predicate.
5681 (cbcond_sp64): Likewise.
5682 (normal_int_branch_sp64): Adjust for renaming
5683 (inverted_int_branch_sp64): Likewise.
5684 (mov<I:mode>_cc_reg_sp64): Likewise.
5685 (movsf_cc_reg_sp6): Likewise.
5686 (movdf_cc_reg_sp64): Likewise.
5687 (movtf_cc_reg_hq_sp64): Likewise.
5688 (movtf_cc_reg_sp64): Likewise.
5689 (mov<I:mode>_cc_v9): Use icc_or_fcc_comparison_operator predicate.
5690 (movsf_cc_v9): Likewise.
5691 (movdf_cc_v9): Likewise.
5692 (movtf_cc_hq_v9): Likewise.
5693 (movtf_cc_v9): Likewise.
5694 (adddi3): Call gen_adddi3_sp32.
5695 (adddi3_insn_sp32): Rename to...
5696 (adddi3_sp32): ...this. Accept only register_operand as operand #1
5697 and use CCCmode for the carry.
5698 (addx_extend_sp32): Use CCCmode for the carry.
5699 (addx_extend_sp64): Delete.
5700 (adddi3_extend_sp32): Use CCCmode for the carry.
5701 (cmp_plus patterns): Use CCNZ/CCXNZ mode and add C variants.
5702 (subdi3): Call gen_subdi3_sp32.
5703 (subdi3_insn_sp32): Rename to...
5704 (subdi3_sp32): ...this and use CCmode for the carry.
5705 (subx_extend_sp32): Use CCCmode for the carry.
5706 (subx_extend_sp64): Delete.
5707 (subdi3_extend_sp32): Use CCmode for the carry.
5708 (cmp_minus patterns): Use CCNZ/CCXNZ mode and add C variants.
5709 (negdi3): Call gen_negdi3_sp32.
5710 (negdi3_sp32): Use CCCmode for the carry.
5711 (cmp_neg patterns): Use CCNZ/CCXNZ mode and add C variants.
5712 (cmp_nz_ashift_1): Use CCNZ mode.
5713 (cmp_nz_set_ashift_1): Likewise.
5714 (ctrapsi4): Use comparison_operator predicate.
5715 (ctrapdi4): Likewise.
5716 (trapsi_insn): Use icc_comparison_operator predicate.
5717 (trapdi_insn): Likewise.
5718 (edge8 patterns): Use CCNZmode.
5719 (edge16 patterns): Likewise.
5720 (edge32 patterns): Likewise.
5722 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
5724 * config/visium/visium-modes.def (CC_NOOV): Rename into...
5726 (CC_BTST): Rename into...
5728 * config/visium/predicates.md (real_add_operand): New.
5729 (visium_btst_operator): Rename into...
5730 (visium_equality_comparison_operator): ...this.
5731 (visium_noov_operator): Rename into...
5732 (visium_nz_comparison_operator): ...this.
5733 (visium_c_comparison_operator): New.
5734 (visium_branch_operator): Adjust and deal with all CC modes.
5735 * config/visium/visium.c (visium_adjust_cost): Adjust.
5736 (visium_split_double_add): Use the *_set_carry patterns.
5737 (visium_select_cc_mode): Add support for CCC mode and adjust.
5738 (output_cbranch): Adjust and use the carry-based operators for
5739 floating-point comparisons.
5740 * config/visium/visium.md (flags_subst_arith): Adjust.
5741 (addsi3_insn_set_carry): New instruction.
5742 (subsi3_insn_set_carry): Likewise.
5743 (negsi2_insn_set_carry): Likewise.
5745 (cmp<mode>_sne): Likewise.
5746 (cbranch<mode>4): Use ordered_comparison_operator.
5747 (cbranch<mode>4_insn): Likewise.
5748 (cbranchsi4_btst_insn): Adjust.
5750 2016-10-11 Tom de Vries <tom@codesourcery.com>
5753 * builtins.c (std_canonical_va_list_type): Remove RECORD_TYPE
5756 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
5758 * tree.h (build_complex_type): Add second parameter with default.
5759 * tree.c (build_complex_type): Add NAMED second parameter and adjust
5760 recursive call. Create a TYPE_DECL only if NAMED is true.
5761 (build_common_tree_nodes): Pass true in calls to build_complex_type.
5763 2016-10-11 Georg-Johann Lay <avr@gjlay.de>
5765 New avr-passes.def to register AVR specific passes.
5767 * config/avr/avr-passes.def: New file.
5768 * config/avr/t-avr (PASSES_EXTRA): Add avr-passes.def.
5769 * config/avr/avr-protos.h (gcc::context, rtl_opt_pass): Declare.
5770 (make_avr_pass_recompute_note): New proto.
5771 * config/avr/avr.c (make_avr_pass_recompute_notes): New function.
5772 (avr_pass_recompute_notes): Use anonymous namespace.
5773 (avr_register_passes): Remove function...
5774 (avr_option_override): ...and its call.
5776 2016-10-11 Robert Suchanek <robert.suchanek@imgtec.com>
5778 * config/mips/mips-cpus.def: Replace PTF_AVOID_BRANCHLIKELY with
5779 PTF_AVOID_BRANCHLIKELY_ALWAYS for generic architecture and with
5780 PTF_AVOID_BRANCHLIKELY_SPEED for others.
5781 (mips2, mips3, mips4): Add PTF_AVOID_BRANCHLIKELY_SIZE to tune
5783 * config/mips/mips.c (mips_option_override): Enable the branch
5784 likely depending on the tune flags and optimization level.
5785 * config/mips/mips.h (PTF_AVOID_BRANCHLIKELY): Remove.
5786 (PTF_AVOID_BRANCHLIKELY_SPEED): Define.
5787 (PTF_AVOID_BRANCHLIKELY_SIZE): Likewise.
5788 (PTF_AVOID_BRANCHLIKELY_ALWAYS): Likewise.
5790 2016-10-11 Richard Biener <rguenther@suse.de>
5792 * lto-streamer-out.c (collect_block_tree_leafs): New helper.
5793 (output_function): Properly stream the whole block tree.
5794 * lto-streamer-in.c (input_function): Likewise.
5796 2016-10-11 Marek Polacek <polacek@redhat.com>
5798 * Makefile.in (C_COMMON_OBJS): Add c-family/c-warn.o.
5800 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
5802 * tree-vrp.c (evrp_dom_walker::try_add_new_range): New.
5803 (evrp_dom_walker::before_dom_children): Infer and push new value
5804 ranges for x in y < x.
5806 2016-10-10 Joseph Myers <joseph@codesourcery.com>
5809 * config/ia64/ia64.c (ia64_libgcc_floating_mode_supported_p)
5810 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
5811 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Likewise.
5812 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Likewise.
5813 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
5814 (IA64_NO_LIBGCC_TFMODE): Likewise.
5816 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
5818 * tree-vrp.c (vrp_intersect_ranges_1): Allocate bitmap before
5821 2016-10-10 Andreas Tobler <andreast@gcc.gnu.org>
5823 * config.gcc: Add aarch64-*-freebsd* support.
5824 * config.host: Likewise.
5825 * config/aarch64/aarch64-freebsd.h: New file.
5826 * config/aarch64/t-aarch64-freebsd: Ditto.
5828 2016-10-10 Jeff Law <law@redhat.com>
5830 PR tree-optimization/71947
5831 * tree-ssa-dom.c (cprop_into_stmt): Avoid replacing A with B, then
5832 B with A within a single statement.
5834 2016-10-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5836 PR tree-optimization/77824
5837 * gimple-ssa-strength-reduction.c (stmt_cost): Explicitly return
5838 zero cost for copies.
5839 (find_candidates_dom_walker::before_dom_children): Replace
5840 MODIFY_EXPR with SSA_NAME.
5841 (replace_mult_candidate): Likewise.
5842 (replace_profitable_candidates): Likewise.
5844 2016-10-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5846 * config/s390/s390.h: Wrap more macros args in brackets and fix
5848 2016-10-10 Georg-Johann Lay <avr@gjlay.de>
5850 * config/avr/gen-avr-mmcu-texi.c (string.h): Include.
5852 2016-10-10 Andreas Schwab <schwab@suse.de>
5855 * config/ia64/ia64.md ("doloop_end"): Reject if mode of loop
5856 pseudo is not DImode.
5858 2016-10-10 Claudiu Zissulescu <claziss@synopsys.com>
5860 * common/config/arc/arc-common.c (arc_option_optimization_table):
5861 Remove compact casesi option.
5862 * config/arc/arc.c (arc_override_options): Use compact casesi
5863 option only for pre-ARCv2 cores.
5864 * doc/invoke.texi (mcompact-casesi): Update text.
5866 2016-10-09 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
5868 * config/rs6000/rs6000.h (TARGET_EFFICIENT_OVERLAPPING_UNALIGNED):
5869 Add macro to say we can efficiently handle overlapping unaligned
5871 * config/rs6000/rs6000.c (expand_block_compare): Avoid generating
5872 poor code for processors older than p8.
5874 2016-10-09 Eric Botcazou <ebotcazou@adacore.com>
5876 * gen-pass-instances.awk: Remove GNUism.
5878 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5880 * ipa-prop.c (ipcp_transform_function): Set fields m_vr and bits to
5881 NULL of (*ipcp_transformations)][node->uid].
5883 2016-10-09 John David Anglin <danglin@gcc.gnu.org>
5885 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
5886 (MALLOC_ABI_ALIGNMENT): Define.
5888 2016-10-09 Jakub Jelinek <jakub@redhat.com>
5890 * tree-ssa.c (target_for_debug_bind, verify_phi_args,
5891 ssa_undefined_value_p, maybe_optimize_var): Use VAR_P and/or
5892 VAR_OR_FUNCTION_DECL_P macros.
5893 * tree-chkp.c (chkp_register_var_initializer, chkp_make_static_bounds,
5894 chkp_get_bounds_for_decl_addr, chkp_parse_array_and_component_ref,
5895 chkp_find_bounds_1): Likewise.
5896 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Likewise.
5897 * hsa-gen.c (get_symbol_for_decl): Likewise.
5898 * cgraphunit.c (check_global_declaration, analyze_functions,
5899 handle_alias_pairs, thunk_adjust, cgraph_node::expand_thunk):
5901 * gimple-fold.c (can_refer_decl_in_current_unit_p,
5902 canonicalize_constructor_val, gimple_get_virt_method_for_vtable):
5904 * tree.c (set_decl_section_name, copy_node_stat,
5905 need_assembler_name_p, free_lang_data_in_decl, find_decls_types_r,
5906 merge_dllimport_decl_attributes, handle_dll_attribute,
5907 decl_init_priority_insert, auto_var_in_fn_p, array_at_struct_end_p,
5908 verify_type): Likewise.
5909 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior,
5910 find_explicit_erroneous_behavior): Likewise.
5911 * sdbout.c (sdbout_toplevel_data, sdbout_late_global_decl): Likewise.
5912 * ipa.c (process_references): Likewise.
5913 * tree-chkp-opt.c (chkp_get_check_result): Likewise.
5914 * varasm.c (get_block_for_decl, use_blocks_for_decl_p, make_decl_rtl,
5915 notice_global_symbol, assemble_variable, mark_decl_referenced,
5916 build_constant_desc, output_constant_def_contents, do_assemble_alias,
5917 make_decl_one_only, default_section_type_flags,
5918 categorize_decl_for_section, default_encode_section_info): Likewise.
5919 * trans-mem.c (requires_barrier): Likewise.
5920 * gimple-expr.c (mark_addressable): Likewise.
5921 * cfgexpand.c (add_scope_conflicts_1, expand_one_var,
5922 expand_used_vars_for_block, clear_tree_used, stack_protect_decl_p,
5923 expand_debug_expr): Likewise.
5924 * tree-dump.c (dequeue_and_dump): Likewise.
5925 * ubsan.c (instrument_bool_enum_load): Likewise.
5926 * tree-pretty-print.c (print_declaration): Likewise.
5927 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
5928 * tree-ssa-uninit.c (warn_uninitialized_vars): Likewise.
5929 * asan.c (asan_protect_global, instrument_derefs): Likewise.
5930 * tree-into-ssa.c (rewrite_stmt, maybe_register_def,
5931 pass_build_ssa::execute): Likewise.
5932 * var-tracking.c (var_debug_decl, track_expr_p): Likewise.
5933 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost, split_address_cost):
5935 * ipa-split.c (test_nonssa_use, consider_split, mark_nonssa_use):
5937 * tree-inline.c (insert_debug_decl_map, remap_ssa_name,
5938 can_be_nonlocal, remap_decls, copy_debug_stmt,
5939 initialize_inlined_parameters, add_local_variables,
5940 reset_debug_binding, replace_locals_op): Likewise.
5941 * dse.c (can_escape): Likewise.
5942 * ipa-devirt.c (compare_virtual_tables, referenced_from_vtable_p):
5944 * tree-diagnostic.c (default_tree_printer): Likewise.
5945 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
5946 unpack_ts_decl_with_vis_value_fields,
5947 lto_input_ts_decl_common_tree_pointers): Likewise.
5948 * builtins.c (builtin_save_expr, fold_builtin_expect,
5949 readonly_data_expr): Likewise.
5950 * tree-ssa-structalias.c (new_var_info, get_constraint_for_ssa_var,
5951 create_variable_info_for, set_uids_in_ptset, visit_loadstore):
5953 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
5954 * gimplify.c (force_constant_size, gimplify_bind_expr,
5955 gimplify_decl_expr, gimplify_var_or_parm_decl,
5956 gimplify_compound_lval, gimplify_init_constructor,
5957 gimplify_modify_expr, gimplify_asm_expr, gimplify_oacc_declare,
5958 gimplify_type_sizes): Likewise.
5959 * cgraphbuild.c (record_reference, record_type_list, mark_address,
5960 mark_load, mark_store, pass_build_cgraph_edges::execute): Likewise.
5961 * tree-ssa-live.c (mark_all_vars_used_1, remove_unused_scope_block_p,
5962 remove_unused_locals): Likewise.
5963 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p, ptrs_compare_unequal,
5964 ref_maybe_used_by_call_p_1, call_may_clobber_ref_p_1): Likewise.
5965 * function.c (instantiate_expr, instantiate_decls_1,
5966 setjmp_vars_warning, add_local_decl): Likewise.
5967 * alias.c (ao_ref_from_mem, get_alias_set, compare_base_symbol_refs):
5969 * tree-stdarg.c (find_va_list_reference, va_list_counter_struct_op,
5970 va_list_ptr_read, va_list_ptr_write, check_all_va_list_escapes,
5971 optimize_va_list_gpr_fpr_size): Likewise.
5972 * tree-nrv.c (pass_nrv::execute): Likewise.
5973 * tsan.c (instrument_expr): Likewise.
5974 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
5975 * vtable-verify.c (verify_bb_vtables): Likewise.
5976 * tree-dfa.c (ssa_default_def, set_ssa_default_def,
5977 get_ref_base_and_extent): Likewise.
5978 * toplev.c (wrapup_global_declaration_1, wrapup_global_declaration_2):
5980 * tree-sra.c (static bool constant_decl_p, find_var_candidates,
5981 analyze_all_variable_accesses): Likewise.
5982 * tree-nested.c (get_nonlocal_debug_decl,
5983 convert_nonlocal_omp_clauses, note_nonlocal_vla_type,
5984 note_nonlocal_block_vlas, convert_nonlocal_reference_stmt,
5985 get_local_debug_decl, convert_local_omp_clauses,
5986 convert_local_reference_stmt, nesting_copy_decl, remap_vla_decls):
5988 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Likewise.
5989 * stmt.c (decl_overlaps_hard_reg_set_p): Likewise.
5990 * dbxout.c (dbxout_late_global_decl, dbxout_type_fields,
5991 dbxout_symbol, dbxout_common_check): Likewise.
5992 * expr.c (expand_assignment, expand_expr_real_2, expand_expr_real_1,
5993 string_constant): Likewise.
5994 * hsa.c (hsa_get_declaration_name): Likewise.
5995 * passes.c (rest_of_decl_compilation): Likewise.
5996 * tree-ssanames.c (make_ssa_name_fn): Likewise.
5997 * tree-streamer-out.c (pack_ts_decl_common_value_fields,
5998 pack_ts_decl_with_vis_value_fields,
5999 write_ts_decl_common_tree_pointers): Likewise.
6000 * stor-layout.c (place_field): Likewise.
6001 * symtab.c (symtab_node::maybe_create_reference,
6002 symtab_node::verify_base, symtab_node::make_decl_local,
6003 symtab_node::copy_visibility_from,
6004 symtab_node::can_increase_alignment_p): Likewise.
6005 * dwarf2out.c (add_var_loc_to_decl, tls_mem_loc_descriptor,
6006 decl_by_reference_p, reference_to_unused, rtl_for_decl_location,
6007 fortran_common, add_location_or_const_value_attribute,
6008 add_scalar_info, add_linkage_name, set_block_abstract_flags,
6009 local_function_static, gen_variable_die, dwarf2out_late_global_decl,
6010 optimize_one_addr_into_implicit_ptr,
6011 optimize_location_into_implicit_ptr): Likewise.
6012 * gimple-low.c (record_vars_into): Likewise.
6013 * ipa-visibility.c (update_vtable_references): Likewise.
6014 * tree-ssa-address.c (fixed_address_object_p, copy_ref_info):
6016 * lto-streamer-out.c (tree_is_indexable, get_symbol_initial_value,
6017 DFS::DFS_write_tree_body, write_symbol): Likewise.
6018 * langhooks.c (lhd_warn_unused_global_decl,
6019 lhd_set_decl_assembler_name): Likewise.
6020 * attribs.c (decl_attributes): Likewise.
6021 * except.c (output_ttype): Likewise.
6022 * varpool.c (varpool_node::get_create, ctor_for_folding,
6023 varpool_node::assemble_decl, varpool_node::create_alias): Likewise.
6024 * fold-const.c (fold_unary_loc): Likewise.
6025 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
6026 ipa_find_agg_cst_from_init): Likewise.
6027 * omp-low.c (expand_omp_regimplify_p, expand_omp_taskreg,
6028 expand_omp_target, lower_omp_regimplify_p,
6029 grid_reg_assignment_to_local_var_p, grid_remap_prebody_decls,
6030 find_link_var_op): Likewise.
6031 * tree-chrec.c (chrec_contains_symbols): Likewise.
6032 * tree-cfg.c (verify_address, verify_expr, verify_expr_location_1,
6033 gimple_duplicate_bb, move_stmt_op, replace_block_vars_by_duplicates,
6034 execute_fixup_cfg): Likewise.
6036 PR tree-optimization/77901
6037 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Only optimize
6038 if ranges[i].exp is SSA_NAME when looking for >= and only when
6039 ranges[i].exp is NULL or SSA_NAME when looking for the other
6042 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6044 * ipa-cp.c (ipcp_alignment_lattice): Remove.
6045 (ipcp_param_lattices): Remove field alignment.
6046 (print_all_lattices): Remove call to ipcp_alignment_lattice::print.
6047 (set_all_contains_variable): Remove call to
6048 ipcp_alignment_lattice::set_to_bottom.
6049 (initialize_node_lattices): Likewise.
6050 (propagate_alignment_accross_jump_function): Remove.
6051 (propagate_constants_accross_call): Remove call to
6052 propagate_alignment_accross_jump_function.
6053 (ipcp_store_alignment_results): Remove.
6054 (ipcp_driver): Remove call to ipcp_store_alignment_results.
6055 (propagate_bits_accross_jump_function): Handle ancestor jump function.
6056 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Remove
6057 pretty-printing of alignment jump function.
6058 (ipa_set_jf_unknown): Remove assignment to jfunc->alignment.known.
6059 (ipa_compute_jump_functions_for_edge): Adjust ipa_bits jump function for
6060 alignments and remove computing ipa_alignment jump function.
6061 (ipa_node_params_t::duplicate): Remove copying of src_trans->alignments.
6062 (ipa_write_jump_functions): Remove streaming for ipa_alignment.
6063 (ipa_read_jump_function): Remove reading of ipa_alignment.
6064 (write_ipcp_transformation_info): Remove streaming for alignment
6065 propagation summary.
6066 (read_ipcp_transformation_info): Remove reading of alignment
6067 propagation summary.
6068 (ipcp_update_alignments): Remove.
6069 (ipcp_update_bits): Adjust to set alignment for parameters of pointer
6071 (ipcp_transform_function): Remove call to ipcp_update_alignments()
6072 and remove assignment to (*ipcp_transformations)[node->uid].alignments.
6073 * ipa-prop.h (ipa_alignment): Remove.
6074 (ipa_jump_func): Remove field alignment.
6075 (ipcp_transformation_summary): Remove field alignments.
6076 * doc/invoke.texi: Mark fipa-cp-alignment as obsolete.
6077 * opts.c (default_options_table): Remove entry for fipa-cp-alignment.
6078 (enable_fdo_optimizations): Remove checking for fipa-cp-alignment.
6080 2016-10-08 Eric Botcazou <ebotcazou@adacore.com>
6082 * config/sparc/sparc.h (FIXED_REGISTERS): Add %icc.
6084 * config/visium/visium.c (visium_expand_int_cstore): Revert latest
6086 (visium_expand_fp_cstore): Likewise.
6088 2016-10-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6090 * diagnostic-core.h (warning_at_rich_loc_n): Declare.
6091 * diagnostic.c (warning_at_rich_loc_n): New function.
6092 (diagnostic_n_impl_richloc): Likewise.
6093 (diagnostic_n_impl): Move most of the function to
6094 diagnostic_n_impl_richloc and call it.
6096 2016-10-08 Jakub Jelinek <jakub@redhat.com>
6098 * gen-pass-instances.awk: Rewritten.
6099 * Makefile.in (pass-instances.def): Depend on $(PASSES_EXTRA), pass
6100 $(PASSES_EXTRA) after passes.def to the script.
6101 * config/i386/t-i386 (PASSES_EXTRA): Add i386-passes.def.
6102 * config/i386/i386-passes.def: New file.
6103 * config/i386/i386-protos.h (make_pass_insert_vzeroupper,
6104 make_pass_stv): Declare.
6105 * config/i386/i386.c (pass_stv::pass_stv): Initialize timode_p to
6107 (pass_stv::gate): Depending on timode_p member require TARGET_64BIT
6109 (pass_stv::clone, pass_stv::set_pass_param): New methods.
6110 (pass_stv::timode_p): New non-static data member.
6111 (ix86_option_override): Don't register passes here.
6113 * doc/invoke.texi: Document accepting Else, fallthrough.
6115 * doc/invoke.texi (-Wimplicit-fallthrough): Document FALLTHRU comment
6118 * doc/invoke.texi (-Wimplicit-fallthrough): Document the accepted
6119 FALLTHRU comment styles.
6121 2016-10-07 Andrew Pinski <apinski@cavium.com>
6123 * config/aarch64/aarch64-arches.def (AARCH64_ARCH): #undef at the end.
6124 * config/aarch64/aarch64-cores.def (AARCH64_CORE): Likewise.
6125 * config/aarch64/aarch64-fusion-pairs.def (AARCH64_FUSION_PAIR):
6127 * config/aarch64/aarch64-option-extensions.def (AARCH64_OPT_EXTENSION):
6129 * config/aarch64/aarch64-tuning-flags.def (AARCH64_EXTRA_TUNING_OPTION):
6131 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Don't #undef here.
6132 (AARCH64_ARCH): Likewise.
6133 * common/config/aarch64/aarch64-common.c (AARCH64_OPT_EXTENSION):
6135 (AARCH64_CORE): Likewise.
6136 (AARCH64_ARCH): Likewise.
6137 * config/aarch64/aarch64-protos.h (AARCH64_FUSION_PAIR): Likewise.
6138 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
6139 * config/aarch64/aarch64.c (AARCH64_FUION_PAIR): Likewise.
6140 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
6141 (AARCH64_ARCH): Likewise.
6142 (AARCH64_CORE): Likewise.
6143 * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
6144 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Likewise.
6145 (AARCH64_CORE): Likewise.
6146 (AARCH64_ARCH): Likewise.
6148 2016-10-06 Michael Meissner <meissner@linux.vnet.ibm.com>
6150 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Split
6151 -mfloat128 into -mfloat128-type that enables the IEEE 128-bit
6152 floating point type infrastructre, and -mfloat128 that enables the
6153 keyword. Define __FLOAT128__ if -mfloat128, and __FLOAT128_TYPE__
6154 if -mfloat128-type. Define __ibm128 to be long double by default.
6155 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print whether
6156 the IEEE 128-bit floating point type infrastructure should
6157 automatically be enabled.
6158 (rs6000_init_hard_regno_mode_ok): Switch to use -mfloat128-type
6159 instead of -mfloat128 to enable KFmode.
6160 (rs6000_option_override_internal): Split the option -mfloat128
6161 into -mfloat128-type and -mfloat128. On Linux PowerPC 64-bit
6162 systems, automatically set -mfloat128-type, but don't enable it on
6163 other operating systems. Move setting the long double size and
6164 IEEE quad support before the IEEE 128-bit floating point changes.
6165 (rs6000_init_builtins): Do not create a unique type for __ibm128
6166 if long double is IBM extended double, instead rely on __ibm128
6167 being defined as 'long double'. If -mfloat128-type and not
6168 -mfloat128, create the KFmode type with an undocumented __ieee128
6170 (rs6000_init_libfuncs): Use -mfloat128-type instead of
6171 -mfloat128 for tests about the types, but keep tests for
6172 -mfloat128 to enable the keyword support.
6173 (rs6000_complex_function_value): Likewise.
6174 (rs6000_scalar_mode_supported_p): Likewise.
6175 (rs6000_floatn_mode): Likewise.
6176 (rs6000_c_mode_for_suffix): Likewise.
6177 (rs6000_opt_masks): Add -mfloat128-type.
6178 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add support for
6179 -mfloat128-type being split from -mfloat128. Add
6180 -mfloat128-hardware, which was missing.
6181 * config/rs6000/rs6000.opt (-mfloat128): Split -mfloat128 into
6182 -mfloat128 and -mfloat128-type:
6183 (-mfloat128-type): Likewise.
6184 * config/rs6000/linux64.h (TARGET_FLOAT128_ENABLE_TYPE): Define so
6185 that 64-bit Linux systems with enable -mfloat128-type by default
6187 * config/rs6000/rs6000.h (TARGET_FLOAT128_ENABLE_TYPE): Likewise.
6188 (FLOAT128_VECTOR_P): Switch IEEE 128-bit floating points to use
6189 -mfloat128-type instead of -mfloat128.
6190 (FLOAT128_2REG_P): Likewise.
6191 (MASK_FLOAT128_TYPE): Likewise.
6192 (ALTIVEC_ARG_MAX_RETURN): Likewise.
6193 (RS6000_BTM_FLOAT128): Likewise.
6194 (TARGET_FLOAT128): Poison old identifiers.
6195 (OPTION_MASK_FLOAT128): Likewise.
6196 (MASK_FLOAT128): Likewise.
6197 * config/rs6000/rs6000.md (FP): Likewise.
6198 (FLOAT128): Likewise.
6199 (fix_trunc<mode>di2): Likewise.
6200 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
6201 (floatdi<mode>2): Likewise.
6202 (floatuns<SDI:mode><IEEE128:mode>2): Likewise.
6203 (neg<mode>2, FLOAT128 iterator): Likewise.
6204 (abs<mode>2, FLOAT128 iterator): Likewise.
6205 (ieee_128bit_negative_zero): Likewise.
6206 (ieee_128bit_vsx_neg<mode>2): Likewise.
6207 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
6208 (ieee_128bit_vsx_abs<mode>2): Likewise.
6209 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
6210 (ieee_128bit_vsx_nabs<mode>2): Likewise.
6211 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
6212 (extendiftf2): Likewise.
6213 (extendifkf2): Likewise.
6214 (extendtfkf2): Likewise.
6215 (trunciftf2): Likewise.
6216 (truncifkf2): Likewise.
6217 (trunckftf2): Likewise.
6218 (trunctfif2): Likewise.
6219 (extendkftf2): Likewise.
6220 (trunctfkf2): Likewise.
6222 2016-10-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6224 * simplify-rtx.c (simplify_immed_subreg): Zero-initialize tmp array
6225 before merging in bytes to pass down to real_from_target.
6227 2016-10-07 Richard Biener <rguenther@suse.de>
6229 * tree-ssa-propagate.c (replace_phi_args_in): Remove no longer
6231 (substitute_and_fold_dom_walker::before_dom_children):
6232 Substitute and fold before pass specific folding to avoid
6233 feeding that with SSA names that will be later released.
6234 * tree-ssa-ccp.c (get_value_for_expr): Guard for new SSA names
6235 introduced by folding and visited by evaluate_stmt called during
6237 (likely_value): Likewise.
6238 (evaluate_stmt): Likewise.
6239 * tree-vrp.c (simplify_truth_ops_using_ranges): Fold modified stmt.
6240 (simplify_div_or_mod_using_ranges): Likewise.
6241 (simplify_min_or_max_using_ranges): Likewise.
6242 (simplify_abs_using_ranges): Likewise.
6243 (simplify_conversion_using_ranges): Likewise.
6244 (simplify_float_conversion_using_ranges): Likewise.
6245 (simplify_stmt_using_ranges): Likewise.
6247 2016-10-07 Marek Polacek <polacek@redhat.com>
6249 * gimplify.c (should_warn_for_implicit_fallthrough): Check for
6250 FALLTHROUGH_LABEL_P here...
6251 (warn_implicit_fallthrough_r): ...not here.
6253 2016-10-07 Bernd Schmidt <bschmidt@redhat.com>
6255 PR tree-optimization/77880
6256 * expr.c (by_pieces_ninsns): Use unsigned HOST_WIDE_INT where
6259 2016-10-07 Marek Polacek <polacek@redhat.com>
6262 * gimplify.c (last_stmt_in_scope): Add check for FALLTHROUGH ().
6264 2016-10-07 Richard Biener <rguenther@suse.de>
6266 * bitmap.h: Document constraints on bitmap modification while
6269 2016-10-07 Richard Biener <rguenther@suse.de>
6271 * bitmap.c (bitmap_elem_to_freelist): Set indx to -1.
6272 * bitmap.h (bmp_iter_set): When advancing to the next element
6273 check that we didn't remove the current one.
6274 (bmp_iter_and): Likewise.
6275 (bmp_iter_and_compl): Likewise.
6276 * tree-ssa.c (release_defs_bitset): Do not remove worklist bit
6277 we currently iterate on but keep a one-level queue.
6278 * sched-deps.c (remove_from_deps): Do not clear current bit
6279 but keep a one-level queue.
6281 2016-10-07 Jakub Jelinek <jakub@redhat.com>
6283 PR tree-optimization/77664
6284 * tree-ssa-reassoc.c (update_range_test): Also clear low and high
6285 for the other ranges.
6286 (optimize_range_tests_diff): Fix up formatting.
6287 (optimize_range_tests_var_bound): New function.
6288 (optimize_range_tests): Use it.
6290 2016-10-07 Martin Liska <mliska@suse.cz>
6292 * coverage.c (build_gcov_exit_decl): Fix priority what
6293 should be really 99.
6295 2016-10-07 Richard Biener <rguenther@suse.de>
6297 * gimple-low.c (lower_gimple_bind): Clear DECL_CHAIN of
6298 vars in gimple_bind_vars but not in BLOCK_VARS.
6300 2016-10-07 Richard Biener <rguenther@suse.de>
6302 PR tree-optimization/77879
6303 * tree-ssa-structalias.c (handle_const_call): Properly handle
6305 (handle_pure_call): Likewise.
6307 2016-10-06 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
6309 * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor)
6310 (rs6000_elf_asm_out_destructor): increase size of buf to avoid
6313 2016-10-06 Andrew Pinski <apinski@cavium.com>
6315 * config/aarch64/aarch64-cores.def: Add a comment before each
6318 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
6320 PR tree-optimization/77862
6321 * tree-vrp.c (add_equivalence): Use get_value_range so that
6322 num_vr_values is checked before accessing vr_values.
6324 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
6326 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
6329 2016-10-05 Jeff Law <law@redhat.com>
6331 PR tree-optimization/71661
6332 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Handle case when
6333 removal of a forwarder exposes a new natural loop.
6335 2016-10-06 Uros Bizjak <ubizjak@gmail.com>
6337 * config/i386/sse.md (andnot<mode>3): Add FALLTHRU comments.
6338 Introduce ssesuffix variable.
6339 (<mask_codefor><code><mode>3<mask_name>): Ditto.
6340 (*<code><mode>3): Ditto.
6342 2016-10-06 Jan Hubicka <hubicka@ucw.cz>
6344 * postreload.c (reload_cse_simplify): Skip also USE when detecting
6347 2016-10-06 Richard Biener <rguenther@suse.de>
6349 PR tree-optimization/77855
6350 * tree-ssa-pre.c (prune_clobbered_mems): Queue exprs to remove
6351 instead of removing the current item while iterating over the set
6354 2016-10-06 James Clarke <jrtc27@jrtc27.com>
6355 Eric Botcazou <ebotcazou@adacore.com>
6358 * config/sparc/sparc.c (classify_data_t): Remove int_regs field.
6359 (classify_registers): Don't set it
6360 (function_arg_slotno): Don't initialize and test it. Tidy up.
6362 2016-10-06 Richard Biener <rguenther@suse.de>
6364 PR tree-optimization/77839
6365 * tree-ssa-sccvn.c (set_ssa_val_to): Forbid value -> constant value
6368 2016-10-06 Martin Liska <mliska@suse.cz>
6370 * gcc.c: Set -fprofile-update=atomic when profiling is
6371 enabled and -pthread is set. Warn when one combines
6372 -pthread and -fprofile-update=single for an app using
6375 2016-10-06 Martin Liska <mliska@suse.cz>
6378 * expmed.h (mul_highpart_cost_ptr): Add an gcc_assert.
6379 * gimple-ssa-strength-reduction.c (slsr_process_cast):
6380 Initialize a pointer to NULL.
6381 (slsr_process_copy): Likewise.
6382 * input.c (location_get_source_line): Likewise.
6383 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
6385 2016-10-05 Andrew Senkevich <andrew.senkevich@intel.com>
6387 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
6388 OPTION_MASK_ISA_PCOMMIT_SET): Deleted definitions.
6389 (ix86_handle_option): Deleted handle of OPT_mpcommit.
6390 * config.gcc: Deleted pcommitintrin.h
6391 * config/i386/pcommitintrin.h: Deleted file.
6392 * config/i386/cpuid.h (bit_PCOMMIT): Deleted.
6393 * config/i386/driver-i386.c (host_detect_local_cpu): Deleted pcommit
6395 * config/i386/i386-c.c (ix86_target_macros_internal): Deleted define
6397 * config/i386/i386.c (ix86_target_string): Deleted -mpcommit.
6398 (PTA_PCOMMIT): Deleted define.
6399 (ix86_option_override_internal): Deleted handle of option.
6400 (ix86_valid_target_attribute_inner_p): Deleted pcommit.
6401 * config/i386/i386-builtin.def (IX86_BUILTIN_PCOMMIT,
6402 __builtin_ia32_pcommit): Deleted.
6403 * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Deleted.
6404 * config/i386/i386.md (unspecv): Deleted UNSPECV_PCOMMIT.
6405 (pcommit): Deleted instruction.
6406 * config/i386/i386.opt: Mention -mpcommit deprecation.
6407 * config/i386/x86intrin.h: Deleted inclusion of pcommitintrin.h.
6409 2016-10-05 Uros Bizjak <ubizjak@gmail.com>
6412 * config/i386/sse.md (<mask_codefor><code><mode>3<mask_name>):
6413 Remove wrong assert.
6414 (<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>:
6415 Use <round_constraint> as operand 1 constraint.
6417 2016-10-05 Jakub Jelinek <jakub@redhat.com>
6420 * ubsan.c (ubsan_create_data): Call initialize_sanitizer_builtins here.
6421 (ubsan_instrument_float_cast): And not here.
6424 * ubsan.c (ubsan_ids): New GTY(()) array.
6425 (ubsan_type_descriptor, ubsan_create_data): Use ubsan_ids
6426 instead of static local counters.
6428 2016-10-05 Martin Sebor <msebor@redhat.com>
6431 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define macro.
6432 * config/linux.c (gnu_libc_printf_pointer_format): Remove.
6433 * targhooks.c [DEFAULT_LIBC == LIBC_UCLIBC) && SINGLE_LIBC]
6434 (default_printf_pointer_format): Define function.
6435 * targhooks.c (linux_printf_pointer_format): Define new function.
6436 * targhooks.h (linux_printf_pointer_format): Declare.
6437 (gnu_libc_printf_pointer_format): Remove declaration.
6439 2016-10-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6441 * fold-const.c (native_encode_real): Fix logic for selecting offset
6442 to write to when BYTES_BIG_ENDIAN.
6444 2016-10-05 Wilco Dijkstra <wdijkstr@arm.com>
6446 * builtins.c (fold_builtin_strchr): Remove function.
6447 (fold_builtin_strrchr): Likewise.
6448 (fold_builtin2): Remove strchr, index, strrchr, rindex cases.
6449 * gimple-fold.c (target_char_cst_p): New function.
6450 (gimple_fold_builtin_strchr) Add more foldings.
6451 (gimple_fold_builtin): Add index, strrchr, rindex cases.
6453 2016-10-05 Richard Biener <rguenther@suse.de>
6456 * genmatch.c (capture_info::walk_c_expr): Diagnose unknown
6457 capture ids in c-exprs.
6459 2016-10-05 Richard Biener <rguenther@suse.de>
6462 * genmatch.c (dt_operand::gen_match_op): Amend operand_equal_p
6463 with types_match for GIMPLE code gen to handle type mismatched
6465 (dt_operand::gen): Adjust.
6466 * match.pd ((X /[ex] A) * A -> X): Properly handle converted
6469 2016-10-05 Richard Biener <rguenther@suse.de>
6471 * match.pd (copysign(x, CST) -> [-]abs (x)): New pattern.
6473 2016-10-05 Richard Biener <rguenther@suse.de>
6476 * genmatch.c (parser::parse_c_expr): Handle premature EOF.
6478 2016-10-05 Pierre-Marie de Rodat <derodat@adacore.com>
6480 * dwarf2out.c (dwarf2out_imported_module_or_decl): Move DWARF
6481 version check to protect only DW_TAG_imported_module generation.
6483 2016-10-05 Richard Biener <rguenther@suse.de>
6486 * match.pd (min(a,-a) -> -abs(a)): New pattern.
6488 2016-10-04 Ian Lance Taylor <iant@golang.org>
6490 * explow.c (allocate_dynamic_stack_space): Call
6491 do_pending_stack_adjust before handling flag_split_stack.
6493 2016-10-04 David Malcolm <dmalcolm@redhat.com>
6495 * genattrtab.c (make_internal_attr): Supply dummy column number to
6498 * genoutput.c (init_insn_for_nothing): Likewise.
6499 * gensupport.c (add_define_attr): Likewise.
6500 * read-md.c (message_at_1): Print column number.
6501 (fatal_with_file_and_line): Likewise.
6502 (rtx_reader::read_char): Track column numbers.
6503 (rtx_reader::unread_char): Likewise.
6504 (rtx_reader::rtx_reader): Initialize m_read_md_colno.
6505 (rtx_reader::handle_include): Stash and restore m_read_md_colno.
6506 (rtx_reader::handle_file): Initialize m_read_md_colno.
6507 (rtx_reader::get_current_location): Supply column number to
6509 * read-md.h (struct file_location): Add field "colno".
6510 (file_location::file_location): Likewise.
6511 (rtx_reader::get_colno): New accessor.
6512 (rtx_reader::m_read_md_colno): New field.
6513 (rtx_reader::m_last_line_colno): New field.
6515 2016-10-04 Jakub Jelinek <jakub@redhat.com>
6517 * doc/extend.texi (Java Exceptions): Remove.
6518 (java_interface): Remove.
6520 2016-10-04 Doug Gilmore <doug.gilmore@imgtec.com>
6522 PR tree-optimization/77808
6523 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Check base_addr
6524 and addr are different before copying points-to information.
6526 2016-10-04 Uros Bizjak <ubizjak@gmail.com>
6528 * config/i386/x86-tune.def (X86_TUNE_VECTORIZE_DOUBLE): Remove.
6529 * config/i386/i386.h (TARGET_VECTORIZE_DOUBLE): Remove.
6530 * config/i386/i386.c (ix86_add_stmt_cost): Use TARGET_BONNEL instead
6531 of !TARGET_VECTORIZE_DOUBLE when penalizing DFmode vector ops.
6533 2016-10-04 Richard Biener <rguenther@suse.de>
6535 PR tree-optimization/77399
6536 * tree-ssa-forwprop.c (simplify_vector_constructor): Properly
6537 verify the target can convert.
6539 2016-10-04 Richard Biener <rguenther@suse.de>
6542 * explow.c (plus_constant): Verify the mode of the constant
6543 pool offset before calling plus_constant.
6545 2016-10-04 Richard Biener <rguenther@suse.de>
6548 * match.pd (X / abs (X) -> X < 0 ? -1 : 1): Drop vector
6549 type support, mark with :C.
6550 (X / -X -> -1): Mark with :C.
6552 2016-10-04 Jakub Jelinek <jakub@redhat.com>
6554 * defaults.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Remove.
6555 * system.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Poison.
6556 * doc/tm.texi.in (TARGET_USE_JCR_SECTION): Remove.
6557 * doc/tm.texi: Regenerated.
6558 * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Remove.
6559 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Remove.
6560 * config/darwin.h (JCR_SECTION_NAME): Remove.
6561 * config/pa/pa64-hpux.h (JCR_SECTION_NAME): Remove.
6562 * config/rs6000/aix71.h (TARGET_USE_JCR_SECTION): Remove.
6563 * config/rs6000/aix51.h (TARGET_USE_JCR_SECTION): Remove.
6564 * config/rs6000/aix52.h (TARGET_USE_JCR_SECTION): Remove.
6565 * config/rs6000/aix53.h (TARGET_USE_JCR_SECTION): Remove.
6566 * config/rs6000/aix61.h (TARGET_USE_JCR_SECTION): Remove.
6568 2016-10-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6570 * ipa-cp.c (propagate_bits_accross_jump_function): Introduce space
6571 between "because" and "param" in dump message in call to fprintf.
6573 2016-10-03 Jeff Law <law@redhat.com>
6575 PR tree-optimization/71550
6576 PR tree-optimization/71403
6577 * tree-ssa-threadbackward.c: Include tree-vectorizer.h
6578 (profitable_jump_thread_path): Also return boolean indicating if
6579 the realized path will create an irreducible loop.
6580 Remove loop depth tests from 71403.
6581 (fsm_find_control_statement_thread_paths): Remove loop depth tests
6582 from 71403. If threading will create an irreducible loop, then
6583 throw away loop iteration and related information.
6585 2016-10-03 Uros Bizjak <ubizjak@gmail.com>
6587 * configure.ac (strict_warn): Merge -Wmissing-format-attribute and
6588 -Woverloaded-virtual checks for warning options.
6589 * configure: Regenerate.
6591 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
6593 PR preprocessor/77699
6594 * input.c (maybe_grow): Don't allocate one byte extra headroom.
6595 (get_next_line): Return false on error.
6596 (read_next_line): Removed, use get_next_line instead.
6597 (read_line_num): Don't copy the line.
6598 (location_get_source_line): Don't use static data.
6599 (selftest::test_reading_source_line): Add more test cases.
6601 2016-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6604 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6606 * ifcvt.c (noce_try_avoid_const_materialization): New function.
6607 (noce_process_if_block): Use it.
6609 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
6611 * doc/invoke.texi: Update -Wint-in-bool-context.
6613 2016-10-02 Jakub Jelinek <jakub@redhat.com>
6615 * dwarf2out.c (output_fde, output_call_frame_info,
6616 dwarf2out_do_cfi_startproc, set_indirect_string,
6617 gen_internal_sym, output_die, output_line_info): Use
6618 MAX_ARTIFICIAL_LABEL_BYTES as char array sizes for
6619 ASM_GENERATE_INTERNAL_LABEL output.
6621 2016-10-01 Richard Biener <rguenther@suse.de>
6624 * genmatch.c (get_operand_type): Add operand position arg
6625 and handle COND_EXPR comparison operand with fixed boolean_type_node.
6626 (expr::gen_transform): Adjust.
6627 (dt_simplify::gen_1): Likewise.
6629 2016-10-01 Jakub Jelinek <jakub@redhat.com>
6631 * config/i386/sse.md (<mask_codefor><code><mode>): Add FALLTHRU
6632 comments. Simplify asserts, remove unnecessary conditions.
6634 (*<code><mode>3): Likewise.
6636 2016-09-30 Jakub Jelinek <jakub@redhat.com>
6638 * doc/invoke.texi (-Wregister): Document.
6640 2016-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
6642 * configure.ac: Split CHECKING_P into CHECKING_P and
6643 ENABLE_EXTRA_CHECKING.
6644 * configure: Regenerated.
6645 * config.in: Adjust commment of CHECKING_P. Add ENABLE_EXTRA_CHECKING.
6646 * common.opt (flag_checking): Use CHECKING_P and ENABLE_EXTRA_CHECKING.
6648 2016-09-30 Prasad Ghangal <prasad.ghangal@gmail.com>
6651 * gcc.c (process_command): For @filename handling, output
6652 the correct name if the file does not exist.
6654 2016-09-30 Marek Polacek <polacek@redhat.com>
6656 * config/aarch64/aarch64-simd.md: Adjust fall through comments.
6657 * config/alpha/predicates.md: Likewise.
6659 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6661 * ifcvt.c (noce_try_avoid_const_materialization): New function.
6662 (noce_process_if_block): Use it.
6664 2016-09-30 Martin Liska <mliska@suse.cz>
6666 * doc/invoke.texi: Document asan-use-after-return that
6667 it's disabled by default in runtime.
6669 2016-09-30 Richard Biener <rguenther@suse.de>
6671 * tree-vrp.c (intersect_ranges): If we failed to handle
6672 the intersection choose a constant singleton range if available.
6674 2016-09-30 Richard Biener <rguenther@suse.de>
6676 PR tree-optimization/77399
6677 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
6678 float <-> int conversions.
6680 2016-09-30 Alan Modra <amodra@gmail.com>
6682 * config/rs6000/rs6000.c (rs6000_opt_vars): Revert last change.
6684 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
6686 * config/i386/driver-i386.c (host_detect_local_cpu): Check maximum
6687 ext_level before calling CPUID with 0x80000008.
6688 Simplify xgetbv checks.
6690 2016-09-29 David Malcolm <dmalcolm@redhat.com>
6692 * Makefile.in (OBJS): Add print-rtl-function.o.
6693 * print-rtl-function.c: New file.
6694 * print-rtl.h (print_rtx_function): New decl.
6696 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
6699 * config/i386/cpuid.h (__get_cpuid_count): New.
6700 (__get_cpuid): Rename __level to __leaf.
6702 2016-09-29 Marek Polacek <polacek@redhat.com>
6704 * genattrtab.c (write_attr_case): Also emit FALLTHRU marker.
6706 2016-09-29 Bernd Schmidt <bschmidt@redhat.com>
6709 * builtins.c (expand_builtin_memcmp): Don't swap args unless
6710 result is only being compared with zero.
6712 2016-09-29 Marek Polacek <polacek@redhat.com>
6714 * dwarf2out.c (loc_descriptor): Add fall through comment.
6715 (add_const_value_attribute): Likewise.
6717 2016-09-29 Matthew Wahab <matthew.wahab@arm.com>
6719 * config/arm/arm.md (*arm_movsi_insn): Replace "t2" arch attribute
6720 with "v6t2". Move "arch" attribute above "pool_range".
6721 * config/arm/vfp.md (*arm_movhi_vfp): Replace "t2" arch attribute
6723 (*thumb2_movhi_vfp): Likewise.
6724 (*arm_movhi_fp16): Likewise.
6725 (*thumb2_movhi_fp16): Likewise.
6726 (*arm_movsi_vfp): Remove "arch" attribute.
6727 (*thumb2_movsi_vfp): Likewise.
6729 2016-09-29 Martin Liska <mliska@suse.cz>
6731 * doc/extend.texi: Remove limitation of Objective C for
6732 __attribute__((constructor)) and __attribute__((destructor)).
6734 2016-09-29 Richard Biener <rguenther@suse.de>
6736 PR tree-optimization/77768
6737 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
6738 Handle stores to readonly memory when removing redundant stores.
6740 2016-09-29 Richard Biener <rguenther@suse.de>
6743 * match.pd: Add X / abs (X) -> X < 0 ? -1 : 1 and
6744 X / -X -> -1 simplifications.
6746 2016-09-29 Richard Biener <rguenther@suse.de>
6749 * match.pd: Add max(a,-a) -> abs(a) pattern.
6750 * tree-ssa-phiopt.c (minmax_replacement): Disable for
6751 HONOR_SIGNED_ZEROS types.
6753 2016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
6755 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Remove.
6756 * system.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Poison.
6758 2016-09-29 Richard Biener <rguenther@suse.de>
6760 * tree-vrp.c (set_defs_to_varying): New helper avoiding
6761 writing to vr_const_varying.
6762 (vrp_initialize): Call it.
6763 (vrp_visit_stmt): Likewise.
6764 (evrp_dom_walker::before_dom_children): Likewise.
6766 2016-09-29 Richard Biener <rguenther@suse.de>
6768 * tree-vect-stmts.c (vectorizable_load): Avoid emitting vector
6769 constructors with vector elements.
6771 2016-09-29 Richard Biener <rguenther@suse.de>
6773 PR tree-optimization/77768
6774 * tree-ssa-sccvn.c (visit_reference_op_store): Properly deal
6775 with stores to a place we know has a constant value.
6777 2016-09-29 Alan Modra <amodra@gmail.com>
6779 * config/rs6000/sysv4.opt (mgnu-attribute): New option.
6780 * doc/invoke.texi: Document it.
6781 * config/rs6000/rs6000.c (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): Define.
6782 (rs6000_passes_float): Comment.
6783 (rs6000_passes_long_double): New static var.
6784 (call_ABI_of_interest): Return false unless rs6000_gnu_attr is set.
6785 (init_cumulative_args): Set up to emit fp .gnu_attribute for
6786 ELF 64-bit ABIs as well as 32-bit ELF. Correct rs6000_passes_float
6787 to include fp values returned in vectors.
6788 Set rs6000_passes_long_double.
6789 (rs6000_function_arg_advance_1): Likewise for function args.
6790 (rs6000_elf_file_end): Emit fp .gnu_attribute for ELF 64-bit ABIs,
6791 and SPE. Emit long double tag value too.
6792 (rs6000_opt_vars): Add gnu-attr.
6793 * configure.ac (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): New ppc32 test.
6794 * configure: Regenerate.
6795 * config.in: Regenerate.
6797 2016-09-28 Jakub Jelinek <jakub@redhat.com>
6799 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Use x > 0 instead
6801 (format_floating, format_string, format_directive,
6802 get_destination_size, pass_sprintf_length::handle_gimple_call):
6805 2016-09-28 Jakub Jelinek <jakub@redhat.com>
6807 * gimple-ssa-sprintf.c: Fix comment formatting.
6808 (format_integer): Use is_gimple_assign.
6809 (pass_sprintf_length::handle_gimple_call): Use gimple_call_builtin_p
6810 and gimple_call_fndecl. Reorder case BUILT_IN_SPRINTF_CHK. Fix up
6811 BUILT_IN_SNPRINTF_CHK comment. Replace "to to" with "to" in comment.
6812 (pass_sprintf_length::execute): Use is_gimple_call.
6814 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
6816 * gimple-fold.c (gimple_fold_builtin): After failing to fold
6817 strchr, also try the generic folding.
6819 2016-09-28 Martin Sebor <msebor@redhat.com>
6822 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
6825 2016-09-28 Martin Sebor <msebor@redhat.com>
6828 * gimple-ssa-sprintf.c (format_integer): Fail gracefully when
6829 length modifier is not expected.
6830 (format_floating): Ignore l length modifier and fail gracefuly
6831 when it isn't one of the other expected ones.
6833 2016-09-28 Martin Sebor <msebor@redhat.com>
6836 * varasm.c (assemble_addr_to_section): Increase local buffer size.
6838 2016-09-27 Richard Biener <rguenther@suse.de>
6840 * dwarf2out.c (cu_die_list): New global.
6841 (dwarf2out_finish): Walk cu_die_list instead of limbo DIEs. Add
6842 main_comp_unit_die to cu_die_list if we created it.
6843 Move break_out_includes ...
6844 (dwarf2out_early_finish): ... here. Push created CU DIEs onto
6847 2016-09-28 Richard Biener <rguenther@suse.de>
6849 * dwarf2out.c (struct die_struct): Add removed flag.
6850 (lookup_type_die): If the DIE is marked as removed, clear
6851 TYPE_SYMTAB_DIE and return NULL.
6852 (lookup_decl_die): If the DIE is marked as removed, remove it
6853 from the hash and return NULL.
6854 (mark_removed): New helper.
6855 (prune_unused_types_prune): Call it for removed DIEs.
6856 (gen_subprogram_die): Move the premark_used_types call to after
6857 DIEs for the functions scopes are generated.
6858 (process_scope_var): Do not re-create pruned types or type decls.
6859 Make sure to also re-parent type decls.
6860 (dwarf2out_finish): Move unused type pruning and debug_types
6862 (dwarf2out_early_finish): ... here.
6864 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
6866 * config/arc/arc-c.c: New file.
6867 * config/arc/arc-c.def: Likewise.
6868 * config/arc/t-arc: Likewise.
6869 * config.gcc: Include arc-c.o as c and cpp object.
6870 * config/arc/arc-protos.h (arc_cpu_cpp_builtins): Add prototype.
6871 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Use
6872 arc_cpu_cpp_builtins.
6874 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
6876 * config/arc/arc.md (*rotrsi3_cnt1): New pattern.
6877 (*ashlsi2_cnt1, *lshrsi3_cnt1, *ashrsi3_cnt1): Likewise.
6879 2016-09-28 Nathan Sidwell <nathan@acm.org>
6881 * gimple-pretty-print.c (dump_gimple_call_args): Simplify "' "
6884 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
6886 PR tree-optimization/61056
6887 * gimple-fold.c (gimple_fold_builtin_strchr):
6888 New function to optimize strchr (s, 0) to strlen.
6889 (gimple_fold_builtin): Add BUILT_IN_STRCHR case.
6891 2016-09-27 Robin Dapp <rdapp@linux.vnet.ibm.com>
6893 PR tree-optimization/77724
6894 * tree-vect-loop-manip.c (create_intersect_range_checks_index):
6895 Add tree_fits_shwi_p check.
6897 2016-09-27 Jakub Jelinek <jakub@redhat.com>
6899 * auto-inc-dec.c (try_merge): Remove break after return.
6900 * cselib.c (autoinc_split): Likewise.
6901 * explow.c (promote_mode): Likewise.
6902 * fixed-value.c (fixed_arithmetic): Likewise.
6903 * hsa.c (hsa_internal_fn::get_arity): Likewise.
6904 * rtlanal.c (modified_between_p, modified_in_p): Likewise.
6905 * trans-mem.c (get_attrs_for): Likewise.
6906 * tree-if-conv.c (if_convertible_stmt_p): Likewise.
6907 * tree-vrp.c (simplify_stmt_using_ranges): Likewise.
6908 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Likewise.
6909 * config/aarch64/aarch64.c (aarch64_get_condition_code_1): Likewise.
6910 * config/c6x/c6x.c (c6x_get_unit_specifier): Likewise.
6911 * config/cr16/cr16.c (legitimate_pic_operand_p): Likewise.
6912 * config/cris/cris.c (cris_op_str): Likewise.
6913 * config/mn10300/mn10300.c (cc_flags_for_code): Likewise.
6914 * config/tilepro/tilepro.c (tilepro_emit_setcc_internal_di): Likewise.
6916 2016-09-27 Nathan Sidwell <nathan@codesourcery.com>
6918 * internal-fn.h (IFN_UNIQUE_CODES, IFN_GOACC_LOOP_CODES,
6919 IFN_GOACC_REDUCTION_CODES): New.
6920 (enum ifn_unique_kind, enum ifn_goacc_loop_kind, enum
6921 ifn_goacc_reduction_kind): Use them.
6922 * gimple-pretty-print.c (dump_gimple_call_args): Decode first arg
6923 of internal functions, when applicable.
6925 2016-09-27 Maciej W. Rozycki <macro@imgtec.com>
6927 * config/mips/constraints.md (d): Fix documentation.
6928 * doc/md.texi (Machine Constraints): Update accordingly.
6930 2016-09-27 Richard Biener <rguenther@suse.de>
6932 * dwarf2out.c (dwarf2out_init): Move text_section_line_info,
6933 cur_line_info_table initialization ...
6934 (dwarf2out_assembly_start): ... here.
6936 2016-09-27 Matthew Wahab <matthew.wahab@arm.com>
6938 * config/arm/arm.md (*arm_movsi_insn): Add "arch" attribute.
6939 * config/arm/vfp.md (*arm_movhi_vfp): Likewise.
6940 (*thumb2_movhi_vfp): Likewise.
6941 (*arm_movhi_fp16): Remove predication operand from VMOV.F16
6942 template. Expand predicable attribute to mark VMOV.F16 as not
6943 predicable. Add "arch" attribute.
6944 (*thumb2_movhi_fp16): Likewise.
6945 (*arm_movsi_vfp): Break a long line. Add "arch" attribute.
6946 (*thumb2_movsi_vfp): Add "arch" attribute.
6948 2016-09-27 David Edelsohn <dje.gcc@gmail.com>
6950 * config/rs6000/rs6000.c (rs6000_output_symbol): Don't modify
6953 2016-09-27 Marek Polacek <polacek@redhat.com>
6955 * config/ia64/ia64.c (ia64_print_operand): Adjust fall through
6958 * config/c6x/c6x.h: Adjust fall through comment.
6959 * config/sh/sh.c (final_prescan_insn): Likewise.
6960 * config/visium/visium.c (visium_expand_int_cstore): Likewise.
6961 (visium_expand_fp_cstore): Likewise.
6963 2016-09-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6965 * config/arm/arm.c (const_ok_for_op): Use "Fall through" comment form
6966 expected by -Wimplicit-fallthrough.
6967 (thumb1_size_rtx_costs): Likewise.
6968 (thumb2_reorg): Likewise.
6969 (tls_mentioned_p): Add "Fall through" comment.
6970 (thumb2_reorg): Likewise.
6971 * config/arm/arm-builtins.c (arm_expand_neon_args): Use "Fall through"
6972 comment form expected by -Wimplicit-fallthrough.
6974 2016-09-27 Martin Liska <mliska@suse.cz>
6976 PR gcov-profile/46266
6977 * input.h (RESERVED_LOCATION_P): New macro.
6978 * profile.c (branch_prob): Use RESERVED_LOCATION_P and
6979 instread of comparison with UNKNOWN_LOCATION.
6981 2016-09-27 Richard Biener <rguenther@suse.de>
6983 PR tree-optimization/77745
6984 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
6985 When removing redundant stores make sure to check compatibility
6986 of the TBAA state for downstream accesses.
6987 * tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when
6988 value-numbering virtual operands for store matches.
6990 2016-09-27 Oleg Endo <olegendo@gcc.gnu.org>
6993 * config/sh/sh.c (sh_rtx_costs): Fix return value of SET of movt and
6994 movrt patterns. Match them before anything else in the SET case.
6996 2016-09-27 Martin Liska <mliska@suse.cz>
6998 PR gcov-profile/7970
6999 PR gcov-profile/16855
7000 PR gcov-profile/44779
7001 * coverage.c (build_gcov_exit_decl): New function.
7002 (coverage_obj_init): Call the function and generate __gcov_exit
7004 * doc/gcov.texi: Document when __gcov_exit function is called.
7006 2016-09-27 Marek Polacek <polacek@redhat.com>
7009 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
7010 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Use
7011 -Wno-error instead of -Wno-implicit-fallthrough.
7013 2016-09-27 Martin Liska <mliska@suse.cz>
7016 * gcov-counter.def: Remove GCOV_COUNTER_V_DELTA.
7018 2016-09-27 Jakub Jelinek <jakub@redhat.com>
7020 * combine.c (simplify_comparison): Add canonical FALLTHROUGH comments.
7021 * config/i386/i386.c (ix86_dep_by_shift_count_body): Add FALLTHROUGH
7022 comments. Remove break after return.
7023 (ix86_fp_compare_code_to_integer, has_dispatch,
7024 ix86_simd_clone_usable): Remove break after return.
7026 2016-09-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
7028 PR rlt-optimization/77714
7029 * lra-eliminations.c (eliminate_regs_in_insn): Avoid alias on
7032 2016-09-27 Kugan Vivekanandarajah <kuganv@linaro.org>
7035 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Use
7036 extract_range_from_unary_expr to convert value_range.
7037 * tree-vrp.c (extract_range_from_unary_expr_1): Rename to.
7038 (extract_range_from_unary_expr): This.
7039 * tree-vrp.h (extract_range_from_unary_expr): Declare.
7041 2016-09-27 Segher Boessenkool <segher@kernel.crashing.org>
7043 * config/rs6000/rs6000.md (movcc_internal1): Disparage using CTR or LR.
7045 2016-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7047 * config/i386/i386.c (ix86_print_operand)
7048 [HAVE_AS_IX86_CMOV_SUN_SYNTAX]: Add gcc_fallthrough.
7049 * config/sparc/sparc.c (check_pic): Add fallthrough comment.
7050 (epilogue_renumber): Likewise.
7052 2016-09-26 Kugan Vivekanandarajah <kuganv@linaro.org>
7055 * tree-ssa-reassoc.c (make_new_ssa_for_def): Use gimple_get_lhs
7056 to get lhs instead of gimple_assign_lhs as stmt can be builtins too.
7058 2016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
7060 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
7061 is_mm_consume, is_mm_acquire, is_mm_release, is_mm_acq_rel,
7062 is_mm_seq_cst, is_mm_sync): Move to ...
7063 * memmodel.h: This. New file.
7064 * builtins.c: Include memmodel.h.
7065 * optabs.c: Likewise.
7067 * config/aarch64/aarch64.c: Likewise.
7068 * config/alpha/alpha.c: Likewise.
7069 * config/arm/arm.c: Likewise.
7070 * config/i386/i386.c: Likewise.
7071 * config/ia64/ia64.c: Likewise.
7072 * config/mips/mips.c: Likewise.
7073 * config/rs6000/rs6000.c: Likewise.
7074 * config/sparc/sparc.c: Likewise.
7075 * genconditions.c: Include memmodel.h in generated file.
7076 * genemit.c: Likewise.
7077 * genoutput.c: Likewise.
7078 * genpeep.c: Likewise.
7079 * genpreds.c: Likewise.
7080 * genrecog.c: Likewise.
7082 2016-09-26 David Malcolm <dmalcolm@redhat.com>
7084 * read-rtl.c (read_rtx_code): Rename local "i" to "idx", and use
7085 "c" instead when parsing characters. Move operand parsing into...
7086 (read_rtx_operand): ...this new function, renaming "i" to "idx",
7087 and tightening the scope of various locals.
7089 2016-09-26 Liu Hao <lh_mouse@126.com>
7091 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Fix typo.
7093 2016-09-26 Marek Polacek <polacek@redhat.com>
7095 * system.h: Use __has_attribute to check whether the fallthrough
7096 attribute is supported.
7098 2016-09-26 Marek Polacek <polacek@redhat.com>
7100 * ipa-inline-analysis.c (find_foldable_builtin_expect): Use
7101 gimple_call_internal_p.
7102 * ipa-split.c (find_return_bb): Likewise.
7103 (execute_split_functions): Likewise.
7104 * omp-low.c (dump_oacc_loop_part): Likewise.
7105 (oacc_loop_xform_head_tail): Likewise.
7106 * predict.c (predict_loops): Likewise.
7107 * sanopt.c (pass_sanopt::execute): Likewise.
7108 * tree-cfg.c (get_abnormal_succ_dispatcher): Likewise.
7109 * tree-parloops.c (oacc_entry_exit_ok_1): Likewise.
7110 * tree-stdarg.c (gimple_call_ifn_va_arg_p): Remove function.
7111 (expand_ifn_va_arg_1): Use gimple_call_internal_p.
7112 (expand_ifn_va_arg): Likewise.
7113 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
7114 (optimize_mask_stores): Likewise.
7115 * tree-vect-stmts.c (vect_simd_lane_linear): Likewise.
7116 (vect_transform_stmt): Likewise.
7117 * tree-vectorizer.c (vect_loop_vectorized_call): Likewise.
7118 * tsan.c (instrument_memory_accesses): Likewise.
7120 2016-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7121 Alexander Monakov <amonakov@ispras.ru>
7123 * regrename.c (rename_chains): Check
7124 HARD_FRAME_POINTER_IS_FRAME_POINTER rather than
7125 HARD_FRAME_POINTER_REGNUM when picking unavailable registers.
7126 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
7128 2016-09-26 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7130 * config/s390/s390.c (s390_rtx_costs): Add /* fallthrough */.
7131 (s390_sched_score): Likewise.
7133 2016-09-26 Martin Liska <mliska@suse.cz>
7135 * doc/gcov.texi: Update program output of gcov tool.
7137 2016-09-26 Martin Liska <mliska@suse.cz>
7139 PR gcov-profile/23332
7140 * profile.c (instrument_values): Do not handle HIST_TYPE_CONST_DELTA.
7141 * tree-profile.c (gimple_gen_const_delta_profiler): Remove.
7142 * value-prof.c (dump_histogram_value): Do not handle
7143 HIST_TYPE_CONST_DELTA.
7144 (stream_in_histogram_value): Likewise.
7145 (gimple_find_values_to_profile): Likewise.
7146 * value-prof.h (enum hist_type): Likewise.
7148 2016-09-26 Martin Liska <mliska@suse.cz>
7150 * common.opt: Exclude SANITIZE_UNREACHABLE and SANITIZE_RETURN
7151 from default sanitize recover values.
7152 * doc/invoke.texi: Fix documentation related to -fsanitize=leak,
7153 -fsanitize=address, -fsanitize=thread and -fsanitize-recover.
7154 * flag-types.h: Replace couple of 1 << x to 1UL << x, make it
7156 * opts.c (finish_options): Do a generic loop over options
7157 that can be recovered.
7158 (parse_sanitizer_options): Exclude SANITIZE_UNREACHABLE and
7160 (common_handle_option): Likewise.
7161 * opts.h: Declare can_recover to sanitizer_opts_s.
7163 2016-09-26 Andre Vieira <andre.simoesdiasvieira@arm.com>
7165 * target.def(elf_flags_numeric): Change documentation to present tense.
7166 * doc/tm.texi: Regenerate.
7168 2016-09-26 Marek Polacek <polacek@redhat.com>
7171 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
7172 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Add
7173 -Wno-switch-fallthrough.
7174 * builtins.c (expand_builtin_int_roundingfn_2): Add gcc_fallthrough.
7175 (expand_builtin): Likewise.
7176 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass): Likewise.
7177 * convert.c (convert_to_real_1): Likewise.
7178 (convert_to_integer_1): Likewise.
7179 * final.c (output_alternate_entry_point): Likewise.
7180 * genattrtab.c (make_canonical): Likewise.
7181 (write_test_expr): Likewise.
7182 * genpreds.c (validate_exp): Likewise.
7183 * gimple-ssa-strength-reduction.c
7184 (find_candidates_dom_walker::before_dom_children): Likewise.
7185 * godump.c (go_format_type): Likewise.
7186 * reload1.c (elimination_effects): Likewise.
7187 * resource.c (mark_referenced_resources): Likewise.
7188 (mark_set_resources): Likewise.
7189 * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Likewise.
7190 * varasm.c (output_addressed_constants): Likewise.
7192 2016-09-26 Marek Polacek <polacek@redhat.com>
7195 * common.opt (Wimplicit-fallthrough): New option.
7196 * doc/extend.texi: Document statement attributes and the fallthrough
7198 * doc/invoke.texi: Document -Wimplicit-fallthrough.
7199 * gimple.h (gimple_call_internal_p): New function.
7200 * gimplify.c (struct gimplify_ctx): Add in_switch_expr.
7201 (struct label_entry): New struct.
7202 (find_label_entry): New function.
7203 (case_label_p): New function.
7204 (collect_fallthrough_labels): New function.
7205 (last_stmt_in_scope): New function.
7206 (should_warn_for_implicit_fallthrough): New function.
7207 (warn_implicit_fallthrough_r): New function.
7208 (maybe_warn_implicit_fallthrough): New function.
7209 (expand_FALLTHROUGH_r): New function.
7210 (expand_FALLTHROUGH): New function.
7211 (gimplify_switch_expr): Call maybe_warn_implicit_fallthrough and
7212 expand_FALLTHROUGH for the innermost GIMPLE_SWITCH.
7213 (gimplify_label_expr): New function.
7214 (gimplify_case_label_expr): Set location.
7215 (gimplify_expr): Call gimplify_label_expr.
7216 * internal-fn.c (expand_FALLTHROUGH): New function.
7217 * internal-fn.def (FALLTHROUGH): New internal function.
7218 * langhooks.c (lang_GNU_OBJC): New function.
7219 * langhooks.h (lang_GNU_OBJC): Declare.
7220 * system.h (gcc_fallthrough): Define.
7221 * tree-core.h: Add FALLTHROUGH_LABEL_P comment.
7222 * tree.h (FALLTHROUGH_LABEL_P): Define.
7224 2016-09-26 Richard Biener <rguenther@suse.de>
7226 * dwarf2out.c (stripattributes): Remove unused function.
7227 (DEBUG_NORM_MACINFO_SECTION): Rename to DEBUG_MACINFO_SECTION.
7228 Push dwarf_split_debug_info handling into init_sections_and_labels.
7229 (DEBUG_NORM_MACRO_SECTION): Likewise to DEBUG_MACRO_SECTION.
7230 (DEBUG_MACRO_SECTION_FLAGS): Remove.
7231 (debug_macinfo_section_name): New global.
7232 (output_macinfo): Use debug_macinfo_section_name.
7233 (init_sections_and_labels): Split out section and label generation
7234 from dwarf2out_init. Set debug_macinfo_section_name.
7235 (dwarf2out_init): Move text section label generation and emission
7237 (dwarf2out_assembly_start): ... here.
7238 (dwarf2out_finish): Call init_sections_and_labels before DWARF
7241 2016-09-26 Richard Biener <rguenther@suse.de>
7244 * cgraphunit.c (analyze_functions): Before early removing
7245 global vars calls the late_global_decl debug handler mark
7246 the variable as readonly.
7248 2016-09-25 Oleg Endo <olegendo@gcc.gnu.org>
7251 * config/sh/sh.c (sh_movt_set_dest, sh_movrt_set_dest): Add overloads.
7252 (sh_rtx_costs): Handle SET of movt and movrt patterns.
7253 * cnofig/sh/sh-protos.h (sh_movt_set_dest, sh_movrt_set_dest): Forward
7254 declare new overloads.
7255 * config/sh/sh.md (*cset_zero): Add variant that takes a treg_set_expr
7258 2016-09-24 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
7260 * config/rs6000/rs6000.c (expand_block_compare, do_load_for_compare):
7261 Change TARGET_LITTLE_ENDIAN to !BYTES_BIG_ENDIAN.
7263 2016-09-24 David Edelsohn <dje.gcc@gmail.com>
7265 * configure.ac (gcc_cv_as_aix_dwloc): Fix typo in assembly fragment.
7266 * configure: Regenerate.
7268 2016-09-24 Marek Polacek <polacek@redhat.com>
7271 * doc/invoke.texi: Document -Wbool-operation.
7273 2016-09-23 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
7275 * config/rs6000/rs6000.md (cmpmemsi): New define_expand.
7276 * config/rs6000/rs6000.c (expand_block_compare): New function used by
7277 cmpmemsi pattern to do builtin expansion of memcmp ().
7278 (compute_current_alignment): Add helper function for
7279 expand_block_compare used to compute alignment as the compare proceeds.
7280 (select_block_compare_mode): Used by expand_block_compare to select
7281 the mode used for reading the next chunk of bytes in the compare.
7282 (do_load_for_compare): Used by expand_block_compare to emit the load
7283 insns for the compare.
7284 (rs6000_emit_dot_insn): Moved this function to avoid a forward
7285 reference from expand_block_compare ().
7286 * config/rs6000/rs6000-protos.h (expand_block_compare): Add a
7287 prototype for this function.
7288 * config/rs6000/rs6000.opt (mblock-compare-inline-limit): Add a new
7289 target option for controlling how much code inline expansion of
7290 memcmp() will be allowed to generate.
7292 2016-09-23 Jakub Jelinek <jakub@redhat.com>
7294 * hooks.c (hook_bool_bool_false, hook_bool_bool_gcc_optionsp_false,
7295 hook_bool_mode_false, hook_bool_mode_true,
7296 hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
7297 hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
7298 hook_bool_const_rtx_insn_const_rtx_insn_true,
7299 hook_bool_mode_uhwi_false, hook_void_FILEptr_constcharptr,
7300 hook_bool_FILEptr_rtx_false, hook_bool_gsiptr_false,
7301 hook_bool_const_tree_hwi_hwi_const_tree_false,
7302 hook_bool_const_tree_hwi_hwi_const_tree_true,
7303 default_can_output_mi_thunk_no_vcall, hook_int_uint_mode_1,
7304 hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
7305 hook_int_rtx_0, hook_int_rtx_bool_0, hook_void_tree,
7306 hook_void_constcharptr, hook_void_tree_treeptr, hook_void_int_int,
7307 hook_bool_tree_false, hook_bool_const_tree_false, hook_bool_tree_true,
7308 hook_bool_const_tree_true, hook_bool_tree_tree_false,
7309 hook_bool_tree_tree_true, hook_bool_tree_bool_false,
7310 hook_bool_rtx_insn_true, hook_bool_rtx_false,
7311 hook_bool_uintp_uintp_false,
7312 hook_bool_rtx_mode_int_int_intp_bool_false, hook_rtx_rtx_null,
7313 hook_rtx_tree_int_null, hook_uint_mode_0,
7314 hook_constcharptr_const_tree_null, hook_tree_tree_int_treep_bool_null,
7315 hook_tree_tree_tree_null, hook_tree_tree_tree_tree_null,
7316 hook_constcharptr_const_rtx_insn_null,
7317 hook_constcharptr_const_tree_const_tree_null,
7318 hook_constcharptr_int_const_tree_null,
7319 hook_constcharptr_int_const_tree_const_tree_null,
7320 hook_tree_const_tree_null, hook_bool_rtx_insn_int_false,
7321 hook_void_rtx_insn_int, hook_void_gcc_optionsp): For arguments with
7322 ATTRIBUTE_UNUSED, remove parameter name as well as ATTRIBUTE_UNUSED.
7324 * vec.h (vNULL): Extend comment to say = vNULL initialization
7325 isn't needed for static vars.
7327 * sel-sched-ir.c (sel_global_bb_info, sel_region_bb_info,
7328 loop_nests, s_i_d, last_added_blocks): Remove unnecessary
7329 = vNULL initialization of file scope vec.
7330 * passes.c (pass_tab, enabled_pass_uid_range_tab,
7331 disabled_pass_uid_range_tab): Likewise.
7332 * haifa-sched.c (sched_luids, h_i_d): Likewise.
7333 * tree-chkp-opt.c (check_infos): Likewise.
7334 * sel-sched.c (vec_av_set, vec_temp_moveop_nops): Likewise.
7336 * vec.h (vnull::operator vec): Add constexpr keyword for
7339 2016-09-23 Doug Gilmore <doug.gilmore@imgtec.com>
7341 PR tree-optimization/77654
7342 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Add call
7343 to duplicate_ssa_name_ptr_info.
7345 2016-09-23 David Malcolm <dmalcolm@redhat.com>
7347 PR preprocessor/77672
7348 * input.c (selftest::test_lexer_string_locations_simple): Update
7349 test to expect location information of the terminator character
7350 at the location of the final closing quote.
7351 (selftest::test_lexer_string_locations_hex): Likewise.
7352 (selftest::test_lexer_string_locations_oct): Likewise.
7353 (selftest::test_lexer_string_locations_letter_escape_1): Likewise.
7354 (selftest::test_lexer_string_locations_letter_escape_2): Likewise.
7355 (selftest::test_lexer_string_locations_ucn4): Likewise.
7356 (selftest::test_lexer_string_locations_ucn8): Likewise.
7357 (selftest::test_lexer_string_locations_u8): Likewise.
7358 (selftest::test_lexer_string_locations_utf8_source): Likewise.
7359 (selftest::test_lexer_string_locations_concatenation_1): Likewise.
7360 (selftest::test_lexer_string_locations_concatenation_2): Likewise.
7361 (selftest::test_lexer_string_locations_concatenation_3): Likewise.
7362 (selftest::test_lexer_string_locations_macro): Likewise.
7363 (selftest::test_lexer_string_locations_long_line): Likewise.
7365 2016-09-23 Richard Biener <rguenther@suse.de>
7367 * tree-ssa-sccvn.c (visit_reference_op_call): Value number
7368 virtual definition to virtual use if the call devirtualizes
7369 to a const or pure function.
7370 (visit_use): Also visit calls we can devirtualize to a
7371 const or pure function.
7373 2016-09-23 Richard Biener <rguenther@suse.de>
7375 PR tree-optimization/77697
7376 * tree-ssa-forwprop.c (defcodefor_name): Remove bogus code,
7377 signal error if we have sth ternary or unhandled.
7379 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
7381 * config/arm/arm_neon.h (vabd_f16): New.
7415 (vcvt_f16_s16): New.
7416 (vcvt_f16_u16): New.
7417 (vcvt_s16_f16): New.
7418 (vcvt_u16_f16): New.
7419 (vcvtq_f16_s16): New.
7420 (vcvtq_f16_u16): New.
7421 (vcvtq_s16_f16): New.
7422 (vcvtq_u16_f16): New.
7423 (vcvta_s16_f16): New.
7424 (vcvta_u16_f16): New.
7425 (vcvtaq_s16_f16): New.
7426 (vcvtaq_u16_f16): New.
7427 (vcvtm_s16_f16): New.
7428 (vcvtm_u16_f16): New.
7429 (vcvtmq_s16_f16): New.
7430 (vcvtmq_u16_f16): New.
7431 (vcvtn_s16_f16): New.
7432 (vcvtn_u16_f16): New.
7433 (vcvtnq_s16_f16): New.
7434 (vcvtnq_u16_f16): New.
7435 (vcvtp_s16_f16): New.
7436 (vcvtp_u16_f16): New.
7437 (vcvtpq_s16_f16): New.
7438 (vcvtpq_u16_f16): New.
7439 (vcvt_n_f16_s16): New.
7440 (vcvt_n_f16_u16): New.
7441 (vcvtq_n_f16_s16): New.
7442 (vcvtq_n_f16_u16): New.
7443 (vcvt_n_s16_f16): New.
7444 (vcvt_n_u16_f16): New.
7445 (vcvtq_n_s16_f16): New.
7446 (vcvtq_n_u16_f16): New.
7460 (vmul_lane_f16): New.
7463 (vmulq_lane_f16): New.
7485 (vrsqrteq_f16): New.
7489 (vrsqrtsq_f16): New.
7493 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
7495 * config.gcc (extra_headers): Add arm_fp16.h
7496 * config/arm/arm_fp16.h: New.
7497 * config/arm/arm_neon.h: Include "arm_fp16.h".
7499 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
7501 * config/arm/arm_neon_builtins.def (vadd): New (v8hf, v4hf
7503 (vmulf): New (v8hf, v4hf variants).
7504 (vfma): New (v8hf, v4hf variants).
7505 (vfms): New (v8hf, v4hf variants).
7506 (vsub): New (v8hf, v4hf variants).
7507 (vcage): New (v8hf, v4hf variants).
7508 (vcagt): New (v8hf, v4hf variants).
7509 (vcale): New (v8hf, v4hf variants).
7510 (vcalt): New (v8hf, v4hf variants).
7511 (vceq): New (v8hf, v4hf variants).
7512 (vcgt): New (v8hf, v4hf variants).
7513 (vcge): New (v8hf, v4hf variants).
7514 (vcle): New (v8hf, v4hf variants).
7515 (vclt): New (v8hf, v4hf variants).
7516 (vceqz): New (v8hf, v4hf variants).
7517 (vcgez): New (v8hf, v4hf variants).
7518 (vcgtz): New (v8hf, v4hf variants).
7519 (vcltz): New (v8hf, v4hf variants).
7520 (vclez): New (v8hf, v4hf variants).
7521 (vabd): New (v8hf, v4hf variants).
7522 (vmaxf): New (v8hf, v4hf variants).
7523 (vmaxnm): New (v8hf, v4hf variants).
7524 (vminf): New (v8hf, v4hf variants).
7525 (vminnm): New (v8hf, v4hf variants).
7526 (vpmaxf): New (v4hf variant).
7527 (vpminf): New (v4hf variant).
7528 (vpadd): New (v4hf variant).
7529 (vrecps): New (v8hf, v4hf variants).
7530 (vrsqrts): New (v8hf, v4hf variants).
7531 (vabs): New (v8hf, v4hf variants).
7532 (vneg): New (v8hf, v4hf variants).
7533 (vrecpe): New (v8hf, v4hf variants).
7534 (vrnd): New (v8hf, v4hf variants).
7535 (vrnda): New (v8hf, v4hf variants).
7536 (vrndm): New (v8hf, v4hf variants).
7537 (vrndn): New (v8hf, v4hf variants).
7538 (vrndp): New (v8hf, v4hf variants).
7539 (vrndx): New (v8hf, v4hf variants).
7540 (vrsqrte): New (v8hf, v4hf variants).
7541 (vmul_lane): Add v4hf and v8hf variants.
7542 (vmul_n): Add v4hf and v8hf variants.
7543 (vext): New (v8hf, v4hf variants).
7544 (vcvts): New (v8hi, v4hi variants).
7545 (vcvts): New (v8hf, v4hf variants).
7546 (vcvtu): New (v8hi, v4hi variants).
7547 (vcvtu): New (v8hf, v4hf variants).
7548 (vcvts_n): New (v8hf, v4hf variants).
7549 (vcvtu_n): New (v8hi, v4hi variants).
7550 (vcvts_n): New (v8hi, v4hi variants).
7551 (vcvtu_n): New (v8hf, v4hf variants).
7552 (vbsl): New (v8hf, v4hf variants).
7553 (vcvtas): New (v8hf, v4hf variants).
7554 (vcvtau): New (v8hf, v4hf variants).
7555 (vcvtms): New (v8hf, v4hf variants).
7556 (vcvtmu): New (v8hf, v4hf variants).
7557 (vcvtns): New (v8hf, v4hf variants).
7558 (vcvtnu): New (v8hf, v4hf variants).
7559 (vcvtps): New (v8hf, v4hf variants).
7560 (vcvtpu): New (v8hf, v4hf variants).
7562 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
7564 * config/arm/arm-builtins.c (hf_UP): New.
7566 (vfp_builtin_data): New. Update comment.
7567 (enum arm_builtins): Include "arm_vfp_builtins.def".
7568 (ARM_BUILTIN_VFP_PATTERN_START): New.
7569 (arm_init_vfp_builtins): New.
7570 (arm_init_builtins): Add arm_init_vfp_builtins.
7571 (arm_expand_vfp_builtin): New.
7572 (arm_expand_builtins): Update for arm_expand_vfp_builtin. Fix
7574 * config/arm/arm_vfp_builtins.def: New file.
7575 * config/arm/t-arm (arm.o): Add arm_vfp_builtins.def.
7576 (arm-builtins.o): Likewise.
7578 2016-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
7581 * ipa-cp.c (propagate_vr_accross_jump_function): Drop TREE_OVERFLOW
7582 from constant while creating value range.
7584 2016-09-23 Renlin Li <renlin.li@arm.com>
7586 * ira.c (ira): Move ira_use_lra_p initialization code to ...
7587 (ira_init_once): Here.
7589 2016-09-23 Uros Bizjak <ubizjak@gmail.com>
7590 Jakub Jelinek <jakub@redhat.com>
7592 * hooks.h (hook_uint_uintp_false): Rename to...
7593 (hook_bool_uint_uintp_false): ... this.
7594 * hooks.c (hook_uint_uintp_false): Rename to...
7595 (hook_bool_uint_uintp_false): ... this.
7596 * target.def (elf_flags_numeric): Use hook_bool_uint_uintp_false
7597 instead of hook_uint_uintp_false.
7599 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
7601 * config/arm/arm-builtins.c (arm_init_neon_builtin): New.
7602 (arm_init_builtins): Move body of a loop to the standalone
7603 function arm_init_neon_builtin.
7604 (arm_expand_neon_builtin_1): New. Update comment. Function body
7605 moved from arm_neon_builtin with some white-space fixes.
7606 (arm_expand_neon_builtin): Move code into the standalone function
7607 arm_expand_neon_builtin_1.
7609 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
7611 * config/arm/iterators.md (VCVTHI): New.
7612 (NEON_VCMP): Add UNSPEC_VCLT and UNSPEC_VCLE. Fix a long line.
7616 (V_reg): Add HF, V4HF and V8HF. Fix white-space.
7617 (V_HALF): Add V4HF. Fix white-space.
7618 (V_if_elem): Add HF, V4HF and V8HF. Fix white-space.
7619 (V_s_elem): Likewise.
7620 (V_sz_elem): Fix white-space.
7621 (V_elem_ch): Likewise.
7623 (scalar_mul_constraint): Add V8HF and V4HF.
7624 (Is_float_mode): Fix white-space.
7625 (Is_d_reg): Add V4HF and V8HF. Fix white-space.
7626 (q): Add HF. Fix white-space.
7629 (cmp_op_unsp): Add UNSPEC_VCALE and UNSPEC_VCALT.
7630 (neon_vfm_lane_as): New.
7631 * config/arm/neon.md (add<mode>3_fp16): New.
7632 (sub<mode>3_fp16): New.
7633 (mul<mode>3add<mode>_neon): New.
7634 (fma<VH:mode>4_intrinsic): New.
7635 (fmsub<VCVTF:mode>4_intrinsic): Fix white-space.
7636 (fmsub<VH:mode>4_intrinsic): New.
7637 (<absneg_str><mode>2): New.
7638 (neon_v<absneg_str><mode>): New.
7639 (neon_v<fp16_rnd_str><mode>): New.
7640 (neon_vrsqrte<mode>): New.
7641 (neon_vpaddv4hf): New.
7642 (neon_vadd<mode>): New.
7643 (neon_vsub<mode>): New.
7644 (neon_vmulf<mode>): New.
7645 (neon_vfma<VH:mode>): New.
7646 (neon_vfms<VH:mode>): New.
7647 (neon_vc<cmp_op><mode>): New.
7648 (neon_vc<cmp_op><mode>_fp16insn): New
7649 (neon_vc<cmp_op_unsp><mode>_fp16insn_unspec): New.
7650 (neon_vca<cmp_op><mode>): New.
7651 (neon_vca<cmp_op><mode>_fp16insn): New.
7652 (neon_vca<cmp_op_unsp><mode>_fp16insn_unspec): New.
7653 (neon_vc<cmp_op>z<mode>): New.
7654 (neon_vabd<mode>): New.
7655 (neon_v<maxmin>f<mode>): New.
7656 (neon_vp<maxmin>fv4hf: New.
7657 (neon_<fmaxmin_op><mode>): New.
7658 (neon_vrecps<mode>): New.
7659 (neon_vrsqrts<mode>): New.
7660 (neon_vrecpe<mode>): New (VH variant).
7661 (neon_vdup_lane<mode>_internal): New.
7662 (neon_vdup_lane<mode>): New.
7663 (neon_vcvt<sup><mode>): New (VCVTHI variant).
7664 (neon_vcvt<sup><mode>): New (VH variant).
7665 (neon_vcvt<sup>_n<mode>): New (VH variant).
7666 (neon_vcvt<sup>_n<mode>): New (VCVTHI variant).
7667 (neon_vcvt<vcvth_op><sup><mode>): New.
7668 (neon_vmul_lane<mode>): New.
7669 (neon_vmul_n<mode>): New.
7670 * config/arm/unspecs.md (UNSPEC_VCALE): New
7671 (UNSPEC_VCALT): New.
7672 (UNSPEC_VFMA_LANE): New.
7673 (UNSPECS_VFMS_LANE): New.
7675 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
7677 * config/s390/s390.md ("*extzv<mode>_zEC12", "*extzv<mode>_z10")
7678 ("*extzv<mode><clobbercc_or_nocc>"):
7679 Correct a typo in a comment.
7681 ("*insv<mode>_zEC12", "*insv<mode>_z10")
7682 ("*insv<mode><clobbercc_or_nocc>"): Ditto.
7683 ("*insv<mode>_zEC12_appendbitsleft")
7684 ("*insv<mode><clobbercc_or_nocc>_appendbitsleft")
7685 ("*insv<mode>_z10_appendbitsleft"): Ditto.
7686 ("*insv<mode>_zEC12_noshift", "*insv<mode>_z10_noshift")
7687 ("*insv<mode><clobbercc_or_nocc>_noshift"): Ditto.
7688 Provide pattern with operands switched.
7689 ("*pre_z10_extv<mode>"):
7690 Use new subst patterns.
7691 ("*extzvdi<clobbercc_or_nocc>_lshiftrt", "*<risbg_n>_ior_and_sr_ze")
7692 ("*extvsidi<clobbercc_or_nocc>", "*<risbg_n>_and_subregdi_rotr")
7693 ("*<risbg_n>_and_subregdi_rotl", "*<risbg_n>_di_and_rot")
7694 ("*insv_z10_noshift_cc", "*insv_z10_noshift_cconly")
7695 ("*<risbg_n>_<mode>_ior_and_lshiftrt")
7696 ("*<risbg_n>_sidi_ior_and_lshiftrt")
7697 ("*trunc_sidi_and_subreg_lshrt<clobbercc_or_nocc>"):
7699 ("*extzv_<mode>_sll", "*extzv_<mode>_srl")
7700 ("*extzv_<mode>_srl<clobbercc_or_nocc>")
7701 ("*extzv_<mode>_sll<clobbercc_or_nocc>"): Renamed patterns, use risbgn
7703 ("SINT"): New mode_iterator with SI, HI, QI.
7704 * config/s390/subst.md ("clobbercc_or_nocc_subst", "z10_or_zEC12_cond")
7705 ("clobbercc_or_nocc", "risbg_n"): New constructs for risbg pattern
7708 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
7710 * config/s390/predicates.md ("contiguous_bitmask_operand"): Adapt to
7711 new interface of s390_contiguous_bitmask_p.
7712 ("contiguous_bitmask_nowrap_operand"): New predicate.
7713 ("*anddi3_cc", "*anddi3_cconly", "*anddi3"): Replace NxxDq with NxxDw.
7714 * config/s390/constraints.md ("NxxDw", "NxxSq"): Adapt to new interface
7715 of s390_contiguous_bitmask_p.
7716 ("NxxDw"): Rename NxxDq constraint to NxxDw.
7717 ("NxxSw"): New constraint.
7718 * config/s390/s390.md ("*andsi3_zarch"): Enable bitmask wraparound.
7719 * config/s390/s390-protos.h (s390_contiguous_bitmask_p): Updated
7721 (s390_contiguous_bitmask_nowrap_p): Export.
7722 * config/s390/s390.c (s390_contiguous_bitmask_nowrap_p): New name of
7723 former s390_contiguous_bitmask_p.
7724 (s390_contiguous_bitmask_p): Use s390_contiguous_bitmask_nowrap_p to
7725 detect contiguous bit ranges with wraparound. Change signature to
7726 return START and END position instead of POS and LENGTH.
7727 (s390_contiguous_bitmask_vector_p): Remove extra code for continous bit
7728 ranges with wraparound.
7729 (s390_extzv_shift_ok): Use s390_contiguous_bitmask_nowrap_p.
7730 (s390_contiguous_bitmask_vector_p,s390_extzv_shift_ok,print_operand):
7731 Adapt to new signature of s390_contiguous_bitmask_p.
7733 2016-09-23 Bin Cheng <bin.cheng@arm.com>
7735 * tree-vect-loop-manip.c (create_intersect_range_checks_index): New.
7736 (create_intersect_range_checks): New.
7737 (vect_create_cond_for_alias_checks): Call above function.
7739 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
7741 * config/arm/iterators.md (Code iterators): Fix some white-space
7745 (FCVT): Moved from vfp.md.
7746 (VCVT_HF_US_N): New.
7747 (VCVT_SI_US_N): New.
7752 (FCVTI32typename): Moved from vfp.md.
7753 (sup): Add UNSPEC_VCVTA_S, UNSPEC_VCVTA_U, UNSPEC_VCVTM_S,
7754 UNSPEC_VCVTM_U, UNSPEC_VCVTN_S, UNSPEC_VCVTN_U, UNSPEC_VCVTP_S,
7755 UNSPEC_VCVTP_U, UNSPEC_VCVT_HF_S_N, UNSPEC_VCVT_HF_U_N,
7756 UNSPEC_VCVT_SI_S_N, UNSPEC_VCVT_SI_U_N, UNSPEC_VCVTH_S_N,
7757 UNSPEC_VCVTH_U_N, UNSPEC_VCVTH_S and UNSPEC_VCVTH_U.
7759 (fp16_rnd_str): New.
7760 (fp16_rnd_insn): New.
7761 * config/arm/unspecs.md (UNSPEC_VCVT_HF_S_N): New.
7762 (UNSPEC_VCVT_HF_U_N): New.
7763 (UNSPEC_VCVT_SI_S_N): New.
7764 (UNSPEC_VCVT_SI_U_N): New.
7765 (UNSPEC_VCVTH_S): New.
7766 (UNSPEC_VCVTH_U): New.
7767 (UNSPEC_VCVTA_S): New.
7768 (UNSPEC_VCVTA_U): New.
7769 (UNSPEC_VCVTM_S): New.
7770 (UNSPEC_VCVTM_U): New.
7771 (UNSPEC_VCVTN_S): New.
7772 (UNSPEC_VCVTN_U): New.
7773 (UNSPEC_VCVTP_S): New.
7774 (UNSPEC_VCVTP_U): New.
7775 (UNSPEC_VCVTP_S): New.
7776 (UNSPEC_VCVTP_U): New.
7778 (UNSPEC_VRNDA): New.
7779 (UNSPEC_VRNDI): New.
7780 (UNSPEC_VRNDM): New.
7781 (UNSPEC_VRNDN): New.
7782 (UNSPEC_VRNDP): New.
7783 (UNSPEC_VRNDX): New.
7784 * config/arm/vfp.md (<absneg_str>hf2): New.
7786 (neon_v<fp16_rnd_str>hf): New.
7787 (neon_vrndihf): New.
7792 (*mulsf3neghf_vfp): New.
7793 (*negmulhf3_vfp): New.
7794 (*mulsf3addhf_vfp): New.
7795 (*mulhf3subhf_vfp): New.
7796 (*mulhf3neghfaddhf_vfp): New.
7797 (*mulhf3neghfsubhf_vfp): New.
7800 (fmsubhf4_fp16): New.
7804 (neon_vsqrthf): New.
7805 (neon_vrsqrtshf): New.
7806 (FCVT): Move to iterators.md.
7807 (FCVTI32typename): Likewise.
7808 (neon_vcvth<sup>hf): New.
7809 (neon_vcvth<sup>si): New.
7810 (neon_vcvth<sup>_nhf_unspec): New.
7811 (neon_vcvth<sup>_nhf): New.
7812 (neon_vcvth<sup>_nsi_unspec): New.
7813 (neon_vcvth<sup>_nsi): New.
7814 (neon_vcvt<vcvth_op>h<sup>si): New.
7815 (neon_<fmaxmin_op>hf): New.
7817 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
7819 * config/s390/s390.md (bitoff, bitoff_plus): Neq mode attributes.
7820 ("*extzv<mode>_zEC12", "*insv<mode>_zEC12", "*insv<mode>_z10")
7821 ("*insv<mode>_zEC12_appendbitsleft")
7822 ("*insv<mode>_z10_appendbitsleft", "*r<noxa>sbg_<mode>_sll")
7823 ("*r<noxa>sbg_<mode>_srl"): Use new attributes.
7825 2016-09-23 Jakub Jelinek <jakub@redhat.com>
7827 * ipa-cp.c (ipcp_store_vr_results): Avoid static local var zero.
7828 * sreal.h (sreal::min, sreal::max): Avoid static local vars,
7829 construct values without normalization.
7830 * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't initialize
7831 static local lhs_ops to vNULL.
7833 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
7834 Jiong Wang <jiong.wang@arm.com>
7836 * config/arm/arm.c (coproc_secondary_reload_class): Make HFmode
7837 available when FP16 instructions are available.
7838 (output_move_vfp): Add support for 16-bit data moves.
7839 (arm_validize_comparison): Fix some white-space. Support HFmode
7840 by conversion to SFmode.
7841 * config/arm/arm.md (truncdfhf2): Fix a comment.
7842 (extendhfdf2): Likewise.
7844 (movsicc): Fix some white-space.
7846 (movsfcc): Fix some white-space.
7848 * config/arm/vfp.md (*arm_movhi_vfp): Disable when VFP FP16
7849 instructions are available.
7850 (*thumb2_movhi_vfp): Likewise.
7851 (*arm_movhi_fp16): New.
7852 (*thumb2_movhi_fp16): New.
7853 (*movhf_vfp_fp16): New.
7854 (*movhf_vfp_neon): Disable when VFP FP16 instructions are available.
7855 (*movhf_vfp): Likewise.
7856 (extendhfsf2): Enable when VFP FP16 instructions are available.
7857 (truncsfhf2): Enable when VFP FP16 instructions are available.
7859 2016-09-23 Martin Liska <mliska@suse.cz>
7861 * config/s390/vx-builtins.md: Replace 'adress' with 'address'.
7863 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
7865 * config/arm/arm.c (arm_evpc_neon_vuzp): Add support for V8HF and
7867 (arm_evpc_neon_vtrn): Likewise.
7868 (arm_evpc_neon_vrev): Likewise.
7869 (arm_evpc_neon_vext): Likewise.
7870 * config/arm/arm_neon.h (vbsl_f16): New.
7874 (vdup_lane_f16): New.
7875 (vdupq_lane_f16): New.
7888 * config/arm/arm_neon_buillins.def (vdup_n): New (v8hf, v4hf variants).
7889 (vdup_lane): New (v8hf, v4hf variants).
7890 (vext): New (v8hf, v4hf variants).
7891 (vbsl): New (v8hf, v4hf variants).
7892 * config/arm/iterators.md (VDQWH): New.
7894 (V_double_vector_mode): Add V8HF and V4HF. Fix white-space.
7895 (Scalar_mul_8_16): Fix white-space.
7896 (Is_d_reg): Add V4HF and V8HF.
7897 * config/arm/neon.md (neon_vdup_lane<mode>_internal): New.
7898 (neon_vdup_lane<mode>): New.
7899 (neon_vtrn<mode>_internal): Replace VDQW with VDQWH.
7900 (*neon_vtrn<mode>_insn): Likewise.
7901 (neon_vzip<mode>_internal): Likewise. Also fix white-space.
7902 (*neon_vzip<mode>_insn): Likewise
7903 (neon_vuzp<mode>_internal): Likewise.
7904 (*neon_vuzp<mode>_insn): Likewise
7905 * config/arm/vec-common.md (vec_perm_const<mode>): New.
7907 2016-09-23 Jiong Wang <jiong.wang@arm.com>
7908 Matthew Wahab <matthew.wahab@arm.com>
7910 * config/arm/arm.c (output_move_vfp): Weaken assert to allow HImode.
7911 (arm_hard_regno_mode_ok): Allow HImode values in VFP registers.
7912 * config/arm/arm.md (*movhi_bytes): Disable when VFP registers are
7913 available. Also fix some white-space.
7914 * config/arm/vfp.md (*arm_movhi_vfp): New.
7915 (*thumb2_movhi_vfp): New.
7917 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
7919 * config/arm/arm-c.c (arm_cpu_builtins): Define
7920 "__ARM_FEATURE_FP16_SCALAR_ARITHMETIC" and
7921 "__ARM_FEATURE_FP16_VECTOR_ARITHMETIC".
7923 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
7925 * doc/sourcebuild.texi (ARM-specific attributes): Add anchor for
7926 arm_v8_1a_neon_ok. Add entries for arm_v8_2a_fp16_scalar_ok,
7927 arm_v8_2a_fp16_scalar_hw, arm_v8_2a_fp16_neon_ok and
7928 arm_v8_2a_fp16_neon_hw.
7929 (Add options): Add entries for arm_v8_1a_neon, arm_v8_2a_scalar,
7932 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
7934 * doc/sourcebuild.texi (ARM-specific attributes): Add entries for
7935 arm_fp16_alternative_ok and arm_fp16_none_ok.
7937 2016-09-23 Martin Liska <mliska@suse.cz>
7939 * ipa-icf.c (sem_variable::merge): Replace adress with address.
7941 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
7943 * config/arm/arm-arches.def ("armv8.1-a"): Add FL_CRC32.
7945 ("armv8.2-a+fp16"): New.
7946 * config/arm/arm-protos.h (FL2_ARCH8_2): New.
7947 (FL2_FP16INST): New.
7948 (FL2_FOR_ARCH8_2A): New.
7949 * config/arm/arm-tables.opt: Regenerate.
7950 * config/arm/arm.c (arm_arch8_2): New.
7951 (arm_fp16_inst): New.
7952 (arm_option_override): Set arm_arch8_2 and arm_fp16_inst. Check
7953 for incompatible fp16-format settings.
7954 * config/arm/arm.h (TARGET_VFP_FP16INST): New.
7955 (TARGET_NEON_FP16INST): New.
7956 (arm_arch8_2): Declare.
7957 (arm_fp16_inst): Declare.
7958 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for
7959 march=armv8.2-a and march=armv8.2-a+fp16.
7960 * config/arm/t-aprofile (Arch Matches): Add entries for armv8.2-a
7962 * doc/invoke.texi (ARM Options): Add "-march=armv8.1-a",
7963 "-march=armv8.2-a" and "-march=armv8.2-a+fp16".
7965 2016-09-23 Martin Liska <mliska@suse.cz>
7967 * doc/extend.texi: Remove fused-madd from i386 target options.
7969 2016-09-23 Martin Liska <mliska@suse.cz>
7971 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
7974 2016-09-23 Martin Liska <mliska@suse.cz>
7976 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
7979 2016-09-23 Martin Liska <mliska@suse.cz>
7982 * config/i386/i386.c (ix86_option_override_internal): Change
7983 signature and return false when there's an error related to
7985 (release_options_strings): New function.
7986 (ix86_valid_target_attribute_tree): Call the function.
7988 2016-09-23 Jakub Jelinek <jakub@redhat.com>
7990 * hsa-gen.c (hsa_op_immed::hsa_op_immed Use CONSTRUCTOR_NELTS (...)
7991 instead of vec_safe_length (CONSTRUCTOR_ELTS (...)).
7992 (gen_hsa_ctor_assignment): Likewise.
7993 * print-tree.c (print_node): Likewise.
7994 * tree-dump.c (dequeue_and_dump): Likewise.
7995 * tree-sra.c (sra_modify_constructor_assign): Likewise.
7996 * expr.c (store_constructor): Likewise.
7997 * fold-const.c (operand_equal_p): Likewise.
7998 * tree-pretty-print.c (dump_generic_node): Likewise.
7999 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Likewise.
8000 * ipa-icf-gimple.c (func_checker::compare_operand): Likewise.
8002 2016-09-23 Richard Biener <rguenther@suse.de>
8004 * hooks.h (hook_uint_uintp_false): Declare.
8006 2016-09-22 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8008 * config/avr/avr.c (avr_rtx_costs_1): Handle DImode MULT.
8009 (avr_address_cost): Replace 61 with MAX_LD_OFFSET(mode).
8011 2016-09-22 Martin Sebor <msebor@redhat.com>
8014 * gimple-ssa-sprintf.c (target_int_min, target_int_max): Use
8015 HOST_BITS_PER_WIDE_INT, make a static local variable auto.
8016 (target_int_min): Correct computation.
8017 (format_integer): Use long long as the argument for the ll length
8019 (format_floating): Use target_int_max().
8020 (get_string_length): Same.
8021 (format_string): Avoid setting the bounded flag for strings
8023 (try_substitute_return_value): Avoid setting range info when
8024 the result isn't bounded.
8025 * varasm.c (assemble_name): Increase buffer size.
8027 2016-09-22 Andre Vieira <andre.simoesdiasvieira@arm.com>
8028 Terry Guo <terry.guo@arm.com>
8030 * target.def (elf_flags_numeric): New target hook.
8031 * targhooks.h (default_asm_elf_flags_numeric): New.
8032 * varasm.c (default_asm_elf_flags_numeric): New.
8033 (default_elf_asm_named_section): Use new target hook.
8034 * config/arm/arm.opt (mpure-code): New.
8035 * config/arm/arm.h (SECTION_ARM_PURECODE): New.
8036 * config/arm/arm.c (arm_asm_init_sections): Add section
8037 attribute to default text section if -mpure-code.
8038 (arm_option_check_internal): Diagnose use of option with
8039 non supported targets and/or options.
8040 (arm_asm_elf_flags_numeric): New.
8041 (arm_function_section): New.
8042 (arm_elf_section_type_flags): New.
8043 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Disable
8045 * doc/texi (TARGET_ASM_ELF_FLAGS_NUMERIC): New.
8046 * doc/texi.in (TARGET_ASM_ELF_FLAGS_NUMERIC): Likewise.
8048 2016-09-22 Jan Hubicka <hubicka@ucw.cz>
8050 * regcprop.c (copyprop_hardreg_forward_1): Remove noop moves.
8052 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8054 * emit-rtl.c (next_cc0_user): Make argument type rtx_insn *.
8055 * rtl.h: Adjust prototype.
8057 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8059 * emit-rtl.c (next_active_insn): Change argument type to rtx_insn *.
8060 (prev_active_insn): Likewise.
8061 (active_insn_p): Likewise.
8062 * rtl.h: Adjust prototypes.
8063 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
8064 * config/arc/arc.md: Likewise.
8065 * config/pa/pa.c (branch_to_delay_slot_p): Likewise.
8066 (branch_needs_nop_p): Likewise.
8067 (use_skip_p): Likewise.
8068 * config/sh/sh.c (gen_block_redirect): Likewise.
8069 (split_branches): Likewise.
8070 * reorg.c (optimize_skip): Likewise.
8071 (fill_simple_delay_slots): Likewise.
8072 (fill_slots_from_thread): Likewise.
8073 (relax_delay_slots): Likewise.
8074 * resource.c (mark_target_live_regs): Likewise.
8076 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8078 * config/cris/cris.c (cris_asm_output_case_end): Change argument
8080 * emit-rtl.c (next_nonnote_nondebug_insn): Likewise.
8081 (prev_nonnote_nondebug_insn): Likewise.
8082 * config/cris/cris-protos.h: Adjust prototype.
8084 * jump.c (rtx_renumbered_equal_p): Adjust.
8086 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8088 * emit-rtl.c (prev_real_insn): Change argument type to rtx_insn *.
8089 * rtl.h: Adjust prototype.
8090 * config/sh/sh.md: Adjust.
8091 * dwarf2out.c (add_var_loc_to_decl): Likewise.
8093 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8095 * emit-rtl.c (next_nondebug_insn): Change argument type to rtx_insn *.
8096 (prev_nondebug_insn): Likewise.
8097 * loop-doloop.c (doloop_condition_get): Likewise.
8098 * rtl.h: Adjust prototype.
8099 * cfgloop.h: Likewise.
8101 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8103 * emit-rtl.c (next_nonnote_insn): Change argument type to rtx_insn *.
8104 (prev_nonnote_insn): Likewise.
8105 * jump.c (reversed_comparison_code_parts): Likewise.
8106 (reversed_comparison): Likewise.
8107 * rtl.h: Adjust prototypes.
8108 * config/arc/arc.md: Adjust.
8109 * cse.c (find_comparison_args): Likewise.
8110 * reorg.c (redundant_insn): Change return type to rtx_insn *.
8111 (fix_reg_dead_note): Change argument type to rtx_insn *.
8112 (delete_prior_computation): Likewise.
8113 (delete_computation): Likewise.
8114 (fill_slots_from_thread): Adjust.
8115 (relax_delay_slots): Likewise.
8116 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
8117 (simplify_relational_operation_1): Likewise.
8118 (simplify_ternary_operation): Likewise.
8120 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8122 * config/arc/arc-protos.h (arc_label_align): Change type of
8123 variables from rtx to rtx_insn *.
8124 * config/arc/arc.c (arc_label_align): Likewise.
8125 * config/arm/arm.c (any_sibcall_could_use_r3): Likewise.
8126 * config/bfin/bfin.c (workaround_speculation): Likewise.
8127 * config/c6x/c6x.c (find_next_cycle_insn): Likewise.
8128 (find_last_same_clock): Likewise.
8129 (reorg_split_calls): Likewise.
8130 * config/cris/cris-protos.h (cris_cc0_user_requires_cmp): Likewise.
8131 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise.
8132 * config/h8300/h8300-protos.h (same_cmp_preceding_p): Likewise.
8133 (same_cmp_following_p): Likewise.
8134 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise.
8135 (same_cmp_following_p): Likwise.
8136 * config/m32r/m32r.c (m32r_expand_epilogue): Likewise.
8137 * config/nds32/nds32-protos.h (nds32_target_alignment): Likewise.
8138 * config/nds32/nds32.c (nds32_target_alignment): Likewise.
8139 * config/rl78/rl78.c (rl78_alloc_physical_registers_op2): Likewise.
8140 (rl78_alloc_physical_registers_cmp): Likewise.
8141 (rl78_alloc_physical_registers_umul): Likewise.
8142 (rl78_calculate_death_notes): Likewise.
8143 * config/s390/s390-protos.h (s390_label_align): Likewise.
8144 * config/s390/s390.c (s390_label_align): Likewise.
8145 * config/sh/sh.c (barrier_align): Likewise.
8146 * config/sparc/sparc-protos.h (emit_cbcond_nop): Likewise.
8147 * config/sparc/sparc.c (sparc_asm_function_epilogue): Likewise.
8148 (emit_cbcond_nop): Likewise.
8150 2016-09-22 Martin Liska <mliska@suse.cz>
8153 * ipa-icf.c (sem_variable::merge): Yield merge operation if
8154 alias address matters, not necessarily address of original.
8156 2016-09-22 Richard Biener <rguenther@suse.de>
8159 * gimple-fold.c (fold_array_ctor_reference): Turn asserts into
8162 2016-09-22 Richard Biener <rguenther@suse.de>
8165 * gimple-match-head.c (gimple_resimplify1): Drop TREE_OVERFLOW
8166 from constant folding results.
8167 (gimple_resimplify2): Likewise.
8168 (gimple_resimplify3): Likewise.
8170 2016-09-22 Richard Biener <rguenther@suse.de>
8173 * expr.c (expand_expr_real_1): Guard array access against negative
8176 2016-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8178 * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN instead
8180 (format_floating): Likewise.
8182 2016-09-22 Jakub Jelinek <jakub@redhat.com>
8185 * tree-inline.c (remap_gimple_stmt): Set has_simduid_loops
8186 for all IFN_GOMP_SIMD_* internal fns, not just for
8187 IFN_GOMP_SIMD_ORDERED_*.
8189 2016-09-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8192 * config/rs6000/predicates.md (invert_fpmask_comparison_operator):
8193 New predicate that matches the ISA 3.0 XSCMP{EQ,GT,GE}DP
8194 instructions when you want to invert the test.
8195 * config/rs6000/rs6000.md (fpmask<mode>): Use the arguments in the
8196 correct order for XXSEL.
8197 (mov<SFDF:mode><SFDF2:mode>cc_invert_p9): Define the inverted test
8198 for using XSCMP{EQ,GT,GE}DP.
8200 2016-09-21 David Malcolm <dmalcolm@redhat.com>
8202 * genconstants.c (main): Introduce noop_reader and convert call
8203 to read_md_files to a method call.
8204 * genenums.c (main): Likewise.
8205 * genmddeps.c (main): Likewise.
8206 * genpreds.c (write_tm_constrs_h): Replace use of "in_fname" with
8207 rtx_reader_ptr->get_top_level_filename ().
8208 (write_tm_preds_h): Likewise.
8209 (write_insn_preds_c): Likewise.
8210 * gensupport.c (class gen_reader): New subclass of rtx_reader.
8211 (rtx_handle_directive): Convert to...
8212 (gen_reader::handle_unknown_directive): ...this.
8213 (init_rtx_reader_args_cb): Convert return type from bool to
8214 rtx_reader *. Create a gen_reader instance, using it for the
8215 call to read_md_files. Return it if no errors occur.
8216 (init_rtx_reader_args): Convert return type from bool to
8218 * gensupport.h (init_rtx_reader_args_cb): Likewise.
8219 (init_rtx_reader_args_cb): Likewise.
8220 * read-md.c (struct file_name_list): Move to class rtx_reader.
8221 (read_md_file): Delete in favor of rtx_reader::m_read_md_file.
8222 (read_md_filename): Delete in favor of
8223 rtx_reader::m_read_md_filename.
8224 (read_md_lineno): Delete in favor of rtx_reader::m_read_md_lineno.
8225 (in_fname): Delete in favor of rtx_reader::m_toplevel_fname.
8226 (base_dir): Delete in favor of rtx_reader::m_base_dir.
8227 (first_dir_md_include): Delete in favor of
8228 rtx_reader::m_first_dir_md_include.
8229 (last_dir_md_include_ptr): Delete in favor of
8230 rtx_reader::m_last_dir_md_include_ptr.
8231 (max_include_len): Delete.
8232 (rtx_reader_ptr): New.
8233 (fatal_with_file_and_line): Use get_filename and get_lineno
8234 accessors of rtx_reader_ptr.
8235 (require_char_ws): Likewise.
8236 (rtx_reader::read_char): New method, based on ::read_char.
8237 (rtx_reader::unread_char): New method, based on ::unread_char.
8238 (read_escape): Use get_filename and get_lineno accessors of
8240 (read_braced_string): Use get_lineno accessor of rtx_reader_ptr.
8241 (read_string): Use get_filename and get_lineno accessors of
8243 (rtx_reader::rtx_reader): New ctor.
8244 (rtx_reader::~rtx_reader): New dtor.
8245 (handle_include): Convert from a function to...
8246 (rtx_reader::handle_include): ...this method, converting
8247 handle_directive from a callback to a virtual function.
8248 (handle_file): Likewise, converting to...
8249 (rtx_reader::handle_file): ...this method.
8250 (handle_toplevel_file): Likewise, converting to...
8251 (rtx_reader::handle_toplevel_file): ...this method.
8252 (rtx_reader::get_current_location): New method.
8253 (parse_include): Convert from a function to...
8254 (rtx_reader::add_include_path): ...this method, dropping redundant
8255 update to unused max_include_len.
8256 (read_md_files): Convert from a function to...
8257 (rtx_reader::read_md_files): ...this method, converting
8258 handle_directive from a callback to a virtual function.
8259 (noop_reader::handle_unknown_directive): New method.
8260 * read-md.h (directive_handler_t): Delete this typedef.
8262 (read_md_file): Delete.
8263 (read_md_lineno): Delete.
8264 (read_md_filename): Delete.
8265 (class rtx_reader): New class.
8266 (rtx_reader_ptr): New decl.
8267 (class noop_reader): New subclass of rtx_reader.
8268 (read_char): Reimplement in terms of rtx_reader::read_char.
8269 (unread_char): Reimplement in terms of rtx_reader::unread_char.
8270 (read_md_files): Delete.
8271 * read-rtl.c (read_rtx_code): Update for deletion of globals
8272 read_md_filename and read_md_lineno.
8274 2016-09-21 Jason Merrill <jason@redhat.com>
8276 * input.h (from_macro_definition_at): New.
8278 2016-09-21 Segher Boessenkool <segher@kernel.crashing.org>
8280 * doc/rtl.texi (JUMP_LABEL): Document RETURN and SIMPLE_RETURN values.
8282 2016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
8284 PR tree-optimization/77550
8285 * tree-vect-stmts.c (create_array_ref): Change parameters.
8286 (get_group_alias_ptr_type): New function.
8287 (vectorizable_store, vectorizable_load): Use get_group_alias_ptr_type.
8289 2016-09-21 Marek Polacek <polacek@redhat.com>
8291 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
8292 Add falls through comment.
8294 2016-09-21 Richard Biener <rguenther@suse.de>
8296 * dwarf2out.c (remove_child_with_prev): Clear child->die_sib.
8297 (replace_child): Likewise.
8298 (remove_child_TAG): Adjust.
8299 (move_marked_base_types): Likewise.
8300 (prune_unused_types_prune): Clear die_sib of removed children.
8302 2016-09-21 Georg-Johann Lay <avr@gjlay.de>
8305 * config/avr/avr.c (avr_notice_update_cc) [CC_NONE]: If insn
8306 touches some regs mentioned in cc_status, do CC_STATUS_INIT.
8308 2016-09-21 Richard Biener <rguenther@suse.de>
8310 PR tree-optimization/77648
8311 * tree-ssa-structalias.c (process_constraint): Handle all DEREF
8313 (make_transitive_closure_constraints): Adjust comment.
8314 (make_any_offset_constraints): New function.
8315 (handle_rhs_call): Make sure to first expand a pointer to all
8316 subfields before transitively closing it.
8317 (handle_const_call): Likewise. Properly expand returned
8319 (handle_pure_call): Likewise.
8321 2016-09-21 Richard Biener <rguenther@suse.de>
8322 Jakub Jelinek <jakub@redhat.com>
8324 PR tree-optimization/77621
8325 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
8326 group at non-vectorizable stmts.
8328 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
8330 PR tree-optimization/72835
8331 * tree-ssa-reassoc.c (make_new_ssa_for_def): New.
8332 (make_new_ssa_for_all_defs): Likewise.
8333 (zero_one_operation): Replace all SSA_NAMEs defined in the chain.
8335 2016-09-20 Martin Sebor <msebor@redhat.com>
8338 * Makefile.in (OBJS): Add gimple-ssa-sprintf.o.
8339 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Redefine.
8340 * config/linux.c (gnu_libc_printf_pointer_format): New function.
8341 * config/sol2.h (TARGET_PRINTF_POINTER_FORMAT): Same.
8342 * config/sol2.c (solaris_printf_pointer_format): New function.
8343 * doc/invoke.texi (-Wformat-length, -fprintf-return-value): New
8345 * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Document.
8346 * doc/tm.texi: Regenerate.
8347 * gimple-fold.h (get_range_strlen): New function.
8348 (get_maxval_strlen): Declare existing function.
8349 * gimple-fold.c (get_range_strlen): Add arguments and compute both
8350 maximum and minimum.
8351 (get_range_strlen): Define overload.
8352 (get_maxval_strlen): Adjust.
8353 * gimple-ssa-sprintf.c: New file and pass.
8354 * passes.def (pass_sprintf_length): Add new pass.
8355 * targhooks.h (default_printf_pointer_format): Declare new function.
8356 (gnu_libc_printf_pointer_format): Same.
8357 (solaris_libc_printf_pointer_format): Same.
8358 * targhooks.c (default_printf_pointer_format): Define new function.
8359 * tree-pass.h (make_pass_sprintf_length): Declare new function.
8360 * print-tree.c: Increase buffer size.
8362 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
8364 * tree-vrp.c (get_value_range): Teach PARM_DECL to use ipa-vrp results.
8366 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
8368 * common.opt: New option -fipa-vrp.
8369 * ipa-cp.c (ipa_get_vr_lat): New.
8370 (ipcp_vr_lattice::print): Likewise.
8371 (print_all_lattices): Call ipcp_vr_lattice::print.
8372 (ipcp_vr_lattice::meet_with): New.
8373 (ipcp_vr_lattice::meet_with_1): Likewise.
8374 (ipcp_vr_lattice::top_p): Likewise.
8375 (ipcp_vr_lattice::bottom_p): Likewsie.
8376 (ipcp_vr_lattice::set_to_bottom): Likewise.
8377 (set_all_contains_variable): Call VR set_to_bottom.
8378 (initialize_node_lattices): Init VR lattices.
8379 (propagate_vr_accross_jump_function): New.
8380 (propagate_constants_accross_call): Call
8381 propagate_vr_accross_jump_function.
8382 (ipcp_store_vr_results): New.
8383 (ipcp_driver): Handle VR.
8384 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Handle VR.
8385 (ipa_set_jf_unknown): Likewise.
8386 (ipa_compute_jump_functions_for_edge): Likewise.
8387 (ipa_node_params_t::duplicate): Likewise.
8388 (ipa_write_jump_function): Likewise.
8389 (ipa_read_jump_function): Likewise.
8390 (write_ipcp_transformation_info): Likewise.
8391 (read_ipcp_transformation_info): Likewise.
8392 (ipcp_update_vr): New.
8393 (ipcp_transform_function): Handle VR.
8394 * ipa-prop.h (struct ipa_vr): New.
8395 * cgraph.c: Include tree-vrp.h.
8396 * cgraphunit.c: Likewise.
8397 * ipa-utils.c: Likewise.
8400 * toplev.c: Likewise.
8401 * ipa-devirt.c: Likewise.
8402 * ipa-inline-transform.c: Likewise.
8403 * ipa-inline.c: Likewise.
8404 * ipa-profile.c: Likewise.
8406 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
8408 * doc/invoke.texi: Document -fdump-tree-evrp.
8409 * passes.def: Define new pass_early_vrp.
8410 * timevar.def: Define new TV_TREE_EARLY_VRP.
8411 * tree-pass.h (make_pass_early_vrp): New.
8412 * tree-ssa-propagate.c: Make replace_uses_in non static.
8413 * tree-ssa-propagate.h: Export replace_uses_in.
8414 * tree-vrp.c (extract_range_for_var_from_comparison_expr): New.
8415 (extract_range_from_assert): Factor out
8416 extract_range_for_var_from_comparison_expr.
8417 (vrp_initialize_lattice): New.
8418 (vrp_initialize): Factor out vrp_initialize_lattice.
8419 (vrp_valueize): Fix it to reject complex value ranges.
8420 (vrp_free_lattice): New.
8421 (evrp_dom_walker::before_dom_children): Likewise.
8422 (evrp_dom_walker::after_dom_children): Likewise.
8423 (evrp_dom_walker::push_value_range): Likewise.
8424 (evrp_dom_walker::pop_value_range): Likewise.
8425 (execute_early_vrp): Likewise.
8426 (execute_vrp): Call vrp_initialize_lattice and vrp_free_lattice.
8427 (make_pass_early_vrp): New.
8429 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
8431 * config/i386/i386.md (mult->ashift peephole2s): Use pow2p_hwi
8432 instead of exact_log2.
8434 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
8437 * config/i386/i386.c (ix86_preferred_simd_mode) <case DFmode>:
8438 Don't return word_mode for !TARGET_VECTORIZE_DOUBLE.
8439 (ix86_add_stmt_cost): Penalize DFmode vector operations
8440 for !TARGET_VECTORIZE_DOUBLE.
8442 2016-09-20 Gerald Pfeifer <gerald@pfeifer.com>
8444 * doc/invoke.texi (Warning Options): Simplify language.
8445 (Optimize Options): Complete sentence.
8447 2016-09-20 David Edelsohn <dje.gcc@gmail.com>
8449 * dbxout.c (xcoff_debug_hooks): Add filename parameter to
8452 2016-09-20 Michael Meissner <meissner@linux.vnet.ibm.com>
8455 * config/rs6000/rs6000.c (rs6000_expand_vector_init): For V4SF
8456 inits on power8 and above, use the VMRGEW instruction instead of a
8459 * config/rs6000/altivec.md (UNSPEC_VMRGEW_DIRECT): New unspec.
8460 (p8_vmrgew_v4sf_direct): New VMRGEW insn for V4SF floating
8463 2016-09-20 Tamar Christina <tamar.christina@arm.com>
8465 * config/aarch64/arm_neon.h
8466 (vst2_s64, vst2_u64, vst2_f64, vst2_s8): Add missing attributes.
8467 (vst3_s64, vst3_u64, vst3_f64, vst3_s8): Likewise.
8468 (vst4_s64, vst4_u64, vst4_f64, vst4_s8): Likewise.
8470 2016-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
8472 * config/var/vax.h (ELIMINABLE_REGS): Define.
8473 (INITIAL_ELIMINATION_OFFSET): Define.
8475 2016-09-20 Jakub Jelinek <jakub@redhat.com>
8478 * builtins.c (fold_builtin_atomic_always_lock_free): Only look through
8479 cast to void * if the cast is from some other pointer type.
8481 2016-09-20 Richard Biener <rguenther@suse.de>
8483 PR tree-optimization/77646
8484 * tree-ssa-sccvn.c (visit_reference_op_call): Always value-number
8487 2016-09-20 Tamar Christina <tamar.christina@arm.com>
8489 * config/aarch64/arm_neon.h: Add gnu_inline and artificial
8490 attributes to all inlined functions and make them extern.
8492 2016-09-20 Richard Biener <rguenther@suse.de>
8494 * debug.h (gcc_debug_hooks): Add filename parameter to early_finish
8496 * debug.c (do_nothing_debug_hooks): Adjust.
8497 * dbxout.c (dbx_debug_hooks): Likewise.
8498 * sdbout.c (sdb_debug_hooks): Likewise.
8499 * dwarf2out.c (dwarf2_lineno_debug_hooks): Likewise.
8500 (dwarf2out_finish): Move producer, filename and
8502 (dwarf2out_early_finish): ... here. Remove in_lto_p special-casing.
8503 * cgraphunit.c (symbol_table::finalize_compilation_unit): Adjust.
8505 2016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
8508 * doc/invoke.texi: Document -Wint-in-bool-context.
8511 * dwarf2out.c (output_loc_operands): Fix an assertion.
8513 2016-09-19 Joseph Myers <joseph@codesourcery.com>
8515 * ginclude/float.h [__STDC_WANT_IEC_60559_BFP_EXT__]
8516 (CR_DECIMAL_DIG): New macro.
8518 2016-09-19 Joseph Myers <joseph@codesourcery.com>
8520 * ginclude/stddef.h (max_align_t) [__i386__]: Add __float128
8523 2016-09-19 Vladimir Makarov <vmakarov@redhat.com>
8525 PR rtl-optimization/77416
8526 * lra-remat.c (operand_to_remat): Process hard coded insn
8529 2016-09-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8531 * simplify-rtx.c (simplify_relational_operation_1): Add transformation
8532 (GTU (PLUS a C) (C - 1)) --> (LTU a -C).
8534 2016-09-19 Segher Boessenkool <segher@kernel.crashing.org>
8536 * target.def (lra_p): Wordsmithing.
8537 * doc/tm.texi: Regenerate.
8539 2016-09-19 Jakub Jelinek <jakub@redhat.com>
8540 Jan Hubicka <jh@suse.cz>
8543 * cgraph.c (cgraph_node::rtl_info): Pass &avail to
8544 ultimate_alias_target call, return NULL if avail < AVAIL_AVAILABLE.
8545 Call ultimate_alias_target just once, not up to 4 times.
8547 2016-09-19 Richard Biener <rguenther@suse.de>
8549 * dwarf2out.c (early_dwarf_finished): New global.
8550 (set_early_dwarf::set_early_dwarf): Assert early_dwarf_finished
8552 (dwarf2out_early_finish): Set early_dwarf_finished at the end,
8553 if called from LTO exit early.
8554 (dwarf2out_late_global_decl): When being during the early
8555 debug phase do not add locations but only const value attributes.
8556 Adjust the way we generate early DIEs for LTO.
8558 2016-09-19 Richard Biener <rguenther@suse.de>
8561 * tree-data-ref.c (analyze_subscript_affine_affine): Use the
8562 proper niter to bound the loops.
8564 2016-09-19 Richard Biener <rguenther@suse.de>
8566 PR tree-optimization/77514
8567 * tree-ssa-pre.c (create_expression_by_pieces): Optimize
8568 search for folded stmt.
8570 2016-09-17 Jan Hubicka <hubicka@ucw.cz>
8572 * passes.def (pass_early_thread_jumps): Schedule after forwprop.
8573 * tree-pass.h (make_pass_early_thread_jumps): Declare.
8574 * tree-ssa-threadbackward.c (fsm_find_thread_path,
8575 fsm_find_thread_path, profitable_jump_thread_path,
8576 fsm_find_control_statement_thread_paths,
8577 find_jump_threads_backwards): Add speed_p parameter.
8578 (pass_data_early_thread_jumps): New pass.
8579 (make_pass_early_thread_jumps): New function.
8581 2016-09-17 Andreas Schwab <schwab@suse.de>
8583 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add cast.
8584 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
8586 2016-09-16 Eric Botcazou <ebotcazou@adacore.com>
8588 * recog.c (rest_of_handle_split_after_reload): Delete.
8589 (pass_split_after_reload::gate): New method.
8590 (pass_split_after_reload::execute): Call split_all_insns directly.
8592 2016-09-16 Jonathan Wakely <jwakely@redhat.com>
8594 * doc/extend.texi (Integer Overflow Builtins): Fix type of out
8595 parameters for functions taking long long arguments.
8597 2016-09-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8600 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add support for
8601 splat with truncate.
8603 2016-09-16 Jason Merrill <jason@redhat.com>
8605 * hwint.h (least_bit_hwi, pow2_or_zerop, pow2p_hwi, ctz_or_zero):
8607 * hwint.c (exact_log2): Use pow2p_hwi.
8608 (ctz_hwi, ffs_hwi): Use least_bit_hwi.
8609 * alias.c (memrefs_conflict_p): Use pow2_or_zerop.
8610 * builtins.c (get_object_alignment_2, get_object_alignment)
8611 (get_pointer_alignment, fold_builtin_atomic_always_lock_free): Use
8613 * calls.c (compute_argument_addresses, store_one_arg): Use
8615 * cfgexpand.c (expand_one_stack_var_at): Use least_bit_hwi.
8616 * combine.c (force_to_mode): Use least_bit_hwi.
8617 (contains_muldiv, find_split_point, combine_simplify_rtx)
8618 (simplify_if_then_else, simplify_set, force_to_mode)
8619 (if_then_else_cond, simplify_and_const_int_1)
8620 (simplify_compare_const): Use pow2p_hwi.
8621 * cse.c (fold_rtx): Use pow2p_hwi.
8622 * emit-rtl.c (set_mem_attributes_minus_bitpos, adjust_address_1):
8624 * expmed.c (synth_mult, expand_divmod): Use ctz_or_zero, ctz_hwi.
8625 (init_expmed_one_conv): Use pow2p_hwi.
8626 * expr.c (is_aligning_offset): Use pow2p_hwi.
8627 * fold-const.c (round_up_loc, round_down_loc): Use pow2_or_zerop.
8628 (fold_binary_loc): Use pow2p_hwi.
8629 * function.c (assign_parm_find_stack_rtl): Use least_bit_hwi.
8630 * gimple-fold.c (gimple_fold_builtin_memory_op): Use pow2p_hwi.
8631 * gimple-ssa-strength-reduction.c (replace_ref): Use least_bit_hwi.
8632 * hsa-gen.c (gen_hsa_addr_with_align, hsa_bitmemref_alignment):
8634 * ifcvt.c (noce_try_store_flag_constants): Use pow2p_hwi.
8635 * ipa-cp.c (ipcp_alignment_lattice::meet_with_1): Use least_bit_hwi.
8636 * ipa-prop.c (ipa_modify_call_arguments): Use least_bit_hwi.
8637 * omp-low.c (oacc_loop_fixed_partitions)
8638 (oacc_loop_auto_partitions): Use least_bit_hwi.
8639 * rtlanal.c (nonzero_bits1): Use ctz_or_zero.
8640 * stor-layout.c (place_field): Use least_bit_hwi.
8641 * tree-pretty-print.c (dump_generic_node): Use pow2p_hwi.
8642 * tree-sra.c (build_ref_for_offset): Use least_bit_hwi.
8643 * tree-ssa-ccp.c (ccp_finalize): Use least_bit_hwi.
8644 * tree-ssa-math-opts.c (bswap_replace): Use least_bit_hwi.
8645 * tree-ssa-strlen.c (handle_builtin_memcmp): Use pow2p_hwi.
8646 * tree-vect-data-refs.c (vect_analyze_group_access_1)
8647 (vect_grouped_store_supported, vect_grouped_load_supported)
8648 (vect_permute_load_chain, vect_shift_permute_load_chain)
8649 (vect_transform_grouped_load): Use pow2p_hwi.
8650 * tree-vect-generic.c (expand_vector_divmod): Use ctz_or_zero.
8651 * tree-vect-patterns.c (vect_recog_divmod_pattern): Use ctz_or_zero.
8652 * tree-vect-stmts.c (vectorizable_mask_load_store): Use
8654 * tsan.c (instrument_expr): Use least_bit_hwi.
8655 * var-tracking.c (negative_power_of_two_p): Use pow2_or_zerop.
8657 2016-09-16 Andreas Schwab <schwab@suse.de>
8659 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Use parameter
8661 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
8663 2016-09-16 Jakub Jelinek <jakub@redhat.com>
8666 * combine.c (rest_of_handle_combine): If any edges have been purged,
8667 free dominators if available.
8669 2016-09-16 Jakub Jelinek <jakub@redhat.com>
8670 Eric Botcazou <ebotcazou@adacore.com>
8673 * internal-fn.c (expand_arith_overflow) <case MINUS_EXPR>: Don't fall
8674 through into expand_addsub_overflow after expand_neg_overflow.
8676 2016-09-15 David Malcolm <dmalcolm@redhat.com>
8678 * diagnostic-show-locus.c
8679 (selftest::test_fixit_insert_containing_newline): New function.
8680 (selftest::test_fixit_replace_containing_newline): New function.
8681 (selftest::diagnostic_show_locus_c_tests): Call the above.
8683 2016-09-15 Bin Cheng <bin.cheng@arm.com>
8685 PR tree-optimization/77503
8686 * tree-vect-loop.c (vectorizable_reduction): Record reduction
8687 code for CONST_COND_REDUCTION at analysis stage and use it at
8689 * tree-vectorizer.h (struct _stmt_vec_info): New field.
8690 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): New macro.
8691 * tree-vect-stmts.c (new_stmt_vec_info): Initialize above new
8694 2016-09-15 Richard Biener <rguenther@suse.de>
8697 * fold-const.c (split_tree): Do not split constant ~X.
8699 2016-09-15 Jakub Jelinek <jakub@redhat.com>
8701 PR rtl-optimization/77425
8702 * sched-int.h (sd_iterator_cond): Don't update it_ptr->linkp if list
8706 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Simplify,
8707 use %qs instead of %s where desirable, use argument instead of arg in
8708 the diagnostic wording, add list of supported strategies and
8710 (ix86_option_override_internal): Emit target("m...") instead of
8711 option("m...") in the diagnostic. Use %qs instead of %s in invalid
8712 -march/-mtune option diagnostic. Add list of supported arches/tunings
8713 and spellcheck hint. Remove prefix, suffix and sw variables, use
8714 main_args_p ? "..." : "..." in diagnostics to make translation
8717 2016-09-15 Richard Biener <rguenther@suse.de>
8719 * dwarf2asm.h (dw2_asm_output_offset): Add overload with
8720 extra offset argument.
8721 * dwarf2asm.c (dw2_asm_output_offset): Implement that.
8722 * doc/tm.texi.in (ASM_OUTPUT_DWARF_OFFSET): Adjust documentation
8723 to reflect new offset parameter.
8724 * doc/tm.texi: Regenerate.
8725 * config/darwin.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
8726 * config/darwin-protos.h (darwin_asm_output_dwarf_delta): Add
8728 (darwin_asm_output_dwarf_offset): Likewise.
8729 * config/darwin.c (darwin_asm_output_dwarf_delta): Add offset
8731 (darwin_asm_output_dwarf_offset): Pass offset argument through.
8732 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
8733 * config/i386/cygmin.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
8735 2016-09-15 Chung-Lin Tang <cltang@codesourcery.com>
8738 * ipa-icf.c (set_alias_uids): New function.
8739 (sem_variable::merge): Use set_alias_uids to set DECL_PT_UID of
8740 all the merged variable's referring aliases.
8742 2016-09-15 Richard Biener <rguenther@suse.de>
8744 PR tree-optimization/77514
8745 * tree-ssa-pre.c (create_expression_by_pieces): Handle garbage
8746 only forced_stmts sequence.
8748 2016-09-15 Kugan Vivekanandarajah <kuganv@linaro.org>
8750 * tree-ssanames.h (FOR_EACH_SSA_NAME): New.
8751 * cfgexpand.c (update_alias_info_with_stack_vars): Use
8752 FOR_EACH_SSA_NAME to iterate over SSA variables.
8753 (pass_expand::execute): Likewise.
8754 * omp-simd-clone.c (ipa_simd_modify_function_body): Likewise.
8755 * tree-cfg.c (dump_function_to_file): Likewise.
8756 * tree-into-ssa.c (pass_build_ssa::execute): Likewise.
8757 (update_ssa): Likewise.
8758 * tree-ssa-alias.c (dump_alias_info): Likewise.
8759 * tree-ssa-ccp.c (ccp_finalize): Likewise.
8760 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
8761 (create_outofssa_var_map): Likewise.
8762 (coalesce_ssa_name): Likewise.
8763 * tree-ssa-operands.c (dump_immediate_uses): Likewise.
8764 * tree-ssa-pre.c (compute_avail): Likewise.
8765 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
8766 (scc_vn_restore_ssa_info): Likewise.
8767 (free_scc_vn): Likwise.
8768 (run_scc_vn): Likewise.
8769 * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
8770 * tree-ssa-ter.c (new_temp_expr_table): Likewise.
8771 * tree-ssa-copy.c (fini_copy_prop): Likewise.
8772 * tree-ssa.c (verify_ssa): Likewise.
8774 2016-09-14 Matthew Fortune <matthew.fortune@imgtec.com>
8776 * config.gcc (mips*-mti-elf*, mips*-mti-linux*): Set mips32r2
8777 and mips64r2 as default 32-bit and 64-bit architectures.
8778 (mips*-img-elf*, mips*-img-linux*): Set mips32r6 and mips64r6
8779 as default 32-bit and 64-bit architectures.
8781 2016-09-14 Pat Haugen <pthaugen@us.ibm.com>
8783 * loop-unroll.c (unroll_loop_runtime_iterations): Set probability
8786 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
8788 * target.def (lra_p): Change commentary (for the manual) for the
8790 * doc/tm.texi: Regenerate.
8792 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
8794 * config/aarch64/aarch64.c (TARGET_LRA_P): Delete macro.
8795 * config/arm/arm.c (TARGET_LRA_P): Delete macro.
8796 * config/i386/i386.c (TARGET_LRA_P): Delete macro.
8797 * config/nds32/nds32.c (TARGET_LRA_P): Delete macro.
8799 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
8801 * targhooks.c (default_lra_p): Return true instead of false.
8803 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
8805 * config/alpha/alpha.c (TARGET_LRA_P): New macro, defined to
8806 hook_bool_void_false.
8807 * config/avr/avr.c: Ditto.
8808 * config/bfin/bfin.c: Ditto.
8809 * config/c6x/c6x.c: Ditto.
8810 * config/cr16/cr16.c: Ditto.
8811 * config/cris/cris.c: Ditto.
8812 * config/epiphany/epiphany.c: Ditto.
8813 * config/fr30/fr30.c: Ditto.
8814 * config/frv/frv.c: Ditto.
8815 * config/h8300/h8300.c: Ditto.
8816 * config/ia64/ia64.c: Ditto.
8817 * config/iq2000/iq2000.c: Ditto.
8818 * config/lm32/lm32.c: Ditto.
8819 * config/m32c/m32c.c: Ditto.
8820 * config/m32r/m32r.c: Ditto.
8821 * config/m68k/m68k.c: Ditto.
8822 * config/mcore/mcore.c: Ditto.
8823 * config/microblaze/microblaze.c: Ditto.
8824 * config/mmix/mmix.c: Ditto.
8825 * config/mn10300/mn10300.c: Ditto.
8826 * config/moxie/moxie.c: Ditto.
8827 * config/msp430/msp430.c: Ditto.
8828 * config/nios2/nios2.c: Ditto.
8829 * config/nvptx/nvptx.c: Ditto.
8830 * config/pa/pa.c: Ditto.
8831 * config/pdp11/pdp11.c: Ditto.
8832 * config/rl78/rl78.c: Ditto.
8833 * config/sparc/sparc.c: Ditto.
8834 * config/spu/spu.c: Ditto.
8835 * config/stormy16/stormy16.c: Ditto.
8836 * config/tilegx/tilegx.c: Ditto.
8837 * config/tilepro/tilepro.c: Ditto.
8838 * config/v850/v850.c: Ditto.
8839 * config/vax/vax.c: Ditto.
8840 * config/visium/visium.c: Ditto.
8841 * config/xtensa/xtensa.c: Ditto.
8843 2016-09-14 Jakub Jelinek <jakub@redhat.com>
8846 * tsan.c: Include target.h.
8847 (enum tsan_atomic_action): Add bool_clear and bool_test_and_set.
8848 (BOOL_CLEAR, BOOL_TEST_AND_SET): Define.
8849 (tsan_atomic_table): Add BUILT_IN_ATOMIC_CLEAR and
8850 BUILT_IN_ATOMIC_TEST_AND_SET entries.
8851 (instrument_builtin_call): Handle bool_clear and bool_test_and_set.
8853 2016-09-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
8854 Martin Liska <mliska@suse.cz>
8857 * predict.c (force_edge_cold): Add braces to a condition.
8859 2016-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
8861 PR rtl-optimization/77289
8862 * lra-constraints.c (get_final_hard_regno): Removed.
8863 (get_hard_regno): Add new parameter final_p.
8864 (get_reg_class): Directly call lra_get_elimination_hard_regno.
8865 (operands_match_p): Adjust call to get_hard_regno.
8866 (uses_hard_regs_p): Likewise.
8867 (process_alt_operands): Likewise.
8869 2016-09-13 Joe Seymour <joe.s@somniumtech.com>
8872 * config/msp430/msp430.c (msp430_start_function): Emit an error
8873 if a function is both weak and specifies an interrupt number.
8875 2016-09-13 Jakub Jelinek <jakub@redhat.com>
8877 PR tree-optimization/77454
8878 * tree-ssa-dom.c (optimize_stmt): Set modified flag on stmt after
8879 changing GIMPLE_COND. Move update_stmt_if_modified call after this.
8882 2016-09-13 Tamar Christina <tamar.christina@arm.com>
8884 * config/aarch64/aarch64-builtins.c
8885 (aarch64_init_simd_builtins): Fix builtin type signature printing.
8887 2016-09-13 Uros Bizjak <ubizjak@gmail.com>
8889 * config/alpha/alpha.c (alpha_pass_by_reference): Pass un-named
8890 SFmode and SCmode arguments by reference.
8892 2016-09-13 David Malcolm <dmalcolm@redhat.com>
8894 * diagnostic-show-locus.c (selftest::test_one_liner_fixit_insert):
8896 (selftest::test_one_liner_fixit_insert_before): ...this, and update
8897 for renaming of add_fixit_insert to add_fixit_insert_before.
8898 (selftest::test_one_liner_fixit_insert_after): New function.
8899 (selftest::test_one_liner_fixit_validation_adhoc_locations):
8900 Update for renaming of add_fixit_insert to add_fixit_insert_before.
8901 (selftest::test_one_liner_many_fixits): Likewise.
8902 (selftest::test_diagnostic_show_locus_one_liner): Update for
8903 renaming, call new test function.
8904 (selftest::test_diagnostic_show_locus_fixit_lines): Update for
8905 renaming of add_fixit_insert to add_fixit_insert_before.
8906 (selftest::test_fixit_consolidation): Likewise.
8907 * diagnostic.c (selftest::test_print_parseable_fixits_insert):
8909 * edit-context.c (selftest::test_applying_fixits_insert): Rename to...
8910 (selftest::test_applying_fixits_insert_before): ...this.
8911 (selftest::test_applying_fixits_insert): Update for renaming of
8912 add_fixit_insert to add_fixit_insert_before.
8913 (selftest::test_applying_fixits_insert_after): New function.
8914 (selftest::test_applying_fixits_insert_after_at_line_end): New
8916 (selftest::test_applying_fixits_insert_after_failure): New function.
8917 (selftest::test_applying_fixits_multiple): Update for renaming of
8918 add_fixit_insert to add_fixit_insert_before.
8919 (selftest::change_line): Likewise.
8920 (selftest::test_applying_fixits_unreadable_file): Likewise.
8921 (selftest::test_applying_fixits_line_out_of_range): Likewise.
8922 (selftest::test_applying_fixits_column_validation): Likewise.
8923 (selftest::test_applying_fixits_column_validation): Likewise.
8924 (selftest::edit_context_c_tests): Update for renamed test function;
8925 call new test functions.
8927 2016-09-13 Pat Haugen <pthaugen@us.ibm.com>
8929 PR tree-optimization/77536
8930 PR rtl-optimization/68212
8931 * config/rs6000/rs6000.md (div->recip splitter): Remove
8932 optimize_insn_for_speed_p condition.
8934 2016-09-13 Maciej W. Rozycki <macro@imgtec.com>
8936 * optabs.c (prepare_cmp_insn): Update documentation comment.
8938 2016-09-13 Jakub Jelinek <jakub@redhat.com>
8939 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8942 * opts.h (candidates_list_and_hint): Declare.
8943 * opts-common.c (candidates_list_and_hint): New function.
8944 (cmdline_handle_error): Use it.
8946 2016-09-12 David Malcolm <dmalcolm@redhat.com>
8948 * edit-context.c (edited_line::get_len): New accessor.
8949 (edited_file::print_diff): Split out hunk-printing into...
8950 (edited_file::print_diff_hunk): New method.
8951 (edited_file::print_diff_line): New method.
8953 2016-09-12 Andrew Pinski <apinski@cavium.com>
8955 * config/aarch64/aarch64-tuning-flags.def (SLOW_UNALIGNED_LDPW):
8957 * config/aarch64/aarch64.c (thunderx_tunings): Enable
8958 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW.
8959 (aarch64_operands_ok_for_ldpstp): Return false if
8960 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW and the mode
8961 was SImode and the alignment is less than 8 byte.
8962 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
8964 2016-09-12 Orlando Arias <oarias@knights.ucf.edu>
8967 * config/msp430/msp430.md (delay_cycles_32x): Fix pushm/popm.
8969 2016-09-12 Marek Polacek <polacek@redhat.com>
8971 * doc/extend.texi: Use lowercase "boolean".
8972 * doc/invoke.texi: Likewise.
8973 * doc/md.texi: Likewise.
8974 * target.def: Likewise.
8975 * doc/tm.texi: Regenerated.
8977 2016-09-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8980 * expmed.c (synth_mult): Delete duplicate mode check.
8982 2016-09-10 Tom de Vries <tom@codesourcery.com>
8985 * builtins.c (std_canonical_va_list_type): Strictly return non-null for
8987 * config/i386/i386.c (ix86_canonical_va_list_type): Same.
8988 * gimplify.c (gimplify_va_arg_expr): Handle &va_list.
8990 2016-09-09 Peter Bergner <bergner@vnet.ibm.com>
8992 PR rtl-optimization/77289
8993 * lra-constraints.c (get_final_hard_regno): Add support for non hard
8994 register numbers. Remove support for subregs.
8995 (get_hard_regno): Use SUBREG_P. Don't call get_final_hard_regno().
8996 (get_reg_class): Delete removed get_final_hard_regno() argument.
8997 (uses_hard_regs_p): Call get_final_hard_regno().
8999 2016-09-09 Martin Sebor <msebor@redhat.com>
9003 * pretty-print.c (pp_quoted_string): New function.
9004 (pp_format): Call it for %c and %s directives.
9006 2016-09-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
9008 * doc/tm.texi.in (INITIAL_FRAME_POINTER_OFFSET): Remove.
9009 (ELIMINABLE_REGS, TARGET_CAN_ELIMINATE,
9010 INITIAL_ELIMINATION_OFFSET) : Update documentation.
9011 * target.def (frame_pointer_required, can_eliminate): Likewise.
9012 * doc/tm.texi: Regenerated.
9013 * builtins.c (expand_builtin_setjmp_receiver): Remove #ifdef
9015 * df-scan.c (df_hard_reg_init): Likewise.
9016 * ira.c (ira_setup_eliminable_regset): Likewise.
9017 * lra-eliminations.c (reg_eliminate_1, (update_reg_eliminate,
9018 init_elim_table): Likewise.
9019 * reload1.c (reg_eliminate_1, verify_initial_elim_offsets,
9020 set_initial_elim_offsets, update_eliminables,
9021 init_elim_table): Likewise.
9022 * rtlanal.c (get_initial_register_offset): Likewise.
9023 * config/ft32/ft32.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
9024 * config/m32r/m32r.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
9025 * config/moxie/moxie.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
9026 * config/vax/vax.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
9027 * config/fr30/fr30.h: Fix comment.
9028 * config/frv/frv.c: Likewise.
9029 * config/frv/frv.h: Likewise.
9030 * config/ft32/ft32.h: Likewise.
9031 * config/visium/visium.h: Likewise.
9032 * config/pa/pa64-linux.h: Likewise.
9033 * config/v850/v850.h: Likewise.
9034 * config/cris/cris.c: Likewise.
9035 * config/ia64/ia64.h: Likewise.
9036 * config/moxie/moxie.h: Likewise.
9037 * config/m32r/m32r.h: Likewise.
9039 2016-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
9042 * config.in: Regenerate.
9043 * config/i386/linux-common.h (MPX_LD_AS_NEEDED_GUARD_PUSH):
9045 (MPX_LD_AS_NEEDED_GUARD_PUSH): Ditto.
9046 (LIBMPXWRAPPERS_SPEC): Remove "--no-whole-archive" from
9047 static-libmpxwrappers case.
9048 (LIBMPX_SPEC): Add guards with MPX_LD_AS_NEEDED_GUARD_PUSH and
9049 MPX_LD_AS_NEEDED_GUARD_POP.
9050 * configure: Regenerate.
9051 * configure.ac (HAVE_LD_PUSHPOPSTATE_SUPPORT): New variable.
9052 defined if linker support "--push-state"/"--pop-state".
9054 2016-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
9056 * doc/cpp.texi (__*_WIDTH__): Small wording fixes.
9058 2016-09-09 Joseph Myers <joseph@codesourcery.com>
9060 * doc/cpp.texi (__SCHAR_WIDTH__, __SHRT_WIDTH__, __INT_WIDTH__)
9061 (__LONG_WIDTH__, __LONG_LONG_WIDTH__, __PTRDIFF_WIDTH__)
9062 (__SIG_ATOMIC_WIDTH__, __SIZE_WIDTH__, __WCHAR_WIDTH__)
9063 (__WINT_WIDTH__, __INT_LEAST8_WIDTH__, __INT_LEAST16_WIDTH__)
9064 (__INT_LEAST32_WIDTH__, __INT_LEAST64_WIDTH__)
9065 (__INT_FAST8_WIDTH__, __INT_FAST16_WIDTH__, __INT_FAST32_WIDTH__)
9066 (__INT_FAST64_WIDTH__, __INTPTR_WIDTH__, __INTMAX_WIDTH__):
9068 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Define
9069 width macros from TS 18661-1.
9070 * glimits.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Likewise.
9072 2016-09-08 Jakub Jelinek <jakub@redhat.com>
9075 * omp-low.c (lower_rec_simd_input_clauses): Use max_vf for non-positive
9076 OMP_CLAUSE_SAFELEN_EXPR.
9078 2016-09-07 David Malcolm <dmalcolm@redhat.com>
9080 * Makefile.in (OBJS): Add substring-locations.o.
9081 * langhooks-def.h (class substring_loc): New forward decl.
9082 (lhd_get_substring_location): New decl.
9083 (LANG_HOOKS_GET_SUBSTRING_LOCATION): New macro.
9084 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_GET_SUBSTRING_LOCATION.
9085 * langhooks.c (lhd_get_substring_location): New function.
9086 * langhooks.h (class substring_loc): New forward decl.
9087 (struct lang_hooks): Add field get_substring_location.
9088 * substring-locations.c: New file, taking definition of
9089 format_warning_va and format_warning_at_substring from
9090 c-family/c-format.c, making them non-static.
9091 * substring-locations.h (class substring_loc): Move class here
9092 from c-family/c-common.h. Add and rewrite comments.
9093 (format_warning_va): New decl.
9094 (format_warning_at_substring): New decl.
9095 (get_source_location_for_substring): Add comment.
9097 2016-09-07 Eric Gallager <egall@gwmail.gwu.edu>
9099 * config/i386/i386.c: Add 'U' suffix to processor feature bits
9100 to avoid -Wnarrowing warning.
9101 * config/i386/x86-tune.def: Likewise for DEF_TUNE selector bitmasks.
9102 * opts.c: Likewise for SANITIZER_OPT bitmasks.
9104 2016-09-07 Wilco Dijkstra <wdijkstr@arm.com>
9106 * config/aarch64/aarch64.c (aarch64_legitimize_address):
9107 Avoid use of base_offset if offset already in range.
9109 2016-09-07 Kaz Kojima <kkojima@gcc.gnu.org>
9111 * config/sh/sh-protos.h (struct sh_atomic_model,
9112 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
9113 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
9114 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Move to...
9115 * config/sh/sh.h (struct sh_atomic_model,
9116 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
9117 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
9118 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): ...here.
9119 Guard with __cplusplus.
9121 2016-09-06 Jakub Jelinek <jakub@redhat.com>
9124 * config/i386/i386.c (ix86_expand_builtin): For builtin with
9125 unsupported or unknown ISA, use expand_call.
9127 2016-09-06 Martin Liska <mliska@suse.cz>
9129 PR gcov-profile/77378
9130 PR gcov-profile/77466
9131 * tree-profile.c (tree_profiling): Detect whether target can use
9132 -fprofile-update=atomic.
9134 2016-09-06 Richard Biener <rguenther@suse.de>
9136 PR tree-optimization/77479
9137 * tree-vrp.c (update_value_range): Extend overflow handling to
9140 2016-09-05 Jakub Jelinek <jakub@redhat.com>
9143 * config/i386/i386.md (isa): Add x64_avx512bw.
9144 (*zero_extendsidi2): For alternative 11 use x64_avx512bw isa.
9145 (kmov_isa): New mode attr.
9146 (zero_extend<mode>di2): Use <kmov_isa> isa for the last alternative.
9147 (*zero_extend<mode>si2): Likewise.
9148 (*zero_extendqihi2): Use avx512dq isa for the last alternative.
9150 2016-09-05 Gerald Pfeifer <gerald@pfeifer.com>
9152 * doc/invoke.texi (SPU Options): nops -> NOPs.
9153 (x86 Options): Ditto.
9155 2016-09-05 Jakub Jelinek <jakub@redhat.com>
9158 * toplev.c (process_options): Temporarily set input_location
9159 to UNKNOWN_LOCATION around targetm.target_option.override () call.
9161 2016-09-05 Uros Bizjak <ubizjak@gmail.com>
9163 PR rtl-optimization/77452
9164 * explow.c (plus_constant) <case MEM>: Extract scalar constant from
9165 inner-mode reference to a CONST_VECTOR constant in the constant pool.
9167 2016-09-05 Marek Polacek <polacek@redhat.com>
9170 * doc/invoke.texi: Update -Wlogical-not-parentheses documentation.
9172 2016-09-05 Jakub Jelinek <jakub@redhat.com>
9175 * gensupport.c (alter_output_for_subst_insn): Remove redundant
9176 *insn_out == '*' test. Don't copy unnecessary to yet another
9177 memory buffer, and don't leak it.
9179 PR rtl-optimization/77425
9180 * ipa-devirt.c (get_odr_type): Set val->id unconditionally.
9182 2016-09-03 Kirill Yukhin <kirill.yukhin@intel.com>
9184 * ubsan.c (ubsan_use_new_style_p): Fix check for empty string.
9186 2016-09-02 David Malcolm <dmalcolm@redhat.com>
9188 * common.opt (fdiagnostics-generate-patch): New option.
9189 * diagnostic.c: Include "edit-context.h".
9190 (diagnostic_initialize): Initialize context->edit_context_ptr.
9191 (diagnostic_finish): Delete context->edit_context_ptr.
9192 (diagnostic_report_diagnostic): Add fix-it hints from the
9193 diagnostic to context->edit_context_ptr, if any.
9194 * diagnostic.h (class edit_context): Add forward decl.
9195 (struct diagnostic_context): Add field "edit_context_ptr".
9196 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
9197 -fdiagnostics-generate-patch.
9198 (-fdiagnostics-generate-patch): New item.
9199 * toplev.c: Include "edit-context.h".
9200 (process_options): Set global_dc->edit_context_ptr to a new
9201 edit_context if the options need one.
9202 (toplev::main): Handle -fdiagnostics-generate-patch by using
9203 global_dc->edit_context_ptr.
9205 2016-09-02 Jakub Jelinek <jakub@redhat.com>
9208 * gimplify.c (gimplify_adjust_omp_clauses_1): Diagnose implicit
9209 map and firstprivate clauses on target construct for _Atomic
9211 (gimplify_adjust_omp_clauses): Diagnose explicit firstprivate clauses
9212 on target construct for _Atomic qualified decls.
9213 * omp-low.c (use_pointer_for_field): Return true for _Atomic qualified
9215 * omp-simd-clone.c (simd_clone_clauses_extract): Warn and give up for
9216 _Atomic qualified arguments not mentioned in uniform clause.
9218 2016-09-02 David Malcolm <dmalcolm@redhat.com>
9220 * Makefile.in (OBJS-libcommon): Add edit-context.o.
9221 * diagnostic-color.c (color_dict): Add "diff-filename",
9222 "diff-hunk", "diff-delete", and "diff-insert".
9223 (parse_gcc_colors): Update default value of GCC_COLORS in comment
9224 to reflect above changes.
9225 * doc/invoke.texi (-fdiagnostics-color): Update description of
9226 default GCC_COLORS, and of the supported capabilities.
9227 * edit-context.c: New file.
9228 * edit-context.h: New file.
9229 * input.c (struct fcache): Add field "missing_trailing_newline".
9230 (diagnostics_file_cache_forcibly_evict_file): Initialize it to
9232 (add_file_to_cache_tab): Likewise.
9233 (fcache::fcache): Likewise.
9234 (get_next_line): Update c->missing_trailing_newline.
9235 (location_missing_trailing_newline): New function.
9236 * input.h (location_missing_trailing_newline): New decl.
9237 * selftest-run-tests.c (selftest::run_tests): Call
9238 edit_context_c_tests.
9239 * selftest.h (edit_context_c_tests): New decl.
9241 2016-09-02 Jakub Jelinek <jakub@redhat.com>
9242 Richard Biener <rguenth@suse.de>
9244 PR tree-optimization/77444
9245 * tree-ssa-loop-ivopts.c (cand_value_at): For pointers use sizetype
9246 as steptype, remove redundant initialization.
9248 2016-09-02 Jakub Jelinek <jakub@redhat.com>
9251 * sanopt.c: Include gimple-ssa.h, tree-phinodes.h and ssa-iterators.h.
9252 (sanopt_optimize_walker): Optimize away
9253 __asan_before_dynamic_init (...) followed by
9254 __asan_after_dynamic_init () without intervening memory loads/stores.
9255 * ipa-pure-const.c (special_builtin_state): Handle
9256 BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT and
9257 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT.
9259 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9261 * cfg.c (free_original_copy_tables): Replace second assignment of
9262 bb_copy = NULL by bb_original = NULL.
9264 2016-09-02 Jakub Jelinek <jakub@redhat.com>
9267 * config/i386/i386.c (ix86_expanded_args_builtin): Remove redundant
9268 assignment added in r216794.
9270 2016-09-02 David Malcolm <dmalcolm@redhat.com>
9272 * Makefile.in (OBJS): Add typed-splay-tree.o.
9273 * selftest-run-tests.c (selftest::run_tests): Call
9274 typed_splay_tree_c_tests.
9275 * selftest.h (typed_splay_tree_c_tests): New decl.
9276 * typed-splay-tree.c: New file.
9277 * typed-splay-tree.h (typed_splay_tree::foreach_fn): New typedef.
9278 (typed_splay_tree::max): New method.
9279 (typed_splay_tree::min): New method.
9280 (typed_splay_tree::foreach): New method.
9281 (typed_splay_tree::closure): New struct.
9282 (typed_splay_tree::inner_foreach_fn): New function.
9284 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9286 * ipa-cp.c (ipcp_store_bits_results): Change option name from
9287 -fipa-cp-bit to -fipa-bit-cp.
9289 2016-09-01 Martin Sebor <msebor@redhat.com>
9291 PR tree-optimization/71831
9292 * tree-object-size.h: Return bool instead of the size and add
9293 argument for the size.
9294 * tree-object-size.c (compute_object_offset): Update signature.
9295 (addr_object_size): Same.
9296 (compute_builtin_object_size): Return bool instead of the size
9297 and add argument for the size. Handle POINTER_PLUS_EXPR when
9298 optimization is disabled.
9299 (expr_object_size): Adjust.
9300 (plus_stmt_object_size): Adjust.
9301 (pass_object_sizes::execute): Adjust.
9302 * builtins.c (fold_builtin_object_size): Adjust.
9303 * doc/extend.texi (Object Size Checking): Update.
9304 * ubsan.c (instrument_object_size): Adjust.
9306 2016-09-01 Martin Sebor <msebor@redhat.com>
9308 * genmatch.c (parser::parse_expr): Increase buffer size to guarantee
9309 it fits the output of the formatted function regardless of its
9311 * genmodes.c (parser::parse_expr): Same.
9312 * gimplify.c (gimplify_asm_expr): Same.
9313 * passes.c (pass_manager::register_one_dump_file): Same.
9314 * print-tree.c (print_node): Same.
9316 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
9318 * config/rs6000/altivec.md: Use VSCR_REGNO instead of 110 throughout.
9320 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
9322 * config/rs6000/altivec.md: Use VRSAVE_REGNO instead of 109 throughout.
9324 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
9326 * config/rs6000/altivec.md: Use CR6_REGNO instead of 74 throughout.
9327 * config/rs6000/vector.md: Ditto.
9328 * config/rs6000/vsx.md: Ditto.
9330 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
9332 * ipa-inline-analysis.c (param_change_prob): Get to the base object
9335 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
9337 * config/rs6000/rs6000.md (*restore_gpregs_<mode>_r11,
9338 *restore_gpregs_<mode>_r12, *restore_gpregs_<mode>_r1,
9339 *return_and_restore_gpregs_<mode>_r11,
9340 *return_and_restore_gpregs_<mode>_r12,
9341 *return_and_restore_gpregs_<mode>_r1,
9342 *return_and_restore_fpregs_<mode>_r11,
9343 *return_and_restore_fpregs_<mode>_r12,
9344 *return_and_restore_fpregs_<mode>_r1): Use the hard register LR_REGNO
9345 directly instead of via the "l" constraint. Renumber operands.
9348 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
9350 * config/rs6000/altivec.md (*save_world, *save_vregs_<mode>_r11,
9351 save_vregs_<mode>_r12, *restore_vregs_<mode>_r11,
9352 *restore_vregs_<mode>_r12): Use LR_REGNO instead of 65.
9353 * config/rs6000/darwin.md (load_macho_picbase, load_macho_picbase_si,
9354 load_macho_picbase_di, *call_indirect_nonlocal_darwin64,
9355 *call_nonlocal_darwin64, *call_value_indirect_nonlocal_darwin64,
9356 *call_value_nonlocal_darwin64, reload_macho_picbase,
9357 reload_macho_picbase_si, reload_macho_picbase_di): Ditto.
9358 * config/rs6000/rs6000.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Ditto.
9359 * config/rs6000/rs6000.md (*save_gpregs_<mode>_r11,
9360 *save_gpregs_<mode>_r12, *save_gpregs_<mode>_r1,
9361 *save_fpregs_<mode>_r11, *save_fpregs_<mode>_r12,
9362 *save_fpregs_<mode>_r1): Ditto.
9363 * config/rs6000/spe.md (*save_gpregs_spe, *restore_gpregs_spe,
9364 *return_and_restore_gpregs_spe): Ditto.
9366 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
9368 * config/rs6000/rs6000.md
9369 (define_insn "*return_and_restore_fpregs_aix_<mode>_r11"): Delete
9370 the use of the link register.
9371 (define_insn "*return_and_restore_fpregs_aix_<mode>_r1"): Ditto.
9373 2016-09-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9374 Michael Meissner <meissner@linux.vnet.ibm.com>
9377 * config/rs6000/rs6000.c (rs6000_legitimize_address): Avoid
9378 reg+reg addressing for TImode.
9379 (rs6000_legitimate_address_p): Only allow register indirect
9380 addressing for TImode, even without TARGET_QUAD_MEMORY.
9382 2016-09-01 Richard Biener <rguenther@suse.de>
9385 * tree-chrec.c (tree_fold_binomial): Use widest_int, properly
9386 check whether the result fits the desired result type.
9388 2016-09-01 Nathan Sidwell <nathan@acm.org>
9390 * config/nvptx/nvptx.md (cbranch<mode>4): Op 2 can be const.
9392 2016-09-01 Wilco Dijkstra <wdijkstr@arm.com>
9394 * config/aarch64/aarch64.c (aarch64_legitimize_address_displacement):
9396 (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): Define.
9398 2016-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9400 * config/aarch64/aarch64.md (*ands<mode>_compare0): New pattern.
9401 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_NZmode
9402 for comparisons of integer ZERO_EXTEND against zero.
9404 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
9406 * config/i386/i386.c (ix86_option_override_internal): Also disable the
9407 STV pass if -mstackrealign is enabled.
9409 2016-08-31 Ilya Verbin <iverbin@gmail.com>
9411 * config/i386/driver-i386.c (host_detect_local_cpu): Fix detection of
9414 2016-08-31 David Malcolm <dmalcolm@redhat.com>
9416 * diagnostic-show-locus.c (class layout): Add field m_fixit_hints.
9417 (layout_range::intersects_line_p): New method.
9418 (test_range_contains_point_for_single_point): Rename to...
9419 (test_layout_range_for_single_point): ...this, and add testing
9420 for layout_range::intersects_line_p.
9421 (test_range_contains_point_for_single_line): Rename to...
9422 (test_layout_range_for_single_line): ...this, and add testing
9423 for layout_range::intersects_line_p.
9424 (test_range_contains_point_for_multiple_lines): Rename to...
9425 (test_layout_range_for_multiple_lines): ...this, and add testing
9426 for layout_range::intersects_line_p.
9427 (layout::layout): Populate m_fixit_hints.
9428 (layout::get_expanded_location): Handle the case of a line-span
9430 (layout::validate_fixit_hint_p): New method.
9431 (get_line_span_for_fixit_hint): New function.
9432 (layout::calculate_line_spans): Add spans for fixit-hints.
9433 (layout::should_print_annotation_line_p): New method.
9434 (layout::print_any_fixits): Drop param "richloc", instead using
9435 validated fixits in m_fixit_hints. Add "const" to hint pointers.
9436 (diagnostic_show_locus): Avoid printing blank annotation lines.
9437 (selftest::test_diagnostic_context::test_diagnostic_context):
9438 Initialize show_column and start_span.
9439 (selftest::test_diagnostic_context::start_span_cb): New static
9441 (selftest::test_diagnostic_show_locus_fixit_lines): New function.
9442 (selftest::diagnostic_show_locus_c_tests): Update for function
9443 renamings. Call test_diagnostic_show_locus_fixit_lines.
9445 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
9447 PR tree-optimization/73714
9448 * match.pd (a * (1 << b)): Revert change from 2016-05-23.
9450 2016-08-31 David Malcolm <dmalcolm@redhat.com>
9452 * selftest.c: Move "namespace selftest {" to top of file,
9453 removing explicit "selftest::" qualifiers throughout.
9455 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
9457 * config/i386/avx512fintrin.h (__m512_u, __m512i_u, __m512d_u):
9459 (_mm512_loadu_pd, _mm512_storeu_pd, _mm512_loadu_ps,
9460 _mm512_storeu_ps, _mm512_loadu_si512, _mm512_storeu_si512):
9461 Replace builtin with vector extension.
9462 * config/i386/avxintrin.h (__m256_u, __m256i_u, __m256d_u):
9464 (_mm256_loadu_pd, _mm256_storeu_pd, _mm256_loadu_ps,
9465 _mm256_storeu_ps, _mm256_loadu_si256, _mm256_storeu_si256):
9466 Replace builtin with vector extension.
9467 * config/i386/emmintrin.h (__m128i_u, __m128d_u): New types.
9468 (_mm_loadu_pd, _mm_storeu_pd, _mm_loadu_si128, _mm_storeu_si128):
9469 Replace builtin with vector extension.
9470 * config/i386/xmmintrin.h (__m128_u): New type.
9471 (_mm_loadu_ps, _mm_storeu_ps): Replace builtin with vector extension.
9472 (_mm_load_ps, _mm_store_ps): Simplify.
9474 2016-08-31 Eric Botcazou <ebotcazou@adacore.com>
9476 * config/arm/arm.c (thumb1_size_rtx_costs) <SET>: Add missing guard.
9478 2016-08-30 David Malcolm <dmalcolm@redhat.com>
9480 * diagnostic-show-locus.c (colorizer::begin_state): Support more
9481 than 3 ranges per diagnostic by alternating between color 1 and
9483 (layout::layout): Replace use of rich_location::MAX_RANGES
9484 with richloc->get_num_locations ().
9485 (layout::calculate_line_spans): Replace use of
9486 rich_location::MAX_RANGES with m_layout_ranges.length ().
9487 (layout::print_annotation_line): Handle arbitrary numbers of
9488 ranges in caret-printing by defaulting to '^'.
9489 (selftest::test_one_liner_many_fixits): New function.
9490 (test_diagnostic_show_locus_one_liner): Call it.
9491 * diagnostic.c (diagnostic_initialize): Update for renaming
9492 of rich_location::MAX_RANGES to
9493 rich_location::STATICALLY_ALLOCATED_RANGES.
9494 * diagnostic.h (struct diagnostic_context): Likewise.
9496 2016-08-30 David Malcolm <dmalcolm@redhat.com>
9498 * selftest.c (selftest::named_temp_file::named_temp_file): New
9500 (selftest::temp_source_file::~temp_source_file): Move to...
9501 (selftest::named_temp_file::~named_temp_file): ...here.
9502 (selftest::test_named_temp_file): New function.
9503 (selftest::selftest_c_tests): Call test_named_temp_file.
9504 * selftest.h (class named_temp_file): New class.
9505 (class temp_source_file): Convert to a subclass of named_temp_file.
9507 2016-08-30 Segher Boessenkool <segher@kernel.crashing.org>
9509 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Do not emit
9510 USEs of LR_REGNO in returns and sibcalls.
9511 (rs6000_output_mi_thunk): Similar.
9512 (rs6000_sibcall_aix): Similar.
9513 * config/rs6000/rs6000.md (sibcall, sibcall_value, sibcall_local32,
9514 sibcall_local64, sibcall_value_local32, sibcall_value_local64,
9515 sibcall_nonlocal_sysv<mode>, sibcall_value_nonlocal_sysv<mode>):
9516 Remove the USE of LR_REGNO from the patterns as well. Delete an
9518 (return_internal_<mode>): Delete.
9520 2016-08-30 Tamar Christina <tamar.christina@arm.com>
9522 * config/aarch64/aarch64-simd.md
9523 (aarch64_ld2<mode>_dreg_le): New.
9524 (aarch64_ld2<mode>_dreg_be): New.
9525 (aarch64_ld2<mode>_dreg): Removed.
9526 (aarch64_ld3<mode>_dreg_le): New.
9527 (aarch64_ld3<mode>_dreg_be): New.
9528 (aarch64_ld3<mode>_dreg): Removed.
9529 (aarch64_ld4<mode>_dreg_le): New.
9530 (aarch64_ld4<mode>_dreg_be): New.
9531 (aarch64_ld4<mode>_dreg): Removed.
9532 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Wrapper around _le, _be.
9534 2016-08-30 David Malcolm <dmalcolm@redhat.com>
9536 * diagnostic-show-locus.c (test_one_liner_fixit_insert): Remove
9537 redundant location param.
9538 (test_one_liner_fixit_remove): Likewise.
9539 (test_one_liner_fixit_replace): Likewise.
9540 (test_one_liner_fixit_replace_equal_secondary_range): Likewise.
9541 * gcc-rich-location.c
9542 (gcc_rich_location::add_fixit_misspelled_id): Eliminate call to
9543 get_range_from_loc. Drop overload taking a const char *.
9544 * gcc-rich-location.h
9545 (gcc_rich_location::add_fixit_misspelled_id): Drop overload taking
9548 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
9550 * config/linux.c (linux_libc_has_function): Return true on musl.
9552 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
9554 * config.gcc (*-*-*musl*): Disable gnu-indirect-function.
9556 2016-08-30 Eric Botcazou <ebotcazou@adacore.com>
9558 * postreload-gcse.c (bb_has_well_behaved_predecessors): Tweak criterion
9559 used for abnormal egdes.
9561 2016-08-30 Jakub Jelinek <jakub@redhat.com>
9563 PR tree-optimization/72866
9564 * tree-vect-patterns.c (search_type_for_mask): Turn into
9565 a small wrapper, move all code to ...
9566 (search_type_for_mask_1): ... this new function. Add caching
9567 and adjust recursive calls.
9570 * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
9571 instead of lookup_type_die (type_main_variant (type)) even for array
9575 * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
9576 constant pool reference return x instead of c.
9578 2016-08-29 Segher Boessenkool <segher@kernel.crashing.org>
9580 * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): Do not
9583 2016-08-29 David Malcolm <dmalcolm@redhat.com>
9586 (selftest::test_make_location_nonpure_range_endpoints): Fix
9589 2016-08-29 David Malcolm <dmalcolm@redhat.com>
9591 * diagnostic-show-locus.c
9592 (selftest::test_one_liner_fixit_validation_adhoc_locations): New
9594 (selftest::test_diagnostic_show_locus_one_liner): Call it.
9595 * input.c (get_pure_location): Move to libcpp/line-map.c.
9596 * input.h (get_pure_location): Convert decl to an inline function
9597 calling implementation in libcpp.
9599 2016-08-29 Uros Bizjak <ubizjak@gmail.com>
9602 * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
9603 template for intel asm dialect.
9604 (vec_set_hi_<mode><mask_name>): Ditto.
9606 2016-08-29 David Malcolm <dmalcolm@redhat.com>
9608 * selftest.h (selftest::fail): Add ATTRIBUTE_NORETURN.
9609 (selftest::fail_formatted): Likewise.
9611 2016-08-29 David Malcolm <dmalcolm@redhat.com>
9613 * input.c (make_location): Call get_start and get_finish
9614 on the endpoints to avoid storing packed ranges or ad-hoc
9616 (selftest::test_make_location_nonpure_range_endpoints): New function.
9617 (selftest::input_c_tests): Call it.
9618 * input.h (get_start): New inline function.
9620 2016-08-29 Tom de Vries <tom@codesourcery.com>
9623 * gimplify.c (gimplify_va_arg_expr): Replace first argument type error
9626 2016-08-29 Eric Botcazou <ebotcazou@adacore.com>
9628 * Makefile.in (gcov-iov.h): Add dummy recipe.
9630 2016-08-29 Nathan Sidwell <nathan@acm.org>
9632 * config/nvptx/nvptx.c: #include tree-vrp.h.
9634 2016-08-28 Eric Botcazou <ebotcazou@adacore.com>
9637 * config/sparc/sparc.c (sparc_legitimate_address_p): Accept special
9638 HIGH+LO construct during reload.
9640 2016-08-28 Tom de Vries <tom@codesourcery.com>
9643 * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
9644 'sysv_abi va_list' attribute.
9645 (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
9646 (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
9649 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9651 * emit-rtl.h (struct rtl_data): Make stack_slot_list a vector.
9652 * emit-rtl.c (unshare_all_rtl_1): Adjust.
9653 (unshare_all_rtl_again): Likewise.
9654 * function.c (assign_stack_local_1): Likewise.
9655 (assign_stack_temp_for_type): Likewise.
9657 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9659 * cfgbuild.c (make_edges): Adjust.
9660 * cfgrtl.c (can_delete_label_p): Likewise.
9661 * dwarf2cfi.c (create_trace_edges): Likewise.
9662 * except.c (sjlj_emit_dispatch_table): Likewise.
9663 * function.h (struct expr_status): make x_forced_labels a vector.
9664 * jump.c (rebuild_jump_labels_1): Adjust.
9665 * reload1.c (set_initial_label_offsets): Likewise.
9666 * stmt.c (force_label_rtx): Likewise.
9667 (expand_label): Likewise.
9669 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9671 * haifa-sched.c (fix_recovery_deps): Make ready_list a vector.
9673 2016-08-27 Patrick Palka <ppalka@gcc.gnu.org>
9675 PR tree-optimization/71077
9676 PR tree-optimization/68542
9677 * fold-const.c (fold_relational_const): Fix folding of
9678 VECTOR_CST comparisons that have a scalar boolean result type.
9679 (selftest::test_vector_folding): New static function.
9680 (selftest::fold_const_c_tests): Call it.
9682 2016-08-27 Gerald Pfeifer <gerald@pfeifer.com>
9684 * doc/extend.texi (SPU Built-in Functions): Remove stale
9685 references to material formerly at IBM and Sony.
9687 2016-08-26 David Edelsohn <dje.gcc@gmail.com>
9690 * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
9692 2016-08-26 David Malcolm <dmalcolm@redhat.com>
9694 * diagnostic-show-locus.c
9695 (selftest::test_fixit_consolidation): New function.
9696 (selftest::diagnostic_show_locus_c_tests): Call it.
9697 * gcc-rich-location.h (gcc_rich_location): Eliminate unused
9698 constructor based on source_range.
9700 2016-08-26 David Malcolm <dmalcolm@redhat.com>
9702 * diagnostic-color.c (color_dict): Add "fixit-insert" and
9704 (parse_gcc_colors): Update description of default GCC_COLORS.
9705 * diagnostic-show-locus.c (colorizer::set_fixit_hint): Delete.
9706 (colorizer::set_fixit_insert): New method.
9707 (colorizer::set_fixit_delete): New method.
9708 (colorizer::get_color_by_name): New method.
9709 (colorizer::STATE_FIXIT_INSERT): New constant.
9710 (colorizer::STATE_FIXIT_DELETE): New constant.
9711 (class colorizer): Drop "_cs" suffix from fields. Delete "_ce"
9712 fields in favor of new field "m_stop_color". Add fields
9713 "m_fixit_insert" and "m_fixit_delete".
9714 (colorizer::colorizer): Update for above changes. Replace
9715 colorize_start calls with calls to get_color_by_name.
9716 (colorizer::begin_state): Handle STATE_FIXIT_INSERT and
9717 STATE_FIXIT_DELETE. Update for field renamings.
9718 (colorizer::finish_state): Simplify by using m_stop_color,
9719 rather than multiple identical "*_ce" fields.
9720 (colorizer::get_color_by_name): New method.
9721 (layout::print_any_fixits): Print insertions and replacements
9722 using the "fixit-insert" color, and deletions using the
9723 "fixit-delete" color.
9724 * doc/invoke.texi (-fdiagnostics-color): Update description of
9725 default GCC_COLORS, and of the supported capabilities.
9727 2016-08-26 Max Filippov <jcmvbkbc@gmail.com>
9729 * config/xtensa/xtensa.c (xtensa_expand_prologue): Update
9730 current_function_static_stack_size variable with the static
9731 stack frame size of the current function when
9732 flag_stack_usage_info is enabled.
9734 2016-08-26 Nathan Sidwell <nathan@acm.org>
9736 * ipa-inline-analysis.c (inline_write_summary): Remove unnecessary
9737 assignment inside if condition.
9739 2016-08-26 Richard Biener <rguenther@suse.de>
9741 PR tree-optimization/69047
9742 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle general bitfield
9743 extracts similar to what FRE does.
9744 (non_rewritable_mem_ref_base): Likewise.
9746 2016-08-26 Joseph Myers <joseph@codesourcery.com>
9748 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p)
9749 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
9750 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
9751 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
9752 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE):
9754 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
9755 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
9756 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
9757 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Likewise.
9758 * config/i386/vxworks.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
9760 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9763 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_muld): Reduce
9764 reservation duration to 15 cycles.
9765 (cortex_a8_vfp_macs): Likewise.
9766 (cortex_a8_vfp_macd): Likewise.
9767 (cortex_a8_vfp_divs): Likewise.
9768 (cortex_a8_vfp_divd): Likewise.
9770 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9772 * config/arm/arm.c (arm_sets_movw_movt_fusible_p): New function.
9773 (aarch_macro_fusion_pair_p): Use above to avoid early return.
9775 2016-08-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9776 Martin Jambhor <mjambor@suse.cz>
9778 * common.opt: New option -fipa-bit-cp.
9779 * doc/invoke.texi: Document -fipa-bit-cp.
9780 * opts.c (default_options_table): Add entry for -fipa-bit-cp.
9781 (enable_fdo_optimizations): Check for flag_ipa_bit_cp.
9782 * tree-ssa-ccp.h: New header file.
9783 * tree-ssa-ccp.c: Include tree-ssa-ccp.h
9784 (bit_value_binop_1): Change to bit_value_binop_1 and export it.
9785 Replace all occurences of tree parameter by two new params: signop, int.
9786 (bit_value_unop_1): Change to bit_value_unop and export it.
9787 Replace all occurences of tree parameter by two new params: signop,
9789 (bit_value_binop): Change call from bit_value_binop_1 to
9791 (bit_value_assume_aligned): Likewise.
9792 (bit_value_unop): Change call from bit_value_unop_1 to bit_value_unop.
9793 (do_ssa_ccp): Pass nonzero_p || flag_ipa_cp_bit instead of nonzero_p
9795 (ccp_finalize): Skip processing if val->mask == 0.
9796 * ipa-cp.c: Include tree-ssa-ccp.h
9797 (ipcp_bits_lattice): New class.
9798 (ipcp_param_lattice (bits_lattice): New member.
9799 (print_all_lattices): Call ipcp_bits_lattice::print.
9800 (set_all_contains_variable): Call ipcp_bits_lattice::set_to_bottom.
9801 (initialize_node_lattices): Likewise.
9802 (propagate_bits_accross_jump_function): New function.
9803 (propagate_constants_accross_call): Call
9804 propagate_bits_accross_jump_function.
9805 (ipcp_propagate_stage): Store parameter types when in_lto_p is true.
9806 (ipcp_store_bits_results): New function.
9807 (ipcp_driver): Call ipcp_store_bits_results.
9808 * ipa-prop.h (ipa_bits): New struct.
9809 (ipa_jump_func): Add new member bits of type ipa_bits.
9810 (ipa_param_descriptor): Change decl to decl_or_type.
9811 (ipa_get_param): Change decl to decl_or_type and assert on
9813 (ipa_get_type): New function.
9814 (ipcp_transformation_summary): New member bits.
9815 * ipa-prop.c (ipa_get_param_decl_index_1): s/decl/decl_or_type.
9816 (ipa_populate_param_decls): Likewise.
9817 (ipa_dump_param): Likewise.
9818 (ipa_print_node_jump_functions_for_edge): Pretty-print ipa_bits jump
9820 (ipa_set_jf_unknown): Set ipa_bits::known to false.
9821 (ipa_compute_jump_functions_for_edge): Compute jump function for bits
9823 (ipa_node_params_t::duplicate): Copy src->bits into dst->bits.
9824 (ipa_write_jump_function): Add streaming for ipa_bits.
9825 (ipa_read_jump_function): Add support for reading streamed ipa_bits.
9826 (write_ipcp_transformation_info): Add streaming for ipa_bits
9828 (read_ipcp_transfomration_info): Add support for reading streamed
9830 (ipcp_update_bits): New function.
9831 (ipcp_transform_function): Call ipcp_update_bits.
9833 2016-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
9835 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Update.
9836 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Update.
9838 2016-08-25 David Edelsohn <dje.gcc@gmail.com>
9840 * multiple_target.c (pass_data_dispatcher_calls): Fix typo.
9842 2016-08-25 Richard Biener <rguenther@suse.de>
9844 * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
9845 Only add locations in late dwarf.
9846 (gen_scheduled_generic_parms_dies): Do not set early dwarf here.
9847 (dwarf2out_early_finish): But do it here.
9849 2016-08-24 Michael Collison <michael.collison@linaro.org>
9850 Michael Collison <michael.collison@arm.com>
9852 * config/arm/arm-modes.def: Add new condition code mode CC_V
9853 to represent the overflow bit.
9854 * config/arm/arm.c (maybe_get_arm_condition_code):
9855 Add support for CC_Vmode.
9856 (arm_gen_unlikely_cbranch): New function to generate common
9857 rtl conditional branches for overflow patterns.
9858 * config/arm/arm-protos.h: Add prototype for
9859 arm_gen_unlikely_cbranch.
9860 * config/arm/arm.md (addv<mode>4, add<mode>3_compareV,
9861 addsi3_compareV_upper): New patterns to support signed
9862 builtin overflow add operations.
9863 (uaddv<mode>4, add<mode>3_compareC, addsi3_compareV_upper):
9864 New patterns to support unsigned builtin add overflow operations.
9865 (subv<mode>4, sub<mode>3_compare1): New patterns to support signed
9866 builtin overflow subtract operations,
9867 (usubv<mode>4): New patterns to support unsigned builtin subtract
9868 overflow operations.
9869 (negvsi3, negvdi3, negdi2_compare, negsi2_carryin_compare): New patterns
9870 to support builtin overflow negate operations.
9872 2016-08-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9875 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
9877 * explow.c (get_dynamic_stack_size): Take known alignment of stack
9878 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
9881 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
9883 * doc/fragments.texi (MULTILIB_REUSE): Mention that only options in
9884 MULTILIB_OPTIONS should be used. Small wording fixes.
9885 * genmultilib: Memorize set of all option combinations in
9886 combination_space. Detect if RHS of MULTILIB_REUSE uses an option not
9887 found in MULTILIB_OPTIONS by checking if option set is listed in
9888 combination_space. Output new and existing error message to stderr.
9890 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
9892 * config/arm/t-aprofile (MULTILIB_MATCHES): Add mapping for
9893 -mcpu=cortex-a7, -mfpu=neon-fp16, -mfpu=fpv5-d16 and -mfpu=fp-armv8.
9894 Fix typo in -mfpu=vfpv3-d16-fp16 mapping.
9895 (MULTILIB_REUSE): Remove reuse rules for option set including
9896 -mfpu=fp-armv8 and -mfpu=vfpv4
9898 2016-08-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
9900 * config/arm/t-rtems: Add vfp multilib.
9902 2016-08-23 Ian Lance Taylor <iant@golang.org>
9904 * config/s390/s390.c (s390_asm_file_start): Call
9907 2016-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
9909 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Set
9910 initialization of all 0's to the 0 constant, instead of directly
9911 generating XOR. Add support for V4SImode vector initialization on
9912 64-bit systems with direct move, and rework the ISA 3.0 V4SImode
9913 initialization. Change variables used in V4SFmode vector
9914 intialization. For V4SFmode vector splat on ISA 3.0, make sure
9915 any memory addresses are in index form. Add support for using
9916 VSPLTH/VSPLTB to initialize vector short and vector char vectors
9917 with all of the same element.
9918 (regno_or_subregno): New helper function to return a register
9919 number for either REG or SUBREG.
9920 (rs6000_adjust_vec_address): Do not generate ADDI <reg>,R0,<num>.
9921 Use regno_or_subregno where possible.
9922 (rs6000_split_v4si_init_di_reg): New helper function to build up a
9923 DImode value from two SImode values in order to generate V4SImode
9924 vector initialization on 64-bit systems with direct move.
9925 (rs6000_split_v4si_init): Split up the insns for a V4SImode vector
9927 (rtx_is_swappable_p): V4SImode vector initialization insn is not
9929 * config/rs6000/rs6000-protos.h (rs6000_split_v4si_init): Add
9931 * config/rs6000/vsx.md (VSX_SPLAT_I): New mode iterators and
9932 attributes to initialize V8HImode and V16QImode vectors with the
9934 (VSX_SPLAT_COUNT): Likewise.
9935 (VSX_SPLAT_SUFFIX): Likewise.
9936 (UNSPEC_VSX_VEC_INIT): New unspec.
9937 (vsx_concat_v2sf): Eliminate using 'preferred' register classes.
9938 Allow SFmode values to come from Altivec registers.
9939 (vsx_init_v4si): New insn/split for V4SImode vector initialization
9940 on 64-bit systems with direct move.
9941 (vsx_splat_<mode>, VSX_W iterator): Rework V4SImode and V4SFmode
9942 vector initializations, to allow V4SImode vector initializations
9943 on 64-bit systems with direct move.
9944 (vsx_splat_v4si): Likewise.
9945 (vsx_splat_v4si_di): Likewise.
9946 (vsx_splat_v4sf): Likewise.
9947 (vsx_splat_v4sf_internal): Likewise.
9948 (vsx_xxspltw_<mode>, VSX_W iterator): Eliminate using 'preferred'
9950 (vsx_xxspltw_<mode>_direct, VSX_W iterator): Likewise.
9951 (vsx_vsplt<VSX_SPLAT_SUFFIX>_di): New insns to support
9952 initializing V8HImode and V16QImode vectors with the same
9954 * config/rs6000/rs6000.h (TARGET_DIRECT_MOVE_64BIT): Disallow
9955 optimization if -maltivec=be.
9957 2016-08-23 Christophe Lyon <christophe.lyon@linaro.org>
9959 * config/arm/arm.md (arm_movqi_insn): Swap predicable_short_it
9960 attribute for alternatives 3 and 4.
9962 2016-08-23 David Malcolm <dmalcolm@redhat.com>
9964 * selftest.c (selftest::assert_str_contains): New function.
9965 (selftest::test_assertions): Verify ASSERT_STR_CONTAINS.
9966 * selftest.h (selftest::assert_str_contains): New decl.
9967 (ASSERT_STR_CONTAINS): New macro.
9969 2016-08-23 Richard Biener <rguenther@suse.de>
9971 PR tree-optimization/77286
9972 * tree-vect-loop.c (vect_analyze_loop_form_1): Do not modify
9974 (vect_transform_loop): Split exit edges of loop and scalar
9975 loop if required and at the appropriate time.
9977 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
9979 * explow.c (get_dynamic_stack_size): Take known alignment of stack
9980 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
9982 Correct a typo in a comment.
9984 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
9986 * config/s390/s390.md ("*andc_split"): New splitter for and with
9989 2016-08-23 Richard Biener <rguenther@suse.de>
9991 PR tree-optimization/27336
9992 * tree-vrp.c (infer_value_range): Handle stmts that can throw
9993 by looking for a non-EH edge.
9994 (process_assert_insertions_for): Likewise.
9996 2016-08-23 Richard Biener <rguenther@suse.de>
9999 * statistics.c (statistics_counter_event): Robustify against
10002 2016-08-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
10004 * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
10005 for targets amdfam10 and barcelona.
10007 2016-08-22 Uros Bizjak <ubizjak@gmail.com>
10009 * config/i386/i386.md (*zero_extendsidi2): Add (*r,*k) alternative.
10010 (zero_extend<mode>di2): Ditto.
10011 (*zero_extend<mode>si2): Ditto.
10012 (*zero_extendqihi2): Ditto.
10014 2016-08-22 Joseph Myers <joseph@codesourcery.com>
10016 PR middle-end/77269
10017 * builtins.c (fold_builtin_classify): Use builtin_decl_explicit
10018 (BUILT_IN_SIGNBIT) to expand __builtin_isinf_sign.
10020 2016-08-22 Patrick Palka <ppalka@gcc.gnu.org>
10022 * print-tree.c (print_node) [VECTOR_CST]: Coalesce the output of
10023 identical consecutive elements.
10024 [SSA_NAME]: Print the name's def stmt on its own line. When printing
10025 the node's def stmt, avoid printing an unwanted trailing newline by
10026 replacing the call to print_gimple_stmt() with its inlined body and
10027 adjusting it to not set pp_needs_newline and to call pp_flush()
10028 instead of pp_newline_and_flush().
10030 2016-08-22 Joseph Myers <joseph@codesourcery.com>
10032 * tree.h (CASE_FLT_FN_FLOATN_NX, float16_type_node)
10033 (float32_type_node, float64_type_node, float32x_type_node)
10034 (float128x_type_node): New macros.
10035 * builtin-types.def (BT_FLOAT16, BT_FLOAT32, BT_FLOAT64)
10036 (BT_FLOAT128, BT_FLOAT32X, BT_FLOAT64X, BT_FLOAT128X)
10037 (BT_FN_FLOAT16, BT_FN_FLOAT32, BT_FN_FLOAT64, BT_FN_FLOAT128)
10038 (BT_FN_FLOAT32X, BT_FN_FLOAT64X, BT_FN_FLOAT128X)
10039 (BT_FN_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32)
10040 (BT_FN_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128)
10041 (BT_FN_FLOAT32X_FLOAT32X, BT_FN_FLOAT64X_FLOAT64X)
10042 (BT_FN_FLOAT128X_FLOAT128X, BT_FN_FLOAT16_CONST_STRING)
10043 (BT_FN_FLOAT32_CONST_STRING, BT_FN_FLOAT64_CONST_STRING)
10044 (BT_FN_FLOAT128_CONST_STRING, BT_FN_FLOAT32X_CONST_STRING)
10045 (BT_FN_FLOAT64X_CONST_STRING, BT_FN_FLOAT128X_CONST_STRING)
10046 (BT_FN_FLOAT16_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32_FLOAT32)
10047 (BT_FN_FLOAT64_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128_FLOAT128)
10048 (BT_FN_FLOAT32X_FLOAT32X_FLOAT32X)
10049 (BT_FN_FLOAT64X_FLOAT64X_FLOAT64X)
10050 (BT_FN_FLOAT128X_FLOAT128X_FLOAT128X): New type definitions.
10051 * builtins.def (DEF_GCC_FLOATN_NX_BUILTINS): New macro.
10052 (copysign, fabs, huge_val, inf, nan, nans): Use it.
10053 * builtins.c (expand_builtin): Use CASE_FLT_FN_FLOATN_NX for fabs
10055 (fold_builtin_0): Use CASE_FLT_FN_FLOATN_NX for inf and huge_val.
10056 (fold_builtin_1): Use CASE_FLT_FN_FLOATN_NX for fabs.
10057 * doc/extend.texi (Other Builtins): Document these built-in
10059 * fold-const-call.c (fold_const_call): Use CASE_FLT_FN_FLOATN_NX
10062 2016-08-22 Gerald Pfeifer <gerald@pfeifer.com>
10064 * doc/install.texi (Binaries): www.opencsw.org now uses https.
10066 2016-08-22 Richard Biener <rguenther@suse.de>
10068 * tree-ssa-forwprop.c (pass_forwprop::execute): Use RPO order.
10070 2016-08-21 Uros Bizjak <ubizjak@gmail.com>
10073 * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
10074 TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
10075 non-SSE2 athlons only, otherwise prefer SSE prefetches.
10077 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
10079 * tree-vrp.c (vrp_visit_assignment_or_call): Changed to Return VR.
10080 (vrp_visit_cond_stmt): Just sets TAKEN_EDGE_P.
10081 (vrp_visit_switch_stmt): Likewise.
10082 (extract_range_from_stmt): Factored out from vrp_visit_stmt.
10083 (extract_range_from_phi_node): Factored out from vrp_visit_phi_stmt.
10084 (vrp_visit_stmt): Use extract_range_from_stmt.
10085 (vrp_visit_phi_node): Use extract_range_from_phi_node.
10087 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
10089 * Makefile.in: Add tree-vrp.h to GTFILES.
10090 * gengtype.c (open_base_files): Add tree-vrp.h.
10091 * asan.c: Add tree-vrp.h which now has the definition value_range_type.
10092 * builtins.c: Likewise.
10093 * fold-const.c: Likewise.
10094 * gimple-builder.c: Likewise.
10095 * gimple-laddress.c: Likewise.
10096 * hsa-gen.c: Likewise.
10097 * internal-fn.c: Likewise.
10099 * targhooks.c: Liewise,
10100 * tree-ssa-address.c: Likewise.
10101 * tree-ssanames.h (value_range_type: Move to tree-vrp.h.
10102 * tree-vrp.c (struct value_range): Move to tree-vrp.h
10103 * tree-vrp.h: New file.
10105 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
10107 PR tree-optimization/61839
10108 * tree-vrp.c (two_valued_val_range_p): New.
10109 (simplify_stmt_using_ranges): Convert CST BINOP VAR where VAR is
10110 two-valued to VAR == VAL1 ? (CST BINOP VAL1) : (CST BINOP VAL2).
10111 Also Convert VAR BINOP CST where VAR is two-valued to
10112 VAR == VAL1 ? (VAL1 BINOP CST) : (VAL2 BINOP CST).
10114 2016-08-19 David Malcolm <dmalcolm@redhat.com>
10116 * diagnostic-show-locus.c
10117 (layout::annotation_line_showed_range_p): New method.
10118 (layout::print_any_fixits): Remove case fixit_hint::REMOVE.
10119 Reimplement case fixit_hint::REPLACE to cover removals, and
10120 replacements where the range of the replacement isn't one
10121 of the ranges in the rich_location.
10122 (test_one_liner_fixit_replace): Likewise.
10123 (selftest::test_one_liner_fixit_replace_non_equal_range): New
10125 (selftest::test_one_liner_fixit_replace_equal_secondary_range):
10127 (selftest::test_diagnostic_show_locus_one_liner): Call the new
10129 * diagnostic.c (print_parseable_fixits): Remove case
10130 fixit_hint::REMOVE.
10132 2016-08-19 Uros Bizjak <ubizjak@gmail.com>
10135 * config/i386/i386.c (ix86_option_override_internal): Remove
10136 PTA_PRFCHW from entries that also have PTA_3DNOW flag.
10137 Enable SSE prefetch also for TARGET_PREFETCHWT1.
10138 Do not try to enable TARGET_PRFCHW ISA flag here.
10139 * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
10140 Rewrite expander function body.
10141 (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
10143 2016-08-19 Joseph Myers <joseph@codesourcery.com>
10146 * tree-core.h (TI_COMPLEX_FLOAT16_TYPE)
10147 (TI_COMPLEX_FLOATN_NX_TYPE_FIRST, TI_COMPLEX_FLOAT32_TYPE)
10148 (TI_COMPLEX_FLOAT64_TYPE, TI_COMPLEX_FLOAT128_TYPE)
10149 (TI_COMPLEX_FLOAT32X_TYPE, TI_COMPLEX_FLOAT64X_TYPE)
10150 (TI_COMPLEX_FLOAT128X_TYPE, TI_FLOAT16_TYPE, TI_FLOATN_TYPE_FIRST)
10151 (TI_FLOATN_NX_TYPE_FIRST, TI_FLOAT32_TYPE, TI_FLOAT64_TYPE)
10152 (TI_FLOAT128_TYPE, TI_FLOATN_TYPE_LAST, TI_FLOAT32X_TYPE)
10153 (TI_FLOATNX_TYPE_FIRST, TI_FLOAT64X_TYPE, TI_FLOAT128X_TYPE)
10154 (TI_FLOATNX_TYPE_LAST, TI_FLOATN_NX_TYPE_LAST): New enum
10156 (NUM_FLOATN_TYPES, NUM_FLOATNX_TYPES, NUM_FLOATN_NX_TYPES): New
10158 (struct floatn_type_info): New structure type.
10159 (floatn_nx_types): New variable declaration.
10160 * tree.h (FLOATN_TYPE_NODE, FLOATN_NX_TYPE_NODE)
10161 (FLOATNX_TYPE_NODE, float128_type_node, float64x_type_node)
10162 (COMPLEX_FLOATN_NX_TYPE_NODE): New macros.
10163 * tree.c (floatn_nx_types): New variable.
10164 (build_common_tree_nodes): Initialize _FloatN, _FloatNx and
10165 corresponding complex types.
10166 * target.def (floatn_mode): New hook.
10167 * targhooks.c: Include "real.h".
10168 (default_floatn_mode): New function.
10169 * targhooks.h (default_floatn_mode): New prototype.
10170 * doc/extend.texi (Floating Types): Document _FloatN and _FloatNx
10172 * doc/sourcebuild.texi (float@var{n}, float@var{n}x): Document new
10173 effective-target and dg-add-options keywords.
10174 (float@var{n}_runtime, float@var{n}x_runtime, floatn_nx_runtime):
10175 Document new effective-target keywords.
10176 * doc/tm.texi.in (TARGET_FLOATN_MODE): New @hook.
10177 * doc/tm.texi: Regenerate.
10178 * ginclude/float.h (LDBL_DECIMAL_DIG): Define to
10179 __LDBL_DECIMAL_DIG__, not __DECIMAL_DIG__.
10180 [__STDC_WANT_IEC_60559_TYPES_EXT__]: Define macros from TS
10182 * real.h (struct real_format): Add field ieee_bits.
10183 * real.c (ieee_single_format, mips_single_format)
10184 (motorola_single_format, spu_single_format, ieee_double_format)
10185 (mips_double_format, motorola_double_format)
10186 (ieee_extended_motorola_format, ieee_extended_intel_96_format)
10187 (ieee_extended_intel_128_format)
10188 (ieee_extended_intel_96_round_53_format, ibm_extended_format)
10189 (mips_extended_format, ieee_quad_format, mips_quad_format)
10190 (vax_f_format, vax_d_format, vax_g_format, decimal_single_format)
10191 (decimal_double_format, decimal_quad_format, ieee_half_format)
10192 (arm_half_format, real_internal_format: Initialize ieee_bits
10194 * config/i386/i386.c (ix86_init_builtin_types): Do not initialize
10195 float128_type_node. Set float80_type_node to float64x_type_node
10196 if appropriate and long_double_type_node not appropriate.
10197 * config/ia64/ia64.c (ia64_init_builtins): Likewise.
10198 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format):
10199 Initialize ieee_bits field.
10200 * config/rs6000/rs6000.c (TARGET_FLOATN_MODE): New macro.
10201 (rs6000_init_builtins): Set ieee128_float_type_node to
10202 float128_type_node.
10203 (rs6000_floatn_mode): New function.
10205 2016-08-19 Jakub Jelinek <jakub@redhat.com>
10207 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
10208 _rdseed64_step): Uglify argument names and/or local variable names
10209 in inline functions.
10210 * config/i386/rtmintrin.h (_xabort): Likewise.
10211 * config/i386/avx512vlintrin.h (_mm256_ternarylogic_epi64,
10212 _mm256_mask_ternarylogic_epi64, _mm256_maskz_ternarylogic_epi64,
10213 _mm256_ternarylogic_epi32, _mm256_mask_ternarylogic_epi32,
10214 _mm256_maskz_ternarylogic_epi32, _mm_ternarylogic_epi64,
10215 _mm_mask_ternarylogic_epi64, _mm_maskz_ternarylogic_epi64,
10216 _mm_ternarylogic_epi32, _mm_mask_ternarylogic_epi32,
10217 _mm_maskz_ternarylogic_epi32): Likewise.
10218 * config/i386/lwpintrin.h (__llwpcb, __lwpval32, __lwpval64,
10219 __lwpins32, __lwpins64): Likewise.
10220 * config/i386/avx2intrin.h (_mm_i32gather_pd, _mm_mask_i32gather_pd,
10221 _mm256_i32gather_pd, _mm256_mask_i32gather_pd, _mm_i64gather_pd,
10222 _mm_mask_i64gather_pd, _mm256_i64gather_pd, _mm256_mask_i64gather_pd,
10223 _mm_i32gather_ps, _mm_mask_i32gather_ps, _mm256_i32gather_ps,
10224 _mm256_mask_i32gather_ps, _mm_i64gather_ps, _mm_mask_i64gather_ps,
10225 _mm256_i64gather_ps, _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
10226 _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
10227 _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
10228 _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
10229 _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
10230 _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
10231 _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
10232 _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
10233 _mm256_mask_i64gather_epi32): Likewise.
10234 * config/i386/pmm_malloc.h (_mm_malloc, _mm_free): Likewise.
10235 * config/i386/ia32intrin.h (__writeeflags): Likewise.
10236 * config/i386/pkuintrin.h (_wrpkru): Likewise.
10237 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd,
10238 _mm512_mask_prefetch_i32gather_ps, _mm512_mask_prefetch_i64gather_pd,
10239 _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
10240 _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
10241 _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
10242 _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
10243 _mm512_mask_prefetch_i64scatter_ps): Likewise.
10244 * config/i386/gmm_malloc.h (_mm_malloc, _mm_free): Likewise.
10245 * config/i386/avx512fintrin.h (_mm512_ternarylogic_epi64,
10246 _mm512_mask_ternarylogic_epi64, _mm512_maskz_ternarylogic_epi64,
10247 _mm512_ternarylogic_epi32, _mm512_mask_ternarylogic_epi32,
10248 _mm512_maskz_ternarylogic_epi32, _mm512_i32gather_ps,
10249 _mm512_mask_i32gather_ps, _mm512_i32gather_pd, _mm512_i64gather_ps,
10250 _mm512_i64gather_pd, _mm512_i32gather_epi32, _mm512_i32gather_epi64,
10251 _mm512_i64gather_epi32, _mm512_i64gather_epi64): Likewise.
10253 * config/i386/fxsrintrin.h (_fxsave): Remove return keyword in inlines
10255 (_fxrstor, _fxsave64, _fxrstor64): Likewise.
10256 * config/i386/xsaveintrin.h (_xsave, _xrstor, _xsave64, _xrstor64):
10258 * config/i386/xsaveoptintrin.h (_xsaveopt, _xsaveopt64): Likewise.
10259 * config/i386/pkuintrin.h (_wrpkru): Likewise. Add space after
10261 (_rdpkru_u32): Add space after function name.
10263 * config/i386/t-i386 (i386-c.o): Don't depend on
10264 i386-builtin-types.inc.
10265 (i386.o): Depend on i386-builtin-types.inc.
10267 2016-08-19 Matthew Wahab <matthew.wahab@arm.com>
10270 * config/arm/arm.c (neon_valid_immediate): Delete declaration.
10271 Use const_vec_duplicate to check for duplicated elements.
10273 2016-08-19 Richard Biener <rguenther@suse.de>
10275 PR tree-optimization/77290
10276 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
10277 Fix flag_tree_parallelize_loops check.
10279 2016-08-19 Richard Biener <rguenther@suse.de>
10281 * match.pd (x | 0 -> x): Add.
10283 2016-08-19 Richard Biener <rguenther@suse.de>
10285 PR tree-optimization/77286
10286 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
10287 Deal with virtual PHIs being out-of-order.
10289 2016-08-18 David Malcolm <dmalcolm@redhat.com>
10291 * doc/invoke.texi (fverbose-asm): Note that source code lines
10292 are emitted, and provide an example.
10293 * final.c (asm_show_source): New function.
10294 (final_scan_insn): Call asm_show_source.
10296 2016-08-18 David Malcolm <dmalcolm@redhat.com>
10298 * diagnostic-show-locus.c (colorizer::colorizer): Replace diagnostic
10299 param with diagnostic_kind.
10300 (class colorizer): Similarly replace field m_diagnostic with
10302 (colorizer::colorizer): Replace diagnostic
10303 param with diagnostic_kind.
10304 (colorizer::begin_state): Update for above field change.
10305 (layout::layout): Replace diagnostic param with rich_location *
10306 and diagnostic_kind.
10307 (diagnostic_show_locus): Replace diagnostic param with richloc
10308 and diagnostic_kind.
10309 (class selftest::test_diagnostic_context): New class.
10310 (selftest::test_diagnostic_show_locus_unknown_location): New
10312 (selftest::test_one_liner_simple_caret): New function.
10313 (selftest::test_one_liner_caret_and_range): New function.
10314 (selftest::test_one_liner_multiple_carets_and_ranges): New
10316 (selftest::test_one_liner_fixit_remove): New function.
10317 (selftest::test_one_liner_fixit_replace): New function.
10318 (selftest::test_diagnostic_show_locus_one_liner): New function.
10319 (selftest::diagnostic_show_locus_c_tests): Call the new test
10321 * diagnostic.c (diagnostic_initialize): Initialize
10322 colorize_source_p, show_ruler_p and parseable_fixits_p.
10323 (default_diagnostic_finalizer): Update for change to
10324 diagnostic_show_locus.
10325 (diagnostic_append_note): Likewise.
10326 * diagnostic.h (diagnostic_show_locus): Replace
10327 const diagnostic_info * param with location * and diagnostic_t.
10329 2016-08-18 David Malcolm <dmalcolm@redhat.com>
10331 * input.c (saved_line_table): New global.
10332 (class selftest::temp_line_table): Rename to line_table_test and
10333 move declaration to selftest.h, and drop field m_old_line_table.
10334 (selftest::temp_line_table::temp_line_table): Rename ctor to...
10335 (selftest::line_table_test::line_table_test): ...this. Add a
10336 default ctor. Store current value of line_table within
10338 (selftest::temp_line_table::~temp_line_table): Rename dtor to...
10339 (selftest::line_table_test::~line_table_test): ...this, and
10340 restore line_table from the saved_line_table, rather than
10342 (selftest::test_accessing_ordinary_linemaps): Update for above
10344 (selftest::test_lexer): Likewise.
10345 (struct selftest::lexer_test): Likewise.
10346 (selftest::lexer_test::lexer_test): Likewise.
10347 (selftest::input_c_tests): Move the looping over test cases from
10349 (selftest::for_each_line_table_case): New function.
10350 * input.h (saved_line_table): New decl.
10351 * selftest.h (struct selftest::line_table_case): New forward decl.
10352 (class selftest::line_table_test): New class, moved here from
10353 selftest::temp_line_table in input.c, and renamed.
10354 (selftest::for_each_line_table_case): New decl.
10356 2015-08-18 H.J. Lu <hongjiu.lu@intel.com>
10359 * config/i386/i386.c (lakemont_cost): Set MOVE_RATIO to 17.
10361 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
10363 PR middle-end/70895
10364 * gimplify.c (omp_add_variable): Adjust/add variable mapping on
10365 enclosing parallel construct for reduction variables on OpenACC loop
10368 2016-08-18 Pierre-Marie de Rodat <derodat@adacore.com>
10370 * dwarf2out.c (copy_dwarf_procedure): Remove obsolete comment.
10371 (new_dwarf_proc_die): Emit DW_TAG_dwarf_procedure DIEs even for
10373 (function_to_dwarf_procedure): Update comment.
10375 2016-08-18 David Malcolm <dmalcolm@redhat.com>
10377 * input.c (diagnostics_file_cache_forcibly_evict_file): New
10379 * input.h (diagnostics_file_cache_forcibly_evict_file): New
10381 * selftest.c (selftest::temp_source_file::~temp_source_file):
10382 Evict m_filename from the diagnostic file cache.
10384 2016-08-18 Richard Biener <rguenther@suse.de>
10386 * tree-pass.h (make_pass_materialize_all_clones): Declare.
10387 * ipa.c (pass_data_materialize_all_clones, pass_materialize_all_clones,
10388 make_pass_materialize_all_clones): New simple IPA pass encapsulating
10389 clone materialization.
10390 * passes.def (all_late_ipa_passes): Start with
10391 pass_materialize_all_clones.
10392 * cgraphunit.c (symbol_table::compile): Remove call to
10393 materialize_all_clones.
10394 * tree-into-ssa.c: Include statistics.h.
10395 (update_ssa): Count number of times we do incremental/rewrite
10398 2016-08-18 Richard Biener <rguenther@suse.de>
10400 PR tree-optimization/77282
10401 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
10402 When doing auto-parallelizing also prevent use of PHIs that
10403 carry dependences across loop backedges.
10405 2016-08-18 Tamar Christina <tamar.christina@arm.com>
10406 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10408 * varasm.c (default_use_anchors_for_symbol_p): Reject too large decls.
10410 2016-08-18 Richard Biener <rguenther@suse.de>
10412 * ssa-iterators.h (ssa_vuse_operand): New inline.
10413 * tree-if-conv.c (ifc_temp_var): Update virtual operand.
10414 (predicate_all_scalar_phis): Use remove_phi_node to remove
10415 phi nodes predicated. Delay removing virtual PHIs.
10416 (predicate_mem_writes): Update virtual operands.
10417 (combine_blocks): Likewise. Propagate out remaining virtual PHIs.
10418 (tree_if_conversion): Do not rewrite virtual SSA form.
10419 * tree-phinodes.c (release_phi_node): Make static.
10420 * tree-phinodes.h (release_phi_node): Remove.
10422 2016-08-18 Jakub Jelinek <jakub@redhat.com>
10424 * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_*
10425 codes that appear in bdesc_* arrays, instead include i386-builtin.def
10426 twice to define those.
10427 (bdesc_comi, bdesc_pcmpestr, bdesc_pcmpistr, bdesc_special_args,
10428 bdesc_args, bdesc_round_args, bdesc_mpx, bdesc_mpx_const,
10429 bdesc_multi_arg): Define by including i386-builtin.def the third time.
10430 * config/i386/i386-builtin.def: New file.
10432 2016-08-17 David Malcolm <dmalcolm@redhat.com>
10434 * input.c (get_source_range_for_char): Rename to...
10435 (selftest::get_source_range_for_char): ...this, and move within
10436 the #if CHECKING_P guard.
10437 (get_num_source_ranges_for_substring): Rename to...
10438 (selftest::get_num_source_ranges_for_substring): ...this, move
10439 within the #if CHECKING_P guard, and make static.
10440 (selftest::assert_num_substring_ranges): Initialize
10443 2016-08-18 Alan Modra <amodra@gmail.com>
10445 PR rtl-optimization/72771
10446 * reload.c (find_reloads): Don't assume that a subreg mem is OK
10447 when find_reloads_toplev returns address_reloaded==-1.
10448 (alternative_allows_const_pool_ref): Update comment.
10450 2015-08-17 Alan Hayward <alan.hayward@arm.com>
10452 PR tree-optimization/71752
10453 * tree-vect-loop.c (vectorizable_reduction): Keep SLP operand ordering.
10454 * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
10456 2016-08-17 Jakub Jelinek <jakub@redhat.com>
10458 * gimple-fold.c (gimple_fold_call): Use gimple_call_noreturn_p
10459 instead of testing ECF_NORETURN bit in gimple_call_flags.
10460 * tree-cfg.c (make_edges_bb, execute_fixup_cfg): Likewise.
10461 * predict.c (tree_bb_level_predictions): Likewise.
10462 * gimple-low.c (gimple_stmt_may_fallthru): Likewise.
10464 PR middle-end/77259
10465 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
10466 turning a call into __builtin_unreachable-like noreturn call, adjust
10467 gimple_call_set_fntype.
10468 * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
10469 gimple_call_fntype has void return type.
10471 2016-08-17 Chung-Lin Tang <cltang@codesourcery.com>
10473 * omp-low.c (lower_oacc_reductions): Adjust variable lookup to use
10474 maybe_lookup_decl, to handle nested acc loop directives.
10476 2016-08-17 Richard Biener <rguenther@suse.de>
10478 PR tree-optimization/76490
10479 * tree-vrp.c (update_value_range): Preserve overflow infinities
10480 when intersecting with ranges from get_range_info.
10481 (operand_less_p): Handle overflow infinities correctly.
10482 (value_range_constant_singleton): Use vrp_operand_equal_p
10483 to handle overflow max/min correctly.
10484 (vrp_valueize): Likewise.
10485 (union_ranges): Likewise.
10486 (intersect_ranges): Likewise.
10487 (vrp_visit_phi_node): Improve iteration limitation to only
10488 apply when we'll possibly re-visit the PHI via a changed argument
10491 2016-08-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
10493 * config/arm/t-aprofile (MULTILIB_EXCEPTIONS): Rewrite into ...
10494 (MULTILIB_REQUIRED): This by specifying multilib needing to be built
10495 rather than those that should not be built.
10497 2016-08-17 Stanislaw Halik <sthalik@misaki.pl>
10500 * config/i386/xm-mingw32.h (HOST_BITS_PER_PTR): Define if __x86_64__.
10502 2016-08-17 Richard Biener <rguenther@suse.de>
10504 * tree-ssa.c: Include tree-cfg.h and tree-dfa.h.
10505 (verify_vssa): New function verifying virtual SSA form.
10506 (verify_ssa): Call it.
10507 * tree-ssa-loop-manip.c (slpeel_update_phi_nodes_for_guard2):
10508 Do not apply loop-closed SSA handling to virtuals.
10509 * ssa-iterators.h (op_iter_init): Handle GIMPLE_TRANSACTION.
10510 * tree-into-ssa.c (prepare_use_sites_for): Skip virtual SSA names
10511 when rewriting their symbol.
10512 (prepare_def_site_for): Likewise.
10513 * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Clear virtual
10514 operands of moved stmts.
10516 2016-08-17 Richard Biener <rguenther@suse.de>
10518 PR tree-optimization/23855
10519 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h.
10520 (tree_unswitch_outer_loop): Iterate find_loop_guard as long as we
10521 find guards to hoist. Do not update SSA form but rewrite virtuals
10522 into loop closed SSA.
10523 (find_loop_guard): Adjust to skip already hoisted guards. Do
10524 not mark virtuals for renaming or update SSA form.
10526 2016-08-17 Martin Liska <mliska@suse.cz>
10528 * coverage.c (get_gcov_type): Replace GCOV_TYPE_SIZE with
10529 a LONG_LONG_TYPE_SIZE comparison.
10530 * gcov-io.h: Remove macro definitions.
10531 * tree-profile.c (gimple_gen_edge_profiler): Replace usage
10532 of GCOV_TYPE_ATOMIC_FETCH_ADD with a LONG_LONG_TYPE_SIZE
10535 2016-08-16 Jakub Jelinek <jakub@redhat.com>
10537 * config/i386/i386.c (enum ix86_builtins): Reorder enumerators, so
10538 that builtins not mentioned in bdesc_* arrays come first, then
10539 the ones mentioned in bdesc_* arrays in the order they appear in
10540 the arrays in between IX86_BUILTIN__BDESC_*_FIRST and
10541 IX86_BUILTIN__BDESC_*_LAST enumerator.
10542 (bdesc_mpx): Fix up a comment typo.
10543 (bdesc_multi_arg): Remove __builtin_ia32_vpcomne[bwdq] and
10544 __builtin_ia32_vpcomneu[bwdq] builtins.
10545 (BDESC_VERIFY, BDESC_VERIFYS): Define.
10546 (ix86_init_mmx_sse_builtins, ix86_init_mpx_builtins): Verify
10547 enum ix86_builtins ordering.
10548 (ix86_expand_builtin): Use enum ix86_builtins ordering assumption
10549 for direct bdesc_* array member access instead of searching all the
10550 arrays until an fcode match is found.
10552 2016-08-16 Uros Bizjak <ubizjak@gmail.com>
10554 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite define_insn
10555 pattern as define_insn_and_split. Split insn before reload to
10557 (*<shift_insn><mode>3_mask): Ditto. Split insn before reload to
10558 <shift_insn><mode>3_1.
10559 (*<rotate_insn><mode>3_mask): Ditto. Split insn before reload to
10560 <rotate_insn><mode>3_1.
10562 2016-08-16 David Malcolm <dmalcolm@redhat.com>
10565 * input.c (get_source_range_for_substring): Rename to...
10566 (get_source_location_for_substring): ...this, adding param
10567 "caret_idx", and converting output param from source_range * to
10569 (get_source_range_for_char): New function.
10570 (get_num_source_ranges_for_substring): Update comment to reflect
10572 (assert_char_at_range): Update to use get_source_range_for_char
10573 rather than get_source_range_for_substring.
10574 (test_lexer_string_locations_concatenation_2): Likewise.
10575 * substring-locations.h (get_source_range_for_substring): Rename
10577 (get_source_location_for_substring): ...this, and adding param
10578 "caret_idx", and converting output param from source_range * to
10581 2016-08-16 David Malcolm <dmalcolm@redhat.com>
10583 * input.c (class selftest::temp_source_file): Move to
10585 (selftest::temp_source_file::temp_source_file): Move to
10587 (selftest::temp_source_file::~temp_source_file): Likewise.
10588 * selftest.c (selftest::temp_source_file::temp_source_file): Move
10590 (selftest::temp_source_file::~temp_source_file): Likewise.
10591 * selftest.h (class selftest::temp_source_file): Move here from
10594 2016-08-16 Jakub Jelinek <jakub@redhat.com>
10597 * tree-cfg.c (execute_fixup_cfg): Add node variable, use it. Before
10598 inlining, add cgraph edge for the added __builtin_unreachable call.
10600 PR middle-end/67485
10601 * expmed.c (expand_mult_const): Change val_so_far's type to UHWI,
10602 only cast it to SHWI for the final comparison.
10604 2016-08-16 Martin Liska <mliska@suse.cz>
10606 PR gcov-profile/36412
10607 * doc/gcov.texi: Document --hash-filenames(-x).
10608 * gcov.c (print_usage): Add the option.
10609 (process_args): Process the option, sort options alphabetically.
10610 (md5sum_to_hex): New function.
10611 (make_gcov_file_name): Do the md5sum and append it to a
10614 2016-08-16 Bin Cheng <bin.cheng@arm.com>
10616 PR tree-optimization/69848
10617 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Invert NE
10618 and swtich operands to avoid additional NOT instruction.
10619 (vcond<v_cmp_mixed><mode>): Ditto.
10620 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
10622 2016-08-16 Eric Botcazou <ebotcazou@adacore.com>
10624 * doc/install.texi (*-*-solaris2*): Adjust latest change.
10626 2016-08-16 Richard Biener <rguenther@suse.de>
10628 PR tree-optimization/76783
10629 * tree-ssa-propagate.c (ssa_prop_init): Use RPO order. Clear
10630 BB visited flags at start.
10632 2016-08-16 Bin Cheng <bin.cheng@arm.com>
10634 PR tree-optimization/72817
10635 PR tree-optimization/73450
10636 * tree-ssa-loop-niter.c (number_of_iterations_ne): Check
10637 multiple_of_p for adjusted IV.base.
10639 2016-08-15 Uros Bizjak <ubizjak@gmail.com>
10642 * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
10643 Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
10644 for !flag_finite_math_only or flag_signed_zeros.
10645 (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
10646 *<code><mode>3_finite<mask_name><round_saeonly_name>. Do not
10647 depend on flag_finite_math_only.
10648 (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
10650 (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
10651 (*ieee_smin<mode>3): Ditto.
10652 (*ieee_smax<mode>3): Ditto.
10653 * config/i386/mmx.md (mmx_<code>v2sf3): Emit
10654 mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
10656 (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite. Do not
10657 depend on flag_finite_math_only.
10658 (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
10659 (*mmx_<code>v2sf3): Remove.
10660 * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
10661 * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
10662 flag_signed_zeros instead of !flag_unsafe_math_optimizations.
10664 2016-08-15 Segher Boessenkool <segher@kernel.crashing.org>
10666 PR rtl-optimization/73650
10667 * lra-constraints.c (simple_move_p): If the insn is multiple_sets
10668 it is not a simple move.
10670 2016-08-15 Martin Liska <mliska@suse.cz>
10673 * gcc.c (do_spec_1): Call save_string with the right size.
10674 (save_string): Do an assert about string we copy.
10676 2016-08-15 Richard Biener <rguenther@suse.de>
10678 * ree.c (rest_of_handle_ree): Remove redundant timevar push/pop.
10679 * config/i386/i386.c (pass_data_insert_vzeroupper): Account to
10681 (pass_data_stv): Likewise.
10683 2016-08-15 Richard Biener <rguenther@suse.de>
10685 PR tree-optimization/73434
10686 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
10687 TBAA info on the base when forwarding a non-invariant address.
10689 2016-08-15 Jakub Jelinek <jakub@redhat.com>
10691 * dwarf2out.c (struct checksum_attributes): Add
10692 at_string_length_bit_size and at_string_length_byte_size fields.
10693 (collect_checksum_attributes): Handle DW_AT_string_length_bit_size
10694 and DW_AT_string_length_byte_size.
10695 (die_checksum_ordered): Handle at_string_length_bit_size and
10696 at_string_length_byte_size.
10697 (gen_array_type_die): For dwarf_version >= 5 emit
10698 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
10699 (adjust_string_types): For dwarf_version >= 5 remove
10700 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
10701 (resolve_addr): Likewise.
10704 * dwarf2out.c (string_types): New variable.
10705 (gen_array_type_die): Change early_dwarf handling of
10706 DW_AT_string_length, create DW_OP_call4 referencing the
10707 length var temporarily. Handle parameters that are pointers
10709 (adjust_string_types): New function.
10710 (gen_subprogram_die): Temporarily set string_types to local var,
10711 call adjust_string_types if needed.
10712 (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
10714 (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
10716 2016-08-15 Eric Botcazou <ebotcazou@adacore.com>
10718 * doc/install.texi (*-*-solaris2*): Fix version number and document
10719 requirement on GNU make for building libjava with the Solaris linker.
10721 2016-08-15 Martin Liska <mliska@suse.cz>
10722 Jakub Jelinek <jakub@redhat.com>
10724 PR tree-optimization/72824
10725 * tree-loop-distribution.c (const_with_all_bytes_same)
10726 <case VECTOR_CST>: Fix a typo.
10728 2016-08-14 Uros Bizjak <ubizjak@gmail.com>
10731 * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
10732 Renamed from _mm512_undefined_si512.
10733 (_mm_undefined_si512): New definition.
10735 2016-08-13 Richard Biener <rguenther@suse.de>
10737 * tree-ssa-forwprop.c (pass_forwprop::execute): Propagate
10738 into PHIs and update the lattice for its def.
10740 2016-08-12 Jakub Jelinek <jakub@redhat.com>
10743 * ubsan.c (instrument_si_overflow): Pass true instead of false
10745 (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
10746 of bbs. Return TODO_cleanup_cfg if any returned true.
10748 2016-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
10750 * config/rs6000/vsx.md (vsx_concat_<mode>): Add support for the
10751 ISA 3.0 MTVSRDD instruction.
10752 (vsx_splat_<mode>): Change cpu type of MTVSRDD instruction to
10755 2016-08-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
10757 PR tree-optimization/71083
10758 * tree-predcom.c (ref_at_iteration): Use a COMPONENT_REF for the
10759 bitfield access when possible.
10761 2016-08-12 Patrick Palka <ppalka@gcc.gnu.org>
10763 PR middle-end/71654
10764 * match.pd ((T)A CMP (T)B -> A CMP B): Allow (T)A to be a
10765 sign-changing cast from a shorter unsigned type to a wider
10768 2016-08-12 Jakub Jelinek <jakub@redhat.com>
10770 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm,
10771 vec_extract_hi_<mode>_mask, vec_extract_lo_<mode>_mask,
10772 vec_extract_hi_<mode>_mask): Use Yk constraint instead of k.
10774 2016-08-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10776 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
10777 Correct costs for vec_construct.
10779 2016-08-12 Bin Cheng <bin.cheng@arm.com>
10781 PR tree-optimization/69848
10782 * tree-vectorizer.h (enum vect_def_type): New condition reduction
10783 type CONST_COND_REDUCTION.
10784 * tree-vect-loop.c (vectorizable_reduction): Support new condition
10785 reudction type CONST_COND_REDUCTION.
10787 2016-08-12 Richard Biener <rguenther@suse.de>
10789 PR tree-optimization/57326
10790 * tree-ssa-pre.c (fully_constant_expression): Handle simplification
10791 returning an SSA name.
10792 (phi_translate_1): When fully_constant_expression returns a NAME
10793 make sure we have a leader for it.
10795 2016-08-12 Martin Liska <mliska@suse.cz>
10796 Adam Fineman <afineman@afineman.com>
10798 * gcov.c (process_file): Create .gcov file when .gcda
10801 2016-08-12 Marek Polacek <polacek@redhat.com>
10804 * alias.c (find_base_value): Adjust fall through comment.
10805 * cfgexpand.c (expand_debug_expr): Likewise.
10806 * combine.c (find_split_point): Likewise.
10807 (expand_compound_operation): Likewise. Add FALLTHRU.
10808 (make_compound_operation): Adjust fall through comment.
10809 (canon_reg_for_combine): Add FALLTHRU.
10810 (force_to_mode): Adjust fall through comment.
10811 (simplify_shift_const_1): Likewise.
10812 (simplify_comparison): Likewise.
10813 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Add
10815 * config/aarch64/predicates.md: Likewise.
10816 * config/i386/i386.c (function_arg_advance_32): Likewise.
10817 (ix86_gimplify_va_arg): Likewise.
10818 (print_reg): Likewise.
10819 (ix86_print_operand): Likewise.
10820 (ix86_build_const_vector): Likewise.
10821 (ix86_expand_branch): Likewise.
10822 (ix86_sched_init_global): Adjust fall through comment.
10823 (ix86_expand_args_builtin): Add FALLTHRU.
10824 (ix86_expand_builtin): Likewise.
10825 (ix86_expand_vector_init_one_var): Likewise.
10826 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
10827 (rs6000_adjust_cost): Likewise.
10828 (insn_must_be_first_in_group): Likewise.
10829 * config/rs6000/rs6000.md: Likewise. Adjust fall through comment.
10830 * dbxout.c (dbxout_symbol): Adjust fall through comment.
10831 * df-scan.c (df_uses_record): Likewise.
10832 * dojump.c (do_jump): Add FALLTHRU.
10833 * dwarf2out.c (mem_loc_descriptor): Likewise. Adjust fall through
10835 (resolve_args_picking_1): Adjust fall through comment.
10836 (loc_list_from_tree_1): Likewise.
10837 * expmed.c (make_tree): Likewise.
10838 * expr.c (expand_expr_real_2): Add FALLTHRU.
10839 (expand_expr_real_1): Likewise. Adjust fall through comment.
10840 * fold-const.c (const_binop): Adjust fall through comment.
10841 (fold_truth_not_expr): Likewise.
10842 (fold_cond_expr_with_comparison): Add FALLTHRU.
10843 (fold_binary_loc): Likewise.
10844 (contains_label_1): Adjust fall through comment.
10845 (multiple_of_p): Likewise.
10846 * gcov-tool.c (process_args): Add FALLTHRU.
10847 * genattrtab.c (check_attr_test): Likewise.
10848 (write_test_expr): Likewise.
10849 * genconfig.c (walk_insn_part): Likewise.
10850 * genpreds.c (validate_exp): Adjust fall through comment.
10851 (needs_variable): Likewise.
10852 * gensupport.c (get_alternatives_number): Add FALLTHRU.
10853 (subst_dup): Likewise.
10854 * gimple-pretty-print.c (dump_gimple_assign): Likewise.
10855 * gimplify.c (gimplify_addr_expr): Adjust fall through comment.
10856 (gimplify_scan_omp_clauses): Add FALLTHRU.
10857 (goa_stabilize_expr): Likewise.
10858 * graphite-isl-ast-to-gimple.c (substitute_ssa_name): Adjust fall
10860 * hsa-gen.c (get_address_from_value): Likewise.
10861 * ipa-icf.c (sem_function::hash_stmt): Likewise.
10862 * ira.c (ira_setup_alts): Add FALLTHRU.
10863 * lra-eliminations.c (lra_eliminate_regs_1): Adjust fall through
10865 * lto-streamer-out.c (lto_output_tree_ref): Add FALLTHRU.
10866 * opts.c (common_handle_option): Likewise.
10867 * read-rtl.c (read_rtx_code): Likewise.
10868 * real.c (round_for_format): Likewise.
10869 * recog.c (asm_operand_ok): Likewise.
10870 * reginfo.c (reg_scan_mark_refs): Adjust fall through comment.
10871 * reload1.c (set_label_offsets): Likewise.
10872 (eliminate_regs_1): Likewise.
10873 (reload_reg_reaches_end_p): Likewise.
10874 * rtlanal.c (commutative_operand_precedence): Add FALLTHRU.
10875 (rtx_cost): Likewise.
10876 * sched-rgn.c (is_exception_free): Likewise.
10877 * simplify-rtx.c (simplify_rtx): Adjust fall through comment.
10878 * stor-layout.c (int_mode_for_mode): Likewise.
10879 * toplev.c (print_to_asm_out_file): Likewise.
10880 (print_to_stderr): Likewise.
10881 * tree-cfg.c (gimple_verify_flow_info): Likewise.
10882 * tree-chrec.c (chrec_fold_plus_1): Add FALLTHRU.
10883 (chrec_fold_multiply): Likewise.
10884 (evolution_function_is_invariant_rec_p): Likewise.
10885 (for_each_scev_op): Likewise.
10886 * tree-data-ref.c (siv_subscript_p): Likewise.
10887 (get_references_in_stmt): Likewise.
10888 * tree.c (find_placeholder_in_expr): Adjust fall through comment.
10889 (substitute_in_expr): Likewise.
10890 (type_cache_hasher::equal): Likewise.
10891 (walk_type_fields): Likewise.
10892 * var-tracking.c (adjust_mems): Add FALLTHRU.
10893 (set_dv_changed): Adjust fall through comment.
10894 * varasm.c (default_function_section): Add FALLTHRU.
10896 2016-08-12 Marek Polacek <polacek@redhat.com>
10899 * tree-complex.c (expand_complex_division): Add missing break.
10901 2016-08-12 Richard Biener <rguenther@suse.de>
10903 * passes.c (execute_todo): Do not push/pop TV_TODO.
10904 (execute_one_ipa_transform_pass): Move timevar push/pop TODO execution.
10905 (execute_one_pass): Likewise.
10906 * common.opt (ftime-report-details): New switch.
10907 * doc/invoke.texi (ftime-report-details): Document.
10908 * timevar.h (timer::print_row): Adjust signature.
10909 (timer::all_zero): New static helper.
10910 (timer::child_map_t): New typedef.
10911 (timer::time_var_def): Add children field.
10912 * timevar.c (timer::named_items::print): Adjust.
10913 (timer::~timer): Free timevar recorded children.
10914 (timer::pop_internal): When -ftime-report-details record
10915 time spent in sub-timevars.
10916 (timer::print_row): Adjust.
10917 (timer::print): Print sub-timevar stats, use all_zero.
10918 * timevar.def (TV_TODO): Remove.
10920 2016-08-12 Richard Biener <rguenther@suse.de>
10922 PR tree-optimization/72851
10923 * tree-ssa-propagate.c: Include cfganal.h. Rewrite block and stmt
10924 worklists to use bitmaps indexed in execution order.
10925 (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
10926 bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
10927 (cfg_blocks): Make a bitmap.
10928 (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
10930 (cfg_blocks_empty_p): Adjust.
10931 (cfg_blocks_add): Likewise.
10932 (cfg_blocks_get): Likewise.
10933 (add_ssa_edge): Likewise.
10934 (add_control_edge): Likewise.
10935 (simulate_stmt): Likewise.
10936 (process_ssa_edge_worklist): Likewise.
10937 (simulate_block): Likewise.
10938 (ssa_prop_init): Compute PRE order and stmt UIDs.
10939 (ssa_prop_fini): Adjust.
10940 (ssa_propagate): Adjust.
10942 2016-08-12 Richard Biener <rguenther@suse.de>
10944 * tree-vrp.c (vrp_visit_phi_node): Allow a last iteration if
10945 the currently executable edges have fixed ranges. Always
10946 go through update_value_range.
10948 2016-08-12 Alexandre Oliva <aoliva@redhat.com>
10952 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Const_tree-ify.
10953 (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Likewise.
10954 (LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Set default.
10955 (LANG_HOOKS_DECLS): Add it.
10956 * langhooks.h (struct lang_hooks_for_decls): Add
10957 function_decl_defaulted. Const_tree-ify
10958 function_decl_explicit_p and function_decl_deleted_p.
10959 * dwarf2out.c (gen_subprogram_die): Add DW_AT_defaulted
10960 attribute. Add DW_AT_deleted instead of DW_AT_GNU_deleted,
10961 also at strict DWARF v5.
10964 * dwarf2out.c (decl_quals): Don't map TREE_READONLY to
10965 TYPE_QUAL_CONST in reference-typed decls.
10968 * dwarf2out.c (loc_list_from_tree_1): Expand some CONSTRUCTORs
10969 in DW_OP_pieces, just enough to handle pointers to member
10971 (gen_remaining_tmpl_value_param_die_attribute): Use a location
10972 expression on DWARFv5 if a constant value doesn't work.
10974 2016-08-11 David Malcolm <dmalcolm@redhat.com>
10976 * selftest-run-tests.c (selftest::run_tests): Call selftest_c_tests.
10977 * selftest.c (selftest::test_assertions): New function.
10978 (selftest::selftest_c_tests): New function.
10979 * selftest.h (selftest::selftest_c_tests): New declaration.
10981 2016-08-11 Richard Biener <rguenther@suse.de>
10982 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10984 PR rtl-optimization/72855
10985 * df-core.c (df_verify): Turn off DF_VERIFY_SCHEDULED at end.
10987 2016-08-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10990 * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
10991 (vsx_store_<mode>): Likewise.
10993 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
10995 * config/i386/i386.c (timode_scalar_to_vector_candidate_p): Allow
10996 TImode CONST_WIDE_INT store.
10997 (timode_scalar_chain::convert_insn): Handle CONST_WIDE_INT store.
10999 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
11001 * config/i386/i386.h (MOVE_MAX_PIECES): Use TImode in 64-bit
11002 mode if unaligned SSE load and store are optimal.
11004 2016-08-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
11006 PR tree-optimization/71083
11007 * tree-predcom.c (ref_at_iteration): Correctly align the
11010 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11012 * config/s390/s390-builtin-types.def: Add INT128 types.
11013 * config/s390/s390-builtins.def: Add INT128 variants for the add
11014 sub low-level builtins dealing with TImode.
11015 * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
11016 via subreg when expanding a builtin.
11017 * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
11018 UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
11020 * config/s390/vecintrin.h: Adjust builtin names accordingly.
11021 * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
11022 ("vec_addc<mode>", "vec_addc_u128"): Merge to
11023 "vacc<bhfgq>_<mode>".
11024 ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
11025 ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
11026 ("vec_subc<mode>", "vec_subc_u128"): Merge to
11027 "vscbi<bhfgq>_<mode>".
11028 ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
11029 ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
11031 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11033 * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
11035 2016-08-11 Bin Cheng <bin.cheng@arm.com>
11037 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Delete
11038 unused declaration.
11039 (vcond<v_cmp_mixed><mode>): Ditto.
11040 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
11042 2016-08-11 Bin Cheng <bin.cheng@arm.com>
11044 * config/aarch64/aarch64-simd.md (vec_cmp<mode><v_cmp_result>): Init
11045 variable explicitly, also assert on it before use.
11047 2016-08-11 Richard Biener <rguenther@suse.de>
11049 PR tree-optimization/72772
11050 * cfgloopmanip.c (create_preheader): Use split_edge if there
11051 is a single loop entry, avoiding degenerate PHIs.
11053 2016-08-11 Richard Biener <rguenther@suse.de>
11055 * tree-ssa-threadbackward.c (pass_data_thread_jumps): Remove
11056 unconditional TODO_cleanup_cfg.
11057 (pass_thread_jumps::execute): Initialize loops, perform a CFG
11058 cleanup only if we threaded a jump.
11060 2016-08-11 Alan Modra <amodra@gmail.com>
11063 * lra-constraints.c (simplify_operand_subreg): Allow subreg
11064 mode for mem when SLOW_UNALIGNED_ACCESS if inner mode is also
11065 slow. Emit two reloads for slow mem case, first loading in
11066 fast innermode, then converting to required mode.
11068 2016-08-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
11070 * config/rs6000/altivec.h (vec_extract_exp): New macro.
11071 (vec_extract_sig): New macro.
11072 (vec_insert_exp): New macro.
11073 (vec_test_data_class): New macro.
11074 (scalar_extract_exp): New macro.
11075 (scalar_extract_sig): New macro.
11076 (scalar_insert_exp): New macro.
11077 (scalar_test_data_class): New macro.
11078 (scalar_test_neg): New macro.
11079 (scalar_cmp_exp_gt): New macro.
11080 (scalar_cmp_exp_lt): New macro.
11081 (scalar_cmp_exp_eq): New macro.
11082 (scalar_cmp_exp_unordered): New macro.
11083 * config/rs6000/predicates.md (u7bit_cint_operand): New predicate
11084 to enforce constraint that operand is a 7-bit unsigned literal.
11085 * config/rs6000/rs6000-builtin.def (BU_P9V_64BIT_VSX_1): New macro
11086 for power9 built-ins.
11087 (BU_P9V_VSX_2): Likewise.
11088 (BU_P9V_64BIT_VSX_2): Likewise.
11089 (VSEEDP): Add scalar extract exponent support.
11090 (VSEESP): Add scalar extract signature support.
11091 (VSTDCNDP): Add scalar test negative support.
11092 (VSTDCNSP): Likewise.
11093 (VSIEDP): Add scalar insert exponent support.
11094 (VSCEDPGT): Add scalar compare exponent greater than support.
11095 (VSCEDPLT): Add scalar compare exponent less than support.
11096 (VSCEDPEQ): Add scalar compare exponent test-for-equality support.
11097 (VSCEDPUO): Add scalar compare exponent test-for-unordered support.
11098 (VSTDCDP): Add scalar test data class support.
11099 (VSTDCSP): Likewise.
11100 (VSEEDP): Add overload support for scalar extract exponent
11102 (VSESDP): Add overload support for scalar extract signature
11104 (VSTDCN): Add overload support for scalar test negative
11106 (VSTDCNDP): Add overload support for scalar test negative
11108 (VSTDCNSP): Add overload support for scalar test negative
11110 (VSIEDP): Add overload support for scalar insert exponent
11112 (VSTDC): Add overload support for scalar test data class
11114 (VSTDCDP): Add overload support for scalar test data class
11116 (VSTDCSP): Add overload support for scalar test data class
11118 (VSCEDPGT): Add overload support for scalar compare exponent
11119 greater than operation.
11120 (VSCEDPLT): Add overload support for scalar compare exponent
11121 less than operation.
11122 (VSCEDPEQ): Add overload support for scalar compare exponent
11123 test-for-equality operation.
11124 (VSCEDPUO): Add overload support for scalar compare exponent
11125 test-for-unordered operation.
11126 (VEEDP): Add vector extract exponent support.
11128 (VESDP): Add vector extract significand support.
11130 (VIEDP): Add vector insert exponent support.
11132 (VTDCDP): Add vector test data class support.
11133 (VTDCSP): Likewise.
11134 (VES): Add overload support for vector extract significand operation.
11137 (VEE): Add overload support for vector extract exponent operation.
11140 (VTDC): Add overload support for vector test data class operation.
11141 (VTDCDP): Likewise.
11142 (VTDCSP): Likewise.
11143 (VIE): Add overload support for vector insert exponent operation.
11146 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11147 overloaded binary floating point functions.
11148 (altivec_resolve_overloaded_builtin): Improve error messages to
11149 distinguish between functions not supported in the current
11150 compiler configuration and functions that were invoked with an
11151 invalid parameter combination, and include the built-in function
11152 name in both error messages.
11153 * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_name):
11155 * config/rs6000/rs6000.c (rs6000_overloaded_builtin_name): New
11157 (rs6000_expand_binop_builtin): Add check to enforce that argument
11158 2 of the test data class operations is a 7-bit unsigned literal.
11159 (rs6000_invalid_builtin): Add code to issue an error message if a
11160 built-in function that requires the power9_vector and -m32
11161 command-line options is compiled without these options.
11162 * config/rs6000/vsx.md (UNSPEC_VSX_SXEXPDP): New value.
11163 (UNSPEC_VSX_SXSIGDP): New value.
11164 (UNSPEC_VSX_SXSIGPDP): New value.
11165 (UNSPEC_VSX_SIEXPDP): New value.
11166 (UNSPEC_VSX_SCMPEXPDP): New value.
11167 (UNSPEC_VSX_STSTDC): New value.
11168 (UNSPEC_VSX_VXEXP): New value.
11169 (UNSPEC_VSX_VXSIG): New value.
11170 (UNSPEC_VSX_VIEXP): New value.
11171 (UNSPEC_VSX_VTSTDC): New value.
11172 (xsxexpdp): New insn for scalar extract exponent.
11173 (xsxsigdp): New insn for scalar extract significand.
11174 (xsiexpdp): New insn for scalar insert exponent.
11175 (xscmpexpdp_<code>): New expansion for scalar compare exponents.
11176 (*xscmpexpdp): New insn for scalar compare exponents.
11177 (xststdc<Fvsx): New expansion for both single- and
11178 double-precision scalar test data class operations.
11179 (xststdcneg<Fvsx>): New expansion for both single- and
11180 double-precision scalar test for negative value operations.
11181 (*xststdc<Fvsx>): New insn for scalar test data class
11183 (xvxexp<VSs>): New insn for single- and double-precision
11184 vector extract exponent operation.
11185 (xvxsig<VSs>): New insn for single- and double-precision
11186 vector extract significand operation.
11187 (xviexp<VSs>): New insn for single- and double-precision
11188 vector insert exponent operation.
11189 (xvtstdc<VSs>): New insn for single- and double-precision
11190 vector test data class operation.
11191 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
11192 built-in functions to represent the Power9 binary floating-point
11193 support instructions.
11195 2016-08-10 bin cheng <bin.cheng@arm.com>
11197 * doc/sourcebuild.texi (@item vect_cond_mixed): New item.
11199 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
11200 Renlin Li <renlin.li@arm.com>
11201 Bin Cheng <bin.cheng@arm.com>
11203 * config/aarch64/iterators.md (V_cmp_mixed, v_cmp_mixed): New.
11204 * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): Call
11205 gen_vcondv2div2di instead of gen_aarch64_vcond_internalv2div2di.
11206 (aarch64_vcond_internal<mode><mode>): Delete pattern.
11207 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): Ditto.
11208 (vcond<v_cmp_result><mode>): Ditto.
11209 (vcond<mode><mode>): Re-implement using vec_cmp and vcond_mask.
11210 (vcondu<mode><mode>): Ditto.
11211 (vcond<v_cmp_mixed><mode>): New pattern.
11212 (vcondu<mode><v_cmp_mixed>): New pattern.
11213 (aarch64_cmtst<mode>): Revise comment using aarch64_vcond instead
11214 of aarch64_vcond_internal.
11216 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
11217 Renlin Li <renlin.li@arm.com>
11218 Bin Cheng <bin.cheng@arm.com>
11220 * config/aarch64/aarch64-simd.md (vec_cmp<mode><mode>): New pattern.
11221 (vec_cmp<mode><v_cmp_result>): New pattern.
11222 (vec_cmpu<mode><mode>): New pattern.
11223 (vcond_mask_<mode><v_cmp_result>): New pattern.
11225 2016-08-10 Yuri Rumyantsev <ysrumyan@gmail.com>
11227 PR tree-optimization/71734
11228 * tree-ssa-loop-im.c (ref_indep_loop_p): Add new argument
11229 REF_LOOP, invoke ref_indep_loop_p_1.
11230 (outermost_indep_loop): Pass LOOP argumnet where REF was defined
11231 to ref_indep_loop_p.
11232 (ref_indep_loop_p_1): Fix commentary, add argument REF_LOOP,
11233 combine it with ref_indep_lopp_p_2, update SAFELEN if only REF
11234 is inside LOOP, do not cache dpendence value for loops with
11236 (ref_indep_loop_p_2): Delete function.
11237 (can_sm_ref_p): Pass LOOP as additional argument to
11240 2016-08-10 Michael Meissner <meissner@linux.vnet.ibm.com>
11243 * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
11244 being an offsettable address.
11246 2016-08-10 Martin Liska <mliska@suse.cz>
11248 PR gcov-profile/58306
11249 * tree-profile.c (gimple_init_edge_profiler): Create conditionally
11250 atomic variants of profile update functions.
11252 2016-08-10 Martin Liska <mliska@suse.cz>
11254 Cherry picked (and modified) from google-4_7 branch
11255 2012-12-26 Rong Xu <xur@google.com>
11256 * common.opt (fprofile-update): Add new flag.
11257 * coretypes.h: Define enum profile_update.
11258 * doc/invoke.texi: Document -fprofile-update.
11259 * gcov-io.h: Declare GCOV_TYPE_ATOMIC_FETCH_ADD and
11260 GCOV_TYPE_ATOMIC_FETCH_ADD_FN.
11261 * tree-profile.c (gimple_init_edge_profiler): Generate
11262 also atomic profiler update.
11263 (gimple_gen_edge_profiler): Likewise.
11265 2016-08-10 David Malcolm <dmalcolm@redhat.com>
11267 * toplev.c (finalize): Set aux_info_file, asm_out_file, and
11268 stack_usage_file to NULL after fclose calls.
11270 2016-08-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
11273 * reload.c (push_reload): Compute subreg_in_class for
11274 subregs of constants and plus expressions. Remove special
11275 handling of SYMBOL_REFs.
11277 2016-08-10 Alan Modra <amodra@gmail.com>
11280 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return
11281 SImode for TARGET_E500_DOUBLE when given SImode.
11283 2016-08-09 David Wohlferd <dw@LimeGreenSocks.com>
11285 * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
11286 unused variable __O.
11288 2016-08-09 Martin Liska <mliska@suse.cz>
11290 * doc/gcov.texi: Change _gcov_dump to __gcov_dump and
11291 _gcov_reset to __gcov_reset.
11292 * doc/gcov-tool.texi: Fix typo.
11294 2016-08-09 Martin Liska <mliska@suse.cz>
11296 * value-prof.c (gimple_divmod_values_to_profile): Do not
11297 instrument MOD histogram if a value is not a SSA name.
11299 2016-08-09 Martin Liska <mliska@suse.cz>
11301 * value-prof.c (dump_histogram_value): Swap pow2 and non-pow2
11304 2016-08-09 Renlin Li <renlin.li@arm.com>
11306 PR middle-end/64971
11307 * calls.c (prepare_call_address): Convert funexp to Pmode when
11309 * config/aarch64/aarch64.md (sibcall): Remove fix for PR 64971.
11310 (sibcall_value): Likewise.
11312 2016-08-09 Marek Polacek <polacek@redhat.com>
11315 * cselib.c (cselib_expand_value_rtx_1): Add return.
11316 * gengtype.c (dbgprint_count_type_at): Likewise.
11317 * hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Likewise.
11318 * reg-stack.c (get_true_reg): Restructure to avoid fallthrough warning.
11320 2016-08-09 Martin Jambor <mjambor@suse.cz>
11323 * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
11324 if instance is a MEM_REF.
11326 2016-08-09 Uros Bizjak <ubizjak@gmail.com>
11329 * config/i386/i386.md (*movtf_internal): Use
11330 lra_in_progress || reload_completed instead of !can_create_pseudo_p
11331 in the insn constraint.
11332 (*movxf_internal): Ditto.
11333 (*movdf_internal): Ditto.
11334 (*movsf_internal): Ditto.
11336 2016-08-09 Bin Cheng <bin.cheng@arm.com>
11338 PR tree-optimization/72772
11339 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
11342 2016-08-09 Bin Cheng <bin.cheng@arm.com>
11344 PR tree-optimization/72772
11345 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): Delete
11347 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Delete
11348 parameter STOP and update calls. Move expand_simple_operations
11349 function call from here...
11350 (simplify_using_initial_conditions): ...to here. Delete parameter
11352 (tree_simplify_using_condition): Delete parameter STOP.
11353 * tree-scalar-evolution.c (simple_iv_with_niters): Update call to
11354 simplify_using_initial_conditions.
11356 2016-08-09 Matthew Fortune <matthew.fortune@imgtec.com>
11359 * config/mips/mips.c (mips_atomic_assign_expand_fenv):
11360 Use create_tmp_var_raw instead of create_tmp_var.
11362 2016-08-09 Richard Biener <rguenther@suse.de>
11364 * tree-ssa-threadbackward.c (profitable_jump_thread_path):
11365 Treat same SSA names related.
11367 2016-08-09 Jakub Jelinek <jakub@redhat.com>
11369 PR tree-optimization/72824
11370 * tree-loop-distribution.c (const_with_all_bytes_same): Verify
11371 real_zerop is not negative.
11373 2016-08-09 Richard Biener <rguenther@suse.de>
11375 PR tree-optimization/71802
11376 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Make sure to catch
11377 all merge opportunities with the predecessor.
11379 2016-08-09 Richard Biener <rguenther@suse.de>
11382 * ipa-prop.c (ipa_modify_formal_parameters): Build
11383 parameter types with natural alignment also for the
11386 2016-08-08 Andi Kleen <ak@linux.intel.com>
11388 * tree-vrp.c (get_single_symbol): Always initialize inv and neg.
11390 2016-08-08 David Malcolm <dmalcolm@redhat.com>
11393 * langhooks-def.h (LANG_HOOKS_RUN_LANG_SELFTESTS): New default
11394 do-nothing langhook.
11395 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_RUN_LANG_SELFTESTS.
11396 * langhooks.h (struct lang_hooks): Add run_lang_selftests.
11397 * selftest-run-tests.c: Include "tree.h" and "langhooks.h".
11398 (selftest::run_tests): Call lang_hooks.run_lang_selftests.
11400 2016-08-08 David Malcolm <dmalcolm@redhat.com>
11403 * input.c: Ensure that HAVE_ICONV is defined.
11405 2016-08-08 Jakub Jelinek <jakub@redhat.com>
11407 PR middle-end/72781
11408 * omp-low.c (lower_lastprivate_clauses): Set TREE_NO_WARNING on the
11409 private vars for lastprivate and for linear iterator.
11411 PR middle-end/68762
11412 * omp-simd-clone.c: Include varasm.h.
11413 (simd_clone_create): Copy over DECL_COMDAT, DECL_WEAK, DECL_EXTERNAL,
11414 DECL_VISIBILITY, DECL_VISIBILITY_SPECIFIED, DECL_DLLIMPORT_P and for
11415 DECL_ONE_ONLY call make_decl_one_only. Fix up spelling in comment and
11416 update function name.
11418 2016-07-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
11420 * config/avr/driver-avr.c (specfiles_doc_url): Remove.
11421 (avr_diagnose_devicespecs_error): Remove.
11422 (avr_devicespecs_file): Remove composing absolute path for specfile
11423 and its verbose info. Remove conditions to check specs-file,
11425 2016-08-08 Jakub Jelinek <jakub@redhat.com>
11427 PR rtl-optimization/72821
11428 * lra-spills.c (regno_in_use_p): Don't use BLOCK_FOR_INSN on barriers,
11429 just return false for them.
11431 2016-08-08 Alan Modra <amodra@gmail.com>
11434 * config/rs6000/rs6000.c (toc_relative_expr_p): Allow (lo_sum (high))
11435 toc refs created during reload. Update function comment.
11437 2016-08-08 Alan Modra <amodra@gmail.com>
11440 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
11441 alternatives. Put loads first, then stores, and reg/reg moves
11442 within same class later. Delete attr length.
11444 2016-08-08 Alan Modra <amodra@gmail.com>
11447 * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
11448 (mem_operand_ds_form): New predicate.
11449 * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
11450 * config/rs6000/constraints.md (wY): Use mem_operand_df_form.
11451 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): Delete.
11452 * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
11453 (extendsfdf2_fpr): Replace o constraint with wY.
11455 2016-08-07 Jan Hubicka <hubicka@ucw.cz>
11457 * tree-ssa-threadbackward.c: Include tree-inline.h
11458 (profitable_jump_thread_path): Use estimate_num_insns to estimate
11459 size of copied block; for cold paths reduce duplication.
11460 (find_jump_threads_backwards): Remove redundant tests.
11461 (pass_thread_jumps::gate): Enable for -Os.
11463 2016-08-07 Jakub Jelinek <jakub@redhat.com>
11466 * stor-layout.c (layout_decl): Fix up formatting.
11467 (relayout_decl): Allow DECL to be FIELD_DECL.
11469 2016-08-07 Alan Modra <amodra@gmail.com>
11471 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
11473 2016-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
11475 * data-streamer-in.c (streamer_read_wide_int): New.
11476 (streamer_read_widest_int): Renamed function.
11477 * data-streamer-out.c (streamer_write_wide_int): New
11478 (streamer_write_widest_int): Renamed function.
11479 * lto-streamer-in.c (streamer_read_wi): Renamed and moved to
11481 (input_cfg): Call renamed function.
11482 * lto-streamer-out.c (streamer_write_wi): Renamed and moved to
11484 (output_cfg): Call renamed function.
11485 * data-streamer.h: Add declarations.
11487 2016-08-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11489 * tree-ssa-ccp.c (extend_mask): New param sgn.
11490 Remove ORing with wi::mask.
11491 (get_default_value): Adjust call to extend_mask to pass sign.
11492 (evaluate_stmt): Likewise.
11494 2016-08-06 Jakub Jelinek <jakub@redhat.com>
11496 * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of
11499 2016-08-06 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11501 * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable
11502 transform if operand's type is pointer to function or method.
11504 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
11506 PR tree-optimization/18046
11507 * tree-ssa-threadedge.c: Include cfganal.h.
11508 (simplify_control_statement_condition): If simplifying a
11509 GIMPLE_SWITCH, replace the index operand of the GIMPLE_SWITCH
11510 with the dominating ASSERT_EXPR before handing it off to VRP.
11511 Mention that a CASE_LABEL_EXPR may be returned.
11512 (thread_around_empty_blocks): Adjust to handle
11513 simplify_control_statement_condition() returning a
11515 (thread_through_normal_block): Likewise.
11516 * tree-vrp.c (simplify_stmt_for_jump_threading): Simplify
11517 a switch statement by trying to determine which case label
11520 2016-08-05 Vladimir Makarov <vmakarov@redhat.com>
11522 PR rtl-optimization/69847
11523 * lra-constraints.c (process_invariant_for_inheritance): Save
11524 pattern instead of src.
11525 (remove_inheritance_pseudos): Use the pattern. Add assert.
11527 2016-08-05 David Malcolm <dmalcolm@redhat.com>
11529 * input.c (string_concat::string_concat): New constructor.
11530 (string_concat_db::string_concat_db): New constructor.
11531 (string_concat_db::record_string_concatenation): New method.
11532 (string_concat_db::get_string_concatenation): New method.
11533 (string_concat_db::get_key_loc): New method.
11534 (class auto_cpp_string_vec): New class.
11535 (get_substring_ranges_for_loc): New function.
11536 (get_source_range_for_substring): New function.
11537 (get_num_source_ranges_for_substring): New function.
11538 (class selftest::lexer_test_options): New class.
11539 (struct selftest::lexer_test): New struct.
11540 (class selftest::ebcdic_execution_charset): New class.
11541 (selftest::ebcdic_execution_charset::s_singleton): New variable.
11542 (selftest::lexer_test::lexer_test): New constructor.
11543 (selftest::lexer_test::~lexer_test): New destructor.
11544 (selftest::lexer_test::get_token): New method.
11545 (selftest::assert_char_at_range): New function.
11546 (ASSERT_CHAR_AT_RANGE): New macro.
11547 (selftest::assert_num_substring_ranges): New function.
11548 (ASSERT_NUM_SUBSTRING_RANGES): New macro.
11549 (selftest::assert_has_no_substring_ranges): New function.
11550 (ASSERT_HAS_NO_SUBSTRING_RANGES): New macro.
11551 (selftest::test_lexer_string_locations_simple): New function.
11552 (selftest::test_lexer_string_locations_ebcdic): New function.
11553 (selftest::test_lexer_string_locations_hex): New function.
11554 (selftest::test_lexer_string_locations_oct): New function.
11555 (selftest::test_lexer_string_locations_letter_escape_1): New function.
11556 (selftest::test_lexer_string_locations_letter_escape_2): New function.
11557 (selftest::test_lexer_string_locations_ucn4): New function.
11558 (selftest::test_lexer_string_locations_ucn8): New function.
11559 (selftest::uint32_from_big_endian): New function.
11560 (selftest::test_lexer_string_locations_wide_string): New function.
11561 (selftest::uint16_from_big_endian): New function.
11562 (selftest::test_lexer_string_locations_string16): New function.
11563 (selftest::test_lexer_string_locations_string32): New function.
11564 (selftest::test_lexer_string_locations_u8): New function.
11565 (selftest::test_lexer_string_locations_utf8_source): New function.
11566 (selftest::test_lexer_string_locations_concatenation_1): New
11568 (selftest::test_lexer_string_locations_concatenation_2): New
11570 (selftest::test_lexer_string_locations_concatenation_3): New
11572 (selftest::test_lexer_string_locations_macro): New function.
11573 (selftest::test_lexer_string_locations_stringified_macro_argument):
11575 (selftest::test_lexer_string_locations_non_string): New function.
11576 (selftest::test_lexer_string_locations_long_line): New function.
11577 (selftest::test_lexer_char_constants): New function.
11578 (selftest::input_c_tests): Call the new test functions once per
11579 case within the line_table test matrix.
11580 * input.h (struct string_concat): New struct.
11581 (struct location_hash): New struct.
11582 (class string_concat_db): New class.
11583 * substring-locations.h: New header.
11585 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
11587 PR tree-optimization/72810
11588 * tree-vrp.c (simplify_switch_using_ranges): Avoid changing
11589 the type of the case labels when truncating.
11591 2016-08-05 James Greenhalgh <james.greenhalgh@arm.com>
11594 * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
11595 (aarch64_fp16_ptr_type_node): Likewise.
11596 * config/aarch64/aarch64-simd-builtins.c
11597 (aarch64_fp16_ptr_type_node): Define.
11598 (aarch64_init_fp16_types): New, refactored out of...
11599 (aarch64_init_builtins): ...here, update to call
11600 aarch64_init_fp16_types.
11601 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
11603 (aapcs_vfp_sub_candidate): Likewise.
11605 2016-08-05 Martin Liska <mliska@suse.cz>
11606 Joshua Cranmer <Pidgeot18@gmail.com>
11608 * gcov.c (line_t::has_block): New function.
11609 (enum loop_type): New enum.
11610 (handle_cycle): New function.
11611 (unblock): Likewise.
11612 (circuit): Likewise.
11613 (get_cycles_count): Likewise.
11614 (accumulate_line_counts): Use new loop detection algorithm.
11616 2016-08-05 Martin Liska <mliska@suse.cz>
11618 * gcov.c (output_intermediate_file): Rename
11619 function_info::line_next to next_file_fn.
11620 (process_file): Likewise.
11621 (read_graph_file): Likewise.
11622 (accumulate_line_counts): Likewise.
11623 (output_lines): Likewise.
11625 2016-08-05 Richard Biener <rguenther@suse.de>
11627 * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
11628 restriction on threading to a loop header.
11630 2016-08-05 Richard Biener <rguenther@suse.de>
11632 * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
11633 * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
11634 adjust loop info accordingly.
11636 2016-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
11638 * tree-vrp.c (extract_range_basic): Check cfun->after_inlining
11639 before folding call to __builtin_constant_p with parameters to false.
11641 2016-08-05 Alan Modra <amodra@gmail.com>
11643 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete
11644 code accidentally committed 2016-05-02 providing class when given
11647 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
11649 * tree-vrp.c (simplify_switch_using_ranges): Try to truncate
11650 the case label ranges that partially overlap with OP's value
11653 2016-08-04 Uros Bizjak <ubizjak@gmail.com>
11656 * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
11657 Cast builtin function result to __mmask16 instead of __mmask8.
11658 (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
11659 (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
11660 (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
11662 2016-08-04 David Malcolm <dmalcolm@redhat.com>
11664 * selftest.h (ASSERT_TRUE): Reimplement in terms of...
11665 (ASSERT_TRUE_AT): New macro.
11666 (ASSERT_FALSE): Reimplement in terms of...
11667 (ASSERT_FALSE_AT): New macro.
11668 (ASSERT_STREQ_AT): Fix typo in comment.
11670 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
11672 * gimple.c (preprocess_case_label_vec_for_gimple): When the case
11673 labels are exhaustive, designate the label with the widest
11674 range to be the default label.
11676 2016-08-04 Andrew Pinski <apinski@cavium.com>
11678 * config/aarch64/aarch64.c (thunderx_vector_cost): New variable.
11679 (thunderx_tunings): Use thunderx_vector_cost instead of
11680 generic_vector_cost.
11682 2016-08-04 Martin Liska <mliska@suse.cz>
11684 * gcov.c (main): Fix GNU coding style.
11685 (output_intermediate_file): Likewise.
11686 (process_file): Likewise.
11687 (generate_results): Likewise.
11688 (release_structures): Likewise.
11689 (create_file_names): Likewise.
11690 (find_source): Likewise.
11691 (read_graph_file): Likewise.
11692 (find_exception_blocks): Likewise.
11693 (canonicalize_name): Likewise.
11694 (make_gcov_file_name): Likewise.
11695 (mangle_name): Likewise.
11696 (accumulate_line_counts): Likewise.
11697 (output_branch_count): Likewise.
11698 (read_line): Likewise.
11700 2016-08-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
11702 PR rtl-optimization/71779
11703 * emit-rtl.c (set_reg_attrs_from_value): Only propagate REG_POINTER,
11704 if the value was sign-extended according to POINTERS_EXTEND_UNSIGNED
11705 or if it was truncated.
11707 PR rtl-optimization/70903
11708 * cse.c (cse_insn): If DEST is a paradoxical SUBREG, don't record DEST.
11710 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
11712 * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
11713 accessing SSA_NAME_PTR_INFO.
11715 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
11718 * common/config/avr/avr-common.c (avr_option_optimization_table)
11719 [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
11721 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
11724 * config/avr/avr.md: New pattern to work around do_store_flag
11725 generating shift instructions for bit extractions.
11727 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
11729 * tree-vrp.c (set_value_range): Use vrp_equiv_obstack with
11731 (add_equivalence): Likewise.
11732 (get_value_range): Allocate value range with vrp_value_range_pool.
11733 (vrp_initialize): Initialize vrp_equiv_obstack for equiv allocation.
11734 (vrp_finalize): Relase vrp_equiv_obstack and vrp_value_range_pool.
11736 2016-08-03 Peter Bergner <bergner@vnet.ibm.com>
11738 * config/rs6000/rs6000.c (rs6000_option_override_internal): Make LRA
11739 the default for the rs6000 port.
11741 2016-08-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11743 PR middle-end/71876
11744 * calls.c (special_function_p): Remove special handling of
11745 "setjmp_syscall", "qsetjmp", "longjmp", "siglongjmp" and the
11746 prefix "__x". Recognize "savectx", "vfork" and "getcontext" only
11747 without prefix. Remove potentially unsafe ECF_LEAF and ECF_NORETURN.
11749 2016-08-03 Vladimir Makarov <vmakarov@redhat.com>
11751 PR middle-end/72778
11752 * lra-spills.c (regno_in_use_p): Check bb and regno modification.
11753 Don't stop on regular insns.
11755 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
11757 * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
11758 size to DImode boundary.
11759 (nvptx_propagate): Likewise.
11761 2016-08-03 Alan Modra <amodra@gmail.com>
11763 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
11764 float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
11765 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
11766 from -mefficient-unaligned-vector. Note that this affects fp too.
11768 2016-08-03 Alan Modra <amodra@gmail.com>
11770 * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
11773 2016-08-03 Alan Modra <amodra@gmail.com>
11775 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
11776 to a reg. Localize vars.
11778 2016-08-03 Alan Modra <amodra@gmail.com>
11780 * config/rs6000/rs6000.opt: Remove negatives from help strings
11783 2016-08-03 Alan Modra <amodra@gmail.com>
11785 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
11786 Delete duplicated code.
11788 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
11790 PR middle-end/72778
11791 * lra-spills.c (regno_in_use_p): New.
11792 (lra_final_code_change): Use it.
11794 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
11796 PR rtl-optimization/69847
11797 * lra-int.h (struct lra-reg): Use restore_rtx instead of
11799 (lra_rtx_hash): New.
11800 * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
11802 (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
11803 * lra-remat.c (rtx_hash): Rename and Move to lra.c.
11804 * lra-spills.c (lra_final_code_change): Don't delete insn when the
11805 next insn is USE with the same reg as the current insn source.
11806 * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
11808 (lra_constraints_init): Call initiate_invariants.
11809 (lra_constraints_finish): Call finish_invariants.
11810 (struct invariant, invariant_t, invariant_ptr_t): New.
11811 (const_invariant_ptr_t, invariants, invariants_pool): New.
11812 (invariant_table, invariant_hash, invariant_eq_p): New.
11813 (insert_invariant, initiate_invariants, finish_invariants): New.
11814 (clear_invariants, invalid_invariant_regs): New.
11815 (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
11816 instead of restore_regno.
11817 (invariant_p, process_invariant_for_inheritance): New.
11818 (inherit_in_ebb): Implement invariant inheritance.
11819 (lra_inheritance): Initialize and finalize invalid_invariant_regs.
11820 (remove_inheritance_pseudos): Implement undoing invariant
11822 (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
11823 instead of restore_regno.
11824 * lra-assigns.c (regno_live_length): New.
11825 (reload_pseudo_compare_func): Use regno_live_length.
11826 (assign_by_spills): Use restore_rtx instead of restore_regno.
11827 (lra_assign): Ditto. Initiate regno_live_length.
11829 2016-02-08 James Greenhalgh <james.greenhalgh@arm.com>
11831 * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
11832 __builtin_aarch64_fmindf.
11834 2016-08-02 Bin Cheng <bin.cheng@arm.com>
11836 PR tree-optimization/34114
11837 * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
11838 information for more control IVs.
11840 2016-08-02 Bin Cheng <bin.cheng@arm.com>
11842 PR tree-optimization/34114
11843 * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
11844 PLUS_EXPR case. Handle SSA_NAME case.
11846 2016-08-02 Tamar Christina <tamar.christina@arm.com>
11848 * config/aarch64/aarch64-simd-builtins.def
11849 (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
11850 (__builtin_aarch64_fmaxdf): Likewise.
11851 (__builtin_aarch64_smin_nandf): Likewise.
11852 (__builtin_aarch64_smax_nandf): Likewise.
11853 * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
11854 * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
11855 (<fmaxmin><mode>3): ...this.
11856 * config/aarch64/arm_neon.h (vmaxnm_f64): New.
11857 (vminnm_f64): Likewise.
11858 (vmin_f64): Likewise.
11859 (vmax_f64): Likewise.
11860 * config/aarch64/iterators.md (FMAXMIN): Merge with...
11861 (FMAXMIN_UNS): ...this.
11862 (fmaxmin): Merged with
11863 (fmaxmin_op): ...this...
11864 (maxmin_uns_op): ...in to this.
11866 2016-08-01 Michael Meissner <meissner@linux.vnet.ibm.com>
11868 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
11869 Add support for vec_extract on vector float, vector int, vector
11870 short, and vector char vector types.
11871 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
11872 vector float, vector int, vector short, and vector char
11873 optimizations on 64-bit ISA 2.07 systems for both constant and
11874 variable element numbers.
11875 (rs6000_split_vec_extract_var): Likewise.
11876 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
11877 Altivec registers on ISA 2.07 and above.
11878 (vsx_extract_v4sf): Delete alternative that hard coded element 0,
11879 which never was matched due to the split occuring before register
11880 allocation (and the code would not have worked on little endian
11881 systems if it did match). Allow extracts to go to the Altivec
11882 registers if ISA 2.07 (power8). Change from using "" around the
11883 C++ code to using {}'s.
11884 (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
11885 vec_extracts when the vector is in memory.
11886 (vsx_extract_v4sf_var): New insn to optimize vector float
11887 vec_extracts when the element number is variable on 64-bit ISA
11889 (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
11890 for 64-bit ISA 2.07 as well as ISA 3.0.
11891 (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
11892 (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
11893 (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
11894 optimize vector int, vector short, and vector char vec_extracts
11895 when the vector is in memory.
11896 (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
11897 optimize vector int, vector short, and vector char vec_extracts
11898 when the element number is variable.
11900 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
11903 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
11904 does not overlap with other symbol flags.
11906 2016-08-01 Wilco Dijkstra <wdijkstr@arm.com>
11908 * config/aarch64/aarch64.h (aarch64_frame):
11909 Remove padding0 and hardfp_offset. Add locals_offset,
11910 initial_adjust, callee_adjust, callee_offset and final_adjust.
11911 * config/aarch64/aarch64.c (aarch64_layout_frame):
11912 Remove unused padding0 and hardfp_offset initializations.
11913 Choose frame layout and set frame variables accordingly.
11914 Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
11915 (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
11916 (aarch64_pop_regs): Likewise.
11917 (aarch64_expand_prologue): Remove all decision code, just emit
11918 prolog according to frame variables.
11919 (aarch64_expand_epilogue): Remove all decision code, just emit
11920 epilog according to frame variables.
11921 (aarch64_initial_elimination_offset): Use offset to local/arg area.
11923 2015-08-01 H.J. Lu <hongjiu.lu@intel.com>
11926 * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
11927 fix_debug_reg_uses after changing source register mode to
11928 V1TImode if source register is undefined.
11930 2015-08-01 Alan Hayward <alan.hayward@arm.com>
11932 PR tree-optimization/71818
11933 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
11934 with non invariant evolutions
11936 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
11939 * config/avr/avr.md (length) [branch]: Correct insn length
11940 attribute for forward branches.
11942 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
11944 * doc/extend.texi (AVR Built-in Functions): Document
11945 __builtin_avr_nops.
11946 * config/avr/builtins.def (NOPS): New.
11947 * config/avr/avr.c (avr_expand_nops): New static function.
11948 (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
11950 2016-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11952 * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
11953 performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
11956 2016-08-01 Virendra Pathak <virendra.pathak@broadcom.com>
11958 * config/aarch64/aarch64.c (vulcan_tunings): Update
11959 vulcan L1 cache_line_size.
11961 2016-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
11963 * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
11964 function that takes a vector memory address, a hard register, an
11965 element number and a temporary base register, and recreates an
11966 address that points to the appropriate element within the vector.
11967 * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
11968 (rs6000_split_vec_extract_var): Add support for the target of a
11969 vec_extract with variable element number being a scalar memory
11971 (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
11973 * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
11974 vsx_extract_<mode>_load insn with a new insn that optimizes
11975 storing either element to a memory location, using scratch
11976 registers to pick apart the vector and reconstruct the address.
11977 (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
11978 (vsx_extract_<mode>_store): Rework alternatives to more correctly
11979 support Altivec registers. Add support for ISA 3.0 Altivec d-form
11981 (vsx_extract_<mode>_var): Add support for extracting a variable
11982 element number from memory.
11984 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
11986 * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
11987 when testing for compares against constants of the form 0xabab.
11989 2016-07-29 Bin Cheng <bin.cheng@arm.com>
11991 PR tree-optimization/57558
11992 * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
11994 (vect_loop_versioning): Support versioning with niter assumptions.
11995 * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
11996 (vect_get_loop_niters): New parameter. Reimplement to support
11997 assumptions in loop niter info.
11998 (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
11999 (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
12000 (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
12001 Support loop versioning for niters.
12002 * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
12003 (vect_free_loop_info_assumptions): New function.
12004 (vectorize_loops): Free loop niter info for loops with flag
12005 LOOP_F_ASSUMPTIONS set if vectorization failed.
12006 * tree-vectorizer.h (struct _loop_vec_info): New field
12007 num_iters_assumptions.
12008 (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
12009 (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
12010 (LOOP_REQUIRES_VERSIONING): New macro.
12011 (vect_free_loop_info_assumptions): New decl.
12013 2016-07-29 Bin Cheng <bin.cheng@arm.com>
12015 * cfgloop.h (struct loop): New field constraints.
12016 (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
12017 (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
12019 * cfgloop.c (alloc_loop): Initialize new field.
12020 * cfgloopmanip.c (copy_loop_info): Copy constraints.
12021 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
12022 Adjust niter analysis wrto loop constraints.
12023 * doc/loop.texi (@node Number of iterations): Add description for loop
12026 2016-07-29 Marek Polacek <polacek@redhat.com>
12029 * config/i386/i386.c (ix86_expand_args_builtin): Add break.
12030 (ix86_expand_round_builtin): Likewise.
12032 2016-07-29 Segher Boessenkool <segher@kernel.crashing.org>
12033 Georg-Johann Lay <avr@gjlay.de>
12035 PR rtl-optimization/71976
12036 * combine.c (get_last_value): Return 0 if the argument for which
12037 the function is called has a wider mode than the recorded value.
12039 2016-07-29 Marek Polacek <polacek@redhat.com>
12042 * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
12043 (altivec_expand_st_builtin): Likewise.
12045 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
12047 * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
12048 introduced in r238381.
12050 2016-07-29 Kugan Vivekanandarajah <kuganv@linaro.org>
12052 PR middle-end/68217
12053 * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
12054 & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
12056 2016-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
12058 * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
12060 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
12061 Add support for vec_extract of vector double or vector long having
12062 a variable element number on 64-bit ISA 2.07 systems or newer.
12063 * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
12065 (rs6000_split_vec_extract_var): New function to split a
12066 vec_extract built-in function with variable element number.
12067 (rtx_is_swappable_p): Variable vec_extracts and shifts are not
12069 * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
12070 (UNSPEC_VSX_EXTRACT): Likewise.
12071 (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
12072 direct move instructions to be generated on 64-bit ISA 2.07
12073 systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
12075 (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
12076 arguments for vec_extract variable element.
12077 (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
12078 vec_extract with variable element on V2DFmode and V2DImode
12080 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
12081 -mupper-regs-df requirement, since it isn't needed.
12082 (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
12083 do direct moves on 64-bit systems, which allows optimization of
12084 vec_extract on 64-bit ISA 2.07 systems and newer.
12086 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
12087 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
12089 * config/aarch64/aarch64.md
12090 (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
12091 statement and type.
12092 (<optab>qihi2_aarch64): Likewise, and split into two.
12093 (extendqihi2_aarch64): New.
12094 (zero_extendqihi2_aarch64): New.
12095 * config/aarch64/iterators.md (ldrxt): Remove.
12096 * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
12099 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
12101 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
12103 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
12105 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
12106 (aarch64_push_reg): New function to push 1 or 2 registers.
12107 (aarch64_pop_reg): New function to pop 1 or 2 registers.
12108 (aarch64_expand_prologue): Use aarch64_push_regs.
12109 (aarch64_expand_epilogue): Use aarch64_pop_regs.
12111 2016-07-28 Yuri Rumyantsev <ysrumyan@gmail.com>
12113 PR tree-optimization/71734
12114 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
12115 attribute instead of REF_LOOP and use it.
12116 (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
12117 set it for Loops having non-zero safelen attribute.
12118 (ref_indep_loop_p): Pass zero as initial value for safelen.
12120 2016-07-28 Ilya Enkovich <ilya.enkovich@intel.com>
12122 PR middle-end/72657
12124 * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
12125 call using chkp_gimple_call_builtin_p.
12126 (chkp_copy_bounds_for_assign): Likewise.
12128 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12130 * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
12131 * config/arm/arm-protos.h (struct tune_params): Likewise.
12132 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
12133 (cortex_a9_sched_adjust_cost): Likewise.
12134 (fa726te_sched_adjust_cost): Likewise.
12135 (arm_adjust_cost): Likewise.
12136 * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
12137 * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
12138 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
12139 * config/i386/i386.c (ix86_adjust_cost): Likewise.
12140 * config/ia64/ia64.c: Likewise.
12141 * config/m68k/m68k.c: Likewise.
12142 * config/mep/mep.c (mep_adjust_cost): Likewise.
12143 * config/microblaze/microblaze.c (microblaze_adjust_cost):
12145 * config/mips/mips.c (mips_adjust_cost): Likewise.
12146 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
12148 * config/pa/pa.c (pa_adjust_cost): Likewise.
12149 * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
12150 (rs6000_debug_adjust_cost): Likewise.
12151 * config/sh/sh.c (sh_adjust_cost): Likewise.
12152 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
12153 (hypersparc_adjust_cost): Likewise.
12154 (sparc_adjust_cost): Likewise.
12155 * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
12156 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
12157 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
12159 * config/visium/visium.c (visium_adjust_cost): Likewise.
12160 * doc/tm.texi: Regenerate.
12161 * haifa-sched.c (dep_cost_1): Adjust.
12162 * target.def: Merge adjust_cost and adjust_cost_2.
12164 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12166 * haifa-sched.c (add_to_speculative_block): Make twins a vector.
12168 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12170 * store-motion.c (struct st_expr): Make pattern_regs a vector.
12171 (extract_mentioned_regs): Append to a vector instead of
12172 returning a rtx_expr_list.
12173 (st_expr_entry): Adjust.
12174 (free_st_expr_entry): Likewise.
12175 (store_ops_ok): Likewise.
12176 (store_killed_in_insn): Likewise.
12177 (find_moveable_store): Likewise.
12179 2016-07-28 Martin Liska <mliska@suse.cz>
12181 PR gcov-profile/68025
12182 * tree-profile.c (tree_profiling): Respect
12183 no_profile_instrument_function attribute.
12184 * doc/extend.texi: Document no_profile_instrument_function
12187 2016-07-28 Martin Liska <mliska@suse.cz>
12189 PR rtl-optimization/70944
12190 * combine.c (make_compound_operation):
12191 Do not allow make_compound_operation for vector mode
12193 2016-07-28 Kugan Vivekanandarajah <kuganv@linaro.org>
12195 PR middle-end/71994
12196 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
12197 before calling get_ops.
12199 2016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
12201 * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
12202 * tree.h (LOG2_BITS_PER_UNIT): ...to here.
12203 (BITS_PER_UNIT_LOG): Remove.
12204 (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
12205 * expr.c (expand_assignment): Likewise.
12206 * stor-layout.c (initialize_sizetypes): Likewise.
12208 2016-07-27 Michael Meissner <meissner@linux.vnet.ibm.com>
12210 * config/rs6000/vector.md (vec_extract<mode>): Change the calling
12211 signature of rs6000_expand_vector_extract so that the element
12212 number is a RTX instead of a constant integer.
12213 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
12215 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
12216 (altivec_expand_vec_ext_builtin): Likewise.
12217 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
12218 * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
12219 MFVSRLD instruction.
12221 2016-07-27 David Malcolm <dmalcolm@redhat.com>
12223 * input.c (get_pure_location): Move here from tree.c.
12224 (make_location): Likewise. Add header comment.
12225 (selftest::test_accessing_ordinary_linemaps): Verify
12226 pure_location_p, make_location, get_location_from_adhoc_loc and
12227 get_range_from_loc.
12228 * input.h (get_pure_location): Move declaration here from tree.h.
12229 (get_finish): Likewise for inline function.
12230 (make_location): Likewise for declaration.
12231 * tree.c (get_pure_location): Move to input.c.
12232 (make_location): Likewise.
12233 * tree.h (get_pure_location): Move declaration to tree.h.
12234 (get_finish): Likewise for inline function.
12235 (make_location): Likewise for declaration.
12237 2016-07-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12239 PR middle-end/71078
12240 * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
12242 2016-07-27 David Malcolm <dmalcolm@redhat.com>
12244 * system.h (STATIC_ASSERT): Use static_assert if building
12245 with C++11 onwards.
12247 2016-07-27 Richard Biener <rguenther@suse.de>
12249 PR tree-optimization/72517
12250 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
12251 Revert change to not compute read-read dependences.
12253 2016-07-27 Richard Biener <rguenther@suse.de>
12255 * predict.c (set_even_probabilities): Make nedges unsigned.
12257 2016-07-27 Martin Liska <mliska@suse.cz>
12259 * predict.c (set_even_probabilities): Handle unlikely edges.
12260 (combine_predictions_for_bb): Likewise.
12262 2016-07-26 Michael Meissner <meissner@linux.vnet.ibm.com>
12265 * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
12266 __float128 support when we don't have hardware support, so that
12267 the IEEE built-in functions like isgreater, first call __unordkf3
12268 to make sure neither operand is a NaN, and if both operands are
12269 ordered, do the normal comparison.
12271 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
12273 * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
12275 (extract_code_and_val_from_cond_with_ops): Verify that name is
12276 either cond_op0 or cond_op1.
12278 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
12280 PR tree-optimization/18046
12281 * genmodes.c (emit_mode_size_inline): Emit an assert that
12282 verifies that mode is a valid array index.
12283 (emit_mode_nuinits_inline): Likewise.
12284 (emit_mode_inner_inline): Likewise.
12285 (emit_mode_unit_size_inline): Likewise.
12286 (emit_mode_unit_precision_inline): Likewise.
12287 * tree-vrp.c: Include params.h.
12288 (find_switch_asserts): Register edge assertions for the default
12289 label which correspond to the anti-ranges of each case label.
12290 * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
12291 * doc/invoke.texi: Document it.
12293 2016-07-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12295 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
12296 and unnecessary call to gimple_bb.
12298 2016-07-26 Richard Biener <rguenther@suse.de>
12300 PR rtl-optimization/71984
12301 * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
12304 2016-07-26 Richard Biener <rguenther@suse.de>
12306 PR middle-end/72517
12307 * expmed.c (extract_bit_field_1): Constrain the vector mode
12308 with element size matching the extraction mode size when
12309 choosing a better vector mode to do the extraction from.
12311 2016-07-26 Richard Biener <rguenther@suse.de>
12312 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12314 PR middle-end/70920
12315 * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
12318 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12320 * tree-ssa-structalias.c (struct scc_info): Change types of
12321 members to auto_sbitmap and auto_vec.
12322 (scc_info::scc_info): New constructor.
12323 (scc_info::~scc_info): New destructor.
12324 (init_scc_info): Remove.
12325 (free_scc_info): Remove.
12326 (find_indirect_cycles): Adjust.
12327 (perform_var_substitution): Likewise.
12328 (free_var_substitution_info): Likewise.
12330 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12332 * tree-outof-ssa.c (struct elim_graph): Change type of members
12333 to auto_vec and auto_sbitmap.
12334 (elim_graph::elim_graph): New constructor.
12335 (delete_elim_graph): Remove.
12336 (expand_phi_nodes): Adjust.
12338 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12340 * tree-outof-ssa.c (struct elim_graph): Remove typedef.
12341 (new_elim_graph): Adjust.
12342 (clear_elim_graph): Likewise.
12343 (delete_elim_graph): Likewise.
12344 (elim_graph_size): Likewise.
12345 (elim_graph_add_node): Likewise.
12346 (elim_graph_add_edge): Likewise.
12347 (elim_graph_remove_succ_edge): Likewise.
12348 (eliminate_name): Likewise.
12349 (eliminate_build): Likewise.
12350 (elim_forward): Likewise.
12351 (elim_unvisited_predecessor): Likewise.
12352 (elim_backward): Likewise.
12353 (elim_create): Likewise.
12354 (eliminate_phi): Likewise.
12355 (expand_phi_nodes): Likewise.
12357 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12359 * bt-load.c (compute_out): Use auto_sbitmap class.
12360 (link_btr_uses): Likewise.
12361 * cfganal.c (mark_dfs_back_edges): Likewise.
12362 (post_order_compute): Likewise.
12363 (inverted_post_order_compute): Likewise.
12364 (pre_and_rev_post_order_compute_fn): Likewise.
12365 (single_pred_before_succ_order): Likewise.
12366 * cfgexpand.c (pass_expand::execute): Likewise.
12367 * cfgloop.c (verify_loop_structure): Likewise.
12368 * cfgloopmanip.c (fix_bb_placements): Likewise.
12369 (remove_path): Likewise.
12370 (update_dominators_in_loop): Likewise.
12371 * cfgrtl.c (break_superblocks): Likewise.
12372 * ddg.c (check_sccs): Likewise.
12373 (create_ddg_all_sccs): Likewise.
12374 * df-core.c (df_worklist_dataflow): Likewise.
12375 * dse.c (dse_step3): Likewise.
12376 * except.c (eh_region_outermost): Likewise.
12377 * function.c (thread_prologue_and_epilogue_insns): Likewise.
12378 * gcse.c (prune_expressions): Likewise.
12379 (prune_insertions_deletions): Likewise.
12380 * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
12381 * graph.c (draw_cfg_nodes_no_loops): Likewise.
12382 * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
12383 * lcm.c (compute_earliest): Likewise.
12384 (compute_farthest): Likewise.
12385 * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
12386 (unroll_loop_runtime_iterations): Likewise.
12387 (unroll_loop_stupid): Likewise.
12388 * lower-subreg.c (decompose_multiword_subregs): Likewise.
12389 * lra-lives.c: Likewise.
12390 * lra.c (lra): Likewise.
12391 * modulo-sched.c (schedule_reg_moves): Likewise.
12392 (optimize_sc): Likewise.
12393 (get_sched_window): Likewise.
12394 (sms_schedule_by_order): Likewise.
12395 (check_nodes_order): Likewise.
12396 (order_nodes_of_sccs): Likewise.
12397 (order_nodes_in_scc): Likewise.
12398 * recog.c (split_all_insns): Likewise.
12399 * regcprop.c (pass_cprop_hardreg::execute): Likewise.
12400 * reload1.c (reload): Likewise.
12401 * sched-rgn.c (haifa_find_rgns): Likewise.
12402 (split_edges): Likewise.
12403 (compute_trg_info): Likewise.
12404 * sel-sched.c (init_seqno): Likewise.
12405 * store-motion.c (remove_reachable_equiv_notes): Likewise.
12406 * tree-into-ssa.c (update_ssa): Likewise.
12407 * tree-ssa-live.c (live_worklist): Likewise.
12408 * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
12409 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
12411 (try_peel_loop): Likewise.
12412 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
12414 * tree-ssa-pre.c (compute_antic): Likewise.
12415 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
12416 * tree-stdarg.c (reachable_at_most_once): Likewise.
12417 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
12418 * var-tracking.c (vt_find_locations): Likewise.
12420 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12422 * sbitmap.h (auto_sbitmap): New class.
12424 2016-07-26 Alan Modra <amodra@gmail.com>
12427 * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
12430 2016-07-25 David Malcolm <dmalcolm@redhat.com>
12432 * input.c (selftest::temp_source_file::temp_source_file): Fix
12433 missing "%s" in fprintf.
12435 2016-07-25 John David Anglin <danglin@gcc.gnu.org>
12437 PR middle-end/71732
12438 * cselib.c (cselib_process_insn): Invalidate argument slots for
12441 2016-07-25 Jiong Wang <jiong.wang@arm.com>
12443 * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
12444 vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
12445 vmulxh_lane_f16, vmulxh_laneq_f16): New.
12447 2016-07-25 Jiong Wang <jiong.wang@arm.com>
12449 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
12450 * config/aarch64/aarch64.md (fma, fnma): Support HF.
12451 * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
12453 2016-07-25 Jiong Wang <jiong.wang@arm.com>
12455 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
12456 * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
12458 (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
12459 (add<mode>3): Likewise.
12460 (sub<mode>3): Likewise.
12461 (mul<mode>3): Likewise.
12462 (div<mode>3): Likewise.
12463 (*div<mode>3): Likewise.
12464 (<fmaxmin><mode>3): Extend to HF.
12465 * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
12466 (fabd<mode>3): Likewise.
12467 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
12468 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
12469 (aarch64_fmulx<mode>): Likewise.
12470 (aarch64_fac<optab><mode>): Likewise.
12471 (aarch64_frecps<mode>): Likewise.
12472 (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
12473 (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
12474 * config/aarch64/iterators.md (VHSDF_SDF): Delete.
12475 (VSDQ_HSDI): Support HI.
12476 (fcvt_target, FCVT_TARGET): Likewise.
12477 * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
12478 vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
12479 vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
12480 vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
12481 vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
12482 vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
12483 vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
12484 vrsqrtsh_f16): New.
12486 2016-07-25 Jiong Wang <jiong.wang@arm.com>
12488 * config.gcc (aarch64*-*-*): Install arm_fp16.h.
12489 * config/aarch64/aarch64-builtins.c (hi_UP): New.
12490 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
12491 * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
12493 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
12494 (aarch64_cm<optab><mode>): Likewise.
12495 * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
12496 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
12497 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
12498 (sqrt<mode>2): Likewise.
12499 (*sqrt<mode>2): Likewise.
12500 (abs<mode>2): Likewise.
12501 (<optab><mode>hf2): New pattern for HF mode.
12502 (<optab>hihf2): Likewise.
12503 * config/aarch64/arm_neon.h: Include arm_fp16.h.
12504 * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
12505 (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
12507 * config/aarch64/arm_fp16.h: New file.
12508 (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
12509 vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
12510 vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
12511 vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
12512 vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
12513 vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
12514 vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
12515 vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
12516 vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
12517 vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
12518 vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
12519 vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
12522 2016-07-25 Jiong Wang <jiong.wang@arm.com>
12524 * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
12525 reduc_smin_scal_): Use VDQIF_F16.
12526 (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
12527 * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
12529 (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
12530 * config/aarch64/iterators.md (VDQIF_F16): New.
12531 (vp): Support HF modes.
12532 * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
12533 vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
12535 2016-07-25 Jiong Wang <jiong.wang@arm.com>
12537 * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
12538 "*aarch64_mulx_elt_from_dup<mode>".
12539 (*aarch64_mul3_elt<mode>): Update schedule type.
12540 (*aarch64_mul3_elt_from_dup<mode>): Likewise.
12541 (*aarch64_fma4_elt_from_dup<mode>): Likewise.
12542 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
12543 * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
12544 (f, fp): Support HF modes.
12545 * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
12546 vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
12547 vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
12548 vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
12549 vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
12550 vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
12552 2016-07-25 Jiong Wang <jiong.wang@arm.com>
12554 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
12555 * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
12557 * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
12560 2016-07-25 Jiong Wang <jiong.wang@arm.com>
12562 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
12563 * config/aarch64/aarch64-simd.md
12564 (aarch64_rsqrts<mode>): Extend to HF modes.
12565 (fabd<mode>3): Likewise.
12566 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
12567 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
12568 (aarch64_<maxmin_uns>p<mode>): Likewise.
12569 (<su><maxmin><mode>3): Likewise.
12570 (<maxmin_uns><mode>3): Likewise.
12571 (<fmaxmin><mode>3): Likewise.
12572 (aarch64_faddp<mode>): Likewise.
12573 (aarch64_fmulx<mode>): Likewise.
12574 (aarch64_frecps<mode>): Likewise.
12575 (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
12576 (add<mode>3): Extend to HF modes.
12577 (sub<mode>3): Likewise.
12578 (mul<mode>3): Likewise.
12579 (div<mode>3): Likewise.
12580 (*div<mode>3): Likewise.
12581 * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
12583 * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
12584 * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
12585 vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
12586 vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
12587 vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
12588 vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
12589 vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
12590 vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
12591 vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
12592 vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
12593 vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
12594 vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
12595 vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
12596 vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
12598 2016-07-25 Jiong Wang <jiong.wang@arm.com>
12600 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
12601 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
12602 * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
12603 (neg<mode>2): Likewise.
12604 (abs<mode>2): Likewise.
12605 (<frint_pattern><mode>2): Likewise.
12606 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
12607 (<optab><VDQF:mode><fcvt_target>2): Likewise.
12608 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
12609 (ftrunc<VDQF:mode>2): Likewise.
12610 (<optab><fcvt_target><VDQF:mode>2): Likewise.
12611 (sqrt<mode>2): Likewise.
12612 (*sqrt<mode>2): Likewise.
12613 (aarch64_frecpe<mode>): Likewise.
12614 (aarch64_cm<optab><mode>): Likewise.
12615 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
12617 * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
12618 (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
12620 * config/aarch64/arm_neon.h (vdup_n_f16): New.
12621 (vdupq_n_f16): Likewise.
12622 (vld1_dup_f16): Use vdup_n_f16.
12623 (vld1q_dup_f16): Use vdupq_n_f16.
12624 (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
12625 vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
12626 vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
12627 vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
12628 vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
12629 vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
12630 vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
12631 vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
12632 vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
12633 vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
12634 vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
12635 vsqrt_f16, vsqrtq_f16): New.
12637 2016-07-25 Jiong Wang <jiong.wang@arm.com>
12639 * config/aarch64/aarch64-simd.md
12640 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
12641 (aarch64_ext<mode>): Likewise.
12642 (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
12643 * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
12644 aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
12646 * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
12648 (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
12649 __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
12650 vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
12651 vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
12652 vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
12653 vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
12654 vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
12656 (vmov_n_f16): Reimplement using vdup_n_f16.
12657 (vmovq_n_f16): Reimplement using vdupq_n_f16..
12659 2016-07-25 Jiong Wang <jiong.wang@arm.com>
12661 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
12662 "frame_related_p". Generate CFA annotation when it's necessary.
12663 (aarch64_expand_prologue): Use aarch64_add_constant.
12664 (aarch64_expand_epilogue): Likewise.
12665 (aarch64_output_mi_thunk): Pass "false" when calling
12666 aarch64_add_constant.
12668 2016-07-25 Jiong Wang <jiong.wang@arm.com>
12670 * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
12673 2016-07-25 Jiong Wang <jiong.wang@arm.com>
12675 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
12676 Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
12677 (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
12678 (aarch64_build_constant): Delete.
12680 2016-07-25 Alexander Monakov <amonakov@ispras.ru>
12683 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
12685 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
12686 flag_toplevel_reorder.
12688 2016-07-25 Richard Biener <rguenther@suse.de>
12690 * cgraph.c (cgraph_node::verify_node): Compare against builtin
12691 by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
12692 * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
12693 * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
12694 (streamer_get_builtin_tree): Likewise.
12695 (streamer_write_builtin): Likewise.
12696 * lto-streamer.h (LTO_builtin_decl): Remove.
12697 * lto-streamer-in.c (lto_read_tree_1): Remove assert.
12698 (lto_input_scc): Remove LTO_builtin_decl handling.
12699 (lto_input_tree_1): Liekwise.
12700 * lto-streamer-out.c (lto_output_tree_1): Remove special
12701 handling of builtins.
12702 (DFS::DFS): Likewise.
12703 * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
12704 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
12706 (streamer_write_builtin): Remove.
12708 2016-07-25 Martin Liska <mliska@suse.cz>
12710 * lto-cgraph.c (input_symtab): Don't call get_working_sets
12711 if flag_auto_profile is set to true.
12713 2016-07-25 Martin Liska <mliska@suse.cz>
12715 PR gcov-profile/71868
12716 * cfgloopanal.c (expected_loop_iterations_unbounded): When we
12717 have a function with multiple latches, count them all.
12719 2016-07-25 Martin Liska <mliska@suse.cz>
12721 * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
12723 2016-07-25 Martin Liska <mliska@suse.cz>
12725 PR tree-optimization/71987
12726 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
12727 just for SSA_NAMEs. Fix GNU coding style.
12729 2016-07-25 Martin Liska <mliska@suse.cz>
12731 PR gcov-profile/64874
12732 * gcov-io.h: Update command about file format.
12733 * gcov-iov.c (main): Adapt the numbering scheme.
12735 2016-07-24 Kugan Vivekanandarajah <kuganv@linaro.org>
12737 PR middle-end/66726
12738 * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
12739 whose result is used in PHI.
12740 (final_range_test_p): Likewise.
12741 (maybe_optimize_range_tests): Likewise.
12743 2016-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
12745 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
12746 Reformat two multi-line strings.
12748 2016-07-22 Martin Sebor <msebor@redhat.com>
12750 * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
12752 2016-07-22 Martin Sebor <msebor@redhat.com>
12755 * doc/extend.texi (Compound Literals): Correct and clarify.
12756 (Cast to Union): Same.
12758 2016-07-22 Kelvin Nilsen <kelvin@gcc.gnu.org>
12760 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
12761 comments to explain why certain error messages make mention of
12762 undocumented options.
12763 (rs6000_invalid_builtin): Change error messages to replace mention
12764 of undocumented options with mention of the -mcpu=power9 option
12765 that enables those undocumented options.
12766 * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
12767 (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
12768 definition of this macro to correct an existing error.
12769 * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
12770 mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
12771 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
12772 descriptions of built-in functions so that they depend on
12773 -mcpu=power9 instead of on the corresponding undocumented flags.
12774 * doc/invoke.texi (Option Summary): Remove all mention of newly
12775 undocumented flags.
12776 (IBM RS/6000 and PowerPC Options): Likewise.
12777 * doc/md.texi (Constraints for Particuliar Machines): Remove all
12778 mention of newly undocumented flags.
12780 2016-07-22 Evgeny Stupachenko <evstupac@gmail.com>
12782 * ipa-cp.c (determine_versionability): Do not create constprop clones,
12783 when target_clones attribute is set.
12785 2016-07-22 Bin Cheng <bin.cheng@arm.com>
12787 * common.opt (funsafe-loop-optimizations): Mark ignore.
12788 * doc/invoke.texi (funsafe-loop-optimizations): Remove.
12789 * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
12791 * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
12792 * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
12794 2016-07-22 Bin Cheng <bin.cheng@arm.com>
12796 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
12798 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
12800 (number_of_iterations_exit): Warn missed loop optimization for
12801 possible infinite loops.
12803 2016-07-22 Segher Boessenkool <segher@kernel.crashing.org>
12806 * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
12807 when to emit a ".machine" pseudo-op.
12809 2016-07-22 Martin Liska <mliska@suse.cz>
12811 PR gcov-profile/69028
12812 PR gcov-profile/62047
12813 * coverage.c (coverage_compute_lineno_checksum): Do not
12814 calculate checksum for fns w/o xloc.file.
12815 (coverage_compute_profile_id): Likewise.
12817 2016-07-22 Georg-Johann Lay <avr@gjlay.de>
12819 * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
12820 (avr_secondary_reload): ...and implementation.
12821 (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
12822 * config/avr/avr.md (reload_in<mode>): Remove insns.
12823 (adjust_len) [lpm]: Remove insn attribute value.
12824 * config/avr/predicates.md (flash_operand): Remove insn predicate.
12826 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
12828 PR middle-end/71876
12829 * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
12831 * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
12832 * calls.c (special_function_p): Remove the special handling of the
12833 "__builtin_" prefix.
12835 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
12837 PR middle-end/71876
12838 * calls.c (gimple_maybe_alloca_call_p): New function. Return true
12839 if STMT may be an alloca call.
12840 (gimple_alloca_call_p, alloca_call_p): Return only true for the
12841 builtin alloca call.
12842 * calls.h (gimple_maybe_alloca_call_p): New function.
12843 * tree-inline.c (inline_forbidden_p_stmt): Use
12844 gimple_maybe_alloca_call_p here.
12846 2016-07-21 David Malcolm <dmalcolm@redhat.com>
12848 * spellcheck-tree.c (best_macro_match::best_macro_match):
12849 Explictly specify the template arguments when invoking the base
12850 class constructor, to help older C++ compilers.
12852 2016-07-21 Jakub Jelinek <jakub@redhat.com>
12855 * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
12856 before builtin_decl_implicit.
12858 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
12860 * optabs.c (emit_condiitonal_move): Short circuit for identical
12863 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
12865 * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
12866 max_seq_cost. Removed fields: then_cost, else_cost, branch_cost.
12867 (noce_conversion_profitable_p): New.
12868 (noce_try_store_flag_constants): Use it.
12869 (noce_try_addcc): Likewise.
12870 (noce_try_store_flag_mask): Likewise.
12871 (noce_try_cmove): Likewise.
12872 (noce_try_cmove_arith): Likewise.
12873 (bb_valid_for_noce_process_p): Add to the cost parameter rather than
12875 (noce_convert_multiple_sets): Move cost model to here, from...
12876 (bb_ok_for_noce_convert_multiple_sets) ...here.
12877 (noce_process_if_block): Update calls for above changes.
12878 (noce_find_if_block): Record new noce_if_info parameters.
12880 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
12882 * target.def (max_noce_ifcvt_seq_cost): New.
12883 * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
12884 * doc/tm.texi: Regenerate.
12885 * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
12886 * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
12887 * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
12888 (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
12889 * doc/invoke.texi: Document new params.
12891 2016-07-21 Richard Biener <rguenther@suse.de>
12893 PR tree-optimization/71947
12894 * tree-vrp.c (extract_range_from_assert): Singleton symbolic
12895 ranges have useful limit_vr information.
12897 2016-07-21 Richard Biener <rguenther@suse.de>
12899 * function-tests.c (build_trivial_generic_function): Set
12900 BLOCK_SUPERCONTEXT of DECL_INITIAL.
12901 * omp-low.c (create_omp_child_function): Likewise.
12902 (grid_expand_target_grid_body): Likewise.
12903 * cgraphunit.c (init_lowered_empty_function): Likewise.
12904 (cgraph_node::expand_thunk): Likewise.
12905 * tree-parloops.c (create_loop_fn): Likewise.
12906 * ipa.c (cgraph_build_static_cdtor_1): Likewise.
12908 2016-07-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12910 * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
12913 2016-07-21 Georg-Johann Lay <avr@gjlay.de>
12915 * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
12916 (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
12917 (*insv.xor-extract, *insv.xor1-bit.0): New insns.
12918 (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
12919 values for insn attribute.
12920 * config/avr/avr.c (avr_out_insert_notbit): New function.
12921 (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
12922 ADJUST_LEN_INSV_NOTBIT_0/_7.
12923 * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
12925 2016-07-21 Bin Cheng <bin.cheng@arm.com>
12927 * tree-chrec.c (convert_affine_scev): New parameter. Pass new arg.
12928 (chrec_convert_1, chrec_convert): Ditto.
12929 * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
12930 * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
12931 * tree-vrp.c (adjust_range_with_scev): Ditto.
12932 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
12933 (scev_var_range_cant_overflow): New function.
12934 (scev_probably_wraps_p): New parameter. Call above function.
12935 * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
12937 2016-07-21 Bin Cheng <bin.cheng@arm.com>
12939 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
12940 by removing computation of may_be_zero.
12942 2016-07-21 Jakub Jelinek <jakub@redhat.com>
12944 * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
12946 2016-07-21 Andrew Sutton <andrew.n.sutton@gmail.com>
12948 Improving concepts performance and diagnostics.
12949 * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
12950 for constraint satisfaction and subsumption.
12951 * timevar.h (auto_timevar): New constructor that matches the push/pop
12952 pattern of usage in pt.c.
12954 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
12956 * hwint.h (HOST_WIDE_INT_0): New define.
12957 (HOST_WIDE_INT_0U): Ditto.
12958 * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
12959 * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
12960 * simplify-rtx.c: Ditto.
12961 * tree-object-size.c: Ditto.
12963 2016-07-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12965 * config/s390/s390.c (s390_encode_section_info): Remove mode size
12968 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
12970 * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
12971 * combine.c: Use HOST_WIDE_INT_M1U instead of
12972 ~(unsigned HOST_WIDE_INT) 0.
12973 * double-int.h: Ditto.
12975 * dwarf2asm.c:Ditto.
12977 * genmodes.c: Ditto.
12979 * read-rtl.c: Ditto.
12980 * tree-ssa-loop-ivopts.c: Ditto.
12981 * tree-ssa-loop-prefetch.c: Ditto.
12982 * tree-vect-generic.c: Ditto.
12983 * tree-vect-patterns.c: Ditto.
12986 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
12988 * config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
12989 constant addresses outside [0,0xc0] into a register.
12990 (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn. And handle
12991 cases where the base address register is unused after.
12992 (avr_out_movhi_r_mr_reg_disp_tiny): Same.
12993 (avr_out_movhi_mr_r_reg_disp_tiny): Same.
12994 (avr_out_store_psi_reg_disp_tiny): Same.
12996 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
12998 Implement attribute progmem on reduced Tiny cores by adding
12999 flash offset 0x4000 to respective symbols.
13002 * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
13003 documentation how it works on reduced Tiny cores.
13004 (AVR Named Address Spaces): No support for reduced Tiny.
13005 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
13006 (avr_address_tiny_pm_p): New static function.
13007 (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
13008 if the address is in progmem.
13009 (avr_assemble_integer): Same.
13010 (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
13011 for symbol_ref in progmem.
13012 * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
13013 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
13014 magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
13016 2016-07-20 Patrick Palka <ppalka@gcc.gnu.org>
13018 * configure.ac (thin_archive_support): New variable. AC_SUBST it.
13019 * configure: Regenerate.
13020 * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
13021 (USE_THIN_ARCHIVES): New variable.
13022 (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
13023 this archive as a thin archive.
13025 2016-07-20 David Malcolm <dmalcolm@redhat.com>
13027 * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
13028 same location as last time, don't skip if we have fix-it hints.
13029 Clarify the skipping logic by converting it from one "if" clause
13030 to repeated "if" clauses.
13031 * spellcheck-tree.c: Include "cpplib.h".
13032 (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
13033 (best_macro_match::best_macro_match): New constructor.
13034 * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
13035 Move here from c/c-decl.c.
13036 (class best_macro_match): Move here from c/c-decl.c, converting
13037 from a typedef to a subclass, gaining a ctor.
13039 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
13041 * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
13042 * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
13044 (avr_addr_space_diagnose_usage): ...and implementation.
13045 (avr_addr_space_supported_p): New function.
13046 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
13047 report bad address space usage if that space is supported.
13048 (avr_insert_attributes): Same. No more complain about unsupported
13050 * config/avr/avr-c.c (tm_p.h): Include it.
13051 (avr_cpu_cpp_builtins): Only define addr-space related built-in
13052 macro if avr_addr_space_supported_p.
13054 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
13056 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
13057 flag_toplevel_reorder.
13059 2016-07-20 David Malcolm <dmalcolm@redhat.com>
13061 * gcc-rich-location.c
13062 (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
13064 * gcc-rich-location.h
13065 (gcc_rich_location::add_fixit_misspelled_id): Likewise.
13067 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
13069 * target.def (addr_space): Add new diagnose_usage to hook vector.
13070 * targhooks.c (default_addr_space_diagnose_usage): Add default
13071 implementation and...
13072 * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
13073 * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
13074 is some address space, call targetm.addr_space.diagnose_usage.
13075 * doc/tm.texi.in (Named Address Spaces): Add anchor for
13076 TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
13077 * doc/tm.texi: Regenerate.
13079 2016-07-20 Martin Liska <mliska@suse.cz>
13081 PR middle-end/71898
13082 * graphite-isl-ast-to-gimple.c (later_of_the_two):
13083 Properly handly PHI stmts.
13085 2016-07-20 Bin Cheng <bin.cheng@arm.com>
13087 PR tree-optimization/71503
13088 PR tree-optimization/71683
13089 * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
13092 2016-07-20 Martin Liska <mliska@suse.cz>
13094 * doc/invoke.texi (-fipa-ra): Document when the option is
13095 disabled. Fix a typo.
13097 2016-07-20 Martin Liska <mliska@suse.cz>
13099 * Makefile.in: Include fibonacci_heap.c
13100 * fibonacci_heap.c: New file.
13101 * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
13102 (fibonacci_heap::union_with): Fix deletion of the second heap.
13103 * selftest-run-tests.c (selftest::run_tests): Incorporate
13104 fibonacci heap tests.
13105 * selftest.h: Declare fibonacci_heap_c_tests.
13107 2016-07-20 Martin Liska <mliska@suse.cz>
13109 * selftest-run-tests.c (selftest::run_tests): New function.
13110 * selftest.h (sreal_c_tests): Declare.
13111 * sreal.c (sreal_verify_basics): New function.
13112 (verify_aritmetics): Likewise.
13113 (sreal_verify_arithmetics): Likewise.
13114 (verify_shifting): Likewise.
13115 (sreal_verify_shifting): Likewise.
13116 (void sreal_c_tests): Likewise.
13118 2016-07-19 Jakub Jelinek <jakub@redhat.com>
13120 PR rtl-optimization/71916
13121 * cfgrtl.c (contains_no_active_insn_p): Return false also for
13122 bb which have a single succ fake edge.
13124 2016-07-19 Aldy Hernandez <aldyh@redhat.com>
13127 * dwarf2out.c (gen_subprogram_die): Only call
13128 gen_unspecified_parameters_die while dumping early dwarf.
13130 2016-07-19 Jakub Jelinek <jakub@redhat.com>
13132 PR middle-end/71874
13133 * gimple-fold.c (fold_builtin_memory_op): Use
13134 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
13136 2016-07-19 Uros Bizjak <ubizjak@gmail.com>
13138 * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
13139 HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
13140 HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
13141 HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
13142 * combine.c: Ditto.
13145 * double-int.c: Ditto.
13147 * dwarf2out.c: Ditto.
13150 * fold-const.c: Ditto.
13151 * function.c: Ditto.
13153 * genmodes.c: Ditto.
13157 * loop-doloop.c: Ditto.
13158 * loop-invariant.c: Ditto.
13159 * loop-iv.c: Ditto.
13164 * rtlanal.c: Ditto.
13165 * simplify-rtx.c: Ditto.
13166 * stor-layout.c: Ditto.
13168 * tree-ssa-loop-ivopts.c: Ditto.
13169 * tree-vect-generic.c: Ditto.
13170 * tree-vect-patterns.c: Ditto.
13175 * wide-int-print.cc: Ditto.
13176 * wide-int.cc: Ditto.
13177 * wide-int.h: Ditto.
13179 2016-07-19 David Malcolm <dmalcolm@redhat.com>
13181 * selftest.c (selftest::assert_streq): Handle NULL values of
13182 val_actual and val_expected.
13184 2016-07-19 Martin Jambor <mjambor@suse.cz>
13187 * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
13188 rather than cgraph_create_node to get a call graph node.
13190 2016-07-19 Richard Biener <rguenther@suse.de>
13192 * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
13193 handle all tcc_constant bases and valueize SSA names.
13194 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
13195 tcc_constant bases.
13197 2016-07-19 David Malcolm <dmalcolm@redhat.com>
13199 * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
13200 the flags of the exit block and bb2, not just the entry block.
13202 2016-07-19 Richard Biener <rguenther@suse.de>
13204 PR tree-optimization/71901
13205 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
13206 align member, group stuff with the bitfield.
13207 (vn_ref_op_align_unit): New inline.
13208 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
13209 record element alignment and operand 3 unchanged.
13210 (ao_ref_init_from_vn_reference): Adjust.
13211 (valueize_refs_1): Likewise.
13212 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
13214 2016-07-19 Richard Biener <rguenther@suse.de>
13216 PR tree-optimization/71908
13217 * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
13218 symbolic constants in a more reliable way.
13220 2016-07-19 Ilya Enkovich <ilya.enkovich@intel.com>
13222 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
13224 (vect_update_inits_of_drs): Likewise.
13225 (vect_create_cond_for_alias_checks): Likewise.
13226 * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
13228 2016-07-19 Richard Biener <rguenther@suse.de>
13231 * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
13232 with an abstract origin that is not an inlined function outer
13233 scope add a self-reference as abstract origin.
13234 * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
13236 2016-07-18 Michael Meissner <meissner@linux.vnet.ibm.com>
13239 * config/rs6000/rs6000.c (rs6000_function_value): Fix
13240 unintentional System V.4 structure return breakage for structures
13241 with a single floating point element.
13243 2016-07-18 Yuri Rumyantsev <ysrumyan@gmail.com>
13245 PR tree-optimization/71734
13246 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
13247 contains REF, use it to check safelen, assume that safelen value
13248 must be greater 1, fix style.
13249 (ref_indep_loop_p_2): Add REF_LOOP argument.
13250 (ref_indep_loop_p): Pass LOOP as additional argument to
13251 ref_indep_loop_p_2.
13253 2016-07-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
13255 * cfgexpand.c (expand_stack_vars): Implement synamic stack space
13256 allocation in the prologue.
13257 * explow.c (get_dynamic_stack_base): New function to return an address
13258 expression for the dynamic stack base.
13259 (get_dynamic_stack_size): New function to do the required dynamic stack
13260 space size calculations.
13261 (allocate_dynamic_stack_space): Use new functions.
13262 (align_dynamic_address): Move some code from
13263 allocate_dynamic_stack_space to new function.
13264 * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
13266 2016-07-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13268 * config/s390/s390.c (s390_encode_section_info): Always set
13269 notaligned marker if mode size is 0 or no MEM_ALIGN info could be
13272 2016-07-18 Richard Biener <rguenther@suse.de>
13274 PR tree-optimization/71893
13275 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
13276 for sizetype cast added by array_ref_element_size.
13277 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
13279 2016-07-16 John David Anglin <danglin@gcc.gnu.org>
13281 * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
13282 register parameters. Remove code to initialize argument pointer
13283 on TARGET_64BIT. Optimize call to _mcount when it can be reached
13284 using a pc-relative branch. Cleanup conditional code.
13285 * config/pa/pa.md (call_mcount): New expander.
13286 (call_mcount_nonpic): New insn.
13287 (call_mcount_pic): New insn and split.
13288 (call_mcount_pic_post_reload): New insn.
13289 (call_mcount_64bit): New insn and split.
13290 (call_mcount_64bit_post_reload): New insn.
13292 2016-07-15 Georg-Johann Lay <avr@gjlay.de>
13294 * config/avr/predicates.md (const_m255_to_m1_operand): New.
13295 * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
13296 * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
13297 (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
13298 (*usum_widenqihi3, *udiff_widenqihi3)
13299 (*addhi3_zero_extend.const): New combiner insns.
13300 (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
13301 just 1 bit is affected.
13302 * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
13303 (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
13305 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
13307 * omp-low.c (lower_omp_target): Mark data clauses with
13308 GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
13309 zero-length subarrays.
13311 2016-07-15 Richard Biener <rguenther@suse.de>
13313 PR tree-optimization/71881
13314 * tree-loop-distribution.c (destroy_loop): Remove blocks in
13315 reverse DOM order to make debug temp generation happy.
13317 2016-07-15 Richard Biener <rguenther@suse.de>
13319 PR tree-optimization/71887
13320 * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
13321 verify it is not zero for division / modulo handling.
13322 (value_replacement): Adjust.
13324 2016-07-15 Virendra Pathak <virendra.pathak@broadcom.com>
13325 Julian Brown <julian@codesourcery.com>
13327 * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
13328 * config/aarch64/aarch64-cost-tables.h
13329 (vulcan_extra_costs): New variable.
13330 * config/aarch64/aarch64.c
13331 (vulcan_addrcost_table): Likewise.
13332 (vulcan_regmove_cost): Likewise.
13333 (vulcan_vector_cost): Likewise.
13334 (vulcan_branch_cost): Likewise.
13335 (vulcan_tunings): Likewise.
13337 2016-07-15 Alexander Monakov <amonakov@ispras.ru>
13339 * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
13340 (output_in_order): Loop over undefined variables too. Output them
13341 via assemble_undefined_decl. Skip variables that correspond to hard
13342 registers or have value-exprs.
13343 * varpool.c (symbol_table::output_variables): Handle undefined
13344 variables together with defined ones.
13346 2016-07-15 Richard Biener <rguenther@suse.de>
13348 * tree-ssa-pre.c (get_representative_for): Make sure to return
13349 the value number of SSA names.
13350 (phi_translate_1): get_representative_for cannot return NULL.
13351 (do_pre_regular_insertion): Remove redundant call to
13352 fully_constant_expression.
13353 (do_pre_partial_partial_insertion): Likewise.
13355 2016-07-15 Bin Cheng <bin.cheng@arm.com>
13357 * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
13358 (derive_simple_iv_with_niters): New function.
13359 (simple_iv): Rewrite using simple_iv_with_niters.
13360 * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
13361 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
13363 (number_of_iterations_exit): Rewrite using above function.
13364 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
13367 2016-07-15 Richard Biener <rguenther@suse.de>
13369 * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
13370 vec_construct cost.
13372 2016-07-14 Jakub Jelinek <jakub@redhat.com>
13374 PR tree-optimization/71872
13375 * tree-data-ref.c (get_references_in_stmt): Ignore references
13376 with is_gimple_constant get_base_address.
13378 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
13380 * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
13381 (TARGET_HAVE_LDACQD): New macro.
13382 * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
13383 than TARGET_HAVE_LDACQ.
13384 (arm_load_acquire_exclusivedi): Likewise.
13385 (arm_store_release_exclusivedi): Likewise.
13387 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
13389 PR rtl-optimization/71878
13390 * lra-constraints.c (match_reload): Pass information about other
13391 output operands. Create new unique register value if matching input
13392 operand shares same register value as output operand being considered.
13393 (curr_insn_transform): Record output operands already processed.
13395 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13398 PR tree-optimization/70923
13399 * tree-vect-patterns.c: Include mult-synthesis.h.
13400 (target_supports_mult_synth_alg): New function.
13401 (synth_lshift_by_additions): Likewise.
13402 (apply_binop_and_append_stmt): Likewise.
13403 (vect_synth_mult_by_constant): Likewise.
13404 (target_has_vecop_for_code): Likewise.
13405 (vect_recog_mult_pattern): Use above functions to synthesize vector
13406 multiplication by integer constants.
13408 2016-07-14 Alan Modra <amodra@gmail.com>
13410 * config/rs6000/altivec.md (altivec_mov<mode>): Disparage
13411 gpr alternatives. Correct '*' placement on Y,r alternative.
13412 Add '*' on operand 1 of r,r alternative.
13414 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13416 * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
13417 * expmed.h: ... Here.
13419 2016-07-14 Jan Hubicka <hubicka@ucw.cz>
13421 * gimple.h (stmt_can_terminate_bb_p): New function.
13422 * tree-cfg.c (need_fake_edge_p): Rename to ...
13423 (stmt_can_terminate_bb_p): ... this; return true if stmt can
13424 throw external; handle const and pure calls.
13425 * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
13427 2016-07-14 Richard Biener <rguenther@suse.de>
13429 PR tree-optimization/71866
13430 * tree-ssa-pre.c (get_constant_for_value_id): Remove.
13431 (do_hoist_insertion): Avoid endless recursion when we
13432 didn't insert anything because we managed to simplify
13433 things down to a constant or SSA name.
13434 (fully_constant_expression): Re-write in terms of ...
13435 * tree-ssa-sccvn.h (vn_nary_simplify): ... this. Declare.
13436 * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
13437 vn_nary_build_or_lookup_1.
13438 (vn_nary_build_or_lookup_1): Added flag and renamed from ...
13439 (vn_nary_build_or_lookup): ... this which now wraps it.
13441 2016-07-14 Alan Modra <amodra@gmail.com>
13444 * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
13445 with p9_vector override before power9-dform override.
13447 2016-07-13 Andi Kleen <ak@linux.intel.com>
13449 * value-prof.c (gimple_value_profile_transformations): Don't run
13450 when auto_profile is on.
13452 2016-07-13 Andi Kleen <ak@linux.intel.com>
13454 * auto-profile.c (update_inlined_ind_target,
13455 afdo_indirect_call): Print information to dump file.
13457 2016-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
13459 * genrecog.c (special_predicate_operand_p): New function.
13460 (predicate_name): Move function.
13461 (validate_pattern): Don't warn about missing mode for all
13462 define_special_predicate predicates.
13464 2016-07-13 Bin Cheng <bin.cheng@arm.com>
13466 * tree-vect-data-refs.c (vect_no_alias_p): New function.
13467 (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
13468 resolve alias checks which are known at compilation time.
13469 Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
13470 alias checks are resolved. Move dump info for too many runtime
13471 alias checks to here...
13472 * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
13474 2016-07-13 Richard Biener <rguenther@suse.de>
13476 PR tree-optimization/24574
13477 * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
13478 position and add shift, rotate, divison and modulo support
13480 (value_replacement): Pass in argument position to absorbing_element_p.
13482 2016-07-13 Ilya Enkovich <ilya.enkovich@intel.com>
13485 * ipa-inline-transform.c (inline_call): Support
13486 instrumented thunks.
13488 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
13490 * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
13491 (TARGET_IDIV): Set for all Thumb targets provided they have hardware
13493 * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
13494 Baseline. Make initial alternative TARGET_32BIT only.
13495 (udivsi3): Likewise.
13496 * config/arm/thumb1.md (thumb1_cbz): New define_insn.
13497 * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
13500 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
13502 * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
13503 * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
13504 availability with TARGET_HAVE_MOVT.
13505 (thumb_legitimate_constant_p): Strip the high part of a label_ref.
13506 (thumb1_rtx_costs): Also return 0 if setting a half word constant and
13507 MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
13509 (thumb1_size_rtx_costs): Make set of half word constant also cost 1
13510 extra instruction if MOVW is available. Use a cost variable
13511 incremented by COSTS_N_INSNS (1) when the condition match rather than
13512 returning an arithmetic expression based on COSTS_N_INSNS. Make
13513 constant with bottom half word zero cost 2 instruction if MOVW is
13515 * config/arm/arm.md (define_attr "arch"): Add v8mb.
13516 (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
13517 target is ARMv8-M Baseline.
13518 (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
13519 (arm_movtas_ze): Likewise.
13520 * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
13521 alternative for constants satisfying j constraint.
13522 (thumb1_movsi_insn): Likewise.
13523 (movsi splitter for K alternative): Tighten condition to not trigger
13524 if movt is available and j constraint is satisfied.
13525 (Pe immediate splitter): Likewise.
13526 (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
13527 constant fitting in an halfword to use MOVW.
13528 * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
13531 2016-07-13 Richard Biener <rguenther@suse.de>
13533 PR middle-end/71104
13534 * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
13535 gimplifying the LHS. Make sure to gimplify a returning twice
13536 call LHS without using SSA names.
13538 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13540 * tree-data-ref.c (find_data_references_in_stmt): Remove
13541 unnecessary call to vec::release.
13542 (graphite_find_data_references_in_stmt): Likewise.
13543 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
13544 * tree-vect-stmts.c (vectorizable_condition): Likewise.
13546 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13548 * cfgexpand.c (expand_used_vars): Make the type of a local
13550 * genmatch.c (lower_for): Likewise.
13551 * haifa-sched.c (haifa_sched_init): Likewise.
13552 (add_to_speculative_block): Likewise.
13553 (create_check_block_twin): Likewise.
13554 * predict.c (handle_missing_profiles): Likewise.
13555 * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
13556 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
13557 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
13559 (maybe_lower_iteration_bound): Likewise.
13560 * tree-ssa-sccvn.c (DFS): Likewise.
13561 * tree-stdarg.c (reachable_at_most_once): Likewise.
13562 * tree-vect-stmts.c (vectorizable_conversion): Likewise.
13563 (vectorizable_store): Likewise.
13565 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13567 * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
13568 (sccvn_dom_walker): make cond_stack an auto_vec.
13570 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13572 * ree.c (struct ext_state): Make type of members auto_vec.
13573 (find_and_remove_re): Adjust.
13575 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13577 * cfgexpand.c (struct stack_vars_data): Make type of fields
13579 (expand_used_vars): Adjust.
13581 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13583 * ipa.c (record_cdtor_fn): Adjust.
13584 (build_cdtor_fns): Likewise.
13585 (ipa_cdtor_merge): Make static_ctors and static_dtors local
13588 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13590 * genextract.c (struct accum_extract): Add constructor and make
13592 (gen_insn): Adjust.
13594 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13596 * tree.c (struct free_lang_data_d): Add constructor and change
13597 types of members to ones that automatically manage resources.
13598 (fld_worklist_push): Adjust.
13599 (find_decls_types): Likewise.
13600 (find_decls_types_in_eh_region): Likewise.
13601 (free_lang_data_in_cgraph): Stop manually creating and
13602 destroying members of free_lang_data_d.
13604 2016-07-13 Uros Bizjak <ubizjak@gmail.com>
13606 PR rtl-optimization/68961
13607 * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
13608 peephole variant. Use sse_reg_operand predicates.
13610 2016-07-12 Uros Bizjak <ubizjak@gmail.com>
13612 * config/i386/predicates.md (x86_64_immediate_operand)
13613 <case CONST_INT>: Remove unneeded truncation to DImode.
13614 <case CONST>: Ditto.
13615 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
13617 2016-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
13620 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
13621 The xxperm and xxpermr instructions require that the 2nd input
13622 operand overlap with the output operand, and not the 1st.
13623 (altivec_vperm_v8hiv16qi): Likewise.
13624 (altivec_vperm_<mode>_uns_internal): Likewise.
13625 (altivec_vpermr_<mode>_internal): Likewise.
13626 (vperm_v8hiv4si): Likewise.
13627 (vperm_v16qiv8hi): Likewise.
13629 2016-07-12 Nathan Sidwell <nathan@acm.org>
13631 * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
13632 when -mno-pic-data-is-text-relative is in effect, by default.
13633 * doc/invoke.texi (mpic-data-is-text-relative): Document new
13634 behavior and clarify.
13636 2016-07-12 Martin Liska <mliska@suse.cz>
13638 * params.def: Add avg-loop niter.
13639 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
13640 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
13641 * doc/invoke.texi: Document the new parameter.
13643 2016-07-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13645 PR middle-end/71700
13646 * expr.c (store_constructor): Mask sign-extended bits when widening
13647 sub-word constructor element at the start of a word.
13649 2016-07-12 Martin Liska <mliska@suse.cz>
13651 * Makefile.in: Append rule for params-options.h.
13652 * params-options.h: New file.
13654 2016-07-12 Martin Liska <mliska@suse.cz>
13656 * ira-build.c (mark_loops_for_removal): Properly iterate
13659 2016-07-12 Steven Bosscher <steven@gcc.gnu.org>
13660 Richard Biener <rguenther@suse.de>
13662 PR tree-optimization/23286
13663 PR tree-optimization/70159
13664 * doc/invoke.texi: Document -fcode-hoisting.
13665 * common.opt (fcode-hoisting): New flag.
13666 * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
13667 * tree-ssa-pre.c (pre_stats): Add hoist_insert.
13668 (do_regular_insertion): Rename to ...
13669 (do_pre_regular_insertion): ... this and amend general comments
13670 on insertion strathegy.
13671 (do_partial_partial_insertion): Rename to ...
13672 (do_pre_partial_partial_insertion): ... this.
13673 (do_hoist_insertion): New function.
13674 (insert_aux): Take flags on whether to do PRE and/or hoist insertion
13675 and call do_hoist_insertion properly.
13677 (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
13678 (pass_pre::execute): Register hoist_insert stats.
13680 2016-07-12 Jakub Jelinek <jakub@redhat.com>
13682 PR middle-end/71716
13683 * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
13684 for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
13685 is different from mode's bitsize. Small cleanup.
13687 2016-07-12 Richard Biener <rguenther@suse.de>
13689 PR rtl-optimization/68961
13690 * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
13691 to simplify to a non-constant.
13693 2016-07-11 Jakub Jelinek <jakub@redhat.com>
13695 PR middle-end/71758
13696 * omp-low.c (expand_omp_target): Gimplify device.
13698 PR tree-optimization/71823
13699 * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
13700 to get vec_oprnds2 from op2.
13702 2016-07-11 Uros Bizjak <ubizjak@gmail.com>
13704 * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
13705 Hoist common subexpressions.
13706 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
13708 2016-07-11 Pat Haugen <pthaugen@us.ibm.com>
13711 * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
13712 prevent generation of 'stxsiwx' on pre Power8 hardware.
13714 2016-07-11 David Malcolm <dmalcolm@redhat.com>
13716 * input.c: Include cpplib.h.
13717 (selftest::temp_source_file): New class.
13718 (selftest::temp_source_file::temp_source_file): New ctor.
13719 (selftest::temp_source_file::~temp_source_file): New dtor.
13720 (selftest::should_have_column_data_p): New function.
13721 (selftest::test_should_have_column_data_p): New function.
13722 (selftest::temp_line_table): New class.
13723 (selftest::temp_line_table::temp_line_table): New ctor.
13724 (selftest::temp_line_table::~temp_line_table): New dtor.
13725 (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
13726 it to create a temp_line_table.
13727 (selftest::assert_loceq): Only verify LOCATION_COLUMN for
13728 locations that are known to have column data.
13729 (selftest::line_table_case): New struct.
13730 (selftest::test_reading_source_line): Move tempfile handling
13731 to class temp_source_file.
13732 (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
13733 (selftest::assert_token_loc_eq): New function.
13734 (ASSERT_TOKEN_LOC_EQ): New macro.
13735 (selftest::test_lexer): New function.
13736 (selftest::boundary_locations): New array.
13737 (selftest::input_c_tests): Call test_should_have_column_data_p.
13738 Loop over a test matrix of interesting values of location and
13739 default_range_bits, calling test_lexer on each case in the matrix.
13740 Move call to test_accessing_ordinary_linemaps into the matrix.
13741 * selftest.h (ASSERT_EQ): Reimplement in terms of...
13742 (ASSERT_EQ_AT): New macro.
13744 2016-07-11 H.J. Lu <hongjiu.lu@intel.com>
13747 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
13748 Don't convert TImode in debug insn.
13750 2016-07-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
13752 Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
13753 * tree-core.h (tree_base::nothrow_flag): Adjust comment.
13754 (tree_type_common::lang_flag_7): New.
13755 (tree_type_common::spare): Reduce size.
13756 * tree.h (TYPE_ALIGN_OK): Remove.
13757 (TYPE_LANG_FLAG_7): New.
13758 (get_inner_reference): Adjust header.
13759 * print-tree.c (print_node): Adjust.
13760 * expr.c (get_inner_reference): Remove parameter keep_aligning.
13761 (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
13762 calls to get_inner_reference.
13763 (expand_expr_real_1): Adjust call to get_inner_reference. Remove
13764 handling of TYPE_ALIGN_OK.
13765 * builtins.c (get_object_alignment_2): Adjust call to
13766 get_inner_reference. Remove handling of VIEW_CONVERT_EXPR.
13767 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
13769 * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
13770 * cfgexpand.c (expand_debug_expr): Likewise.
13771 * dbxout.c (dbxout_expand_expr): Likewise.
13772 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
13773 loc_list_from_tree, fortran_common): Likewise.
13774 * fold-const.c (optimize_bit_field_compare,
13775 decode_field_reference, fold_unary_loc, fold_comparison,
13776 split_address_to_core_and_offset): Likewise.
13777 * gimple-laddress.c (execute): Likewise.
13778 * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
13779 * gimplify.c (gimplify_scan_omp_clauses): Likewise.
13780 * hsa-gen.c (gen_hsa_addr): Likewise.
13781 * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
13782 * tsan.c (instrument_expr): Likewise.
13783 * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
13784 * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
13785 * tree-affine.c (tree_to_aff_combination,
13786 get_inner_reference_aff): Adjust calls to get_inner_reference.
13787 * tree-data-ref.c (split_constant_offset_1,
13788 dr_analyze_innermost): Likewise.
13789 * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
13790 * tree-sra.c (ipa_sra_check_caller): Likewise.
13791 * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
13792 * tree-ssa-math-opts.c (find_bswap_or_nop_load,
13793 bswap_replace): Likewise.
13794 * tree-vect-data-refs.c (vect_check_gather,
13795 vect_analyze_data_refs): Likewise.
13796 * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
13797 * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
13800 2016-07-11 David Malcolm <dmalcolm@redhat.com>
13802 * Makefile.in (selftest-valgrind): New phony target.
13803 * function-tests.c (selftest::build_cfg): Delete pass instances
13804 created by the test.
13805 (selftest::convert_to_ssa): Likewise.
13806 (selftest::test_expansion_to_rtl): Likewise.
13807 * tree-cfg.c (selftest::test_linear_chain): Release dominator
13809 (selftest::test_diamond): Likewise.
13811 2016-07-11 Richard Biener <rguenther@suse.de>
13813 PR tree-optimization/71816
13814 * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
13815 than replacing all of its operands.
13817 2016-07-11 Alan Modra <amodra@gmail.com>
13819 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
13820 (ctr<mode>): Add unspec.
13821 (ctr<mode>_internal*): Likewise.
13823 2016-07-08 James Bowman <james.bowman@ftdichip.com>
13825 * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
13826 * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
13828 2016-07-08 Vladimir Makarov <vmakarov@redhat.com>
13830 PR rtl-optimization/71621
13831 * lra-constraints.c (process_alt_operands): Check combination of
13832 reg class and mode.
13834 2016-07-08 Jason Merrill <jason@redhat.com>
13835 Richard Biener <rguenther@suse.de>
13837 P0145: Refining Expression Order for C++.
13838 * gimplify.c (initial_rhs_predicate_for): New.
13839 (gimplfy_modify_expr): Gimplify RHS before LHS.
13841 2016-07-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13844 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13845 Allow standard error handling to take over when a wrong number
13846 of arguments is presented to __builtin_vec_ld () or
13847 __builtin_vec_st ().
13849 2016-07-08 Jiong Wang <jiong.wang@arm.com>
13851 * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
13856 * config/aarch64/arm_neon.h (vmaxnm_f32): Use
13857 __builtin_aarch64_fmaxv2sf.
13858 (vmaxnmq_f32): Likewise.
13859 (vmaxnmq_f64): Likewise.
13860 (vminnm_f32): Likewise.
13861 (vminnmq_f32): Likewise.
13862 (vminnmq_f64): Likewise.
13864 2016-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
13867 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
13868 enable -mfloat128-hardware by default.
13869 (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
13870 that IEEE 128-bit hardware support needs.
13871 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
13872 -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
13873 Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
13874 floating point requires.
13875 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
13876 -mfloat128 and -mfloat128-hardware changes.
13878 2016-07-08 Alan Hayward <alan.hayward@arm.com>
13880 PR tree-optimization/71667
13881 * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
13883 2016-07-08 Martin Liska <mliska@suse.cz>
13885 PR middle-end/71606
13886 * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
13887 folding produces SAVE_EXPRs, thus return false for the type.
13889 2016-07-07 Martin Liska <mliska@suse.cz>
13891 * file-find.c (remove_prefix): New function.
13892 * file-find.h (remove_prefix): Declare the function.
13893 * gcc-ar.c (main): Skip a folder of the wrapper if
13894 a wrapped binary would point to the same file.
13896 2016-07-07 Jan Hubicka <jh@suse.cz>
13898 * tree-scalar-evolution.c (iv_can_overflow_p): export.
13899 * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
13900 * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
13902 2016-07-07 Ilya Enkovich <ilya.enkovich@intel.com>
13905 * ipa-inline-analysis.c (compute_inline_parameters): Set
13906 local.can_change_signature to false for intrumentation
13909 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
13911 * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
13912 with TARGET_HAVE_MOVT.
13913 (TARGET_HAVE_MOVT): Define.
13914 * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
13915 availability with TARGET_HAVE_MOVT.
13916 * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
13918 (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
13920 (symbol_refs movsi splitter): Remove TARGET_32BIT check.
13921 (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
13922 * config/arm/constraints.md (define_constraint "j"): Use
13923 TARGET_HAVE_MOVT to check MOVT availability.
13925 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
13927 * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
13929 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
13931 * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
13932 (armv8-m.main): Likewise.
13933 (armv8-m.main+dsp): Likewise.
13934 * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
13935 (FL_FOR_ARCH8M_MAIN): Likewise.
13936 * config/arm/arm-tables.opt: Regenerate.
13937 * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
13938 armv8-m.main+dsp to BE8_LINK_SPEC.
13939 * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
13940 (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
13941 * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
13942 Baseline and Mainline.
13943 (arm_option_override_internal): Also disable arm_restrict_it when
13944 !arm_arch_notm. Update comment for -munaligned-access to also cover
13946 (arm_file_start): Increase buffer size for printing architecture name.
13947 * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
13948 and armv8-m.main+dsp.
13949 (mno-unaligned-access): Clarify that this is disabled by default for
13950 ARMv8-M Baseline architectures as well.
13952 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
13954 * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
13955 decide whether to prevent some libgcc routines being included for some
13956 multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
13957 link between this condition and the one in
13958 libgcc/config/arm/lib1func.S.
13960 2016-07-07 Richard Biener <rguenther@suse.de>
13962 * tree-ssa-pre.c: Include alias.h.
13963 (compute_avail): If we have multiple VN_REFERENCEs with the
13964 same hashtable entry adjust that to make it a valid replacement
13965 for all of them with respect to alignment and aliasing
13966 when doing insertion.
13967 * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
13968 * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
13970 2016-07-06 Segher Boessenkool <segher@kernel.crashing.org>
13974 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
13975 *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
13978 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13980 * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
13981 (adjust_mems): Adjust.
13982 (adjust_insn): Likewise.
13983 (prepare_call_arguments): Likewise.
13985 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13987 * gcse.c (struct ls_expr): Make stores field a vector.
13988 (ldst_entry): Adjust.
13989 (free_ldst_entry): Likewise.
13990 (print_ldst_list): Likewise.
13991 (compute_ld_motion_mems): Likewise.
13992 (update_ld_motion_stores): Likewise.
13994 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13996 * gcse.c (struct ls_expr): Remove loads field.
13997 (ldst_entry): Adjust.
13998 (free_ldst_entry): Likewise.
13999 (print_ldst_list): Likewise.
14000 (compute_ld_motion_mems): Likewise.
14002 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14004 * store-motion.c (struct st_expr): Make antic_stores a vector.
14005 (st_expr_entry): Adjust.
14006 (free_st_expr_entry): Likewise.
14007 (print_store_motion_mems): Likewise.
14008 (find_moveable_store): Likewise.
14009 (compute_store_table): Likewise.
14010 (remove_reachable_equiv_notes): Likewise.
14011 (replace_store_insn): Likewise.
14012 (build_store_vectors): Likewise.
14014 2016-07-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14016 * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
14017 cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
14019 2016-07-06 Yuri Rumyantsev <ysrumyan@gmail.com>
14021 PR tree-optimization/71518
14022 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
14023 misalign also for outer loops with negative step.
14025 2016-07-06 Wilco Dijkstra <wdijkstr@arm.com>
14027 * config/arm/cortex-a53.md: Use final_presence_set for in-order.
14028 (cortex_a53_shift): Add mov_shift.
14029 (cortex_a53_shift_reg): Add new reservation for register shifts.
14030 (cortex_a53_alu): Remove bfm.
14031 (cortex_a53_alu_shift): Add bfm, remove mov_shift.
14032 (cortex_a53_alu_extr): Add new reservation for EXTR.
14033 (bypasses): Improve bypass modelling.
14035 2016-07-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
14038 * config/avr/avr.c (avr_asm_select_section): Strip off
14039 SECTION_DECLARED from flags when calling get_section.
14041 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
14043 * tree-vectorizer.h (vect_memory_access_type): Add
14044 VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
14045 * tree-vect-stmts.c (compare_step_with_zero): New function.
14046 (perm_mask_for_reverse): Move further up file.
14047 (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
14049 (get_negative_load_store_type): New function.
14050 (get_load_store_type): Call it. Add an ncopies argument.
14051 (vectorizable_mask_load_store): Update call accordingly and
14052 remove tests for negative steps.
14053 (vectorizable_store, vectorizable_load): Likewise. Handle new
14054 memory_access_types.
14056 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
14058 * tree-vectorizer.h (vect_memory_access_type): New enum.
14059 (_stmt_vec_info): Add a memory_access_type field.
14060 (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
14061 (vect_model_store_cost): Take an access type instead of a boolean.
14062 (vect_model_load_cost): Likewise.
14063 * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
14064 vect_model_store_cost and vect_model_load_cost.
14065 * tree-vect-stmts.c (vec_load_store_type): New enum.
14066 (vect_model_store_cost): Take an access type instead of a
14067 store_lanes_p boolean. Simplify tests.
14068 (vect_model_load_cost): Likewise, but for load_lanes_p.
14069 (get_group_load_store_type, get_load_store_type): New functions.
14070 (vectorizable_store): Use get_load_store_type. Record the access
14071 type in STMT_VINFO_MEMORY_ACCESS_TYPE.
14072 (vectorizable_load): Likewise.
14073 (vectorizable_mask_load_store): Likewise. Replace is_store
14074 variable with vls_type.
14076 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
14078 * tree-vectorizer.h (vect_grouped_load_supported): Add a
14079 single_element_p parameter.
14080 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
14081 Check the PR65518 case here rather than in vectorizable_load.
14082 * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
14083 * tree-vect-stmts.c (vectorizable_load): Likewise.
14085 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
14087 * tree-vectorizer.h (gather_scatter_info): New structure.
14088 (vect_check_gather_scatter): Return a bool rather than a decl.
14089 Replace return-by-pointer arguments with a single
14090 gather_scatter_info *.
14091 * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
14092 (vect_analyze_data_refs): Update call accordingly.
14093 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
14094 (vectorizable_mask_load_store): Likewise. Also record the
14095 offset dt and vectype in the gather_scatter_info.
14096 (vectorizable_store): Likewise.
14097 (vectorizable_load): Likewise.
14099 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
14101 * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
14102 strided groups, use the cost of N scalar accesses instead
14103 of ncopies vector accesses.
14104 (vect_model_load_cost): Likewise.
14106 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
14108 * tree-vect-stmts.c (vect_cost_group_size): Delete.
14109 (vect_model_store_cost): Avoid calling it. Use first_stmt_p
14110 variable to indicate when once-per-group costs are being used.
14111 (vect_model_load_cost): Likewise. Fix comment and misindented code.
14113 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
14115 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
14116 peeling-for-gaps condition.
14118 2016-07-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14120 * config/s390/s390.c (s390_expand_vec_init): Force initializer
14121 element to register if it doesn't match general_operand.
14123 2016-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
14124 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14126 * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
14128 * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
14129 * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
14130 (SIGNBIT): New mode iterator.
14131 (Fsignbit): New mode attribute.
14132 (signbit<mode>2): Change operand1 to match FLOAT128 instead of
14133 IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
14134 when direct moves are available.
14135 (signbit<mode>2_dm): New define_insn_and_split).
14136 (signbit<mode>2_dm2): New define_insn.
14138 2016-07-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14140 PR rtl-optimization/71594
14141 * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
14142 into subregs of appropriate mode before trying to emit a conditional
14145 2016-07-05 Jan Hubicka <jh@suse.cz>
14147 * tree-scalar-evolution.c (iv_can_overflow_p): New function.
14148 (simple_iv): Use it.
14150 2016-07-05 Jan Hubicka <jh@suse.cz>
14152 * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
14154 2016-07-05 Jiong Wang <jiong.wang@arm.com>
14156 * lra-constraints.c (process_alt_operands): Don't add spilling cost for
14159 2016-07-05 Jan Hubicka <jh@suse.cz>
14161 * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
14164 2016-07-05 Richard Biener <rguenther@suse.de>
14166 * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
14167 Handle empty else block.
14168 (is_feasible_trace): Likewise.
14169 (split_paths): Likewise.
14171 2016-07-05 Richard Biener <rguenther@suse.de>
14173 * tree-loop-distribution.c (distribute_loop): Fix issue with
14174 the cost model loop.
14176 2016-07-05 Christophe Lyon <christophe.lyon@linaro.org>
14178 * config/arm/neon-testgen.ml: Delete.
14179 * config/arm/neon.ml: Delete.
14181 2016-07-04 Jakub Jelinek <jakub@redhat.com>
14184 * tree.c (attribute_value_equal): Use get_attribute_name instead of
14185 directly using TREE_PURPOSE.
14187 2016-07-04 Jiong Wang <jiong.wang@arm.com>
14189 * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
14190 * config/aarch64/aarch64_neon.h: Likewise.
14191 * config/aarch64/arm_neon.h: Likewise.
14192 * config/aarch64/atomics.md: Likewise.
14193 * config/aarch64/aarch64-simd-builtins.def: Likewise.
14194 * doc/invoke.texi: Likewise.
14196 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
14198 * config/s390/s390.md: Add "z13" cpu_facility.
14199 ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
14200 * config/s390/predicates.md ("loc_operand"): New predicate for "load on
14201 condition" type instructions.
14203 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
14204 Jeff Law <law@redhat.com>
14206 * explow.c (allocate_dynamic_stack_space): Simplify knowing that
14207 MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
14209 2016-07-04 Yuri Rumyantsev <ysrumyan@gmail.com>
14211 * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
14212 permutation for TARGET_AVX512F.
14213 (ix86_expand_vec_one_operand_perm_avx512): New function.
14214 (expand_vec_perm_1): Invoke introduced function.
14215 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
14216 it may be not valid after vectorization.
14218 2016-07-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14221 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
14222 typo in comment. Only force to memory if it is a weak
14223 external reference.
14225 2016-07-04 Matthew Wahab <matthew.wahab@arm.com>
14226 Jiong Wang <jiong.wang@arm.com>
14228 * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
14229 * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
14230 (AARCH64_FL_F16): New.
14231 (AARCH64_FL_FOR_ARCH8_2): New.
14232 (AARCH64_ISA_8_2): New.
14233 (AARCH64_ISA_F16): New.
14234 (TARGET_FP_F16INST): New.
14235 (TARGET_SIMD_F16INST): New.
14236 * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
14237 ("fp"): Disabling "fp" also disables "fp16".
14238 * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
14239 Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
14240 and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
14241 * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
14243 2016-07-04 Jan Beulich <jbeulich@suse.com>
14245 * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
14247 2016-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
14250 * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
14251 the insns, use an insn form that does not adjust the offset on
14252 little endian systems.
14254 2016-07-01 Jan Beulich <jbeulich@suse.com>
14256 * varasm.c (get_variable_section): Validate initializer in
14257 named .bss-like sections.
14259 2016-07-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
14261 * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
14262 Exchange the order of the second and third operands in the vpermr
14263 instruction tmeplate.
14265 2016-07-01 Peter Bergner <bergner@vnet.ibm.com>
14268 * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
14269 Disallow TDmode values.
14271 2016-07-01 Alan Modra <amodra@gmail.com>
14273 PR rtl-optimization/71709
14274 * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
14275 being set, not referenced.
14277 2016-07-01 Yuri Rumyantsev <ysrumyan@gmail.com>
14279 PR tree-optimization/70729
14280 * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
14281 of loop since it can be not valid after transformation.
14283 2016-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14285 * config/arm/arm.c (thumb_reload_in_hi): Delete.
14286 * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
14288 2016-07-01 Eric Botcazou <ebotcazou@adacore.com>
14290 * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
14293 2016-06-30 Michael Meissner <meissner@linux.vnet.ibm.com>
14296 * config/rs6000/constraints.md (wY constraint): New constraint to
14297 match the requirements for the LXSD and STXSD instructions.
14298 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
14299 predicate to match the requirements for the LXSD and STXSD
14301 * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
14302 Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
14303 to make sure that the bottom 2 bits of offset are 0, the address
14304 form is offsettable, and no updating is done in the address mode.
14305 (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
14306 (movdi_internal32): Likewise
14307 (movdi_internal64): Likewise.
14309 2016-06-30 Jakub Jelinek <jakub@redhat.com>
14311 PR tree-optimization/71707
14312 * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
14313 strinfo even for ADDR_EXPR ptr.
14315 2016-06-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
14317 * config/rs6000/altivec.md (darn_32): Change the condition to
14318 TARGET_P9_MISC instead of TARGET_MODULO.
14319 (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
14320 condition expression.
14321 (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
14322 condition expression.
14323 * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
14324 (DFP_TEST): New code iterator.
14325 (dfptstsfi_<code>_mode>): New define_expand.
14326 (*dfp_sgnfcnc_<mode>): New define_insn.
14327 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
14328 definition next to BU_P9_MISC_1 definition and change the MASK
14329 value to RS6000_BTM_P9_MISC.
14330 (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
14331 (BU_P9_64BIT_MISC_0): Likewise.
14332 (BU_P9_DFP_MISC_0): New macro definition.
14333 (BU_P9_DFP_MISC_1): New macro definition.
14334 (BU_P9_DFP_MISC_2): New macro definition.
14335 (BU_P9_DFP_OVERLOAD_1): New macro definition.
14336 (BU_P9_DFP_OVERLOAD_2): New macro definition.
14337 (BU_P9_DFP_OVERLOAD_3): New macro definition.
14338 (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
14339 (TSTSFI_LT_TD): Likewise.
14340 (TSTSFI_EQ_DD): Likewise.
14341 (TSTSFI_EQ_TD): Likewise.
14342 (TSTSFI_GT_DD): Likewise.
14343 (TSTSFI_GT_TD): Likewise.
14344 (TSTSFI_OV_DD): Likewise.
14345 (TSTSFI_OV_TD): Likewise.
14346 (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
14347 (TSTSFI_LT_DD): Likewise.
14348 (TSTSFI_LT_TD): Likewise.
14349 (TSTSFI_EQ): Likewise.
14350 (TSTSFI_EQ_DD): Likewise.
14351 (TSTSFI_EQ_TD): Likewise.
14352 (TSTSFI_GT): Likewise.
14353 (TSTSFI_GT_DD): Likewise.
14354 (TSTSFI_GT_TD): Likewise.
14355 (TSTSFI_OV): Likewise.
14356 (TSTSFI_OV_DD): Likewise.
14357 (TSTSFI_OV_TD): Likewise.
14358 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14359 overloaded test significance functions.
14360 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
14361 OPTION_MASK_P9_MISC into the representation of this mask.
14362 (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
14364 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
14365 RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
14367 (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
14368 argument is a 6-bit unsigned literal value if the icode argument
14369 represents a DFP test significance built-in call.
14370 (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
14371 flag used independently and in combination with the
14372 RS6000_BTM_64BIT flag.
14373 (rs6000_opt_masks): Add entry for power9-misc command-line option.
14374 (rs6000_builtin_mask_names): Add entry for power9-misc
14375 command-line option.
14376 * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
14377 HAVE_AS_POWER9 is not a defined macro. Define MASK_P9_MISC and
14378 RS6000_BTM_P9_MISC macros.
14379 * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
14380 option and change the description of the -mpower9-vector option to
14381 enable only vector instructions, removing its erroneously claimed
14382 support for scalar instructions.
14383 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
14384 the ISA 3.0 digital floating point test significance built-in
14387 2016-06-30 Wilco Dijkstra <wdijkstr@arm.com>
14389 * config/aarch64/aarch64.c (cortexa35_tunings):
14390 Enable AES fusion. Use cortexa57_branch_cost.
14391 (cortexa53_tunings): Use cortexa57_branch_cost.
14392 (cortexa72_tunings): Use cortexa57_branch_cost.
14393 Use AUTOPREFETCHER_WEAK.
14394 (cortexa73_tunings): Use cortexa57_branch_cost.
14396 2016-06-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14397 James Greenhalgh <james.greenhalgh@arm.com>
14399 * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
14400 vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
14401 vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
14402 vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
14403 (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
14404 vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
14405 vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
14406 vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
14407 vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
14408 vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
14409 vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
14410 vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
14411 vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
14414 2016-06-30 James Greenhalgh <james.greenhalgh@arm.com>
14415 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14417 * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
14419 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
14421 2016-06-30 David Malcolm <dmalcolm@redhat.com>
14424 * gcc.c (driver::build_option_suggestions): Pass "option" to
14425 add_misspelling_candidates.
14426 * opts-common.c (add_misspelling_candidates): Add "option" param;
14427 use it to avoid adding negated forms for options marked with
14429 * opts.h (add_misspelling_candidates): Add "option" param.
14431 2016-06-30 Jakub Jelinek <jakub@redhat.com>
14433 PR middle-end/71693
14434 * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
14435 TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
14436 first when permuting bitwise operation with rotate. Cast
14437 TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
14439 2016-06-29 David Malcolm <dmalcolm@redhat.com>
14441 * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
14442 for misspelled param names.
14443 * params.c: Include spellcheck.h.
14444 (find_param_fuzzy): New function.
14445 * params.h (find_param_fuzzy): New prototype.
14446 * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
14447 * spellcheck.h (struct edit_distance_traits<const char *>):
14450 2016-06-29 Michael Meissner <meissner@linux.vnet.ibm.com>
14452 * config/rs6000/predicates.md (const_0_to_7_operand): New
14453 predicate, recognize 0..7.
14454 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
14455 support for doing extracts from V16QImode, V8HImode, V4SImode
14457 * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
14458 vector extract support.
14459 (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
14460 for ISA 3.0 vector extract.
14461 (VSX_EX): Constraints to use for ISA 3.0 vector extract.
14462 (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
14463 extracts of a constant element number from small integer vectors
14464 on 64-bit ISA 3.0 systems.
14465 (vsx_extract_<mode>_di): Likewise.
14466 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
14467 say when we can do ISA 3.0 vector extracts.
14468 * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
14469 registers, using the stxsiwx instruction.
14471 2016-06-29 Jim Wilson <jim.wilson@linaro.org>
14473 * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
14474 * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
14475 qdf24xx_regmove_cost, qdf24xx_tunings): New.
14476 * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
14477 * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
14478 * config/arm/arm.c (arm_qdf24xx_tune): New.
14480 2016-06-29 Wilco Dijkstra <wdijkstr@arm.com>
14482 * config/aarch64/aarch64.c (cortexa53_tunings):
14483 Increase loop alignment to 8. Set function alignment to 16.
14484 (cortexa35_tunings): Likewise.
14485 (cortexa57_tunings): Increase loop alignment to 8.
14486 (cortexa72_tunings): Likewise.
14487 (cortexa73_tunings): Likewise.
14489 2016-06-29 Matthew Wahab <matthew.wahab@arm.com>
14491 * doc/sourcebuild.texi (Effective-Target keywords): Add entries
14492 for arm_fp16_ok and arm_fp16_hw.
14493 (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
14494 arm_fp16_alternative.
14496 2016-06-29 Ilya Enkovich <ilya.enkovich@intel.com>
14498 PR tree-optimization/71655
14499 * tree-vect-stmts.c (vectorizable_comparison): Swap definition
14500 types when swapping operands.
14502 2016-06-29 Martin Liska <mliska@suse.cz>
14504 PR middle-end/71585
14505 * common.opt (flag_stack_protect): Mark the flag as optimization flag.
14506 * ipa-inline-transform.c (inline_call): Remove unnecessary call
14507 of build_optimization_node.
14509 2016-06-29 Yuri Rumyantsev <ysrumyan@gmail.com>
14511 PR tree-optimization/70729
14512 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
14513 independent in loops having positive safelen value.
14514 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
14515 it may be not valid after vectorization.
14517 2016-06-29 Jakub Jelinek <jakub@redhat.com>
14519 PR tree-optimization/71625
14520 * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument. Assume list
14521 is sorted by ascending list->offset. If PTR is non-NULL and there is
14522 previous strinfo, call get_stridx_plus_constant.
14523 (get_stridx): Pass exp as second argument to get_addr_stridx.
14524 (addr_stridxptr): Add missing list = list->next, so that there can be
14525 more than one entries in the list. Bump limit from 16 to 32. Ensure
14526 the list is sorted by ascending list->offset.
14527 (get_stridx_plus_constant): Adjust so that it can be also called with
14528 ADDR_EXPR instead of SSA_NAME as PTR.
14529 (handle_char_store): Pass NULL_TREE as second argument to
14532 2016-06-29 Richard Biener <rguenther@suse.de>
14534 PR rtl-optimization/68961
14535 * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
14537 2016-06-29 Richard Biener <rguenther@suse.de>
14539 PR middle-end/71002
14540 * alias.c (component_uses_parent_alias_set_from): Handle
14541 type punning through union accesses by using the union alias set.
14542 * gimple.c (gimple_get_alias_set): Remove union type punning case.
14544 2016-07-29 Richard Biener <rguenther@suse.de>
14546 * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
14547 precision not matching mode precision.
14549 2016-06-28 John David Anglin <danglin@gcc.gnu.org>
14551 * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
14552 pa_output_arg_descriptor.
14553 (call_val_symref_64bit_post_reload): Likewise.
14554 (call_val_powf_64bit_post_reload): Likewise.
14555 (sibcall_internal_symref_64bit): Likewise.
14556 (sibcall_value_internal_symref_64bit): Likewise.
14558 2016-06-28 Jakub Jelinek <jakub@redhat.com>
14560 PR middle-end/71626
14561 * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
14562 a constant, force its SUBREG_REG into memory or register instead
14565 2016-06-28 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
14568 * config/avr/avr.opt (-mfract-convert-truncate): Update description.
14569 * doc/invoke.texi (AVR Options): Document it.
14571 2016-06-28 Walter Lee <walt@tilera.com>
14573 * config/tilegx/linux.h: Do not include arch/icache.h
14574 (CLEAR_INSN_CACHE): Provide inlined definition directly.
14575 * config/tilepro/linux.h: Do not include arch/icache.h
14576 (CLEAR_INSN_CACHE): Provide inlined definition directly.
14578 2016-06-28 Wilco Dijkstra <wdijkstr@arm.com>
14580 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
14581 for big-endian BIT_FIELD_REF.
14583 2016-06-28 Pat Haugen <pthaugen@us.ibm.com>
14585 * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
14586 ('size' attribute): Add '128'.
14588 (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
14589 *movdi_internal64, *movdf_update1): Set size attribute to '64'.
14590 (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
14591 copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
14592 *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
14593 extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
14594 *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
14595 *trunc<mode>df2_odd): Set size attribute to '128'.
14596 (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
14597 * config/rs6000/power6.md (power6-fp): Include dfp type.
14598 * config/rs6000/power7.md (power7-fp): Likewise.
14599 * config/rs6000/power8.md (power8-fp): Likewise.
14600 * config/rs6000/power9.md: New file.
14601 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
14602 * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
14603 *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
14605 * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
14606 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
14607 divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
14608 ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
14609 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
14610 dfp_dscri_<mode>): Change type attribute to dfp.
14611 * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
14612 attribute to vecsimple.
14613 * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
14614 and prefetch streams.
14615 (rs6000_option_override_internal): Remove temporary code setting
14616 tuning to power8. Don't set rs6000_sched_groups for power9.
14617 (last_scheduled_insn): Change to rtx_insn *.
14618 (divide_cnt, vec_load_pendulum): New variables.
14619 (rs6000_adjust_cost): Add Power9 to test for store->load separation.
14620 (rs6000_issue_rate): Set issue rate for Power9.
14621 (is_power9_pairable_vec_type): New.
14622 (power9_sched_reorder2): New.
14623 (rs6000_sched_reorder2): Call new function for Power9 specific
14625 (insn_must_be_first_in_group): Remove Power9.
14626 (insn_must_be_last_in_group): Likewise.
14627 (force_new_group): Likewise.
14628 (rs6000_sched_init): Fix initialization of last_scheduled_insn.
14629 Initialize divide_cnt/vec_load_pendulum.
14630 (_rs6000_sched_context, rs6000_init_sched_context,
14631 rs6000_set_sched_context): Handle context save/restore of new
14634 2016-06-28 Richard Biener <rguenther@suse.de>
14636 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
14637 Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
14638 COMPONENT_REF operand.
14639 (nonoverlapping_component_refs_p): Likewise.
14640 * stor-layout.c (start_bitfield_representative): Mark
14641 DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
14643 2016-06-28 Jakub Jelinek <jakub@redhat.com>
14645 * Makefile.in: Don't cat ../stage_current if it does not exist.
14647 * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
14648 last argument is a bit-field.
14650 PR rtl-optimization/71673
14651 * internal-fn.c (expand_arith_overflow_result_store): Use
14652 OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
14653 expand_simple_binop.
14655 PR middle-end/66867
14656 * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
14657 expand_ifn_atomic_compare_exchange): New functions.
14658 * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
14659 * tree.h (build_call_expr_internal_loc): Rename to ...
14660 (build_call_expr_internal_loc_array): ... this. Fix up type of
14662 * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
14663 * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
14664 ATOMIC_COMPARE_EXCHANGE result.
14665 * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
14666 * gimple-fold.h (optimize_atomic_compare_exchange_p,
14667 fold_builtin_atomic_compare_exchange): New prototypes.
14668 * gimple-fold.c (optimize_atomic_compare_exchange_p,
14669 fold_builtin_atomic_compare_exchange): New functions..
14670 * tree-ssa.c (execute_update_addresses_taken): If
14671 optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
14672 of call when finding addressable vars, and if such var becomes
14673 non-addressable, call fold_builtin_atomic_compare_exchange.
14675 2016-06-27 Segher Boessenkool <segher@kernel.crashing.org>
14678 * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
14679 gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
14681 2016-06-27 Pat Haugen <pthaugen@us.ibm.com>
14683 * config/rs6000/rs6000.md ('type' attribute): Add
14684 veclogical,veccmpfx,vecexts,vecmove insn types.
14685 (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
14686 copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
14687 p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
14688 (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
14689 *nabs<mode>2_hw): Change type to vecmove.
14690 (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
14691 *boolcc<mode>3_internal, *eqv<mode>3_internal,
14692 *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
14693 *ieee_128bit_vsx_abs<mode>2_internal,
14694 *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
14695 *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
14696 *ieee128_mtvsrd_32bit): Change type to veclogical.
14697 (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
14698 *movdi_internal32, *movdi_internal64): Update insn types.
14699 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
14700 vsx_extract_<mode>): Change type to veclogical.
14701 (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
14702 (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
14703 *vsx_sign_extend_si_v2di): Change type to vecexts.
14704 * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
14705 type to veclogical.
14706 (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
14707 *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
14708 *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
14709 (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
14710 * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
14711 negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
14712 * config/rs6000/40x.md (ppc405-float): Add fpsimple.
14713 * config/rs6000/440.md (ppc440-fp): Add fpsimple.
14714 * config/rs6000/476.md (ppc476-fp): Add fpsimple.
14715 * config/rs6000/601.md (ppc601-fp): Add fpsimple.
14716 * config/rs6000/603.md (ppc603-fp): Add fpsimple.
14717 * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
14718 * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
14719 (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
14720 * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
14721 (ppc7450-vecsimple): Add veclogical, vecmove.
14722 (ppc7450-veccmp): Add veccmpfx.
14723 * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
14725 (ppc8540_vector_compare): Add veccmpfx.
14726 * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
14727 * config/rs6000/cell.md (cell-fp): Add fpsimple.
14728 (cell-vecsimple): Add veclogical, vecmove.
14729 (cell-veccmp): Add veccmpfx.
14730 * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
14731 * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
14733 * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
14734 * config/rs6000/power4.md (power4-fp): Add fpsimple.
14735 (power4-vecsimple): Add veclogical, vecmove.
14736 (power4-veccmp): Add veccmpfx.
14737 * config/rs6000/power5.md (power5-fp): Add fpsimple.
14738 * config/rs6000/power6.md (power6-fp): Add fpsimple.
14739 (power6-vecsimple): Add veclogical, vecmove.
14740 (power6-veccmp): Add veccmpfx.
14741 * config/rs6000/power7.md (power7-fp): Add fpsimple.
14742 (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
14743 * config/rs6000/power8.md (power8-fp): Add fpsimple.
14744 (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
14745 * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
14746 * config/rs6000/titan.md (titan_fp): Add fpsimple.
14747 * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
14749 * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
14751 2016-06-27 Peter Bergner <bergner@vnet.ibm.com>
14754 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
14755 OPTION_MASK_P9_DFORM_VECTOR.
14756 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
14757 disable -mpower9-dform-vector when using reload.
14758 (quad_address_p): Remove 'gpr_p' argument and all associated code.
14759 New 'strict' argument. Update all callers. Add strict addressing
14761 (rs6000_legitimate_offset_address_p): Remove call to
14762 virtual_stack_registers_memory_p.
14763 (rs6000_legitimize_reload_address): Add quad address support.
14764 (rs6000_legitimate_address_p): Move call to quad_address_p above
14765 call to virtual_stack_registers_memory_p. Adjust quad_address_p args
14766 to account for new strict usage.
14767 (rs6000_output_move_128bit): Adjust quad_address_p args to account
14768 for new strict usage.
14769 * config/rs6000/predicates.md (quad_memory_operand): Likewise.
14771 2016-06-26 Uros Bizjak <ubizjak@gmail.com>
14778 * config/i386/i386.c (ix86_spill_class): Disable condition to
14779 always return NO_REGS.
14781 2016-06-26 Jan Hubicka <hubicka@ucw.cz>
14783 * predict.c: Include gimple-pretty-print.h
14784 (predicted_by_loop_heuristics_p): Check also
14785 PRED_LOOP_EXIT_WITH_RECURSION
14786 (predict_loops): Find self recursive calls and use special purpose
14787 predictors for them; dump log about decisions.
14788 (pass_profile::execute): Dump info about #of iterations.
14789 * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
14790 (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
14792 2016-06-26 John David Anglin <danglin@gcc.gnu.org>
14794 * config/pa/pa.c (pa_output_indirect_call): Rework to combine
14795 output_asm_insn calls and shorten long lines. Output .CALL
14796 argument descriptor using pa_output_arg_descriptor. Add various
14797 inline $$dyncall and other optimizations.
14798 (pa_attr_length_indirect_call): Adjust ordering and lengths.
14800 2016-06-25 Jakub Jelinek <jakub@redhat.com>
14802 PR tree-optimization/71643
14803 * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
14806 * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
14807 leak a bitmap if dep_bb is NULL.
14809 PR tree-optimization/71631
14810 * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
14811 to rewrite_expr_tree even if negate_result, move new_lhs var
14812 declaration and initialization earlier, for powi_result set afterwards
14813 new_lhs to lhs. For negate_result, use new_lhs instead of tmp
14814 if new_lhs != lhs, and don't shadow gsi var.
14816 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
14818 * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
14819 Add in_loop parameter.
14820 (predict_loops): Add loop guard heuristics.
14821 * predict.def (PRED_LOOP_GUARD): New heuristics.
14823 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
14825 * predict.c: Include ipa-utils.h
14826 (tree_bb_level_prediction): Predict recursive calls.
14827 (tree_estimate_probability_bb): Skip inexpensive calls for call
14829 * predict.def (PRED_RECURSIVE_CALL): New.
14831 2016-06-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14833 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
14834 (BU_FLOAT128_1): Likewise.
14836 (COPYSIGNQ): Likewise.
14837 (RS6000_BUILTIN_NANQ): Likewise.
14838 (RS6000_BUILTIN_NANSQ): Likewise.
14839 (RS6000_BUILTIN_INFQ): Likewise.
14840 (RS6000_BUILTIN_HUGE_VALQ): Likewise.
14841 * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
14842 (TARGET_FOLD_BUILTIN): New #define.
14843 (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
14844 (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
14845 (rs6000_fold_builtin): New target hook implementation, handling
14846 folding of 128-bit NaNs and infinities.
14847 (rs6000_init_builtins): Initialize const_str_type_node; ensure all
14848 entries are filled in to avoid problems during bootstrap
14849 self-test; define builtins for 128-bit NaNs and infinities.
14850 (rs6000_opt_mask): Add entry for float128.
14851 * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
14852 (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
14853 (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
14854 (const_str_type_node): New #define.
14855 * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
14856 to a define_expand that dispatches to either copysign<mode>3_soft
14857 or copysign<mode>3_hard.
14858 (copysign<mode>3_hard): Rename from copysign<mode>3.
14859 (copysign<mode>3_soft): New define_insn.
14860 * doc/extend.texi: Document new builtins.
14862 2016-06-24 Jakub Jelinek <jakub@redhat.com>
14864 * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
14865 PRIu64 instead of lu.
14867 2016-06-24 Eric Botcazou <ebotcazou@adacore.com>
14870 * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
14871 copy the type name.
14873 2016-06-24 Jakub Jelinek <jakub@redhat.com>
14875 PR tree-optimization/71647
14876 * omp-low.c (lower_rec_input_clauses): Convert
14877 omp_clause_aligned_alignment (c) to size_type_node for the
14878 last argument of __builtin_assume_aligned.
14880 2016-06-24 H.J. Lu <hongjiu.lu@intel.com>
14882 * configure.ac (calling ___tls_get_addr via GOT): New
14883 assembler/linker check.
14884 (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New. Defined to 1 if 32-bit
14885 assembler and linker supports calling ___tls_get_addr via GOT.
14886 Otherise, defined to 0.
14887 * config.in: Regenerated.
14888 * configure: Likewise.
14889 * config/i386/constraints.md (Yb): New constraint.
14890 * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
14891 (REG_CLASS_NAMES): Likewise.
14892 (REG_CLASS_CONTENTS): Likewise.
14893 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
14894 the b constraint with the Yb constraint. Call ___tls_get_addr
14895 via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
14897 (*tls_local_dynamic_base_32_gnu): Likewise.
14898 (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
14899 GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
14900 (*tls_local_dynamic_base_64_<mode>): Likewise.
14902 2016-06-24 Martin Liska <mliska@suse.cz>
14904 * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
14905 * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
14907 * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
14908 argument to true if the expected number of iterations is
14911 2016-06-24 Uros Bizjak <ubizjak@gmail.com>
14913 * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
14914 assemble for 32bit target.
14915 (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
14916 and $ld_ix86_gld_32_opt to link for 32bit target.
14917 (HAVE_AS_IX86_TLSLDMPLT): Ditto.
14918 * configure: Regenerate.
14920 2016-06-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14922 * config/arm/arm.c (int_log2): Delete definition and prototype.
14923 (shift_op): Use exact_log2 instead of int_log2.
14924 (vfp3_const_double_for_fract_bits): Likewise.
14926 2016-06-24 Jakub Jelinek <jakub@redhat.com>
14928 * internal-fn.c (expand_arith_set_overflow): New function.
14929 (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
14931 (expand_arith_overflow_result_store): Likewise. Handle precision
14932 smaller than mode precision.
14933 * tree-vrp.c (extract_range_basic): For imag part, handle
14934 properly signed 1-bit precision result.
14935 * doc/extend.texi (__builtin_add_overflow): Document that last
14936 argument can't be pointer to enumerated or boolean type.
14937 (__builtin_add_overflow_p): Document that last argument can't
14938 have enumerated or boolean type.
14940 2016-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
14941 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14943 * config/rs6000/predicates.md (splat_input_operand): Rework.
14944 Don't allow constants, since the insns that use this predicate
14945 don't support constants. Constants are handled by other insns
14946 that are created via combine. During and after register
14947 allocation, only allow indexed or indirect addresses, and not
14948 general addresses. Only allow modes supported by the hardware.
14949 * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
14950 comment. Move check for using VSPLTIS<x> to a common location,
14951 instead of doing it in two different places.
14953 2016-06-23 Jocelyn Mayer <l_indien@magic.fr>
14955 * config/i386/driver-i386.c (host_detect_local_cpu): Set
14956 PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
14957 <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
14958 signature_CENTAUR_ebx.
14960 2016-06-23 H.J. Lu <hongjiu.lu@intel.com>
14964 * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
14965 (as_ix86_gas_32_opt): This.
14966 (ld_ix86_tls_ldm_opt): Renamed to ...
14967 (ld_ix86_gld_32_opt): This.
14968 (R_386_TLS_LDM reloc): Updated.
14969 (R_386_GOT32X reloc): New assembler/linker check.
14970 (HAVE_AS_IX86_GOT32X): New. Defined to 1 if 32-bit assembler and
14971 linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT". Otherise,
14973 * config.in: Regenerated.
14974 * configure: Likewise.
14975 * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
14976 true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
14977 (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
14978 if ix86_force_load_from_GOT_p returns true.
14979 (ix86_print_operand_address_as): Also support UNSPEC_GOT if
14980 ix86_force_load_from_GOT_p returns true.
14981 (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
14982 the external function address via the GOT slot.
14983 (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
14984 HAVE_AS_IX86_GOT32X before returning false.
14985 (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
14986 32-bit mode if ix86_nopic_noplt_attribute_p returns true.
14988 2016-06-23 Eric Botcazou <ebotcazou@adacore.com>
14990 * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
14992 2016-06-23 Andi Kleen <ak@linux.intel.com>
14994 * Makefile.in: Regenerate.
14995 * doc/install.texi: Document autoprofiledbootstrap.
14997 2016-06-23 Andi Kleen <ak@linux.intel.com>
14999 * config/i386/gcc-auto-profile: New file.
15001 2016-06-23 Martin Liska <mliska@suse.cz>
15003 PR middle-end/71619
15004 * predict.c (predict_loops): Revert the hunk that was removed
15007 2016-06-23 Jakub Sejdak <jakub.sejdak@phoesys.com>
15009 * config.gcc: Add support for arm*-*-phoenix* targets.
15010 * config/arm/t-phoenix: New.
15011 * config/phoenix.h: New.
15013 2016-06-23 Uros Bizjak <ubizjak@gmail.com>
15014 H.J. Lu <hongjiu.lu@intel.com>
15017 * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
15018 * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
15019 (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
15020 ix86_force_load_from_GOT_p returns true.
15021 (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
15022 ix86_force_load_from_GOT_p returns true.
15023 (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
15024 ix86_force_load_from_GOT_p returns true.
15025 (ix86_expand_move): Load the external function address via the
15026 GOT slot if ix86_force_load_from_GOT_p returns true.
15027 * config/i386/predicates.md (x86_64_immediate_operand): Return
15028 false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
15029 (x86_64_zext_immediate_operand): Ditto.
15031 2016-06-22 Uros Bizjak <ubizjak@gmail.com>
15033 * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
15035 2016-06-22 David Malcolm <dmalcolm@redhat.com>
15038 * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
15039 * diagnostic.c (pedwarn_at_rich_loc): New function.
15040 * spellcheck.h (best_match::best_match): Add a
15041 "best_distance_so_far" optional parameter.
15042 (best_match::set_best_so_far): New method.
15043 (best_match::get_best_distance): New accessor.
15044 (best_match::get_best_candidate_length): New accessor.
15046 2016-06-22 Nick Clifton <nickc@redhat.com>
15048 * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
15049 place of GET_MODE_CLASS() == MODE_INT, so that partial integer
15050 modes are accepted as well.
15051 (ucompare_loc_descriptor): Likewise.
15052 (minmax_loc_descriptor): Likewise.
15053 (clz_loc_descriptor): Likewise.
15054 (popcount_loc_descriptor): Likewise.
15055 (bswap_loc_descriptor): Likewise.
15056 (rotate_loc_descriptor): Likewise.
15057 (mem_loc_descriptor): Likewise.
15058 (loc_descriptor): Likewise.
15060 2016-06-22 David Malcolm <dmalcolm@redhat.com>
15062 * common.opt (fdiagnostics-parseable-fixits): New option.
15063 * diagnostic.c: Include "selftest.h".
15064 (print_escaped_string): New function.
15065 (print_parseable_fixits): New function.
15066 (diagnostic_report_diagnostic): Call print_parseable_fixits.
15067 (selftest::assert_print_escaped_string): New function.
15068 (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
15069 (selftest::test_print_escaped_string): New function.
15070 (selftest::test_print_parseable_fixits_none): New function.
15071 (selftest::test_print_parseable_fixits_insert): New function.
15072 (selftest::test_print_parseable_fixits_remove): New function.
15073 (selftest::test_print_parseable_fixits_replace): New function.
15074 (selftest::diagnostic_c_tests): New function.
15075 * diagnostic.h (struct diagnostic_context): Add field
15076 "parseable_fixits_p".
15077 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
15078 -fdiagnostics-parseable-fixits.
15079 (-fdiagnostics-parseable-fixits): New option.
15080 * opts.c (common_handle_option): Handle
15081 -fdiagnostics-parseable-fixits.
15082 * selftest-run-tests.c (selftest::run_tests): Call
15083 selftest::diagnostic_c_tests.
15084 * selftest.h (selftest::diagnostic_c_tests): New prototype.
15086 2016-06-22 Ilya Enkovich <ilya.enkovich@intel.com>
15088 PR tree-optimization/71488
15089 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
15090 comparison of boolean vectors.
15091 * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
15092 of boolean vectors using bitwise operations.
15094 2016-06-22 Andreas Schwab <schwab@suse.de>
15096 * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
15097 Remove declaration.
15099 2016-06-22 Eric Botcazou <ebotcazou@adacore.com>
15101 * function.c (assign_parm_setup_reg): Prevent sharing in another case.
15103 2016-06-22 Bernd Edlinger <bernd.edlinger@hotmail.de>
15105 * config/i386/i386.c (print_reg): Emit an error message on attempt to
15108 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15110 * config/arm/arm.c (arm_cortex_a73_tune): New struct.
15111 * config/arm/arm-cores.def (cortex-a73): New entry.
15112 (cortex-a73.cortex-a35): Likewise.
15113 (cortex-a73.cortex-a53): Likewise.
15114 * config/arm/arm-tables.opt: Regenerate.
15115 * config/arm/arm-tune.md: Likewise.
15116 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
15117 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
15118 * config/arm/t-aprofile: Handle mcpu=cortex-a73,
15119 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
15120 * doc/invoke.texi (ARM Options): Document cortex-a73,
15121 cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
15123 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15125 * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
15126 * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
15127 (cortex-a73.cortex-a35): Likewise.
15128 (cortex-a73.cortex-a53): Likewise.
15129 * config/aarch64/aarch64-tune.md: Regenerate.
15130 * doc/invoke.texi (AArch64 Options): Document cortex-a73,
15131 cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
15134 2016-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15136 * configure.ac (gcc_cv_as_compress_debug): Remove
15137 --compress-debug-sections as extra as switch.
15138 Handle gas --compress-debug-sections=type.
15139 (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
15140 Handle gld --compress-debug-sections=type.
15141 * configure: Regenerate.
15143 2016-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
15145 * bb-reorder.c (pass_partition_blocks::gate): Update comment.
15147 2016-06-21 John David Anglin <danglin@gcc.gnu.org>
15149 * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
15150 (do_rewrite): likewise.
15152 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15154 * common/config/mep/mep-common.c: Remove.
15155 * config.gcc: Remove mep-* support.
15156 * config/mep/constraints.md: Remove.
15157 * config/mep/default.h: Remove.
15158 * config/mep/intrinsics.h: Remove.
15159 * config/mep/intrinsics.md: Remove.
15160 * config/mep/ivc2-template.h: Remove.
15161 * config/mep/mep-c5.cpu: Remove.
15162 * config/mep/mep-core.cpu: Remove.
15163 * config/mep/mep-default.cpu: Remove.
15164 * config/mep/mep-ext-cop.cpu: Remove.
15165 * config/mep/mep-intrin.h: Remove.
15166 * config/mep/mep-ivc2.cpu: Remove.
15167 * config/mep/mep-pragma.c: Remove.
15168 * config/mep/mep-protos.h: Remove.
15169 * config/mep/mep.c: Remove.
15170 * config/mep/mep.cpu: Remove.
15171 * config/mep/mep.h: Remove.
15172 * config/mep/mep.md: Remove.
15173 * config/mep/mep.opt: Remove.
15174 * config/mep/predicates.md: Remove.
15175 * config/mep/t-mep: Remove.
15176 * doc/install.texi: Remove mep-* documentation.
15177 * doc/md.texi: Likewise.
15179 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15181 * config.gcc: Remove support for avr-rtems.
15182 * config/avr/gen-avr-mmcu-specs.c: Likewise.
15183 * config/avr/rtems.h: Remove.
15184 * config/avr/t-rtems: Remove.
15186 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15188 * config.gcc: Remove m32r-rtems support.
15189 * config/m32r/rtems.h: Remove.
15191 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15193 * config.gcc: Remove h8300-rtems support.
15194 * config/h8300/rtems.h: Remove.
15195 * config/h8300/t-rtems: Remove.
15197 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15199 * config.gcc: Remove support for knetbsd.
15200 * configure.ac: Likewise.
15201 * config/i386/knetbsd-gnu.h: Remove. * config/i386/knetbsd-gnu64.h: Remove.
15202 * config/knetbsd-gnu.h: Remove.
15203 * configure: Regenerate.
15205 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15207 * config.gcc: Remove support for openbsd 2 and 3.
15208 * config/openbsd-oldgas.h: Remove.
15210 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15212 * config.gcc: Remove interix support.
15213 * config/i386/i386-interix.h: Remove.
15214 * config/i386/interix.opt: Remove.
15215 * config/i386/t-interix: Remove.
15216 * configure: Regenerate.
15217 * configure.ac: Remove interix support.
15218 * doc/install.texi: Remove interix documentation.
15220 2016-06-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
15222 * config/rs6000/rs6000.h: Add conditional preprocessing directives
15223 to disable Power9-specific compiler features if HAVE_AS_POWER9 is
15226 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
15228 * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
15229 they are both PLACEHOLDER_EXPRs.
15231 2016-06-21 Michael Meissner <meissner@linux.vnet.ibm.com>
15233 * stor-layout.c (layout_type): Move setting complex MODE to
15234 layout_type, instead of setting it ahead of time by the caller.
15235 * tree.c (build_complex_type): Likewise.
15237 2016-06-21 Martin Liska <mliska@suse.cz>
15239 * predict.c (force_edge_cold): Replace imposisble with
15242 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
15244 * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
15245 * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
15247 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
15249 * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
15251 2016-06-21 H.J. Lu <hongjiu.lu@intel.com>
15252 Ilya Enkovich <ilya.enkovich@intel.com>
15255 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
15256 New member function to convert V1TImode register to SUBREG
15257 TImode in debug insn.
15258 (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
15259 after changing register mode to V1TImode.
15261 2016-06-21 Virendra Pathak <virendra.pathak@broadcom.com>
15263 * config/aarch64/aarch64-cores.def (vulcan): New core.
15264 * config/aarch64/aarch64-tune.md: Regenerate.
15265 * doc/invoke.texi: Document vulcan as an available option.
15267 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
15269 * cse.c (canon_asm_operands): New function extracted from...
15270 (canonicalize_insn): ...here. Call it to canonicalize an ASM_OPERANDS
15271 either standalone or member of a PARALLEL.
15273 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
15276 * config/avr/gen-avr-mmcu-specs.c (print_mcu):
15277 [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
15278 [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
15280 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
15283 * config/avr/avr.md (movqi): Only handle loading subreg:qi of
15284 constant addresses if can_create_pseudo_p.
15286 2016-06-21 Jakub Jelinek <jakub@redhat.com>
15288 PR tree-optimization/71588
15289 * tree-ssa-strlen.c (valid_builtin_call): New function.
15290 (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
15293 2016-06-20 Jakub Jelinek <jakub@redhat.com>
15295 PR middle-end/71581
15296 * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
15297 see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
15298 for conversion of scalar user var to complex type and use the
15299 underlying SSA_NAME_VAR in that case. If EXPR is still NULL,
15302 PR rtl-optimization/71591
15303 * toplev.c (toplev::run_self_tests): If no_backend, complain and
15304 don't run any tests.
15306 2016-06-20 Hans-Peter Nilsson <hp@axis.com>
15309 * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
15310 delay-slot "nop" for PIC with CRIS v32. Also add missing leading
15311 space for PIC with non-v32 and the common non-PIC "jump".
15313 2016-06-20 Jakub Jelinek <jakub@redhat.com>
15316 * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
15317 returned values and add UN*/LTGT/*ORDERED cases with values matching
15318 D operand modifier on vcmp for AVX.
15320 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
15322 * config/aarch64/aarch64.opt
15323 (mpc-relative-literal-loads): Rename internal option name.
15324 * config/aarch64/aarch64.c
15325 (aarch64_nopcrelative_literal_loads): Rename to
15326 aarch64_pcrelative_literal_loads.
15327 (aarch64_expand_mov_immediate): Likewise.
15328 (aarch64_secondary_reload): Likewise.
15329 (aarch64_can_use_per_function_literal_pools_p): Likewise.
15330 (aarch64_override_options_after_change_1): Rename and simplify logic.
15331 (aarch64_classify_symbol): Merge large model checks into switch,
15332 remove pc-relative load check.
15334 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
15336 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
15337 costs relative to the cost of a register move.
15339 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
15341 * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
15342 (vcvt_n_f64_u64): Likewise.
15343 (vcvt_n_s64_f64): Likewise.
15344 (vcvt_n_u64_f64): Likewise.
15345 (vcvt_f64_s64): Likewise.
15346 (vrecpe_f64): Likewise.
15347 (vcvt_f64_u64): Likewise.
15348 (vrecps_f64): Likewise.
15350 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
15352 * config/aarch64/aarch64.md
15353 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
15355 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise. Correct
15357 * config/aarch64/aarch64-builtins.c
15358 (aarch64_types_binop_uss_qualifiers): Delete.
15359 (TYPES_BINOP_USS): Likewise.
15360 (aarch64_types_binop_sus_qualifiers): Likewise.
15361 (TYPES_BINOP_SUS): Likewise.
15362 (aarch64_types_fcvt_from_unsigned_qualifiers): New.
15363 (TYPES_FCVTIMM_SUS): Likewise.
15364 * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
15366 (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
15367 (fcvtzs): Use SHIFTIMM rather than BINOP.
15368 (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
15370 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
15372 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
15373 costs relative to the cost of a register move.
15375 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
15377 * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
15378 Allow scalar/single vector modes to be tieable.
15380 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
15382 * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
15384 2016-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15386 * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
15388 * tree.h (TYPE_ALIGN): Likewise.
15390 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
15393 * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
15395 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
15397 * config/avr/avr.c (avr_print_operand): Fix "format not a string
15398 literal" build warnings.
15399 (avr_print_operand_address): Dito.
15401 2016-06-19 David Edelsohn <dje.gcc@gmail.com>
15404 * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
15405 * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
15407 2016-06-18 John David Anglin <danglin@gcc.gnu.org>
15409 * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
15411 2016-06-18 Eric Botcazou <ebotcazou@adacore.com>
15414 * reload1.c (reload): Pass 0 to finish_spills when called because
15415 update_eliminables_and_spill returns true and remove did_spill.
15416 (finish_spills): Adjust comment and document GLOBAL parameter.
15418 2016-06-17 DJ Delorie <dj@redhat.com>
15421 * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
15422 * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
15423 (umulqihi3_virt): Likewise.
15424 * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
15425 (umulqihi3_real): Likewise.
15427 2016-06-17 Martin Liska <mliska@suse.cz>
15429 * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
15431 2016-06-17 Martin Liska <mliska@suse.cz>
15433 * predict.def: PRED_LOOP_EXIT from 92 to 85.
15435 2016-06-17 James Greenhalgh <james.greenhalgh@arm.com>
15437 * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
15439 (vaddq_f32): Likewise.
15440 (vmul_f32): Likewise.
15441 (vmulq_f32): Likewise.
15442 (vsub_f32): Likewise.
15443 (vsubq_f32): Likewise.
15445 2016-06-17 Bin Cheng <bin.cheng@arm.com>
15447 PR tree-optimization/71347
15448 * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
15449 cost for all uses in group.
15451 2016-06-17 Bin Cheng <bin.cheng@arm.com>
15453 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
15454 insert gimple seq if it's not empty.
15456 2016-06-17 Bin Cheng <bin.cheng@arm.com>
15458 * tree-vectorizer.h (struct dr_with_seg_len): Remove class
15460 * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
15461 rather than OFFSET.
15462 (comp_dr_with_seg_len_pair): Ditto.
15463 (vect_prune_runtime_alias_test_list): Ditto. Also Canonicalize
15464 struct dr_with_seg_len_pair against DR_OFFSET.
15465 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
15466 DR_OFFSET directly.
15468 2016-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
15470 * config/aarch64/geniterators.sh: Handle parenthesised conditions.
15472 2016-06-16 John David Anglin <danglin@gcc.gnu.org>
15474 * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
15475 (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
15476 (pa_output_millicode_call): Likewise.
15477 (pa_output_call): Likewise.
15478 (pa_output_indirect_call): Likewise.
15479 (pa_asm_output_mi_thunk): Likewise.
15481 2016-06-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15483 * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
15485 2016-06-16 Martin Liska <mliska@suse.cz>
15487 * predict.c (combine_predictions_for_insn): When we find a first
15488 match predictor, we should consider just predictors with
15489 PRED_FLAG_FIRST_MATCH. Print either first match (if any) or
15490 DS theory predictor.
15491 (combine_predictions_for_bb): Likewise.
15493 2016-06-16 Jakub Jelinek <jakub@redhat.com>
15495 * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
15496 with base of reference to struct.
15498 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
15500 * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
15502 2016-06-16 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
15505 * config/avr/avr.c (avr_asm_init_sections): Remove setup of
15506 progmem_swtable_section.
15507 (progmem_swtable_section): Remove.
15508 (avr_asm_function_rodata_section): Remove.
15509 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
15510 * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
15512 2016-06-16 Jocelyn Mayer <l_indien@magic.fr>
15514 * config/i386/driver-i386.c (host_detect_local_cpu): Set
15515 PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
15516 <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
15517 signature_CENTAUR_ebx.
15518 * config/i386/i386.c (ix86_option_override_internal): Add
15519 definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
15520 nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
15521 * doc/invoke.texi (x86 Options): Document new VIA -march entries.
15523 2016-06-16 Martin Liska <mliska@suse.cz>
15525 * predict.def: Add fortran loop preheader predictor.
15526 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
15527 fold IFN_BUILTIN_EXPECT with a known constant argument.
15529 2016-06-16 Martin Liska <mliska@suse.cz>
15531 * predict.def: Add 'Fortran' to display text of all
15532 PRED_FORTRAN_* predictors.
15534 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
15537 * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
15538 [IA64_BUILTIN_NANSQ]: Ditto.
15539 (ia64_fold_builtin): New function.
15540 (TARGET_FOLD_BUILTIN): New define.
15541 (ia64_init_builtins) Declare const_string_type node.
15542 Add __builtin_nanq and __builtin_nansq builtin functions.
15543 (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
15545 2016-06-16 Nick Clifton <nickc@redhat.com>
15547 * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
15548 MSP430_HWMULT_ prefix to enum values.
15549 (msp430_regions): Add MSP430_REGION_ prefix to enum values.
15550 * config/msp430/msp430.c: Update use of enum values.
15551 * config/msp430/msp430.md: Likewise.
15552 * config/msp430/msp430.opt: Likewise.
15554 2016-06-16 Jan Hubicka <hubicka@ucw.cz>
15556 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
15557 of comparsions in the last iteration.
15559 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
15560 Joern Rennecke <joern.rennecke@embecosm.com>
15562 * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
15564 (arc_needs_pcl_p): Add GOTOFFPC.
15565 (arc_legitimate_pic_addr_p): Likewise.
15566 (arc_output_pic_addr_const): Likewise.
15567 (arc_legitimize_pic_address): Generate a pc-relative address using
15569 (arc_output_libcall): Use @pcl syntax.
15570 (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
15571 * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
15572 (*movsi_insn): Use @pcl syntax.
15573 (doloop_begin_i): Likewise.
15575 2016-06-16 Martin Liska <mliska@suse.cz>
15577 * predict.def: Define a new predictor.
15579 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
15581 * config/arc/arc.opt (mtp-regno): Update text.
15583 2016-06-16 Renlin Li <renlin.li@arm.com>
15585 * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
15587 2016-06-16 Jakub Jelinek <jakub@redhat.com>
15590 * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
15591 (setcc + and peephole2): Likewise.
15593 PR rtl-optimization/71532
15594 * cse.c (cse_insn): For const/pure calls, invalidate argument passing
15597 2016-06-15 Michael Meissner <meissner@linux.vnet.ibm.com>
15599 * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
15600 DImode constants with XXSPLTIB in vector registers.
15601 (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
15602 vsx_extract_<mode>_internal{1,2} into a single insn that handles
15603 direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
15604 extraction of the element at the top of the register as a scalar
15606 (vsx_extract_<mode>_internal1): Likewise.
15607 (vsx_extract_<mode>_internal2): Likewise.
15608 * config/rs6000/constraints.md (wi constraint): Remove a comment
15609 about DImode not being allowed in Altivec registers.
15610 (wB constraint): New constraint for constants that can be
15611 generated in Altivec registers with VSPLTISW/VUPKHSW.
15612 * config/rs6000/predicates.md (xxspltib_constant_split): Update
15614 (xxspltib_constant_nosplit): Likewise.
15615 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
15616 support for -mupper-regs-di to enable DImode to go into Altivec
15618 (POWERPC_MASKS): Likewise.
15619 (power7 cpu): Likewise.
15620 * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
15621 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
15622 for DImode being allowed in Altivec registers. Update wi/wj
15623 constraints. Set scalar_in_vmx_p flag.
15624 (rs6000_option_override_internal): Add checks for -mupper-regs-di.
15625 (xxspltib_constant_p): Allow CONST_INT's with VOIDmode. Don't
15626 return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
15627 (rs6000_opt_masks): Add -mupper-regs-di.
15628 * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
15629 direct move to use wi and not wj.
15630 (lfiwzx): Likewise.
15631 (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
15633 (floatunssi<mode>2_lfiwzx_mem): Likewise.
15634 (fix_trunc<mode>di2_fctidz): Change second alternative to allow
15635 any VSX register, instead of just Altivec registers, to allow
15636 either operand to be an Altivec register or both.
15637 (fixuns_trunc<mode>di2_fctiduz): Likewise.
15638 (movdi_internal32): Add support for -mupper-regs-di. Add support
15639 to load constants via XXSPLTIB or VSPLTISW. Add spacing to allow
15640 the alternatives and attributes to be lined up to be easier to
15642 (movdi_internal64): Likewise.
15643 (64-bit DImode splitters): Change predicates to only split loading
15644 up GPR registers. Add splits for using XXSPLTIB or VSPLTISW to
15645 load constants in ISA 3.0 or ISA 2.07 respectively.
15646 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
15647 -mupper-regs-di. Update -mupper-regs-df and -mupper-regs-sf to
15648 mention -mcpu=power9 sets these options.
15649 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
15652 2016-06-15 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
15655 * config/avr/avr.c (avr_set_current_function): Warn misspelled
15656 interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
15657 * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
15658 by default to warn misspelled interrupt/ signal handler.
15659 * doc/invoke.texi (AVR Options): Document it. Update description
15660 for -nodevicelib option.
15662 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15664 * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
15665 up parentheses. Use GET_MODE_UNIT_BITSIZE.
15666 (aarch64_<sur>shll2_n<mode>): Likewise.
15668 2016-06-15 Ilya Enkovich <ilya.enkovich@intel.com>
15670 PR middle-end/71529
15671 * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
15672 DECL_CONTEXT for copied arguments.
15674 2016-06-15 Alan Hayward <alan.hayward@arm.com>
15676 PR tree-optimization/71483
15677 * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
15680 2016-06-15 Martin Liska <mliska@suse.cz>
15682 * predict.c (tree_predict_by_opcode): Call predict_edge_def
15683 instead of predict_edge w/o a probability.
15685 2016-06-15 Alan Hayward <alan.hayward@arm.com>
15687 PR tree-optimization/71439
15688 * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
15691 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15693 * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
15694 register subregs in SET_SRC.
15696 2016-06-15 Richard Biener <rguenther@suse.de>
15698 * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
15699 store restrictions.
15701 2016-06-15 Richard Biener <rguenther@suse.de>
15703 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
15704 not consider dependences between accesses that belong to the
15706 (vect_analyze_data_ref_dependences): Do not analyze read-read
15707 or self-dependences.
15709 2016-06-14 David Malcolm <dmalcolm@redhat.com>
15711 * spellcheck-tree.c: Include spellcheck-tree.h rather than
15713 (find_closest_identifier): Reimplement in terms of
15714 best_match<tree,tree>.
15715 * spellcheck-tree.h: New file.
15716 * spellcheck.c (struct edit_distance_traits<const char *>): New
15718 (find_closest_string): Reimplement in terms of
15719 best_match<const char *, const char *>.
15720 * spellcheck.h (levenshtein_distance): Move prototype of tree-based
15721 overload to spellcheck-tree.h.
15722 (find_closest_identifier): Likewise.
15723 (struct edit_distance_traits<T>): New template.
15724 (class best_match): New class.
15726 2016-06-14 David Malcolm <dmalcolm@redhat.com>
15728 * selftest-run-tests.c (selftest::run_tests): Call
15729 selftest::spellcheck_tree_c_tests.
15730 * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
15731 * spellcheck-tree.c: Include selftest.h and stringpool.h.
15732 (selftest::test_find_closest_identifier): New function.
15733 (selftest::spellcheck_tree_c_tests): New function.
15734 * spellcheck.c (selftest::test_find_closest_string): Verify that
15735 the order of the vec does not affect the results for this case.
15736 (selftest::test_data): New array.
15737 (selftest::test_metric_conditions): New function.
15738 (selftest::spellcheck_c_tests): Add a test of case-comparison.
15739 Call selftest::test_metric_conditions.
15741 2016-06-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15743 * config/rs6000/rs6000-builtin.def (commentary): Typo.
15744 (BU_P9_MISC_1): Likewise.
15745 (BU_P9_64BIT_MISC_0): Likewise.
15746 (BU_P9_MISC_0): Likewise.
15748 2016-06-14 David Malcolm <dmalcolm@redhat.com>
15750 * gcc-rich-location.c
15751 (gcc_rich_location::add_fixit_misspelled_id): New method.
15752 * gcc-rich-location.h
15753 (gcc_rich_location::add_fixit_misspelled_id): Add decl.
15755 2016-06-14 Andreas Tobler <andreast@gcc.gnu.org>
15757 * config/arm/freebsd.h: Only enable unaligned access for armv6 on
15758 FreeBSD 11 and above.
15760 2016-06-14 Uros Bizjak <ubizjak@gmail.com>
15762 * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
15764 2016-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15766 * expmed.h: Close parenthesis in "at your option" in copyright
15768 * lower-subreg.h: Likewise.
15770 2016-06-14 Richard Biener <rguenther@suse.de>
15772 PR middle-end/71526
15773 * genmatch.c (expr::gen_transform): Use in_type for comparisons
15776 2015-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15778 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
15780 (aarch64_rtx_costs): Use it. Rewrite CONST_INT_P (op1) case to handle
15781 mask+shift version.
15782 * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
15784 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
15785 matching condition with aarch64_mask_and_shift_for_ubfiz_p.
15787 2016-06-14 Richard Biener <rguenther@suse.de>
15789 PR tree-optimization/71522
15790 * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
15791 copying into float copying.
15793 2016-06-14 Jakub Jelinek <jakub@redhat.com>
15795 PR tree-optimization/71520
15796 * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
15797 (replace_block_by): Move user labels from bb1 to bb2.
15799 2016-06-14 Richard Biener <rguenther@suse.de>
15801 PR middle-end/71310
15803 * expr.h (get_bit_range): Declare.
15804 * expr.c (get_bit_range): Export.
15805 * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
15806 word_mode again to constrain the bitfield access.
15808 2016-06-14 Richard Biener <rguenther@suse.de>
15810 PR tree-optimization/71521
15811 * tree-vrp.c (extract_range_from_binary_expr_1): Guard
15812 division int_const_binop against zero divisor.
15814 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
15816 * config/i386/i386.md (signbittf2): New expander.
15817 * config/i386/sse.md (ptesttf2): New insn pattern.
15819 2016-06-13 David Malcolm <dmalcolm@redhat.com>
15822 * input.c (selftest::test_reading_source_line): Avoid reading from
15823 __FILE__ by creating a tempfile with known content and reading
15826 2016-06-13 David Malcolm <dmalcolm@redhat.com>
15828 * pretty-print.c (assert_pp_format_colored): Skip the test if
15830 (test_pp_format): Remove comment about GCC_COLORS.
15832 2016-06-13 David Malcolm <dmalcolm@redhat.com>
15834 * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
15835 * pretty-print.c (assert_pp_format_va): Add location param and use
15836 it with ASSERT_STREQ_AT.
15837 (assert_pp_format): Add location param and pass it to
15838 assert_pp_format_va.
15839 (assert_pp_format_colored): Likewise.
15840 (ASSERT_PP_FORMAT_1): New.
15841 (ASSERT_PP_FORMAT_2): New.
15842 (ASSERT_PP_FORMAT_3): New.
15843 (test_pp_format): Provide SELFTEST_LOCATION throughout, either
15844 explicitly, or implicitly via the above macros.
15845 * selftest.c (selftest::pass): Use a selftest::location rather
15846 than file and line.
15847 (selftest::fail): Likewise. Print the function name.
15848 (selftest::fail_formatted): Likewise.
15849 (selftest::assert_streq): Use a selftest::location rather than
15851 * selftest.h (selftest::location): New struct.
15852 (SELFTEST_LOCATION): New macro.
15853 (selftest::pass): Accept a const location & rather than file
15855 (selftest::fail): Likewise.
15856 (selftest::fail_formatted): Likewise.
15857 (selftest::assert_streq): Likewise.
15858 (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
15859 (ASSERT_FALSE): Likewise.
15860 (ASSERT_EQ): Likewise.
15861 (ASSERT_NE): Likewise.
15862 (ASSERT_STREQ): Likewise.
15863 (ASSERT_PRED1): Likewise.
15864 (ASSERT_STREQ_AT): New macro.
15866 2016-06-13 David Malcolm <dmalcolm@redhat.com>
15868 * selftest.c (selftest::fail_formatted): New function.
15869 (selftest::assert_streq): New function.
15870 * selftest.h (selftests::fail_formatted): New decl.
15871 (selftest::assert_streq): New decl.
15872 (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
15874 2016-06-13 Jeff Law <law@redhat.com>
15876 PR tree-optimization/71403
15877 * tree-ssa-threadbackward.c
15878 (convert_and_register_jump_thread_path): No longer accept reference
15879 to path. Do not pop items off the path anymore.
15880 (fsm_find_control_statement_thread_paths): Do not allow threading
15881 to a deeper loop nest. Pop the last item off the path here rather
15882 than in convert_and_register_jump_thread_path.
15884 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
15885 Wilco Dijkstra <Wilco.Dijkstra@arm.com>
15887 [AArch64] Emit division using the Newton series
15889 * config/aarch64/aarch64-protos.h
15890 (cpu_approx_modes): Add new member "division".
15891 (aarch64_emit_approx_div): Declare new function.
15892 * config/aarch64/aarch64.c
15893 (generic_approx_modes): New member "division".
15894 (exynosm1_approx_modes): Likewise.
15895 (xgene1_approx_modes): Likewise.
15896 (aarch64_emit_approx_div): Define new function.
15897 * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
15898 * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
15899 * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
15900 * doc/invoke.texi (-mlow-precision-div): Describe new option.
15902 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
15903 Wilco Dijkstra <wilco.dijkstra@arm.com>
15905 [AArch64] Emit square root using the Newton series
15907 * config/aarch64/aarch64-protos.h
15908 (aarch64_emit_approx_rsqrt): Replace with new function
15909 "aarch64_emit_approx_sqrt".
15910 (cpu_approx_modes): New member "sqrt".
15911 * config/aarch64/aarch64.c
15912 (generic_approx_modes): New member "sqrt".
15913 (exynosm1_approx_modes): Likewise.
15914 (xgene1_approx_modes): Likewise.
15915 (aarch64_emit_approx_rsqrt): Replace with new function
15916 "aarch64_emit_approx_sqrt".
15917 (aarch64_override_options_after_change_1): Handle new option.
15918 * config/aarch64/aarch64-simd.md
15919 (rsqrt<mode>2): Use new function instead.
15920 (sqrt<mode>2): New expansion and insn definitions.
15921 * config/aarch64/aarch64.md: Likewise.
15922 * config/aarch64/aarch64.opt
15923 (mlow-precision-sqrt): Add new option description.
15924 * doc/invoke.texi (mlow-precision-sqrt): Likewise.
15926 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
15928 [AArch64] Add more choices for the reciprocal square root approximation
15930 Allow a target to prefer such operation depending on the operation mode.
15932 * config/aarch64/aarch64-protos.h
15933 (AARCH64_APPROX_MODE): New macro.
15934 (AARCH64_APPROX_{NONE,ALL}): Likewise.
15935 (cpu_approx_modes): New structure.
15936 (tune_params): New member "approx_modes".
15937 * config/aarch64/aarch64-tuning-flags.def
15938 (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
15939 * config/aarch64/aarch64.c
15940 (generic_approx_modes): New core "cpu_approx_modes" structure.
15941 (exynosm1_approx_modes): Likewise.
15942 (xgene1_approx_modes): Likewise.
15943 (generic_tunings): New member "approx_modes".
15944 (cortexa35_tunings): Likewise.
15945 (cortexa53_tunings): Likewise.
15946 (cortexa57_tunings): Likewise.
15947 (cortexa72_tunings): Likewise.
15948 (exynosm1_tunings): Likewise.
15949 (thunderx_tunings): Likewise.
15950 (xgene1_tunings): Likewise.
15951 (use_rsqrt_p): New argument for the mode and use new member from
15953 (aarch64_builtin_reciprocal): Devise mode from builtin.
15954 (aarch64_optab_supported_p): New argument for the mode.
15955 * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
15957 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
15959 * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
15960 RS6000_BTM_MODULO flag into the set of flags that are considered
15961 to be part of the common configuration.
15963 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
15965 * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
15966 difference unsigned.
15967 (vec_absdb): New macro for vector absolute difference unsigned
15969 (vec_absdh): New macro for vector absolute difference unsigned
15971 (vec_absdw): New macro for vector absolute difference unsigned word.
15972 * config/rs6000/altivec.md (UNSPEC_VADU): New value.
15973 (vadu<mode>3): New insn.
15974 (*p9_vadu<mode>3): New insn.
15975 * config/rs6000/rs6000-builtin.def (vadub): New built-in
15977 (vaduh): New built-in definition.
15978 (vaduw): New built-in definition.
15979 (vadu): New overloaded built-in definition.
15980 (vadub): New overloaded built-in definition.
15981 (vaduh): New overloaded built-in definition.
15982 (vaduw): New overloaded built-in definition.
15983 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
15984 overloaded vector absolute difference unsigned functions.
15985 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
15986 the ISA 3.0 vector absolute difference unsigned built-in functions.
15988 2016-06-13 Eric Botcazou <ebotcazou@adacore.com>
15990 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
15991 update shared_lookup_references only once after changing operands.
15993 2016-06-13 Thomas Schwinge <thomas@codesourcery.com>
15995 PR middle-end/71373
15996 * tree-nested.c (convert_nonlocal_omp_clauses)
15997 (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
15999 * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
16000 * tree.def (CASE_LABEL_EXPR): Likewise.
16002 2016-06-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
16005 * input.c (test_builtins): Fix an assertion.
16007 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
16009 * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
16010 (paritysi2): Ditto.
16012 (isinf<mode>2): Ditto.
16014 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
16016 * ggc-tests.c (test_finalization): Only test need_finalization_p
16017 for GCC_VERSION >= 4003.
16019 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16021 * config/s390/vecintrin.h: Fix file description in comment.
16023 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16025 * config/s390/s390-builtin-types.def: Change builtin type naming
16026 scheme to match builtin-types.def.
16028 2016-06-13 Marc Glisse <marc.glisse@inria.fr>
16030 * fold-const.c (optimize_minmax_comparison): Remove.
16031 (fold_comparison): Remove call to the above.
16032 * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
16033 New transformations.
16035 2016-06-13 Alan Hayward <alan.hayward@arm.com>
16037 PR tree-optimization/71416
16038 * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
16041 2016-06-13 Martin Liska <mliska@suse.cz>
16043 * predict.c (enum predictor_reason): Prefix enum with REASON_.
16044 (combine_predictions_for_insn): Likewise.
16045 (prune_predictions_for_bb): Likewise.
16046 (combine_predictions_for_bb): Likewise.
16048 2016-06-13 Richard Biener <rguenther@suse.de>
16050 PR tree-optimization/71505
16051 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
16052 assert match comment.
16054 2016-06-13 Marek Polacek <polacek@redhat.com>
16056 PR middle-end/71476
16057 * gimplify.c (maybe_warn_switch_unreachable): Factored out of
16058 gimplify_switch_expr.
16059 (warn_switch_unreachable_r): New function.
16061 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16064 * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
16067 2016-06-13 Richard Biener <rguenther@suse.de>
16069 PR middle-end/64516
16070 * fold-const.c (fold_unary_loc): Preserve alignment when
16071 folding a VIEW_CONVERT_EXPR into a MEM_REF.
16073 2016-06-13 Martin Liska <mliska@suse.cz>
16076 * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
16077 w/ -fsanitize=bounds.
16079 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
16081 * config/i386/i386.c (ix86_init_builtins): Calculate
16082 FLOAT128_FTYPE_CONST_STRING function type only once.
16083 * doc/extend.texi (x86 Built-in Functions): Update text, __float128
16084 built-in functions are available for x86-32 and x86-64 targets.
16086 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
16089 * config/i386/i386.i386-builtin-types.def (CONST_STRING):
16090 New primitive type.
16091 (FLOAT128_FTYPE_CONST_STRING): New function type.
16092 * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
16093 [IX86_BUILTIN_NANSQ]: Ditto.
16094 (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
16095 (ix86_init_builtin_types): Declare const_string_type_node.
16096 (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
16098 (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
16099 * doc/extend.texi (x86 Built-in Functions): Document
16100 __builtin_nanq and __builtin_nansq.
16102 2016-06-11 Jiong Wang <jiong.wang@arm.com>
16105 * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
16106 * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
16107 length for pop patterns.
16108 (arm_attr_length_push_multi): Update comments.
16109 * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
16111 (*pop_multiple_with_writeback_and_return): Likewise.
16112 (*pop_multiple_with_return): Likewise.
16114 2016-06-11 Segher Boessenkool <segher@kernel.crashing.org>
16116 PR middle-end/71310
16117 * fold-const.c (optimize_bit_field_compare): Don't try to use
16118 word_mode unconditionally for reading the bit field, look at
16119 DECL_BIT_FIELD_REPRESENTATIVE instead.
16121 2016-06-11 Kugan Vivekanandarajah <kuganv@linaro.org>
16123 PR middle-end/71478
16124 * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
16125 vector integer type.
16127 2016-06-10 Jakub Jelinek <jakub@redhat.com>
16129 PR middle-end/71494
16130 * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
16131 without LABEL_DECL, set *handled_ops_p to false instead of true.
16133 2016-06-10 Martin Sebor <msebor@redhat.com>
16136 * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
16137 (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
16138 * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
16140 (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
16141 (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
16142 (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
16143 (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
16144 (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
16145 (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
16146 (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
16147 (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
16149 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
16151 * config/arm/arm.h (pool_vector_label,
16152 return_used_this_function): Remove.
16154 2016-06-10 Jeff Law <law@redhat.com>
16156 PR tree-optimization/71335
16157 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
16158 zero length paths here.
16159 (convert_and_register_jump_thread_path): Remove hacks related to
16160 duplicated blocks in the jump thread path.
16161 (fsm_find_control_statement_thread_paths): Avoid putting the same
16162 block on the thread path twice, but ensure the thread path is
16163 unchanged from the caller's point of view.
16165 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
16167 * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
16168 * predict.def (PRED_LOOP_BRANCH): Remove.
16170 2016-06-10 David Malcolm <dmalcolm@redhat.com>
16172 * Makefile.in (OBJS): Add ggc-tests.o.
16173 (GTFILES): Add ggc-tests.c.
16174 * ggc-tests.c: New file.
16175 * selftest-run-tests.c (selftest::run_tests): Call
16176 selftest::ggc_tests_c_tests.
16177 * selftest.h (selftest::ggc_tests_c_tests): New prototype.
16179 2016-06-10 Alexander Monakov <amonakov@ispras.ru>
16181 * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
16183 2016-06-10 Maxim Ostapenko <m.ostapenko@samsung.com>
16186 * varasm.c (place_block_symbol): Adjust alignment for asan protected
16187 STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
16189 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
16191 * profile.c: Include cfgloop.h.
16192 (branch_prob): Compute estimated number of iterations.
16193 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
16194 recompute estimate number of iterations from profile.
16196 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
16198 PR inline-asm/68843
16199 * reg-stack.c (check_asm_stack_operands): Explicit input arguments
16200 must be grouped on top of stack. Don't force early clobber
16201 on ordinary reg outputs.
16203 2016-06-10 Richard Biener <rguenther@suse.de>
16205 * targhooks.c (default_builtin_vectorization_cost): Adjust
16206 vec_construct cost.
16208 2016-06-10 Richard Biener <rguenther@suse.de>
16210 * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
16211 to fold the RHS to a constant if possible.
16213 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
16215 PR middle-end/71373
16216 * tree-nested.c (convert_nonlocal_omp_clauses)
16217 (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
16218 OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
16219 OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
16221 * gimplify.c (gimplify_adjust_omp_clauses): Discard
16223 * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
16225 * omp-low.c (scan_sharing_clauses): Don't expect
16226 OMP_CLAUSE__CACHE_.
16228 2016-06-10 Alan Hayward <alan.hayward@arm.com>
16230 PR tree-optimization/71407
16231 PR tree-optimization/71416
16232 * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
16233 BIT_FIELD_REF type.
16235 2016-06-10 Richard Biener <rguenther@suse.de>
16237 PR middle-end/71477
16238 * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
16240 2016-06-09 Eric Botcazou <ebotcazou@adacore.com>
16242 * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
16244 2016-06-09 Vladimir Makarov <vmakarov@redhat.com>
16245 Jiong Wang <jiong.wang@arm.com>
16247 PR rtl-optimization/70751
16248 * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
16249 spilled into memory.
16251 2016-06-09 Jonathan Yong <10walls@gmail.com>
16254 2015-09-21 Jonathan Yong <10walls@gmail.com>
16256 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
16257 sysroot/usr/lib/32api for additional win32 libraries,
16258 fixes failing Cygwin bootstrapping.
16260 2016-06-09 Marcin Baczyński <marbacz@gmail.com>
16262 * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
16265 2016-06-09 David Malcolm <dmalcolm@redhat.com>
16268 * pretty-print.c (pp_indent): Specify that %p is printed in a
16269 host-dependent manner.
16270 (test_pp_format): Remove the test for %p.
16272 2016-06-09 Maciej W. Rozycki <macro@imgtec.com>
16274 * config/mips/mips.c (mips_output_jump): Fix formatting.
16276 2016-06-09 Richard Biener <rguenther@suse.de>
16278 PR tree-optimization/71462
16279 * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
16282 2016-06-09 Martin Liska <mliska@suse.cz>
16284 * predict.c (dump_prediction): Add new argument.
16285 (enum predictor_reason): New enum.
16286 (struct predictor_hash): New struct.
16287 (predictor_hash::hash): New function.
16288 (predictor_hash::equal): Likewise.
16289 (not_removed_prediction_p): New function.
16290 (prune_predictions_for_bb): Likewise.
16291 (combine_predictions_for_bb): Prune predictions.
16293 2016-06-09 Martin Liska <mliska@suse.cz>
16295 * predict.c (filter_predictions): New function.
16296 (remove_predictions_associated_with_edge): Use the filter
16298 (equal_edge_p): New function.
16300 2016-06-09 Stefan Bruens <stefan.bruens@rwth-aachen.de>
16302 * doc/invoke.texi (ARM Options): Use lexicographical ordering.
16303 Correct usage of @samp vs @option, add @samp where appropriate.
16304 Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
16305 Add armv6s-m and document it, as it is no official ARM name.
16307 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16309 * ifcvt.c (struct noce_if_info): Add transform_name field.
16310 (noce_try_move): Set if_info->transform_name to the function name.
16311 (noce_try_ifelse_collapse): Likewise.
16312 (noce_try_store_flag): Likewise.
16313 (noce_try_inverse_constants): Likewise.
16314 (noce_try_store_flag_constants): Likewise.
16315 (noce_try_addcc): Likewise.
16316 (noce_try_store_flag_mask): Likewise.
16317 (noce_try_cmove): Likewise.
16318 (noce_try_cmove_arith): Likewise.
16319 (noce_try_minmax): Likewise.
16320 (noce_try_abs): Likewise.
16321 (noce_try_sign_mask): Likewise.
16322 (noce_try_bitop): Likewise.
16323 (noce_convert_multiple_sets): Likewise.
16324 (noce_process_if_block): Print if_info->transform_name to
16325 dump_file if transformation succeeded.
16327 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16329 * config/arm/cortex-a57.md (cortex_a57_alu):
16332 2016-06-08 Martin Sebor <msebor@redhat.com>
16333 Jakub Jelinek <jakub@redhat.com>
16337 * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
16338 BUILT_IN_MUL_OVERFLOW_P): New builtins.
16339 * builtins.c: Include gimple-fold.h.
16340 (fold_builtin_arith_overflow): Handle
16341 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
16342 (fold_builtin_3): Likewise.
16343 * doc/extend.texi (Integer Overflow Builtins): Document
16344 __builtin_{add,sub,mul}_overflow_p.
16346 2016-06-08 Jose E. Marchesi <jose.marchesi@oracle.com>
16348 * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
16349 SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
16351 2016-06-08 Alan Lawrence <alan.lawrence@arm.com>
16353 * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
16354 Rewrite, looking one level down for records and arrays.
16356 2016-06-08 David Malcolm <dmalcolm@redhat.com>
16358 * pretty-print.c: Include "selftest.h".
16359 (pp_format): Fix comment.
16360 (identifier_to_locale): Likewise.
16361 (selftest::test_basic_printing): New function.
16362 (selftest::assert_pp_format): New function.
16363 (selftest::test_pp_format): New function.
16364 (selftest::pretty_print_c_tests): New function.
16365 * selftest-run-tests.c (selftest::run_tests): Call
16366 selftest::pretty_print_c_tests.
16367 * selftest.h (pretty_print_c_tests): New declaration.
16369 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
16371 * invoke.texi (max-loop-headers-insns): Document.
16372 * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
16373 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
16374 (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
16376 2016-06-08 Richard Biener <rguenther@suse.de>
16378 * tree-vect-stmts.c (vectorizable_load): Remove restrictions
16379 on strided SLP loads and fall back to scalar loads in case
16380 we can't chunk them.
16382 2016-06-08 Richard Biener <rguenther@suse.de>
16384 PR tree-optimization/71452
16385 * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
16386 type used for the SSA rewrite has enough precision to cover
16387 the dynamic type of the location.
16389 2016-06-08 Jakub Jelinek <jakub@redhat.com>
16390 Richard Biener <rguenther@suse.de>
16393 * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
16394 the same as DECL_P (base0) for indirect_base0. Use equality_code
16395 in one further place.
16397 2016-06-08 Richard Sandiford <richard.sandiford@arm.com>
16399 * expmed.c (store_bit_field_1): Do not restrict a multiword op0
16400 to one word if the field is known to overlap other words.
16401 (extract_bit_field_1): Likewise.
16402 (store_split_bit_field): Remove compensating code.
16403 (extract_split_bit_field): Likewise.
16405 2016-06-08 Bernd Schmidt <bschmidt@redhat.com>
16409 * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
16411 2016-06-08 Jiong Wang <jiong.wang@arm.com>
16413 * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
16415 * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
16416 (arch64_addpv4sf): Delete.
16417 (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
16418 "gen_aarch64_addpv4sf".
16419 * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly. Use
16421 (vpadds_f32): Likewise.
16422 (vpaddq_f32): Likewise.
16423 (vpaddq_f64): Likewise.
16425 2016-06-08 Jiong Wang <jiong.wang@arm.com>
16427 * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
16429 * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
16430 to VALLF. Rename to "fabd<mode>3".
16431 "*fabd_scalar<mode>3): Delete.
16432 * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
16434 (vabdd_f64): Likewise.
16435 (vabd_f32): Likewise.
16436 (vabd_f64): Likewise.
16437 (vabdq_f32): Likewise.
16438 (vabdq_f64): Likewise.
16440 2016-06-08 Jiong Wang <jiong.wang@arm.com>
16442 * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
16444 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
16445 "aarch64_rsqrts<mode>".
16446 * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
16447 * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly. Use
16449 (vrsqrtsd_f64): Likewise.
16450 (vrsqrts_f32): Likewise.
16451 (vrsqrts_f64): Likewise.
16452 (vrsqrtsq_f32): Likewise.
16453 (vrsqrtsq_f64): Likewise.
16455 2016-06-08 Jiong Wang <jiong.wang@arm.com>
16457 * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
16459 * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
16460 "aarch64_rsqrte<mode>".
16461 * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
16462 * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly. Use
16464 (vrsqrted_f64): Likewise.
16465 (vrsqrte_f32): Likewise.
16466 (vrsqrte_f64): Likewise.
16467 (vrsqrteq_f32): Likewise.
16468 (vrsqrteq_f64): Likewise.
16470 2016-06-08 Jiong Wang <jiong.wang@arm.com>
16472 * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
16474 (fcvtzs): Likewise.
16475 (fcvtzu): Likewise.
16476 * config/aarch64/aarch64-simd.md
16477 (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
16478 (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
16479 * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
16481 (vcvt_n_f32_u32): Likewise.
16482 (vcvt_n_s32_f32): Likewise.
16483 (vcvt_n_u32_f32): Likewise.
16484 (vcvtq_n_f32_s32): Likewise.
16485 (vcvtq_n_f32_u32): Likewise.
16486 (vcvtq_n_f64_s64): Likewise.
16487 (vcvtq_n_f64_u64): Likewise.
16488 (vcvtq_n_s32_f32): Likewise.
16489 (vcvtq_n_s64_f64): Likewise.
16490 (vcvtq_n_u32_f32): Likewise.
16491 (vcvtq_n_u64_f64): Likewise.
16492 * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
16493 (VSDQ_SDI): Likewise.
16494 (fcvt_target): Support V4DI, V4SI and V2SI.
16495 (FCVT_TARGET): Likewise.
16497 2016-06-08 Jiong Wang <jiong.wang@arm.com>
16499 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
16500 (TYPES_BINOP_SUS): Likewise.
16501 (aarch64_simd_builtin_data): Update include file name.
16502 (aarch64_builtins): Likewise.
16503 * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
16504 for conversion between scalar float-point and fixed-point.
16506 (fcvtzs): Likewise.
16507 (fcvtzu): Likewise.
16508 * config/aarch64/aarch64.md
16509 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
16510 pattern for conversion between scalar float to fixed-pointer.
16511 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
16512 (UNSPEC_FCVTZS): New UNSPEC enumeration.
16513 (UNSPEC_FCVTZU): Likewise.
16514 (UNSPEC_SCVTF): Likewise.
16515 (UNSPEC_UCVTF): Likewise.
16516 * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
16518 (vcvtd_n_f64_u64): Likewise.
16519 (vcvtd_n_s64_f64): Likewise.
16520 (vcvtd_n_u64_f64): Likewise.
16521 (vcvtd_n_f32_s32): Likewise.
16522 (vcvts_n_f32_u32): Likewise.
16523 (vcvtd_n_s32_f32): Likewise.
16524 (vcvts_n_u32_f32): Likewise.
16525 * config/aarch64/iterators.md (fcvt_target): Support integer to float
16527 (FCVT_TARGET): Likewise.
16528 (FCVT_FIXED2F): New iterator.
16529 (FCVT_F2FIXED): Likewise.
16530 (fcvt_fixed_insn): New define_int_attr.
16532 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
16534 * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
16535 some statements was removed.
16537 2016-06-08 Alan Hayward <alan.hayward@arm.com>
16539 * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
16540 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
16541 (vect_can_advance_ivs_p): likewise.
16542 (vect_update_ivs_after_vectorizer): likewise.
16543 * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
16544 (vect_analyze_scalar_cycles_1): likewise.
16545 (vect_analyze_loop_operations): likewise.
16546 (report_vect_op): likewise.
16547 (vect_is_slp_reduction): likewise.
16548 (vect_is_simple_reduction): likewise.
16549 (get_initial_def_for_induction): likewise.
16550 (vect_transform_loop): likewise.
16551 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
16552 (vect_recog_sad_pattern): likewise.
16553 (vect_recog_widen_sum_pattern): likewise.
16554 (vect_recog_widening_pattern): likewise.
16555 (vect_recog_divmod_pattern): likewise.
16556 * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
16557 (vect_analyze_slp_instance): likewise.
16558 (vect_transform_slp_perm_load): likewise.
16559 (vect_schedule_slp_instance): likewise.
16561 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
16563 * predict.c (predict_iv_comparison): Mention that heuristics is broken.
16564 (return_prediction): PRED_CONST_RETURN predict return as not taken.
16565 * predict.def (PRED_CONTINUE): Change hitrate 50->67
16566 (PRED_LOOP_BRANCH): Document predictor as broken.
16567 (PRED_LOOP_EXIT): Change hitrate 91->92.
16568 (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
16569 (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
16570 (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
16571 (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
16572 (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
16573 (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
16574 (PRED_CALL): Chane hitrate 71->67.
16575 (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
16576 (PRED_GOTO): Document as unused right now.
16577 (PRED_CONST_RETURN): Change hitrate 67->69
16578 (PRED_NEGATIVE_RETURN): Change hitrate 96->98
16579 (PRED_NULL_RETURN): Change hitrate 91->90.
16580 (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
16581 (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
16582 (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
16584 2016-06-07 Bill Seurer <seurer@linux.vnet.ibm.com>
16586 * config/rs6000/altivec.h: Add __builtin_vec_mul.
16587 * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
16588 special case Altivec builtin.
16589 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
16590 VSX_BUILTIN_VEC_MUL (replaced with special case code).
16591 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
16592 code for ALTIVEC_BUILTIN_VEC_MUL.
16593 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
16594 for __builtin_vec_mul.
16596 2016-06-07 Peter Bergner <bergner@vnet.ibm.com>
16598 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
16601 2016-06-07 David Malcolm <dmalcolm@redhat.com>
16603 * spellcheck.c (selftest::test_find_closest_string): New function.
16604 (spellcheck_c_tests): Call the above.
16606 2016-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16608 * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
16610 2016-06-07 Jakub Jelinek <jakub@redhat.com>
16612 * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
16613 Yv=Yv,C alternatives.
16615 2016-06-07 Richard Biener <rguenther@suse.de>
16618 * common.opt (ffast-math): Make Optimization.
16620 2016-06-07 Simon Dardis <simon.dardis@imgtec.com>
16621 Prachi Godbole <prachi.godbole@imgtec.com>
16623 * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
16624 `fabs' and `fneg' type attributes.
16625 (p5600_fpu_fabs): Add `fmove' to the comment.
16627 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
16629 * gimple.c: Include builtins.h
16630 (gimple_inexpensive_call_p): New function.
16631 * gimple.h (gimple_inexpensive_call_p): Declare.
16632 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
16633 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
16636 2016-06-07 Paolo Carlini <paolo.carlini@oracle.com>
16638 * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
16639 (inform, inform_at_rich_loc, inform_n, warning, warning_at,
16640 warning_at_rich_loc, warning_n, pedwarn, permerror,
16641 permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
16642 sorry, fatal_error, internal_error, internal_error_no_backtrace):
16645 2016-06-07 Richard Biener <rguenther@suse.de>
16647 PR tree-optimization/71428
16648 * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
16649 BIT_FIELD_REF op vs. load.
16651 2016-06-07 Richard Biener <rguenther@suse.de>
16653 PR middle-end/71423
16654 * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
16657 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
16659 * config/pa/pa.md (call): Generate indirect long calls to non-local
16660 functions on TARGET_64BIT.
16661 (call_value): Likewise.
16663 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
16665 * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
16666 pattern and subsequent splitters.
16667 (call_val_reg_64bit_post_reload): Likewise.
16669 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
16671 PR middle-end/71408
16672 * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
16673 propagate_op_to_single_use.
16675 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
16677 PR middle-end/71281
16678 * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
16680 2016-06-07 Uros Bizjak <ubizjak@gmail.com>
16682 * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
16683 (enum x86_dirflag_state): New enum.
16684 (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
16685 (machine_function): Remove needs_cld.
16686 (ix86_current_function_needs_cld): Remove.
16687 * config/i386/i386.c (ix86_set_func_type): Set
16688 ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
16689 (ix86_expand_prologue): Do not emit CLD here.
16690 (ix86_dirflag_mode_needed): New function.
16691 (ix86_dirflag_mode_entry): Ditto.
16692 (ix86_mode_needed): Handle X86_DIRFLAG entity.
16693 (ix86_mode_after): Ditto.
16694 (ix86_mode_entry): Ditto.
16695 (ix86_mode_exit): Ditto.
16696 (ix86_emit_mode_set): Ditto.
16697 * config/i386/i386.md (strmov_singleop): Set
16698 ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
16699 Do not set ix86_current_function_needs_cld.
16701 (strset_singleop): Ditto.
16703 (cmpstrnqi_nz_1): Ditto.
16704 (cmpstrnqi_1): Ditto.
16705 (strlenqi_1): Ditto.
16707 2016-06-06 Jakub Jelinek <jakub@redhat.com>
16709 PR tree-optimization/71259
16710 * tree-vect-slp.c (vect_get_constant_vectors): For
16711 VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
16712 one for constant op, and use COND_EXPR for non-constant.
16714 2016-06-06 David Malcolm <dmalcolm@redhat.com>
16716 * Makefile.in (OBJS): Add function-tests.o,
16717 hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
16718 selftest-run-tests.o.
16719 (OBJS-libcommon): Add selftest.o.
16720 (OBJS-libcommon-target): Add selftest.o.
16721 (all.internal): Add "selftest".
16722 (all.cross): Likewise.
16723 (selftest): New phony target.
16724 (s-selftest): New target.
16725 (selftest-gdb): New phony target.
16726 (COLLECT2_OBJS): Add selftest.o.
16727 * bitmap.c: Include "selftest.h".
16728 (selftest::test_gc_alloc): New function.
16729 (selftest::test_set_range): New function.
16730 (selftest::test_clear_bit_in_middle): New function.
16731 (selftest::test_copying): New function.
16732 (selftest::test_bitmap_single_bit_set_p): New function.
16733 (selftest::bitmap_c_tests): New function.
16734 * common.opt (fself-test): New.
16735 * diagnostic-show-locus.c: Include "selftest.h".
16736 (make_range): New function.
16737 (test_range_contains_point_for_single_point): New function.
16738 (test_range_contains_point_for_single_line): New function.
16739 (test_range_contains_point_for_multiple_lines): New function.
16740 (assert_eq): New function.
16741 (test_get_line_width_without_trailing_whitespace): New function.
16742 (selftest::diagnostic_show_locus_c_tests): New function.
16743 * et-forest.c: Include "selftest.h".
16744 (selftest::test_single_node): New function.
16745 (selftest::test_simple_tree): New function.
16746 (selftest::test_disconnected_nodes): New function.
16747 (selftest::et_forest_c_tests): New function.
16748 * fold-const.c: Include "selftest.h".
16749 (selftest::assert_binop_folds_to_const): New function.
16750 (selftest::assert_binop_folds_to_nonlvalue): New function.
16751 (selftest::test_arithmetic_folding): New function.
16752 (selftest::fold_const_c_tests): New function.
16753 * function-tests.c: New file.
16754 * gimple.c: Include "selftest.h".
16755 Include "gimple-pretty-print.h".
16756 (selftest::verify_gimple_pp): New function.
16757 (selftest::test_assign_single): New function.
16758 (selftest::test_assign_binop): New function.
16759 (selftest::test_nop_stmt): New function.
16760 (selftest::test_return_stmt): New function.
16761 (selftest::test_return_without_value): New function.
16762 (selftest::gimple_c_tests): New function.
16763 * hash-map-tests.c: New file.
16764 * hash-set-tests.c: New file.
16765 * input.c: Include "selftest.h".
16766 (selftest::assert_loceq): New function.
16767 (selftest::test_accessing_ordinary_linemaps): New function.
16768 (selftest::test_unknown_location): New function.
16769 (selftest::test_builtins): New function.
16770 (selftest::test_reading_source_line): New function.
16771 (selftest::input_c_tests): New function.
16772 * rtl-tests.c: New file.
16773 * selftest-run-tests.c: New file.
16774 * selftest.c: New file.
16775 * selftest.h: New file.
16776 * spellcheck.c: Include "selftest.h".
16777 (selftest::levenshtein_distance_unit_test_oneway): New function,
16778 adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
16779 (selftest::levenshtein_distance_unit_test): Likewise.
16780 (selftest::spellcheck_c_tests): Likewise.
16781 * toplev.c: Include selftest.h.
16782 (toplev::run_self_tests): New.
16783 (toplev::main): Handle -fself-test.
16784 * toplev.h (toplev::run_self_tests): New.
16785 * tree.c: Include "selftest.h".
16786 (selftest::test_integer_constants): New function.
16787 (selftest::test_identifiers): New function.
16788 (selftest::test_labels): New function.
16789 (selftest::tree_c_tests): New function.
16790 * tree-cfg.c: Include "selftest.h".
16791 (selftest::push_fndecl): New function.
16792 (selftest::test_linear_chain): New function.
16793 (selftest::test_diamond): New function.
16794 (selftest::test_fully_connected): New function.
16795 (selftest::tree_cfg_c_tests): New function.
16796 * vec.c: Include "selftest.h".
16797 (selftest::safe_push_range): New function.
16798 (selftest::test_quick_push): New function.
16799 (selftest::test_safe_push): New function.
16800 (selftest::test_truncate): New function.
16801 (selftest::test_safe_grow_cleared): New function.
16802 (selftest::test_pop): New function.
16803 (selftest::test_safe_insert): New function.
16804 (selftest::test_ordered_remove): New function.
16805 (selftest::test_unordered_remove): New function.
16806 (selftest::test_block_remove): New function.
16807 (selftest::reverse_cmp): New function.
16808 (selftest::test_qsort): New function.
16809 (selftest::vec_c_tests): New function.c.
16810 * wide-int.cc: Include selftest.h and wide-int-print.h.
16811 (selftest::from_int <wide_int>): New function.
16812 (selftest::from_int <offset_int>): New function.
16813 (selftest::from_int <widest_int>): New function.
16814 (selftest::assert_deceq): New function.
16815 (selftest::assert_hexeq): New function.
16816 (selftest::test_printing <VALUE_TYPE>): New function template.
16817 (selftest::test_ops <VALUE_TYPE>): New function template.
16818 (selftest::test_comparisons <VALUE_TYPE>): New function template.
16819 (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
16821 (selftest::wide_int_cc_tests): New function.
16823 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16825 PR middle-end/37780
16826 * ifcvt.c (noce_try_ifelse_collapse): New function.
16828 (noce_process_if_block): Call noce_try_ifelse_collapse.
16829 * simplify-rtx.c (simplify_cond_clz_ctz): New function.
16830 (simplify_ternary_operation): Use the above to simplify
16831 conditional CLZ/CTZ expressions.
16833 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16835 PR middle-end/37780
16836 * config/aarch64/aarch64.md (ctz<mode>2): Convert to
16837 define_insn_and_split.
16839 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16841 PR middle-end/37780
16842 * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
16844 2016-06-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
16847 * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
16848 Implicitly clobber memory for basic asm with non-empty assembler
16849 string. Use targetm.md_asm_adjust also here.
16850 * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
16851 * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
16852 * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
16853 non-empty assembler string.
16854 * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
16855 * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
16856 (decode_asm_operands): Handle basic asm in PARALLEL block.
16857 (extract_insn): Handle basic asm in PARALLEL block.
16858 * doc/extend.texi: Mention new behavior of basic asm.
16859 * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
16860 * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
16861 branch_needs_nop_p): Use asm_noperands.
16863 2016-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
16865 * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
16866 Include the M7 SPARC DFA scheduler.
16867 New attribute v3pipe.
16868 Annotate insns with v3pipe where appropriate.
16869 Define cpu_feature vis4.
16870 Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
16871 Add (V8QI "8") to vbits.
16872 Add insns {add,sub}v8qi3
16873 Add insns ss{add,sub}v8qi3
16874 Add insns us{add,sub}{v8qi,v4hi}3
16875 Add insns {min,max}{v8qi,v4hi,v2si}3
16876 Add insns {minu,maxu}{v8qi,v4hi,v2si}3
16877 Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
16878 * config/sparc/niagara4.md: Add a comment explaining the
16879 discrepancy between the documented latenty numbers and the
16881 * config/sparc/niagara7.md: New file.
16882 * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
16883 supports SPARC5 and VIS 4.0 instructions.
16884 * configure: Regenerate.
16885 * config.in: Likewise.
16886 * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
16887 * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
16888 TARGET_CPU_niagara7.
16889 (ASM_CPU64_DEFAULT_SPEC): Likewise.
16890 (CPP_CPU_SPEC): Handle niagara7.
16891 (ASM_CPU_SPEC): Likewise.
16892 * config/sparc/sparc-opts.h (processor_type): Add
16893 PROCESSOR_NIAGARA7.
16894 (mvis4): New option.
16895 * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
16896 (AS_NIAGARA7_FLAG): Define.
16897 (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
16898 (CPP_CPU64_DEFAULT_SPEC): Likewise.
16899 (CPP_CPU_SPEC): Handle niagara7.
16900 (ASM_CPU_SPEC): Likewise.
16901 * config/sparc/sparc.c (niagara7_costs): Define.
16902 (sparc_option_override): Handle niagara7 and adjust cache-related
16903 parameters with better values for niagara cpus. Also support VIS4.
16904 (sparc32_initialize_trampoline): Likewise.
16905 (sparc_use_sched_lookahead): Likewise.
16906 (sparc_issue_rate): Likewise.
16907 (sparc_register_move_cost): Likewise.
16908 (dump_target_flag_bits): Support VIS4.
16909 (sparc_vis_init_builtins): Likewise.
16910 (sparc_builtins): Likewise.
16911 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
16913 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
16915 * config/sparc/sparc.opt (sparc_processor_type): New value
16917 * config/sparc/visintrin.h (__attribute__): Prototypes for the
16919 * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
16921 * doc/extend.texi (SPARC VIS Built-in Functions): Document the
16924 2016-06-06 Jonathan Wakely <jwakely@redhat.com>
16926 * doc/sourcebuild.texi (Directives): Remove extra closing braces.
16928 2016-06-06 Richard Biener <rguenther@suse.de>
16930 PR tree-optimization/71398
16931 * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
16934 2016-06-05 James Bowman <james.bowman@ftdichip.com>
16936 * config/ft32/ft32.c (ft32_setup_incoming_varargs,
16937 ft32_expand_prolog, ft32_expand_epilogue):
16938 Handle pretend_args.
16939 * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
16940 * config/ft32/ft32.md: Add pretend_returner.
16942 2016-06-06 Uros Bizjak <ubizjak@gmail.com>
16945 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
16946 Copy op1 RTX to avoid invalid sharing.
16947 (ix86_expand_vector_move_misalign): Ditto.
16949 2016-06-05 John David Anglin <danglin@gcc.gnu.org>
16951 * expr.c (move_by_pieces_d::generate): Mark mode parameter with
16954 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
16956 * predict.c (predicted_by_loop_heuristics_p): New function.
16957 (predict_iv_comparison): Use it.
16958 (predict_loops): Walk from innermost loops; do not predict edges
16959 leaving multiple loops multiple times; implement
16960 PRED_LOOP_ITERATIONS_MAX heuristics.
16961 * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
16963 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
16965 * cfg.c (check_bb_profile): Do not report mismatched profiles when
16966 only edges out of BB are EH edges.
16968 2016-06-04 Martin Sebor <msebor@redhat.com>
16969 Marcin Baczyński <marbacz@gmail.com>
16972 * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
16973 a void expression in a void function.
16975 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
16977 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
16978 aux; dump reasons of decisions.
16979 (should_duplicate_loop_header_p): Likewise.
16980 (do_while_loop_p): Likewise.
16981 (ch_base::copy_headers): Dump asi num insns duplicated.
16983 2016-06-04 Jakub Jelinek <jakub@redhat.com>
16985 PR tree-optimization/71405
16986 * tree-ssa.c (execute_update_addresses_taken): For clobber with
16987 incompatible type, build a new clobber with the right type instead
16988 of building a VIEW_CONVERT_EXPR around it.
16990 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
16992 PR tree-optimization/52171
16993 * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
16994 by_pieces_ninsns instead of move_by_pieces_ninsns.
16996 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
16998 * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
16999 for reg+reg addressing mode.
17001 2016-06-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17003 * rs6000-c.c (c/c-tree.h): Add #include.
17004 (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
17005 in C++ when found in the base position of vec_ld or vec_st.
17007 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
17009 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
17010 use of profile unless profile status is PROFILE_READ.
17011 * profile.c (compute_branch_probabilities): Set profile status
17012 only after reporting predictor hitrates.
17014 2016-06-03 Joseph Myers <joseph@codesourcery.com>
17018 * common.opt (ffp-int-builtin-inexact): New option.
17019 * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
17020 * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
17021 (ceil@var{m}2): Document dependence on this option.
17022 * ipa-inline-transform.c (inline_call): Handle
17023 flag_fp_int_builtin_inexact.
17024 * ipa-inline.c (can_inline_edge_p): Likewise.
17025 * config/i386/i386.md (rintxf2): Do not test
17026 flag_unsafe_math_optimizations.
17027 (rint<mode>2_frndint): New define_insn.
17028 (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
17029 or !flag_trapping_math for SSE. Just use gen_rint<mode>2_frndint
17030 for 387 instead of extending and truncating.
17031 (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
17032 !flag_trapping_math instead of flag_unsafe_math_optimizations.
17033 Change to frndint<mode>2_<rounding>.
17034 (frndintxf2_<rounding>_i387): Likewise. Change to
17035 frndint<mode>2_<rounding>_i387.
17036 (<rounding_insn>xf2): Likewise.
17037 (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
17038 !flag_trapping_math instead of flag_unsafe_math_optimizations for
17039 x87. Test TARGET_ROUND || !flag_trapping_math ||
17040 flag_fp_int_builtin_inexact instead of !flag_trapping_math for
17041 SSE. Use ROUND_NO_EXC in constant operand of
17042 gen_sse4_1_round<mode>2. Just use gen_frndint<mode>2_<rounding>
17043 for 387 instead of extending and truncating.
17045 2016-06-03 H.J. Lu <hongjiu.lu@intel.com>
17046 Julia Koval <julia.koval@intel.com>
17058 * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
17059 * config/i386/i386.c (ix86_conditional_register_usage): Preserve
17060 all registers, except for function return registers if there are
17061 no caller-saved registers.
17062 (ix86_set_func_type): New function.
17063 (ix86_set_current_function): Call ix86_set_func_type to set
17064 no_caller_saved_registers and func_type. Call reinit_regs if
17065 caller-saved registers are changed. Don't allow MPX, SSE, MMX
17066 nor x87 instructions in interrupt handler nor function with
17067 no_caller_saved_registers attribute.
17068 (ix86_function_ok_for_sibcall): Return false if there are no
17069 caller-saved registers.
17070 (type_natural_mode): Don't warn ABI change for MMX in interrupt
17072 (ix86_function_arg_advance): Skip for callee in interrupt handler.
17073 (ix86_function_arg): Return special arguments in interrupt handler.
17074 (ix86_promote_function_mode): Promote pointer to word_mode only
17075 for normal functions.
17076 (ix86_can_use_return_insn_p): Don't use `ret' instruction in
17078 (ix86_epilogue_uses): New function.
17079 (ix86_hard_regno_scratch_ok): Likewise.
17080 (ix86_save_reg): Preserve all registers in interrupt handler
17081 after reload. Preserve all registers, except for function return
17082 registers, if there are no caller-saved registers after reload.
17083 (find_drap_reg): Always use callee-saved register if there are
17084 no caller-saved registers.
17085 (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
17086 for interrupt handler.
17087 (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
17088 Emit cld instruction if stringops are used in interrupt handler
17089 or interrupt handler isn't a leaf function.
17090 (ix86_expand_epilogue): Generate interrupt return for interrupt
17091 handler and pop the 'ERROR_CODE' off the stack before interrupt
17092 return in exception handler.
17093 (ix86_expand_call): Disallow calling interrupt handler directly.
17094 If there are no caller-saved registers, mark all registers that
17095 are clobbered by the call which returns as clobbered.
17096 (ix86_handle_no_caller_saved_registers_attribute): New function.
17097 (ix86_handle_interrupt_attribute): Likewise.
17098 (ix86_attribute_table): Add interrupt and no_caller_saved_registers
17100 (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
17101 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
17102 accumulation in interrupt function if stack may be realigned to
17104 (EPILOGUE_USES): New.
17105 (function_type): New enum.
17106 (machine_function): Add func_type and no_caller_saved_registers.
17107 * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
17108 (interrupt_return): New pattern.
17109 * doc/extend.texi: Document x86 interrupt and
17110 no_caller_saved_registers attributes.
17112 2016-06-03 Bernd Schmidt <bschmidt@redhat.com>
17114 PR tree-optimization/52171
17115 * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
17116 (expand_builtin_memcmp): New arg RESULT_EQ. All callers changed.
17117 Look for constant strings. Move some code to emit_block_cmp_hints
17119 * builtins.def (BUILT_IN_MEMCMP_EQ): New.
17120 * defaults.h (COMPARE_MAX_PIECES): New macro.
17121 * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
17122 (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
17123 (clear_by_pieces_1): Don't declare. Move definition before use.
17124 (can_do_by_pieces): New static function.
17125 (can_move_by_pieces): Use it. Return bool.
17126 (by_pieces_ninsns): Renamed from move_by_pieces_ninsns. New arg
17127 OP. All callers changed. Handle COMPARE_BY_PIECES.
17128 (class pieces_addr); New.
17129 (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
17130 pieces_addr::adjust, pieces_addr::increment_address,
17131 pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
17133 (class op_by_pieces_d): New.
17134 (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
17136 (class move_by_pieces_d, class compare_by_pieces_d,
17137 class store_by_pieces_d): New subclasses of op_by_pieces_d.
17138 (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
17139 move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
17140 store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
17141 compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
17142 compare_by_pieces_d::finish_mode): New member functions.
17143 (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
17145 (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
17146 (emit_block_cmp_hints): New function.
17147 (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
17148 use the newly defined classes.
17149 * expr.h (by_pieces_constfn): New typedef.
17150 (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
17151 (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
17152 (move_by_pieces_ninsns): Don't declare.
17153 (can_move_by_pieces): Change return value to bool.
17154 * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
17155 (compare_by_pieces_branch_ratio): New hook.
17156 * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
17157 (by_pieces_ninsns): Declare.
17158 * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
17160 (default_compare_by_pieces_branch_ratio): New function.
17161 * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
17162 * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
17163 * doc/tm.texi: Regenerate.
17164 * tree-ssa-strlen.c: Include "builtins.h".
17165 (handle_builtin_memcmp): New static function.
17166 (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
17167 * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
17169 2016-06-03 Alan Hayward <alan.hayward@arm.com>
17171 * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
17172 relevant stmts which are simple and invariant.
17173 * tree-vect-loop.c (vectorizable_live_operation): Check relevance
17174 instead of simple and invariant
17176 2016-06-03 Alan Hayward <alan.hayward@arm.com>
17178 * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
17179 (vectorizable_reduction): Check for new relevant state.
17180 (vectorizable_live_operation): vectorize live stmts using
17181 BIT_FIELD_REF. Remove special case for gimple assigns stmts.
17182 * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
17183 (vect_stmt_relevant_p): Check for stmts which are only used live.
17184 (process_use): Use of a stmt does not inherit it's live value.
17185 (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
17186 (vect_analyze_stmt): Check for new relevant state.
17187 * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
17188 outside the loop, but not inside it.
17190 2016-06-03 Alan Hayward <alan.hayward@arm.com>
17192 * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
17193 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
17194 (vect_get_vec_def_for_operand): Split out code.
17196 2016-06-03 Segher Boessenkool <segher@kernel.crashing.org>
17198 * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
17200 2016-06-03 Alan Hayward <alan.hayward@arm.com>
17202 * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
17204 2016-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17206 * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
17208 2016-06-03 Jakub Jelinek <jakub@redhat.com>
17210 PR middle-end/71387
17211 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
17212 to noreturn e->callee->decl that has void return type and void
17213 arguments, adjust gimple_call_fntype and remove lhs even if it had
17214 previously addressable type.
17216 2016-06-02 Jeff Law <law@redhat.com>
17218 PR tree-optimization/71328
17219 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
17220 error when checking for a jump back onto the copied path.
17222 2016-06-02 David Malcolm <dmalcolm@redhat.com>
17224 * config/microblaze/microblaze.c (get_branch_target): Add return
17225 NULL_RTX for the non-CALL_P case.
17226 (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
17227 (insert_wic): Remove unused local "j".
17229 2016-06-02 Martin Liska <mliska@suse.cz>
17231 * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
17233 2016-06-02 H.J. Lu <hongjiu.lu@intel.com>
17234 Julia Koval <julia.koval@intel.com>
17236 * function.c (assign_parm_setup_stack): Force source into a
17237 register if needed.
17238 * target.def (function_incoming_arg): Update documentation to
17239 allow arbitrary address computation based on hard register.
17240 * doc/tm.texi: Regenerated.
17242 2016-06-02 Martin Liska <mliska@suse.cz>
17244 * predict.c (combine_predictions_for_bb): Fix first match in
17245 cases where a first predictor contains more than one occurence
17246 in list of predictors. Take the best value in such case.
17248 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17250 PR rtl-optimization/71295
17251 * rtlanal.c (subreg_get_info): If taking a subreg at the requested
17252 offset would go over the size of the inner mode reject it.
17254 2016-06-02 Jakub Jelinek <jakub@redhat.com>
17256 * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
17257 x=x,x and v=v,m instead of x=x,m.
17259 * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
17260 alternative. Change x=x,x alternative to v=Yv,Yv and x=rm,C
17261 alternative to v=rm,C.
17263 * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
17264 alternative. Change x=xm,C alternative to v=vm,C, x=x,x alternative
17265 to v=Yv,Yv and x=x,m to v=v,m. Use maybe_evex prefix attribute
17266 instead of vex for the last two above mentioned alternatives.
17268 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17271 * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
17273 2016-06-02 Segher Boessenkool <segher@kernel.crashing.org>
17275 * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
17277 2016-06-01 David Malcolm <dmalcolm@redhat.com>
17279 * config/rl78/rl78.c (rl78_expand_prologue): Convert local
17280 from int to unsigned.
17282 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
17284 * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
17285 alternatives, eliminating preferred register class. Add support
17286 for the MTVSRDD instruction in ISA 3.0.
17287 (vsx_splat_v4si_internal): Use splat_input_operand instead of
17288 reg_or_indexed_operand.
17289 (vsx_splat_v4sf_internal): Likewise.
17291 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
17294 * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
17295 for loading up all 0's or all 1's.
17297 2016-06-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
17299 * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
17301 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
17303 * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
17305 * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
17306 * gcc.c (set_source_date_epoch_envvar): New function, sets
17307 the SOURCE_DATE_EPOCH environment variable to the current time.
17309 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
17311 * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
17312 the factor for live Phi nodes.
17314 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
17316 * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
17317 * tree-parloops.c (parallelize_loops): likewise.
17318 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
17319 tree_unswitch_outer_loop): likewise.
17321 2016-06-01 Jakub Jelinek <jakub@redhat.com>
17323 PR middle-end/71371
17324 * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
17325 around creation of the temporary.
17327 2016-06-01 Richard Biener <rguenther@suse.de>
17329 PR tree-optimization/71366
17330 * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
17331 (unloop_loops): Move removing edges here ...
17332 (try_unroll_loop_completely): ... from here.
17333 (try_peel_loop): ... and here.
17334 (tree_unroll_loops_completely_1): Track parent loops via
17335 bitmap of header BBs.
17336 (tree_unroll_loops_completely): Adjust for that.
17338 2016-06-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
17340 * config/rs6000/altivec.h (vec_slv): New macro.
17341 (vec_srv): New macro.
17342 * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
17343 (UNSPEC_VSRV): New value.
17346 * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
17347 (vsrv): New builtin definition.
17348 * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
17349 define argument types for new builtin.
17350 (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
17352 * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
17355 2016-06-01 Uros Bizjak <ubizjak@gmail.com>
17356 Jocelyn Mayer <l_indien@magic.fr>
17359 * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
17360 detect processor family for signature_CENTAUR_ebx.
17361 <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
17362 signature_CENTAUR_ebx.
17363 <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
17364 <default>: Pass x86-64 for has_longmode.
17366 2016-06-01 Nathan Sidwell <nathan@acm.org>
17368 * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
17371 2016-06-01 Richard Biener <rguenther@suse.de>
17373 PR tree-optimization/71261
17374 * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
17375 of stmts successfully put in the bool pattern. Remove
17376 single-use restriction.
17377 (adjust_bool_pattern_cast): Add cast at the use site via the
17378 pattern def sequence.
17379 (adjust_bool_pattern): Remove recursion, maintain a hash-map
17380 of patterned defs. Use the pattern def seqence instead of
17381 multiple independent patterns.
17382 (sort_after_uid): New qsort compare function.
17383 (adjust_bool_stmts): New function to process stmts in the bool
17384 pattern in IL order.
17385 (vect_recog_bool_pattern): Adjust.
17386 * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
17387 (ifcvt_walk_pattern_tree): Likewise.
17388 (stmt_is_root_of_bool_pattern): Likewise.
17389 (ifcvt_repair_bool_pattern): Likewise.
17390 (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
17392 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
17394 * loop-unroll.c (decide_unroll_constant_iterations,
17395 decide_unroll_runtime_iterations, decide_unroll_stupid): Use
17396 likely upper bounds.
17397 * loop-iv.c (find_simple_exit): Dump likely upper bounds.
17399 2016-06-01 Thomas Schwinge <thomas@codesourcery.com>
17401 * tree-core.h (enum omp_clause_code): Remove
17402 OMP_CLAUSE_DEVICE_RESIDENT. Adjust all users.
17404 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17406 * config/arm/sync.md (arm_store_exclusive<mode>):
17407 Use 'H' output modifier on operands[2] rather than creating a new
17408 entry in out-of-bounds memory of the operands array.
17409 (arm_store_release_exclusivedi): Likewise.
17411 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17413 * config/arm/arm.c (arm_fusion_enabled_p): New function.
17414 * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
17415 * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
17416 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
17418 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
17420 * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
17421 into account live statements for mask producers.
17423 2016-06-01 Richard Biener <rguenther@suse.de>
17425 PR tree-optimization/71311
17426 * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
17427 restrict to non-INTEGER_CST @0.
17429 2016-06-01 Richard Biener <rguenther@suse.de>
17431 * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
17432 (relational patterns): Use :c to avoid pattern duplications.
17434 2016-06-01 Richard Biener <rguenther@suse.de>
17436 * genmatch.c (comparison_code_p): New predicate.
17437 (swap_tree_comparison): New function.
17438 (commutate): Add for_vec parameter to append new for entries.
17439 Support commutating relational operators by swapping it alongside
17441 (lower_commutative): Adjust.
17442 (dt_simplify::gen): Do not pass artificial operators to gen
17444 (decision_tree::gen): Do not add artificial operators as parameters.
17445 (parser::parse_expr): Verify operator commutativity when :c is
17446 applied. Allow :C to override this.
17447 * match.pd: Adjust patterns to use :C instead of :c where required.
17449 2016-06-01 Patrick Palka <ppalka@gcc.gnu.org>
17451 PR tree-optimization/71077
17452 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
17453 the combining step, use boolean_false_node and boolean_true_node
17454 as the designated false/true return values.
17456 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
17458 * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
17459 * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
17460 (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
17463 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
17465 * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
17466 of flags impliying the register renaming.
17467 * toplev.c (process_options): Do not imply flag_rename_registers with
17470 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
17472 * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
17473 default implementation.
17475 2016-05-31 Nathan Sidwell <nathan@acm.org>
17477 * dwarf2out.c (cur_line_info_table): Add GTY marker.
17479 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
17481 * config/sh/constraints.md (b): Remove constraint.
17482 * config/sh/predicates.md (arith_reg_operand): Remove
17484 * config/sh/sh-modes.def (PDI): Remove.
17485 * config/sh/sh.c (sh_target_reg_class,
17486 sh_optimize_target_register_callee_saved): Remove functions.
17487 (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
17488 (sh_expand_epilogue): Update comment.
17489 (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
17490 sh_secondary_reload): Remove TARGET_REGS related code.
17491 * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
17492 TARGET_REGISTER_P): Remove macros.
17493 (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
17494 * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
17495 TR1_REG, TR2_REG): Remove constants.
17496 * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
17498 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
17500 * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
17501 define_expand patterns.
17502 (adddi3_compact): Rename to adddi3.
17503 (subdi3_compact): Rename to subdi3.
17504 (*negdi2): Rename to negdi2.
17505 (*abs<mode>2): Rename to abs<mode>2.
17507 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
17509 * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
17510 (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
17511 (atomic_sub_fetchsi): ... this new pattern.
17512 (mvtc): Add CC_REG clobber.
17514 2016-05-31 Marek Polacek <polacek@redhat.com>
17516 * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
17518 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17520 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
17521 aarch64_fusion_enabled_p to check for fusion capabilities.
17523 2016-05-31 Richard Biener <rguenther@suse.de>
17525 PR tree-optimization/71352
17526 * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
17527 minus one and a negate.
17529 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17531 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
17532 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
17534 * config/aarch64/iterators.md (insn_count): Add descriptive comment.
17535 * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
17536 Remove use of aarch64_simd_attr_length_move, set length attribute
17538 (*aarch64_be_movoi): Likewise.
17539 (*aarch64_be_movci): Likewise.
17540 (*aarch64_be_movxi): Likewise.
17542 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
17544 * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
17545 It no longer does that.
17546 * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
17548 2016-05-31 Wladimir J. van der Laan <laanwj@gmail.com>
17550 * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
17551 attribute __unused__.
17553 2016-05-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
17555 * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
17556 * config/arm/arm.c (arm_arch_thumb1): Define.
17557 (arm_option_override): Initialize arm_arch_thumb1.
17558 * config/arm/arm.h (arm_arch_thumb1): Declare.
17559 (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
17560 support Thumb-1 ISA.
17562 2016-05-31 Kirill Yukhin <kirill.yukhin@intel.com>
17565 * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
17566 `Yv' for scalar operand.
17568 2016-05-31 Tom de Vries <tom@codesourcery.com>
17570 PR tree-optimization/69068
17571 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
17572 phis with more than two args.
17574 2016-05-30 Andreas Tobler <andreast@gcc.gnu.org>
17576 * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
17577 armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
17580 2016-05-30 Jose E. Marchesi <jose.marchesi@oracle.com>
17582 * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
17584 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
17586 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
17587 cpu_32, cpu_64, tune_32 and tune_64.
17588 * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
17590 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
17592 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
17594 2016-05-30 Andi Kleen <ak@linux.intel.com>
17596 * auto-profile.c (read_profile): Replace asserts with errors
17597 when file does not exist.
17598 * gcov-io.c (gcov_read_words): Dito.
17600 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
17602 * tree-cfg.c (print_loop): Print likely upper bounds.
17604 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
17606 * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
17607 * opts.c (default_options): Enable peel loops at -O3.
17608 * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
17609 (try_peel_loop): Do not re-peel already peeled loops;
17610 use likely upper bounds; fix profile updating.
17611 (pass_complete_unroll::execute): Initialize peeled_loops.
17613 2016-05-30 Martin Liska <mliska@suse.cz>
17615 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
17616 computed costs by frequency of BB they belong to.
17617 (get_scaled_computation_cost_at): New function.
17619 2016-05-30 Alexander Monakov <amonakov@ispras.ru>
17620 Marc Glisse <marc.glisse@inria.fr>
17622 PR tree-optimization/71289
17623 * match.pd (-1 / B < A, A > -1 / B): New transformations.
17625 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
17627 * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
17629 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
17631 * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
17632 for peeled copies; avoid underflow when updating estimates; correctly
17633 scale loop profile.
17635 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
17637 * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
17638 r236875. Corrected oe3 to oe2 as obvious.
17640 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
17642 PR middle-end/71269
17643 PR middle-end/71252
17644 * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
17645 that inserted stmt will not dominate stmts that defines its operand.
17646 (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
17647 (rewrite_expr_tree_parallel): Likewise.
17649 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
17651 PR middle-end/71252
17652 * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
17653 all fields including stmt_to_insert are swapped.
17655 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
17657 * predict.h (force_edge_cold): Declare.
17658 * predict.c (force_edge_cold): New function.
17659 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
17661 (canonicalize_loop_induction_variables): Fix formating.
17663 2016-05-30 Eric Botcazou <ebotcazou@adacore.com>
17665 * config/visium/visium.c (visium_split_double_add): Minor tweaks.
17666 (visium_expand_copysign): Use gen_int_mode directly.
17667 (visium_compute_frame_size): Minor tweaks.
17669 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
17671 * tree-vect-loop.c (vect_analyze_loop_2): Use
17672 likely_max_stmt_executions_int.
17674 2016-05-30 Tom de Vries <tom@codesourcery.com>
17676 PR tree-optimization/69067
17677 * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
17679 2016-05-29 Uros Bizjak <ubizjak@gmail.com>
17682 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
17683 New peepholes to remove unneeded fild/fistp pairs.
17684 (define_peephole2 atomic_loaddi_fpu): Ditto.
17686 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
17688 * predict.c (maybe_hot_frequency_p): Avoid division.
17690 2016-05-28 Gerald Pfeifer <gerald@pfeifer.com>
17692 * doc/install.texi: Use https for shop.fsf.org.
17694 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
17696 * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
17697 likely_max_stmt_executions_int.
17699 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
17701 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
17702 likely_max_stmt_executions_int.
17704 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
17706 * profile.c (compute_branch_probabilities): Do not report hitrates
17708 (branch_prob): Report hitrates here.
17709 * predict.c (gimple_predict_edge): Do not assert profile status;
17710 fix formatting issues.
17712 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
17714 * predict.c (edge_predicted_by_p): New function.
17715 (predict_paths_for_bb): Do not put multiple predictions of the same type
17718 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
17720 * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
17723 2016-05-28 Alan Modra <amodra@gmail.com>
17725 * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
17727 2016-05-28 Alan Modra <amodra@gmail.com>
17729 PR rtl-optimization/71275
17730 * ira.c (ira): Free dominance info.
17732 2016-05-27 Gerald Pfeifer <gerald@pfeifer.com>
17734 * doc/sourcebuild.texi: New address for upstream Go repository.
17736 2016-05-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
17738 * config/arm/arm.h (TARGET_ARM_V6M): Remove.
17739 (TARGET_ARM_V7M): Likewise.
17741 2016-05-26 Jeff Law <law@redhat.com>
17743 * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
17744 (thread_across_edge): Remove calls to find_jump_threads_backwards.
17745 * passes.def: Add jump threading passes before DOM/VRP.
17746 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
17747 argument to a basic block from an edge. Remove tests which are
17749 (pass_data_thread_jumps, class pass_thread_jumps): New.
17750 (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
17751 (make_pass_thread_jumps): Likewise.
17752 * tree-pass.h (make_pass_thread_jumps): Declare.
17754 2016-05-27 Eric Botcazou <ebotcazou@adacore.com>
17756 * config/visium/visium-protos.h (split_double_move): Rename into...
17757 (visium_split_double_move): ...this.
17758 (visium_split_double_add): Declare.
17759 * config/visium/visium.c (split_double_move): Rename into...
17760 (visium_split_double_move): ...this.
17761 (visium_split_double_add): New function.
17762 (visium_expand_copysign): Renumber operands for consistency.
17763 * config/visium/visium.md (DImode move splitter): Adjust to renaming.
17764 (DFmode move splitter): Likewise.
17765 (*addi3_insn): Split by means of visium_split_double_add.
17766 (*adddi3_insn_flags): Delete.
17767 (*plus_plus_sltu<subst_arith>): New insn.
17768 (*subdi3_insn): Split by means of visium_split_double_add.
17769 (subdi3_insn_flags): Delete.
17770 (*minus_minus_sltu<subst_arith>): New insn.
17771 (*negdi2_insn): Split by means of visium_split_double_add.
17772 (*negdi2_insn_flags): Delete.
17774 2016-05-27 Ulrich Weigand <uweigand@de.ibm.com>
17776 * configure.ac: Treat a --with-headers option without argument
17777 the same as the default (i.e. consult sys-include directory).
17778 * configure: Regenerate.
17780 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17782 * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
17783 * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
17785 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
17786 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
17788 2016-05-27 Jiong Wang <jiong.wang@arm.com>
17791 * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
17792 tree-stdarg analysis results.
17793 (aarch64_setup_incoming_varargs): Likewise.
17795 2016-05-27 Jiong Wang <jiong.wang@arm.com>
17797 * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
17798 va_list_gpr_counter_field and va_list_fpr_counter_field.
17800 2016-05-27 Wilco Dijkstra <wdijkstr@arm.com>
17803 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
17804 * config/aarch64/aarch64.c
17805 (aarch64_cannot_change_mode_class): Remove function.
17806 * config/aarch64/aarch64-protos.h
17807 (aarch64_cannot_change_mode_class): Remove.
17809 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
17811 * cfgloop.c (record_niter_bound): Record likely upper bounds.
17812 (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
17813 get_likely_max_loop_iterations_int): New.
17814 * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
17815 any_likely_upper_bound.
17816 (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
17818 * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
17819 * loop-unroll.c (unroll_loop_constant_iterations): Update likely
17821 (unroll_loop_constant_iterations): Likewise.
17822 (unroll_loop_runtime_iterations): Likewise.
17823 * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
17824 * lto-streamer-out.c (output_cfg): Likewise.
17825 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
17827 (canonicalize_loop_induction_variables): Dump likely upper bounds.
17828 * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
17829 (likely_max_loop_iterations): New.
17830 (likely_max_loop_iterations_int): New.
17831 (likely_max_stmt_executions): New.
17832 * tree-ssa-loop-niter.h (likely_max_loop_iterations,
17833 likely_max_loop_iterations_int, likely_max_stmt_executions_int,
17834 likely_max_stmt_executions): Declare.
17836 2016-05-27 Marek Polacek <polacek@redhat.com>
17838 PR middle-end/71308
17839 * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
17841 2016-05-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17843 * config/s390/s390.md (2x risbg splitters): Use
17844 reg_overlap_mentioned_p instead of rtx_equal_p.
17846 2016-05-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
17848 * combine.c (make_compound_operation): Take known zero bits into
17849 account when checking for possible zero_extend.
17851 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17853 * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
17854 Use const_int_operand for operand 2 predicate. Simplify expand code
17857 2016-05-27 Ilya Enkovich <ilya.enkovich@intel.com>
17859 PR middle-end/71279
17860 * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
17863 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17865 * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
17866 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
17867 that returns CC_SESWPmode and CC_ZESWPmode.
17868 (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
17870 (aarch64_rtx_costs): Likewise.
17872 2016-05-26 Michael Meissner <meissner@linux.vnet.ibm.com>
17874 * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
17875 for ISA 3.0 min/max support.
17876 (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
17877 conditional move support.
17878 (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
17879 rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
17881 * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
17882 conditional moves where the comparison type is different from move
17884 (fp_minmax): New code iterator for smin/smax.
17885 (minmax): New code attributes for min/max.
17886 (SMINMAX): Likewise.
17887 (smax<mode>3): Combine min, max insns into one insn using the
17888 fp_minmax code iterator. Add support for ISA 3.0 min/max
17889 instructions that don't need -ffast-math.
17890 (s<minmax><mode>3): Likewise.
17891 (smax<mode>3_vsx): Likewise.
17892 (smin<mode>3): Likewise.
17893 (s<minmax><mode>3_vsx): Likewise.
17894 (smin<mode>3_vsx): Likewise.
17895 (pre-VSX min/max splitters): Likewise.
17896 (s<minmax><mode>3_fpr): Likewise.
17897 (movsfcc): Rewrite floating point conditional moves to combine
17898 SFmode/DFmode into a single insn.
17899 (mov<mode>cc): Likewise.
17900 (movdfcc): Likewise.
17901 (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
17902 SFDF2 iterators to handle all combinations.
17903 (fseldfsf4): Likewise.
17904 (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
17905 (fseldfdf4): Likewise.
17906 (fselsfdf4): Likewise.
17907 (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
17908 comparison instructions that set a 0/-1 mask, and use it for
17909 floating point conditional move via XXSEL.
17910 (fpmask<mode>): Likewise.
17911 (xxsel<mode>): Likewise.
17912 * config/rs6000/predicates.md (min_max_operator): Delete, no
17914 (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
17915 instructions that generate a 0/-1 mask for use with XXSEL.
17916 * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
17917 say whether floating point min/max is available, either through
17918 FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
17919 (TARGET_MINMAX_DF): Likewise.
17921 2016-05-27 Alan Modra <amodra@gmail.com>
17923 PR rtl-optimization/71275
17924 * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
17925 for update_equiv_regs and combine_and_move_insns.
17927 2016-05-26 Uros Bizjak <ubizjak@gmail.com>
17929 * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
17930 if_then_else or cond RTXes to calculate attribute value.
17931 * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
17932 <attr "length_immediate>: Ditto.
17933 (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
17934 * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
17935 (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
17936 <attr "type">: Ditto.
17937 <attr "prefix_data16">: Ditto.
17938 <attr "prefix_extra">: Ditto.
17939 <attr "length_immediate">: Ditto.
17940 <attr "prefix">: Ditto.
17941 (vec_set<mode>_0) <attr "isa">: Ditto.
17942 <attr "prefix_extra">: Ditto.
17943 <attr "length_immediate">: Ditto.
17944 <attr "prefix">: Ditto.
17945 (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
17946 (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
17947 (sse2_storelpd) <attr "prefix_data16">: Ditto.
17948 (sse2_loadhpd) <attr "prefix_data16">: Ditto.
17949 (sse2_loadlpd) <attr "prefix_data16">: Ditto.
17950 <attr "length_immediate">: Ditto.
17951 <attr "prefix">: Ditto.
17952 (sse2_movsd) <attr "length_immediate">: Ditto.
17953 <attr "prefix">: Ditto.
17954 (vec_concatv2df) <attr "isa">: Ditto.
17955 <attr "prefix">: Ditto.
17956 (*vec_extractv4si) <attr "prefix_extra">: Ditto.
17957 (*vec_extractv2di_1) <attr "isa">: Ditto.
17958 <attr "type">: Ditto.
17959 <attr "length_immediate">: Ditto.
17960 <attr "prefix_rex">: Ditto.
17961 <attr "prefix_extra">: Ditto.
17962 (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
17963 <attr "prefix_extra">: Ditto.
17964 <attr "length_immediate">: Ditto.
17965 (vec_concatv2di) <attr "isa">: Ditto.
17966 <attr "prefix_extra">: Ditto.
17967 <attr "length_immediate">: Ditto.
17968 <attr "prefix">: Ditto.
17970 2016-05-26 Martin Liska <mliska@suse.cz>
17972 * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
17974 (operator+): Likewise.
17975 (operator-): Likewise.
17976 (comp_cost::operator+=): Likewise.
17977 (comp_cost::operator-=): Likewise.
17978 (comp_cost::operator/=): Likewise.
17979 (comp_cost::operator*=): Likewise.
17980 (operator<): Likewise.
17981 (operator==): Likewise.
17982 (operator<=): Likewise.
17983 (new_cost): Remove.
17984 (infinite_cost_p): Likewise.
17985 (add_costs): Likewise.
17986 (sub_costs): Likewise.
17987 (compare_costs): Likewise.
17988 (set_group_iv_cost): Use the newly introduced functions.
17989 (get_address_cost): Likewise.
17990 (get_shiftadd_cost): Likewise.
17991 (force_expr_to_var_cost): Likewise.
17992 (split_address_cost): Likewise.
17993 (ptr_difference_cost): Likewise.
17994 (difference_cost): Likewise.
17995 (get_computation_cost_at): Likewise.
17996 (determine_group_iv_cost_generic): Likewise.
17997 (determine_group_iv_cost_address): Likewise.
17998 (determine_group_iv_cost_cond): Likewise.
17999 (autoinc_possible_for_pair): Likewise.
18000 (determine_group_iv_costs): Likewise.
18001 (cheaper_cost_pair): Likewise.
18002 (iv_ca_recount_cost): Likewise.
18003 (iv_ca_set_no_cp): Likewise.
18004 (iv_ca_set_cp): Likewise.
18005 (iv_ca_cost): Likewise.
18006 (iv_ca_new): Likewise.
18007 (iv_ca_dump): Likewise.
18008 (iv_ca_narrow): Likewise.
18009 (iv_ca_prune): Likewise.
18010 (iv_ca_replace): Likewise.
18011 (try_add_cand_for): Likewise.
18012 (try_improve_iv_set): Likewise.
18013 (find_optimal_iv_set): Likewise.
18015 2016-05-26 Richard Sandiford <richard.sandiford@arm.com>
18017 * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
18018 that internal functions will clobber all caller-saved registers.
18020 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
18022 * config/aarch64/aarch64.c (aarch64_case_values_threshold):
18023 Return a better case_values_threshold when optimizing.
18025 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
18027 * config/aarch64/aarch64-simd.md (aarch64_combinez):
18028 Add ? to integer variant.
18029 (aarch64_combinez_be): Likewise.
18031 2016-05-26 Jakub Jelinek <jakub@redhat.com>
18033 * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
18034 instead of x constraint.
18035 (vcvtps2ph256<mask_name>): Likewise.
18037 * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
18038 alternative. Formatting fix.
18040 * config/i386/sse.md
18041 (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
18043 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
18044 (*avx_vperm_broadcast_v4sf): Use v constraint instead of x. Use
18045 maybe_evex prefix instead of vex.
18046 (*avx_vperm_broadcast_<mode>): Use v constraint instead of x. Handle
18047 EXT_REX_SSE_REG_P (op0) case in the splitter.
18049 2016-05-25 Jeff Law <law@redhat.com>
18051 PR tree-optimization/71272
18052 * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
18053 Update comments. Add test for empty path.
18055 2016-05-25 Bill Seurer <seurer@linux.vnet.ibm.com>
18057 * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
18058 * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
18059 special case builtin.
18060 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
18061 code for ALTIVEC_BUILTIN_VEC_CMPNE.
18062 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
18063 for __builtin_vec_cmpne.
18065 2016-05-25 Eric Botcazou <ebotcazou@adacore.com>
18067 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
18068 redundant test and bail out if the type of the new operand is not
18069 a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
18071 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
18073 * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
18074 (x_ix86_target_flags_explicit): Remove.
18075 * config/i386/i386.c (ix86_function_specific_save): Do not copy
18076 x_ix86_target_flags_explicit.
18077 (ix86_function_specific_restore): Ditto.
18079 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
18080 H.J. Lu <hongjiu.lu@intel.com>
18083 * common/config/i386/i386-common.c
18084 (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
18085 (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
18086 MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
18087 * config/i386/i386.opt (ix86_target_flags): Add new Variable.
18088 (-mgeneral-regs-only): Add new option.
18089 * config/i386/i386.c (ix86_option_override_internal): Don't enable
18090 x87 instructions if only general registers are allowed.
18091 (ix86_target_string): Add ix86_flags argument. Handle additional
18092 flags options through ix86_flags argument. Update all callers.
18093 * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
18095 2016-05-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18097 PR rtl-optimization/66940
18098 * ifcvt.c (noce_get_alt_condition): Check that incrementing or
18099 decrementing desired_val will not overflow before performing these
18102 2016-05-25 Ilya Verbin <ilya.verbin@intel.com>
18104 * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
18105 V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
18106 * config/i386/i386.c (enum ix86_builtins): Add
18107 IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
18108 IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
18109 IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
18110 IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
18111 IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
18112 IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
18113 (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
18114 __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
18115 __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
18116 __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
18117 __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
18118 __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
18119 Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
18120 __builtin_ia32_cvtps2dq512_mask.
18121 (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
18122 V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
18123 (ix86_builtin_vectorized_function): Handle builtins mentioned above.
18124 * config/i386/sse.md
18125 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
18127 (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
18128 (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
18130 (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
18131 (avx512f_vec_pack_sfix_v8df): New define_expand.
18132 (avx512f_roundpd512): Rename to ...
18133 (avx512f_round<castmode>512): ... this. Change iterator.
18134 (avx512f_roundps512_sfix): New define_expand.
18135 (round<mode>2_sfix): Change iterator.
18137 2016-05-25 Nick Clifton <nickc@redhat.com>
18139 * config/msp430/msp430.c (msp430_attr): Produce an error if a
18140 static interrupt handler is detected.
18141 * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
18142 default linker script.
18143 * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
18144 the low part of a symbolic pointer.
18146 2016-05-25 Richard Biener <rguenther@suse.de>
18148 PR tree-optimization/71261
18149 * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
18150 interesting stmt instead of immediate uses when looking
18151 for the use operand to replace.
18153 2016-05-25 Martin Liska <mliska@suse.cz>
18155 * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
18157 2016-05-25 Richard Biener <rguenther@suse.de>
18159 PR tree-optimization/71264
18160 * tree-vect-stmts.c (vect_init_vector): Properly deal with
18163 2016-05-25 Martin Liska <mliska@suse.cz>
18165 PR tree-optimization/71239
18166 * tree.c (array_at_struct_end_p): Do not call operand_equal_p
18167 if DECL_SIZE is NULL.
18169 2016-05-25 Richard Biener <rguenther@suse.de>
18171 * timevar.def (TV_TREE_LOOP_IFCVT): Add.
18172 * tree-if-conv.c (pass_data_if_conversion): Use it.
18174 2016-05-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
18176 * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
18177 * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
18178 * varpool.c (varpool_node::get_availability): Likewise.
18180 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
18182 * config/rs6000/altivec.md (VNEG iterator): New iterator for
18183 VNEGW/VNEGD instructions.
18184 (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
18185 (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
18186 support for ISA 3.0 VNEGW/VNEGD instructions.
18188 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
18190 * gimplify.c (omp_notice_variable): Use zero-length arrays for data
18191 pointers inside OACC_DATA regions.
18192 (gimplify_scan_omp_clauses): Prune firstprivate clause associated
18193 with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
18194 (gimplify_adjust_omp_clauses): Fix typo in comment.
18196 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
18198 * config/rs6000/altivec.md (VParity): New mode iterator for vector
18199 parity built-in functions.
18200 (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
18202 (p9v_parity<mode>2): Likewise.
18203 * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
18205 (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
18206 (parity<mode>2): ISA 3.0 expander for vector parity.
18207 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
18209 (BU_P9_64BIT_MISC_0): Likewise.
18210 (BU_P9_MISC_0): Likewise.
18211 (BU_P9V_AV_1): Likewise.
18212 (BU_P9V_AV_2): Likewise.
18213 (BU_P9V_AV_3): Likewise.
18214 (BU_P9V_AV_P): Likewise.
18215 (BU_P9V_VSX_1): Likewise.
18216 (BU_P9V_OVERLOAD_1): Likewise.
18217 (BU_P9V_OVERLOAD_2): Likewise.
18218 (BU_P9V_OVERLOAD_3): Likewise.
18219 (VCTZB): Add vector count trailing zeros support.
18223 (VPRTYBD): Add vector parity support.
18224 (VPRTYBQ): Likewise.
18225 (VPRTYBW): Likewise.
18226 (VCTZ): Add overloaded vector count trailing zeros support.
18227 (VPRTYB): Add overloaded vector parity support.
18228 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
18229 overloaded vector count trailing zeros and parity instructions.
18230 * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
18231 vector parity support.
18232 * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
18233 trailing zeros support.
18234 (vec_cntlz): Likewise.
18235 (vec_vctzb): Likewise.
18236 (vec_vctzd): Likewise.
18237 (vec_vctzh): Likewise.
18238 (vec_vctzw): Likewise.
18239 (vec_vprtyb): Add ISA 3.0 vector parity support.
18240 (vec_vprtybd): Likewise.
18241 (vec_vprtybw): Likewise.
18242 (vec_vprtybq): Likewise.
18243 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
18244 the ISA 3.0 vector count trailing zeros and vector parity built-in
18247 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
18249 * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
18250 when there is stmt_to_insert.
18252 2016-05-24 Martin Sebor <msebor@redhat.com>
18255 * tree.h (complete_or_array_type_p): New inline function.
18257 2016-05-24 Jakub Jelinek <jakub@redhat.com>
18259 * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
18260 * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
18261 rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
18263 * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
18264 Limit 1st alternative to noavx isa, split 2nd alternative into one
18265 noavx and one avx alternative, use *x and Bm in the former and
18266 x and m in the latter.
18268 * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
18269 of sse4 for the first alternative, drop %v from the template
18270 and d operand modifier. Split second alternative into one sse4_noavx
18271 and one avx alternative, use *x instead of *v in the former and v
18272 instead of *v in the latter.
18273 (*sse4_1_extractps): Use noavx isa instead of * for the first
18274 alternative, drop %v from the template. Split second alternative into
18275 one noavx and one avx alternative, use *x instead of *v in the
18276 former and v instead of *v in the latter.
18277 (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
18278 with noavx and the last one with avx.
18279 (sse4_1_phminposuw): Guard first alternative with noavx isa,
18280 split the second one into one noavx and one avx alternative,
18281 use *x and Bm in the former and x and m in the latter one.
18282 (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
18285 * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
18286 first two alternatives to noavx, use *x instead of *v in the second
18287 one, add avx alternative without *.
18288 (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
18289 sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
18290 sse4_1_<code>v2siv2di2<mask_name>): Likewise.
18292 2016-05-24 Jeff Law <law@redhat.com>
18294 * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
18295 New function, extracted from...
18296 (fsm_find_control_statement_thread_paths): Here. Use the new function.
18297 Allow simple copies and constant initializations in the SSA chain.
18299 2016-05-24 Marek Polacek <polacek@redhat.com>
18302 * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
18305 2016-05-24 Jakub Jelinek <jakub@redhat.com>
18308 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
18309 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
18310 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP. Add
18311 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
18312 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
18314 2016-05-24 Richard Biener <rguenther@suse.de>
18316 PR tree-optimization/71240
18317 * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
18320 2016-05-24 Richard Biener <rguenther@suse.de>
18322 PR tree-optimization/71230
18323 * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
18325 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
18327 * tree-vectorizer.h (vectorizable_comparison): Delete.
18328 * tree-vect-loop.c (vectorizable_reduction): Remove redundant
18329 PURE_SLP_STMT check.
18330 * tree-vect-stmts.c (vectorizable_call): Likewise.
18331 (vectorizable_simd_clone_call): Likewise.
18332 (vectorizable_conversion): Likewise.
18333 (vectorizable_assignment): Likewise.
18334 (vectorizable_shift): Likewise.
18335 (vectorizable_operation): Likewise.
18336 (vectorizable_load): Likewise.
18337 (vectorizable_condition): Likewise.
18338 (vectorizable_store): Likewise. Assert that we don't have
18340 (vectorizable_comparison): Make static. Remove redundant
18341 PURE_SLP_STMT check.
18342 (vect_transform_stmt): Assert that we always have an slp_node
18345 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18347 * config/arm/neon.md (ashldi3_neon): Replace comparison of INTVAL of
18348 operands[2] against 1 with comparison against CONST1_RTX.
18349 (<shift>di3_neon): Likewise.
18350 * config/arm/predicates.md (const0_operand): Replace with comparison
18351 against CONST0_RTX.
18353 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18355 * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
18356 operands[2] against 1 with comparison against CONST1_RTX.
18357 (ashrdi3): Likewise.
18358 (lshrdi3): Likewise.
18359 (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
18361 (ashrsi3): Likewise.
18362 (lshrsi3): Likewise.
18363 (rotrsi3): Likewise.
18364 (define_split above *compareqi_eq0): Likewise.
18365 (define_split above "prologue"): Likewise.
18366 * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
18367 * config/arm/predicates.md (shift_operator): Likewise.
18368 (shift_nomul_operator): Likewise.
18369 (sat_shift_operator): Likewise.
18370 (thumb1_cmp_operand): Likewise.
18371 (const_neon_scalar_shift_amount_operand): Replace manual range
18372 check with IN_RANGE.
18373 * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
18374 Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
18376 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18378 * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
18379 with HOST_WIDE_INT_1.
18381 * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
18382 1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
18383 (arm_canonicalize_comparison): Likewise.
18384 (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
18386 (thumb1_size_rtx_costs): Likewise.
18387 (vfp_const_double_index): Replace cast of 1 to unsigned
18388 HOST_WIDE_INT with HOST_WIDE_INT_1U.
18389 (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
18391 (arm_asan_shadow_offset): Replace cast of 1 to unsigned
18392 HOST_WIDE_INT with HOST_WIDE_INT_1U.
18393 * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
18394 HOST_WIDE_INT with HOST_WIDE_INT_1.
18396 2016-05-24 Marek Polacek <polacek@redhat.com>
18398 * tree-cfg.h (should_remove_lhs_p): New predicate.
18399 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
18400 * gimplify.c (gimplify_modify_expr): Likewise.
18401 * tree-cfg.c (verify_gimple_call): Likewise.
18402 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
18403 * gimple-fold.c: Include "tree-cfg.h".
18404 (gimple_fold_call): Use should_remove_lhs_p.
18406 2016-05-24 Richard Biener <rguenther@suse.de>
18408 PR tree-optimization/71253
18409 * cfganal.h (control_dependences): Make robust against edge
18411 (control_dependences::control_dependences): Remove edge_list argument.
18412 (control_dependences::get_edge): Remove.
18413 (control_dependences::get_edge_src): Add.
18414 (control_dependences::get_edge_dest): Likewise.
18415 (control_dependences::m_el): Make a vector of edge src/dest index.
18416 * cfganal.c (control_dependences::find_control_dependence): Adjust.
18417 (control_dependences::control_dependences): Likewise.
18418 (control_dependences::~control_dependence): Likewise.
18419 (control_dependences::get_edge): Remove.
18420 (control_dependences::get_edge_src): Add.
18421 (control_dependences::get_edge_dest): Likewise.
18422 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
18424 (perform_tree_ssa_dce): Adjust.
18425 * tree-loop-distribution.c (create_edge_for_control_dependence): Use
18427 (pass_loop_distribution::execute): Adjust. Do loop destroying
18428 conditional on changed.
18430 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18433 * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
18434 return. Reindent transformation comment and mention the ARM state
18437 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
18439 PR middle-end/71252
18440 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
18441 after build_and_add_sum creates new use stmt.
18443 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
18445 * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
18446 load_lanes/grouped_load classification comes first. Don't check
18447 whether the vectorization factor is a multiple of the group size
18450 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
18452 * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
18453 GROUP_GAP for single-element interleaving.
18454 * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
18457 2016-05-24 Richard Biener <rguenther@suse.de>
18459 PR middle-end/70434
18461 * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
18462 bases which are accessed with non-invariant indices.
18463 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
18464 constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
18466 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
18468 PR middle-end/71170
18469 * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
18470 (add_to_ops_vec): Add stmt_to_insert.
18471 (add_repeat_to_ops_vec): Init stmt_to_insert.
18472 (insert_stmt_before_use): New.
18473 (transform_add_to_multiply): Remove mult_stmt insertion and add it
18475 (get_ops): Init stmt_to_insert.
18476 (maybe_optimize_range_tests): Likewise.
18477 (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
18478 (rewrite_expr_tree_parallel): Likewise.
18479 (reassociate_bb): Likewise.
18481 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
18484 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
18485 ISA 3.0 xxperm fusion alternative.
18486 (altivec_vperm_v8hiv16qi): Likewise.
18487 (altivec_vperm_<mode>_uns_internal): Likewise.
18488 (vperm_v8hiv4si): Likewise.
18489 (vperm_v16qiv8hi): Likewise.
18491 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
18492 Kelvin Nilsen <kelvin@gcc.gnu.org>
18494 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
18495 vpermr/xxpermr on ISA 3.0.
18496 (altivec_expand_vec_perm_le): Likewise.
18497 * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
18498 (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
18501 2016-05-23 Uros Bizjak <ubizjak@gmail.com>
18503 * config/i386/i386.h (IS_STACK_MODE): Enable for
18504 TARGET_MIX_SSE_I387. Rewrite using X87_FLOAT_MODE_P and
18505 SSE_FLOAT_MODE_P macros.
18506 * config/i386/i386.c (ix86_preferred_reload_class): Use
18507 IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
18508 Cleanup regclass processing for CONST_DOUBLE_P.
18509 (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
18510 (ix86_rtx_costs): Remove redundant TARGET_80387 check
18511 with IS_STACK_MODE macro.
18512 * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
18514 (*movdf_internal): Use IS_STACK_MODE macro.
18515 (*movsf_internal): Ditto.
18517 2016-05-23 Marc Glisse <marc.glisse@inria.fr>
18519 * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
18520 ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
18522 2016-05-23 Jeff Law <law@redhat.com>
18524 * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
18526 (fsm_find_control_statement_thread_paths): Call it.
18528 2016-05-23 Martin Jambor <mjambor@suse.cz>
18531 * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
18532 from_global_constant if t is not NULL.
18534 2016-05-23 Marek Polacek <polacek@redhat.com>
18537 * common.opt (Wswitch-unreachable): New option.
18538 * doc/invoke.texi: Document -Wswitch-unreachable.
18539 * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
18542 2016-05-23 Bin Cheng <bin.cheng@arm.com>
18544 * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
18545 TMR_INDEX is non-NULL.
18547 2016-05-23 Richard Biener <rguenther@suse.de>
18549 PR tree-optimization/71230
18550 * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
18551 (try_special_add_to_ops): ... here. Always test for single-use.
18553 2016-05-23 Martin Jambor <mjambor@suse.cz>
18555 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
18556 default block if a PHI node in the original one would be resized.
18558 2016-05-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
18560 PR tree-optimization/58135
18561 * tree-vect-slp.c: When group size is not multiple
18562 of vector size, allow splitting of store group at
18565 2016-05-23 Christophe Lyon <christophe.lyon@linaro.org>
18567 * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
18569 2016-05-22 Jakub Jelinek <jakub@redhat.com>
18571 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
18572 vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
18573 condition. For !TARGET_AVX512DQ, emit 32x4 instruction instead
18576 * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
18577 vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
18578 v constraint instead of x and vinserti32x4 insn.
18580 * config/i386/sse.md (i128vldq): New mode iterator.
18581 (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
18582 avx512dq and avx512vl alternatives.
18584 * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
18585 constraint, use maybe_evex prefix instead of vex.
18586 (vec_dupv4sf): Use v constraint instead of x for output
18587 operand except for noavx alternative, use Yv constraint
18588 instead of x for input. Use maybe_evex prefix instead of vex.
18589 (*vec_dupv4si): Likewise.
18590 (*vec_dupv2di): Likewise.
18592 2016-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
18594 PR middle-end/40921
18595 * tree-ssa-reassoc.c (try_special_add_to_ops): New.
18596 (linearize_expr_tree): Call try_special_add_to_ops.
18597 (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
18599 2016-05-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
18601 * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
18602 to computed stack_usage.
18604 2016-05-21 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
18607 * config/avr/avr.md (define_expand "mov<mode>"): If the source
18608 operand is subreg (symbol_ref) then move the symbol ref to register.
18610 2016-05-21 Jan Hubicka <hubicka@ucw.cz>
18612 * tree.c (array_at_struct_end_p): Look through MEM_REF.
18614 2016-05-21 Kugan Vivekanandarajah <kuganv@linaro.org>
18616 PR middle-end/71179
18617 * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
18620 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
18622 * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
18623 ranges by calling get_single_symbol and tidy up. Look more closely
18624 into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
18626 2016-05-20 Jeff Law <law@redhat.com>
18628 * bitmap.c (bitmap_find_bit): Remove useless test.
18630 2016-05-20 Segher Boessenkool <segher@kernel.crashing.org>
18632 * function.c (thread_prologue_and_epilogue_insns): Commit the
18633 insertion of the epilogue.
18635 2016-05-20 Martin Jambor <mjambor@suse.cz>
18637 PR tree-optimization/70884
18638 * tree-sra.c (initialize_constant_pool_replacements): Do not check
18639 should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
18640 (sort_and_splice_var_accesses): Do not consider multiple scalar reads
18641 of constant pool data as a reason for scalarization.
18643 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
18645 * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
18646 for naked functions.
18647 (thumb1_expand_prologue): Likewise.
18649 2016-05-20 Nathan Sidwell <nathan@acm.org>
18651 * config/nvptx/nptx.c (nvptx_option_override): Only set
18652 flag_toplevel_reorder, if not explicitly specified. Set
18653 flag_no_common, unless explicitly specified.
18655 2016-05-20 David Malcolm <dmalcolm@redhat.com>
18657 * calls.c (can_implement_as_sibling_call_p): Mark param
18658 reg_parm_stack_space with ATTRIBUTE_UNUSED.
18660 2016-05-20 Uros Bizjak <ubizjak@gmail.com>
18662 * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
18663 Use IS_STACK_MODE when calculating cost of standard 80387 constants.
18664 Fallthru to CONST_VECTOR case to calculate cost of standard SSE
18666 <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
18667 (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
18668 and CASE_CONST_ANY.
18670 2016-05-20 Cesar Philippidis <cesar@codesourcery.com>
18672 * config/nvptx/nvptx.md (sincossf3): New pattern.
18674 2016-05-20 David Malcolm <dmalcolm@redhat.com>
18676 * calls.c (maybe_complain_about_tail_call): New function.
18677 (initialize_argument_information): Call
18678 maybe_complain_about_tail_call when clearing *may_tailcall.
18679 (can_implement_as_sibling_call_p): Call
18680 maybe_complain_about_tail_call when returning false.
18681 (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
18682 ensure try_tail_call is set. Call maybe_complain_about_tail_call
18683 if tail-call optimization fails.
18684 * cfgexpand.c (expand_call_stmt): Initialize
18685 CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
18686 * gimple-pretty-print.c (dump_gimple_call): Dump
18687 gimple_call_must_tail_p.
18688 * gimple.c (gimple_build_call_from_tree): Call
18689 gimple_call_set_must_tail with the value of
18690 CALL_EXPR_MUST_TAIL_CALL.
18691 * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
18692 (gimple_call_set_must_tail): New function.
18693 (gimple_call_must_tail_p): New function.
18694 * print-tree.c (print_node): Update printing of TREE_STATIC
18695 to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
18696 * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
18697 trailing comment listing applicable flags.
18698 * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
18700 2016-05-20 David Malcolm <dmalcolm@redhat.com>
18702 * calls.c (expand_call): Move "Rest of purposes for tail call
18703 optimizations to fail" to...
18704 (can_implement_as_sibling_call_p): ...this new function, and
18705 split into multiple "if" statements.
18707 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
18709 * cfgloop.h (expected_loop_iterations_unbounded,
18710 expected_loop_iterations): Unconstify.
18711 * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
18712 profile with known upper bound; return 3 when profile is absent.
18713 (expected_loop_iterations): Update.
18715 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
18717 * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
18718 and get_max_loop_iterations_int.
18720 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
18722 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
18723 realistic upper bounds here.
18725 2016-05-20 Jakub Jelinek <jakub@redhat.com>
18728 * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
18729 calls if the LHS is variable length or has addressable type.
18730 If targets[0]->decl is a noreturn call with void return type and
18731 zero arguments, adjust fntype and remove lhs in that case.
18733 2016-05-20 Marc Glisse <marc.glisse@inria.fr>
18735 PR tree-optimization/71079
18736 PR tree-optimization/71206
18737 * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
18739 2016-05-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18741 * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
18742 (get_vec_alignment_for_array_decl): Likewise.
18743 (get_vec_alignment_for_record_decl): Likewise.
18744 (increase_alignment::execute): Move code to find alignment to
18745 get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
18746 (type_align_map): New hash_map.
18748 2016-05-20 Richard Guenther <rguenther@suse.de>
18750 PR tree-optimization/29756
18751 * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
18752 * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
18753 * fold-const.c (operand_equal_p): Likewise.
18754 (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
18755 * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
18756 * tree-inline.c (estimate_operator_cost): Likewise.
18757 * tree-pretty-print.c (dump_generic_node): Likewise.
18758 * tree-ssa-operands.c (get_expr_operands): Likewise.
18759 * cfgexpand.c (expand_debug_expr): Likewise.
18760 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
18761 * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
18762 * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
18763 * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
18764 vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
18765 (execute_update_addresses_taken): Do it.
18767 2016-05-20 Richard Biener <rguenther@suse.de>
18769 PR tree-optimization/71185
18770 * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
18771 register operations.
18773 2016-05-20 Richard Biener <rguenther@suse.de>
18775 * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
18776 gimple_seq_add_seq_without_update.
18777 (release_bb_predicate): Assert we have no operands to free.
18778 (if_convertible_loop_p_1): Calculate post dominators later.
18779 Do not free BB predicates here.
18780 (combine_blocks): Do not recompute BB predicates.
18781 (version_loop_for_if_conversion): Save BB predicates around
18784 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18786 * function.c (make_epilogue_seq): Remove epilogue_end parameter.
18787 (thread_prologue_and_epilogue_insns): Remove bb_flags. Restructure
18788 code. Ignore sibcalls on EDGE_IGNORE edges.
18789 * shrink-wrap.c (handle_simple_exit): New function. Set EDGE_IGNORE
18790 on edges for sibcalls that run without prologue. The rest of the
18791 function is combined from...
18792 (fix_fake_fallthrough_edge): ... this, and ...
18793 (try_shrink_wrapping): ... a part of this. Remove the bb_with
18794 function argument, make it a local variable.
18796 2016-05-19 Sandra Loosemore <sandra@codesourcery.com>
18798 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
18799 --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
18800 for 32-bit mode and SEH for 64-bit.
18801 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
18802 TARGET_64BIT_DEFAULT.
18804 2016-05-19 Ryan Burn <contact@rnburn.com>
18806 * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
18807 * gengtype.c (open_base_files): Add cilk.h to ifiles.
18809 2016-05-19 Uros Bizjak <ubizjak@gmail.com>
18811 * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
18812 force pending loads from memory.
18814 2016-05-19 Kelvin Nilsen <kelvin@gcc.gnu.org>
18816 * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
18817 (UNSPEC_DARN_32): New unspec constant.
18818 (UNSPEC_DARN_RAW): New unspec constant.
18819 (darn_32): New instruction.
18820 (darn_raw): New instruction.
18821 (darn): New instruction.
18822 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
18823 support and documentation for this macro.
18824 (BU_P9_MISC_1): New macro definition.
18825 (BU_P9_64BIT_MISC_0): New macro definition.
18826 (BU_P9_MISC_0): New macro definition.
18827 (darn_32): New builtin definition.
18828 (darn_raw): New builtin definition.
18829 (darn): New builtin definition.
18830 * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
18831 RS6000_BUILTIN_0 directives to surround each occurrence of
18832 #include "rs6000-builtin.def".
18833 (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
18834 RS6000_BTM_64BIT flags to the returned mask, depending on
18836 (def_builtin): Correct an error in the assignments made to the
18837 debugging variable attr_string.
18838 (rs6000_expand_builtin): Add support for no-operand built-in
18840 (builtin_function_type): Remove fatal_error assertion that is no
18842 (rs6000_common_init_builtins): Add support for no-operand built-in
18844 * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
18846 (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
18848 (RS6000_BTM_64BIT): New macro definition.
18849 * doc/extend.texi: Document __builtin_darn (void),
18850 __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
18853 2016-05-19 Jan Hubicka <hubicka@ucw.cz>
18855 * tree-vect-loop.c (vect_analyze_loop_2): Use also
18856 max_loop_iterations_int.
18858 2016-05-19 Marek Polacek <polacek@redhat.com>
18860 PR tree-optimization/71031
18861 * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
18862 condition and adjust the code a bit.
18864 2016-05-19 Martin Liska <mliska@suse.cz>
18866 * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
18867 auto_vec instead of vec.
18869 2016-05-19 Martin Liska <mliska@suse.cz>
18871 * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
18873 2016-05-19 Martin Liska <mliska@suse.cz>
18875 * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
18877 2016-05-19 Martin Liska <mliska@suse.cz>
18879 * ipa-pure-const.c (set_function_state): Remove an existing
18881 (remove_node_data): Do not free it as it's released
18882 in set_function_state.
18884 2016-05-19 Martin Liska <mliska@suse.cz>
18886 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
18889 2016-05-19 Martin Liska <mliska@suse.cz>
18891 * omp-simd-clone.c (simd_clone_adjust): Release vector.
18893 2016-05-19 Martin Liska <mliska@suse.cz>
18895 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
18896 an auto_vec instead of re-creating it.
18898 2016-05-19 Martin Liska <mliska@suse.cz>
18900 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
18901 auto_vec instead of vec.
18903 2016-05-19 Martin Liska <mliska@suse.cz>
18905 * lto-section-in.c (lto_get_section_data): Call
18906 lto_check_version with additional argument.
18907 * lto-streamer.c (lto_check_version): Add new argument.
18908 * lto-streamer.h (lto_check_version): Likewise.
18910 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18912 * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
18913 Don't add cost of inner memory when handling sign-extended loads.
18915 2016-05-19 Ilya Enkovich <ilya.enkovich@intel.com>
18917 PR rtl-optimization/71148
18918 * cse.c (cse_main): Free dominance info.
18919 (rest_of_handle_cse): Don't free dominance info.
18920 (rest_of_handle_cse2): Likewise.
18921 (rest_of_handle_cse_after_global_opts): Likewise.
18923 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18926 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
18927 NULL_TREE early if NEON is not available. Remove now redundant check
18928 in ARM_CHECK_BUILTIN_MODE.
18930 2016-05-19 Maxim Ostapenko <m.ostapenko@samsung.com>
18933 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
18934 builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
18935 * doc/cpp.texi: Document new macros.
18937 2016-05-19 Bin Cheng <bin.cheng@arm.com>
18939 PR tree-optimization/69848
18940 * tree-vect-loop.c (vectorizable_reduction): Don't factor
18941 comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
18943 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
18945 * function.c (thread_prologue_and_epilogue_insn): Move the
18946 "goto epilogue_done" one block later.
18948 2016-05-19 Richard Biener <rguenther@suse.de>
18950 PR tree-optimization/70729
18951 * passes.def: Move LIM pass before PRE. Remove no longer
18952 required copyprop and move first DCE out of the loop pipeline.
18954 2016-05-18 David Malcolm <dmalcolm@redhat.com>
18957 * Makefile.in (GCC_OBJS): Move spellcheck.o to...
18958 (OBJS-libcommon-target): ...here.
18959 * opts-common.c: Include spellcheck.h.
18960 (cmdline_handle_error): Build a vec of valid options and use it
18961 to suggest provide hints for misspelled arguments.
18963 2016-05-18 Jakub Jelinek <jakub@redhat.com>
18966 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
18967 lhs if it has TREE_ADDRESSABLE type.
18969 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
18972 * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
18973 (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
18975 2016-05-18 Martin Jambor <mjambor@suse.cz>
18978 * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
18979 input for NOP_EXPR pass-through functions.
18980 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
18981 aggregate global constant VAR_DECLs in constant jump functions.
18983 2016-05-18 Martin Jambor <mjambor@suse.cz>
18986 * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
18987 from TREE_READONLY parameters.
18989 2016-05-18 Martin Jambor <mjambor@suse.cz>
18992 * cgraph.h (cgraph_indirect_call_info): New field
18993 guaranteed_unmodified.
18994 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
18995 to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
18997 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
18998 pass the parameter value to ipa_find_agg_cst_for_param.
18999 * ipa-prop.c (ipa_load_from_parm_agg): New parameter
19000 guaranteed_unmodified, store AA results there instead of bailing out
19002 (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
19003 (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
19004 (find_constructor_constant_at_offset): New function.
19005 (ipa_find_agg_cst_from_init): Likewise.
19006 (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
19007 static initializers of contants, report back through a new paameter
19008 from_global_constant if that was the case.
19009 (try_make_edge_direct_simple_call): Also pass parameter value to
19010 ipa_find_agg_cst_for_param, check guaranteed_unmodified when
19012 (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
19013 (ipa_read_indirect_edge_info): Likewise.
19014 * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
19015 (ipa_load_from_parm_agg): Likewise.
19017 2016-05-18 Jiong Wang <jiong.wang@arm.com>
19019 PR rtl-optimization/71150
19020 * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
19023 2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
19026 * config/rs6000/constraints.md (wE constraint): New constraint
19027 for a vector constant that can be loaded with XXSPLTIB.
19028 (wM constraint): New constraint for a vector constant of a 1's.
19029 (wS constraint): New constraint for a vector constant that can be
19030 loaded with XXSPLTIB and a vector sign extend instruction.
19031 * config/rs6000/predicates.md (xxspltib_constant_split): New
19032 predicates for wE/wS constraints.
19033 (xxspltib_constant_nosplit): Likewise.
19034 (easy_vector_constant): Add support for constants that can be
19035 loaded via XXSPLTIB.
19036 (all_ones_constant): New predicate for vector constant with all
19038 (splat_input_operand): Add support for ISA 3.0 word splat operations.
19039 * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
19040 return if a constant can be loaded with the ISA 3.0 XXSPLTIB
19041 instruction and possibly with a sign extension.
19042 (output_vec_const_move): Add support for XXSPLTIB. If we are
19043 loading up 0/-1 into Altivec registers, prefer using VSPLTISW
19044 instead of XXLXOR/XXLORC.
19045 (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
19047 (rs6000_legitimize_reload_address): Likewise.
19048 (rs6000_output_move_128bit): Use output_vec_const_move to emit
19050 * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
19051 combine VSX_M and VSX_M2 into one iterator.
19052 (VSX_M2): Likewise.
19053 (VSINT_84): New iterators for loading constants with XXSPLTIB.
19054 (VSINT_842): Likewise.
19055 (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
19056 (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
19057 XXSPLTIB instruction.
19058 (xxspltib_<mode>_nosplit): Likewise.
19059 (xxspltib_<mode>_split): New insn to load up constants with
19060 XXSPLTIB and a sign extend instruction.
19061 (vsx_mov<mode>): Replace single move that handled all vector types
19062 with separate 32-bit and 64-bit moves. Combine the movti_<bit>
19063 moves (when -mvsx-timode is in effect) into the main vector
19064 moves. Eliminate separate moves for <VSr> <VSa>, where the
19065 preferred register class (<VSr>) is listed first, and the
19066 secondary register class (<VSa>) is listed second with a '?' to
19067 discourage use. Prefer loading 0/-1 in any VSX register for ISA
19068 3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
19069 that if the register was involved in a slow operation, the
19070 clear/set operation does not wait for the slow operation to
19071 finish. Adjust the length attributes for 32-bit mode. Use
19072 rs6000_output_move_128bit and drop the use of the string
19073 instructions for 32-bit movti when -mvsx-timode is in effect. Use
19074 spacing so that the alternatives and attributes don't generate
19075 long lines, and put things in columns, so that it is easier to
19076 match up the operands and attributes with the insn alternatives.
19077 (vsx_mov<mode>_64bit): Likewise.
19078 (vsx_mov<mode>_32bit): Likewise.
19079 (vsx_movti_64bit): Fold movti into normal vector moves.
19080 (vsx_movti_32bit): Likewise.
19081 (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
19082 splat instructions.
19083 (vsx_splat_v4si_internal): Likewise.
19084 (vsx_splat_v4sf_internal): Likewise.
19085 (vector fusion peepholes): Use VSX_M instead of VSX_M2.
19086 (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
19087 extend vector elements.
19088 (vsx_sign_extend_hi_<mode>): Likewise.
19089 (vsx_sign_extend_si_v2di): Likewise.
19090 * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
19092 * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
19093 constraints. Add trailing period to wL documentation.
19095 2016-05-18 Richard Sandiford <richard.sandiford@arm.com>
19097 PR middle-end/71020
19098 * tree-dfa.h (replace_abnormal_ssa_names): Declare.
19099 * tree-dfa.c (replace_abnormal_ssa_names): New function.
19100 * tree-call-cdce.c: Include tree-dfa.h.
19101 (can_guard_call_p): New function, extracted from...
19102 (can_use_internal_fn): ...here.
19103 (shrink_wrap_one_built_in_call_with_conds): Remove failure path
19105 (shrink_wrap_one_built_in_call): Likewise.
19106 (use_internal_fn): Likewise.
19107 (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
19108 and return void. Call replace_abnormal_ssa_names.
19109 (pass_call_cdce::execute): Check can_guard_call_p during the
19110 initial walk. Assume shrink_wrap_conditional_dead_built_in_calls
19111 will always change something.
19113 2016-05-18 Martin Jambor <mjambor@suse.cz>
19116 * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
19117 if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
19119 2016-05-18 Martin Jambor <mjambor@suse.cz>
19122 * ipa-inline.h (condition): New field size.
19123 * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
19124 for comaprison and store it into the new condition.
19125 (evaluate_conditions_for_known_args): Use condition size to check
19126 access sizes for all but CHANGED conditions.
19127 (unmodified_parm_1): New parameter size_p, store access size into it.
19128 (unmodified_parm): Likewise.
19129 (unmodified_parm_or_parm_agg_item): Likewise.
19130 (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
19131 (set_cond_stmt_execution_predicate): Extract access sizes and store
19132 them to conditions.
19133 (set_switch_stmt_execution_predicate): Likewise.
19134 (will_be_nonconstant_expr_predicate): Likewise.
19135 (will_be_nonconstant_predicate): Likewise.
19136 (inline_read_section): Stream condition size.
19137 (inline_write_summary): Likewise.
19139 2016-05-18 Richard Biener <rguenther@suse.de>
19141 * tree-ssa-loop-im.c (determine_max_movement): Properly add
19142 condition cost to PHI cost instead of total_cost.
19144 2016-05-18 Martin Liska <mliska@suse.cz>
19147 * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
19150 2016-05-18 Richard Biener <rguenther@suse.de>
19152 * lto-streamer.h (LTO_major_version): Bump to 6.
19154 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
19156 * function.c (make_split_prologue_seq, make_prologue_seq,
19157 make_epilogue_seq): New functions, factored out from...
19158 (thread_prologue_and_epilogue_insns): Here.
19160 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
19162 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
19163 cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
19164 of before. Add a comment.
19166 2016-05-18 Bin Cheng <bin.cheng@arm.com>
19168 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
19169 expression pointer, not pointer to the pointer.
19171 2016-05-18 Jakub Jelinek <jakub@redhat.com>
19173 * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
19174 (avx2_pbroadcast<mode>): Add another alternative with v instead
19175 of x constraints in it, using <pbroadcast_evex_isa> isa.
19176 (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
19178 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
19179 constraint x instead of v in second alternative, add avx512bw
19182 * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
19183 constraint x instead of v in second alternative, add avx512bw
19186 * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
19187 constraint x instead of v in second alternative, add avx512bw
19190 * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
19191 avx512bw alternative.
19193 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
19195 * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
19196 array to 128 chars.
19197 (define_insn "*andnottf3"): Ditto.
19198 (define_insn "*<code><mode>3"/any_logic): Ditto.
19199 (define_insn "*<code>tf3"/any_logic): Ditto.
19200 (define_insn "sse2_storehpd"): Use Yv constraint for scalar
19201 operand to block AVX-512VL insn variant emit when it is not enabled.
19203 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
19205 * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
19206 constraint fot SF mode.
19208 2016-05-18 Petr Murzin <petr.murzin@intel.com>
19209 Kirill Yukhin <kirill.yukhin@intel.com>
19211 * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
19213 (define_insn "rsqrt14<mode>"): Ditto.
19214 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
19215 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
19216 (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
19217 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
19218 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
19220 (define_insn "*avx512f_gatherdi<mode>"): Ditto.
19221 (define_insn "*avx512f_scatterdi<mode>"): Ditto.
19222 * config/i386/i386.c (ix86_print_operand): Expand check for size
19223 override codes for Intel syntax.
19225 2016-05-18 Richard Biener <rguenther@suse.de>
19227 PR tree-optimization/71168
19228 * tree-loop-distribution.c (distribute_loop): Move *destroy_p
19229 initialization earlier.
19231 2016-05-18 James Greenhalgh <james.greenhalgh@arm.com>
19233 * config/aarch64/aarch64-simd.md
19234 (aarch64_reduc_plus_internal<mode>): Rename to...
19235 (reduc_plus_scal): ...This, and remove previous implementation.
19237 2016-05-18 Richard Biener <rguenther@suse.de>
19239 * passes.def: Put late dse and cd_dce in canonical order.
19241 2016-05-17 Jan Hubicka <hubicka@ucw.cz>
19243 * ipa-inline-transform.c (preserve_function_body_p): Look for
19244 first non-thunk clone.
19245 (save_function_body): Save into first non-thunk.
19246 * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
19248 (lto_output_node): Inline thunks don't need body in every
19250 * lto-streamer-in.c: Do not fixup thunk clones.
19251 * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
19253 * tree-inline.c (copy_bb): Be prepared for target node to be new after
19256 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
19258 PR middle-end/63586
19259 * tree-ssa-reassoc.c (transform_add_to_multiply): New.
19260 (reassociate_bb): Call transform_add_to_multiply.
19262 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
19264 * config/aarch64/aarch64.c (all_extensions): Removed unused
19267 2016-05-17 Nathan Sidwell <nathan@acm.org>
19269 * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
19270 (TARGET_FUNCTION_ARG_BOUNDARY): Override.
19272 2016-05-17 Mikhail Maltsev <maltsevm@gmail.com>
19274 PR tree-optimization/54579
19275 PR middle-end/55299
19276 * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
19278 2016-05-17 Marek Polacek <polacek@redhat.com>
19281 * tree-inline.c (expand_call_inline): Call
19282 maybe_remove_unused_call_args.
19284 2016-05-17 Jim Wilson <jim.wilson@linaro.org>
19286 * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
19287 * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
19288 * doc/md.texi (fmin@var{m}3): Likewise.
19290 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
19292 * match.pd (X & C): New transformation.
19294 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
19296 * match.pd (~X & Y): New transformation.
19298 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
19300 * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
19301 information for new SSA_NAME.
19302 (simplify_conversion_using_ranges): Get range through get_range_info
19303 instead of get_value_range.
19305 2016-05-17 Jiong Wang <jiong.wang@arm.com>
19307 * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
19308 Remove inline assembly.
19309 (vmvn_s16): Likewise.
19310 (vmvn_s32): Likewise.
19311 (vmvn_u8): Likewise.
19312 (vmvn_u16): Likewise.
19313 (vmvn_u32): Likewise.
19314 (vmvnq_s8): Likewise.
19315 (vmvnq_s16): Likewise.
19316 (vmvnq_s32): Likewise.
19317 (vmvnq_u8): Likewise.
19318 (vmvnq_u16): Likewise.
19319 (vmvnq_u32): Likewise.
19320 (vmvn_p8): Likewise.
19321 (vmvnq_p16): Likewise.
19323 2016-05-17 Jiong Wang <jiong.wang@arm.com>
19325 * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
19327 (vmul_n_s16): Likewise.
19328 (vmul_n_s32): Likewise.
19329 (vmul_n_u16): Likewise.
19330 (vmul_n_u32): Likewise.
19331 (vmulq_n_f32): Likewise.
19332 (vmulq_n_f64): Likewise.
19333 (vmulq_n_s16): Likewise.
19334 (vmulq_n_s32): Likewise.
19335 (vmulq_n_u16): Likewise.
19336 (vmulq_n_u32): Likewise.
19338 2016-05-17 Jiong Wang <jiong.wang@arm.com>
19340 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
19341 to all supported modes. Rename to "*aarch64_mul3_elt_from_dup".
19343 2016-05-17 Jiong Wang <jiong.wang@arm.com>
19345 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
19346 to *aarch64_fma4_elt_from_dup<mode>.
19347 (*aarch64_fnma4_elt_to_128df): Rename to
19348 *aarch64_fnma4_elt_from_dup<mode>.
19349 * config/aarch64/arm_neon.h (vfma_n_f64): New.
19350 (vfms_n_f32): Likewise.
19351 (vfms_n_f64): Likewise.
19352 (vfmsq_n_f32): Likewise.
19353 (vfmsq_n_f64): Likewise.
19355 2016-05-17 Gerald Pfeifer <gerald@pfeifer.com>
19357 * wide-int.h: Change fixed_wide_int_storage from class to struct.
19359 2016-05-17 Richard Biener <rguenther@suse.de>
19361 PR tree-optimization/71132
19362 * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
19363 Only add control dependences for blocks in the loop.
19364 (build_rdg): Adjust.
19365 (generate_code_for_partition): Return whether loop should
19366 be destroyed and delay that.
19367 (distribute_loop): Likewise.
19368 (pass_loop_distribution::execute): Record loops to be destroyed
19369 and perform delayed destroying of loops.
19371 2016-05-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19374 * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
19376 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
19378 * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
19380 2016-05-17 Ilya Enkovich <ilya.enkovich@intel.com>
19383 * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
19384 insertion point for instructions generated by validize_mem.
19386 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
19388 * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
19391 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
19393 * config/aarch64/aarch64.c
19394 (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
19395 rather than a macro.
19397 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
19399 * doc/invoke.texi (AArch64 Options): Various updates.
19401 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
19403 * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
19404 into instrumentation thunks.
19405 * cif-code.def (CIF_CHKP): New.
19407 2016-05-16 Uros Bizjak <ubizjak@gmail.com>
19409 * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
19411 2016-05-16 Martin Jambor <mjambor@suse.cz>
19413 * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
19414 (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
19416 2016-05-16 Marek Polacek <polacek@redhat.com>
19418 * gimple.c (maybe_remove_unused_call_args): Fix typos in the
19421 2016-05-16 Martin Jambor <mjambor@suse.cz>
19424 * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
19425 the outlined kernel function.
19427 2016-05-16 Robert Suchanek <robert.suchanek@imgtec.com>
19429 * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
19430 (ISA_HAS_DLSA): Ditto.
19432 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
19434 * config/mips/m5100.md (m51_int_load): Update the latency to 2.
19436 2016-05-16 Nathan Sidwell <nathan@acm.org>
19438 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
19439 (nvptx_name_replacement): Restore. Add comment.
19440 (write_fn_proto, write_fn_proto_from_insn,
19441 nvptx_output_call_insn): Restore
19442 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
19444 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
19446 * config/aarch64/aarch64.md
19447 (add<mode>3_compareC_cconly_imm): Remove use of %w.
19448 (add<mode>3_compareC_imm): Likewise.
19449 (<optab>si3_uxtw): Split into register and immediate variants.
19450 (andsi3_compare0_uxtw): Likewise.
19451 (and<mode>3_compare0): Likewise.
19452 (and<mode>3nr_compare0): Likewise.
19453 (stack_protect_test_<mode>): Don't use %x for memory operands.
19455 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
19457 * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
19459 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
19461 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
19462 Split integer shifts into shift_reg and bfm.
19463 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
19464 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
19465 (ror<mode>3_insn): Likewise.
19466 (<optab>si3_insn_uxtw): Likewise.
19467 (<optab><mode>3_insn): Change to rotate_imm.
19468 (extr<mode>5_insn_alt): Likewise.
19469 (extrsi5_insn_uxtw): Likewise.
19470 (extrsi5_insn_uxtw_alt): Likewise.
19472 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
19474 * doc/tm.texi: Regenerate.
19475 * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
19476 (TARGET_INVALID_RETURN_TYPE): Remove.
19477 * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
19478 TARGET_INVALID_RETURN_TYPE.
19479 * target.def (invalid_parameter_type): Remove.
19480 (invalid_return_type): Remove.
19482 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
19484 * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
19485 on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
19487 * ipa-inline-transform.c (inline_call): When inlining into thunk produce
19489 (preserve_function_body_p): No need to preserve function body
19490 * cif-codes.def (CIF_THUNK): Remove.
19491 * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
19493 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
19495 * tree-inline.c (expand_call_inline): recurse after inlining thunk.
19497 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
19499 * tree.c (free_lang_data_in_decl): Also set target/optimization flags
19502 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
19504 * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
19505 (inline_small_functions): Do not look for function symbol when
19508 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
19510 * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
19513 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
19514 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19515 Jiong Wang <jiong.wang@arm.com>
19517 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
19518 for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
19519 Define __ARM_FP16_ARGS when appropriate.
19520 * config/arm/arm.c (arm_invalid_parameter_type): Remove
19522 (arm_invalid_return_type): Likewise.
19523 (TARGET_INVALID_PARAMETER_TYPE): Remove.
19524 (TARGET_INVALID_RETURN_TYPE): Remove.
19525 (aapcs_vfp_sub_candidate): Allow HFmode.
19526 (aapcs_vfp_allocate): Add comment. Support HFmode.
19527 (aapcs_vfp_allocate_return_reg): Likewise.
19528 (struct aapcs_cp_arg_layout): Slightly reword comments for
19529 is_return_candidate and allocate_return_reg.
19530 (output_mov_vfp): Update assert.
19531 (arm_hard_regno_mode_ok): Remove comment, update HF-mode
19533 (arm_invalid_parameter_type): Remove.
19534 (amr_invalid_return_type): Remove.
19535 * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
19536 * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
19537 * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
19539 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
19541 * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
19542 * config/aarch64/arch64-protos.h
19543 (aarch64_legitimize_reload_address): Remove.
19544 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
19547 2016-05-16 Eric Botcazou <ebotcazou@adacore.com>
19549 * configure.ac: Add ACX_NONCANONICAL_HOST.
19550 * configure: Regenerate.
19551 * Makefile.in: Set host_noncanonical.
19553 2016-05-14 Uros Bizjak <ubizjak@gmail.com>
19556 * config/i386/i386.md (*movtf_internal): Before register allocation,
19557 do not allow FP constants for CM_MEDIUM memory model, allow only
19558 standard FP constants for CM_LARGE and CM_LARGE_PIC models.
19559 (*movxf_internal): Ditto.
19560 (*movdf_internal): Ditto.
19561 (*movsf_internal): Ditto.
19563 2016-05-13 Segher Boessenkool <segher@kernel.crashing.org>
19565 PR rtl-optimization/67483
19566 * combine.c (make_compound_operation): Don't call extract_left_shift
19567 with negative shift amounts.
19569 2016-05-13 Jakub Jelinek <jakub@redhat.com>
19572 * fold-const.c (fold_checksum_tree): Allow modification
19573 of TYPE_ALIAS_SET during folding.
19575 * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
19576 ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
19577 (ix86_split_to_parts): Likewise. Fix up formatting.
19579 2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
19581 * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
19582 unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
19585 2016-05-13 Nathan Sidwell <nathan@acm.org>
19587 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
19588 (nvptx_name_replacement): Delete.
19589 (write_fn_proto, write_fn_proto_from_insn,
19590 nvptx_output_call_insn): Remove nvptx_name_replacement call.
19591 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
19592 * langhooks.c (add_builtin_funcction_common): Call
19593 targetm.mangle_decl_assembler_name.
19595 * config/nvptx/nvptx.c (write_fn_proto): Handle
19596 BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
19598 2016-05-13 Martin Liska <mliska@suse.cz>
19600 * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
19601 and PRIu64 in printf format.
19603 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19605 * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
19608 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19610 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
19611 Change --param max-completely-peeled-times to
19612 --param max-completely-peel-times in dump file printing.
19614 2016-05-13 Richard Biener <rguenther@suse.de>
19616 PR tree-optimization/42587
19617 * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
19618 (find_bswap_or_nop_1): Likewise.
19619 (bswap_replace): Likewise.
19621 2016-05-13 Martin Liska <mliska@suse.cz>
19623 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
19624 Initialize a variable with default value.
19626 2016-05-13 Martin Liska <mliska@suse.cz>
19628 * doc/invoke.texi: Enhance explanation of error recovery
19631 2016-05-13 Martin Liska <mliska@suse.cz>
19633 * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
19634 (struct cost_pair): Change inv_expr_id (int) to inv_expr
19635 (iv_inv_expr_ent *).
19636 (struct iv_inv_expr_ent): Comment struct fields.
19637 (sort_iv_inv_expr_ent): New function.
19638 (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
19639 (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
19640 a hash_map between iv_inv_expr_ent and number of usages.
19641 (niter_for_exit): Fix coding style.
19642 (tree_ssa_iv_optimize_init): Use renamed variable.
19643 (determine_base_object): Fix coding style.
19644 (alloc_iv): Likewise.
19645 (find_interesting_uses_outside): Likewise.
19646 (add_candidate_1): Likewise.
19647 (add_standard_iv_candidates): Likewise.
19648 (set_group_iv_cost): Replace inv_expr_id with inv_expr.
19649 (prepare_decl_rtl): Fix coding style.
19650 (get_address_cost): Likewise.
19651 (get_shiftadd_cost): Likewise.
19652 (force_expr_to_var_cost): Likewise.
19653 (compare_aff_trees): Likewise.
19654 (get_expr_id): Restructure the function.
19655 (get_loop_invariant_expr_id): Renamed to
19656 get_loop_invariant_expr.
19657 (get_computation_cost_at): Replace usage of inv_expr_id with
19659 (get_computation_cost): Likewise.
19660 (determine_group_iv_cost_generic): Likewise.
19661 (determine_group_iv_cost_address): Likewise.
19662 (iv_period): Fix coding style.
19663 (iv_elimination_compare_lt): Likewise.
19664 (may_eliminate_iv): Likewise.
19665 (determine_group_iv_cost_cond): Replace usage of inv_expr_id with
19667 (determine_group_iv_costs): Dump invariant expressions.
19668 (iv_ca_recount_cost): Use the newly added hash_map.
19669 (iv_ca_set_remove_invariants): Fix coding style.
19670 (iv_ca_set_add_invariants): Fix coding style.
19671 (iv_ca_set_no_cp): Utilize the newly added hash_map for used
19673 (iv_ca_set_cp): Likewise.
19674 (iv_ca_new): Initialize the newly added hash_map and remove
19675 initialization of fields.
19676 (iv_ca_free): Delete the hash_map.
19677 (iv_ca_dump): Dump invariant expressions.
19678 (iv_ca_extend): Fix coding style.
19679 (try_add_cand_for): Likewise.
19680 (create_new_ivs): Dump information about # of avg iterations and
19681 # of used invariant expressions.
19682 (rewrite_use_compare): Fix coding style.
19683 (free_loop_data): Set default value for max_inv_expr_id.
19685 2016-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
19687 * cse.c (rest_of_handle_cse): Use cleanup_cfg
19688 returned value cse_cfg_altered computation.
19689 (rest_of_handle_cse2): Likewise.
19690 (rest_of_handle_cse_after_global_opts): Likewise.
19692 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19695 * config/arm/arm.c (arm32_output_mi_thunk): New.
19696 (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
19697 to split Thumb1 vs TARGET_32BIT functionality.
19698 (arm_thumb1_mi_thunk): New.
19700 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19702 * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
19705 2016-05-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19708 * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
19710 2016-05-13 Eric Botcazou <ebotcazou@adacore.com>
19712 * builtins.c (expand_builtin_memcmp): Do not emit the call here.
19713 (expand_builtin_trap): Emit a regular call.
19714 (set_builtin_user_assembler_name): Remove obsolete cases.
19715 * dse.c (scan_insn): Adjust.
19716 * except.c: Include calls.h.
19717 (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
19718 emit a regular call to setjmp.
19719 * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
19720 (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
19721 (emit_block_move_via_libcall): Delete.
19722 (block_move_fn): Delete.
19723 (init_block_move_fn): Likewise.
19724 (emit_block_move_libcall_fn): Likewise.
19725 (emit_block_op_via_libcall): New function.
19726 (set_storage_via_libcall): Tidy up and use memset builtin.
19727 (block_clear_fn): Delete.
19728 (init_block_clear_fn): Likewise.
19729 (clear_storage_libcall_fn): Likewise.
19730 (expand_assignment): Call emit_block_move_via_libcall.
19731 Do not include gt-expr.h.
19732 * expr.h (emit_block_op_via_libcall): Declare.
19733 (emit_block_copy_via_libcall): New inline function.
19734 (emit_block_move_via_libcall): Likewise.
19735 (emit_block_comp_via_libcall): Likewise.
19736 (block_clear_fn): Delete.
19737 (init_block_move_fn): Likewise.
19738 (init_block_clear_fn): Likewise.
19739 (emit_block_move_via_libcall): Likewise.
19740 (set_storage_via_libcall): Add default parameter value.
19741 * libfuncs.h (enum libfunc_index): Remove obsolete values.
19742 (abort_libfunc): Delete.
19743 (memcpy_libfunc): Likewise.
19744 (memmove_libfunc): Likewise.
19745 (memcmp_libfunc): Likewise.
19746 (memset_libfunc): Likewise.
19747 (setbits_libfunc): Likewise.
19748 (setjmp_libfunc): Likewise.
19749 (longjmp_libfunc): Likewise.
19750 (profile_function_entry_libfunc): Likewise.
19751 (profile_function_exit_libfunc): Likewise.
19752 (gcov_flush_libfunc): Likewise.
19753 * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
19754 and DECL_VISIBILITY on the declaration.
19755 (init_optabs): Do not initialize obsolete libfuncs.
19756 * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
19757 * tree-core.h (ECF_RET1): Define.
19758 (ECF_TM_PURE): Adjust.
19759 (ECF_TM_BUILTIN): Likewise.
19760 * tree.c (set_call_expr_flags): Deal with ECF_RET1.
19761 (build_common_builtin_nodes): Initialize abort builtin.
19762 Add ECF_RET1 on memcpy, memmove and memset builtins.
19763 Pass final flags for alloca and alloca_with_align builtins.
19764 * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
19766 * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
19767 * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
19768 set_storage_via_libcall and call emit_block_copy_via_libcall.
19770 2016-05-12 Uros Bizjak <ubizjak@gmail.com>
19772 * config/i386/i386.md (*call_got_x32): Change operand 0 to
19773 DImode before it is passed to ix86_output_call_operand.
19774 (*call_value_got_x32): Ditto for operand 1.
19776 2016-05-12 Jiong Wang <jiong.wang@arm.com>
19778 PR rtl-optimization/70904
19779 * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
19780 reload for wide mode.
19782 2016-05-12 Marek Polacek <polacek@redhat.com>
19785 * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
19786 * langhooks.c (lhd_incomplete_type_error): Add location parameter.
19787 * langhooks.h (incomplete_type_error): Likewise.
19788 * tree.c (size_in_bytes_loc): Renamed from size_in_bytes. Add location
19789 parameter, pass it down to incomplete_type_error.
19790 * tree.h (size_in_bytes): New inline overload.
19791 (size_in_bytes_loc): Renamed from size_in_bytes.
19793 2016-05-12 Richard Biener <rguenther@suse.de>
19795 PR tree-optimization/71059
19796 * tree-ssa-pre.c (phi_translate_1): Fully fold translated
19797 nary before looking up or entering the expression into the VN
19799 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
19800 Make sure to re-use NARYs without result as inserted by
19803 2016-05-12 Richard Biener <rguenther@suse.de>
19805 PR tree-optimization/71062
19806 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
19808 * tree-ssa-structalias.c (set_uids_in_ptset): Set
19809 vars_contains_restrict if the var is a restrict tag.
19810 * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
19811 do not disambiguate pointers against it.
19812 (dump_points_to_solution): Re-structure and adjust for new
19813 vars_contains_restrict flag.
19814 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
19816 2016-05-12 Martin Liska <mliska@suse.cz>
19818 * doc/invoke.texi: Explain connection between
19819 -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
19821 2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
19823 PR tree-optimization/71006
19824 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
19825 consider COND_EXPR as a mask producer.
19827 2016-05-12 Marek Polacek <polacek@redhat.com>
19830 * opts.c (common_handle_option): Detect missing argument for --help^.
19832 2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19835 * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
19836 when popping the PC and within an interrupt handler routine.
19837 Add missing tab to output of "ldmfd".
19838 (output_return_instruction): Output LDMFD with SP update rather
19839 than POP when returning from interrupt handler.
19841 2016-05-12 Jakub Jelinek <jakub@redhat.com>
19843 * config/i386/i386.md (isa): Add x64_avx512dq, enable if
19844 TARGET_64BIT && TARGET_AVX512DQ.
19845 * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
19846 (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
19847 (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
19848 *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
19849 (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
19850 (*vec_extractv4si_zext): Add avx512dq alternative.
19851 (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
19852 use v instead of x constraint in other alternatives where possible.
19854 * config/i386/sse.md (sse2_loadld): Use v instead of x
19855 constraint in alternatives 0,1,4.
19857 * config/i386/sse.md (pinsr_evex_isa): New mode attr.
19858 (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
19859 v constraints instead of x and <pinsr_evex_isa> isa attribute.
19862 * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
19863 <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
19864 is not emitted unless TARGET_AVX512BW.
19865 (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
19866 Likewise. For TARGET_AVX512BW, use "=v" constraint instead of "=x"
19867 for the result operand.
19869 * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
19870 constraint instead of x in avx alternatives. Use maybe_evex instead
19873 * config/i386/constraints.md (Yv): New constraint.
19874 * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
19875 TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
19876 * config/i386/i386.md (avx512fvecmode): New mode attr.
19877 (*pushtf): Use v constraint instead of x.
19878 (*movtf_internal): Likewise. For TARGET_AVX512VL and
19879 xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
19880 (*absneg<mode>2): Use Yv constraint instead of x constraint.
19881 (*absnegtf2_sse): Likewise.
19882 (copysign<mode>3_const, copysign<mode>3_var): Likewise.
19883 * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
19884 avx512f alternatives.
19885 (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
19887 2016-05-12 Richard Biener <rguenther@suse.de>
19889 PR tree-optimization/71060
19890 * tree-data-ref.c (initialize_data_dependence_relation): Do not
19891 require exact match of DR_BASE_OBJECT but only matching address and
19894 2016-05-12 Richard Biener <rguenther@suse.de>
19896 PR tree-optimization/70986
19897 * cfganal.c: Include cfgloop.h.
19898 (dfs_find_deadend): Prefer to take edges exiting loops.
19900 2016-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19902 * gcc.target/powerpc/pr70963.c: Require at least power8 at both
19903 compile and run time.
19905 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
19908 * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
19910 2016-05-11 Uros Bizjak <ubizjak@gmail.com>
19912 * config/i386/i386.c (legitimize_pic_address): Use
19913 copy_to_suggested_reg instead of gen_movsi.
19915 2016-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
19917 * config/rs6000/predicates.md (quad_memory_operand): Move most of
19918 the code into quad_address_p and call it to share code with
19919 vsx_quad_dform_memory_operand.
19920 (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
19922 * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
19923 bit instead of being a separate word. Split -mpower9-dform into
19924 two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
19925 * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
19926 for the register class supporting 128-bit quad word memory offsets.
19927 (mode_supports_vsx_dform_quad): Helper function to return if the
19928 register class uses quad word memory offsets.
19929 (rs6000_debug_addr_mask): Add support for quad word memory offsets.
19930 (rs6000_debug_reg_global): Always print if we are using LRA or not.
19931 (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
19932 instructions are enabled, set up the appropriate addr_masks for
19934 (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
19935 -mpower9-dform-scalar, instead of -mpower9-dform.
19936 (rs6000_option_override_internal): Split -mpower9-dform into two
19937 switches, -mpower9-dform-scalar and -mpower9-dform-vector. The
19938 -mpower9-dform switch sets or clears both. If we are not using
19939 the LRA register allocator, do not enable -mpower9-dform-vector by
19940 default. If we are using LRA, enable -mpower9-dform-vector and
19941 -mvsx-timode if it is appropriate. Issue a warning if either
19942 -mpower9-dform-vector or -mvsx-timode are explicitly used without
19944 (quad_address_offset_p): New helper function to return if the
19945 offset is legal for quad word memory instructions.
19946 (quad_address_p): New function to determin if GPR or vector
19947 register quad word memory addresses are legal.
19948 (mem_operand_gpr): Validate quad word address offsets.
19949 (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
19950 d-form (register + offset) instructions.
19951 (offsettable_ok_by_alignment): Likewise.
19952 (rs6000_legitimate_offset_address_p): Likewise.
19953 (legitimate_lo_sum_address_p): Likewise.
19954 (rs6000_legitimize_address): Likewise.
19955 (rs6000_legitimize_reload_address): Add more debug statements for
19957 (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
19958 d-form instructions.
19959 (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
19960 d-form instructions. Distinguish different cases in debug
19961 output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
19962 d-form instructions.
19963 (rs6000_preferred_reload_class): Likewise.
19964 (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
19965 instructions. If ISA 3.0 is available, generate lxvx/stxvx instead
19966 of the ISA 2.06 indexed memory instructions.
19967 (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
19968 use them to save/restore the saved vector registers instead of
19969 using Altivec instructions.
19970 (rs6000_emit_epilogue): Likewise.
19971 (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
19972 (rs6000_opt_masks): Split -mpower9-dform into
19973 -mpower9-dform-scalar and -mpower9-dform-vector.
19974 (rs6000_print_options_internal): Print -mno-<switch> if <switch>
19976 * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
19977 ISA 3.0 vector indexed memory instructions, and fold the code into
19978 the normal mov<mode> patterns.
19979 (p9_vecstore_<mode>): Likewise.
19980 (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
19982 (vsx_movti_64bit): Likewise.
19983 (vsx_movti_32bit): Likewise.
19984 * config/rs6000/constraints.md (wO constraint): New constraint for
19985 ISA 3.0 vector d-form support.
19986 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
19987 -mpower9-dform-scalar instead of -mpower9-dform. Add note not to
19988 include -mpower9-dform-vector until we switch over to LRA.
19989 (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
19990 switches, -mpower9-dform-scalar and -mpower9-dform-vector.
19991 * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
19992 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
19993 for -mpower9-dform and -mlra.
19994 * doc/md.texi (wO constraint): Document wO constraint.
19996 2016-05-11 Alexander Monakov <amonakov@ispras.ru>
19998 * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
19999 'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
20000 * genautomata.c (output_internal_insn_code_evaluation): Simplify.
20001 Move handling of non-insn arguments inline into the sole user:
20002 (output_trans_func): ...here.
20003 (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
20004 in emitted function prototype.
20005 (output_internal_insn_latency_func): Ditto. Simplify.
20006 (output_internal_maximal_insn_latency_func): Ditto. Delete
20007 always-unused argument.
20008 (output_insn_latency_func): Ditto.
20009 (output_maximal_insn_latency_func): Ditto.
20011 2016-05-11 Richard Biener <rguenther@suse.de>
20013 PR tree-optimization/71055
20014 * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
20015 sth with precision not equal to access size verify we don't chop
20018 2016-05-11 Richard Biener <rguenther@suse.de>
20021 * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
20022 (dwarf2out_finish): Move retry_incomplete_types call ...
20023 (dwarf2out_early_finish): ... here.
20025 2016-05-11 Richard Biener <rguenther@suse.de>
20027 PR middle-end/71002
20028 * alias.c (reference_alias_ptr_type): Preserve alias-set zero
20029 if the langhook insists on it.
20030 * fold-const.c (make_bit_field_ref): Add arg for the original
20031 reference and preserve its alias-set.
20032 (decode_field_reference): Take exp by reference and adjust it
20033 to the original memory reference.
20034 (optimize_bit_field_compare): Adjust callers.
20035 (fold_truth_andor_1): Likewise.
20036 * gimplify.c (gimplify_expr): Adjust in-SSA form test.
20038 2016-05-11 Ilya Enkovich <ilya.enkovich@intel.com>
20040 PR middle-end/70807
20041 * cfgrtl.h (delete_insn_and_edges): Now return bool.
20042 * cfgrtl.c (delete_insn_and_edges): Likewise.
20043 * config/i386/i386.c (convert_scalars_to_vector): Remove
20045 * cse.c (cse_insn): Compute cse_cfg_altered.
20046 (delete_trivially_dead_insns): Likewise.
20047 (cse_cc_succs): Likewise.
20048 (rest_of_handle_cse): Free dominance info if required.
20049 (rest_of_handle_cse2): Likewise.
20050 (rest_of_handle_cse_after_global_opts): Likewise.
20052 2016-05-11 Alan Modra <amodra@gmail.com>
20054 * config/rs6000/rs6000.c (is_complex_IBM_long_double,
20055 abi_v4_pass_in_fpr): New functions.
20056 (rs6000_function_arg_boundary): Exclude complex IBM long double
20057 from 64-bit alignment when ABI_V4.
20058 (rs6000_function_arg, rs6000_function_arg_advance_1,
20059 rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
20061 2016-05-10 Segher Boessenkool <segher@kernel.crashing.org>
20063 PR rtl-optimization/71028
20064 * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
20065 jump with just a return in the fallthrough block if the branch
20066 block contains just a return as well.
20068 2016-05-10 Marc Glisse <marc.glisse@inria.fr>
20070 * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
20071 * match.pd ((X & Y) ^ Y): ... this.
20072 ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
20073 | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
20075 2016-05-10 David Malcolm <dmalcolm@redhat.com>
20077 * read-md.c (require_char_ws): New function.
20078 (read_string): Simplify using require_char_ws.
20079 (handle_constants): Likewise.
20080 (handle_enum): Likewise.
20081 (handle_file): Likewise.
20082 * read-md.h (require_char_ws): New declaration.
20083 * read-rtl.c (read_conditions): Simplify using require_char_ws.
20084 (read_mapping): Likewise.
20085 (read_rtx_code): Likewise.
20086 (read_nested_rtx): Likewise.
20088 2016-05-10 James Norris <jnorris@codesourcery.com>
20090 * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
20091 if offloading is enabled and -fopenacc or -fopenmp is specified.
20092 (CRTOFFLOADEND): Likewise.
20093 (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
20094 (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
20096 2016-05-10 Uros Bizjak <ubizjak@gmail.com>
20098 * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
20099 gotoff_operand code paths. Use copy_to_suggested_regs and
20100 expand_simple_binop where appropriate. Cleanup.
20102 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
20105 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
20107 (dimode_scalar_chain::vector_const_cost): New.
20108 (dimode_scalar_chain::compute_convert_gain): Handle constants.
20109 (dimode_scalar_chain::convert_op): Likewise.
20110 (dimode_scalar_chain::convert_insn): Likewise.
20112 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
20114 * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
20115 unary operation, not a binary one.
20117 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
20119 PR middle-end/70877
20120 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
20121 calls with type casted fndecl.
20123 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
20125 PR tree-optimization/70786
20126 * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
20127 * calls.c (initialize_argument_information): Bind bounds
20128 with corresponding args passed by reference.
20130 2016-05-10 Jakub Jelinek <jakub@redhat.com>
20133 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
20134 *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
20135 use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
20138 2016-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20141 * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
20142 code for a zero scale factor.
20143 (vsx_xvcvdpuxds_scale): Likewise.
20145 2016-05-10 David Malcolm <dmalcolm@redhat.com>
20147 * diagnostic-show-locus.c (layout::layout): Call show_ruler
20148 if show_ruler_p was set on the context.
20149 (layout::show_ruler): New method.
20150 * diagnostic.h (struct diagnostic_context): Add field
20153 2016-05-10 Richard Biener <rguenther@suse.de>
20155 PR tree-optimization/71039
20156 * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
20157 (chk_uses): New function.
20158 (propagate_with_phi): Verify we can safely replicate the lhs of an
20159 aggregate assignment on all incoming edges.
20161 2016-05-10 Oleg Endo <olegendo@gcc.gnu.org>
20163 * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
20165 (rx_atomic_sequence): New class.
20166 * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
20167 (is_interrupt_func, is_fast_interrupt_func): Make non-static and
20169 (rx_atomic_sequence::rx_atomic_sequence,
20170 rx_atomic_sequence::~rx_atomic_sequence): New functions.
20171 * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
20172 CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
20173 CTRLREG_INTB): New constants.
20174 (FETCHOP): New code iterator.
20175 (fethcop_name, fetchop_name2): New iterator code attributes.
20176 (QIHI): New mode iterator.
20177 (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
20178 atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
20179 atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
20181 2016-05-10 Martin Liska <mliska@suse.cz>
20183 * tree-inline.c (remap_dependence_clique): Do not remap
20184 debugging statements.
20186 2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20188 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
20189 ("*fixuns_truncdfdi2_z13")
20190 ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
20191 ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
20192 ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
20194 2016-05-10 Richard Biener <rguenther@suse.de>
20196 PR tree-optimization/70497
20197 PR tree-optimization/28367
20198 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
20200 (visit_reference_op_load): ... here.
20201 (vn_reference_lookup_3): Use it to handle subreg-like accesses
20202 with simplified BIT_FIELD_REFs.
20203 * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
20204 * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
20207 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
20209 * dwarf2out.c (add_abstract_origin_attribute): Adjust
20210 documentation comment. For BLOCK nodes, add a
20211 DW_AT_abstract_origin attribute that points to the DIE generated
20212 for the origin BLOCK.
20213 (gen_lexical_block_die): Call add_abstract_origin_attribute for
20214 blocks from inlined functions.
20216 2016-05-10 Alan Modra <amodra@gmail.com>
20219 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
20220 regrename modifying insns saving lr before __morestack call.
20221 * config/rs6000/rs6000.md (split_stack_return): Similarly for
20222 insns restoring lr after __morestack call.
20224 2016-05-09 Jakub Jelinek <jakub@redhat.com>
20226 * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
20227 lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
20229 * config/i386/sse.md (vec_interleave_high<mode>,
20230 vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
20231 <avx512>_vpermt2var<mode>3_maskz): Likewise.
20233 2016-05-04 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
20235 * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
20236 function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
20237 parallel reassociation for power8 and forward.
20239 2016-05-09 Uros Bizjak <ubizjak@gmail.com>
20241 * config/i386/i386.md (absneg splitters with general regs): Use
20242 general_reg_operand predicate.
20243 (btsq peephole2): Use x86_64_immediate_operand to check if new
20244 value is suitable for immediate operand. Generate emitted insn
20245 using RTL expressions.
20246 (btcq peephole2): Ditto.
20247 (btrq peephole2): Ditto. Generate correct immediate operand
20250 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
20252 * cfgexpand.c (expand_debug_expr): Fix address offset for negative
20255 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
20257 * tree-affine.c (wide_int_constant_multiple_p): Add missing
20258 pointer dereference.
20260 2016-05-09 Richard Biener <rguenther@suse.de>
20262 PR tree-optimization/70985
20263 * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
20264 op0 isn't a gimple register.
20266 2016-05-09 Prachi Godbole <prachi.godbole@imgtec.com>
20268 * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
20269 (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
20270 (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
20271 (i6400_fpu_mult): New cpu units.
20272 (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
20273 (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
20274 (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
20275 (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
20276 (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
20277 (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
20278 (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
20279 (i6400_msa_long_float4, i6400_msa_long_float5)
20280 (i6400_msa_long_float8, i6400_msa_fdiv_df)
20281 (i6400_msa_fdiv_sf): New reservations.
20282 * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
20283 (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
20284 (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
20285 (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
20286 (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
20287 (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
20288 (msa_short_cmp, msa_short_float2, msa_short_logic3)
20289 (msa_short_store4, msa_long_load, msa_short_store)
20290 (msa_long_logic, msa_long_float2, msa_long_float4)
20291 (msa_long_float5, msa_long_float8, msa_long_mult)
20292 (msa_long_fdiv, msa_long_div): New reservations.
20294 2016-05-09 Robert Suchanek <robert.suchanek@imgtec.com>
20295 Sameera Deshpande <sameera.deshpande@imgtec.com>
20296 Matthew Fortune <matthew.fortune@imgtec.com>
20297 Graham Stott <graham.stott@imgtec.com>
20298 Chao-ying Fu <chao-ying.fu@imgtec.com>
20300 * config.gcc: Add MSA header file for mips*-*-* target.
20301 * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
20302 (Ubv8i, Urv8): New constraints.
20303 * config/mips/mips-ftypes.def: Add function types for MSA
20305 * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
20306 (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
20307 * config/mips/mips-msa.md: New file.
20308 * config/mips/mips-protos.h
20309 (mips_split_128bit_const_insns): New prototype.
20310 (mips_msa_idiv_insns): Likewise.
20311 (mips_split_128bit_move): Likewise.
20312 (mips_split_128bit_move_p): Likewise.
20313 (mips_split_msa_copy_d): Likewise.
20314 (mips_split_msa_insert_d): Likewise.
20315 (mips_split_msa_fill_d): Likewise.
20316 (mips_expand_msa_branch): Likewise.
20317 (mips_const_vector_same_val_p): Likewise.
20318 (mips_const_vector_same_bytes_p): Likewise.
20319 (mips_const_vector_same_int_p): Likewise.
20320 (mips_const_vector_shuffle_set_p): Likewise.
20321 (mips_const_vector_bitimm_set_p): Likewise.
20322 (mips_const_vector_bitimm_clr_p): Likewise.
20323 (mips_msa_vec_parallel_const_half): Likewise.
20324 (mips_msa_output_division): Likewise.
20325 (mips_ldst_scaled_shift): Likewise.
20326 (mips_expand_vec_cond_expr): Likewise.
20327 * config/mips/mips.c (enum mips_builtin_type): Add
20328 MIPS_BUILTIN_MSA_TEST_BRANCH.
20329 (mips_gen_const_int_vector_shuffle): New prototype.
20330 (mips_const_vector_bitimm_set_p): New function.
20331 (mips_const_vector_bitimm_clr_p): Likewise.
20332 (mips_const_vector_same_val_p): Likewise.
20333 (mips_const_vector_same_bytes_p): Likewise.
20334 (mips_const_vector_same_int_p): Likewise.
20335 (mips_const_vector_shuffle_set_p): Likewise.
20336 (mips_symbol_insns): Forbid loading symbols via immediate for
20338 (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
20340 (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
20342 (mips_lx_address_p): Add support load indexed address for MSA.
20343 (mips_address_insns): Add calculation of instructions needed for
20344 stores and loads for MSA.
20345 (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR. Handle
20346 CONST_VECTOR for MSA and let it fall through.
20347 (mips_ldst_scaled_shift): New function.
20348 (mips_subword_at_byte): Likewise.
20349 (mips_msa_idiv_insns): Likewise.
20350 (mips_legitimize_move): Validate MSA moves.
20351 (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases. Add
20352 calculation of costs for MSA division.
20353 (mips_split_move_p): Check if MSA moves need splitting.
20354 (mips_split_move): Split MSA moves if necessary.
20355 (mips_split_128bit_move_p): New function.
20356 (mips_split_128bit_move): Likewise.
20357 (mips_split_msa_copy_d): Likewise.
20358 (mips_split_msa_insert_d): Likewise.
20359 (mips_split_msa_fill_d): Likewise.
20360 (mips_output_move): Handle MSA moves.
20361 (mips_expand_msa_branch): New function.
20362 (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
20363 Reinstate 'y' modifier.
20364 (mips_file_start): Add MSA .gnu_attribute.
20365 (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
20367 (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
20368 (mips_class_max_nregs): Add register size for MSA supported mode.
20369 (mips_cannot_change_mode_class): Allow conversion between MSA
20370 vector modes and TImode.
20371 (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
20373 (mips_secondary_reload_class): Force MSA loads/stores via memory.
20374 (mips_preferred_simd_mode): Add preffered modes for MSA.
20375 (mips_vector_mode_supported_p): Add MSA supported modes.
20376 (mips_autovectorize_vector_sizes): New function.
20377 (mips_msa_output_division): Likewise.
20378 (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
20379 (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
20380 (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
20381 (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
20382 (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
20383 (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
20384 (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
20385 (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
20386 (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
20387 (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
20388 (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
20389 (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
20390 (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
20391 (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
20392 (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
20393 (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
20394 (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
20395 (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
20396 (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
20397 (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
20398 (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
20399 (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
20400 (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
20401 (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
20402 (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
20403 (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
20404 (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
20405 (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
20406 (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
20407 (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
20408 (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
20409 (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
20410 (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
20411 (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
20412 (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
20413 (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
20414 (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
20415 (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
20416 (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
20417 (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
20418 (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
20419 (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
20420 (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
20421 (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
20422 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
20423 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
20424 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
20425 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
20426 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
20427 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
20428 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
20429 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
20430 (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
20431 (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
20432 (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
20433 (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
20434 (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
20435 (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
20436 (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
20437 (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
20438 (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
20439 (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
20440 (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
20441 (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
20442 (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
20443 (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
20444 (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
20445 (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
20446 (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
20447 (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
20448 (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
20449 (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
20450 (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
20451 (CODE_FOR_msa_ldi_d): New code_aliasing macros.
20452 (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
20453 slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
20454 srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
20455 srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
20456 srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
20457 srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
20458 bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
20459 bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
20460 bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
20461 binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
20462 binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
20463 binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
20464 addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
20465 subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
20466 max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
20467 max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
20468 maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
20469 mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
20470 mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
20471 min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
20472 ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
20473 clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
20474 clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
20475 clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
20476 clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
20477 clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
20478 st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
20479 sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
20480 adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
20481 adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
20482 ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
20483 aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
20484 aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
20485 subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
20486 subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
20487 subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
20488 asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
20489 maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
20490 msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
20491 div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
20492 hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
20493 hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
20494 mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
20495 dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
20496 dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
20497 dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
20498 sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
20499 splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
20500 pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
20501 ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
20502 ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
20503 ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
20504 ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
20505 bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
20506 fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
20507 pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
20508 nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
20509 copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
20510 insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
20511 bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
20512 fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
20513 fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
20514 fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
20515 fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
20516 fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
20517 fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
20518 fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
20519 fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
20520 fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
20521 fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
20522 mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
20523 msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
20524 fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
20525 flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
20526 ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
20527 ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
20528 ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
20530 (mips_get_builtin_decl_index): New array.
20531 (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
20532 (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
20533 (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
20534 (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
20535 (mips_init_builtins): Initialize mips_get_builtin_decl_index
20537 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
20539 (mips_expand_builtin_insn): Prepare operands for
20540 CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
20541 CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
20542 CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
20543 CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
20544 CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
20545 CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
20546 CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
20547 CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
20548 CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
20549 CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
20550 CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
20551 CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
20552 CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
20553 CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
20554 CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
20555 CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
20556 CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
20557 CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
20558 CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
20559 CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
20560 CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
20561 CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
20562 CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
20563 CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
20564 CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
20565 CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
20566 CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
20567 CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
20568 CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
20569 CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
20570 CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
20571 CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
20572 CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
20573 CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
20574 CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
20575 CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
20576 CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
20577 CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
20578 CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
20579 CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
20580 CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
20581 (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
20582 (mips_set_compression_mode): Disallow MSA with MIPS16 code.
20583 (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
20584 These are set implicitly and an error is reported if overridden.
20585 (mips_expand_builtin_msa_test_branch): New function.
20586 (mips_expand_msa_shuffle): Likewise.
20587 (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
20588 (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
20589 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
20590 (mips_expand_vec_unpack): Add support for MSA.
20591 (mips_expand_vector_init): Likewise.
20592 (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
20593 instead of const0_rtx.
20594 (mips_msa_vec_parallel_const_half): New function.
20595 (mips_gen_const_int_vector): Likewise.
20596 (mips_gen_const_int_vector_shuffle): Likewise.
20597 (mips_expand_msa_cmp): Likewise.
20598 (mips_expand_vec_cond_expr): Likewise.
20599 * config/mips/mips.h
20600 (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
20601 (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
20603 (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
20604 (ISA_HAS_MSA): New macro.
20605 (UNITS_PER_MSA_REG): Likewise.
20606 (BITS_PER_MSA_REG): Likewise.
20607 (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
20608 (MSA_REG_FIRST): New macro.
20609 (MSA_REG_LAST): Likewise.
20610 (MSA_REG_NUM): Likewise.
20611 (MSA_REG_P): Likewise.
20612 (MSA_REG_RTX_P): Likewise.
20613 (MSA_SUPPORTED_MODE_P): Likewise.
20614 (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
20615 (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
20616 * config/mips/mips.md: Include mips-msa.md.
20617 (alu_type): Add simd_add.
20618 (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
20619 (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
20620 simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
20621 simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
20622 simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
20623 simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
20624 simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
20625 simd_move, simd_load, simd_store. Choose "multi" for moves
20627 (qword_mode): New attribute.
20628 (insn_count): Add instruction count for quad moves.
20629 Increase the count for MIPS SIMD division.
20630 (UNITMODE): Add UNITMODEs for vector types.
20631 (addsub): New code iterator.
20632 * config/mips/mips.opt (mmsa): New option.
20633 * config/mips/msa.h: New file.
20634 * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
20636 * config/mips/mti-linux.h: Likewise.
20637 * config/mips/predicates.md
20638 (const_msa_branch_operand): New constraint.
20639 (const_uimm3_operand): Likewise.
20640 (const_uimm4_operand): Likewise.
20641 (const_uimm5_operand): Likewise.
20642 (const_uimm8_operand): Likewise.
20643 (const_imm5_operand): Likewise.
20644 (aq10b_operand): Likewise.
20645 (aq10h_operand): Likewise.
20646 (aq10w_operand): Likewise.
20647 (aq10d_operand): Likewise.
20648 (const_m1_operand): Likewise.
20649 (reg_or_m1_operand): Likewise.
20650 (const_exp_2_operand): Likewise.
20651 (const_exp_4_operand): Likewise.
20652 (const_exp_8_operand): Likewise.
20653 (const_exp_16_operand): Likewise.
20654 (const_vector_same_val_operand): Likewise.
20655 (const_vector_same_simm5_operand): Likewise.
20656 (const_vector_same_uimm5_operand): Likewise.
20657 (const_vector_same_uimm6_operand): Likewise.
20658 (const_vector_same_uimm8_operand): Likewise.
20659 (par_const_vector_shf_set_operand): Likewise.
20660 (reg_or_vector_same_val_operand): Likewise.
20661 (reg_or_vector_same_simm5_operand): Likewise.
20662 (reg_or_vector_same_uimm6_operand): Likewise.
20663 * doc/extend.texi (MIPS SIMD Architecture Functions): New
20665 * doc/invoke.texi (-mmsa): Document new option.
20667 2016-05-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20669 * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
20670 * configure: Regenerate.
20671 * config.in: Regenerate.
20672 * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
20673 on -fvtable-verify.
20674 * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
20675 (ENDFILE_VTV_SPEC): Define.
20677 2016-05-09 Kaushik Phatak <kaushik.phatak@kpit.com>
20679 * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
20680 registers in all interrupt handlers if necessary.
20681 (rl78_option_override): Add warning.
20682 (MUST_SAVE_MDUC_REGISTERS): New macro.
20683 (rl78_expand_epilogue): Restore the MDUC registers if necessary.
20684 * config/rl78/rl78.c (check_mduc_usage): New function.
20685 (mduc_regs): New structure to hold MDUC register data.
20686 * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
20687 (mulsi3_g13): Add is_g13_muldiv_insn attribute.
20688 (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
20689 (mulhi3_g13): Add is_g13_muldiv_insn attribute.
20690 * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
20691 * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
20693 2016-05-09 Bin Cheng <bin.cheng@arm.com>
20695 * tree-if-conv.c (tree-ssa-loop.h): Include header file.
20696 (tree-ssa-loop-niter.h): Ditto.
20697 (idx_within_array_bound, ref_within_array_bound): New functions.
20698 (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
20699 Factor out check on writable base object to ...
20700 (base_object_writable): ... here.
20702 2016-05-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20704 * config/arm/arm.md (probe_stack): Add modes to set source
20707 2016-05-09 Bernd Schmidt <bschmidt@redhat.com>
20709 * regrename.c (base_reg_class_for_rename): New static function.
20710 (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
20712 2016-05-08 Jan Hubicka <hubicka@ucw.cz>
20714 * cgraph.c (thunk_adjust): Export.
20715 * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
20716 * cgraphunit.c (thunk_adjust): Export.
20717 (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
20719 * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
20721 * tree-inline.c (expand_call_inline): Expand thunks inline.
20723 2016-05-08 Uros Bizjak <ubizjak@gmail.com>
20726 * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
20727 (*sse2_vd_cvtss2sd): Ditto.
20728 * config/i386/i386.md
20729 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
20730 Generate *sse2_vd_cvtsd2ss pattern.
20731 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
20732 Generate *sse2_vd_cvtss2sd pattern.
20734 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
20736 * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
20737 * config/sh/sh.c (get_sh_arg_class): ... this new function. Update its
20740 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
20742 * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
20743 * config/sh/sh.c: Define and declare variables on first use throughout
20745 (current_function_interrupt): Change to bool type.
20746 (frame_insn): Rename to emit_frame_insn and update users.
20747 (push_regs): Use bool for 'interrupt_handler' argument.
20748 (save_schedule_s): Remove.
20749 (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
20750 (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
20751 targetm.asm_out.unaligned_op.di.
20752 (gen_far_branch): Remove redundant forward declaration.
20753 (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
20754 MAX_TEMPS, save_schedule_ssave_schedule): Remove.
20755 (sh_set_return_address, sh_function_ok_for_sibcall,
20756 scavenge_reg): Update comments.
20757 (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
20758 (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
20759 (sh_attr_renesas_p): Remove unnecessary parentheses.
20760 (branch_dest): Simplify.
20761 * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
20762 Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
20763 (CUMULATIVE_ARGS): Change macro to typedef.
20764 (current_function_interrupt): Change to bool type.
20765 (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
20766 Surround with __cplusplus ifdef.
20767 (sh_compare_op0, sh_compare_op1): Remove.
20768 (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
20770 2016-05-07 Jim Wilson <jim.wilson@linaro.org>
20772 * config/arm/arm.md: (arch): Add neon.
20773 (arch_enabled): Return yes for arch neon when TARGET_NEON.
20774 * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3. Add
20775 neon_move as type for alt 3. Add arch attr enabling alt 3 for neon.
20776 Emit vmov.i64 for alt 3. Renumber alternatives 3 to 8. Adjust
20777 attributes for alt renumbering. Mark alt 3 as non-predicable.
20778 (thumb2_movdf_vfp): Likewise.
20780 2016-05-07 Uros Bizjak <ubizjak@gmail.com>
20782 * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
20783 to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
20784 (*andqi_1): Add preferred_for_speed attribute to disparage
20785 alternative 2 for TARGET_PARTIAL_REG_STALL targets.
20786 (*<code>qi_1): Ditto.
20787 (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
20788 alternative 1 for TARGET_PARTIAL_REG_STALL targets.
20789 (*ashlqi3_1): Ditto.
20790 (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
20791 Add preferred_for_size attribute to disparage alternative 0 and
20792 preferred_for_speed attribute to disparage alternative 1 for
20793 TARGET_PARTIAL_REG_STALL targets.
20795 2016-05-07 Tom de Vries <tom@codesourcery.com>
20797 PR tree-optimization/70956
20798 * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
20801 2016-05-07 Oleg Endo <olegendo@gcc.gnu.org>
20803 * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
20804 * config/sh/sh.c (sh_cbranch_distance): Implement it.
20805 * config/sh/sh.md (branch_zero): Remove define_attr.
20806 (define_delay): Disable delay slot if branch distance is one insn.
20808 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
20810 * config/i386/i386.md (LEAMODE): New mode attribute.
20811 (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
20812 (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
20813 and LEAMODE mode attribute. Use VOIDmode const_0_to_3_operand as
20814 operand 2 predicate.
20815 (*lea<mode>_general_2): Use VOIDmode for const248_operand.
20816 (*lea<mode>_general_3): Ditto.
20817 (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
20819 2016-05-06 Jakub Jelinek <jakub@redhat.com>
20821 * genmddump.c (main): Convert argv from char ** to const char **.
20823 2016-05-06 David Malcolm <dmalcolm@redhat.com>
20825 * coretypes.h (OVERRIDE): New macro.
20826 (FINAL): New macro.
20828 2016-05-06 Eric Botcazou <ebotcazou@adacore.com>
20830 * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
20831 allow coalescing if the types are compatible.
20833 2016-05-06 David Malcolm <dmalcolm@redhat.com>
20835 * pass_manager.h (pass_manager::register_pass_name): New method.
20836 (pass_manager::get_pass_by_name): New method.
20837 (pass_manager::create_pass_tab): New method.
20838 (pass_manager::m_name_to_pass_map): New field.
20839 * passes.c (name_to_pass_map): Delete global in favor of field
20840 "m_name_to_pass_map" of pass_manager.
20841 (register_pass_name): Rename from a function to...
20842 (pass_manager::register_pass_name): ...this method, updating
20843 for renaming of global "name_to_pass_map" to field
20844 "m_name_to_pass_map".
20845 (create_pass_tab): Rename from a function to...
20846 (pass_manager::create_pass_tab): ...this method, updating
20847 for renaming of global "name_to_pass_map" to field.
20848 (get_pass_by_name): Rename from a function to...
20849 (pass_manager::get_pass_by_name): ...this method.
20850 (enable_disable_pass): Convert use of get_pass_by_name to
20851 a method call, locating the pass_manager singleton.
20853 2016-05-06 David Malcolm <dmalcolm@redhat.com>
20855 * genattr-common.c (main): Convert argv from char ** to const char **.
20856 * genattr.c (main): Likewise.
20857 * genattrtab.c (main): Likewise.
20858 * genautomata.c (initiate_automaton_gen): Likewise.
20860 * gencodes.c (main): Likewise.
20861 * genconditions.c (main): Likewise.
20862 * genconfig.c (main): Likewise.
20863 * genconstants.c (main): Likewise.
20864 * genemit.c (main): Likewise.
20865 * genenums.c (main): Likewise.
20866 * genextract.c (main): Likewise.
20867 * genflags.c (main): Likewise.
20868 * genmddeps.c (main): Likewise.
20869 * genopinit.c (main): Likewise.
20870 * genoutput.c (main): Likewise.
20871 * genpeep.c (main): Likewise.
20872 * genpreds.c (main): Likewise.
20873 * genrecog.c (main): Likewise.
20874 * gensupport.c (init_rtx_reader_args_cb): Likewise.
20875 (init_rtx_reader_args): Likewise.
20876 * gensupport.h (init_rtx_reader_args_cb): Likewise.
20877 (init_rtx_reader_args): Likewise.
20878 * gentarget-def.c (main): Likewise.
20879 * read-md.c (read_md_files): Likewise.
20880 * read-md.h (read_md_files): Likewise.
20882 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
20884 * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
20885 instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
20886 * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
20887 Remove unused predicate.
20888 (register_and_not_fp_reg_operand): Ditto.
20890 2016-05-06 Martin Liska <mliska@suse.cz>
20892 * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
20893 instead of vec as the vector is local to the function.
20895 2016-05-06 Jakub Jelinek <jakub@redhat.com>
20897 * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
20898 avx512bw alternative.
20900 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
20901 before the ashr<mode>3 pattern.
20903 * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
20904 v instead of x in vex or maybe_vex alternatives, use
20905 maybe_evex instead of vex in prefix.
20907 * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
20908 *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
20909 vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
20910 in vex or maybe_vex alternatives, use maybe_evex instead of vex
20913 * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
20914 v instead of x in vex or maybe_vex alternatives, use
20915 maybe_evex instead of vex in prefix.
20917 * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
20918 sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
20919 sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
20920 sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
20921 alternatives, use maybe_evex instead of vex in prefix.
20923 * config/i386/sse.md (vec_interleave_lowv4sf,
20924 *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
20925 v instead of x in vex or maybe_vex alternatives, use
20926 maybe_evex instead of vex in prefix.
20928 * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
20929 v instead of x in vex or maybe_vex alternatives, use
20930 maybe_evex instead of vex in prefix.
20932 * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
20933 v constraint instead of x.
20935 2016-05-06 Nathan Sidwell <nathan@codesourcery.com>
20937 * gimple.c (gimple_call_same_target_p): Unique functions are eq.
20938 * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
20941 2016-05-06 Richard Biener <rguenther@suse.de>
20943 PR tree-optimization/70948
20944 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
20945 Properly clobber all fields of va_list for __builtin_va_start.
20947 2016-05-06 Yuri Rumyantsev <ysrumyan@gmail.com>
20950 * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
20951 loop latch destination.
20953 2016-05-06 Martin Liska <mliska@suse.cz>
20955 * tree-ssa-uninit.c: Apply manual changes
20956 to the GNU coding style.
20957 (prune_uninit_phi_opnds): Rename from
20958 prune_uninit_phi_opnds_in_unrealizable_paths.
20960 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
20962 * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
20963 mspace): Remove deprecated options.
20964 * doc/invoke.texi (SH options): Remove -mspace.
20966 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
20968 * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
20970 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
20972 * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
20973 corresponding combine split pattern.
20975 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
20978 * config/sh/predicates.md (long_displacement_mem_operand): New.
20979 * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
20980 Add movi20, movi20s alternatives. Adjust length attribute for
20982 (movsi_ie): Allow for any FPU. Adjust length attribute for
20984 (movsi_i_lowpart): Add movi20, movi20s alternatives. Adjust length
20985 attribute for alternatives.
20986 (*mov<mode>): Use long_displacement_mem_operand for length attribute.
20987 (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
20988 length attribute for alternatives.
20990 2016-05-06 Richard Biener <rguenther@suse.de>
20992 PR tree-optimization/70960
20993 * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
20995 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
20998 * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
20999 * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
21001 2016-05-06 Marek Polacek <polacek@redhat.com>
21004 * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
21006 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
21009 * config/sh/sh.md (*rotcr): Add another variant.
21011 2016-05-06 Richard Biener <rguenther@suse.de>
21013 PR middle-end/70931
21014 * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
21016 2016-05-06 Richard Biener <rguenther@suse.de>
21018 PR middle-end/70941
21019 * fold-const.c (split_tree): Always convert to the original type
21022 2016-05-06 Richard Biener <rguenther@suse.de>
21024 * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
21025 (fwprop_addr): Likewise.
21027 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
21030 * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
21032 * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
21033 * config/i386/i386.md (push mem splitter): Use find_constant_src in
21034 the splitter condition.
21035 (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
21036 the splitter condition.
21037 (FP float_extend load splitter): Ditto.
21039 2016-05-05 Uros Bizjak <ubizjak@gmail.com>
21041 * config/i386/i386.md (peehole2 patterns): Change true_regnum
21042 to REGNO in all peephole2 patterns.
21043 (post-reload splitters): Change true_regnum to REGNO in
21044 post-reload splitters.
21045 (zero_extend splitters): Use general_reg_operand and
21046 nonimmediate_gr_operand predicates.
21048 2016-05-05 Jakub Jelinek <jakub@redhat.com>
21050 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
21051 v constraint instead of x.
21053 2016-05-05 Alan Modra <amodra@gmail.com>
21056 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
21057 set OPTION_MASK_RELOCATABLE when flag_pic == 2. Set
21058 TARGET_NO_FP_IN_TOC for -mrelocatable.
21059 (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
21060 TARGET_RELOCATABLE test.
21061 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
21062 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
21063 * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
21064 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
21065 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
21066 * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
21067 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
21068 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
21069 * config/rs6000/predicates.md (easy_fp_constant): Likewise.
21070 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
21072 (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
21073 (rs6000_stack_info): Likewise.
21074 (rs6000_elf_asm_out_constructor): Likewise.
21075 (rs6000_elf_asm_out_destructor): Likewise.
21076 (rs6000_elf_declare_function_name): Likewise.
21077 * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
21078 * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
21081 2016-05-05 Alan Modra <amodra@gmail.com>
21083 * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
21085 2016-05-05 Alan Modra <amodra@gmail.com>
21087 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
21088 out-of-line gpr restore for one or two regs if that would add
21091 2016-05-04 Uros Bizjak <ubizjak@gmail.com>
21094 * config/i386/i386.md
21095 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
21096 Change to post-epilogue_completed late splitter. Use sse_reg_operand
21097 as operand 0 predicate.
21098 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
21100 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
21101 Ditto. Emit the pattern using RTX.
21103 (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
21104 Use sse_reg_opreand as operand 0 predicate. Do not use true_regnum in
21105 the post-reload splitter. Use lowpart_subreg instead of gen_rtx_REG.
21106 (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
21108 (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
21109 sse_reg_operand as operand 0 predicate.
21111 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
21112 Use sse_reg_opreand as operand 0 predicate. Use lowpart_subreg
21113 instead of gen_rtx_REG.
21114 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
21117 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
21119 * function.c (emit_use_return_register_into_block): Delete.
21120 (gen_return_pattern): Delete.
21121 (emit_return_into_block): Delete.
21122 (active_insn_between): Delete.
21123 (convert_jumps_to_returns): Delete.
21124 (emit_return_for_exit): Delete.
21125 (thread_prologue_and_epilogue_insns): Delete all code dealing with
21126 simple_return for shrink-wrapped blocks.
21127 * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
21128 end of blocks that need one.
21129 (get_unconverted_simple_return): Delete.
21130 (convert_to_simple_return): Delete.
21131 * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
21132 (convert_to_simple_return): Ditto.
21134 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
21136 * cfgcleanup.c (bb_is_just_return): New function.
21137 (try_optimize_cfg): Simplify jumps to return, branches to return,
21138 and branches around return.
21140 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
21142 * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
21143 branch to a return.
21145 2016-05-04 Jakub Jelinek <jakub@redhat.com>
21149 * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
21150 * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
21151 assert flags & OEP_HASH_CHECK, instead of asserting it
21152 never happens. Handle TARGET_EXPR.
21153 * fold-const.c (operand_equal_p): For hash verification,
21154 or in OEP_HASH_CHECK into flags.
21156 2016-05-04 Eric Botcazou <ebotcazou@adacore.com>
21158 * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
21160 (compute_samebase_partition_bases): Fix typo.
21162 2016-05-04 Jakub Jelinek <jakub@redhat.com>
21164 * config/i386/sse.md (vec_interleave_highv8sf,
21165 vec_interleave_lowv8sf, vec_interleave_highv4df,
21166 vec_interleave_lowv4df): Remove constraints from expanders.
21168 * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
21170 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
21172 * tree-inline.c (expand_call_inline): Fix path dealing with
21173 making lhs of call statement undefined.
21175 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
21177 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
21178 Check availability on NODE, too.
21179 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
21180 (cgraph_node::call_for_symbol_and_aliases): Likewise.
21181 (varpool_node::call_for_symbol_and_aliase): Likewise.
21182 * ipa-pure-const.c (add_new_function): Analyze all bodies.
21183 (propagate_pure_const): Propagate across interposable functions, too.
21184 (skip_function_for_local_pure_const): Do not skip interposable bodies
21186 (pass_local_pure_const::execute): Update.
21188 2016-05-04 Marek Polacek <polacek@redhat.com>
21190 * doc/invoke.texi: Document -Wdangling-else.
21192 2016-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
21194 * config.gcc: Error out when conflicting multilib is detected. Do not
21195 loop over multilibs since no combination is legal.
21197 2016-05-04 Alan Modra <amodra@gmail.com>
21199 * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
21200 * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
21201 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
21204 2016-05-04 Matthew Fortune <matthew.fortune@imgtec.com>
21206 * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
21207 Clean up p5600 comments.
21209 2016-05-04 Richard Biener <rguenther@suse.de>
21211 * match.pd: Add BIT_FIELD_REF canonicalizations and vector
21212 constructor simplifications.
21213 * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
21215 2016-05-04 Oleg Endo <olegendo@gcc.gnu.org>
21217 * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
21218 * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
21219 result.set_rtx is null instead of aborting.
21220 * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
21222 (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
21223 * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
21224 *mov<mode>_store_postinc): New patterns.
21226 2016-05-04 Marc Glisse <marc.glisse@inria.fr>
21228 * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR. Mark
21229 as commutative. Check both conversions are NOP.
21230 ((A & B) OP (C & B)): Remove.
21232 2016-05-04 Alan Modra <amodra@gmail.com>
21234 * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
21236 2016-05-04 Alan Modra <amodra@gmail.com>
21239 * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
21240 when cr2,3,4 are all fixed regs.
21242 2016-05-04 Bernd Schmidt <bschmidt@redhat.com>
21244 PR rtl-optimization/57193
21245 * opts.c (default_options_table): Revert OPT_frename_registers change.
21246 * doc/invoke.texi (-frename-registers, -O2): Likewise.
21248 2016-05-03 Martin Sebor <msebor@redhat.com>
21251 * builtins.c (fold_builtin_FILE): New function.
21252 (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
21253 (fold_builtin_0): Call them.
21254 * gimplify.c (gimplify_call_expr): Remove the handling of
21255 BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
21258 * doc/extend.texi (Other Builtins): Update __builtin_FILE,
21259 __builtin_FUNCTION, and __builtin_LINE to reflect they yield
21263 * doc/extend.texi (Function Names as Strings): Update __func__,
21264 __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
21267 2016-05-03 Jakub Jelinek <jakub@redhat.com>
21268 Richard Biener <rguenther@suse.de>
21270 PR tree-optimization/70916
21271 * tree-if-conv.c: Include cfganal.h.
21272 (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
21273 and remove_fake_exit_edges around the optimization pass.
21275 2016-05-03 Jan Hubicka <hubicka@ucw.cz>
21277 * cgraph.c (symbol_table::create_edge): Set inline_failed.
21278 (cgraph_edge::make_direct): Likewise.
21279 (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
21280 * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
21281 * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
21282 (CIF_THUNK): New code.
21283 * ipa-inline-analysis.c (initialize_inline_failed): Preserve
21284 CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
21285 (compute_inline_parameters): Set inline_failed for thunks.
21286 (inline_analyze_function): Cleanup.
21287 * ipa-inline.c (can_inline_edge_p): Do not deal with
21288 call_stmt_cannot_inline_p.
21289 (can_early_inline_edge_p): Likewise.
21290 (early_inliner): Initialize inline_failed.
21291 * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
21293 2016-05-03 Uros Bizjak <ubizjak@gmail.com>
21295 * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
21296 from nonimm_ssenomem_operand.
21297 (nonimm_ssenomem_operand): New predicate.
21298 * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
21299 as operand 0 predicate.
21300 (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
21301 Disable unsupported alternatives using "enabled" attribute.
21302 Use register_ssemem_operand as operand 0 predicate.
21303 (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
21305 2016-05-03 Marek Polacek <polacek@redhat.com>
21308 * input.c (expansion_point_location): New function.
21309 * input.h (expansion_point_location): Declare.
21311 2016-05-03 Pierre-Marie de Rodat <derodat@adacore.com>
21313 * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
21314 occurence with frame_offset_ ones.
21316 2016-05-03 Alan Modra <amodra@gmail.com>
21318 PR rtl-optimization/70890
21319 * ira.c (combine_and_move_insns): When moving def_insn, remove
21320 equivs on use_insn.
21322 2016-05-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
21324 * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
21325 ("*r<noxa>sbg_<mode>_srl"): New define_insns.
21326 ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
21327 ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
21329 2016-05-03 Alan Modra <amodra@gmail.com>
21331 * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
21332 for SAVE_MULTIPLE/STORE_MULTIPLE.
21334 2016-05-03 Jakub Jelinek <jakub@redhat.com>
21336 * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
21337 *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
21339 2016-05-03 Richard Biener <rguenther@suse.de>
21341 * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
21343 (gimplify_arg): Likewise.
21344 * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
21345 re-writing the result to a decl if required.
21346 (internal_get_tmp_var): Add allow_ssa parameter
21347 and override into_ssa with it.
21348 (get_formal_tmp_var): Adjust.
21349 (get_initialized_tmp_var): Add allow_ssa parameter.
21350 (gimplify_arg): Add allow_ssa parameter and avoid generating
21351 SSA names for the result false.
21352 (gimplify_call_expr): If the call may return twice do not
21353 gimplify parameters into SSA.
21354 (prepare_gimple_addressable): Do not allow an SSA name as temporary.
21355 (gimplify_modify_expr): Adjust assert. For noreturn calls
21356 with a SSA name LHS adjust its def.
21357 (gimplify_save_expr): Do not allow an SSA name as save-expr result.
21358 (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
21359 (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
21360 (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
21361 an SSA name. Likewise for OMP_CLAUSE_REDUCTION operands.
21362 (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL. Likewise
21363 for OMP_FOR_COND, OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
21364 (optimize_target_teams): Do not allow SSA names for clause operands.
21365 (gimplify_expr): Likewise for where we mark the result addressable.
21366 * passes.def (pass_init_datastructures): Remove.
21367 * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
21368 (rewrite_stmt): Likewise.
21369 * tree-inline.c (initialize_cfun): Properly transfer SSA state.
21370 (replace_locals_op): Replace SSA names.
21371 (copy_gimple_seq_and_replace_locals): Init src_cfun.
21372 * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
21373 * cgraph.c (release_function_body): Free CFG annotations only
21374 when we have a CFG. Simplify.
21375 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
21376 force_gimple_operand instead of get_initialized_tmp_var.
21377 * tree-pass.h (make_pass_init_datastructures): Remove.
21378 * tree-ssa.c (execute_init_datastructures): Remove.
21379 (pass_data_init_datastructures): Likewise.
21380 (class pass_init_datastructures): Likewise.
21381 (make_pass_init_datastructures): Likewise.
21382 * omp-low.c (create_omp_child_function): Init SSA data structures.
21383 (grid_expand_target_grid_body): Likewise.
21384 * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
21385 name before adding it to names_to_release.
21386 (remove_bb): Always release SSA defs.
21387 * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
21388 before dereferencing it.
21389 * cgraphunit.c (init_lowered_empty_function): Always
21390 int SSA data structures.
21391 * tree-ssanames.c (release_defs): Remove assert that we are in
21393 * trans-mem.c (diagnose_tm_1): Handle SSA name function.
21395 2016-05-03 Jakub Jelinek <jakub@redhat.com>
21396 Uros Bizjak <ubizjak@gmail.com>
21398 PR rtl-optimization/70467
21399 * config/i386/predicates.md (x86_64_hilo_int_operand,
21400 x86_64_hilo_general_operand): New predicates.
21401 * config/i386/constraints.md (Wd): New constraint.
21402 * config/i386/i386.md (mode attr di): Use Wd instead of e.
21403 (general_hilo_operand): New mode attr.
21404 (add<mode>3, sub<mode>3): Use <general_hilo_operand>
21405 instead of <general_operand>.
21406 (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
21407 x86_64_hilo_general_operand instead of <general_operand>.
21409 2016-05-03 Jakub Jelinek <jakub@redhat.com>
21411 PR tree-optimization/70916
21412 * tree-if-conv.c (constant_or_ssa_name): Removed.
21413 (fold_build_cond_expr): Use is_gimple_val instead of
21414 constant_or_ssa_name.
21416 PR tree-optimization/70916
21417 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
21418 if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
21421 * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
21422 (optimize_atomic_bit_test_and): New function.
21423 (pass_fold_builtins::execute): Use it.
21424 * optabs.def (atomic_bit_test_and_set_optab,
21425 atomic_bit_test_and_complement_optab,
21426 atomic_bit_test_and_reset_optab): New optabs.
21427 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
21428 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
21429 * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
21430 * builtins.c (expand_ifn_atomic_bit_test_and): New function.
21431 * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
21432 expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
21433 expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
21434 * doc/md.texi (atomic_bit_test_and_set@var{mode},
21435 atomic_bit_test_and_complement@var{mode},
21436 atomic_bit_test_and_reset@var{mode}): Document.
21437 * config/i386/sync.md (atomic_bit_test_and_set<mode>,
21438 atomic_bit_test_and_complement<mode>,
21439 atomic_bit_test_and_reset<mode>): New expanders.
21440 (atomic_bit_test_and_set<mode>_1,
21441 atomic_bit_test_and_complement<mode>_1,
21442 atomic_bit_test_and_reset<mode>_1): New insns.
21444 2016-05-03 Richard Sandiford <richard.sandiford@arm.com>
21446 PR rtl-optimization/70687
21447 * combine.c (change_zero_ext): Check for scalar modes. Use wide_int
21448 instead of unsigned HOST_WIDE_INT.
21450 2016-05-03 Bernd Schmidt <bschmidt@redhat.com>
21452 PR rtl-optimization/44281
21453 * hard-reg-set.h (struct target_hard_regs): New field
21454 x_fixed_nonglobal_reg_set.
21455 (fixed_nonglobal_reg_set): New macro.
21456 * reginfo.c (init_reg_sets_1): Initialize it.
21457 * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
21459 * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
21461 2016-05-03 Bin Cheng <bin.cheng@arm.com>
21463 PR tree-optimization/56541
21464 * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
21465 * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
21466 * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
21467 (any_complicated_phi): new static variable.
21468 (aggressive_if_conv): delete.
21469 (if_convertible_phi_p): support phis with more than two arguments.
21470 (if_convertible_bb_p): remvoe check on aggressive_if_conv and
21471 critical pred edges.
21472 (ifcvt_split_critical_edges): support phis with more than two
21473 arguments by checking new parameter. only split critical edges
21475 (tree_if_conversion): handle simd pragma marked loop using new
21476 local variable aggressive_if_conv. check any_complicated_phi.
21478 2016-05-03 Bin Cheng <bin.cheng@arm.com>
21480 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
21483 2016-05-03 Bin Cheng <bin.cheng@arm.com>
21485 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
21488 2016-05-03 Oleg Endo <olegendo@gcc.gnu.org>
21490 * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
21491 (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
21492 define_insn_and_split.
21493 (mulsi3_i): New define_insn_and_split.
21494 (mulsi3_call): Convert to define_insn.
21495 (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
21496 Remove constraints.
21498 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
21500 * machmode.h (mode_complex): Add support to give the complex mode
21502 (GET_MODE_COMPLEX_MODE): Likewise.
21503 * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
21504 stored by build_complex_type and gfc_build_complex_type instead of
21505 trying to figure out the appropriate mode based on the size. Raise
21506 an assertion error, if the type was not set.
21507 * genmodes.c (struct mode_data): Add field for the complex type of
21509 (blank_mode): Likewise.
21510 (make_complex_modes): Remember the complex mode created in the
21512 (emit_mode_complex): Write out the mode_complex array to map a
21513 type mode to the complex version.
21514 (emit_insn_modes_c): Likewise.
21515 * tree.c (build_complex_type): Set the complex type to use before
21516 calling layout_type.
21517 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
21518 support for __float128 complex datatypes.
21519 (rs6000_hard_regno_mode_ok): Likewise.
21520 (rs6000_setup_reg_addr_masks): Likewise.
21521 (rs6000_complex_function_value): Likewise.
21522 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
21523 __float128 and __ibm128 complex.
21524 (FLOAT128_IBM_P): Likewise.
21525 (ALTIVEC_ARG_MAX_RETURN): Likewise.
21526 * doc/extend.texi (Additional Floating Types): Document that
21527 -mfloat128 must be used to enable __float128. Document complex
21528 __float128 and __ibm128 support.
21530 2016-05-02 Jakub Jelinek <jakub@redhat.com>
21533 * gimple.c (gimple_builtin_call_types_compatible_p): Allow
21534 char/short arguments promoted to int because of promote_prototypes.
21536 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
21538 * config/i386/predicates.md (register_ssemem_operand): New predicate.
21539 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
21540 *cmpi<FPCMP:unord><MODEF:mode>_mixed and
21541 *cmpi<FPCMP:unord><X87MODEF:mode>_i387. Disable unsupported
21542 alternatives using "enabled" attribute. Use register_ssemem_operand
21543 as operand 1 predicate.
21544 (*cmpi<unord>xf_i387): Split XFmode pattern from
21545 *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
21546 (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
21547 *absneg<mode>2_i387. Disable unsupported alternatives using
21548 "enabled" attribute.
21549 (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
21551 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
21553 * omp-low.c (lower_oacc_head_tail): Assert there is at least one
21555 (oacc_loop_process): Check mask for loop termination.
21557 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
21559 * cif-code.def (CIF_THUNK): Add.
21560 * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
21563 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
21565 * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
21566 (dump_inline_summary): Dump it.
21567 (fp_expression_p): New predicate.
21568 (estimate_function_body_sizes): Use it.
21569 (inline_merge_summary): Merge fp_expressions.
21570 (inline_read_section): Read fp_expressions.
21571 (inline_write_summary): Write fp_expressions.
21572 * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
21573 codegen boundary if either caller or callee is !fp_expressions.
21574 * ipa-inline.h (inline_summary): Add fp_expressions.
21575 * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
21576 to fp_expressions be sure the fp generation flags are updated.
21578 2016-05-02 Jakub Jelinek <jakub@redhat.com>
21580 PR rtl-optimization/70467
21581 * cse.c (cse_insn): Handle no-op MEM moves after folding.
21583 PR rtl-optimization/70467
21584 * ipa-pure-const.c (check_call): Handle internal calls even in
21585 ipa mode like in local mode.
21587 2016-05-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
21589 * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
21591 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
21593 * match.pd (X u< X, X u> X): New transformations.
21595 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
21597 * flag-types.h (enum warn_strict_overflow_code): Move ...
21598 * coretypes.h: ... here.
21599 * fold-const.h (fold_overflow_warning): Declare.
21600 * fold-const.c (fold_overflow_warning): Make non-static.
21601 (fold_comparison): Move the transformation of X +- C1 CMP C2
21602 into X CMP C2 -+ C1 ...
21603 * match.pd: ... here.
21604 * gimple-fold.c (fold_stmt_1): Protect with
21605 fold_defer_overflow_warnings.
21607 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
21609 * omp-low.c (struct oacc_loop): Add 'inner' field.
21610 (new_oacc_loop_raw): Initialize it to zero.
21611 (oacc_loop_fixed_partitions): Initialize it.
21612 (oacc_loop_auto_partitions): Partition outermost loop to outermost
21613 available partitioning.
21615 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
21617 * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
21619 (umulsidi3): Likewise.
21620 (indirect_jump): Fix jump instruction assembly patterns.
21622 2016-05-02 Thomas Schwinge <thomas@codesourcery.com>
21625 * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
21626 (nvptx_function_value): Assert non-NULL cfun.
21628 2016-05-02 Eric Botcazou <ebotcazou@adacore.com>
21630 PR rtl-optimization/70886
21631 * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
21633 * cselib.h (rtx_equal_for_cselib_1): Declare.
21634 (rtx_equal_for_cselib_p: New inline function.
21635 * cselib.c (rtx_equal_for_cselib_p): Delete.
21636 (rtx_equal_for_cselib_1): Make public.
21638 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
21640 * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
21641 (register_mixssei387nonimm_operand): Remove predicate.
21642 * config/i386/i386.md (*fop_<mode>_comm): Merge from
21643 *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387. Disable unsupported
21644 alternatives using "enabled" attribute. Also check X87_ENABLE_ARITH
21645 for TARGET_MIX_SSE_I387 alternatives.
21646 (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
21647 Disable unsupported alternatives using "enabled" attribute. Use
21648 nonimm_ssenomem_operand as operand 1 predicate. Also check
21649 X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
21651 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
21653 * tree.c (cst_and_fits_in_hwi): Simplify.
21655 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
21657 * tree.h (wi::to_wide): New function.
21658 * expr.c (expand_expr_real_1): Use wi::to_wide.
21659 * fold-const.c (int_const_binop_1): Likewise.
21660 (extract_muldiv_1): Likewise.
21662 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
21664 * wide-int.h: Update offset_int and widest_int documentation.
21665 (WI_SIGNED_SHIFT_RESULT): New macro.
21666 (wi::binary_shift): Define signed_shift_result_type for
21667 shifts on offset_int- and widest_int-like types.
21668 (generic_wide_int): Support <<= and >>= if << and >> are supported.
21669 * tree.h (int_bit_position): Use shift operators instead of wi::
21671 * alias.c (adjust_offset_for_component_ref): Likewise.
21672 * expr.c (get_inner_reference): Likewise.
21673 * fold-const.c (fold_comparison): Likewise.
21674 * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
21675 * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
21676 * tree-dfa.c (get_ref_base_and_extent): Likewise.
21677 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
21678 (stmt_kills_ref_p): Likewise.
21679 * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
21680 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
21681 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
21682 (ao_ref_init_from_vn_reference): Likewise.
21684 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
21686 * wide-int.h: Update offset_int and widest_int documentation.
21687 (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
21688 (wi::binary_traits): Allow ordered comparisons between offset_int and
21689 offset_int, between widest_int and widest_int, and between either
21690 of these types and basic C types.
21691 (operator <, <=, >, >=): Define for the same combinations.
21692 * tree.h (tree_int_cst_lt): Use comparison operators instead
21693 of wi:: comparisons.
21694 (tree_int_cst_le): Likewise.
21695 * gimple-fold.c (fold_array_ctor_reference): Likewise.
21696 (fold_nonarray_ctor_reference): Likewise.
21697 * gimple-ssa-strength-reduction.c (record_increment): Likewise.
21698 * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
21699 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
21700 * tree-sra.c (completely_scalarize): Likewise.
21701 * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
21702 * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
21703 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
21704 (check_for_binary_op_overflow): Likewise.
21705 (search_for_addr_array): Likewise.
21706 * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
21708 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
21710 * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
21711 (arc_save_restore): Likewise.
21712 (arc_dwarf_register_span): Likewise.
21713 (arc_output_pic_addr_const): Initialize suffix variable.
21715 2016-05-02 Martin Liska <mliska@suse.cz>
21717 * symbol-summary.h (function_summary::function_summary):
21718 Remove checking assert for all cgraph nodes.
21719 (function_summary::get): Check summary_uid.
21720 (symtab_insertion): Check summary_uid.
21722 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
21724 * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
21725 * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
21726 bmaskn instruction.
21727 (arc_dwarf_register_span): Remove enum keyword.
21728 (compact_memory_operand_p): New function.
21729 * config/arc/arc.h (reg_class): Add code density register classes.
21730 (REG_CLASS_NAMES): Likewise.
21731 (REG_CLASS_CONTENTS): Likewise.
21732 * config/arc/arc.md (*movqi_insn): Add code density instructions.
21733 (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
21734 (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
21735 (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
21736 * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
21738 (h, Rcd, Rsd, Rzd): New register constraints.
21739 (T): Use compact_memory_operand_p function.
21740 * config/arc/predicates.md (compact_load_memory_operand): Remove.
21742 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
21744 * config/sh/sh.md (*negnegt, *movtt): Remove.
21746 2016-05-02 Marek Polacek <polacek@redhat.com>
21747 Tom de Vries <tom@codesourcery.com>
21749 PR tree-optimization/70700
21750 * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
21751 bigger than FIRST_REF_NODE.
21753 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
21756 * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
21758 (prepare_cbranch_operands): Don't use scratch register. Assume that
21759 function is used when pseudos can be created.
21760 (expand_cbranchdi4): Likewise. Remove unused TARGET_CMPEQDI_T paths.
21761 * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
21762 (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
21763 define_expand. Allow it only when pseudos can be created.
21764 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
21766 2016-05-01 Uros Bizjak <ubizjak@gmail.com>
21768 * config/i386/constraints.md (BC): Only allow -1 operands.
21769 * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
21770 Add "enabled" attribute. Update XI mode attribute calculation.
21771 * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
21772 (*movoi_internal_avx): Update XI mode attribute calculation.
21773 (*movti_internal): Ditto.
21775 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
21777 * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
21778 cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
21780 2016-05-01 Eric Botcazou <ebotcazou@adacore.com>
21782 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
21783 statement on instruction code. Remove trailing spaces.
21784 (altivec_expand_stv_builtin): Likewise.
21786 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
21788 * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
21789 (TARGET_FPU_DOUBLE): Simplify.
21790 (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
21791 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
21792 * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
21793 with 'TARGET_FPU_DOUBLE'.
21794 * config/sh/sh.md: Likewise.
21796 2016-05-01 Yoshinori Sato <ysato@users.sourceforge.jp>
21798 * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
21799 SH_DIV_STR_FOR_SIZE): Remove.
21800 * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
21801 SH_DIV_STR_FOR_SIZE): Remove.
21803 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
21805 * config/sh/predicates.md (any_register_operand, zero_extend_operand,
21806 logical_reg_operand): Delete.
21807 (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
21808 arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
21809 logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
21810 match_operand and match_test.
21811 (sh_const_vec, sh_1el_vec): Remove redundant checks. Declare local
21812 variables on their first use. Return bool values.
21813 * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
21814 * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
21815 arith_reg_operand for input operand. Remove empty constraints.
21817 (*xorsi3_compact): Rename to xorsi3.
21818 (zero_extend<mode>si2): Use arith_reg_operand for input operand.
21819 (*zero_extend<mode>si2_disp_mem): Update comment.
21822 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
21824 * config/sh/t-sh: Remove SH5 support.
21825 * config.gcc: Likewise.
21826 * configure: Likewise.
21828 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21830 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
21832 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
21834 * config/sh/sh.c (register_sh_passes, sh_option_override,
21835 sh_print_operand, prepare_move_operands,
21836 sh_can_follow_jump): Remove TARGET_SH1 checks.
21837 * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
21838 PROMOTE_MODE): Likewise.
21839 * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
21842 2016-04-30 Alan Modra <amodra@gmail.com>
21844 * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
21845 restoring when fixed_reg_p, but allow out-of-line or stmw save.
21846 Check for user regs later to avoid unnecessary looping over regs.
21847 Merge user reg check with non-saved reg check. Don't force
21848 inline VR restore when static chain used.
21849 (rs6000_frame_related): Omit eh_frame info for user regs when
21851 (fixed_regs_p): Delete.
21853 2016-04-30 Alan Modra <amodra@gmail.com>
21855 * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
21856 (SAVE_STRATEGY, REST_STRATEGY): ..this. Renumber and sort enum.
21859 2016-04-30 Alan Modra <amodra@gmail.com>
21862 * config/rs6000/rs6000.c (fixed_reg_p): New function.
21863 (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
21866 2016-04-30 Alan Modra <amodra@gmail.com>
21868 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
21869 Remove redundant PIC_OFFSET_TABLE_REGNUM test. Replace with
21870 flag_pic test for Darwin.
21872 2016-04-30 Alan Modra <amodra@gmail.com>
21874 * regs.h (struct reg_info_t): Delete freq_calls_crossed and
21875 throw_calls_crossed.
21876 (REG_FREQ_CALLS_CROSSED): Delete.
21877 (REG_N_THROWING_CALLS_CROSSED): Delete.
21878 * regstat.c (regstat_bb_compute_ri): Don't calculate
21879 REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
21880 (dump_reg_info): Don't print call cross frequency.
21881 * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
21882 and REG_N_THROWING_CALLS_CROSSED.
21884 2016-04-30 Alan Modra <amodra@gmail.com>
21886 * regs.h (struct reg_info_t): Delete live_length.
21887 (REG_LIVE_LENGTH): Delete macro.
21888 * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
21889 local_live, local_processed and local_live_last_luid params.
21890 Replace bb_index param with bb. Don't set REG_LIVE_LENGTH.
21892 (regstat_compute_ri): Adjust for above. Don't set
21894 (dump_reg_info): Don't print live length.
21895 * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
21896 with test of setjmp_crosses. Don't set REG_LIVE_LENGTH.
21897 Localize loop_depth var.
21899 2016-04-30 Alan Modra <amodra@gmail.com>
21901 * ira.c (enum valid_equiv): New.
21902 (validate_equiv_mem): Return enum.
21903 (update_equiv_mem): Create replacement in more cases.
21904 (add_store_equivs): Update validate_equiv_mem call.
21906 2016-04-30 Alan Modra <amodra@gmail.com>
21908 * ira.c (combine_and_move_insns): Rather than scanning insns,
21909 use DF infrastucture to find use and def insns.
21911 2016-04-30 Alan Modra <amodra@gmail.com>
21913 ira.c (combine_and_move_insns): Move invariant conditions..
21914 (ira.c): ..to here. Call combine_and_move_insns before
21915 add_store_equivs. Call grow_reg_equivs later. Allocate
21916 req_equiv later using max_reg_num() rather than global max_regno.
21917 (contains_replace_regs): Delete.
21918 (add_store_equivs): Remove contains_replace_regs test.
21920 2016-04-30 Alan Modra <amodra@gmail.com>
21922 * ira.c (struct equiv_mem_data): New.
21923 (equiv_mem, equiv_mem_modified): Delete static vars.
21924 (validate_equiv_mem_from_store): Use "data" param to communicate..
21925 (validate_equiv_mem): ..from here.
21927 2016-04-30 Alan Modra <amodra@gmail.com>
21929 * ira.c (add_store_equivs, combine_and_move_insns): New functions,
21931 (update_reg_equivs): ..here. Move allocation and freeing of
21932 reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
21933 end_alias_analysis to..
21936 2016-04-30 Alan Modra <amodra@gmail.com>
21938 * ira.c (pdx_subregs): Delete.
21939 (struct equivalence): Add pdx_subregs field.
21940 (set_paradoxical_subreg): Remove pdx_subregs param. Update
21941 pdx_subregs access.
21942 (update_equiv_regs): Don't create or free pdx_subregs. Update
21943 pdx_subregs access.
21945 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21947 * config/rs6000/altivec.h: Change definitions of vec_xl and
21949 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
21950 (LD_ELEMREV_V2DI): New.
21951 (LD_ELEMREV_V4SF): New.
21952 (LD_ELEMREV_V4SI): New.
21953 (LD_ELEMREV_V8HI): New.
21954 (LD_ELEMREV_V16QI): New.
21955 (ST_ELEMREV_V2DF): New.
21956 (ST_ELEMREV_V2DI): New.
21957 (ST_ELEMREV_V4SF): New.
21958 (ST_ELEMREV_V4SI): New.
21959 (ST_ELEMREV_V8HI): New.
21960 (ST_ELEMREV_V16QI): New.
21963 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21964 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
21965 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
21966 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
21967 (altivec_expand_builtin): Add handling for
21968 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
21969 (rs6000_invalid_builtin): Add error-checking for
21970 RS6000_BTM_P9_VECTOR.
21971 (altivec_init_builtins): Define builtins used to implement vec_xl
21973 (rs6000_builtin_mask_names): Define power9-vector.
21974 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
21975 (RS6000_BTM_P9_VECTOR): Define.
21976 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
21977 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
21978 (vsx_ld_elemrev_v2df): Likewise.
21979 (vsx_ld_elemrev_v4sf): Likewise.
21980 (vsx_ld_elemrev_v4si): Likewise.
21981 (vsx_ld_elemrev_v8hi): Likewise.
21982 (vsx_ld_elemrev_v16qi): Likewise.
21983 (vsx_st_elemrev_v2df): Likewise.
21984 (vsx_st_elemrev_v2di): Likewise.
21985 (vsx_st_elemrev_v4sf): Likewise.
21986 (vsx_st_elemrev_v4si): Likewise.
21987 (vsx_st_elemrev_v8hi): Likewise.
21988 (vsx_st_elemrev_v16qi): Likewise.
21989 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
21992 2016-04-29 Patrick Palka <ppalka@gcc.gnu.org>
21994 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
21996 (simplify_control_stmt_condition_1): ... here. Recurse into
21997 BIT_AND_EXPRs and BIT_IOR_EXPRs.
21999 2016-04-29 David Edelsohn <dje.gcc@gmail.com>
22002 * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
22003 (zero_extendqi<mode>2_dot): Revert earlier conversion from
22004 define_insn_and_split to define_insn.
22005 (zero_extendqi<mode>2_dot2): Same.
22006 (extendqi<mode>2_dot): Same.
22007 (extendqi<mode>2_dot2): Same.
22009 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
22011 * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
22012 (probe_stack): New expander.
22013 (probe_stack_<mode>): New insn pattern.
22015 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
22017 * config/i386/i386.md
22018 (operations with memory inputs setting flags peephole2):
22019 Remove uneeded REG_P checks. Cleanup pattern generation.
22021 2016-04-29 Ilya Enkovich <ilya.enkovich@intel.com>
22023 * tree-vect-loop.c (vect_transform_loop): Fix
22024 nb_iterations_upper_bound computation for vectorized loop.
22026 2016-04-29 Marek Polacek <polacek@redhat.com>
22027 Jakub Jelinek <jakub@redhat.com>
22030 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
22031 TARGET_EXPR_SLOT as a base.
22033 2016-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
22035 * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
22036 with 'rCm2' constraints to limit possible immediate size.
22037 (*load_zeroextendqisi_update): Likewise.
22038 (*load_signextendqisi_update): Likewise.
22039 (*loadhi_update): Likewise.
22040 (*load_zeroextendhisi_update): Likewise.
22041 (*load_signextendhisi_update): Likewise.
22042 (*loadsi_update): Likewise.
22043 (*loadsf_update): Likewise.
22045 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
22047 * config/i386/predicates.md (constm1_operand): Fix comparison.
22049 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
22051 * testsuite/gcc.target/arc/ieee_eq.c: New test.
22053 2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
22055 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
22056 remaining SH5 related settings.
22057 * config/sh/sh-protos.h (shmedia_cleanup_truncate,
22058 shmedia_prepare_call_address): Delete.
22059 * config/sh/sh.c (sh_print_operand, output_stack_adjust,
22060 DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
22061 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
22062 UNSUPPORTED_SH2A): Remove m5 checks.
22063 (sh_divide_strategy_e): Remove SH5 division strategies.
22064 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
22065 * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
22067 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
22069 * config/s390/s390.c (s390_rtx_costs): Update documentation.
22071 2016-04-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22073 * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
22074 * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
22075 Change lder to ldr.
22076 * config/s390/vector.md ("mov<mode>"): Likewise.
22078 2016-04-29 Ulrich Weigand <uweigand@de.ibm.com>
22080 * config/s390/constraints.md ("U", "W"): Invoke
22081 s390_mem_constraint with "ZR" and "ZT".
22082 * config/s390/s390.c (s390_check_qrst_address): Reject invalid
22083 addresses when using LRA. Accept also short displacements for S
22084 and T constraints. Do not check for long displacement target for
22085 S and T constraints.
22086 (s390_mem_constraint): Remove handling of U and W constraints.
22087 * config/s390/s390.md (various patterns): Remove the short
22088 displacement constraints (Q and R) if a long displacement
22089 constraint is present. Add longdisp as required CPU capability.
22090 * config/s390/vector.md: Likewise.
22091 * config/s390/vx-builtins.md: Likewise.
22093 2016-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22096 * reload1.c (reload): Call finish_spills before
22097 restarting reload loop. Skip select_reload_regs
22098 if update_eliminables_and_spill returns true.
22100 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
22102 * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
22103 * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
22104 (umulhisi3_imm): Update predicates and constraint letters.
22105 (umulhisi3_reg): Declare instruction as commutative.
22106 * config/arc/constraints.md (J12, J16): New constraints.
22107 * config/arc/predicates.md (short_unsigned_const_operand): New
22109 (arc_short_operand): Likewise.
22110 * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
22112 2016-04-29 Richard Biener <rguenther@suse.de>
22114 PR tree-optimization/13962
22115 PR tree-optimization/65686
22116 * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
22117 * tree-ssa-alias.c (ptrs_compare_unequal): New function
22118 using PTA to compare pointers.
22119 * match.pd: Add pattern for pointer equality compare simplification
22120 using ptrs_compare_unequal.
22122 2016-04-29 Richard Biener <rguenther@suse.de>
22124 * stor-layout.c (layout_type): Do not build a pointer-to-element
22127 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
22129 * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
22130 Use SWI mode iterator. Use general_reg_operand predicate.
22131 (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
22132 peephole to MMX and SSE part. Use mmx_reg_operand and sse_reg_operand
22135 2016-04-29 Jakub Jelinek <jakub@redhat.com>
22137 PR middle-end/70843
22138 * fold-const.c (operand_equal_p): Don't verify hash value equality
22140 * tree.c (inchash::add_expr): Handle STATEMENT_LIST. Ignore BLOCK
22143 2016-04-28 Jakub Jelinek <jakub@redhat.com>
22146 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
22147 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
22148 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
22149 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
22150 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
22152 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
22154 * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
22155 to info. Don't initialize separate fields to 0. Clean up
22158 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
22160 * config/i386/i386.md (peephole2s for operations with memory inputs):
22161 Use SWI mode iterator.
22162 (peephole2s for operations with memory outputs): Ditto.
22163 Do not check for stack checking probe.
22165 (probe_stack): Remove expander.
22167 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
22168 Andrew Burgess <andrew.burgess@embecosm.com>
22170 * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
22171 operands as 32-bits.
22173 2016-04-28 Jason Merrill <jason@redhat.com>
22175 * gdbinit.in: Skip line-map.h.
22177 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
22178 Andrew Burgess <andrew.burgess@embecosm.com>
22180 * config/arc/arc.c (arc_conditional_register_usage): Take
22181 TARGET_RRQ_CLASS into account.
22182 (arc_print_operand): Support printing 'p' and 's' operands.
22183 * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
22185 (TARGET_RRQ_CLASS): Define.
22186 (IS_POWEROF2_OR_0_P): Define.
22187 * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
22189 (*tst_movb): New define_insn.
22190 (*tst): Avoid recognition if it could prevent '*tst_movb'
22191 combination; replace c/CnL with c/Chs alternative.
22192 (*tst_bitfield_tst): New define_insn.
22193 (*tst_bitfield_asr): New define_insn.
22194 (*tst_bitfield): New define_insn.
22195 (andsi3_i): Add Rrq variant.
22196 (extzv): New define_expand.
22197 (insv): New define_expand.
22198 (*insv_i): New define_insn.
22199 (*movb): New define_insn.
22200 (*movb_signed): New define_insn.
22201 (*movb_high): New define_insn.
22202 (*movb_high_signed): New define_insn.
22203 (*movb_high_signed + 1): New define_split pattern.
22204 (*mrgb): New define_insn.
22205 (*mrgb + 1): New define_peephole2 pattern.
22206 (*mrgb + 2): New define_peephole2 pattern.
22207 * config/arc/arc.opt (mbitops): New option for nps400, uses
22208 TARGET_NPS_BITOPS_DEFAULT.
22209 * config/arc/constraints.md (q): Make register class conditional.
22210 (Rrq): New register constraint.
22211 (Chs): New constraint.
22212 (Clo): New constraint.
22213 (Chi): New constraint.
22214 (Cbf): New constraint.
22215 (Cbn): New constraint.
22216 (C18): New constraint.
22217 (Cbi): New constraint.
22219 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
22221 * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
22223 (bitmap_intersection_of_preds): Ditto.
22224 (bitmap_union_of_succs): Ditto.
22225 (bitmap_union_of_preds): Ditto.
22226 * sbitmap.c (do_popcount): Delete.
22227 (BITMAP_DEBUGGING): Delete.
22228 (sbitmap_verify_popcount): Delete.
22229 (sbitmap_alloc): Don't initialize the popcount field.
22230 (sbitmap_alloc_with_popcount): Delete.
22231 (sbitmap_resize): Don't resize the popcount array.
22232 (sbitmap_vector_alloc): Don't initialize the popcount field.
22233 (bitmap_copy): Don't copy the popcount array.
22234 (bitmap_clear): Don't clear the popcount array.
22235 (bitmap_clear): Delete the popcount array handling.
22236 (bitmap_ior_and_compl): Delete the popcount assert.
22237 (bitmap_not): Ditto.
22238 (bitmap_and_compl): Ditto.
22239 (bitmap_and): Delete the popcount array handling.
22240 (bitmap_xor): Ditto.
22241 (bitmap_ior): Ditto.
22242 (bitmap_or_and): Delete the popcount assert.
22243 (bitmap_and_or): Ditto.
22244 (popcount_table): Delete.
22245 (sbitmap_elt_popcount): Delete.
22246 * sbitmap.h (simple_bitmap_def): Delete the popcount field.
22247 (bitmap_set_bit): Delete the popcount assert.
22248 (bitmap_clear_bit): Ditto.
22249 (sbitmap_free): Don't free the popcount array.
22250 (sbitmap_alloc_with_popcount): Delete declaration.
22251 (sbitmap_popcount): Ditto.
22253 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
22254 Andrew Burgess <andrew.burgess@embecosm.com>
22256 * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
22257 (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
22258 * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
22259 (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
22260 * config/arc/arc.opt (mcmem): New option.
22261 * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
22262 supply length for r/m alternative.
22263 (*extendqisi2_ac): Likewise.
22264 (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
22266 (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
22267 (movhi_insn): Likewise.
22268 (movsi_insn): Add r/Ucm,Ucm/w alternatives.
22269 (*zero_extendqihi2_i): Add r/Ucm alternative.
22270 (*zero_extendqisi2_ac): Likewise.
22271 (*zero_extendhisi2_i): Likewise.
22272 * config/arc/constraints.md (Uex): New memory constraint.
22273 (Ucm): New define_constraint.
22274 * config/arc/predicates.md (long_immediate_loadstore_operand):
22275 Return 0 for MEM with cmem_address address.
22276 (cmem_address_0): New predicates.
22277 (cmem_address_1): Likewise.
22278 (cmem_address_2): Likewise.
22279 (cmem_address): Likewise.
22281 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
22283 * config/rs6000/rs6000.c (machine_function): Rename
22284 insn_chain_scanned_p to spe_insn_chain_scanned_p.
22285 (rs6000_stack_info): Adjust.
22287 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
22288 Andrew Burgess <andrew.burgess@embecosm.com>
22290 * config/arc/constraints.md (Usd): Convert to define_constraint.
22294 2016-04-28 Jakub Jelinek <jakub@redhat.com>
22297 * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
22298 Add new peephole2 where the first insn is *mov<mode>_or instead of
22299 *mov<mode>_internal.
22301 2016-04-28 Segher Boesssenkool <segher@kernel.crashing.org>
22303 * tracer.c (bb_seen): Make static.
22305 2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
22307 * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
22308 support, setup defaults.
22309 * config/arc/arc-opts.h (enum processor_type): Add NPS400.
22310 * config/arc/arc.c (arc_init): Add NPS400 support.
22311 * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
22312 (TARGET_ARC700): NPS400 is also an ARC700.
22313 * config/arc/arc.opt: Add NPS400 options to -mcpu=.
22315 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
22318 * config/nds32/nds32.md (casesi): Don't access the operands array
22321 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
22323 * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
22324 (or $-1,reg peephole2): Ditto.
22325 (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
22327 2016-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
22329 * doc/extend.texi (Common Function Attributes) [optimize]:
22330 Discourage use of the optimize attribute.
22332 2016-04-28 Bill Seurer <seurer@linux.vnet.ibm.com>
22334 * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
22335 special case builtin.
22336 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
22337 ALTIVEC_BUILTIN_VEC_ADDE.
22338 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
22339 support for ALTIVEC_BUILTIN_VEC_ADDE.
22340 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
22341 for __builtin_vec_adde.
22343 2016-04-28 Jakub Jelinek <jakub@redhat.com>
22345 * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
22346 * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
22348 2016-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22351 * doc/sourcebuild.texi (Effective-Target Keywords, Other
22352 attributes): Document cilkplus_runtime.
22354 2016-04-28 Martin Jambor <mjambor@suse.cz>
22356 * tree-cfg.c (verify_expr): Verify that local declarations belong to
22357 this function. Call verify_expr on MEM_REFs and bases of other
22358 handled_components.
22360 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22362 * internal-fn.c (expand_arith_overflow): Convert preprocessor check
22363 for WORD_REGISTER_OPERATIONS to runtime check.
22365 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
22367 * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
22369 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
22371 * config/arc/arc.c (arc_process_double_reg_moves): Fix for
22372 big-endian compilation.
22373 * config/arc/arc.md (addf3): Likewise.
22374 (subdf3): Likewise.
22375 (muldf3): Likewise.
22377 2016-04-28 Richard Biener <rguenther@suse.de>
22379 PR tree-optimization/70840
22380 * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
22381 Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
22382 Mark x * pow(x,c) -> pow(x,c+1) commutative.
22383 Add powi(x,y) * powi(z,y) -> powi(x*z,y).
22385 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22387 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
22388 and explain why in a comment.
22390 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
22392 * config/arc/arc.md (cpu_facility): Add fpx variant.
22393 (subdf3): Prohibit use reverse sub when assist operations option
22395 * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
22396 instructions only when FPX is enabled.
22397 * testsuite/gcc.target/arc/trsub.c: New test.
22399 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
22401 * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
22402 mult_operator when calculating "type" attribute.
22403 (*fop_<mode>_1_i387): Ditto.
22404 (*fop_xf_1_i387): Ditto.
22405 (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
22406 Use std::swap to swap operands. Use RTL expressions to generate
22409 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
22410 Joern Rennecke <joern.rennecke@embecosm.com>
22412 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
22414 (emit_pic_move): Remove.
22415 (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
22416 * config/arc/arc.c (emit_pic_move): Removed.
22417 (TARGET_HAVE_TLS): Define.
22418 (arc_conditional_register_usage): Test for arc_tp_regno.
22419 (arc_print_operand, arc_print_operand_address): Handle TLS
22421 (arc_needs_pcl_p): New function.
22422 (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
22423 (arc_legitimate_pic_addr_p): Handle TLS unspecs.
22424 (arc_raw_symbolic_reference_mentioned_p): Likewise.
22425 (arc_get_tp, arc_emit_call_tls_get_addr): New function.
22426 (arc_legitimize_tls_address): Likewise.
22427 (DTPOFF_ZERO_SYM): Define.
22428 (arc_legitimize_pic_address): Make it static, handle TLS cases.
22429 (arc_output_pic_addr_const): Print TLS unspecs.
22430 (prepare_pic_move): New function, replaces emit_pic_move.
22431 (arc_legitimate_constant_p): Handle TLS unspecs.
22432 (arc_legitimate_address_p): Likewise.
22433 (arc_rewrite_small_data_p): Use assert for TLS constants.
22434 (prepare_move_operands): Use prepare_pic_move.
22435 (arc_legitimize_address): Legitimize tls addresses.
22436 (arc_epilogue_uses): Check for arc_tp_regno.
22437 (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
22438 * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
22440 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
22442 [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
22443 %(arc_tls_extra_start_spec).
22444 (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
22445 (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
22447 (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
22448 * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
22449 (UNSPEC_TLS_OFF): Add.
22451 (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
22452 (get_thread_pointersi): New patterns.
22453 * config/arc/arc.opt (mtp-regno): New option.
22454 * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
22455 (move_dest_operand): Likewise.
22456 * configure: Regenerate.
22457 * configure.ac: Add arc*-*-* case to test for tls.
22458 * doc/invoke.texi (ARC options): Document mtp-regno.
22460 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
22462 * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
22463 the new ARC HS SIMD instructions.
22464 (arc_preferred_simd_mode): New function.
22465 (arc_autovectorize_vector_sizes): Likewise.
22466 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
22467 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
22468 (arc_init_reg_tables): Accept new ARC HS SIMD modes.
22469 (arc_init_builtins): Add new SIMD builtin types.
22470 (arc_split_move): Handle 64 bit vector moves.
22471 * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
22472 (TARGET_PLUS_QMACW): Define.
22473 * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
22474 (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
22475 (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
22476 (VSUBADD4H): New builtins.
22477 * config/arc/simdext.md: Add new ARC HS SIMD instructions.
22478 * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
22480 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
22481 Matthias Klose <doko@debian.org>
22483 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
22485 2016-04-28 Richard Biener <rguenther@suse.de>
22487 PR middle-end/70777
22488 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
22491 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
22493 * common/config/sh/sh-common.c: Remove SH5 support.
22494 * config/sh/constraints.md: Likewise.
22495 * config/sh/config/sh/elf.h: Likewise.
22496 * config/sh/linux.h: Likewise.
22497 * config/sh/netbsd-elf.h: Likewise.
22498 * config/sh/predicates.md: Likewise.
22499 * config/sh/sh-c.c: Likewise.
22500 * config/sh/sh-protos.h: Likewise.
22501 * config/sh/sh.c: Likewise.
22502 * config/sh/sh.h: Likewise.
22503 * config/sh/sh.md: Likewise.
22504 * config/sh/sh.opt: Likewise.
22505 * config/sh/sync.md: Likewise.
22506 * config/sh/sh64.h: Delete.
22507 * config/sh/shmedia.h: Likewise.
22508 * config/sh/shmedia.md: Likewise.
22509 * config/sh/sshmedia.h: Likewise.
22510 * config/sh/t-netbsd-sh5-64: Likewise.
22511 * config/sh/t-sh64: Likewise.
22512 * config/sh/ushmedia.h: Likewise.
22514 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
22516 * config/i386/i386.md (sign_extend to memory peephole2s): Use
22517 general_reg_operand instead of register_operand predicate.
22519 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22521 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
22523 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
22525 * match.pd (A - B > A, A + B < A): New transformations.
22527 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
22529 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
22530 which defaults to true. Emit an outer pair of parentheses only if
22531 EMIT_PARENS. When continuing a chain of && or || (or & or |),
22532 don't emit parentheses for the right-hand operand.
22534 2016-04-27 Jeff Law <law@redhat.com>
22536 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
22538 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22540 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
22541 (altivec_lvx_<mode>_internal): Document.
22542 (altivec_lvx_<mode>_2op): New define_insn.
22543 (altivec_lvx_<mode>_1op): Likewise.
22544 (altivec_lvx_<mode>_2op_si): Likewise.
22545 (altivec_lvx_<mode>_1op_si): Likewise.
22546 (altivec_stvx_<mode>): Remove.
22547 (altivec_stvx_<mode>_internal): Document.
22548 (altivec_stvx_<mode>_2op): New define_insn.
22549 (altivec_stvx_<mode>_1op): Likewise.
22550 (altivec_stvx_<mode>_2op_si): Likewise.
22551 (altivec_stvx_<mode>_1op_si): Likewise.
22552 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
22553 Expand vec_ld and vec_st during parsing.
22554 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
22556 (altivec_expand_stvx_be): Likewise.
22557 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
22558 address-masking behavior in RTL.
22559 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
22560 address-masking behavior in RTL.
22561 (altivec_expand_builtin): Change builtin code arguments for calls
22562 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
22563 (insn_is_swappable_p): Avoid incorrect swap optimization in the
22564 presence of lvx/stvx patterns.
22565 (alignment_with_canonical_addr): New function.
22566 (alignment_mask): Likewise.
22567 (find_alignment_op): Likewise.
22568 (recombine_lvx_pattern): Likewise.
22569 (recombine_stvx_pattern): Likewise.
22570 (recombine_lvx_stvx_patterns): Likewise.
22571 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
22572 stvx patterns from expand.
22573 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
22575 (vector_altivec_store_<mode>): Likewise.
22577 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
22579 * config/aarch64/aarch64.md
22580 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
22581 remove the "fp" attributes.
22582 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
22583 add the "simd" attributes.
22584 (*movdf_aarch64): Likewise.
22585 (*movtf_aarch64): Remove the "fp" attributes.
22586 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
22587 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
22589 2016-04-27 David Malcolm <dmalcolm@redhat.com>
22591 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
22592 rtx to rtx_code_label *.
22593 * rtl.h (maybe_set_first_label_num): Likewise.
22595 2016-04-27 David Malcolm <dmalcolm@redhat.com>
22597 * df-core.c (df_add_problem): Make the problem param be const.
22598 (df_remove_problem): Make local "problem" be const.
22599 * df-problems.c (problem_RD): Make const.
22600 (problem_LR): Likewise.
22601 (problem_LIVE): Likewise.
22602 (problem_MIR): Likewise.
22603 (problem_CHAIN): Likewise.
22604 (problem_WORD_LR): Likewise.
22605 (problem_NOTE): Likewise.
22606 (problem_MD): Likewise.
22607 * df-scan.c (problem_SCAN): Likewise.
22608 * df.h (struct df_problem): Make field "dependent_problem" be
22610 (struct dataflow): Likewise for field "problem".
22611 (df_add_problem): Make param const.
22613 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
22615 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
22616 inter-unit moves to/from vector registers are enabled. Do not disable
22619 2016-04-27 David Malcolm <dmalcolm@redhat.com>
22621 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
22622 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
22624 (enum df_problem_id): ...this new enum.
22625 (struct df_problem): Convert field "id" from "int" to
22626 enum df_problem_id.
22628 2016-04-27 David Malcolm <dmalcolm@redhat.com>
22630 * rtl.def: Update comment for "things in the instruction chain" to
22631 reflect the removal of the leading "i" field for INSN_UID in
22632 r210360. Fix bogus apostrophe.
22634 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
22636 * config/i386/i386.md
22637 (lea arith with mem operand + setcc peephole2): Set operator mode.
22639 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
22642 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
22643 (dimode_scalar_to_vector_candidate_p): This.
22644 (timode_scalar_to_vector_candidate_p): New function.
22645 (scalar_to_vector_candidate_p): Likewise.
22646 (timode_check_non_convertible_regs): Likewise.
22647 (timode_remove_non_convertible_regs): Likewise.
22648 (remove_non_convertible_regs): Likewise.
22649 (remove_non_convertible_regs): Renamed to ...
22650 (dimode_remove_non_convertible_regs): This.
22651 (scalar_chain::~scalar_chain): Make it virtual.
22652 (scalar_chain::compute_convert_gain): Make it pure virtual.
22653 (scalar_chain::mark_dual_mode_def): Likewise.
22654 (scalar_chain::convert_insn): Likewise.
22655 (scalar_chain::convert_registers): Likewise.
22656 (scalar_chain::add_to_queue): Make it protected.
22657 (scalar_chain::emit_conversion_insns): Likewise.
22658 (scalar_chain::replace_with_subreg): Likewise.
22659 (scalar_chain::replace_with_subreg_in_insn): Likewise.
22660 (scalar_chain::convert_op): Likewise.
22661 (scalar_chain::convert_reg): Likewise.
22662 (scalar_chain::make_vector_copies): Likewise.
22663 (scalar_chain::convert_registers): New pure virtual function.
22664 (class dimode_scalar_chain): New class.
22665 (class timode_scalar_chain): Likewise.
22666 (scalar_chain::mark_dual_mode_def): Renamed to ...
22667 (dimode_scalar_chain::mark_dual_mode_def): This.
22668 (timode_scalar_chain::mark_dual_mode_def): New function.
22669 (timode_scalar_chain::convert_insn): Likewise.
22670 (dimode_scalar_chain::convert_registers): Likewise.
22671 (scalar_chain::compute_convert_gain): Renamed to ...
22672 (dimode_scalar_chain::compute_convert_gain): This.
22673 (scalar_chain::replace_with_subreg): Renamed to ...
22674 (dimode_scalar_chain::replace_with_subreg): This.
22675 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
22676 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
22677 (scalar_chain::make_vector_copies): Renamed to ...
22678 (dimode_scalar_chain::make_vector_copies): This.
22679 (scalar_chain::convert_reg): Renamed to ...
22680 (dimode_scalar_chain::convert_reg ): This.
22681 (scalar_chain::convert_op): Renamed to ...
22682 (dimode_scalar_chain::convert_op): This.
22683 (scalar_chain::convert_insn): Renamed to ...
22684 (dimode_scalar_chain::convert_insn): This.
22685 (scalar_chain::convert): Call convert_registers.
22686 (convert_scalars_to_vector): Change to scalar_chain pointer to
22687 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
22688 in 32-bit mode. Delete scalar_chain pointer. Call
22689 free_dominance_info in 64-bit mode.
22690 (pass_stv::gate): Remove TARGET_64BIT check.
22691 (ix86_option_override): Put the 64-bit STV pass before the CSE
22694 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
22696 * dwarf2out.h (struct dw_loc_descr_node): Remove the
22697 dw_loc_frame_offset field.
22698 * dwarf2out.c (new_loc_descr): Likewise.
22699 (resolve_args_picking_1): Turn the VISITED hash set into a
22700 FRAME_OFFSET hash map. Use it to associate a frame offset to
22701 visited nodes. Remove uses of the CHECKING_P macro.
22702 (resolve_args_picking): Update call to resolve_args_picking_1.
22704 2016-04-27 Martin Liska <mliska@suse.cz>
22706 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
22707 (free_loop_data): Release vuses of groups.
22709 2016-04-27 Bin Cheng <bin.cheng@arm.com>
22711 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
22712 instead of redundant use_id and boolean have_use_for.
22713 (struct iv_use): Change sub_id into group_id. Remove field next.
22714 Move fields: related_cands, n_map_members, cost_map and selected
22716 (struct iv_group): ... here. New structure.
22717 (struct iv_common_cand): Use structure declaration directly.
22718 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
22719 (MAX_CONSIDERED_USES): Rename macro to ...
22720 (MAX_CONSIDERED_GROUPS): ... here.
22721 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
22722 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
22723 (dump_uses): Rename to ...
22724 (dump_groups): ... here. Update all uses.
22725 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
22726 (find_induction_variables): Refactor format of dump information.
22727 (record_sub_use): Delete.
22728 (record_use): Update all uses.
22729 (record_group): New function.
22730 (record_group_use, find_interesting_uses_op): Call above functions.
22732 (find_interesting_uses_cond): Ditto.
22733 (group_compare_offset): New function.
22734 (split_all_small_groups): Rename to ...
22735 (split_small_address_groups_p): ... here. Update all uses.
22736 (split_address_groups): Update all uses.
22737 (find_interesting_uses): Refactor format of dump information.
22738 (add_candidate_1): Update all uses. Remove redundant check on iv,
22740 (add_candidate, record_common_cand): Remove redundant assert.
22741 (add_iv_candidate_for_biv): Update use.
22742 (add_iv_candidate_derived_from_uses): Update all uses.
22743 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
22744 (alloc_use_cost_map): Ditto.
22745 (set_use_iv_cost, get_use_iv_cost): Rename to ...
22746 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
22747 (determine_use_iv_cost_generic): Ditto.
22748 (determine_group_iv_cost_generic): Ditto.
22749 (determine_use_iv_cost_address): Ditto.
22750 (determine_group_iv_cost_address): Ditto.
22751 (determine_use_iv_cost_condition): Ditto.
22752 (determine_group_iv_cost_cond): Ditto.
22753 (determine_use_iv_cost): Ditto.
22754 (determine_group_iv_cost): Ditto.
22755 (set_autoinc_for_original_candidates): Update all uses.
22756 (find_iv_candidates): Update all uses. Refactor dump information.
22757 (determine_use_iv_costs): Ditto.
22758 (determine_iv_costs): Ditto.
22759 (iv_ca_cand_for_use): Rename to ...
22760 (iv_ca_cand_for_group): ... here. Update all uses.
22761 (iv_ca_add_use, iv_ca_add_group): Ditto.
22762 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
22763 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
22764 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
22765 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
22766 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
22767 (create_new_iv, adjust_iv_update_pos): Ditto.
22768 (rewrite_use_address): Delete.
22769 (rewrite_use_address_1): Rename to ...
22770 (rewrite_use_address): ... here.
22771 (rewrite_use_compare): Update all uses.
22772 (rewrite_use): Delete.
22773 (rewrite_uses): Rename to ...
22774 (rewrite_groups): ... here. Update all uses.
22775 (remove_unused_ivs, free_loop_data): Update all uses.
22776 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
22778 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22780 * rtlanal.c (nonzero_bits1): Convert preprocessor check
22781 for WORD_REGISTER_OPERATIONS to runtime check.
22783 2016-04-27 Richard Biener <rguenther@suse.de>
22786 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
22787 aggregate_value_p to determine if a function result is
22788 returned by reference.
22789 (ipa_pta_execute): Functions having their address taken are
22790 not automatically nonlocal.
22792 2016-04-27 Jakub Jelinek <jakub@redhat.com>
22795 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
22796 * fold-const.c (operand_equal_p): If flag_checking and
22797 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
22798 and if it returns non-zero, assert iterative_hash_expr on both
22801 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
22803 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
22805 2016-04-27 Nick Clifton <nickc@redhat.com>
22807 PR middle-end/49889
22808 * varasm.c (merge_weak): Generate an error if an attempt is made
22809 to convert a non-weak static function into a weak, public function.
22811 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22813 * params.def (MAX_PARTITION_SIZE): New param.
22814 * doc/invoke.texi: Document lto-max-partition.
22816 2016-04-27 Richard Biener <rguenther@suse.de>
22819 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
22820 function cummulating used_from_other_partition, externally_visible
22821 and force_output from aliases.
22822 (refered_from_nonlocal_var): Likewise.
22823 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
22824 node flags properly.
22826 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
22828 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
22829 (-Wmemset-elt-size): New item.
22831 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
22834 * stor-layout.h (internal_reference_types): Delete.
22835 * stor-layout.c (reference_types_internal): Likewise.
22836 (internal_reference_types): Likewise.
22837 (layout_type) <REFERENCE_TYPE>: Adjust.
22839 2016-04-27 Jakub Jelinek <jakub@redhat.com>
22842 * tree.h (inchash::add_expr): Add FLAGS argument.
22843 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
22844 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
22845 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
22846 Formatting fix. Adjust recursive calls. For tcc_comparison,
22847 if swap_tree_comparison (code) is smaller than code, hash that
22848 and arguments in the other order. Hash CONVERT_EXPR the same
22849 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
22850 of ADDR_EXPR of decl as the decl itself. Add or remove
22851 OEP_ADDRESS_OF from recursive flags as needed. For
22852 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
22853 operands commutatively and only the third one normally.
22854 For internal CALL_EXPR hash in CALL_EXPR_IFN.
22856 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
22858 * config/rtems.h (LIB_SPEC): Add -latomic.
22860 2016-04-27 Joel Sherrill <joel@rtems.org>
22862 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
22863 xilink.ld and flags not relevant to RTEMS.
22865 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
22867 * toplev.c (backend_init_target): Avoid calling init_reload when using
22870 2016-04-26 Jakub Jelinek <jakub@redhat.com>
22872 * reorg.c (try_merge_delay_insns): Declare i and j inside the
22873 for loops rather than one for the whole function.
22875 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
22877 * match.pd (X + CST CMP X): New transformation.
22879 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
22881 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
22882 * fold-const.c (fold_binary_loc): Remove 2 transformations
22883 superseded by match.pd.
22884 * match.pd (x+x -> x*2): Generalize to integers.
22886 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
22888 * config/i386/i386.md (operation on memory peephole): Duplicate an
22889 existing peephole and adapt it to match lea rather than an operation
22892 PR rtl-optimization/57193
22893 * opts.c (default_options_table): Add OPT_frename_registers at -O2
22895 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
22897 2016-04-26 Bin Cheng <bin.cheng@arm.com>
22899 * tree-if-conv.c (any_pred_load_store): New static variable.
22900 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
22901 any_pred_load_store instead of and_mask_load_store.
22902 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
22903 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
22904 (combine_blocks, tree_if_conversion): Ditto.
22906 2016-04-26 Bin Cheng <bin.cheng@arm.com>
22908 PR tree-optimization/70771
22909 PR tree-optimization/70775
22910 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
22911 virtual PHI nodes. Delete parameter.
22912 (if_convertible_loop_p_1): Delete argument to above function.
22913 (predicate_all_scalar_phis): Delete code handling single-argument
22915 (tree_if_conversion): Mark and update virtual SSA.
22917 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22920 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
22921 (x86_elf_aligned_common): Rename to ...
22922 (x86_elf_aligned_decl_common): ... this.
22923 Add decl arg. Switch to .lbss for largecomm object. Use
22924 LARGECOMM_SECTION_ASM_OP.
22925 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
22927 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
22928 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
22930 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
22931 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
22933 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22936 * config/i386/i386.c (SECTION_LARGE): Define.
22937 (x86_64_elf_select_section): Set it for large data/bss sections.
22938 Only clear SECTION_WRITE for .lrodata.
22939 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
22941 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
22942 * varasm.c (default_elf_asm_named_section): Grow flagchars.
22943 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
22945 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
22946 * doc/tm.texi: Regenerate.
22948 2016-04-26 Jakub Jelinek <jakub@redhat.com>
22951 * configure.ac (--enable-checking): Document extra flag, for
22952 non-release builds default to --enable-checking=yes,extra.
22953 If misc checking and extra checking, define CHECKING_P to 2 instead
22955 * common.opt (fchecking=): Add.
22956 * doc/invoke.texi (-fchecking=): Document.
22957 * doc/install.texi: Document --enable-checking changes.
22958 * configure: Regenerated.
22959 * config.in: Regenerated.
22961 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
22963 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
22964 attribute instead of which_alternative.
22965 * config/i386/sse.md (*mov<mode>_internal): Ditto.
22966 Use EXT_REX_SSE_REG_P where appropriate.
22968 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
22970 * config/i386/predicates.md (const0_operand): Do not match
22971 const_wide_int code.
22972 (const1_operand): Ditto.
22974 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
22976 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
22977 for SSE constm1 operands and TARGET_AVX512VL.
22978 (*movti_internal): Ditto.
22979 (*mov<mode>_or): Use constm1_operand predicate.
22980 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
22981 for SSE vector_all_ones operands and TARGET_AVX512VL.
22982 * config/i386/predicates.md (constm1_operand): New predicate.
22983 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
22984 emission of constant -1 load.
22986 2016-04-25 Jason Merrill <jason@redhat.com>
22988 * gdbinit.in: Skip is-a.h.
22990 * attribs.c (register_scoped_attributes): Fix logic.
22991 * attribs.h: Declare register_scoped_attributes.
22993 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22995 * config/rs6000/rs6000-builtin.def: Correct pasto error for
22996 stxvd2x and stxvw4x built-in functions.
22998 2016-04-25 DJ Delorie <dj@redhat.com>
23000 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
23001 (ashrhi3): Likewise.
23002 (lshrhi3): Likewise.
23004 2016-04-25 Richard Biener <rguenther@suse.de>
23006 PR tree-optimization/70780
23007 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
23008 wasn't visited yet.
23009 (compute_antic): Mark blocks with abnormal preds as visited as
23010 they have a final empty antic-in solution already.
23012 2016-04-25 Michael Collison <michael.collison@linaro.org>
23014 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
23016 2016-04-25 Michael Collison <michael.collison@linaro.org>
23018 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
23019 mode is VQI to improve mixed mode vectorization.
23020 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
23021 define_insn to match low half of signed vaddw.
23022 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
23023 define_insn to match high half of signed vaddw.
23024 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
23025 define_insn to match low half of unsigned vaddw.
23026 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
23027 define_insn to match high half of unsigned vaddw.
23028 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
23029 (arm_simd_check_vect_par_cnst_half_p): Likewise.
23030 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
23032 (arm_simd_check_vect_par_cnst_half_p): Likewise.
23033 * config/arm/predicates.md (vect_par_constant_high): Support
23034 big endian and simplify by calling
23035 arm_simd_check_vect_par_cnst_half
23036 (vect_par_constant_low): Likewise.
23038 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
23040 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
23041 predicate for operand 2.
23043 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
23044 H.J. Lu <hongjiu.lu@intel.com>
23046 * config/i386/i386-protos.h (standard_sse_constant_p): Add
23047 machine_mode argument.
23048 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
23049 constm1_rtx operands. For VOIDmode constants, get mode from
23050 pred_mode. Check mode size if the mode is supported by ABI.
23051 (standard_sse_constant_opcode): Do not use standard_constant_p.
23052 Strictly check ABI support for all-ones operands.
23053 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
23054 immediates. Update calls to standard_sse_constant_p.
23055 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
23056 (ix86_rtx_costs): Ditto.
23057 * config/i386/i386.md (*movxi_internal_avx512f): Use
23058 nonimmediate_or_sse_const_operand instead of vector_move_operand.
23059 Use (v,BC) alternative instead of (v,C). Use register_operand
23060 checks instead of MEM_P.
23061 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
23062 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
23063 isa attribute. Use register_operand checks instead of MEM_P.
23064 (*movti_internal): Use nonimmediate_or_sse_const_operand for
23065 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
23066 alternative and corresponding sse2 isa attribute.
23067 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
23068 to standard_sse_constant_p.
23069 (FP constant splitters): Ditto.
23070 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
23072 * config/i386/predicates.md (constm1_operand): Remove.
23073 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
23074 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
23075 vector_all_ones_operand instead of constm1_operand.
23077 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23079 * print-rtl.c (print_rtx_insn_vec): New function.
23080 * print-rtl.h: New prototype.
23081 * store-motion.c (struct st_expr): Make avail_stores a vector.
23082 (st_expr_entry): Adjust.
23083 (free_st_expr_entry): Likewise.
23084 (print_store_motion_mems): Likewise.
23085 (find_moveable_store): Likewise.
23086 (compute_store_table): Likewise.
23087 (delete_store): Likewise.
23088 (build_store_vectors): Likewise.
23090 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23092 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
23094 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23096 * vec.h (vec_safe_contains): New function.
23097 (vec::contains): Likewise.
23098 (vec::begin): Likewise.
23099 (vec::end): Likewise.
23101 2016-04-23 Jakub Jelinek <jakub@redhat.com>
23104 * cfgexpand.c (expand_stack_vars): Fix typo.
23106 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
23108 * system.h (list, map, set, vector): Include conditionally.
23109 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
23110 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
23111 * ipa-icf.c (INCLUDE_LIST): Define.
23112 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
23113 * config/sh/sh.c (INCLUDE_VECTOR): Define.
23114 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
23115 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
23116 * cp/logic.cc (INCLUDE_LIST): Define.
23117 * fortran/trans-common.c (INCLUDE_MAP): Define.
23119 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
23121 * auto-profile.c: Remove <string.h> include.
23122 * ipa-icf-gimple.c: Remove <list> include.
23123 * diagnostic.c: Remove <new> include.
23124 * genmatch.c: Likewise.
23125 * pretty-print.c: Likewise.
23126 * toplev.c: Likewise
23127 * c/c-objc-common.c: Likewise.
23128 * cp/error.c: Likewise.
23129 * fortran/error.c: Likewise.
23131 2016-04-22 Richard Biener <rguenther@suse.de>
23133 * lto-streamer-in.c (input_ssa_names): Do not allocate
23134 GIMPLE_NOP for all SSA names.
23135 * lto-streamer-out.c (output_ssa_names): Do not output
23136 SSA names that should have been released.
23138 2016-04-22 Richard Biener <rguenther@suse.de>
23140 PR tree-optimization/70740
23141 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
23144 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
23147 * config/i386/predicates.md (call_insn_operand): Replace
23148 sibcall_memory_operand with memory_operand.
23150 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
23152 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
23153 has_single_use() tests.
23154 (register_edge_assert_for_1): Likewise.
23155 (find_assert_locations_1): Check the liveness bitmap instead of
23156 checking has_single_use().
23158 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
23161 * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
23162 Extract AVX-512BW constraint from AVX.
23164 2016-04-21 Richard Biener <rguenther@suse.de>
23166 PR tree-optimization/70725
23167 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
23168 for phi_convertible_by_degenerating_args.
23169 (predicate_all_scalar_phis): Handle single-argument PHIs.
23171 2016-04-21 Richard Biener <rguenther@suse.de>
23173 PR middle-end/70747
23174 * fold-const.c (fold_comparison): Return properly typed
23177 2016-04-21 Bin Cheng <bin.cheng@arm.com>
23179 PR tree-optimization/70715
23180 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
23181 after expanding BASE using expand_simple_operations.
23183 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
23185 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
23186 New transformations.
23188 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
23190 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
23192 2016-04-20 Jan Hubicka <jh@suse.cz>
23194 * ipa-inline.c (can_inline_edge_p): Pass caller info to
23195 ultiimate_alias_target.
23196 (update_callee_keys): Likewise.
23197 (lookup_recursive_calls): Likewise.
23198 (speculation_useful_p): Likewise.
23200 2016-04-20 Jan Hubicka <jh@suse.cz>
23203 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
23204 (set_nothrow_flag_1): ... this; handle interposition correctly;
23205 recurse on aliases and thunks.
23206 (cgraph_node::set_nothrow_flag): New.
23207 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
23208 functions compiled with non-call exceptions that binds to current
23210 (propagate_nothrow): Be safe WRT interposition.
23211 * cgraph.h (set_nothrow_flag): Update prototype.
23213 2016-04-18 Jan Hubicka <jh@suse.cz>
23215 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
23216 max_loop_iterations_int.
23217 (tree_unswitch_outer_loop): Likewise.
23219 2016-04-20 Bin Cheng <bin.cheng@arm.com>
23221 PR tree-optimization/69489
23222 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
23223 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
23224 Revise dump message.
23225 (if_convertible_bb_p): Remove check on edge count of basic block's
23228 2016-04-20 Bin Cheng <bin.cheng@arm.com>
23230 PR tree-optimization/56625
23231 PR tree-optimization/69489
23232 * tree-data-ref.h (DR_INNERMOST): New macro.
23233 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
23234 hashing struct innermost_loop_behavior.
23235 (ref_DR_map): Remove.
23236 (innermost_DR_map): New map.
23237 (baseref_DR_map): Revise comment.
23238 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
23239 to innermost_DR_map accroding to its innermost loop behavior.
23240 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
23241 to its innermost loop behavior.
23242 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
23243 Add initialization for innermost_DR_map. Record memory reference
23244 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
23245 have innermost loop behavior.
23246 (if_convertible_loop_p): Remove release for ref_DR_map. Release
23249 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
23251 * config/i386/i386.md (*lea<mode>_general_1): Rename from
23252 *lea_general_1. Use explicit SWI12 mode interator.
23253 (*lea<mode>_general_2): Rename from *lea_general_2.
23254 Use explicit SWI12 mode interator.
23255 (*lea<mode>_general_3): Rename from *lea_general_3.
23256 Use explicit SWI12 mode interator.
23257 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
23258 Use explicit SWI12 mode interator.
23259 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
23260 Use explicit SWI48 mode interator.
23262 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
23264 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
23265 Short-cut unaligned load and store cases. Handle all integer
23267 (ix86_expand_vector_move_misalign): Short-cut unaligned load
23268 and store cases. Call ix86_avx256_split_vector_move_misalign
23269 directly without checking mode class.
23271 2016-04-20 Andrew Pinski <apinski@cavium.com>
23272 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23275 * config/aarch64/aarch64.md (sibcall): Force call
23276 address to be DImode for ILP32.
23277 (sibcall_value): Likewise.
23279 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
23281 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
23283 2016-04-20 Richard Biener <rguenther@suse.de>
23285 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
23286 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
23287 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
23288 (maybe_push_res_to_seq): Adjust.
23289 * gimple-fold.c (maybe_build_generic_op): Likewise.
23291 2016-04-20 Marek Polacek <polacek@redhat.com>
23293 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
23296 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
23298 * config/i386/sse.md (vec_unpacks_lo_hi): Always
23299 use kmovw to support AVX512F target.
23301 2016-04-20 Bin Cheng <bin.cheng@arm.com>
23303 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
23305 2016-04-20 Marek Polacek <polacek@redhat.com>
23307 PR tree-optimization/70725
23308 * tree-if-conv.c (is_false_predicate): New function.
23309 (predicate_mem_writes): Use it.
23311 2016-04-20 Richard Biener <rguenther@suse.de>
23313 PR tree-optimization/70726
23314 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
23315 shift amounts from a pattern stmt operand.
23317 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23320 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
23321 stack_restore_from_fpr pattern when restoring r15.
23322 (s390_optimize_prologue): Strip away the memory barrier in the
23323 parallel when trying to get rid of restore insns.
23324 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
23325 definition for loading the stack pointer from an FPR. Compared to
23326 the normal move insn this pattern includes a full memory barrier.
23328 2016-04-19 Jakub Jelinek <jakub@redhat.com>
23330 PR middle-end/70680
23331 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
23332 implicitly linear or lastprivate iterator on the outer context.
23334 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
23336 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
23338 * config/i386/i386.md (ssememalign): Removed.
23339 * config/i386/sse.md: Remove ssememalign attribute from patterns.
23341 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
23344 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
23345 const short * to __builtin_ia32_loaddquhi512_mask.
23346 (_mm512_maskz_loadu_epi16): Likewise.
23347 (_mm512_mask_storeu_epi16): Pass short * to
23348 __builtin_ia32_storedquhi512_mask.
23349 (_mm512_mask_loadu_epi8): Pass const char * to
23350 __builtin_ia32_loaddquqi512_mask.
23351 (_mm512_maskz_loadu_epi8): Likewise.
23352 (_mm512_mask_storeu_epi8): Pass char * to
23353 __builtin_ia32_storedquqi512_mask.
23354 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
23355 const double * to __builtin_ia32_loadupd512_mask.
23356 (_mm512_mask_loadu_pd): Likewise.
23357 (_mm512_maskz_loadu_pd): Likewise.
23358 (_mm512_storeu_pd): Pass double * to
23359 __builtin_ia32_storeupd512_mask.
23360 (_mm512_mask_storeu_pd): Likewise.
23361 (_mm512_loadu_ps): Pass const float * to
23362 __builtin_ia32_loadups512_mask.
23363 (_mm512_mask_loadu_ps): Likewise.
23364 (_mm512_maskz_loadu_ps): Likewise.
23365 (_mm512_storeu_ps): Pass float * to
23366 __builtin_ia32_storeups512_mask.
23367 (_mm512_mask_storeu_ps): Likewise.
23368 (_mm512_mask_loadu_epi64): Pass const long long * to
23369 __builtin_ia32_loaddqudi512_mask.
23370 (_mm512_maskz_loadu_epi64): Likewise.
23371 (_mm512_mask_storeu_epi64): Pass long long *
23372 to __builtin_ia32_storedqudi512_mask.
23373 (_mm512_loadu_si512): Pass const int * to
23374 __builtin_ia32_loaddqusi512_mask.
23375 (_mm512_mask_loadu_epi32): Likewise.
23376 (_mm512_maskz_loadu_epi32): Likewise.
23377 (_mm512_storeu_si512): Pass int * to
23378 __builtin_ia32_storedqusi512_mask.
23379 (_mm512_mask_storeu_epi32): Likewise.
23380 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
23381 char * to __builtin_ia32_storedquqi256_mask.
23382 (_mm_mask_storeu_epi8): Likewise.
23383 (_mm256_mask_loadu_epi16): Pass const short * to
23384 __builtin_ia32_loaddquhi256_mask.
23385 (_mm256_maskz_loadu_epi16): Likewise.
23386 (_mm_mask_loadu_epi16): Pass const short * to
23387 __builtin_ia32_loaddquhi128_mask.
23388 (_mm_maskz_loadu_epi16): Likewise.
23389 (_mm256_mask_loadu_epi8): Pass const char * to
23390 __builtin_ia32_loaddquqi256_mask.
23391 (_mm256_maskz_loadu_epi8): Likewise.
23392 (_mm_mask_loadu_epi8): Pass const char * to
23393 __builtin_ia32_loaddquqi128_mask.
23394 (_mm_maskz_loadu_epi8): Likewise.
23395 (_mm256_mask_storeu_epi16): Pass short * to.
23396 __builtin_ia32_storedquhi256_mask.
23397 (_mm_mask_storeu_epi16): Pass short * to.
23398 __builtin_ia32_storedquhi128_mask.
23399 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
23400 const double * to __builtin_ia32_loadupd256_mask.
23401 (_mm256_maskz_loadu_pd): Likewise.
23402 (_mm_mask_loadu_pd): Pass onst double * to
23403 __builtin_ia32_loadupd128_mask.
23404 (_mm_maskz_loadu_pd): Likewise.
23405 (_mm256_mask_storeu_pd): Pass double * to
23406 __builtin_ia32_storeupd256_mask.
23407 (_mm_mask_storeu_pd): Pass double * to
23408 __builtin_ia32_storeupd128_mask.
23409 (_mm256_mask_loadu_ps): Pass const float * to
23410 __builtin_ia32_loadups256_mask.
23411 (_mm256_maskz_loadu_ps): Likewise.
23412 (_mm_mask_loadu_ps): Pass const float * to
23413 __builtin_ia32_loadups128_mask.
23414 (_mm_maskz_loadu_ps): Likewise.
23415 (_mm256_mask_storeu_ps): Pass float * to
23416 __builtin_ia32_storeups256_mask.
23417 (_mm_mask_storeu_ps): ass float * to
23418 __builtin_ia32_storeups128_mask.
23419 (_mm256_mask_loadu_epi64): Pass const long long * to
23420 __builtin_ia32_loaddqudi256_mask.
23421 (_mm256_maskz_loadu_epi64): Likewise.
23422 (_mm_mask_loadu_epi64): Pass const long long * to
23423 __builtin_ia32_loaddqudi128_mask.
23424 (_mm_maskz_loadu_epi64): Likewise.
23425 (_mm256_mask_storeu_epi64): Pass long long * to
23426 __builtin_ia32_storedqudi256_mask.
23427 (_mm_mask_storeu_epi64): Pass long long * to
23428 __builtin_ia32_storedqudi128_mask.
23429 (_mm256_mask_loadu_epi32): Pass const int * to
23430 __builtin_ia32_loaddqusi256_mask.
23431 (_mm256_maskz_loadu_epi32): Likewise.
23432 (_mm_mask_loadu_epi32): Pass const int * to
23433 __builtin_ia32_loaddqusi128_mask.
23434 (_mm_maskz_loadu_epi32): Likewise.
23435 (_mm256_mask_storeu_epi32): Pass int * to
23436 __builtin_ia32_storedqusi256_mask.
23437 (_mm_mask_storeu_epi32): Pass int * to
23438 __builtin_ia32_storedqusi128_mask.
23439 * config/i386/i386-builtin-types.def (PCSHORT): New.
23440 (PINT64): Likewise.
23441 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
23442 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
23443 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
23444 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
23445 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
23446 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
23447 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
23448 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
23449 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
23450 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
23451 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
23452 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
23453 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
23454 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
23455 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
23456 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
23457 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
23458 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
23459 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
23460 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
23461 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
23462 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
23463 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
23464 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
23465 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
23466 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
23467 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
23468 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
23469 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
23470 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
23471 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
23472 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
23473 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
23474 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
23475 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
23476 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
23477 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
23478 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
23479 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
23480 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
23481 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
23482 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
23483 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
23484 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
23485 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
23486 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
23487 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
23488 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
23489 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
23491 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
23492 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
23494 (ix86_expand_vector_move_misalign): Likewise.
23495 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
23496 to scalar function prototype for unaligned load/store builtins.
23497 (ix86_expand_special_args_builtin): Updated.
23498 * config/i386/sse.md (UNSPEC_LOADU): Removed.
23499 (UNSPEC_STOREU): Likewise.
23500 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
23501 (VI_ULOADSTORE_F_AVX512VL): Likewise.
23502 (ssescalarsize): Handle V4TI, V2TI and V1TI.
23503 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
23504 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
23505 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
23506 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
23507 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
23508 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
23509 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
23510 (<avx512>_storedqu<mode>_mask): Likewise.
23511 (*sse4_2_pcmpestr_unaligned): Likewise.
23512 (*sse4_2_pcmpistr_unaligned): Likewise.
23513 (*mov<mode>_internal): Renamed to ...
23514 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
23515 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
23516 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
23517 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
23519 2016-04-19 Richard Biener <rguenther@suse.de>
23521 PR tree-optimization/70171
23522 * tree-ssa-phiprop.c: Include stor-layout.h.
23523 (phiprop_insert_phi): Handle the aggregate copy case.
23524 (propagate_with_phi): Likewise.
23526 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
23528 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
23529 instead of simplify_gen_subreg (... , 0).
23530 (ix86_delegitimize_address): Ditto.
23531 (ix86_split_divmod): Ditto.
23532 (ix86_split_copysign_const): Ditto.
23533 (ix86_split_copysign_var): Ditto.
23534 (ix86_expand_args_builtin): Ditto.
23535 (ix86_expand_round_builtin): Ditto.
23536 (ix86_expand_special_args_builtin): Ditto.
23537 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
23538 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
23539 (udivmodqi4): Ditto.
23540 (absneg splitters): Ditto.
23541 (*jcc_bt<mode>_1): Ditto.
23543 2016-04-19 Richard Biener <rguenther@suse.de>
23545 PR tree-optimization/70724
23546 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
23547 restoring out from ...
23548 (free_scc_vn): ... here.
23549 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
23550 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
23552 (pass_fre::execute): Restore SSA info.
23554 2016-04-19 Richard Biener <rguenther@suse.de>
23556 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
23557 * gimple-walk.c (walk_gimple_op): Initialize it.
23558 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
23559 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
23560 remapping SSA names of defs.
23561 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
23564 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
23566 PR middle-end/70689
23567 * lra-constraints.c (equiv_substition_p): New.
23568 (process_alt_operands): Use it.
23569 (swap_operands): Swap it.
23570 (curr_insn_transform): Update it.
23572 2016-04-18 Michael Matz <matz@suse.de>
23574 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
23575 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
23576 * tree-core.h (tree_type_common.align): Use bit-field.
23577 (tree_type_common.spare): New.
23578 (tree_decl_common.off_align): Make smaller.
23579 (tree_decl_common.align): Use bit-field.
23581 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
23582 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
23583 (scan_sharing_clauses): Ditto.
23584 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
23585 (omp_finish_file): Ditto.
23586 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
23587 (layout_decl): Ditto.
23588 (relayout_decl): Ditto.
23589 (finalize_record_size): Use SET_TYPE_ALIGN.
23590 (finalize_type_size): Ditto.
23591 (finish_builtin_struct): Ditto.
23592 (layout_type): Ditto.
23593 (initialize_sizetypes): Ditto.
23594 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
23595 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
23596 (lookup_field_for_decl): Use SET_DECL_ALIGN.
23597 (get_chain_field): Ditto.
23598 (get_trampoline_type): Ditto.
23599 (get_nl_goto_field): Ditto.
23600 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
23602 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
23603 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
23604 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
23605 (build_qualified_type): Use SET_TYPE_ALIGN.
23606 (build_aligned_type, build_range_type_1): Ditto.
23607 (build_atomic_base): Ditto.
23608 (build_common_tree_nodes): Ditto.
23609 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
23610 (expand_one_stack_var_at): Ditto.
23611 * coverage.c (build_var): Use SET_DECL_ALIGN.
23612 * except.c (init_eh): Ditto.
23613 * function.c (assign_parm_setup_block): Ditto.
23614 * symtab.c (increase_alignment_1): Ditto.
23615 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
23616 * tree-vect-stmts.c (ensure_base_align): Ditto.
23617 * varasm.c (align_variable): Ditto.
23618 (assemble_variable): Ditto.
23619 (build_constant_desc): Ditto.
23620 (output_constant_def_contents): Ditto.
23622 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
23623 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
23624 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
23625 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
23626 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
23628 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
23631 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
23632 replace %vmovsd with "%vmovq".
23633 (vec_concatv2df): Likewise.
23635 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
23637 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
23638 (*vec_extractv2si_0): Ditto.
23639 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
23640 (zero_extended_scalar_load_operand splitters): Ditto.
23641 (vec_extract splitters): Ditto.
23642 (*vec_extractv4si_0_zext): Ditto.
23643 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
23644 and lowpart_subreg.
23645 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
23646 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
23647 (*sse4_1_extractps): Use lowpart_subreg.
23648 * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
23650 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23652 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
23654 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
23655 Mention Solaris 11 packaging changes.
23656 Update gas and gld requirements.
23657 Remove reference to pre-Solaris 10 bug.
23658 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
23660 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
23663 2016-04-17 Jan Hubicka <jh@suse.cz>
23665 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
23666 max_loop_iterations_int.
23668 2016-04-18 Richard Biener <rguenther@suse.de>
23670 PR tree-optimization/43434
23671 * tree-ssa-structalias.c (struct vls_data): New.
23672 (visit_loadstore): Handle all pointer-based accesses.
23673 (compute_dependence_clique): Compute a bitmap of restrict tags
23674 assigned bases and pass it to visit_loadstore.
23676 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
23679 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
23680 armv8.1-a and armv8.1-a+crc.
23682 2016-04-18 Richard Biener <rguenther@suse.de>
23684 PR tree-optimization/70701
23685 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
23686 references after translating through a memcpy.
23688 2016-04-18 Richard Biener <rguenther@suse.de>
23690 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
23691 (compute_antic): ... here. For partial antic use regular
23692 postorder and scrap iteration.
23693 (compute_partial_antic_aux): Remove unused return value.
23694 (init_pre): Do not allocate postorder.
23695 (fini_pre): Do not free postorder.
23697 2016-04-18 Richard Biener <rguenther@suse.de>
23699 PR middle-end/37870
23700 * expmed.c (extract_bit_field_1): Remove broken case
23701 using a wider MODE_INT mode.
23703 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
23705 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
23706 unless compiling with at least GCC-4.8.
23708 2016-04-17 Jan Hubicka <jh@suse.cz>
23711 * graphite.c (graphite_finalize): Update call to
23712 tree_estimate_probability.
23713 * predict.h (tree_estimate_probability): Update prototype.
23715 2016-04-17 Jan Hubicka <jh@suse.cz>
23717 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
23718 (tree_estimate_probability): Likewise.
23719 (pass_profile::execute): Update.
23720 (report_predictor_hitrates): New function.
23721 * profile.c (compute_branch_probabilities): Use it.
23722 * predict.h (report_predictor_hitrates): Declare.
23724 2016-04-17 Jan Hubicka <jh@suse.cz>
23727 * cgraph.h (cgraph_node::set_const_flag,
23728 cgraph_node::set_pure_flag): Update prototype to return bool;
23730 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
23731 of interposable symbol are interposable, too.
23732 (cgraph_set_const_flag_1): Rename to ...
23733 (set_const_flag_1): ... this one; change to self recursive function
23734 instead of call_for_symbol_thunks_and_aliases. Handle correctly
23735 clearnig the flag in all variants and also virtual thunks of const
23736 functions are pure; track if any change was done.
23737 (cgraph_node::set_const_flag): Update.
23738 (struct set_pure_flag_info): New struct.
23739 (cgraph_set_pure_flag_1): Rename to ...
23740 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
23741 rather than pointer encoded flags; track if any changes was done;
23742 handle correctly clearning flag and setting flag of aliases already
23744 (cgraph_node::set_pure_flag): Update.
23745 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
23747 2016-04-17 Tom de Vries <tom@codesourcery.com>
23750 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
23751 backslash in label.
23753 2016-04-17 Tom de Vries <tom@codesourcery.com>
23755 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
23756 '{}<> ' as escape-for-record.
23758 2016-04-17 Tom de Vries <tom@codesourcery.com>
23760 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
23763 2016-04-17 Tom de Vries <tom@codesourcery.com>
23766 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
23767 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
23768 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
23769 * passes.c (finish_optimization_passes): Only call
23770 finish_graph_dump_file if dfi->graph_dump_initialized.
23771 (execute_function_dump, pass_init_dump_file): Use
23772 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
23774 2016-04-17 Tom de Vries <tom@codesourcery.com>
23776 PR tree-optimization/70256
23777 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
23778 (debug_varmap): New function.
23780 2016-04-17 Tom de Vries <tom@codesourcery.com>
23783 * passes.c (pass_manager::register_pass): Propagate pflags.
23785 2016-04-17 Tom de Vries <tom@codesourcery.com>
23788 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
23789 * passes.c (pass_manager::pass_manager): Declare and init p_start in
23790 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
23791 check if it's equal to p_start.
23792 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
23794 2016-04-15 Jan Hubicka <jh@suse.cz>
23797 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
23798 function does not bind to current def.
23799 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
23800 handle conservatively calls to functions that does not need to bind
23802 (check_call): Update call of worse_state.
23803 (ignore_edge_for_nothrow): Update.
23804 (ignore_edge_for_pure_const): Likewise.
23805 (propagate_pure_const): Update calls to worse_state.
23806 (skip_function_for_local_pure_const): Reformat comments.
23808 2016-04-15 Jan Hubicka <jh@suse.cz>
23811 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
23812 (cgraph_node::function_symbol): Likewise.
23813 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
23814 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
23815 (symtab_node::ultimate_alias_target): Add REF parameter.
23816 (symtab_node::binds_to_current_def_p): Declare.
23817 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
23818 (cgraph_node::function_symbol): Likewise.
23819 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
23820 (cgraph_node::get_availability): Likewise.
23821 (cgraph_edge::binds_to_current_def_p): New inline function.
23822 (varpool_node::get_availability): Add REF parameter.
23823 (varpool_node::ultimate_alias_target): Likewise.
23824 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
23825 (symtab_node::binds_to_current_def_p): Likewise.
23826 * varpool.c (varpool_node::get_availability): Likewise.
23828 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
23831 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
23832 Fix mode size check.
23834 2016-04-15 Jakub Jelinek <jakub@redhat.com>
23836 * BASE-VER: Set to 7.0.0.
23838 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
23840 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
23842 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23844 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
23845 architecture revisions.
23847 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
23849 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
23850 * config/i386/i386.c (ix86_using_red_zone): No longer static.
23851 * config/i386/i386.md (stack decrement to push peepholes): Guard
23852 with !x86_using_red_zone ().
23854 2016-04-15 Jakub Jelinek <jakub@redhat.com>
23857 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
23858 to dump_generic_node.
23859 (NIY): Pass also flags to do_niy.
23861 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
23863 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
23864 (simd_clone_vector_of_formal_parm_types)
23865 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
23866 (simd_clone_mangle, simd_clone_create)
23867 (simd_clone_adjust_return_type, create_tmp_simd_array)
23868 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
23869 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
23870 (ipa_simd_modify_function_body, simd_clone_linear_addend)
23871 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
23872 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
23873 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
23874 * omp-simd-clone.c: ... this new file.
23875 (simd_clone_vector_of_formal_parm_types): Make it static.
23876 * Makefile.in (OBJS): Add omp-simd-clone.o.
23878 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
23881 * config/i386/sse.md: Use proper memory operand modifiers.
23884 2016-04-15 Richard Biener <rguenther@suse.de>
23885 Alan Modra <amodra@gmail.com>
23887 PR tree-optimization/70130
23888 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
23889 when alignment stays not the same and no not use the realign
23892 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
23895 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
23896 direct move handlers for KFmode. Change TFmode handlers test from
23897 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
23899 2016-04-14 Jakub Jelinek <jakub@redhat.com>
23902 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
23903 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
23904 (inlined_polymorphic_ctor_dtor_block_p): Use it.
23905 * tree-ssa-live.c (remove_unused_scope_block_p): When
23906 in_ctor_dtor_block, avoid discarding not just BLOCKs with
23907 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
23908 block_ultimate_origin is FUNCTION_DECL.
23909 (remove_unused_locals): If current_function_decl is
23910 polymorphic_ctor_dtor_p, pass initial true to
23911 remove_unused_scope_block_p' is_ctor_dtor_block.
23913 2016-04-14 Martin Sebor <msebor@redhat.com>
23918 * doc/extend.texi (Variable Length): Revert.
23920 2016-04-14 Marek Polacek <polacek@redhat.com>
23921 Jan Hubicka <hubicka@ucw.cz>
23924 * tree.c (verify_type): Disable the canonical type of main variant
23927 2016-04-14 Jason Merrill <jason@redhat.com>
23929 * cfgexpand.c, expr.c: Revert previous change.
23931 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
23933 PR middle-end/70643
23934 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
23935 when building a mem ref for the incoming reduction variable.
23937 2016-04-14 Richard Biener <rguenther@suse.de>
23939 PR tree-optimization/70614
23940 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
23941 loop if the evolution dropped to chrec_dont_know.
23942 (interpret_condition_phi): Likewise.
23944 2016-04-14 Richard Biener <rguenther@suse.de>
23946 PR tree-optimization/70623
23947 * tree-ssa-pre.c (changed_blocks): Make global ...
23948 (compute_antic): ... local here. Move and fix worklist
23949 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
23950 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
23951 worklist handling, dump when ANTIC_IN changed.
23952 (compute_partial_antic_aux): Remove worklist handling.
23953 (init_pre): Do not compute post dominators. Add a comment about
23954 the CFG order chosen.
23955 (fini_pre): Do not free post dominators.
23957 2016-04-13 Martin Sebor <msebor@redhat.com>
23962 * doc/extend.texi (Variable Length): Document C++ specifics.
23964 2016-04-13 Jakub Jelinek <jakub@redhat.com>
23967 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
23968 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
23969 eh edges have been purged.
23972 * tree-sra.c (create_access_replacement,
23973 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
23975 * tree-pretty-print.c (dump_fancy_name): New function.
23976 (dump_decl_name, dump_generic_node): Use it.
23978 2016-04-13 Jason Merrill <jason@redhat.com>
23980 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
23981 * expr.c (expand_expr_real_1): Likewise.
23983 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
23985 * config/i386/i386.md (kunpckhi): Swap operands.
23986 (kunpcksi): Likewise.
23987 (kunpckdi): Likewise.
23988 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
23989 (vec_pack_trunc_<mode>): Likewise.
23991 2016-04-13 Jakub Jelinek <jakub@redhat.com>
23994 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
23996 PR middle-end/70633
23997 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
23998 gimplification turns some element into non-constant.
24001 * rtl.h (convert_memory_address_addr_space_1): New prototype.
24002 * explow.c (convert_memory_address_addr_space_1): No longer static,
24003 add NO_EMIT argument and don't call convert_modes if true, pass
24004 it down recursively, remove break after return.
24005 (convert_memory_address_addr_space): Adjust caller.
24006 * simplify-rtx.c (simplify_unary_operation_1): Call
24007 convert_memory_address_addr_space_1 instead of convert_memory_address,
24008 if it returns NULL, don't simplify.
24010 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
24013 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
24015 2016-04-12 Jakub Jelinek <jakub@redhat.com>
24017 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
24018 Bump the upper SIMDLEN limits, so that if the return type or
24019 characteristic type if the return type is void can be passed in
24020 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
24023 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
24026 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
24027 Do not use "=" constraint on an input constraint.
24028 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
24029 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
24030 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
24031 generates (neg (abs ...)) instead of (abs ...).
24033 2016-04-12 Jakub Jelinek <jakub@redhat.com>
24035 PR rtl-optimization/70596
24036 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
24037 just invalidate LRA data and reset them. Adjust dump wording.
24039 2016-04-12 Martin Liska <mliska@suse.cz>
24042 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
24044 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
24046 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
24047 max_loop_iterations_int.
24048 (tree_unswitch_outer_loop): Likewise.
24049 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
24050 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
24052 2016-04-12 Tom de Vries <tom@codesourcery.com>
24054 PR tree-optimization/68756
24055 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
24056 instead of new_name.
24058 2016-04-12 Jakub Jelinek <jakub@redhat.com>
24060 PR tree-optimization/70602
24061 * tree-sra.c (generate_subtree_copies): Don't write anything into
24062 constant pool decls.
24064 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
24065 regardless whether there are depend clauses or not.
24067 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
24070 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
24071 target attribute and pragma from changing the -mfloat128
24072 and -mfloat128-hardware options.
24074 * doc/extend.texi (Additional Floating Types): Document PowerPC
24075 __float128 restrictions.
24077 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
24080 * config/aarch64/driver-aarch64.c
24081 (aarch64_get_extension_string_for_isa_flags): New.
24082 (arch_extension): Rename to...
24083 (aarch64_arch_extension): ...This.
24084 (ext_to_feat_string): Rename to...
24085 (aarch64_extensions): ...This.
24086 (aarch64_core_data): Keep track of architecture extension flags.
24087 (cpu_data): Rename to...
24088 (aarch64_cpu_data): ...This.
24089 (aarch64_arch_driver_info): Keep track of architecture extension
24091 (get_arch_name_from_id): Rename to...
24092 (get_arch_from_id): ...This, change return type.
24093 (host_detect_local_cpu): Update and reformat for renames, handle
24094 extensions through common infrastructure.
24096 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
24099 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
24100 track of a canonical flag name.
24101 (all_extensions): Likewise.
24102 (arch_to_arch_name): Also track extension flags enabled by the arch.
24103 (all_architectures): Likewise.
24104 (aarch64_parse_extension): Move to here.
24105 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
24107 (aarch64_rewrite_selected_cpu): Update for above change.
24108 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
24109 are handled, such that the single explicit value enabled by an
24110 extension is kept seperate from the implicit values it also enables.
24111 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
24113 (aarch64_parse_extension): New.
24114 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
24115 here to config/aarch64/aarch64-protos.h.
24116 (aarch64_parse_extension): Move from here to
24117 common/config/aarch64/aarch64-common.c.
24118 (aarch64_option_print): Update.
24119 (aarch64_declare_function_name): Likewise.
24120 (aarch64_start_file): Likewise.
24121 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
24122 the canonical flag for extensions.
24123 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
24126 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
24128 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
24131 2016-04-09 Tom de Vries <tom@codesourcery.com>
24133 PR tree-optimization/68953
24134 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
24135 first to last subscript.
24137 2016-04-09 Jakub Jelinek <jakub@redhat.com>
24139 PR tree-optimization/70586
24140 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
24143 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
24147 PR tree-optimization/70373
24148 PR middle-end/70533
24149 PR middle-end/70534
24150 PR middle-end/70535
24151 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
24152 clauses for acc parallel reductions as necessary. Error on those
24154 * omp-low.c (scan_sharing_clauses): Don't install variables which
24155 are used in acc parallel reductions.
24156 (lower_rec_input_clauses): Remove dead code.
24157 (lower_oacc_reductions): Add support for reference reductions.
24158 (lower_reduction_clauses): Remove dead code.
24159 (lower_omp_target): Don't remap variables appearing in acc parallel
24161 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
24163 2016-04-08 Jakub Jelinek <jakub@redhat.com>
24165 PR middle-end/70593
24166 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
24167 with multiple SSA_NAME defs, force the outputs other than first
24168 to be live before calling live_track_process_def on each output.
24170 PR rtl-optimization/70574
24171 * fwprop.c (forward_propagate_and_simplify): Don't add
24172 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
24173 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
24174 paradoxical subregs within *loc.
24176 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
24178 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
24179 -ftree-parallelize-loops={0,1}.
24180 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
24181 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
24182 * config/ia64/hpux.h (LIB_SPEC): Likewise.
24183 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
24184 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
24186 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
24189 * asan.c (instrument_derefs): If we get unknown location, extract it
24190 with EXPR_LOCATION.
24191 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
24193 2016-04-08 Tom de Vries <tom@codesourcery.com>
24195 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
24196 implicit firstprivate clause.
24198 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24201 * config/arm/thumb2.md (tst + branch-> lsls + branch
24202 peephole below *orsi_not_shiftsi_si): Require that condition
24203 register is dead after the peephole.
24204 (second peephole after the above): Likewise.
24206 2016-04-08 Alan Modra <amodra@gmail.com>
24209 * builtins.c (fold_builtin_classify): For IBM extended precision,
24210 look at just the high-order double to test for NaN.
24211 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
24212 test just the high double for Inf but both doubles for subnormal
24215 2016-04-07 Jakub Jelinek <jakub@redhat.com>
24217 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
24218 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
24219 node->simdclone->mask_mode != VOIDmode masks.
24220 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
24221 earlier, use it instead of node->simdclone.
24222 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
24223 Set clonei->mask_mode.
24225 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
24228 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
24229 Pass it through to cp_parser_already_scoped_statement.
24230 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
24231 it through to cp_parser_statement.
24232 (cp_parser_statement): Pass IF_P through to
24233 cp_parser_iteration_statement.
24234 (cp_parser_pragma): Adjust call to
24235 cp_parser_iteration_statement.
24237 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
24240 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
24241 resolve a future -Wparentheses warning.
24242 * omp-low.c (scan_sharing_clauses): Likewise.
24243 * tree-parloops.c (eliminate_local_variables): Likewise.
24245 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
24247 PR rtl-optimization/70398
24248 * lra-constraints.c (process_address_1): Check zero scale and code
24249 for reloading with zero scale.
24251 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
24253 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
24254 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
24256 2016-04-06 Jakub Jelinek <jakub@redhat.com>
24258 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
24259 Add support for AVX512F clones, include them by default for
24260 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
24261 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
24264 PR middle-end/70550
24265 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
24266 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
24267 firstprivate clauses.
24268 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
24269 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
24270 (lower_omp_target): Set TREE_NO_WARNING for
24271 non-addressable possibly uninitialized vars which are copied into
24272 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
24274 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
24276 * config/pa/predicates.md (integer_store_memory_operand): Accept
24277 REG+D operands with a large offset when reload_in_progress is true.
24278 (floating_point_store_memory_operand): Likewise.
24280 2016-04-05 Jakub Jelinek <jakub@redhat.com>
24283 * match.pd (nested int casts): Limit to GIMPLE.
24285 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
24288 * ipa-devirt.c (maybe_record_node): Fix comment; use
24289 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
24291 2016-04-05 Jakub Jelinek <jakub@redhat.com>
24293 PR rtl-optimization/70542
24294 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
24295 if there are any uses other than insn or debug insns.
24297 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
24298 Jakub Jelinek <jakub@redhat.com>
24300 PR tree-optimization/70509
24301 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
24302 Shift HOST_WIDE_INT_1U instead of 1.
24304 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
24306 PR tree-optimization/70509
24307 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
24308 of the vector base type for index.
24310 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
24313 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
24315 2016-04-05 Richard Biener <rguenther@suse.de>
24317 PR tree-optimization/70526
24318 * tree-sra.c (build_ref_for_offset): Use prev_base to
24319 extract the alias pointer type.
24321 2016-04-05 Richard Biener <rguenther@suse.de>
24323 * dse.c (struct store_info): Remove alias_set member.
24324 (struct read_info_type): Likewise.
24325 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
24326 spill_deleted, clear_alias_set_lookup): Remove.
24327 (get_group_info): Remove dead base == NULL_RTX case.
24328 (dse_step0): Remove initialization of removed variables.
24329 (delete_dead_store_insn): Reomve alias set dumping.
24330 (free_read_records): Remove alias_set handling.
24331 (canon_address): Remove alias_set_out parameter.
24332 (record_store): Remove spill_alias_set, it's always zero.
24333 (check_mem_read_rtx): Likewise.
24334 (dse_step2): Rename from ...
24335 (dse_step2_nospill): ... this. Adjust.
24336 (scan_stores): Rename from ...
24337 (scan_stores_nospill): ... this.
24338 (scan_reads): Rename from ...
24339 (scan_reads_nospill): ... this.
24340 (scan_stores_spill, scan_reads_spill): Remove.
24341 (dse_step3_scan): Remove for_spills argument which is always false.
24342 (dse_step3): Likewise.
24343 (dse_step5): Rename from ...
24344 (dse_step5_nospill): ... this. Remove alias_set handling.
24345 (rest_of_handle_dse): Adjust.
24347 2016-04-05 Jakub Jelinek <jakub@redhat.com>
24350 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
24351 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
24352 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
24353 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
24355 2016-04-05 Richard Biener <rguenther@suse.de>
24357 PR middle-end/70499
24358 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
24359 non-register type temporaries into SSA.
24361 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
24364 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
24365 calls when sanitizing.
24366 (possible_polymorphic_call_target_p): Fix formatting.
24368 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24369 Jakub Jelinek <jakub@redhat.com>
24371 PR middle-end/70457
24372 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
24373 to ensure a call statement is compatible with a built-in's
24375 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
24378 2016-04-04 Richard Biener <rguenther@suse.de>
24380 PR rtl-optimization/70484
24381 * rtl.h (canon_output_dependence): Declare.
24382 * alias.c (canon_output_dependence): New function.
24383 * dse.c (record_store): Use canon_output_dependence rather
24384 than canon_true_dependence.
24386 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
24389 * cgraph.h (symtab_node::copy_visibility_from): New function.
24390 * symtab.c (symtab_node::copy_visibility_from): New function.
24391 * ipa-visibility.c (optimize_weakref): New function.
24392 (function_and_variable_visibility): Use it.
24394 2016-04-04 Martin Liska <mliska@suse.cz>
24397 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
24398 value that is really in range handled by SBR instruction.
24399 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
24400 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
24401 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
24403 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
24407 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
24408 set, but not for SP_REG operands.
24410 2016-04-02 Martin Sebor <msebor@redhat.com>
24413 * fold-const.c (maybe_nonzero_address): New function.
24414 (fold_comparison): Call it. Fold equality and relational
24415 expressions involving null pointers.
24416 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
24418 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
24420 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
24421 the "Y" constraint (scalar FP 0.0 immediate).
24423 * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
24424 Add the "const_double" to the list of operand constraints.
24426 2016-04-01 Jakub Jelinek <jakub@redhat.com>
24428 PR rtl-optimization/70467
24429 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
24430 If low word of the last operand is 0, just emit addition/subtraction
24433 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24436 * config/s390/s390.c (s390_expand_insv): Check for everything
24437 constant instead of just VOIDmode stuff.
24439 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24442 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
24444 2016-04-01 Nathan Sidwell <nathan@acm.org>
24446 * tree.def (TRY_CATCH_EXPR): Correct documentation.
24448 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
24450 PR rtl-optimization/70461
24451 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
24454 2016-03-31 Martin Liska <mliska@suse.cz>
24457 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
24458 a tree value or an immediate integer value to a buffer
24459 that is eventually copied to a BRIG section.
24460 (emit_immediate_operand): Call the function here.
24461 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
24462 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
24463 of class' fields that are removed.
24464 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
24465 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
24466 m_brig_repr_size fields.
24468 2016-03-31 Martin Liska <mliska@suse.cz>
24471 * hsa-gen.c (hsa_function_representation::update_dominance): New
24473 (convert_addr_to_flat_segment): Likewise.
24474 (gen_hsa_memory_set): New alignment argument.
24475 (gen_hsa_ctor_assignment): Likewise.
24476 (gen_hsa_insns_for_single_assignment): Provide alignment
24477 to gen_hsa_ctor_assignment.
24478 (gen_hsa_insns_for_direct_call): Add new argument.
24479 (expand_lhs_of_string_op): New function.
24480 (expand_string_operation_builtin): Likewise.
24481 (expand_memory_copy): New function.
24482 (expand_memory_set): New function.
24483 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
24484 (convert_switch_statements): Change signature.
24485 (generate_hsa): Use a return value of the function.
24486 (pass_gen_hsail::execute): Do not call
24487 convert_switch_statements here.
24488 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
24489 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
24490 (hsa_function_representation::update_dominance): New function.
24492 2016-03-31 Martin Liska <mliska@suse.cz>
24495 * hsa-brig.c (emit_directive_variable): Emit alignment
24496 according to hsa_symbol::m_align.
24497 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
24498 (dump_hsa_symbol): Dump alignment of HSA symbols.
24499 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
24500 (gen_hsa_addr_with_align): New function.
24501 (hsa_bitmemref_alignment): Use newly added function.
24502 (gen_hsa_insns_for_load): Likewise.
24503 (gen_hsa_insns_for_store): Likewise.
24504 (gen_hsa_memory_copy): New argument added.
24505 (gen_hsa_insns_for_single_assignment): Respect
24506 alignment for assignments processed via gen_hsa_memory_copy.
24507 (gen_hsa_insns_for_direct_call): Likewise.
24508 (gen_hsa_insns_for_return): Likewise.
24509 (gen_function_def_parameters): Set default alignment.
24510 * hsa.c (hsa_object_alignment): New function.
24511 (hsa_byte_alignment): Pasted function.
24512 * hsa.h (hsa_symbol::m_align): New field.
24514 2016-03-31 Bin Cheng <bin.cheng@arm.com>
24516 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
24517 scratch field for goto case.
24519 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
24521 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
24523 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
24526 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
24527 (scalar_chain::convert_insn): Call convert_op for reg
24528 moves to handle undefined registers.
24530 2016-03-31 Nathan Sidwell <nathan@acm.org>
24533 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
24534 Assert we don't want to move backwards.
24536 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
24539 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
24541 2016-03-31 Jakub Jelinek <jakub@redhat.com>
24543 PR rtl-optimization/70460
24544 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
24545 with operand from REG_LABEL_OPERAND, instead substitute
24546 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
24547 Don't do anything for REG_NON_LOCAL_GOTO jumps.
24549 2016-03-31 Martin Liska <mliska@suse.cz>
24551 * passes.c (execute_one_pass): Do not call
24552 todo_after for a discarded function.
24554 2016-03-31 Bin Cheng <bin.cheng@arm.com>
24556 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
24557 (no_cost, infinite_cost): Initialize the new field.
24558 (get_computation_cost_at): Record setup cost.
24559 (determine_use_iv_cost_address): Skip cost computation for sub
24560 uses if we can estimate it without losing accuracy.
24562 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
24564 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
24566 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
24567 max_loop_iterations_int.
24568 (tree_unswitch_outer_loop): Likewise.
24569 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
24570 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
24572 2016-03-30 Richard Biener <rguenther@suse.de>
24574 PR middle-end/70450
24575 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
24577 2016-03-30 Jakub Jelinek <jakub@redhat.com>
24580 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
24581 in gen_blendm expander.
24583 2016-03-30 Nick Clifton <nickc@redhat.com>
24586 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
24587 case where we are already provided with an SImode SUBREG.
24589 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
24592 * config/i386/i386.c (ix86_expand_epilogue): Properly check
24593 conflict between DRAP register and __builtin_eh_return.
24595 2016-03-30 Michael Matz <matz@suse.de>
24596 Richard Biener <rguenther@suse.de>
24599 * ipa-polymorphic-call.c (struct type_change_info): Change
24600 speculative to an unsigned allowing to limit the work we do.
24601 (csftc_abort_walking_p): New inline function..
24602 (check_stmt_for_type_change): Limit the number of may-defs
24603 skipped for speculative devirtualization to
24604 max-speculative-devirt-maydefs.
24605 * params.def (max-speculative-devirt-maydefs): New param.
24606 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
24608 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
24611 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
24614 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
24616 PR tree-optimization/59124
24617 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
24618 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
24620 2016-03-29 Jeff Law <law@redhat.com>
24622 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
24624 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
24626 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
24629 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
24631 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
24632 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
24633 gcrt0.o if linking dynamically.
24635 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
24638 * ipa-devirt.c (methods_equal_p): New function.
24639 (compare_virtual_tables): Use it.
24640 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
24641 * cgraphclones.c (clone_function_name_1): Use
24642 symbol_table::symbol_suffix_separator.
24643 * coverage.c (build_var): Likewise.
24644 * symtab.c (symbol_table::symbol_suffix_separator): New.
24646 2016-03-29 Jakub Jelinek <jakub@redhat.com>
24648 PR rtl-optimization/70429
24649 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
24650 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
24651 mode != result_mode.
24654 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
24656 PR tree-optimization/70405
24657 * ssa-iterators.h (num_imm_uses): Add missing braces.
24659 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
24661 PR rtl-optimization/68695
24662 * ira-color.c (allocno_copy_cost_saving): New.
24663 (improve_allocation): Use it.
24665 2016-03-29 Richard Henderson <rth@redhat.com>
24667 PR middle-end/70355
24668 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
24670 2016-03-29 Richard Biener <rguenther@suse.de>
24672 PR middle-end/70424
24673 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
24674 use alignment returned by get_pointer_alignment_1 if it is
24675 bigger than BITS_PER_UNIT.
24676 * builtins.c (get_pointer_alignment_1): Do not return true
24677 for alignment extracted from SSA info.
24679 2016-03-28 James Bowman <james.bowman@ftdichip.com>
24681 * config/ft32/ft32.opt (mnodiv): New.
24682 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
24683 * doc/invoke.texi (FT32 Options -mnodiv): New.
24685 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
24688 * config/i386/i386.md (define_split, andn): Fix modes.
24690 2016-03-26 Richard Biener <rguenther@suse.de>
24691 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
24694 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
24696 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
24697 as 2nd argument to cl_optimization_restore().
24699 2016-03-25 Richard Henderson <rth@redhat.com>
24702 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
24703 * config/aarch64/aarch64-protos.h: Declare it.
24704 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
24706 2016-03-25 Alan Modra <amodra@gmail.com>
24709 * config/rs6000/constraints.md (j): Simplify.
24710 * config/rs6000/predicates.md (easy_fp_constant): Exclude
24712 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
24713 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
24714 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
24715 in all constraint alternatives.
24716 (movtd_64bit_nodm): Delete "j" constraint alternative.
24718 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
24720 * tree-ssa-propagate.c: Enhance docs for
24721 SSA_PROP_NOT_INTERESTING.
24723 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
24725 * doc/extend.texi: Fix typo in documentation to pure attribute.
24727 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
24730 * config/pa/pa.md (bswapdi2): Use a scratch register.
24732 2016-03-24 Richard Henderson <rth@redhat.com>
24734 PR middle-end/69845
24735 * fold-const.c (extract_muldiv_1): Correct test for multiplication
24738 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
24740 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
24741 using ix86_expand_binary_operator instead of gen_andsi3.
24743 2016-03-24 Richard Biener <rguenther@suse.de>
24745 PR tree-optimization/70396
24746 * tree-vect-stmts.c (vectorizable_comparison): Use
24747 get_vectype_for_scalar_type.
24749 2016-03-24 Richard Biener <rguenther@suse.de>
24751 PR middle-end/70370
24752 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
24753 with register bases.
24755 2016-03-24 Richard Biener <rguenther@suse.de>
24757 PR tree-optimization/70372
24758 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
24759 build_all_ones_cst to also handle vector types correctly.
24761 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
24764 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
24767 2016-03-23 Marek Polacek <polacek@redhat.com>
24770 * doc/invoke.texi: Document -Wignored-attributes.
24772 2016-03-23 Bin Cheng <bin.cheng@arm.com>
24774 PR tree-optimization/69042
24775 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
24776 parameter from 30 to 40.
24778 2016-03-23 Bin Cheng <bin.cheng@arm.com>
24780 PR tree-optimization/69042
24781 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
24782 for use with constant offset stripped in base.
24784 2016-03-23 Richard Biener <rguenther@suse.de>
24786 PR middle-end/70251
24787 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
24788 mode compatibility check.
24789 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
24791 2016-03-23 Jeff Law <law@redhat.com>
24793 PR tree-optimization/64058
24794 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
24796 (struct ssa_conflicts): Move up earlier in the file.
24797 (conflicts_, var_map_): New static variables.
24798 (initialize_conflict_count): New function to initialize the
24799 CONFLICT_COUNT field for each conflict pair.
24800 (compare_pairs): Lazily initialize the conflict count and use it
24801 as the first tie-breaker.
24802 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
24803 and wipe conflicts_ and map_ around the call to qsort. Remove
24804 special case for 2 coalesce pairs.
24805 * bitmap.c (bitmap_count_unique_bits): New function.
24806 (bitmap_count_bits_in_word): New function, extracted from
24808 (bitmap_count_bits): Use bitmap_count_bits_in_word.
24809 * bitmap.h (bitmap_count_unique_bits): Declare it.
24811 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
24814 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
24815 transparent alias chain for decl assembler name.
24816 * config/sol2.c (solaris_assemble_visibility): Likewise.
24818 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24820 * config/arm/arm1020e.md (1020call_op): Reduce reservation
24822 (v10_fdivs): Likewise.
24823 (v10_fdivd): Likewise.
24825 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24828 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
24829 to not call fclose twice on file.
24831 2016-03-23 Jakub Jelinek <jakub@redhat.com>
24833 PR tree-optimization/70354
24834 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
24835 oprnd0 is wider than oprnd1 and there is a cast from the wider
24836 type to oprnd1, mask it with the mask of the narrower type.
24839 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
24840 Optimize TARGET_STV splitters, if high or low word of last argument
24843 2016-03-22 Jeff Law <law@redhat.com>
24846 tree-ssa-threadbackward.c
24847 (fsm_find_control_statement_thread_paths): Correctly distinguish
24848 between old style jump threads vs FSM jump threads.
24850 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
24853 * config/i386/i386.c (scalar_chain::convert_op): Support
24854 uninitialized register usage case.
24856 2016-03-22 Richard Biener <rguenther@suse.de>
24858 PR middle-end/70251
24859 * genmatch.c (gen_transform): Adjust last parameter to a three-state
24861 (capture::gen_transform): ... to change behavior when substituting
24862 a condition into cond or not-cond expr context.
24863 (dt_simplify::gen_1): Adjust.
24864 * gimple-match-head.c: Include gimplify.h for unshare_expr.
24865 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
24866 last change and instead change to
24867 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
24868 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
24870 2016-03-22 Anthony Green <green@moxielogic.com>
24872 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
24873 issue for moxiebox targets.
24874 (CC1PLUS_SPEC): Ditto.
24876 2016-03-22 Richard Biener <rguenther@suse.de>
24878 PR middle-end/70333
24879 * fold-const.c (extract_muldiv_1): Properly perform multiplication
24882 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
24884 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
24886 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
24889 * config/i386/i386.c (def_builtin): Handle
24890 OPTION_MASK_ISA_AVX512VL to be and-ed with other
24892 (const struct builtin_description bdesc_special_args[]):
24893 Remove duplicate ISA bits.
24895 2016-03-22 Jakub Jelinek <jakub@redhat.com>
24898 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
24899 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
24900 in a way that works also for AVX512BW.
24903 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
24904 instead of source if operands[1] is xmm16 and above and
24905 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
24906 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
24909 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
24910 on assign if (*from_p) is a comparison, set it to
24911 TREE_NO_WARNING (*from_p).
24913 2016-03-21 Jakub Jelinek <jakub@redhat.com>
24915 PR middle-end/70326
24916 * lra.c (restore_scratches): Ignore deleted insns.
24918 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
24919 Jakub Jelinek <jakub@redhat.com>
24921 PR tree-optimization/70317
24922 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
24925 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
24928 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
24929 of ix86_expand_move.
24931 (movti): Use general_operand for operand 1 predicate.
24933 2016-03-21 Martin Liska <mliska@suse.cz>
24935 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
24937 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
24939 2016-03-21 Martin Liska <mliska@suse.cz>
24942 * ipa-icf.c (sem_function::parse): Skip static
24943 constructors and destructors.
24945 2016-03-21 Jakub Jelinek <jakub@redhat.com>
24948 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
24949 function-like macro, peek following token(s) if it is followed
24950 by CPP_OPEN_PAREN token with optional padding in between, and
24951 if not, don't treat it like a macro.
24953 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
24954 Alexander Monakov <amonakov@ispras.ru>
24956 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
24957 for the stabs debug format.
24959 2016-03-21 Richard Biener <rguenther@suse.de>
24961 PR tree-optimization/70310
24962 * tree-vect-generic.c (expand_vector_condition): Fold the built
24965 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
24968 * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
24969 Block third alternative for AVX-512VL target,
24971 2016-03-21 Martin Liska <mliska@suse.cz>
24974 * hsa-brig.c (emit_function_directives): Mark unemitted
24975 global variables for emission.
24976 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
24977 (get_symbol_for_decl): Likewise.
24978 * hsa.h (struct hsa_symbol): New flag.
24980 2016-03-21 Richard Biener <rguenther@suse.de>
24982 PR tree-optimization/70288
24983 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
24984 we do not estimate unsimplified all-constant conditionals or
24985 switches as optimized away.
24987 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
24989 PR rtl-optimization/69102
24990 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
24991 when we have a readonly dependency context.
24993 2016-03-18 Jeff Law <law@redhat.com>
24995 PR rtl-optimization/70263
24996 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
24997 (update_equiv_regs): When trying to move a store to after the insn
24998 that sets the source of the store, make sure the store occurs after
24999 the insn that sets the source of the store. When successful note
25000 the REG_EQUIV note created in the dump file.
25002 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
25003 Bernd Schmidt <bschmidt@redhat.com>
25005 * doc/extend.texi: Document more potential problems with basic asms.
25007 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
25009 PR rtl-optimization/70278
25010 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
25013 2016-03-18 Jason Merrill <jason@redhat.com>
25015 * calls.c (load_register_parameters): Fix zero size sibcall logic.
25017 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
25019 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
25020 values to 128b regs.
25022 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
25024 PR tree-optimization/70252
25025 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
25026 boolean vector has a proper number of elements.
25027 (supportable_narrowing_operation): Likewise.
25029 2016-03-18 Tom de Vries <tom@codesourcery.com>
25032 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
25034 2016-03-18 Jakub Jelinek <jakub@redhat.com>
25036 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
25037 instead of replace_rtx for DEBUG_INSNs.
25039 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
25041 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
25042 load type reservations.
25044 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
25047 * config/pa/constraints.md: Revert 2015-02-13 change. Use
25048 define_constraint for "Q" and "T" constraints.
25050 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
25052 Tweak the pipeline model for Exynos M1
25054 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
25057 2016-03-17 David Malcolm <dmalcolm@redhat.com>
25060 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
25061 where one or both locations aren't within a line_map.
25063 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
25066 * opts.c (finish_options): Don't set flag_pie to the default if
25067 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
25070 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
25072 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
25073 true as ALL_REGS argument to replace_rtx.
25075 2016-03-17 Richard Biener <rguenther@suse.de>
25078 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
25081 2016-03-17 Jakub Jelinek <jakub@redhat.com>
25084 * rtl.h (replace_rtx): Add ALL_REGS argument.
25085 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
25086 equality and assert mode is the same, instead of just rtx pointer
25088 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
25089 true as ALL_REGS argument to replace_rtx.
25091 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
25093 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
25094 for boolean vector with vector mode only.
25095 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
25097 2016-03-17 Nick Clifton <nickc@redhat.com>
25100 * config/rx/rx.c (rx_print_integer): Print negative constants in
25103 2016-03-17 Jakub Jelinek <jakub@redhat.com>
25106 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
25108 2016-03-16 Richard Henderson <rth@redhat.com>
25109 Richard Biener <rguenth@suse.de>
25111 PR middle-end/70240
25112 PR middle-end/68215
25114 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
25115 first operand as is_gimple_condexpr.
25117 PR middle-end/70240
25118 PR middle-end/68215
25120 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
25121 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
25122 Do not gimplify the result.
25123 (do_unop): Adjust call to tree_vec_extract.
25124 (do_binop): Likewise.
25125 (do_compare): Likewise.
25126 (do_plus_minus): Likewise.
25127 (do_negate): Likewise.
25128 (expand_vector_condition): Likewise.
25129 (do_cond): Likewise.
25131 2016-03-16 Richard Henderson <rth@redhat.com>
25134 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
25135 (aarch64_classify_address): Use it.
25136 (aarch64_legitimize_address): Force all subexpressions of PLUS
25137 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
25139 2016-03-16 Jakub Jelinek <jakub@redhat.com>
25140 Richard Biener <rguenth@suse.de>
25143 * rtlanal.c (replace_rtx): For REG, if from is a REG,
25144 return to even if only REGNO is equal, and assert
25147 2016-03-11 Jeff Law <law@redhat.com>
25149 PR rtl-optimization/70224
25150 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
25152 2016-03-16 Richard Henderson <rth@redhat.com>
25154 PR middle-end/70199
25155 * function.h (struct function): Add has_forced_label_in_static.
25156 * gimplify.c (force_labels_r): Set it.
25157 * lto-streamer-in.c (input_struct_function_base): Read it.
25158 * lto-streamer-out.c (output_struct_function_base): Write it.
25159 * tree-inline.c (has_label_address_in_static_1): Remove.
25160 (copy_forbidden): Remove fndecl parameter; test
25161 has_forced_label_in_static.
25162 (inline_forbidden_p): Update call to copy_forbidden.
25163 (tree_versionable_function_p): Likewise.
25164 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
25165 (chkp_versioning): Likewise.
25166 * tree-inline.h (copy_forbidden): Update decl.
25168 2016-03-16 Marek Polacek <polacek@redhat.com>
25171 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
25172 function being thunked if the result type doesn't have fixed size.
25173 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
25174 doesn't have fixed size.
25176 2016-03-16 Bin Cheng <bin.cheng@arm.com>
25178 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
25179 reporting malformed loop nest.
25181 2016-03-16 Tom de Vries <tom@codesourcery.com>
25184 * ipa-devirt.c (possible_polymorphic_call_targets): Move
25185 nodes.length () == 1 test to before first nodes[0] access.
25187 2016-03-16 Tom de Vries <tom@codesourcery.com>
25189 PR tree-optimization/68715
25190 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
25191 single_pred_p test.
25193 2016-03-16 Tom de Vries <tom@codesourcery.com>
25195 PR tree-optimization/68809
25196 * graphite-scop-detection.c (same_close_phi_node): Test if result types
25199 2016-03-16 Carlos O'Donell <carlos@redhat.com>
25200 Sandra Loosemore <sandra@codesourcery.com>
25202 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
25203 on leaf attribute. Mention ELF interposition problems.
25205 2016-03-16 Alan Modra <amodra@gmail.com>
25207 PR rtl-optimization/69195
25208 PR rtl-optimization/47992
25209 * ira.c (indirect_jump_optimize): Ignore artificial defs.
25212 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
25215 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
25217 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
25219 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
25221 2016-03-15 Jakub Jelinek <jakub@redhat.com>
25223 PR rtl-optimization/70222
25224 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
25225 optimization if mode is different from result_mode, queue up masking
25226 of the result in outer_op. Formatting fix.
25228 PR middle-end/70239
25229 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
25232 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
25234 PR rtl-optimization/69032
25235 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
25236 looping backwards over basic block insns.
25238 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
25241 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
25242 to non-speculative when propagating trap bits.
25244 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
25246 PR rtl-optimization/63384
25247 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
25248 DEBUG_INSN_P insns.
25250 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
25253 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
25254 factored out from ...
25255 (sched_analyze_insn): ... here.
25256 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
25257 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
25258 get_implicit_reg_pending_clobbers in it.
25259 (setup_id_reg_sets): Use setup_id_implicit_regs.
25260 (deps_init_id): Ditto.
25262 2016-03-15 Tom de Vries <tom@codesourcery.com>
25265 * cgraph.c (cgraph_node::get_body): Save, reset and restore
25267 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
25268 execute_function_dump.
25269 (execute_one_pass): Don't dump function if it will be dumped after ipa
25272 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
25274 * genrecog.c (match_pattern_2): If pred is NULL don't call
25275 safe_predicate_mode on it.
25277 2016-03-14 Jakub Jelinek <jakub@redhat.com>
25279 PR middle-end/70219
25280 * lra-constraints.c (delete_move_and_clobber): Change assertion
25281 to also allow dregno == 0.
25283 2016-03-14 Richard Henderson <rth@redhat.com>
25286 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
25287 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
25288 (reassociate_bb): Use optimize_vec_cond_expr; avoid
25289 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
25292 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
25295 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
25297 (lra_create_live_ranges_1): initialize hard register biggest_mode to
25299 * lra-constraints.c (split_reg): For hard regs, try to find the
25300 biggest single-register mode used in the function.
25302 2016-03-14 Richard Biener <rguenther@suse.de>
25304 PR tree-optimization/56365
25305 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
25306 constants to compare against.
25308 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
25311 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
25312 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
25313 (define_split for the GPR case): Use int_reg_operand instead of
25314 gpc_reg_operand for the output.
25316 2016-03-14 Tom de Vries <tom@codesourcery.com>
25318 PR tree-optimization/70045
25319 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
25320 create_empty_if_region_on_edge argument.
25322 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
25324 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
25325 (STACK_CHECK_PROTECT): Likewise.
25326 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
25327 (STACK_CHECK_PROTECT): Likewise.
25328 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
25329 (STACK_CHECK_PROTECT): Likewise.
25330 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
25331 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
25332 (STACK_CHECK_PROTECT): Likewise.
25334 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
25336 PR rtl-optimization/69307
25337 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
25338 registers in modes that span more than one register.
25340 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
25343 * lra-constraints.c (delete_move_and_clobber): New.
25344 (remove_inheritance_pseudos): Use it.
25346 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
25349 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
25350 the libcall is LCT_THROW.
25351 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
25352 for the checking routine.
25354 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
25357 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
25358 optimization if we have direct move.
25359 (roundu32<mode>2_fprs): Likewise.
25361 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
25364 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
25366 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
25367 Arguments swapped. All callers changed. Take reg_renumber into
25368 account, and Calculate and compare register ranges for hard regs.
25370 2016-03-11 Jeff Law <law@redhat.com>
25372 PR tree-optimization/70190
25373 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
25374 Handle cases where we can not extract the taken edge, even though we
25375 found a constant value.
25377 PR tree-optimization/64058
25378 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
25379 (num_coalesce_pairs): Move up earlier in file.
25380 (find_coalesce_pair): Initialize the INDEX field for each pair
25382 (compare_pairs): No longer sort on the elements in each pair.
25383 Instead break ties with the index of the coalesce pair.
25385 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25388 * config/aarch64/aarch64-protos.h
25389 (aarch64_save_restore_target_globals): New prototype.
25390 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
25391 Call the above when popping pragma.
25392 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
25394 (aarch64_set_current_function): Rewrite using the above.
25396 2016-03-11 Jakub Jelinek <jakub@redhat.com>
25398 PR tree-optimization/70177
25399 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
25400 (extract_ops_from_tree): ... this. In the 2 argument
25401 overload remove _1 suffix.
25402 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
25403 (extract_ops_from_tree): ... this.
25404 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
25406 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
25407 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
25408 extract_ops_from_tree instead of 2 operand one.
25410 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
25412 PR tree-optimization/70013
25413 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
25414 for constant-pool entries.
25416 2016-03-11 Jakub Jelinek <jakub@redhat.com>
25418 PR rtl-optimization/70174
25419 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
25420 followed by gen_lowpart on force_reg instead of just gen_lowpart.
25422 PR tree-optimization/70169
25423 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
25424 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
25427 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
25428 Jakub Jelinek <jakub@redhat.com>
25431 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
25432 of uninitialized values.
25434 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25436 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
25438 ("*trunctddd2"): New pattern definition.
25439 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
25442 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25444 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
25445 definitions for BFP and DFP rounding modes.
25446 ("fixuns_truncdddi2", "fixuns_trunctddi2")
25447 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
25448 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
25449 ("fix_trunctf<mode>2"): Use the new constants instead of magic
25452 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25454 * config/s390/constraints.md: Adjust comment.
25455 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
25456 s390_decompose_addrstyle_without_index.
25457 * config/s390/predicates.md (shift_count_or_setmem_operand):
25458 Rename to setmem_operand.
25459 * config/s390/s390-protos.h
25460 (s390_decompose_shift_count): Rename to
25461 s390_decompose_addrstyle_without_index.
25462 * config/s390/s390.c (s390_decompose_shift_count)
25463 (s390_mem_constraint, print_shift_count_operand)
25464 (print_operand_address, print_operand): Rename
25465 s390_decompose_shift_count to
25466 s390_decompose_addrstyle_without_index and rename
25467 print_shift_count_operand to print_addrstyle_operand troughout the
25469 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
25470 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
25471 Rename shift_count_or_setmem_operand to setmem_operand.
25472 * config/s390/vx-builtins.md ("vec_insert<mode>")
25473 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
25476 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25479 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
25480 Handle overlapping retval and newval.
25482 2016-03-10 Nick Clifton <nickc@redhat.com>
25485 * config/aarch64/aarch64.c
25486 (aarch64_override_options_after_change_1): When forcing
25487 flag_omit_frame_pointer to be true, use a special value that can
25488 be detected if this function is called again, thus preventing
25489 flag_omit_leaf_frame_pointer from being forced to be false.
25491 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25493 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
25494 Set x_flag_omit_leaf_frame_pointer when handling
25495 -momit-leaf-frame-pointer.
25497 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
25500 * cgraph.c (cgraph_node::dump): Dump split_part and
25501 indirect_call_target.
25502 * cgraph.h (cgraph_node): Add indirect_call_target flag.
25503 * ipa.c (has_addr_references_p): Cleanup.
25504 (is_indirect_call_target_p): New.
25505 (walk_polymorphic_call_targets): Do not mark virtuals that may be
25506 called indirectly as local.
25507 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
25509 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
25512 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
25513 on cxa_pure_virtual.
25515 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
25518 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
25520 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
25523 * tree.c (need_assembler_name_p): Only record main variant type names.
25525 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
25528 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
25529 Always define to 0 or 1.
25530 (TARGET_FIX_ERR_A53_843419): New macro.
25531 * config/aarch64/aarch64-elf-raw.h
25532 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
25533 * config/aarch64/aarch64-linux.h: Likewise.
25534 * config/aarch64/aarch64.c
25535 (aarch64_override_options_after_change_1): Do not default
25536 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
25538 (aarch64_attributes): Handle fix-cortex-a53-843419.
25539 (aarch64_can_inline_p): Likewise.
25540 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
25542 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
25543 Jakub Jelinek <jakub@redhat.com>
25545 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
25546 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
25547 DECL_COMMONS if flag_unconstrained_commons is set.
25548 * tree-dfa.c (get_ref_base_and_extent): Likewise.
25549 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
25550 (funconstrained-commons): Document.
25552 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
25554 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
25555 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
25557 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
25559 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
25560 has a proper number of elements.
25562 2016-03-10 Alan Modra <amodra@gmail.com>
25564 PR rtl-optimization/69195
25565 PR rtl-optimization/47992
25566 * ira.c (recorded_label_ref): Delete.
25567 (update_equiv_regs): Return void.
25568 (indirect_jump_optimize): New function.
25569 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
25570 before regstat_compute_ri. Don't rebuild_jump_labels here.
25571 Delete update_regstat.
25573 2016-03-10 Richard Biener <rguenther@suse.de>
25575 PR tree-optimization/70128
25576 * tree-ssa-structalias.c (set_uids_in_ptset): Set
25577 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
25579 2016-03-09 Jakub Jelinek <jakub@redhat.com>
25581 PR tree-optimization/70152
25582 * tree-sra.c (replace_removed_params_ssa_names): Copy over
25583 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
25586 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
25587 instead of gen_sse2_loadlpd.
25588 * config/i386/sse.md (*vec_concatv2df): Rename to...
25589 (vec_concatv2df): ... this.
25591 PR tree-optimization/70127
25592 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
25594 2016-03-09 David Malcolm <dmalcolm@redhat.com>
25598 * diagnostic-show-locus.c (compatible_locations_p): New function.
25599 (layout::layout): Sanitize ranges using compatible_locations_p.
25601 2016-03-09 David Malcolm <dmalcolm@redhat.com>
25605 * diagnostic-show-locus.c (layout_range::layout_range): Replace
25606 location_range param with three const expanded_locations * and a
25608 (layout::layout): Replace call to
25609 rich_location::lazily_expand_location with get_expanded_location.
25610 Extract the range and perform location expansion here, passing
25611 the results to the layout_range ctor.
25612 * diagnostic.c (source_range::debug): Delete.
25613 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
25614 of rich_location::get_expanded_location.
25615 * gcc-rich-location.c (get_range_for_expr): Delete.
25616 (gcc_rich_location::add_expr): Reimplement to avoid the
25617 rich_location::add_range overload that took a location_range,
25618 passing a location_t instead.
25620 2016-03-09 Richard Biener <rguenther@suse.de>
25621 Jakub Jelinek <jakub@redhat.com>
25623 PR tree-optimization/70138
25624 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
25625 Also skip vect_double_reduction_def.
25627 2016-03-09 Jakub Jelinek <jakub@redhat.com>
25630 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
25631 if the operand is "m".
25633 2016-03-09 Nathan Sidwell <nathan@acm.org>
25635 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
25637 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
25639 * config/i386/i386.c (processor_target_table): Fix cost table
25640 intialization order for znver1.
25642 2016-03-08 Jakub Jelinek <jakub@redhat.com>
25644 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
25645 - becuase -> because.
25646 * ipa-reference.c (ignore_module_statics): Likewise.
25647 * cgraph.c (cgraph_node::get_body): Likewise.
25648 * ipa-inline.c (early_inliner): Likewise.
25649 * ipa-devirt.c (types_same_for_odr): Likewise.
25650 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
25651 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
25653 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25655 * tree-ssa-math-opts.c: Fix typo in comment.
25657 2016-03-08 Jakub Jelinek <jakub@redhat.com>
25660 * config/i386/i386.c (scalar_chain::make_vector_copies,
25661 scalar_chain::convert_reg): Call end_sequence in between
25662 get_insns and emit_conversion_insns rather than after both
25665 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
25668 * config/i386/i386.h (machine_function): Add
25669 pc_thunk_call_expanded flag.
25670 (ix86_pc_thunk_call_expanded): New define.
25671 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
25672 (*set_got): Rename insn pattern from set_got.
25673 (*set_got_labelled): Rename inst pattern from set_got_labelled.
25674 * config/i386/i386.c (ix86_compute_frame_layout): Use
25675 ix86_pc_thunk_call_expanded to prevent red-zone.
25677 2016-03-07 Martin Jambor <mjambor@suse.cz>
25679 * hsa.h (hsa_get_ctor_statements): Declare.
25680 (hsa_get_dtor_statements): Likewise.
25681 (hsa_get_kernel_dispatch_type): Likewise.
25682 * hsa.c (hsa_get_ctor_statements): New function.
25683 (hsa_get_dtor_statements): Likewise.
25684 (hsa_get_kernel_dispatch_type): Likewise.
25685 * hsa-brig.c (hsa_cdtor_statements): Removed.
25686 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
25687 hsa_get_dtor_statements.
25688 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
25689 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
25691 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
25693 * config/arm/arm-cores.def (cortex-r8): New.
25694 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
25695 * config/arm/arm-tune.md: Likewise.
25696 * doc/invoke.texi: Add cortex-r8 to list of cpu values.
25698 2016-03-07 Martin Sebor <msebor@redhat.com>
25700 PR rtl-optimization/19705
25701 * doc/invoke.texi (Options That Control Optimization): Clarify
25702 -fno-branch-count-reg.
25704 2016-02-26 Richard Biener <rguenther@suse.de>
25705 Jeff Law <law@redhat.com>
25707 PR tree-optimization/69740
25708 * cfghooks.c (remove_edge): Request loop fixups if we delete
25709 an edge that might turn an irreducible loop into a natural
25711 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
25712 Move after definition of loops_state_clear.
25714 2016-03-07 Bin Cheng <bin.cheng@arm.com>
25716 PR rtl-optimization/69052
25717 * rtlanal.c (commutative_operand_precedence): Set higher precedence
25720 2016-03-07 Tom de Vries <tom@codesourcery.com>
25722 PR tree-optimization/70116
25723 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
25724 is_tm_ending stmts and ubsan/asan internal functions.
25725 (find_duplicate): Use it. Don't test is_tm_ending here.
25727 2016-03-07 Richard Biener <rguenther@suse.de>
25729 PR tree-optimization/70115
25730 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
25731 (propagate_constants_for_unrolling): Use replace_uses_by.
25733 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
25735 PR middle-end/69916
25736 * omp-low.c (struct oacc_loop): Add ifns.
25737 (new_oacc_loop_raw): Initialize it.
25738 (finish_oacc_loop): Clear mask & flags if no ifns.
25739 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
25740 (oacc_loop_xform_loop): Add ifns arg & adjust.
25741 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
25743 2016-03-07 Richard Henderson <rth@redhat.com>
25746 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
25747 (insert_value_copy_on_edge): Likewise.
25749 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25751 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
25753 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25756 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
25758 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
25760 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
25762 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
25764 Fix sseimul type attribute.
25765 * config/i386/znver1.md
25766 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
25767 znver1_sseimul_avx256_load) : Fix the type attribute.
25768 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
25769 pipe usage and latency.
25771 2016-03-05 Jakub Jelinek <jakub@redhat.com>
25774 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
25775 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
25778 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
25781 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
25783 PR rtl-optimization/69941
25784 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
25785 the reg share its mode.
25787 2016-03-04 Jeff Law <law@redhat.com>
25789 PR tree-optimization/69196
25790 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
25791 If the both SSA_NAMEs are anonymous, then consider them unassociated
25792 and include the PHI in the statement count.
25794 2016-03-05 Tom de Vries <tom@codesourcery.com>
25796 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
25797 construct in oacc routine. Check for oacc region in oacc routine.
25799 2016-03-04 Jakub Jelinek <jakub@redhat.com>
25802 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
25803 2016-02-22 changes, instead don't recurse if RECUR is already true.
25804 Don't change *dynamic_check if RECUR. Adjust recursive caller
25805 to pass true to the new argument.
25806 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
25809 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
25810 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
25812 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
25814 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
25816 PR rtl-optimization/57676
25817 * lra-assigns.c (lra_assign): Guard test for maximum iterations
25818 with flag_checking.
25820 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
25822 * tree-vect-patterns.c (search_type_for_mask): Handle
25823 comparison of booleans.
25825 2016-03-04 Jakub Jelinek <jakub@redhat.com>
25827 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
25831 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
25832 all other ops that have dw_val_class_die_ref operands,
25833 and DW_OP_GNU_entry_value.
25835 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25837 PR rtl-optimization/69904
25838 * config/arm/arm.c (arm_cannot_copy_insn_p):
25839 Return true for load-exclusive instructions.
25841 2016-03-03 Jakub Jelinek <jakub@redhat.com>
25844 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
25845 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
25846 the pattern no matter if it is used just by non-pattern, pattern
25848 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
25849 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
25850 oprnd1 def_stmt is in pattern, don't look through it.
25852 2016-03-03 Marek Polacek <polacek@redhat.com>
25854 PR middle-end/70050
25855 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
25857 2016-03-03 Martin Liska <mliska@suse.cz>
25859 PR tree-optimization/70043
25860 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
25861 previous statement if we see a debug statement.
25863 2016-03-03 Richard Biener <rguenther@suse.de>
25865 PR tree-optimization/55936
25866 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
25867 parameter and guard unsafe equivalence use.
25868 (vrp_evaluate_conditional_warnv_with_ops): Always use
25869 safe equivalences but not via the quadratic compare_names
25872 2016-03-03 Michael Collison <michael.collison@linaro.org>
25875 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
25876 for operand 1 to s_register_operand. Change predicate for operand
25877 2 to arm_not_immediate_operand.
25879 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
25881 * doc/tm.texi: Regenerated.
25883 2016-03-02 Richard Henderson <rth@redhat.com>
25886 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
25887 simplification when all args are positive non-fixed registers.
25889 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
25891 * target.def (lra_p): Specify that new ports should use LRA.
25893 2016-03-02 Jakub Jelinek <jakub@redhat.com>
25896 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
25897 gimplify_type_sizes the type they refer to.
25898 (omp_notice_variable): Handle reference vars to VLAs.
25899 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
25900 reference to VLA decls in the second pass instead of first pass.
25902 2016-03-02 Tom de Vries <tom@codesourcery.com>
25904 PR tree-optimization/68659
25905 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
25906 new_expr == NULL_TREE.
25907 (get_new_name): Handle ADDR_EXPR.
25909 2016-03-02 Bin Cheng <bin.cheng@arm.com>
25911 PR rtl-optimization/69052
25912 * loop-invariant.c (canonicalize_address): New function.
25913 (inv_can_prop_to_addr_use): Check validity of address expression
25914 which is canonicalized by above function.
25916 2016-03-02 Alan Modra <amodra@gmail.com>
25919 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
25922 2016-03-02 Jakub Jelinek <jakub@redhat.com>
25925 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
25926 (*movhi_internal): Put mask moves from and to memory separately
25927 from moves from/to GPRs.
25929 2016-03-02 Richard Biener <rguenther@suse.de>
25931 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
25932 GENERIC expressions in GIMPLE.
25934 2016-03-02 Richard Biener <rguenther@suse.de>
25936 * config/i386/i386.c (type_natural_mode): Fix typo.
25938 2016-03-02 Nick Clifton <nickc@redhat.com>
25940 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
25942 2016-03-02 Richard Biener <rguenther@suse.de>
25943 Uros Bizjak <ubizjak@gmail.com>
25946 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
25948 2016-03-02 Richard Biener <rguenther@suse.de>
25950 PR middle-end/67278
25951 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
25953 2016-03-02 Marek Polacek <polacek@redhat.com>
25956 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
25957 "is promoted to" warning.
25959 2016-03-01 DJ Delorie <dj@redhat.com>
25961 * config.gcc: Deprecate mep-*.
25963 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
25965 PR middle-end/70025
25966 * lra-constraints.c (regno_val_use_in): New.
25967 (match_reload): Use it instead of regno_use_in.
25969 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
25971 PR rtl-optimization/70007
25972 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
25973 references present in REG_EQUAL notes attached to non-SET patterns.
25975 2016-03-01 Jeff Law <law@redhat.com>
25977 PR tree-optimization/69196
25978 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
25979 Appropriately clamp the number of statements to copy when the
25980 thread path does not traverse a loop backedge.
25982 PR tree-optimization/69196
25983 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
25984 Do count some PHIs in the thread path against the insn count. Decrease
25985 final statement count by one as the control statement in the last
25986 block will get removed. Remove special cased code for handling PHIs
25989 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
25992 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
25993 asm dialect alternatives to explicit GOTPCREL calls.
25995 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
25998 * ira.c (do_reload): Issue warning for generic stack checking here...
25999 * reload1.c (reload): ...instead of here and streamline it.
26001 2016-03-01 Nick Clifton <nickc@redhat.com>
26003 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
26005 2016-03-01 Richard Biener <rguenther@suse.de>
26007 PR tree-optimization/69983
26008 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
26009 types and fall back to operand_equal_p.
26011 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26014 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26016 * config/s390/constraints.md ("jm8"): New constraint.
26017 * config/s390/predicates.md ("const_int_8bitset_operand"): New
26019 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
26021 ("*setmem_long<setmem_and>"): New pattern.
26022 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
26024 ("*setmem_long_31z<setmem_and>"): New pattern.
26025 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
26026 New substitution rules with the required attributes.
26029 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26032 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26034 * gensupport.c (process_substs_on_one_elem): Split loop to
26035 complete mark_operands_used_in_match_dup on all expressions in the
26037 (adjust_operands_numbers): Inline into process_substs_on_one_elem
26038 and remove function.
26040 2016-03-01 Richard Biener <rguenther@suse.de>
26042 PR middle-end/70022
26043 * fold-const.c (fold_indirect_ref_1): Fix range checking for
26044 vector BIT_FIELD_REF extract.
26046 2016-03-01 Richard Biener <rguenther@suse.de>
26048 PR tree-optimization/69994
26049 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
26051 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
26053 PR tree-optimization/69956
26054 * tree-vect-stmts.c (supportable_widening_operation): Support
26055 multi-step conversion of boolean vectors.
26056 (supportable_narrowing_operation): Likewise.
26058 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26060 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
26063 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26065 * config/s390/subst.md (DSI_VI): New mode iterator.
26066 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
26067 * config/s390/vector.md ("vec_set<mode>"): Move expander before
26068 the insn definition.
26069 ("*vec_set<mode>"): Change predicate and add alternative to
26070 support only either register or const_int operands as element
26072 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
26074 ("vec_extract<mode>"): New expander.
26075 ("*vec_extract<mode>"): New insn definition supporting reg and
26076 const_int element selectors.
26077 ("*vec_extract<mode>_plus"): New insn definition supporting
26078 reg+const_int element selectors.
26079 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
26080 following expander+insn definition.
26081 ("<vec_shifts_name><mode>3"): New expander.
26082 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
26084 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26086 * config/s390/s390.md ("*tabort_1"): Change predicate to
26087 nonmemory_operand. Add a second alternative to cover
26088 register as well as const int operands.
26089 ("*tabort_1_plus"): New pattern definition.
26091 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26093 * config/s390/s390.md ("*ashrdi3_cc_31")
26094 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
26095 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
26096 Merge insn definitions into ...
26097 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
26098 New pattern definition.
26099 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
26100 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
26101 ("*ashr<mode>3_and"): Merge insn definitions into ...
26102 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
26103 New pattern definition.
26104 * config/s390/subst.md ("addr_style_op_cc_subst")
26105 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
26106 substitutions patterns plus attributes.
26107 Add ashiftrt to SUBST iterator.
26109 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26111 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
26112 op2 to nonmemory_operand.
26113 ("*<shift>di3_31", "*<shift>di3_31_and"):
26114 Merge into single pattern definition ...
26115 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
26116 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
26117 pattern definition ...
26118 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
26119 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
26122 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26124 * config/s390/predicates.md (const_int_6bitset_operand): New
26126 * config/s390/s390.md: Include subst.md.
26127 ("rotl<mode>3"): New expander.
26128 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
26130 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
26131 * config/s390/subst.md: New file.
26133 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26135 * config/s390/s390.md ("op_type", "atype", "length" attributes):
26136 Remove RRR type. It doesn't really exist.
26137 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
26139 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
26140 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
26141 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
26142 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
26143 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
26144 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
26145 `enabled' attribute.
26147 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26149 * gensupport.c (process_substs_on_one_elem): Split loop to
26150 complete mark_operands_used_in_match_dup on all expressions in the
26152 (adjust_operands_numbers): Inline into process_substs_on_one_elem
26153 and remove function.
26155 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
26158 * config/sparc/sparc.c (NWORDS_UP): Rename to...
26159 (CEIL_NWORDS): ...this. Use CEIL macro.
26160 (compute_fp_layout): Adjust to above renaming.
26161 (function_arg_union_value): Likewise.
26162 (sparc_arg_partial_bytes): Likewise.
26163 (sparc_function_arg_advance): Likewise.
26165 2016-02-29 Jeff Law <law@redhat.com>
26167 PR tree-optimization/70005
26168 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
26169 where an object with a boolean range is compared against a value
26172 PR tree-optimization/69999
26173 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
26174 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
26177 2016-02-29 Richard Biener <rguenther@suse.de>
26179 PR tree-optimization/69994
26180 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
26181 (get_unary_op): Look through nop conversions.
26182 (ops_equal_values_p): New function, look for equality diregarding
26184 (eliminate_plus_minus_pair): Use ops_equal_values_p
26185 (repropagate_negates): Do not use get_unary_op here.
26187 2016-02-29 Martin Liska <mliska@suse.cz>
26189 * system.h: Poison ENABLE_CHECKING macro.
26191 2016-02-29 Martin Liska <mliska@suse.cz>
26193 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
26194 is presented in dump flags.
26195 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
26196 (hsa_regalloc): Likewise.
26198 2016-02-19 Richard Biener <rguenther@suse.de>
26200 PR tree-optimization/69980
26201 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
26202 permutation of those we need to keep.
26204 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
26207 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
26208 (NWORDS_UP): ...this
26209 (init_cumulative_args): Minor tweaks.
26210 (sparc_promote_function_mode): Likewise.
26211 (scan_record_type): Delete.
26212 (traverse_record_type): New function template.
26213 (classify_data_t): New structure type.
26214 (classify_registers): New inline function.
26215 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
26216 exhausted. Instantiate traverse_record_type on classify_registers and
26217 deal with the case of a structure passed in slot #15 with no FP field
26219 (assign_data_t): New structure type.
26220 (compute_int_layout): New static function.
26221 (compute_fp_layout): Likewise.
26222 (count_registers): New inline function.
26223 (assign_int_registers): New static function.
26224 (assign_fp_registers): Likewise.
26225 (assign_registers): New inline function.
26226 (function_arg_record_value_1): Delete.
26227 (function_arg_record_value_2): Likewise.
26228 (function_arg_record_value_3): Likewise.
26229 (function_arg_record_value): Adjust to above changes. Instantiate
26230 traverse_record_type on count_registers to first count the number of
26231 registers to be used and then on assign_registers to assign them.
26232 (function_arg_union_value): Adjust to above renaming.
26233 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
26234 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
26235 case of a structure passed in slot #15
26236 (sparc_function_arg_advance): Likewise.
26237 (function_arg_padding): Minor tweak.
26239 2016-02-29 Richard Biener <rguenther@suse.de>
26241 PR tree-optimization/69720
26242 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
26243 the adjustment_def path for possibly vectorized defs.
26244 (vect_create_epilog_for_reduction): Handle vectorized initial
26247 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
26249 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
26251 2016-02-27 Jeff Law <law@redhat.com>
26254 2016-02-26 Richard Biener <rguenther@suse.de>
26255 Jeff Law <law@redhat.com>
26257 PR tree-optimization/69740
26258 * cfghooks.c (remove_edge): Request loop fixups if we delete
26259 an edge that might turn an irreducible loop into a natural
26262 2016-02-27 Jakub Jelinek <jakub@redhat.com>
26264 PR rtl-optimization/69896
26265 * tree-vect-generic.c (get_compute_type): Avoid single element
26268 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
26270 Rename the AArch64 tuning option and related functions to enable the
26271 Newton series for the reciprocal square root to reflect its
26272 approximative characteristic.
26274 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
26275 function to "aarch64_emit_approx_rsqrt".
26276 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
26277 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
26278 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
26279 (xgene1_tunings): Likewise.
26280 (use_rsqrt_p): Likewise.
26281 (aarch64_emit_swrsqrt): Use new function name.
26282 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
26283 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
26284 text explaining this option.
26285 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
26287 2016-02-26 Jakub Jelinek <jakub@redhat.com>
26290 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
26291 complain about -mallow-movmisalign without -mvsx if
26292 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
26294 2016-02-26 Joel Sherrill <joel@rtems.org>
26296 * config.gcc: Add x86_64-*-rtems*.
26297 * config/i386/rtems-64.h: New file.
26299 2016-02-26 Joel Sherrill <joel@rtems.org>
26301 * config.gcc: Add aarch64-*-rtems*.
26302 * config/aarch64/rtems.h: New file.
26304 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
26307 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
26308 shift amount using %h. Add comment.
26310 2016-02-26 Richard Biener <rguenther@suse.de>
26311 Jeff Law <law@redhat.com>
26313 PR tree-optimization/69740
26314 * cfghooks.c (remove_edge): Request loop fixups if we delete
26315 an edge that might turn an irreducible loop into a natural
26318 2016-02-26 Martin Jambor <mjambor@suse.cz>
26320 PR middle-end/69920
26321 * tree-sra.c (sra_modify_assign): Do not remove loads of
26322 uninitialized aggregates to SSA_NAMEs.
26324 2016-02-26 Richard Henderson <rth@redhat.com>
26327 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
26328 pseudo in case the target rtx matches the source of the left
26331 2016-02-26 Martin Jambor <mjambor@suse.cz>
26334 * hsa.h (hsa_type_packed_p): Declare.
26335 * hsa.c (hsa_type_packed_p): New function.
26336 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
26338 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
26339 * hsa-brig.c (emit_basic_insn): Likewise.
26341 2016-02-26 Martin Jambor <mjambor@suse.cz>
26344 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
26346 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
26348 2016-02-26 Martin Jambor <mjambor@suse.cz>
26350 * hsa.h (is_a_helper): New overload for hsa_op_immed for
26351 hsa_op_with_type operands.
26352 (hsa_unsigned_type_for_type): Declare.
26353 * hsa.c (hsa_unsigned_type_for_type): New function.
26354 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
26355 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
26356 the finalizer. Do not emit extra move.
26358 2016-02-26 Martin Jambor <mjambor@suse.cz>
26360 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
26361 atomic operations in private segment.
26363 2016-02-26 Martin Jambor <mjambor@suse.cz>
26365 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
26366 statements to wi->info. Also disallow omp simd constructs.
26367 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
26368 for not gridifying. Dump special string for omp_for.
26370 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26373 * config/aarch64/aarch64.c (aarch64_set_current_function):
26374 Save/restore target globals when switching to
26375 target_option_default_node.
26377 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26380 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
26381 Return 0 if !SHIFT_COUNT_TRUNCATED.
26383 2016-02-26 Jakub Jelinek <jakub@redhat.com>
26384 Eric Botcazou <ebotcazou@adacore.com>
26386 PR rtl-optimization/69891
26387 * dse.c (scan_insn): If we can't figure out memset arguments
26388 or they are non-constant, call clear_rhs_from_active_local_stores.
26390 2016-02-26 Martin Liska <mliska@suse.cz>
26392 * doc/extend.texi: Mention clog10, clog10f an clog10l
26393 in Builtins section.
26395 2016-02-26 Martin Liska <mliska@suse.cz>
26397 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
26399 (resolve_args_picking_1): Likewise.
26400 * dwarf2out.h (struct GTY): Likewise.
26402 2016-02-26 Martin Liska <mliska@suse.cz>
26404 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
26405 with flag_checking.
26406 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
26408 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
26409 Martin Liska <mliska@suse.cz>
26411 * doc/install.texi: Mention --enable-valgrind-annotations.
26413 2016-02-26 Richard Biener <rguenther@suse.de>
26415 PR tree-optimization/69551
26416 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
26417 looking through aliases adjust DECL_PT_UID to refer to the
26418 ultimate alias target.
26420 2016-02-25 Martin Liska <mliska@suse.cz>
26422 PR middle-end/69919
26423 * alloc-pool.c (after_memory_report): New variable.
26424 * alloc-pool.h (base_pool_allocator ::release): Do not use
26425 the infrastructure if after_memory_report.
26426 * toplev.c (toplev::main): Mark after memory report.
26428 2016-02-25 Richard Biener <rguenther@suse.de>
26430 PR tree-optimization/48795
26431 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
26433 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
26436 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
26437 offloading is enabled and -fopenacc or -fopenmp is specified.
26438 (CRTOFFLOADEND): Likewise.
26439 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
26440 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
26441 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
26442 (offload_objects_file_name): New static var.
26443 (tool_cleanup): Remove offload_objects_file_name file.
26444 (find_offloadbeginend): Replace with ...
26445 (find_crtoffloadtable): ... this.
26446 (run_gcc): Remove offload_argc and offload_argv.
26447 Get offload_objects_file_name from -foffload-objects=... option.
26448 Read names of object files with offload from this file, pass them to
26449 compile_images_for_offload_targets. Don't call find_offloadbeginend and
26450 don't pass offloadbegin and offloadend to the linker. Don't pass
26451 offload non-LTO files to the linker, because now they're not claimed.
26453 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
26456 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
26457 on builtin_unreachable.
26459 2016-02-25 Jakub Jelinek <jakub@redhat.com>
26461 PR rtl-optimization/69896
26462 * regcprop.c: Include cfgrtl.h.
26463 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
26464 than remembered mode, either delete it (if noop_move_p), or
26465 treat like copy_p but not noop_p instruction.
26467 2016-02-24 Jakub Jelinek <jakub@redhat.com>
26470 * dwarf2out.c (gen_variable_die): Work around buggy LTO
26471 - allow NULL decl for Fortran DW_TAG_common_block variables.
26473 2016-02-24 Jason Merrill <jason@redhat.com>
26475 * common.opt (flifetime-dse): Add -flifetime-dse=1.
26477 2016-02-24 Richard Biener <rguenther@suse.de>
26478 Jakub Jelinek <jakub@redhat.com>
26480 PR middle-end/69760
26481 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
26482 conditionally executed ops to well-defined overflow behavior.
26484 2016-02-24 Jakub Jelinek <jakub@redhat.com>
26486 PR middle-end/69915
26487 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
26490 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26492 PR rtl-optimization/69886
26493 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
26494 argument. Use it when checking validity of set instructions.
26495 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
26496 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
26498 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
26499 * store-motion.c (find_moveable_store): Update
26500 can_assign_to_reg_without_clobbers_p callsite.
26502 2016-02-24 Richard Biener <rguenther@suse.de>
26504 PR middle-end/68963
26505 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
26507 (record_nonwrapping_iv): Do not fall back to the low/high bound
26508 for non-constant IV bases if the stmt is not always executed.
26510 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26512 * config/arm/arm-cores.def (cortex-a32): New entry.
26513 * config/arm/arm-tables.opt: Regenerate.
26514 * config/arm/arm-tune.md: Regenerate.
26515 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
26516 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
26517 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
26518 for -mcpu and -mtune.
26520 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26523 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
26524 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
26525 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
26526 (atomic_loaddi_1): Delete.
26527 (atomic_loaddi): Rewrite expander using the above changes.
26529 2016-02-24 Jakub Jelinek <jakub@redhat.com>
26532 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
26535 2016-02-24 Jakub Jelinek <jakub@redhat.com>
26536 Richard Biener <rguenth@suse.de>
26538 PR middle-end/69909
26539 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
26540 set_mem_attributes if tem is SSA_NAME which got expanded
26543 2016-02-24 Richard Biener <rguenther@suse.de>
26545 PR tree-optimization/69907
26546 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
26547 end of permutations for BB vectorization.
26549 2016-02-24 Christian Bruel <christian.bruel@st.com>
26551 * config/arm/arm-c.c (arm_option_override): Initialize
26552 target_option_current_node.
26553 * config/arm/arm.c (arm_pragma_target_parse): Replace
26554 build_target_option_node call by target_option_current_node.
26555 Set target_option_current_node.
26558 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
26561 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
26562 define_insn_and_split to define_insn.
26563 (zero_extendqi<mode>2_dot2): Same.
26564 (extendqi<mode>2_dot): Same.
26565 (extendqi<mode>2_dot2): Same.
26567 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
26569 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
26570 and add bypass for AES{D,E} and AESMC pairs.
26571 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
26574 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
26576 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
26577 series for reciprocal square root in Exynos M1.
26579 2016-02-23 Martin Sebor <msebor@redhat.com>
26582 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
26583 __builtin_alloca_with_align.
26585 2016-02-23 Richard Henderson <rth@redhat.com>
26587 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
26588 (ix86_register_pragmas): Remove __seg_tls.
26589 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
26590 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
26591 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
26592 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
26593 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
26594 * doc/extend.texi (__seg_tls): Remove item.
26596 2016-02-23 Richard Biener <rguenther@suse.de>
26598 * alloc-pool.h (struct allocation_object): Make id member
26599 conditional on CHECKING_P again.
26600 (get_instance): Adjust.
26601 (base_pool_allocator): Likewise.
26603 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
26605 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
26606 (parallelize_loops): In OpenACC kernels mode, set n_threads to
26608 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
26610 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
26612 2016-02-23 Richard Biener <rguenther@suse.de>
26614 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
26615 * bitmap.h (struct bitmap_usage): Likewise.
26616 (bitmap_move): Declare.
26617 * bitmap.c (register_overhead): Take size_t argument.
26618 (bitmap_move): New function.
26619 * df-problems.c (df_rd_transfer_function): Use bitmap_move
26620 to properly account overhead.
26621 * tree.c (free_node): Use tree_size.
26623 2016-02-23 Jakub Jelinek <jakub@redhat.com>
26626 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
26627 when inverting comparison.
26630 * common.opt (Wunreachable-code): Add Warning flag.
26632 2016-02-23 Mark Wielaard <mjw@redhat.com>
26633 Jakub Jelinek <jakub@redhat.com>
26636 * cgraphunit.c (check_global_declaration): Check main_input_filename
26637 and DECL_SOURCE_FILE are not NULL.
26639 2016-02-23 Martin Jambor <mjambor@suse.cz>
26641 PR tree-optimization/69666
26642 * tree-sra.c (sra_modify_assign): Do not attempt to create
26643 default_def replacements for unscalarizable regions.
26645 2016-02-20 Mark Wielaard <mjw@redhat.com>
26648 * cgraphunit.c (check_global_declaration): Check level of
26649 warn_unused_const_variable and main_input_filename.
26650 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
26651 (-Wunused-variable): For C implies -Wunused-const-variable=1.
26652 (-Wunused-const-variable): Explain levels 1 and 2.
26654 2016-02-22 Jakub Jelinek <jakub@redhat.com>
26657 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
26658 identical arguments. Formatting and spelling fixes.
26661 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
26666 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
26667 and m68k-devices.def.
26668 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
26669 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
26671 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
26673 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
26674 and HImode registers.
26676 2016-02-22 Richard Biener <rguenther@suse.de>
26678 PR tree-optimization/69882
26679 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
26680 preserve permutations present because of gaps.
26681 (vect_supported_load_permutation_p): Always continue checking
26682 permutations after vect_attempt_slp_rearrange_stmts.
26684 2016-02-22 Bin Cheng <bin.cheng@arm.com>
26686 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
26687 min_profitable_estimate, rather than min_profitable_iters.
26689 2016-02-22 Jakub Jelinek <jakub@redhat.com>
26692 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
26693 SImode for last match_operand.
26695 2016-02-22 Martin Liska <mliska@suse.cz>
26697 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
26698 return bitsize - 1 as the return value.
26700 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
26704 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
26705 Handle negative shift counts.
26706 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
26707 force_reg on the shift constant.
26708 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
26709 (lshrsi3_d): Handle negative shift counts.
26711 2016-02-22 Richard Biener <rguenther@suse.de>
26712 Tom de Vries <tom@codesourcery.com>
26714 * graph.c: Include dumpfile.h.
26715 (print_graph_cfg): Split into three overloads.
26716 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
26718 2016-02-22 Tom de Vries <tom@codesourcery.com>
26720 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
26723 2016-02-22 Richard Biener <rguenther@suse.de>
26726 * ipa-inline-transform.c (inline_call): When not updating
26727 overall summaries adjust self size by the growth estimate.
26728 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
26729 hash-set, do not update overall summaries here. Renamed from ...
26730 (inline_to_all_callers): ... this which is now wrapping the
26731 above and performing delayed overall summary update.
26732 (early_inline_small_functions): Delay updating of the overall
26735 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
26737 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
26740 2016-02-19 Jakub Jelinek <jakub@redhat.com>
26743 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
26744 :%* in %:gt() argument.
26745 (greater_than_spec_func): Adjust for expecting only numbers,
26746 if there are more than two numbers, compare the last two.
26748 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
26750 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
26751 -Wnarrowing with -std.
26753 2016-02-19 Jakub Jelinek <jakub@redhat.com>
26756 * expr.c (store_field): Don't use bit-field path if exp is
26757 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
26758 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
26759 and the assignment can be performed by bitwise copy. Formatting
26762 PR middle-end/69838
26763 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
26764 call copy_reg_eh_region_note_forward on before and/or after sequences
26765 and remove note from insn if it no longer can throw.
26768 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
26769 if TARGET_AVX512BW.
26771 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26773 * config/s390/vector.md: Add missing commutative operand markers
26774 to the patterns which qualify for one.
26775 * config/s390/vx-builtins.md: Likewise.
26777 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26779 * config/s390/vector.md (VI, VI_QHS): Add single element vector
26780 types to mode iterators.
26781 (vec_double): ... and mode attribute.
26782 * config/s390/vx-builtins.md (non_vec_int): Likewise.
26784 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26786 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
26787 Change the predicate of op2 from nonimmediate to general and let
26788 reload fix it if necessary.
26790 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26792 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
26794 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26796 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
26799 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26801 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
26802 * config/s390/s390.c (s390_expand_vec_movstr): New function.
26803 * config/s390/s390.md ("movstr<P:mode>"): Call
26804 s390_expand_vec_movstr.
26806 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26808 * config/s390/s390.md: Add missing output modifier for operand 1
26809 to print it as address properly.
26811 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26813 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
26814 * config/s390/2964.md: New file.
26815 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
26816 of insn grouping attributes depending on the CPU level.
26817 (s390_get_unit_mask): New function.
26818 (s390_sched_score): Remove the OOO from the scheduling macros.
26819 Add loop to calculate a score for the instruction mix.
26820 (s390_sched_reorder): Likewise plus improve debug output.
26821 (s390_sched_variable_issue): Rename macros as above. Calculate
26822 the unit distances after actually scheduling an insn. Improve
26824 (s390_sched_init): Clear last_scheduled_unit_distance array.
26825 * config/s390/s390.md: Include 2964.md.
26827 2016-02-18 Jakub Jelinek <jakub@redhat.com>
26830 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
26831 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
26832 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
26833 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
26834 *avx512f_<code>v8div16qi2_mask_1): New insns.
26836 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
26839 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
26842 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
26843 earlyclobber from target. Use wF constraint for fused memory
26845 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
26847 2016-02-18 Jakub Jelinek <jakub@redhat.com>
26848 Martin Liska <mliska@suse.cz>
26851 * cfgexpand.c (asan_sanitize_stack_p): New function.
26852 (partition_stack_vars): Use the function.
26853 (expand_stack_vars): Likewise.
26854 (defer_stack_allocation): Likewise.
26855 (expand_used_vars): Likewise.
26857 2016-02-18 Richard Biener <rguenther@suse.de>
26859 PR middle-end/69553
26860 * fold-const.c (operand_equal_p): Properly compare offsets for
26861 IMAGPART_EXPR and ARRAY_REF.
26863 2016-02-18 Nick Clifton <nickc@redhat.com>
26867 * config/arm/arm.c (arm_option_override_internal): Disable
26868 interworking if the target does not support thumb instructions.
26869 (arm_reload_in_hi): Handle the case where a register to register
26870 move needs reloading because there is no simple pattern to handle
26872 (arm_reload_out_hi): Likewise.
26874 2016-02-18 Richard Biener <rguenther@suse.de>
26876 PR middle-end/69854
26877 * match.pd: Don't use fold_binary or fold_unary for folding
26880 2016-02-17 Jakub Jelinek <jakub@redhat.com>
26883 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
26884 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
26885 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
26886 warn on gimple_no_warning_p statements.
26888 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
26890 * doc/extend.texi (C++ Attributes): Correct description of
26891 warn_unused type attribute.
26893 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26895 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
26896 correct instruction.
26898 2016-02-17 Richard Biener <rguenther@suse.de>
26900 PR rtl-optimization/69609
26901 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
26902 (find_traces_1_round): When ending a trace update cached priority
26904 (bb_to_key): Use cached priority when available.
26905 (copy_bb): Initialize cached priority.
26906 (reorder_basic_blocks_software_trace_cache): Likewise.
26908 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26911 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
26913 (aarch64_comparison_operator): Break overly long line into two.
26914 (aarch64_comparison_operation): Likewise.
26915 * config/aarch64/aarch64.md (cstorecc4): Use
26916 aarch64_comparison_operator_mode instead of
26917 aarch64_comparison_operator.
26918 (cstore<mode>4): Likewise.
26919 (aarch64_cstore<mode>): Likewise.
26920 (*cstoresi_insn_uxtw): Likewise.
26921 (cstore<mode>_neg): Likewise.
26922 (*cstoresi_neg_uxtw): Likewise.
26924 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26927 * config/arm/predicates.md (arm_comparison_operator_mode):
26929 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
26930 instead of arm_comparison_operator.
26931 (*mov_negscc): Likewise.
26932 (*mov_notscc): Likewise.
26933 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
26934 (*thumb2_mov_negscc): Likewise.
26935 (*thumb2_mov_negscc_strict_it): Likewise.
26936 (*thumb2_mov_notscc): Likewise.
26937 (*thumb2_mov_notscc_strict_it): Likewise.
26939 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
26941 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
26942 Add missing return.
26944 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
26946 * config/visium/visium.c (machine_libfunc_index): New enum.
26947 (machine_libfuncs): New structure.
26948 (visium_libfuncs): New static variable.
26949 (TARGET_INIT_LIBFUNCS): Define to...
26950 (visium_init_libfuncs): ...this. New function.
26951 (expand_block_move_4): Use the appropriate libfunc.
26952 (expand_block_move_2): Likewise.
26953 (expand_block_move_1): Likewise.
26954 (expand_block_set_4): Likewise.
26955 (expand_block_set_2): Likewise.
26956 (expand_block_set_1): Likewise.
26957 (visium_trampoline_init): Likewise.
26959 2016-02-17 Nick Clifton <nickc@redhat.com>
26961 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
26962 TI's devices.csv file as of March 2016.
26964 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
26967 * opts-global.c (handle_common_deferred_options): Introduce and
26968 initialize two global variables to remember command-line options
26969 specifying a stack-limiting register.
26970 * opts.h: Add extern declarations of the two new global variables.
26971 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
26972 variable based on the values of the two new global variables.
26974 2016-02-16 Jakub Jelinek <jakub@redhat.com>
26977 * common.opt (Wnonnull-compare): New warning.
26978 * doc/invoke.texi (-Wnonnull): Remove text about comparison
26979 of arguments against NULL.
26980 (-Wnonnull-compare): Document.
26981 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
26982 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
26983 * passes.def (pass_warn_nonnull_compare): Add.
26984 * gimple-ssa-nonnull-compare.c: New file.
26986 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
26988 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
26989 AARCH64_EXTRA_TUNE_RECIP_SQRT.
26991 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
26993 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
26994 reciprocal sqrt for -mlow-precision-recip-sqrt.
26996 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
26997 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26999 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
27000 always use lane loads to construct non-constant vectors.
27002 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
27004 * config/aarch64/aarch64.md
27005 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
27006 constraints for operand 3.
27007 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
27009 2016-02-16 Jakub Jelinek <jakub@redhat.com>
27010 Richard Biener <rguenther@suse.de>
27012 PR tree-optimization/69820
27013 * tree-vect-patterns.c (type_conversion_p): Return false if
27014 *orig_type is unsigned single precision or boolean.
27015 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
27018 2016-02-16 Jakub Jelinek <jakub@redhat.com>
27020 PR rtl-optimization/69764
27021 PR rtl-optimization/69771
27022 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
27023 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
27025 2016-02-16 Richard Biener <rguenther@suse.de>
27027 PR tree-optimization/69776
27028 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
27030 (indirect_refs_may_alias_p): Likewise.
27031 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
27032 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
27033 according to tbaa_p.
27034 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
27035 (optimize_stmt): For redundant store discovery do not allow tbaa.
27037 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
27039 PR tree-optimization/69714
27040 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
27041 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
27043 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
27045 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
27046 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
27047 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
27048 * config/arc/arc.c (arc_init): Check FPU options.
27049 (get_arc_condition_code): Handle new CC_FPU* modes.
27050 (arc_select_cc_mode): Likewise.
27051 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
27052 register pair only. Allow access for ARCv2 accumulator.
27053 (gen_compare_reg): Whenever we have FPU support use FPU compare
27055 (arc_reorg): Don't generate brcc insns when FPU compare
27056 instructions are involved.
27057 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
27058 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
27059 floating point emulation.
27060 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
27061 (REVERSE_CONDITION): Add new CC_FPU* modes.
27062 (TARGET_FP_SP_BASE): Define.
27063 (TARGET_FP_DP_BASE): Likewise.
27064 (TARGET_FP_SP_FUSED): Likewise.
27065 (TARGET_FP_DP_FUSED): Likewise.
27066 (TARGET_FP_SP_CONV): Likewise.
27067 (TARGET_FP_DP_CONV): Likewise.
27068 (TARGET_FP_SP_SQRT): Likewise.
27069 (TARGET_FP_DP_SQRT): Likewise.
27070 (TARGET_FP_DP_AX): Likewise.
27071 * config/arc/arc.md (ARCV2_ACC): New constant.
27072 (type): New fpu type attribute.
27073 (SDF): Conditional iterator.
27074 (cstore<mode>, cbranch<mode>): Change expand condition.
27075 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
27076 handles FPU/FPX cases as well.
27077 * config/arc/arc.opt (mfpu): New option.
27078 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
27080 (adddf3, muldf3, subdf3): Removed.
27081 * config/arc/predicates.md (proper_comparison_operator): Recognize
27083 * config/arc/fpu.md: New file.
27084 * doc/invoke.texi (ARC Options): Document mfpu option.
27086 2016-02-16 Richard Biener <rguenther@suse.de>
27088 PR rtl-optimization/69291
27089 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
27090 noce_operand_ok check.
27092 2016-02-16 Tom de Vries <tom@codesourcery.com>
27095 * omp-low.c (simd_clone_create): Remove call to
27096 symtab->call_cgraph_insertion_hooks.
27098 2016-02-16 Jakub Jelinek <jakub@redhat.com>
27100 PR tree-optimization/69802
27101 * tree-ssa-reassoc.c (update_range_test): If op is
27102 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
27103 op == 1 test of precision 1 integral op, otherwise handle
27104 that case as op itself. Fix up formatting.
27105 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
27108 2016-02-16 Richard Biener <rguenther@suse.de>
27110 PR tree-optimization/69586
27111 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
27112 types for conversion sources.
27114 2016-02-16 Richard Biener <rguenther@suse.de>
27116 PR middle-end/69801
27117 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
27118 mask OEP_ADDRESS_OF.
27120 2016-02-16 Alan Modra <amodra@gmail.com>
27123 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
27124 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
27125 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
27127 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
27128 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
27129 (p8_fmrgow_<mode>): Likewise.
27130 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
27132 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
27133 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
27134 to use movdi_internal64. Remove op0_di.
27135 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
27137 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
27139 Add support for the FCCMP insn types
27141 * config/aarch64/aarch64.md (fccmp): Change insn type.
27142 (fccmpe): Likewise.
27143 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
27144 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
27145 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
27146 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
27147 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
27148 * config/arm/types.md (fccmps): Add new insn type.
27149 (fccmpd): Likewise.
27151 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
27153 * alias.c (get_alias_set): Fix a typo in comment.
27155 2016-02-15 Richard Biener <rguenther@suse.de>
27157 PR tree-optimization/69595
27158 * match.pd: Complete range test simplification to true.
27160 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
27162 PR rtl-optimization/69648
27163 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
27164 pic_offset_table_rtx.
27166 PR rtl-optimization/69752
27167 * ira.c (update_equiv_regs): When looking for more than a single SET,
27168 also take other side effects into account.
27170 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
27172 * config/s390/s390.c (s390_function_profiler): Add a new sequence
27173 for z900+ CPUs in 31-bit mode.
27175 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
27177 * common/config/s390/s390-common.c (s390_supports_split_stack):
27179 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
27180 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
27181 * config/s390/s390.c (struct machine_function): New field
27182 split_stack_varargs_pointer.
27183 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
27184 in s390_emit_prologue.
27185 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
27187 (morestack_ref): New global.
27188 (SPLIT_STACK_AVAILABLE): New macro.
27189 (s390_expand_split_stack_prologue): New function.
27190 (s390_live_on_entry): New function.
27191 (s390_va_start): Use split-stack vararg pointer if appropriate.
27192 (s390_asm_file_end): Emit the split-stack note sections.
27193 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
27194 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
27195 (UNSPECV_SPLIT_STACK_CALL): New unspec.
27196 (UNSPECV_SPLIT_STACK_DATA): New unspec.
27197 (split_stack_prologue): New expand.
27198 (split_stack_space_check): New expand.
27199 (split_stack_data): New insn.
27200 (split_stack_call): New expand.
27201 (split_stack_call_*): New insn.
27202 (split_stack_cond_call): New expand.
27203 (split_stack_cond_call_*): New insn.
27205 2016-02-15 Richard Biener <rguenther@suse.de>
27207 PR tree-optimization/69783
27208 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
27209 Add trivially correct cases.
27211 2016-02-15 Tom de Vries <tom@codesourcery.com>
27214 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
27216 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
27218 2016-02-15 Richard Biener <rguenther@suse.de>
27220 PR tree-optimization/69776
27221 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
27222 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
27223 indicate whether we can use TBAA to disambiguate against stores.
27224 Use alias-set zero if not.
27225 (visit_reference_op_store): Do not use TBAA when looking up
27227 * tree-ssa-pre.c (compute_avail): Use TBAA here.
27228 (eliminate_dom_walker::before_dom_children): But not when looking
27229 up redundant stores.
27231 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
27233 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
27235 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
27237 * config/i386/znver1.md
27238 (znver1_pop, znver1_pop_mem,
27239 znver1_load_imov_double_store,
27240 znver1_load_imov_direct_store,
27241 znver1_load_imov_direct_load,
27242 znver1_load_imov_double_load): Add new.
27243 (znver1_insn, znver1_insn_load): Add icmov type.
27244 (znver1_sseavx_fma,
27245 znver1_sseavx_fma_load,
27247 znver1_avx256_fma_load): Fix pipe usage.
27249 2016-02-14 Alan Modra <amodra@gmail.com>
27252 * reload.c (find_reloads_address_1): For pre/post-inc/dec
27253 with an invalid hard reg, reload just the reg not the entire
27254 pre/post-inc/dec address expression.
27256 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
27259 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
27260 fixed R1_REG scratch reg.
27261 (sibcall_value_pcrel_fdpic): Likewise.
27263 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
27267 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
27269 2016-02-12 Walter Lee <walt@tilera.com>
27271 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
27272 * config/tilegx/t-tilegx: Likewise.
27274 2016-02-12 David Malcolm <dmalcolm@redhat.com>
27277 * diagnostic-show-locus.c (struct line_span): New struct.
27278 (layout::get_first_line): Delete.
27279 (layout::get_last_line): Delete.
27280 (layout::get_num_line_spans): New member function.
27281 (layout::get_line_span): Likewise.
27282 (layout::print_heading_for_line_span_index_p): Likewise.
27283 (layout::get_expanded_location): Likewise.
27284 (layout::calculate_line_spans): Likewise.
27285 (layout::m_first_line): Delete.
27286 (layout::m_last_line): Delete.
27287 (layout::m_line_spans): New field.
27288 (layout::layout): Update comment. Replace m_first_line and
27289 m_last_line with m_line_spans, replacing their initialization
27290 with a call to calculate_line_spans.
27291 (diagnostic_show_locus): When printing source lines and
27292 annotations, rather than looping over a single span
27293 of lines, instead loop over each line_span within
27294 the layout, with an inner loop over the lines within them.
27295 Call the context's start_span callback when changing line spans.
27296 * diagnostic.c (diagnostic_initialize): Initialize start_span.
27297 (diagnostic_build_prefix): Break out the building of the location
27298 part of the string into...
27299 (diagnostic_get_location_text): ...this new function, rewriting
27300 it from nested ternary expressions to a sequence of "if"
27302 (default_diagnostic_start_span_fn): New function.
27303 * diagnostic.h (diagnostic_start_span_fn): New typedef.
27304 (diagnostic_context::start_span): New field.
27305 (default_diagnostic_start_span_fn): New prototype.
27307 2016-02-12 David Malcolm <dmalcolm@redhat.com>
27310 * gcc.c (driver::finalize): Fix cleanup of "specs".
27312 2016-02-12 David Malcolm <dmalcolm@redhat.com>
27316 * gcc.c (driver::driver): Initialize m_option_suggestions.
27317 (driver::~driver): Clean up m_option_suggestions.
27318 (suggest_option): Convert to...
27319 (driver::suggest_option): ...this, and split out into
27320 driver::build_option_suggestions and find_closest_string.
27321 (driver::build_option_suggestions): New function, from
27322 first half of suggest_option. Special-case
27323 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
27324 the sanitizer_opts array. For options of enum types, add the
27325 various enum values to the candidate strings.
27326 (driver::handle_unrecognized_options): Remove "const".
27327 * gcc.h (driver::handle_unrecognized_options): Likewise.
27328 (driver::build_option_suggestions): New decl.
27329 (driver::suggest_option): New decl.
27330 (driver::m_option_suggestions): New field.
27331 * opts-common.c (add_misspelling_candidates): New function.
27332 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
27333 and make non-static.
27334 * opts.h (sanitizer_opts): New array decl.
27335 (add_misspelling_candidates): New function decl.
27336 * spellcheck.c (find_closest_string): New function.
27337 * spellcheck.h (find_closest_string): New function decl.
27339 2016-02-12 Jakub Jelinek <jakub@redhat.com>
27341 PR rtl-optimization/69764
27342 PR rtl-optimization/69771
27343 * optabs.c (expand_binop_directly): For shift_optab_p, force
27344 convert_modes with VOIDmode if xop1 has VOIDmode.
27346 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
27349 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
27350 to correctly determine instrumentation thunks.
27352 2016-02-12 Jakub Jelinek <jakub@redhat.com>
27355 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
27356 type by reference, force lhs on the call.
27359 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
27360 Compute retval and retbnd early in all cases if split_part_return_p
27361 and return_bb is not EXIT. Remove all clobber stmts and reset
27362 all debug stmts that refer to SSA_NAMEs defined in split part,
27363 except if it is retval, in that case replace the old retval with the
27364 lhs of the call to the split part.
27366 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
27369 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
27371 PR middle-end/66726
27372 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
27373 whose result is used in PHI.
27374 (maybe_optimize_range_tests): Likewise.
27375 (final_range_test_p): Likweise.
27377 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
27379 PR middle-end/66726
27380 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
27381 whose result is used in PHI.
27382 (maybe_optimize_range_tests): Likewise.
27383 (final_range_test_p): Likweise.
27385 2016-02-12 Jakub Jelinek <jakub@redhat.com>
27387 * cgraph.c: Spelling fixes - behaviour -> behavior and
27388 neighbour -> neighbor.
27389 * target.def: Likewise.
27390 * sel-sched.c: Likewise.
27391 * config/mips/mips.c: Likewise.
27392 * config/arc/arc.md: Likewise.
27393 * config/arm/cortex-a57.md: Likewise.
27394 * config/arm/arm.c: Likewise.
27395 * config/arm/neon.md: Likewise.
27396 * config/arm/arm-c.c: Likewise.
27397 * config/vms/vms-c.c: Likewise.
27398 * config/s390/s390.c: Likewise.
27399 * config/i386/znver1.md: Likewise.
27400 * config/i386/i386.c: Likewise.
27401 * config/ia64/hpux-unix2003.h: Likewise.
27402 * config/msp430/msp430.md: Likewise.
27403 * config/rx/rx.c: Likewise.
27404 * config/rx/rx.md: Likewise.
27405 * config/aarch64/aarch64-simd.md: Likewise.
27406 * config/aarch64/aarch64.c: Likewise.
27407 * config/nvptx/nvptx.c: Likewise.
27408 * config/bfin/bfin.c: Likewise.
27409 * config/cris/cris.opt: Likewise.
27410 * config/rs6000/rs6000.c: Likewise.
27411 * target.h: Likewise.
27412 * spellcheck.c: Likewise.
27413 * ira-build.c: Likewise.
27414 * tree-inline.c: Likewise.
27415 * builtins.c: Likewise.
27416 * lra-constraints.c: Likewise.
27417 * explow.c: Likewise.
27418 * hwint.h: Likewise.
27419 * targhooks.c: Likewise.
27420 * tree-vect-data-refs.c: Likewise.
27421 * expr.c: Likewise.
27422 * doc/tm.texi: Likewise.
27423 * doc/extend.texi: Likewise.
27424 * doc/install.texi: Likewise.
27425 * doc/md.texi: Likewise.
27426 * tree-ssa-tail-merge.c: Likewise.
27427 * sched-int.h: Likewise.
27428 * match.pd: Likewise.
27429 * sched-ebb.c: Likewise.
27430 * target.def (omit_struct_return_reg): Likewise.
27431 * gimple-ssa-isolate-paths.c: Likewise.
27432 (find_implicit_erroneous_behaviour): Renamed to...
27433 (find_implicit_erroneous_behavior): ... this.
27434 (find_explicit_erroneous_behaviour): Renamed to...
27435 (find_explicit_erroneous_behavior): ... this.
27436 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
27438 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
27440 PR rtl-optimization/64682
27441 PR rtl-optimization/69567
27442 PR rtl-optimization/69737
27443 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
27444 in I2 as well, just lose it.
27446 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27448 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
27450 (aarch64_last_printed_tune_string): Likewise.
27451 (aarch64_declare_function_name): Only output .arch assembler
27452 directive if it will be different from the previously output
27453 directive. Same for .tune comment but only if -dA is set.
27454 (aarch64_start_file): New function.
27455 (TARGET_ASM_FILE_START): Define.
27457 2016-02-11 David Malcolm <dmalcolm@redhat.com>
27460 * Makefile.in (PLUGIN_HEADERS): Add params.list.
27462 2016-02-11 Jakub Jelinek <jakub@redhat.com>
27465 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
27466 -Wmaybe-uninitialized warning.
27468 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
27471 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
27473 2016-02-11 Richard Biener <rguenther@suse.de>
27475 PR rtl-optimization/69291
27476 * ifcvt.c (noce_try_store_flag_constants): Do not allow
27477 subexpressions affected by changing the result.
27479 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
27482 * lra-constraints.c (curr_insn_transform): Find in/out operands
27483 for secondary memory moves. Update dups.
27485 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
27487 PR tree-optimization/69652
27488 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
27489 to nested loop, did source re-formatting, skip debug statements,
27490 add check on statement with volatile operand, remove dead scalar
27493 2016-02-10 Jakub Jelinek <jakub@redhat.com>
27494 Patrick Palka <ppalka@gcc.gnu.org>
27498 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
27499 calls if the return type is TREE_ADDRESSABLE.
27500 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
27501 * ipa-split.c (split_function): Fix doubled "we" in comment.
27502 Use void return type for the split part even if
27503 !split_point->split_part_set_retval.
27505 2016-02-10 Bin Cheng <bin.cheng@arm.com>
27507 PR tree-optimization/68021
27508 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
27509 when computing the value of biv cand by itself.
27511 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
27513 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
27514 (cortexa57_tunings): Likewise.
27515 (cortexa72_tunings): Likewise.
27516 (arch_macro_fusion_pair_p): Add support for AES fusion.
27517 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
27518 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
27519 Allow virtual registers before reload so early scheduling works.
27520 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
27521 correct latency and pipeline.
27522 (cortex_a57_crypto_complex): Likewise.
27523 (cortex_a57_crypto_xor): Likewise.
27524 (define_bypass): Add AES bypass.
27526 2016-02-10 Richard Biener <rguenther@suse.de>
27528 PR tree-optimization/69726
27529 * passes.def: Add DCE pass before late uninit.
27530 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
27531 really fixup if-conversions job.
27533 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
27535 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
27536 (arm_cortex_a57_tune): Likewise.
27537 (aarch_macro_fusion_pair_p): Add support for AES fusion.
27538 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
27540 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
27542 * timevar.def (TV_PHASE_DBGINFO): Delete.
27543 (TV_PHASE_CHECK_DBGINFO): Likewise.
27544 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
27546 2016-02-10 Richard Biener <rguenther@suse.de>
27548 PR tree-optimization/69719
27549 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
27550 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
27552 2016-02-09 Andrew Pinski <apinski@cavium.com>
27555 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
27556 get_vcond_mask_icode returns false.
27558 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
27561 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
27562 an ADDIS that adds a pointer to a large constant that sets the
27563 upper16 bits with a load operation.
27565 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
27568 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
27570 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
27572 (vzipq_s16): Likewise.
27573 (vzipq_s32): Likewise.
27574 (vzipq_f32): Likewise.
27575 (vzipq_u8): Likewise.
27576 (vzipq_u16): Likewise.
27577 (vzipq_u32): Likewise.
27578 (vzipq_p8): Likewise.
27579 (vzipq_p16): Likewise.
27581 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
27584 * config/arm/arm.c (neon_endian_lane_map): New function.
27585 (neon_vector_pair_endian_lane_map): New function.
27586 (arm_evpc_neon_vuzp): Allow for big endian lane order.
27587 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
27589 (vuzpq_s16): Likewise.
27590 (vuzpq_s32): Likewise.
27591 (vuzpq_f32): Likewise.
27592 (vuzpq_u8): Likewise.
27593 (vuzpq_u16): Likewise.
27594 (vuzpq_u32): Likewise.
27595 (vuzpq_p8): Likewise.
27596 (vuzpq_p16): Likewise.
27598 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
27601 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
27604 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
27606 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
27607 truncate const_int operand 1 to QImode.
27609 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
27611 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
27612 corresponding to an abnormal edge.
27614 2016-02-09 Tom de Vries <tom@codesourcery.com>
27616 PR tree-optimization/69599
27617 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
27619 (find_func_aliases_for_builtin_call, find_func_clobbers)
27620 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
27623 2016-02-09 Richard Biener <rguenther@suse.de>
27625 PR tree-optimization/69715
27626 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
27627 LHS on calls as non-rewritable.
27629 2016-02-09 Tom de Vries <tom@codesourcery.com>
27632 * lto-wrapper.c (append_diag_options): New function.
27633 (compile_offload_image): Call append_diag_options.
27635 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
27638 * doc/extend.texi (Flag Output Operands): Correct sectioning.
27639 Minor copy-edit to fix verb tenses.
27641 2016-02-08 Jakub Jelinek <jakub@redhat.com>
27643 PR tree-optimization/69209
27644 * ipa-split.c (split_function): If split part is not
27645 returning retval, retval has gimple type but is not
27646 gimple value, force it into a SSA_NAME first.
27648 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
27650 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
27653 2016-02-08 Jason Merrill <jason@redhat.com>
27656 * convert.c (convert_to_integer_1): Check dofold on truncation
27658 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
27659 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
27660 Rename from *_nofold.
27661 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
27662 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
27664 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
27667 * tree.c (build_common_tree_nodes): Remove short_double argument.
27668 All callers changed.
27669 * tree.h (build_common_tree_nodes): Adjust declaration.
27670 * doc/invoke.texi (-fshort-double): Remove documentation.
27671 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
27672 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
27673 * lto-wrapper.c (merge_and_complain, append_compiler_options)
27674 (append_linker_options): Don't handle OPT_fshort_double.
27676 PR rtl-optimization/68730
27677 * lra-remat.c (insn_to_cand_activation): New static variable.
27678 (lra_remat): Allocate and free it.
27679 (create_cand): New arg activation. Initialize a field in
27680 insn_to_cand_activation if it is nonnull.
27681 (create_cands): Pass the activation insn to create_cand when making
27682 a candidate involving an output reload. Reorganize code a little.
27683 (do_remat): Keep track of active status of candidates in a separate
27686 2016-02-08 Richard Biener <rguenther@suse.de>
27688 PR tree-optimization/69719
27689 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
27690 Properly use absolute of the difference of the two offsets to
27691 compare or adjust the segment length.
27693 2016-02-08 Richard Biener <rguenther@suse.de>
27694 Jeff Law <law@redhat.com>
27697 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
27698 types for anonymous SSA names.
27700 2016-02-08 Richard Biener <rguenther@suse.de>
27702 PR rtl-optimization/69274
27703 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
27705 2016-02-08 Jeff Law <law@redhat.com>
27707 PR tree-optimization/65917
27708 * tree-ssa-dom.c (record_temporary_equivalences): Record both
27709 equivalences from if (x == y) style conditionals.
27710 (loop_depth_of_name): Remove.
27711 (record_equality): Remove loop depth check.
27712 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
27713 (const_and_copies::record_const_or_copy_raw): New member function.
27714 * tree-ssa-scopedtables.c
27715 (const_and_copies::record_const_or_copy_raw): New, factored out of
27716 (const_and_copies::record_const_or_copy): Call new member function.
27718 2016-02-05 Jeff Law <law@redhat.com>
27720 PR tree-optimization/68541
27721 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
27722 (count_stmts_in_block): New function.
27723 (poor_ifcvt_candidate_code): Likewise.
27724 (is_feasible_trace): Add some heuristics to determine when path
27725 splitting is profitable.
27726 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
27727 is a diamond with a single exit.
27729 2016-02-05 Martin Sebor <msebor@redhat.com>
27732 * doc/invoke.texi: Update -Wplacement-new to take an optional
27735 2016-02-06 Richard Henderson <rth@redhat.com>
27738 * tree.c (tree_nop_conversion_p): Do not strip casts into or
27739 out of non-standard address spaces.
27741 2016-02-05 Jakub Jelinek <jakub@redhat.com>
27743 PR rtl-optimization/69691
27744 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
27746 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
27748 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
27749 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
27750 (*ieee128_mfvsrd_64bit): Likewise.
27751 (*ieee128_mfvsrd_32bit): Likewise.
27753 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
27757 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
27759 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
27760 instrumented_version.
27762 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
27764 * doc/invoke.texi (Optimize Options): In table of --param options
27765 rename second occurrence of tracer-min-branch-ratio to
27766 tracer-min-branch-probability, rename
27767 tracer-min-branch-ratio-feedback to
27768 tracer-min-branch-probability-feedback and clarify description,
27769 rename sched-spec-state-edge-prob-cutoff to
27770 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
27771 to selsched-insns-to-rename, rename lto-minpartition to
27772 lto-min-partition, delete reorder-blocks-duplicate and
27773 reorder-blocks-duplicate-feedback.
27775 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27777 * config/s390/s390.c (s390_register_info_set_ranges): Remove
27780 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
27782 * doc/extend.texi: S/390: Correct some typos.
27784 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27786 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
27788 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27791 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
27792 (s390_register_info_gprtofpr): Use new macros above.
27793 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
27795 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
27796 its name. Adjust restore and save gpr ranges.
27797 (s390_register_info_set_ranges): New function.
27798 (s390_register_info): Use new macros above. Call
27799 s390_register_info_set_ranges.
27800 (s390_optimize_register_info): Likewise.
27801 (s390_hard_regno_rename_ok): Use new macros.
27802 (s390_hard_regno_scratch_ok): Likewise.
27803 (s390_emit_epilogue): Likewise.
27804 (s390_can_use_return_insn): Likewise.
27805 (s390_optimize_prologue): Likewise.
27806 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
27808 2016-02-05 Jakub Jelinek <jakub@redhat.com>
27811 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
27813 (ix86_option_override_internal): Disable TARGET_STV even for
27814 -m{incoming,preferred}-stack-boundary=3.
27816 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27818 * config.gcc: Mark deprecated rtems targets as obsolete.
27820 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
27822 PR rtl-optimization/64682
27823 PR rtl-optimization/69567
27824 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
27825 before I2 only if the register is both used and set in I2.
27827 2016-02-04 DJ Delorie <dj@redhat.com>
27829 * config/msp430/msp430.c (msp430_start_function): Add function type.
27831 2016-02-04 Jakub Jelinek <jakub@redhat.com>
27834 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
27836 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
27838 PR rtl-optimization/69577
27840 2015-10-29 Richard Henderson <rth@redhat.com>
27844 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
27845 sse check to the exact conditions of PR 67609.
27847 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
27850 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
27851 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
27852 not allowed into the traditional Altivec registers.
27853 (movtd_64bit_nodm): Likewise.
27854 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
27856 2016-02-04 David Malcolm <dmalcolm@redhat.com>
27858 * config/aarch64/cortex-a57-fma-steering.c
27859 (aarch64_register_fma_steering): Remove "static" from arguments
27862 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
27865 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
27866 twice when complex.
27868 2016-02-04 Mike Frysinger <vapier@gentoo.org>
27870 * doc/invoke.texi: Delete -mno-fma4.
27872 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
27874 PR rtl-optimization/69577
27875 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
27876 (find_subregs_of_mode): Update accordingly. Iterate over partial
27879 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
27881 * config/arm/arm-protos.h (neon_reinterpret): Remove.
27882 * config/arm/arm.c (neon_reinterpret): Remove.
27883 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
27884 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
27885 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
27886 vreinterpretti): Remove.
27887 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
27888 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
27889 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
27890 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
27891 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
27892 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
27893 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
27894 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
27895 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
27896 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
27897 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
27898 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
27899 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
27900 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
27901 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
27902 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
27903 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
27904 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
27905 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
27906 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
27907 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
27908 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
27909 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
27910 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
27911 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
27912 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
27913 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
27914 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
27915 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
27916 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
27917 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
27918 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
27919 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
27920 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
27921 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
27922 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
27923 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
27924 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
27925 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
27926 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
27927 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
27928 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
27929 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
27930 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
27931 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
27932 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
27933 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
27934 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
27935 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
27936 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
27937 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
27938 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
27939 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
27940 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
27941 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
27942 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
27943 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
27944 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
27945 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
27946 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
27947 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
27948 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
27949 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
27950 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
27951 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
27952 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
27953 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
27954 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
27955 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
27956 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
27957 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
27958 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
27959 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
27960 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
27961 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
27962 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
27963 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
27964 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
27965 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
27966 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
27967 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
27968 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
27969 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
27970 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
27971 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
27972 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
27973 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
27974 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
27975 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
27976 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
27977 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
27978 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
27979 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
27980 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
27981 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
27982 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
27983 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
27984 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
27985 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
27986 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
27987 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
27988 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
27989 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
27991 2016-02-04 Martin Liska <mliska@suse.cz>
27994 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
27995 that are gimple_store_p.
27996 (maybe_instrument_call): Likewise.
27998 2016-02-04 Bin Cheng <bin.cheng@arm.com>
28000 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
28001 register scaling out of memory reference and comment why.
28003 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28007 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
28008 folding the source of a SET.
28010 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28014 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
28015 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
28017 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
28021 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
28024 2016-02-04 Christian Bruel <christian.bruel@st.com>
28026 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
28027 * config/arm/arm.c (arm_set_current_function): Likewise.
28029 2016-02-04 Jakub Jelinek <jakub@redhat.com>
28030 Ilya Enkovich <enkovich.gnu@gmail.com>
28031 H.J. Lu <hongjiu.lu@intel.com>
28034 * config/i386/i386.c (convert_scalars_to_vector): Remove
28035 stack alignment fixes.
28036 (ix86_option_override_internal): Disable TARGET_STV if stack
28037 might not be aligned enough.
28038 (ix86_minimum_alignment): Assert that TARGET_STV is false.
28040 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
28042 * config/i386/x86-tune.def: Disable default prefetching
28045 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
28046 Vladimir Makarov <vmakarov@redhat.com>
28049 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
28050 in validating fused toc addresses.
28052 2016-02-03 Jakub Jelinek <jakub@redhat.com>
28055 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
28056 range->m_caret fields if range->m_show_caret_p is false.
28059 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
28060 Force oldval into register if it does not satisfy reg_or_short_operand
28061 predicate. Fix up formatting.
28063 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
28064 Alexandre Oliva <aoliva@redhat.com>
28067 * lra-constraints.c (simplify_operand_subreg): Check additionally
28068 address validity after potential reloading.
28069 (process_address_1): Check insns validity. In case of failure do
28072 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
28075 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
28078 2016-02-02 Jakub Jelinek <jakub@redhat.com>
28080 * wide-int.cc (canonize_uhwi): New function.
28081 (wi::divmod_internal): Use it.
28083 2016-02-02 James Norris <jnorris@codesourcery.com>
28085 * gimplify.c (omp_notice_variable): Add usage check.
28087 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
28089 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
28090 like LE, GE, LT, GT when emitting relational operator.
28092 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
28094 * ira-costs.c (find_costs_and_classes): Add extra argument.
28095 * target.def (ira_change_pseudo_allocno_class): Add parameter.
28096 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
28097 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
28098 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
28099 Add best_class parameter, and return it if not ALL_REGS.
28100 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
28102 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
28103 Update target hook.
28105 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
28107 * config/aarch64/aarch64.c
28108 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
28109 (aarch64_ira_change_pseudo_allocno_class): New function.
28111 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
28114 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
28116 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
28118 * config/avr/avr.c (avr_option_override): Set
28119 PARAM_ALLOW_STORE_DATA_RACES to 1.
28121 2016-02-02 Richard Biener <rguenther@suse.de>
28123 PR tree-optimization/69595
28124 * match.pd: Add range test simplifications to true/false.
28126 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
28128 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
28129 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
28132 2016-02-02 Richard Biener <rguenther@suse.de>
28134 PR tree-optimization/69606
28135 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
28136 info on the result before moving a stmt.
28138 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
28140 PR middle-end/68542
28141 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
28142 branch with vector comparison.
28143 * config/i386/sse.md (VI48_AVX): New mode iterator.
28144 (define_expand "cbranch<mode>4): Add support for conditional branch
28145 with vector comparison.
28146 * tree-vect-loop.c (optimize_mask_stores): New function.
28147 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
28148 has_mask_store field of vect_info.
28149 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
28150 vectorized loops having masked stores after vec_info destroy.
28151 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
28152 correspondent macros.
28153 (optimize_mask_stores): Add prototype.
28155 2016-02-02 Alan Modra <amodra@gmail.com>
28158 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
28161 2016-02-02 Alan Modra <amodra@gmail.com>
28164 * config/rs6000/rs6000.c (need_toc_init): New var, set it
28165 whenever toc_label_name used.
28166 (rs6000_file_start): Don't set up toc section here,
28167 (rs6000_output_function_epilogue): do so here instead,
28168 (rs6000_xcoff_file_start): and here.
28169 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
28170 (load_toc_aix_di): Likewise.
28172 2016-02-01 Jakub Jelinek <jakub@redhat.com>
28174 PR rtl-optimization/69592
28175 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
28176 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
28177 (num_sign_bit_copies_binary_arith_p): New inline function.
28178 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
28180 2016-02-01 Jeff Law <law@redhat.com>
28182 PR tree-optimization/69580
28183 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
28184 * tree-ssa-threadbackward.c
28185 (fsm_find_control_statement_thread_paths): Do not try to walk
28186 through large PHI nodes.
28188 2016-02-01 Jakub Jelinek <jakub@redhat.com>
28190 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
28191 when count is incremented above limit, don't analyze further
28194 * omp-low.c (oacc_parse_default_dims): Avoid
28195 -Wsign-compare warning, make sure value fits into int
28196 rather than just unsigned int.
28198 2016-02-01 Bin Cheng <bin.cheng@arm.com>
28200 PR tree-optimization/67921
28201 * fold-const.c (split_tree): New parameters. Convert pointer
28202 type variable part to proper type before negating.
28203 (fold_binary_loc): Pass new arguments to split_tree.
28205 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
28207 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
28208 (nvptx_goacc_validate_dims): Extend to handle global defaults.
28209 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
28210 * doc/tm.texti: Rebuilt.
28211 * doc/invoke.texi (fopenacc-dim): Document.
28212 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
28213 (append_compiler_options): Likewise.
28214 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
28215 (oacc_parse_default_dims): New.
28216 (oacc_validate_dims): Add USED arg. Select non-unity default when
28218 (oacc_loop_fixed_partitions): Return mask of used partitions.
28219 (oacc_loop_auto_partitions): Emit dump info.
28220 (oacc_loop_partition): Return mask of used partitions.
28221 (execute_oacc_device_lower): Parse default dimension arg. Adjust
28222 loop partitioning and validation calls.
28224 2016-02-01 Richard Biener <rguenther@suse.de>
28226 PR middle-end/69556
28227 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
28229 2016-02-01 Richard Biener <rguenther@suse.de>
28231 PR tree-optimization/69574
28232 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
28233 of asserting return chrec_dont_know.
28235 2016-02-01 Martin Liska <mliska@suse.cz>
28237 * mem-stats-traits.h: Add copyright header.
28238 * mem-stats.h: Likewise.
28240 2016-02-01 Richard Biener <rguenther@suse.de>
28242 PR tree-optimization/69579
28243 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
28244 Do not propagate through abnormal PHI results.
28246 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
28248 * postreload.c (reload_cse_simplify): Remove dead code.
28250 2016-02-01 Jakub Jelinek <jakub@redhat.com>
28252 PR rtl-optimization/69570
28253 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
28254 if there is more than one set, not if there is a single set.
28256 2016-02-01 Richard Henderson <rth@redhat.com>
28259 * combine.c (make_compound_operation): When looking through a
28260 subreg, make sure to re-extend to the width of the outer mode.
28262 2016-01-30 Jakub Jelinek <jakub@redhat.com>
28264 PR tree-optimization/69546
28265 * wide-int.cc (wi::divmod_internal): For unsigned division
28266 where both operands fit into uhwi, if o1 is 1 and o0 has
28267 msb set, if divident_prec is larger than bits per hwi,
28268 clear another quotient word and return 2 instead of 1.
28269 Similarly for remainder with msb in HWI set, if dividend_prec
28270 is larger than bits per hwi.
28272 2016-01-29 Martin Jambor <mjambor@suse.cz>
28274 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
28275 Use short lowercase names.
28276 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
28277 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
28278 acq_rel one. Protect warning agains segfaults if
28279 get_memory_order_name returns NULL.
28280 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
28281 with release semantics. Do not warn if get_memory_order already did.
28282 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
28283 semantics. Fix check for relaxed or acquire semantics. Do not warn
28284 if get_memory_order already did.
28286 2016-01-29 Sebastian Pop <s.pop@samsung.com>
28288 * doc/install.texi: Document that isl-0.16 is supported.
28290 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
28293 * config/i386/constraints.md (Bm): Describe as special memory
28295 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
28296 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
28297 * genpreds.c (struct constraint_data): Add is_special_memory.
28298 (have_special_memory_constraints, special_memory_start): New
28300 (special_memory_end): Ditto.
28301 (add_constraint): Add new arg is_special_memory. Add code to
28302 process its true value. Update have_special_memory_constraints.
28303 (process_define_constraint): Pass the new arg.
28304 (process_define_register_constraint): Ditto.
28305 (choose_enum_order): Process special memory.
28306 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
28307 function insn_extra_special_memory_constraint.
28308 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
28309 * gensupport.c (process_rtx): Process
28310 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
28311 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
28312 * ira-lives.c (single_reg_class): Use
28313 insn_extra_special_memory_constraint.
28314 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
28315 * lra-constraints.c (process_alt_operands): Ditto.
28316 (curr_insn_transform): Use insn_extra_special_memory_constraint.
28317 * recog.c (asm_operand_ok, preprocess_constraints): Process
28319 * reload.c (find_reloads): Ditto.
28320 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
28321 * stmt.c (parse_input_constraint): Use
28322 insn_extra_special_memory_constraint.
28324 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
28327 * lra-splill.c (lra_final_code_change): Revert r229087 by
28328 removing all sub-registers.
28330 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
28333 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
28335 2016-01-29 Jakub Jelinek <jakub@redhat.com>
28338 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
28339 SSE1, copy target into the temporary reg first before recursing
28342 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
28344 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
28347 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
28349 * ginclude/stdarg.h: Test __cplusplus instead of
28350 __GXX_EXPERIMENTAL_CXX0X__.
28352 2016-01-29 Richard Biener <rguenther@suse.de>
28354 PR tree-optimization/69547
28355 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
28356 Do not mark clobbers necessary.
28357 (mark_all_reaching_defs_necessary_1): Likewise.
28359 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
28361 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
28362 declaration name with %qs and print it in both error messages.
28363 Also fix indentation.
28365 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
28368 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
28369 trailing blank line from error message.
28371 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
28374 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
28377 2016-01-29 Richard Biener <rguenther@suse.de>
28379 PR middle-end/69537
28380 * match.pd: Allow all integral types when simplifying a
28381 widening or sign-changing conversion.
28383 2016-01-28 Sebastian Pop <s.pop@samsung.com>
28385 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
28386 back to setting codegen_error to fail codegen.
28388 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
28391 * config/i386/constraints.md (C): Only accept constant zero operand.
28392 (BC): New constraint.
28393 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
28394 instead of C constraint.
28395 * doc/md.texi (Machine Constraints): Update description
28398 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
28401 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
28403 2016-01-28 Jakub Jelinek <jakub@redhat.com>
28405 PR middle-end/69542
28406 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
28409 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
28411 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
28412 branches if using guessed profile.
28414 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
28416 * graphite-optimize-isl.c (optimize_isl): Fix dump.
28418 2016-01-28 Richard Henderson <rth@redhat.com>
28421 * config/aarch64/aarch64-modes.def (CC_Cmode): New
28422 * config/aarch64/aarch64-protos.h: Update.
28423 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
28424 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
28425 (aarch64_get_condition_code_1): Handle CC_Cmode.
28426 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
28427 (*add<mode>3_compareC_cconly_imm): New.
28428 (*add<mode>3_compareC_cconly): New.
28429 (*add<mode>3_compareC_imm): New.
28430 (add<mode>3_compareC): New.
28431 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
28432 to be first. Use aarch64_carry_operation.
28433 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
28434 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
28435 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
28436 (subti3): Use subdi3_compare1.
28437 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
28438 (sub<mode>3_compare1): New.
28439 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
28440 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
28441 (*subsi3_carryin_uxtw): Likewise.
28442 (*ngc<mode>, *ngcsi_uxtw): Likewise.
28443 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
28444 * config/aarch64/iterators.md (DWI): New.
28445 * config/aarch64/predicates.md (aarch64_carry_operation): New.
28446 (aarch64_borrow_operation): New.
28448 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
28450 * graphite-optimize-isl.c (optimize_isl): Print a different debug
28451 message when isl does not return a valid schedule.
28453 2016-01-28 Sebastian Pop <s.pop@samsung.com>
28455 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
28456 Remove comments from class declarations: they are already in the code
28459 2016-01-28 Sebastian Pop <s.pop@samsung.com>
28461 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
28463 (ternary_op_to_tree): Same.
28464 (unary_op_to_tree): Same.
28465 (nary_op_to_tree): Same.
28466 (gcc_expression_from_isl_expr_op): Same.
28467 (gcc_expression_from_isl_expression): Same.
28468 (graphite_create_new_loop): Same.
28469 (graphite_create_new_loop_guard): Same.
28470 (build_iv_mapping): Same.
28471 (graphite_create_new_guard): Same.
28472 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
28473 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
28475 2016-01-28 Sebastian Pop <s.pop@samsung.com>
28477 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
28478 instead of setting codegen_error to fail codegen.
28480 2016-01-28 Jason Merrill <jason@redhat.com>
28482 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
28484 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
28486 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
28487 Remove CONST_INT_P check in CCMP cost calculation.
28489 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
28491 * config/aarch64/aarch64.c (generic_vector_cost):
28492 Set vec_permute_cost.
28493 (cortexa57_vector_cost): Likewise.
28494 (exynosm1_vector_cost): Likewise.
28495 (xgene1_vector_cost): Likewise.
28496 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
28497 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
28498 Add vec_permute_cost entry.
28500 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
28502 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
28504 (add<mode>3_compare0): Likewise.
28505 (addsi3_compare0_uxtw): Likewise.
28506 (add<mode>3nr_compare0): Likewise.
28507 (compare_neg<mode>): Likewise.
28508 (<optab><mode>3): Likewise.
28510 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
28512 * tree-vect-stmts.c (vectorizable_comparison): Add
28513 NULL check for vectype.
28515 2016-01-28 Richard Biener <rguenther@suse.de>
28517 PR tree-optimization/69466
28518 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
28519 Account for PHIs we couldn't duplicate.
28521 2016-01-28 Martin Liska <mliska@suse.cz>
28524 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
28525 instead of ENABLE_VALGRIND_CHECKING.
28527 2016-01-27 Richard Henderson <rth@redhat.com>
28530 * lra-remat.c (subreg_regs): New.
28531 (dump_candidates_and_remat_bb_data): Dump it.
28532 (operand_to_remat): Reject if operand in subreg_regs.
28533 (set_bb_regs): Collect subreg_regs.
28534 (lra_remat): Init and free subreg_regs. Compute
28535 calculate_local_reg_remat_bb_data before create_cands.
28537 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
28540 * config/i386/i386.c (ix86_update_stack_boundary): Don't
28541 change stack_alignment_needed for __tls_get_addr call.
28543 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
28545 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
28547 2016-01-27 Jeff Law <law@redhat.com>
28549 PR tree-optimization/68398
28550 PR tree-optimization/69196
28551 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
28552 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
28553 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
28554 Only count PHIs in the last block in the path. The others will
28555 const/copy propagate away. Add heuristic to allow more irreducible
28556 subloops to be created when it is likely profitable to do so.
28558 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
28559 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
28560 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
28562 2016-01-27 Jakub Jelinek <jakub@redhat.com>
28565 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
28566 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
28567 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
28568 * tree-streamer-in.c: Include asan.h.
28569 (streamer_get_builtin_tree): For builtins in sanitizer
28570 range call initialize_sanitizer_builtins and retry.
28572 2016-01-27 Ian Lance Taylor <iant@google.com>
28574 * common.opt (fkeep-gc-roots-live): New undocumented option.
28575 * tree-ssa-loop-ivopts.c (add_candidate_1): If
28576 -fkeep-gc-roots-live, skip pointers.
28577 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
28580 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
28583 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
28584 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
28586 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
28589 * configure.ac: NetBSD provides SSP in its C library.
28590 * configure: Updated.
28592 2016-01-27 Richard Biener <rguenther@suse.de>
28594 PR tree-optimization/69166
28595 * tree-vect-loop.c (vect_is_simple_reduction): Always check
28596 reduction code for commutativity / associativity.
28598 2016-01-27 Martin Jambor <mjambor@suse.cz>
28600 PR tree-optimization/69355
28601 * tree-sra.c (analyze_access_subtree): Correct hole detection when
28602 total_scalarization fails.
28604 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
28606 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
28609 2016-01-27 Christian Bruel <christian.bruel@st.com>
28612 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
28613 Move arm_reset_previous_fndecl and set_target_option_current_node in
28614 the conditional part. Call save_restore_target_globals.
28615 * config/arm/arm.c (arm_set_current_function):
28616 Refactor to better support #pragma target and attribute mix.
28617 Call save_restore_target_globals.
28618 * config/arm/arm-protos.h (save_restore_target_globals): New function.
28620 2016-01-27 Martin Liska <mliska@suse.cz>
28622 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
28623 reference for an HSA kernel and its host function.
28625 2016-01-27 Jakub Jelinek <jakub@redhat.com>
28627 PR tree-optimization/69399
28628 * wide-int.h (wi::lrshift): For larger precisions, only
28629 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
28631 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
28633 * config/arc/predicates.md (proper_comparison_operator): Reject
28634 constant-constant comparison.
28636 2016-01-26 Tom de Vries <tom@codesourcery.com>
28638 PR tree-optimization/69110
28639 * tree-data-ref.c (initialize_data_dependence_relation): Handle
28640 DR_NUM_DIMENSIONS == 0.
28642 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
28643 Sebastian Pop <s.pop@samsung.com>
28645 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
28646 isl_ast_op_cond and isl_ast_op_select.
28647 (gcc_expression_from_isl_expr_op): Same.
28649 2016-01-26 Jason Merrill <jason@redhat.com>
28652 * tree.c (recompute_constructor_flags): Split out from
28654 (verify_constructor_flags): New.
28655 * tree.h: Declare them.
28657 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
28659 PR rtl-optimization/69217
28660 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
28661 are no TYPE_FIELDS set for the record type.
28663 2016-01-26 Jakub Jelinek <jakub@redhat.com>
28666 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
28667 toc_label_name unconditionally.
28668 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
28669 SYMBOL_REF string. Use toc_label_name instead of constructing
28671 (rs6000_elf_declare_function_name): Use toc_label_name instead of
28672 constructing LCTOC1.
28674 2016-01-26 Martin Sebor <msebor@redhat.com>
28677 * doc/extend.texi (Common Type Attributes): Move text that talks about
28678 attribute packed from attribute aligned to the section discussing
28679 the former attribute for clarity.
28681 2016-01-26 Richard Henderson <rth@redhat.com>
28683 PR middle-end/60908
28684 * trans-mem.c (tm_region_init): Mark entry block as visited.
28686 2016-01-26 David Malcolm <dmalcolm@redhat.com>
28689 * diagnostic-show-locus.c (layout::print_source_line): Replace
28690 call to pp_newline with call to layout::print_newline.
28691 (layout::print_annotation_line): Likewise.
28692 (layout::move_to_column): Likewise.
28693 (layout::print_any_fixits): After printing any fixits, print a
28694 trailing newline, if necessary.
28695 (layout::print_newline): New method, resetting any colorization
28697 (diagnostic_show_locus): Move the pp_newline to before the
28698 early bailout. Remove dummy block enclosing the layout instance.
28699 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
28700 of pp_newline_and_flush with pp_flush.
28701 (diagnostic_append_note): Delete use of pp_newline.
28702 (diagnostic_append_note_at_rich_loc): Delete.
28703 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
28704 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
28705 when newline characters are added to the buffer.
28707 2016-01-26 Michael Matz <matz@suse.de>
28709 * configure.ac (ac_cv_std_swap_in_utility): New test.
28710 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
28711 * configure: Regenerate.
28712 * config.in: Regenerate.
28714 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
28716 * config/arc/arc.md (cstoresi4): Force operand into register.
28717 (arcset<code>): Fix predicate.
28718 (arcsetltu): Likewise.
28719 (arcsetgeu): Likewise.
28720 (arcsethi): Likewise.
28721 (arcsetls): Likewise.
28723 2016-01-26 Jakub Jelinek <jakub@redhat.com>
28725 PR tree-optimization/69483
28726 * gimple-fold.c (canonicalize_constructor_val): Return NULL
28727 if base has error_mark_node type.
28729 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
28732 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
28733 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
28735 (vget_lane_f16): Handle big-endian.
28736 (vgetq_lane_f16): Likewise.
28737 (vset_lane_f16): Likewise.
28738 (vsetq_lane_f16): Likewise.
28739 * config/arm/iterators.md (VQXMOV): Add V8HF.
28740 (VDQ): Add V4HF and V8HF.
28741 (V_reg): Handle V4HF and V8HF.
28742 (Is_float_mode): Likewise.
28743 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
28744 neon_vdup_nv8hf): New patterns.
28745 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
28746 Use VD_LANE iterator.
28747 (neon_vld1_dup<mode>): Use VQ2 iterator.
28749 2016-01-26 Nathan Sidwell <nathan@acm.org>
28751 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
28752 (set_oacc_fn_attrib): Add IS_KERNEL arg.
28753 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
28754 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
28755 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
28756 (oacc_validate_dims): Add LEVEL arg, don't return level.
28757 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
28758 oacc_validate_dims.
28759 (execute_oacc_device_lower): Adjust, add more dump output.
28760 * tree-ssa-loop.c (gate_oacc_kernels): Use
28761 oacc_fn_attrib_kernels_p.
28762 * tree-parloops.c (create_parallel_loop): Adjust
28763 set_oacc_fn_attrib call.
28765 2016-01-26 Jakub Jelinek <jakub@redhat.com>
28768 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
28769 (append_compiler_options): Handle -fcilkplus.
28770 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
28772 2016-01-26 Nick Clifton <nickc@redhat.com>
28775 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
28776 been marked as DECL_ONE_ONLY but we do not the means to make it
28777 so, then do not allow it to bind locally.
28779 2016-01-26 Jakub Jelinek <jakub@redhat.com>
28782 * opts.h (parse_sanitizer_options): New prototype.
28783 * opts.c (sanitizer_opts): New array.
28784 (parse_sanitizer_options): New function.
28785 (common_handle_option): Use parse_sanitizer_options.
28787 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
28790 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
28791 alignment adjustment to ...
28792 (ix86_update_stack_boundary): Here. Don't over-align stack for
28794 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
28795 if __tls_get_addr is called.
28797 2016-01-26 Christian Bruel <christian.bruel@st.com>
28799 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
28801 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
28803 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
28805 2016-01-26 Richard Biener <rguenther@suse.de>
28807 PR middle-end/69467
28808 * match.pd: Guard X * CST CMP 0 pattern with single_use.
28810 2016-01-26 Richard Biener <rguenther@suse.de>
28812 PR tree-optimization/69452
28813 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
28814 (move_computations_dom_walker::before_dom_children): Rename
28816 (move_computations_worker): This.
28817 (move_computations): Perform an RPO rather than a DOM walk.
28819 2016-01-26 Jakub Jelinek <jakub@redhat.com>
28822 * combine.c (combine_instructions): For REG_EQUAL note with
28823 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
28824 to the underlying register.
28825 * doc/rtl.texi (REG_EQUAL): Document the behavior of
28826 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
28828 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
28831 * config/aarch64/aarch64-builtins.c
28832 (aarch64_init_simd_builtin_types): Do not set structural
28833 equality to __Poly{8,16,64,128}_t types.
28835 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
28837 PR tree-optimization/69400
28838 * wide-int.cc (wi_pack): Take the precision as argument and
28839 perform canonicalization here rather than in the callers.
28840 Use the main loop to handle all full-width HWIs. Add a
28841 zero HWI if in_len isn't a full result.
28842 (wi::divmod_internal): Update accordingly.
28843 (wi::mul_internal): Likewise. Simplify.
28845 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
28846 Sebastian Pop <s.pop@samsung.com>
28848 * graphite-poly.c (apply_poly_transforms): Simplify.
28849 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
28850 (print_isl_map): Same.
28851 (print_isl_union_map): Same.
28852 (print_isl_schedule): New.
28853 (debug_isl_schedule): New.
28854 * graphite-dependences.c (scop_get_reads): Do not call
28855 isl_union_map_add_map that is undocumented isl functionality.
28856 (scop_get_must_writes): Same.
28857 (scop_get_may_writes): Same.
28858 (scop_get_original_schedule): Remove.
28859 (scop_get_dependences): Do not call isl_union_map_compute_flow that
28860 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
28861 (compute_deps): Remove.
28862 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
28863 (debug_schedule_ast): New.
28864 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
28865 set_separate_option.
28866 (graphite_regenerate_ast_isl): Add dump.
28867 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
28868 from scop->transformed_schedule.
28869 (graphite_regenerate_ast_isl): Add more dump.
28870 * graphite-optimize-isl.c (optimize_isl): Set
28871 scop->transformed_schedule. Check whether schedules are equal.
28872 (apply_poly_transforms): Move here.
28873 * graphite-poly.c (apply_poly_transforms): ... from here.
28874 (free_poly_bb): Static.
28875 (free_scop): Static.
28876 (pbb_number_of_iterations_at_time): Remove.
28877 (print_isl_ast): New.
28878 (debug_isl_ast): New.
28879 (debug_scop_pbb): New.
28880 * graphite-scop-detection.c (print_edge): Move.
28881 (print_sese): Move.
28882 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
28883 (build_scop_scattering): Remove.
28884 (create_pw_aff_from_tree): Assert instead of bailing out.
28885 (add_condition_to_pbb): Remove unused code, do not fail.
28886 (add_conditions_to_domain): Same.
28887 (add_conditions_to_constraints): Remove.
28888 (build_scop_context): New.
28889 (add_iter_domain_dimension): New.
28890 (build_iteration_domains): Initialize pbb->iterators.
28891 Call add_conditions_to_domain.
28894 (index_outermost_in_loop): New.
28895 (index_pbb_in_loop): New.
28896 (outermost_pbb_in): New.
28897 (add_in_sequence): New.
28898 (add_outer_projection): New.
28899 (outer_projection_mupa): New.
28900 (add_loop_schedule): New.
28901 (build_schedule_pbb): New.
28902 (build_schedule_loop): New.
28903 (embed_in_surrounding_loops): New.
28904 (build_schedule_loop_nest): New.
28905 (build_original_schedule): New.
28906 (build_poly_scop): Call build_original_schedule.
28907 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
28908 (free_poly_dr): Remove.
28909 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
28910 (free_poly_bb): Remove.
28911 (debug_loop_vec): Remove.
28912 (print_isl_ast): Declare.
28913 (debug_isl_ast): Declare.
28914 (scop_do_interchange): Remove.
28915 (scop_do_strip_mine): Remove.
28916 (scop_do_block): Remove.
28917 (flatten_all_loops): Remove.
28918 (optimize_isl): Remove.
28919 (pbb_number_of_iterations_at_time): Remove.
28920 (debug_scop_pbb): Declare.
28921 (print_schedule_ast): Declare.
28922 (debug_schedule_ast): Declare.
28923 (struct scop): Remove schedule. Add original_schedule,
28924 transformed_schedule.
28925 (free_gimple_poly_bb): Remove.
28926 (print_generated_program): Remove.
28927 (debug_generated_program): Remove.
28928 (unify_scattering_dimensions): Remove.
28929 * sese.c (print_edge): ... here.
28930 (print_sese): ... here.
28931 (debug_edge): ... here.
28932 (debug_sese): ... here.
28933 * sese.h (print_edge): Declare.
28934 (print_sese): Declare.
28935 (dump_edge): Declare.
28936 (dump_sese): Declare.
28938 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
28939 Sebastian Pop <s.pop@samsung.com>
28941 * Makefile.in: Set ISLVER in site.exp.
28943 2016-01-25 Jakub Jelinek <jakub@redhat.com>
28945 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
28946 DECL_VALUE_EXPR of new_var even for the non-array case. Look
28947 through DECL_VALUE_EXPR for expansion.
28949 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
28951 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
28952 the frame info after reload completed.
28954 2016-01-25 Jeff Law <law@redhat.com>
28956 PR tree-optimization/69196
28957 PR tree-optimization/68398
28958 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
28959 tree-ssa-threadupdate.c.
28960 (determine_bb_domination_status): Prototype
28961 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
28962 (determine_bb_domination_status): No longer static.
28963 (valid_jump_thread_path): Remove code to detect characteristics
28964 of the jump thread path not associated with correctness.
28965 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
28966 Correct test for thread path length. Count PHIs for real operands as
28967 statements that need to be copied. Do not count ASSERT_EXPRs.
28968 Look at all the blocks in the thread path. Compute and selectively
28969 filter thread paths based on threading through the latch, threading
28970 a multiway branch or crossing a multiway branch.
28972 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28974 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
28975 decl with __attribute__ ((unused)) annotation.
28977 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
28980 * tree-vect-stmts.c (vectorizable_condition): Check vectype
28981 of operands is compatible with a statement vectype.
28983 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
28985 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
28986 improve wording for mixed storage order support.
28988 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
28990 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
28991 (vcvt_u64_f64): Likewise.
28992 (vcvta_s64_f64): Likewise.
28993 (vcvta_u64_f64): Likewise.
28994 (vcvtm_s64_f64): Likewise.
28995 (vcvtm_u64_f64): Likewise.
28996 (vcvtn_s64_f64): Likewise.
28997 (vcvtn_u64_f64): Likewise.
28998 (vcvtp_s64_f64): Likewise.
28999 (vcvtp_u64_f64): Likewise.
29001 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
29003 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
29004 (arc_init): Check validity mll64 option.
29005 (arc_save_restore): Use double load/store instruction.
29006 (arc_expand_movmem): Likewise.
29007 (arc_split_move): Don't split if we have double load/store
29008 instructions. Returns a boolean.
29009 (arc_process_double_reg_moves): Change function to return boolean
29010 instead of a sequence of instructions.
29011 (arc_dwarf_register_span): New function.
29012 * config/arc/arc-protos.h (arc_split_move): Change prototype.
29013 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
29014 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
29015 (*movdf_insn): Likewise.
29016 * config/arc/arc.opt (mll64): New option.
29017 * config/arc/predicates.md (even_register_operand): New predicate.
29018 * doc/invoke.texi (ARC Options): Add mll64 documentation.
29020 2016-01-25 Richard Biener <rguenther@suse.de>
29023 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
29024 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
29026 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
29028 2016-01-25 Richard Biener <rguenther@suse.de>
29030 PR tree-optimization/69376
29031 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
29033 (VN_INFO_ANTI_RANGE_P): New inline.
29034 (VN_INFO_RANGE_TYPE): Likewise.
29035 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
29036 SSA_NAME_ANTI_RANGE_P.
29037 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
29038 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
29039 Properly query VN_INFO_RANGE_TYPE.
29041 2016-01-25 Nick Clifton <nickc@redhat.com>
29044 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
29046 2016-01-23 Tom de Vries <tom@codesourcery.com>
29048 PR tree-optimization/69426
29049 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
29052 2016-01-23 Jakub Jelinek <jakub@redhat.com>
29054 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
29055 "the the" with "the" in the comments.
29056 * ipa-devirt.c (build_type_inheritance_graph,
29057 update_type_inheritance_graph): Likewise.
29058 * tree.c (build_function_type_list_1): Likewise.
29059 * cfgloopmanip.c (scale_loop_profile): Likewise.
29060 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
29061 * gimple-ssa-split-paths.c
29062 (find_block_to_duplicate_for_splitting_paths): Likewise.
29063 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
29064 * expr.c (convert_move): Likewise.
29065 * var-tracking.c (vt_stack_adjustments): Likewise.
29066 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
29067 * tree-vrp.c (test_for_singularity): Likewise.
29069 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
29070 directly instead of building a temporary tree.
29073 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
29074 remove <algorithm> include.
29076 2016-01-22 Jakub Jelinek <jakub@redhat.com>
29079 * config/i386/i386.c: Include dojump.h.
29080 (expand_small_movmem_or_setmem,
29081 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
29083 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
29084 if dynamic_check != -1.
29086 2016-01-21 Jeff Law <law@redhat.com>
29088 PR middle-end/69347
29089 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
29090 record_temporary_equivalences. Rewritten to avoid unnecessary calls
29091 into dominated_by_p.
29092 (cprop_into_successor_phis): Avoid unnecessary tests.
29094 2016-01-22 Richard Henderson <rth@redhat.com>
29097 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
29098 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
29100 2016-01-22 Michael Matz <matz@suse.de>
29102 * system.h (string, algorithm): Include only conditionally.
29103 (new): Include always under C++.
29104 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
29105 * final.c (toplevel): Ditto.
29106 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
29107 * genconditions.c (write_header): Make gencondmd.c define
29109 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
29111 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
29112 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
29114 2016-01-22 Christian Bruel <christian.bruel@st.com>
29117 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
29119 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29122 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
29123 define_insn_and_split. Ensure operands[1] and operands[0] do not
29124 get assigned the same register.
29126 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
29128 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
29130 2016-01-22 Christian Bruel <christian.bruel@st.com>
29132 * config/arm/arm-c.c (arm_pragma_target_parse):
29133 Remove warn_builtin_macro_redefined overwrite.
29135 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
29137 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
29138 flag_non_call_exceptions compatibility.
29140 2016-01-22 Jakub Jelinek <jakub@redhat.com>
29143 * dwarf2out.c (add_child_die_after): New function.
29144 (dwarf_qual_info_t): New type.
29145 (dwarf_qual_info): New variable.
29146 (qualified_die_p): New function.
29147 (modified_type_die): For -fdebug-types-section, ensure
29148 canonical order of qualifiers. Put qualified DIEs adjacent
29149 to the corresponding non-qualified type DIE and search there
29150 for existing qualified DIEs.
29152 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
29154 * doc/extend.texi (scalar_storage_order type attribute): Document
29155 restriction on type punning and aliasing, and remove future tense.
29157 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
29160 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
29163 2016-01-21 Jeff Law <law@redhat.com>
29165 PR middle-end/69347
29166 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
29167 useless call to record_temporary_equivalences.
29168 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
29169 allocate 10 slots in the bb_path vector and let it grow as needed.
29170 (fsm_find_control_statement_thread_paths): Similarly for the next_path
29173 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
29175 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
29177 * configure: Regenerate.
29179 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
29181 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
29182 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
29184 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
29186 PR middle-end/66178
29187 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
29188 drop EXPAND_INITIALIZER.
29189 * rtl.h (contains_symbolic_reference_p): Declare.
29190 * rtlanal.c (contains_symbolic_reference_p): New function.
29191 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
29192 a subtraction into a NOT if symbolic constants are involved.
29194 2016-01-21 Anton Blanchard <anton@samba.org>
29195 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29198 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
29200 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
29203 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
29205 * config/microblaze/microblaze.c
29206 (get_branch_target): New.
29207 (insert_wic_for_ilb_runout): New.
29209 (microblaze_machine_dependent_reorg): New.
29210 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
29211 * config/microblaze/microblaze.md
29212 (UNSPEC_IPREFETCH): Define.
29213 (iprefetch): New pattern
29214 * config/microblaze/microblaze.opt
29215 (mxl-prefetch): New flag.
29217 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
29219 * config/microblaze/microblaze.h
29220 (FIXED_REGISTERS): Update in macro.
29221 (CALL_USED_REGISTERS): Update in macro.
29223 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
29225 PR rtl-optimization/68920
29226 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
29229 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
29231 PR rtl-optimization/68990
29232 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
29233 pseudo instead of inheritance ones.
29235 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
29236 Nick Clifton <nickc@redhat.com>
29240 * config/mips/mips.c (mips_compute_frame_info): Initialise
29241 args_size and hard_frame_pointer_offset fields of the frame
29242 structure before calling mips_global_pointer.
29244 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
29246 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
29248 * configure: Regenerate.
29250 2016-01-21 Richard Biener <rguenther@suse.de>
29252 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
29254 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
29256 * config/s390/s390.c (s390_asm_declare_function_size): Add code
29257 to actually emit the .size directive.
29259 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
29260 Jakub Jelinek <jakub@redhat.com>
29264 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
29265 args array size by one to avoid buffer overflow.
29267 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
29269 * config/s390/s390.md (pool_section_start): Use switch_to_section
29270 to select proper read-only data section instead of hardcoding
29272 (pool_section_end): Use switch_to_section to match the above.
29274 2016-01-21 Richard Biener <rguenther@suse.de>
29276 PR tree-optimization/69378
29277 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
29278 (set_ssa_val_to): Use it for dominance checks taking into
29279 account not executable edges.
29281 2016-01-21 Jakub Jelinek <jakub@redhat.com>
29284 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
29285 for bitsize instead of GET_MODE_PRECISION (mode).
29287 2016-01-20 Martin Sebor <msebor@redhat.com>
29290 * extend.texi (__sync Builtins): Clarify the semantics of
29291 __sync_fetch_and_OP built-ins on pointers.
29292 (__atomic Builtins): Same.
29294 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
29295 Sebastian Pop <s.pop@samsung.com>
29297 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
29298 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
29299 (is_valid_rename): Same.
29300 (translate_isl_ast_to_gimple::get_rename): Same.
29301 (translate_isl_ast_to_gimple::rename_all_uses): Same.
29302 (translate_isl_ast_to_gimple::rename_uses): Same.
29303 (get_new_name): Check for close_phi nodes.
29304 (copy_loop_phi_args): Use phi_node_kind.
29305 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
29306 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
29308 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
29309 Sebastian Pop <s.pop@samsung.com>
29311 Revert commit r229783.
29312 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
29313 Remove use of parameter_rename_map.
29314 (copy_def): Remove.
29315 (copy_internal_parameters): Remove.
29316 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
29317 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
29318 (free_sese_info): Do not free parameter_rename_map.
29319 (set_rename): Do not use parameter_rename_map.
29320 (rename_uses): Update call to set_rename.
29321 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
29322 * sese.h (parameter_rename_map_t): Remove.
29323 (struct sese_info_t): Remove field parameter_rename_map.
29325 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
29326 Sebastian Pop <s.pop@samsung.com>
29328 * graphite-isl-ast-to-gimple.c: Fix comment.
29329 * graphite-scop-detection.c (defined_in_loop_p): New.
29330 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
29331 names defined in loop.
29333 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
29334 Sebastian Pop <s.pop@samsung.com>
29336 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
29337 Discard unstructured if-then-else regions.
29339 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
29340 Sebastian Pop <s.pop@samsung.com>
29342 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
29343 (cleanup_loop_iter_dom): Remove.
29344 (build_loop_iteration_domains): Remove.
29345 (build_scop_context): Remove.
29346 (build_scop_iteration_domain): Remove.
29347 (add_loop_constraints): New.
29348 (build_iteration_domains): New.
29349 (build_poly_scop): Call build_iteration_domains.
29351 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
29352 Sebastian Pop <s.pop@samsung.com>
29354 * graphite-scop-detection.c
29355 (scop_detection::harmful_loop_in_region): Free dom and loops.
29356 (scop_detection::loop_body_is_valid_scop): Free bbs.
29358 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
29359 Sebastian Pop <s.pop@samsung.com>
29361 * graphite-scop-detection.c (record_loop_in_sese): New.
29362 (gather_bbs::before_dom_children): Call record_loop_in_sese.
29363 (build_scops): Remove call to build_sese_loop_nests.
29364 * sese.c (sese_record_loop): Remove.
29365 (build_sese_loop_nests): Remove.
29366 (new_sese_info): Remove region->loops.
29367 (free_sese_info): Same.
29368 * sese.h (sese_contains_loop): Same.
29369 (build_sese_loop_nests): Remove.
29370 (sese_contains_loop): Remove.
29372 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
29373 Sebastian Pop <s.pop@samsung.com>
29375 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
29376 loop_is_valid_in_scop.
29377 (scop_detection::harmful_stmt_in_region): Renamed
29378 harmful_loop_in_region.
29379 Call loop_is_valid_in_scop.
29381 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
29382 Sebastian Pop <s.pop@samsung.com>
29384 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
29387 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
29388 Sebastian Pop <s.pop@samsung.com>
29390 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
29391 * graphite.h (struct poly_bb): Remove field is_reduction.
29392 (PBB_IS_REDUCTION): Remove.
29394 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
29395 Sebastian Pop <s.pop@samsung.com>
29397 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
29398 (add_pdr_constraints): Same.
29399 (scop_get_reads): Same.
29400 (scop_get_must_writes): Same.
29401 (scop_get_may_writes): Same.
29402 (scop_get_original_schedule): Same.
29403 (extend_schedule): Same.
29404 (apply_schedule_on_deps): Same.
29405 (carries_deps): Same.
29406 (compute_deps): Same.
29407 (scop_get_dependences): Same.
29408 * graphite-isl-ast-to-gimple.c
29409 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
29410 * graphite-optimize-isl.c (get_schedule_for_band): Same.
29411 (get_schedule_for_band_list): Same.
29412 (get_schedule_map): Same.
29413 (apply_schedule_map_to_scop): Same.
29414 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
29415 (build_loop_iteration_domains): Same.
29416 (add_condition_to_pbb): Same.
29417 (add_param_constraints): Same.
29418 (pdr_add_memory_accesses): Same.
29419 (pdr_add_data_dimensions): Same.
29421 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
29423 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
29426 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
29428 * common.opt (feliminate-dwarf2-dups): Replace references to
29429 "DWARF 2" with just "DWARF".
29430 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
29431 * doc/extend.texi: Likewise.
29432 * doc/cpp.texi: Likewise.
29433 * doc/invoke.texi: Likewise.
29434 (Option Summary): Add -gdwarf to list of Debugging Options.
29435 (Debugging Options): Document -gdwarf.
29436 * doc/contrib.texi: Spell "DWARF" like that.
29438 2016-01-21 Jakub Jelinek <jakub@redhat.com>
29440 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
29441 warning. Fix up formatting.
29443 PR middle-end/67653
29444 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
29445 attempt to mark memory input operand addressable and
29446 call prepare_gimple_addressable in that case. Don't adjust
29447 input_location for diagnostics, use error_at instead.
29449 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
29451 * config/rs6000/ppc-auxv.h: New file.
29452 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
29453 (cpu_is): Likewise.
29454 (cpu_supports): Likewise.
29455 * config/rs6000/rs6000.c: include "ppc-auxv.h".
29456 (cpu_is_info): New variable.
29457 (cpu_supports_info): Likewise.
29458 (tcb_verification_symbol): Likewise.
29459 (cpu_builtin_p): Likewise.
29460 (cpu_expand_builtin): New function.
29461 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
29462 (rs6000_init_builtins): Likewise.
29463 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
29464 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
29465 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
29466 * configure: Regenerate.
29467 * config.in: Likewise.
29468 * doc/extend.texi (PowerPC Built-in Functions): Document
29469 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
29471 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
29474 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
29476 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
29479 2016-01-20 Richard Henderson <rth@redhat.com>
29485 * tree.c (tm_define_builtin): New.
29486 (find_tm_vector_type): New.
29487 (build_tm_vector_builtins): New.
29488 (build_common_builtin_nodes): Call it.
29490 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
29492 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
29493 (arm_fp_ok): Likewise.
29494 (arm_fp): Likewise.
29495 (arm_crypto): Likewise.
29497 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
29498 Richard Biener <rguenther@suse.de>
29500 PR tree-optimization/69328
29501 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
29502 vectors have same number of elements.
29503 (vectorizable_condition): Fix masked version recognition.
29505 2016-01-20 Richard Biener <rguenther@suse.de>
29507 PR tree-optimization/69345
29508 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
29509 (VN_INFO_PTR_INFO): Likewise.
29510 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
29511 info when it is equal between non-dominating SSA names.
29512 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
29513 Make sure to look at original SSA infos.
29515 2016-01-20 Jeff Law <law@redhat.com>
29518 * config/m68k/predicates.md (pow2_m1_operand): New predicate
29520 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
29521 (pc_or_label_operand): New predicate.
29522 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
29523 tests for small integers that are 2^n - 1.
29525 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
29527 * doc/invoke.texi (Options Summary): Add '.' after @xref.
29529 2016-01-19 Jeff Law <law@redhat.com>
29531 PR middle-end/69347
29532 * tree-ssa-threadbackwards.c
29533 (fsm_find_control_statement_thread_paths): Do not try to lookup
29534 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
29536 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
29538 * doc/lto.texi: Remove text that says only Gold has linker plugin
29541 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
29543 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
29544 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
29545 the DIE accordingly.
29546 (modified_type_die): Add REVERSE parameter and pass it recursively,
29547 as well as to base_type_die. Adjust presence check accordingly.
29548 (base_type_for_mode): Adjust call to modified_type_die.
29549 (add_type_attribute): Add REVERSE parameter and pass it to
29551 (generic_parameter_die): Adjust call to add_type_attribute.
29552 (add_scalar_info): Likewise.
29553 (add_subscript_info): Likewise.
29554 (gen_array_type_die): Likewise.
29555 (gen_descr_array_type_die): Likewise.
29556 (gen_entry_point_die): Likewise.
29557 (gen_enumeration_type_die): Likewise.
29558 (gen_formal_parameter_die): Likewise.
29559 (gen_subprogram_die): Likewise.
29560 (gen_variable_die ): Likewise.
29561 (gen_const_die): Likewise.
29562 (gen_field_die): Likewise.
29563 (gen_pointer_type_die): Likewise.
29564 (gen_reference_type_die): Likewise.
29565 (gen_ptr_to_mbr_type_die): Likewise.
29566 (gen_inheritance_die): Likewise.
29567 (gen_subroutine_type_die): Likewise.
29568 (gen_typedef_die): Likewise.
29569 (force_type_die): Adjust call to modified_type_die.
29571 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
29573 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
29574 flow throughout the file. Fix broken link to Objective-C 2.0
29576 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
29579 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
29581 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
29583 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
29586 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
29587 (maybe_record_node): Record cxa_pure_virtual as the only possible
29588 target if there are not ohter candidates.
29589 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
29591 2016-01-19 Richard Biener <rguenther@suse.de>
29593 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
29594 (get_memory_order): Likewise.
29596 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
29598 * tree-vect-stmts.c (vectorizable_store): Check
29601 2016-01-19 David Malcolm <dmalcolm@redhat.com>
29604 * gcc.c (driver::decode_argv): Add call to
29605 init_opts_obstack before init_options_struct.
29606 * opts.c (init_opts_obstack): Remove idempotency.
29607 (init_options_struct): Replace call to init_opts_obstack
29608 with a gcc_assert to verify that it has already been called.
29609 * toplev.c (toplev::main): Add call to init_opts_obstack before
29610 calls to init_options_struct.
29611 (toplev::finalize): Move cleanup of opts_obstack next to
29612 cleanup of save_decoded_options, clearing the latter, and
29613 save_decoded_options_count.
29615 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29618 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
29619 attribute to unconditional. Remove %? from output template.
29621 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
29622 Jiong Wang <jiong.wang@arm.com>
29624 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
29625 generated from different expand order.
29627 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
29629 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
29630 Add support for CCMP costing.
29632 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
29634 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
29635 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
29636 (fccmpe<mode>): Likewise.
29637 (fcmp): Rename to fcmp and globalize pattern.
29639 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
29640 (aarch64_gen_ccmp_next): Add FP support.
29642 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
29644 * target.def (gen_ccmp_first): Update documentation.
29645 (gen_ccmp_next): Likewise.
29646 * doc/tm.texi (gen_ccmp_first): Update documentation.
29647 (gen_ccmp_next): Likewise.
29648 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
29649 expand_ccmp_expr_1. Improve comments.
29650 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
29651 (ccmp_ior<mode>): Remove pattern.
29652 (cmp<mode>): Remove expand.
29653 (cmp): Globalize pattern.
29654 (cstorecc4): Use cc_register.
29655 (mov<mode>cc): Remove ccmp_cc_register check.
29656 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
29657 Simplify after removal of CC_DNE/* modes.
29658 (aarch64_ccmp_mode_to_code): Remove.
29659 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
29660 In 'k' case use integer as condition.
29661 (aarch64_nzcv_codes): Remove inverted cases.
29662 (aarch64_code_to_ccmode): Remove.
29663 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
29664 comparison with CC register to be used in folowing CCMP/branch/CSEL.
29665 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
29666 pattern. Return the comparison with CC register. Invert conditions
29667 when bitcode is OR.
29668 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
29669 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
29671 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
29673 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
29674 instrumented_version.
29676 2016-01-19 Richard Biener <rguenther@suse.de>
29678 PR tree-optimization/69336
29679 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
29680 handled components with get_ref_base_and_extent.
29681 (equal_mem_array_ref_p): Adjust.
29683 2016-01-19 Jakub Jelinek <jakub@redhat.com>
29686 * shrink-wrap.c: Include valtrack.h.
29687 (move_insn_for_shrink_wrap): Add DEBUG argument. If
29688 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
29689 in between insn and where it will be moved to. Call
29690 dead_debug_insert_temp.
29691 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
29692 first and dead_debug_local_finish at the end.
29693 For uses and defs bitmap, handle all regs in between REGNO and
29694 END_REGNO, not just the first one.
29696 2016-01-19 Richard Biener <rguenther@suse.de>
29698 PR tree-optimization/69352
29699 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
29700 (equal_mem_array_ref_p): Constrain size and max size properly.
29701 Compare the reverse flag.
29703 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
29705 * ira.c (ira): Update regstat data if we deleted insns.
29707 2016-01-19 Jakub Jelinek <jakub@redhat.com>
29709 PR rtl-optimization/68955
29710 PR rtl-optimization/64557
29711 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
29712 here. Fix up formatting.
29713 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
29715 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
29718 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
29719 assume that the node has body.
29720 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
29723 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
29725 * lto-streamer-out.c (lto_output): Do not stream instrumentation
29728 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
29730 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
29731 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
29733 2016-01-19 Martin Jambor <mjambor@suse.cz>
29734 Martin Liska <mliska@suse.cz>
29735 Michael Matz <matz@suse.de>
29737 * Makefile.in (OBJS): Add new source files.
29738 (GTFILES): Add hsa.c.
29739 * common.opt (disable_hsa): New variable.
29740 (-Whsa): New warning.
29741 * config.in (ENABLE_HSA): New.
29742 * configure.ac: Treat hsa differently from other accelerators.
29743 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
29744 $enable_offloading.
29745 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
29746 * doc/install.texi (Configuration): Document --with-hsa-runtime,
29747 --with-hsa-runtime-include, --with-hsa-runtime-lib and
29748 --with-hsa-kmt-lib.
29749 * doc/invoke.texi (-Whsa): Document.
29750 (hsa-gen-debug-stores): Likewise.
29751 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
29752 to invoke offload compiler for hsa acclerator.
29753 * opts.c (common_handle_option): Determine whether HSA offloading
29754 should be performed.
29755 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
29756 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
29757 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
29758 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
29759 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
29760 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
29761 GF_OMP_FOR_KIND_GRID_LOOP.
29762 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
29763 (pp_gimple_stmt_1): Likewise.
29764 * gimple-walk.c (walk_gimple_stmt): Likewise.
29765 * gimple.c (gimple_build_omp_grid_body): New function.
29766 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
29767 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
29768 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
29769 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
29770 GF_OMP_TEAMS_GRID_PHONY.
29771 (gimple_statement_omp_single_layout): Updated comments.
29772 (gimple_build_omp_grid_body): New function.
29773 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
29774 (gimple_omp_for_grid_phony): New function.
29775 (gimple_omp_for_set_grid_phony): Likewise.
29776 (gimple_omp_parallel_grid_phony): Likewise.
29777 (gimple_omp_parallel_set_grid_phony): Likewise.
29778 (gimple_omp_teams_grid_phony): Likewise.
29779 (gimple_omp_teams_set_grid_phony): Likewise.
29780 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
29781 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
29782 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
29783 (BUILT_IN_GOMP_TARGET): Updated type.
29784 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
29785 (adjust_for_condition): New function.
29786 (get_omp_for_step_from_incr): Likewise.
29787 (extract_omp_for_data): Moved parts to adjust_for_condition and
29788 get_omp_for_step_from_incr.
29789 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
29790 (fixup_child_record_type): Bail out if receiver_decl is NULL.
29791 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
29792 (scan_omp_parallel): Do not create child functions for phony
29794 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
29795 (scan_omp_1_op): Checking assert we are not remapping to
29796 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
29797 (parallel_needs_hsa_kernel_p): New function.
29798 (expand_parallel_call): Register apprpriate parallel child
29799 functions as HSA kernels.
29800 (grid_launch_attributes_trees): New type.
29801 (grid_attr_trees): New variable.
29802 (grid_create_kernel_launch_attr_types): New function.
29803 (grid_insert_store_range_dim): Likewise.
29804 (grid_get_kernel_launch_attributes): Likewise.
29805 (get_target_argument_identifier_1): Likewise.
29806 (get_target_argument_identifier): Likewise.
29807 (get_target_argument_value): Likewise.
29808 (push_target_argument_according_to_value): Likewise.
29809 (get_target_arguments): Likewise.
29810 (expand_omp_target): Call get_target_arguments instead of looking
29811 up for teams and thread limit.
29812 (grid_expand_omp_for_loop): New function.
29813 (grid_arg_decl_map): New type.
29814 (grid_remap_kernel_arg_accesses): New function.
29815 (grid_expand_target_kernel_body): New function.
29816 (expand_omp): Call it.
29817 (lower_omp_for): Do not emit phony constructs.
29818 (lower_omp_taskreg): Do not emit phony constructs but create for them
29819 a temporary variable receiver_decl.
29820 (lower_omp_taskreg): Do not emit phony constructs.
29821 (lower_omp_teams): Likewise.
29822 (lower_omp_grid_body): New function.
29823 (lower_omp_1): Call it.
29824 (grid_reg_assignment_to_local_var_p): New function.
29825 (grid_seq_only_contains_local_assignments): Likewise.
29826 (grid_find_single_omp_among_assignments_1): Likewise.
29827 (grid_find_single_omp_among_assignments): Likewise.
29828 (grid_find_ungridifiable_statement): Likewise.
29829 (grid_target_follows_gridifiable_pattern): Likewise.
29830 (grid_remap_prebody_decls): Likewise.
29831 (grid_copy_leading_local_assignments): Likewise.
29832 (grid_process_kernel_body_copy): Likewise.
29833 (grid_attempt_target_gridification): Likewise.
29834 (grid_gridify_all_targets_stmt): Likewise.
29835 (grid_gridify_all_targets): Likewise.
29836 (execute_lower_omp): Call grid_gridify_all_targets.
29837 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
29838 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
29839 (tree_omp_clause): Added union field dimension.
29840 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
29841 * tree.c (omp_clause_num_ops): Added number of arguments of
29842 OMP_CLAUSE__GRIDDIM_.
29843 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
29844 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
29845 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
29846 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
29847 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
29848 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
29849 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
29850 * tree-pass.h (make_pass_gen_hsail): Declare.
29851 (make_pass_ipa_hsa): Likewise.
29852 * ipa-hsa.c: New file.
29853 * lto-section-in.c (lto_section_name): Add hsa section name.
29854 * lto-streamer.h (lto_section_type): Add hsa section.
29855 * timevar.def (TV_IPA_HSA): New.
29856 * hsa-brig-format.h: New file.
29857 * hsa-brig.c: New file.
29858 * hsa-dump.c: Likewise.
29859 * hsa-gen.c: Likewise.
29862 * toplev.c (compile_file): Call hsa_output_brig.
29863 * hsa-regalloc.c: New file.
29865 2016-01-18 Jeff Law <law@redhat.com>
29867 PR tree-optimization/69320
29868 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
29869 ranged object, do nothing if the RHS constant is not [0..1].
29870 (optimize_stmt): Comparing a boolean ranged object against a
29871 constant outside [0..1] results in a compile-time constant.
29873 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
29876 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
29878 * doc/invoke.texi (Invoking GCC): Add new section to menu.
29879 (Option Summary): Update to reflect new section and moved options.
29880 (C++ Dialect Options): Move -fstats to new section.
29881 (Debugging Options): Move all dump, statistics, and other GCC
29882 developer options to new section. Rewrite section introduction
29883 and re-order remaining options to put the more basic ones first.
29884 (Optimization Options): Move -fira-verbose and -flto-report* to
29886 (Developer Options): New section incorporating moved options.
29887 * doc/cppopts.texi (-dM): Update cross-reference.
29889 2016-01-18 Richard Henderson <rth@redhat.com>
29892 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
29893 operands to pseudo only if CSE is expected. Split long immediate
29894 operands only after reload, and for the stack pointer.
29895 (*add<GPI>3_pluslong): Remove.
29896 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
29897 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
29898 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
29899 (*add<GPI>3 peepholes): New.
29900 (*add<GPI>3 splitters): New.
29901 * config/aarch64/constraints.md (Upl): New.
29902 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
29904 2016-01-18 Richard Biener <rguenther@suse.de>
29906 PR tree-optimization/69297
29907 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
29909 (vect_bb_vectorization_profitable_p): Clear visited flag again.
29911 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
29913 PR middle-end/68542
29914 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
29915 of mixind vector and scalar types.
29916 (fold_relational_const): Add handling of vector
29917 comparison with boolean result.
29918 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
29919 comparison of vector operands with boolean result for EQ/NE only.
29920 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
29921 (verify_gimple_cond): Likewise.
29922 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
29925 2016-01-18 Joseph Myers <joseph@codesourcery.com>
29927 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
29930 2016-01-18 Richard Biener <rguenther@suse.de>
29932 PR middle-end/69308
29933 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
29935 2016-01-18 Tom de Vries <tom@codesourcery.com>
29937 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
29939 2016-01-18 Tom de Vries <tom@codesourcery.com>
29941 * omp-low.c (set_oacc_fn_attrib): Make extern.
29942 * omp-low.h (set_oacc_fn_attrib): Declare.
29943 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
29944 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
29945 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
29946 Add and handle function parameter oacc_kernels_p.
29947 (find_reduc_addr, get_omp_data_i_param): New function.
29948 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
29949 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
29950 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
29951 Calculate dominance info. Skip loops that are not in a kernels region
29952 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
29953 (pass_parallelize_loops::execute): Call parallelize_loops with
29954 oacc_kernels_p argument.
29955 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
29956 New member function.
29957 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
29958 * passes.def: Add argument to pass_parallelize_loops instantation.
29960 2016-01-18 Tom de Vries <tom@codesourcery.com>
29962 * tree-parloops.c (pass_parallelize_loops::execute): Allow
29963 pass_parallelize_loops to be run outside the loop pipeline.
29965 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
29967 * tree-scalar-evolution.c (follow_copies_to_constant): New.
29968 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
29970 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
29973 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
29974 using get_ref_base_and_extent.
29975 (equal_mem_array_ref_p): New.
29976 (hashable_expr_equal_p): Add call to previous.
29978 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
29981 * tree-sra.c (disqualified_constants, constant_decl_p): New.
29982 (sra_initialize): Allocate disqualified_constants.
29983 (sra_deinitialize): Free disqualified_constants.
29984 (disqualify_candidate): Update disqualified_constants when appropriate.
29985 (create_access): Scan for constant-pool entries as we go along.
29986 (scalarizable_type_p): Add check against type_contains_placeholder_p.
29987 (maybe_add_sra_candidate): Allow constant-pool entries.
29988 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
29989 (initialize_constant_pool_replacements): New.
29990 (sra_modify_assign): Avoid mangling assignments created by previous,
29991 and don't generate writes into constant pool.
29992 (sra_modify_function_body): Call initialize_constant_pool_replacements.
29994 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
29996 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
29997 andnot instruction.
29998 (scalar_chain::convert_op): Likewise.
29999 * config/i386/i386.md (*andndi3_doubleword): New.
30001 2016-01-18 Richard Biener <rguenther@suse.de>
30003 PR tree-optimization/69170
30004 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
30005 building a vector from scalar results of a pattern stmt.
30007 2016-01-18 Jakub Jelinek <jakub@redhat.com>
30009 * haifa-sched.c (autopref_multipass_init): Work around
30010 -Wmaybe-uninitialized warning.
30012 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
30014 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
30015 against the constant 0.
30017 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30019 PR tree-optimization/68799
30020 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
30021 look up phi candidates in the statement-candidate map.
30022 (phi_add_costs): Likewise.
30023 (record_phi_increments): Likewise.
30024 (phi_incr_cost): Likewise.
30025 (ncd_with_phi): Likewise.
30026 (all_phi_incrs_profitable): Likewise.
30028 2016-01-17 Jakub Jelinek <jakub@redhat.com>
30030 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
30031 -Wmaybe-uninitialized warning.
30033 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
30035 * doc/invoke.texi (Invoking GCC): Add new section to menu.
30036 (Option Summary): Update to reflect new section and moved options.
30037 (C++ Dialect Options): Move -fvtable-verify and related options.
30038 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
30039 and profiling-related options.
30040 (Optimization Options): Move profile generation options and
30041 -fstack-protector and related options.
30042 (Instrumentation Options): New section incorporating moved options.
30043 (Code Generation Options): Move -finstrument-functions and
30044 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
30046 2016-01-16 Tom de Vries <tom@codesourcery.com>
30048 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
30050 2016-01-16 Tom de Vries <tom@codesourcery.com>
30052 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
30054 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
30056 * hash-table.h (hash_table::empty): Turn into an inline wrapper
30057 that checks whether the table is already empty. Rename the
30058 original implementation to...
30059 (hash_table::empty_slot): ...this new private function.
30061 2016-01-15 David Malcolm <dmalcolm@redhat.com>
30063 PR diagnostic/68899
30064 * diagnostic-show-locus.c (layout::print_source_line): Move x
30065 offset of line until after call to
30066 get_line_width_without_trailing_whitespace.
30068 2016-01-15 Jeff Law <law@redhat.com>
30070 PR tree-optimization/69270
30071 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
30072 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
30073 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
30074 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
30075 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
30076 ssa_name_has_boolean_range and constant_boolean_node.
30078 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
30080 PR rtl-optimization/69030
30081 * lra-spills.c (remove_pseudos): Check nrefs and make the function
30083 (spill_pseudos): Delete debug insn for dead pseudo.
30084 (lra_spill): Initiate spill_hard_reg and slots memory separately.
30086 2016-01-15 Jiong Wang <jiong.wang@arm.com>
30088 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
30090 (TYPES_UNOPUS): Likewise.
30091 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
30092 builtin type, from UNOP to UNOPUS.
30093 (lbtruncuv4sf): Likewise.
30094 (lbtruncuv2df): Likewise.
30095 (lrounduv2sf): Likewise.
30096 (lrounduv4sf): Likewise.
30097 (lrounduv2df): Likewise.
30098 (lroundusf): Likewise.
30099 (lroundusf): Likewise.
30100 (lceiluv2sf): Likewise.
30101 (lceiluv4sf): Likewise.
30102 (lceiluv2df): Likewise.
30103 (lceilusf): Likewise.
30104 (lceiludf): Likewise.
30105 (lflooruv2sf): Likewise.
30106 (lflooruv4sf): Likewise.
30107 (lflooruv2df): Likewise.
30108 (lfloorusf): Likewise.
30109 (lfloorudf): Likewise.
30110 (lfrintnuv2sf): Likewise.
30111 (lfrintnuv4sf): Likewise.
30112 (lfrintnuv2df): Likewise.
30113 (lfrintnusf): Likewise.
30114 (lfrintnudf): Likewise.
30115 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
30117 (vcvtq_u32_f32): Likewise.
30118 (vcvtq_u64_f64): Likewise.
30119 (vcvta_u32_f32): Likewise.
30120 (vcvtaq_u32_f32): Likewise.
30121 (vcvtaq_u64_f64): Likewise.
30122 (vcvtm_u32_f32): Likewise.
30123 (vcvtmq_u32_f32): Likewise.
30124 (vcvtmq_u64_f64): Likewise.
30125 (vcvtn_u32_f32): Likwise.
30126 (vcvtnq_u32_f32): Likewise.
30127 (vcvtnq_u64_f64): Likewise.
30128 (vcvtp_u32_f32): Likewise.
30129 (vcvtpq_u32_f32): Likewise.
30130 (vcvtpq_u64_f64): Likewise.
30131 (vcvtmd_u64_f64): Likewise.
30132 (vcvtms_u32_f32): Likewise.
30133 (vcvtad_u64_f64): Likewise.
30134 (vcvtas_u32_f32): Likewise.
30135 (vcvtnd_u64_f64): Likewise.
30136 (vcvtns_u32_f32): Likewise.
30137 (vcvtpd_u64_f64): Likewise.
30138 (vcvtps_u32_f32): Likewise.
30140 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30142 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
30143 CSEL of zero_extended registers.
30145 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30147 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
30148 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
30150 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30152 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
30153 false when argument string is not found in the attributes table
30156 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
30159 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
30160 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
30161 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
30162 precision estimate.
30164 2016-01-15 Richard Biener <rguenther@suse.de>
30166 PR tree-optimization/66856
30167 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
30168 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
30169 (vect_create_new_slp_node): Increment stmt reference count.
30170 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
30171 an SLP tree before swapping operands.
30172 (vect_build_slp_tree): Likewise.
30173 (destroy_bb_vec_info): Free stmt info after SLP instances.
30174 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
30175 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
30176 (STMT_VINFO_NUM_SLP_USES): New macro.
30178 2016-01-15 Richard Biener <rguenther@suse.de>
30181 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
30182 (add_linkage_name): ... here.
30183 (gen_typedef_die): Use add_linkage_name_raw instead of
30184 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
30187 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
30189 * gimplify.c (oacc_default_clause): Decode reference and pointer
30190 types for both kernels and parallel regions.
30192 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
30194 PR middle-end/69246
30195 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
30197 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
30199 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
30200 (convert_scalars_to_vector): Likewise.
30202 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
30204 * doc/extend.texi (Type Traits): Fix grammar.
30206 2016-01-15 Martin Jambor <mjambor@suse.cz>
30208 * tree-inline.c (remap_decl): Use existing dclarations if
30209 remapping a type and prevent_decl_creation_for_types.
30210 (replace_locals_stmt): Do an initial remapping of non-VLA typed
30211 decls first. Do real remapping with
30212 prevent_decl_creation_for_types set.
30213 * tree-inline.h (copy_body_data): New field
30214 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
30217 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
30219 * config/s390/s390.opt (mmvcle): More verbose help text.
30221 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
30223 * config/s390/s390.opt: Add period to -mzvector option text.
30225 2016-01-15 Richard Biener <rguenther@suse.de>
30227 PR tree-optimization/68961
30228 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
30229 of invariants in stores again.
30231 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
30233 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
30235 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
30237 * config/i386/i386.c (ix86_expand_branch): Don't split
30238 DI mode xor instruction to SI mode.
30240 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
30243 * ipa-icf.c (sem_function::merge): Virtual functions may become
30244 reachable even if they address is not taken and there are no
30247 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
30249 * lto-streamer-out.c (subtract_estimated_size): New function.
30250 (get_symbol_initial_value): Use it.
30252 2016-01-15 Christian Bruel <christian.bruel@st.com>
30255 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
30256 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
30257 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
30258 use add_builtin_function_ext_scope instead of add_builtin_function.
30259 (neon_set_p, neon_crypto_set_p): Remove.
30260 (arm_init_builtins): Always call arm_init_neon_builtins and
30261 arm_init_crypto_builtins.
30262 (arm_expand_builtin): Check that builtins are allowed for the arch.
30263 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
30264 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
30265 arm_init_neon_builtins call.
30267 2016-01-15 Richard Biener <rguenther@suse.de>
30269 PR tree-optimization/69117
30270 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
30271 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
30272 of the leader conservatively.
30273 (free_scc_vn): Restore original SSA name infos.
30275 2016-01-14 Jeff Law <law@redhat.com>
30277 PR tree-optimization/69270
30278 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
30279 single bit of precision, verify it's also unsigned.
30280 (record_edge_info): Use constant_boolean_node rather than fold_convert
30281 to convert boolean_true/boolean_false to the right type.
30283 2016-01-14 Richard Henderson <rth@redhat.com>
30286 * loop-doloop.c (record_reg_sets): New.
30287 (doloop_optimize): Reject the transform if the sequence
30288 clobbers registers live at the end of the loop block.
30289 (doloop_optimize_loops): Enable df_live if needed.
30291 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
30293 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
30294 * config/rs6000/rs6000.c: Likewise.
30295 * config/rs6000/rs6000.h: Likewise.
30296 * config/rs6000/rs6000.md: Likewise.
30297 * doc/extend.texi: Likewsie.
30299 2016-01-14 Jeff Law <law@redhat.com>
30301 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
30304 2016-01-14 Richard Henderson <rth@redhat.com>
30308 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
30309 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
30310 instead of builtin_decl_declared_p to test for declaration.
30312 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
30314 * doc/loop.texi (Loop Analysis and Representation): Document
30315 loop_depth function.
30317 2016-01-14 Tom de Vries <tom@codesourcery.com>
30319 PR tree-optimization/68773
30320 * omp-low.c (expand_omp_target): Don't set force_output.
30321 * varpool.c (varpool_node::get_create): Same.
30322 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
30323 offload_funcs with force_output.
30325 2016-01-14 Jakub Jelinek <jakub@redhat.com>
30328 * lra-eliminations.c (move_plus_up): Don't change anything if either
30329 the outer or inner subreg mode is not MODE_INT.
30330 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
30331 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
30333 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
30335 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
30336 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
30337 reduc_uplus_@var{m}): Remove.
30338 * expr.c (expand_expr_real_2): Remove expansion path for
30339 reduc_[us](min|max|plus) optabs.
30340 * optabs-tree.c (scalar_reduc_to_vector): Remove.
30341 * optabs-tree.h (scalar_reduc_to_vector): Remove.
30342 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
30343 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
30344 * tree-vect-loop.c (vectorizable_reduction): Remove test for
30345 reduc_[us](min|max|plus) optabs.
30347 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
30349 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
30350 (reduc_plus_scal_v2sf): New.
30351 (reduc_smax_v2sf): Rename to...
30352 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
30353 (reduc_smin_v2sf): Rename to...
30354 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
30356 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
30358 * alias.c (compare_base_symbol_refs): New function.
30359 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
30362 2016-01-14 Jakub Jelinek <jakub@redhat.com>
30364 PR middle-end/68146
30365 PR tree-optimization/69155
30366 * tree-complex.c: Include cfganal.h.
30367 (phis_to_revisit): New variable.
30368 (extract_component): Add phiarg_p argument. Assert that returned
30369 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
30370 (update_phi_components): Partly rewrite to use loop over real/imag
30371 components instead of code duplication. If extract_component returns
30372 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
30373 create_tmp_reg into the PHI node instead, and mention the phi triplet
30374 in phis_to_revisit.
30375 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
30376 in phis_to_revisit at the end.
30378 2016-01-14 Richard Biener <rguenther@suse.de>
30380 PR tree-optimization/68060
30381 * tree-vect-loop.c (vect_is_simple_reduction): Check the
30382 outer loop reduction is only used in the inner loop before
30383 detecting a double reduction.
30385 2016-01-14 Jakub Jelinek <jakub@redhat.com>
30388 * combine.c (expand_field_assignment): Punt if compute_mode is
30389 unsupported scalar mode.
30391 2016-01-14 Richard Biener <rguenther@suse.de>
30393 PR tree-optimization/66856
30394 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
30395 SLP node only if it built successfully.
30396 (vect_analyze_slp_instance): Adjust.
30398 2016-01-14 Jeff Law <law@redhat.com>
30400 PR tree-optimization/69270
30401 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
30402 (record_edge_info): Use it. Convert boolean_{true,false}_node
30403 to the type of op0.
30405 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
30408 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
30409 use block_ultimate_origin
30410 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
30412 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
30414 * doc/invoke.texi (Submodel Options): Rename section to
30415 "Machine-Dependent Options" to better reflect its content.
30416 Rewrite introductory text to remove archaic CPU names.
30419 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
30421 * doc/invoke.texi (Code Gen Options): Move section up in file,
30422 before target-specific options. Update menu and option summary
30423 to reflect the new section ordering.
30425 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
30427 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
30428 (C++ Dialect Options): Add cross-reference to -std option.
30429 * doc/standards.texi (C++ Language): Document C++14 support.
30431 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
30433 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
30434 for pack/unpack functions for __ibm128.
30435 (PACK_IF): Likewise.
30436 (UNPACK_IF): Likewise.
30438 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
30439 support for __ibm128 pack/unpack functions.
30440 (rs6000_invalid_builtin): Likewise.
30441 (rs6000_init_builtins): Likewise.
30442 (rs6000_opt_masks): Likewise.
30444 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
30445 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
30447 (RS6000_BTM_COMMON): Likewise.
30449 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
30450 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
30451 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
30452 128-bit floating point. Add support for the double values to be
30453 in Altivec registers for TF/IF packing and unpacking, but restrict
30454 TD packing sub-fields to be FPR registers. Don't allow overlapped
30455 register support for packing. Allow pack inputs to be memory
30456 locations. Don't build generator functions for unpack<mode>_dm
30457 and unpack<mode>_nodm.
30458 (unpack<mode>_dm): Likewise.
30459 (unpack<mode>_nodm): Likewise.
30460 (pack<mode>): Likewise.
30462 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
30463 built-in functions to pack/unpack explicit __ibm128 values.
30464 (__builtin_unpack_ibm128): Likewise.
30466 * doc/extend.texi (PowerPC Built-in Functions): Document
30467 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
30469 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
30472 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
30473 Add new arg loc and pass it down as context.
30474 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
30475 to the location to use for the warning.
30476 (check_function_arguments): New arg loc. All callers changed. Pass
30477 it to check_function_nonnull.
30478 * c-common.h (check_function_arguments): Adjust declaration.
30480 2016-01-13 Jakub Jelinek <jakub@redhat.com>
30482 PR tree-optimization/69156
30483 * gimple.c (validate_type): Removed.
30484 (gimple_builtin_call_types_compatible_p): Use
30485 useless_type_conversion_p instead of validate_type.
30486 * value-prof.c (gimple_stringop_fixed_value): Fold
30487 icall_size to correct type.
30489 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
30491 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
30494 2016-01-13 Richard Henderson <rth@redhat.com>
30497 * target.def (builtin_tm_load, builtin_tm_store): Remove.
30498 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
30499 (ix86_builtin_tm_store): Remove.
30500 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
30501 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
30502 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
30503 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
30504 * doc/tm.texi: Rebuild.
30506 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
30507 (BUILT_IN_TM_MEMCPY_RTWN): New.
30508 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
30509 fallback from vector to integer helpers.
30510 (build_tm_load): Handle vector types directly, instead of
30512 (build_tm_store): Likewise.
30513 (expand_assign_tm): Prepare for register types not handled by
30514 the above. Copy them to memory and use memcpy.
30515 * tree.c (tm_define_builtin): New.
30516 (find_tm_vector_type): New.
30517 (build_tm_vector_builtins): New.
30518 (build_common_builtin_nodes): Call it.
30520 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
30522 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
30523 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
30525 2016-01-13 Tom de Vries <tom@codesourcery.com>
30527 PR tree-optimization/69169
30528 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
30529 handled_struct_type param.
30530 (create_variable_info_for, intra_create_variable_infos): Call
30531 create_variable_info_for_1 with extra arg.
30533 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
30535 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
30536 and "armv8.1-a+crc" entries.
30538 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
30541 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
30542 Change first operand predicate from register_or_constm1_operand
30543 to register_operand.
30544 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
30545 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
30546 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
30547 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
30548 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
30549 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
30550 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
30551 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
30552 comparison with constm1_rtx from vec_prefetch_gen part.
30554 2016-01-13 Richard Biener <rguenther@suse.de>
30556 PR tree-optimization/69013
30557 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
30558 Exchange assert for a test.
30560 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30563 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
30565 2016-01-13 Richard Biener <rguenther@suse.de>
30567 PR tree-optimization/69242
30568 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
30569 assert with a check.
30571 2016-01-13 Richard Biener <rguenther@suse.de>
30573 PR tree-optimization/69186
30574 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
30575 Properly guard vect_update_misalignment_for_peel call.
30577 2016-01-12 Jeff Law <law@redhat.com>
30579 PR tree-optimization/pr67755
30580 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
30581 "need_profile_correction".
30582 (thread_block_1): Initialize new field to false by default. If we
30583 have multiple thread paths through a common joiner to different
30584 final targets, then set new field to true.
30585 (compute_path_counts): Only do count adjustment when it's really
30588 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
30590 * doc/invoke.texi (Spec Files): Move section down in file, past
30591 all command-line option descriptions.
30593 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30595 PR middle-end/54809
30596 * doc/gty.texi: Remove documentation of mark_hook.
30597 * gengtype.c (struct write_types_data): Remove code to support
30598 mark_hook attribute.
30599 (walk_type): Likewise.
30600 (write_func_for_structure): Likewise.
30602 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
30604 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
30605 Directory Options, and -specs= to Overall Options.
30606 (Overall Options): Adjust similarly. Reorder to group related
30607 options together. Make -specs= cross-reference the spec file details.
30608 (Directory Options): Adjust similarly.
30610 2016-01-12 Jeff Law <law@redhat.com>
30612 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
30614 2016-01-12 Olivier Hainque <hainque@adacore.com>
30616 * gcc.c (spec_undefvar_allowed): New global.
30617 (process_command): Set to true when running for --version or --help,
30619 (getenv_spec_function): When the variable is not defined, use the
30620 variable name as the variable value if we're allowed not to issue
30623 2016-01-12 Bin Cheng <bin.cheng@arm.com>
30625 PR tree-optimization/68911
30626 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
30627 information computed for expression "init + nit * step".
30629 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
30631 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
30632 about name of GCC executable. Remove deleted node from menu.
30633 (Directory Options) <-B>: Remove cross-reference to deleted node.
30634 (Target Options): Delete section.
30636 2016-01-12 Christian Bruel <christian.bruel@st.com>
30639 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
30640 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
30642 2016-01-12 Jakub Jelinek <jakub@redhat.com>
30645 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
30646 aligned_mem is properly set for AVX512-VL floating point masked
30650 * ifcvt.c (cond_exec_process_if_block): When removing the last
30651 insn from then_bb, remove also any possible barriers that follow it.
30653 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
30657 * config/i386/iamcu.h (SIZE_TYPE): New macro.
30658 (PTRDIFF_TYPE): Likewise.
30659 (WCHAR_TYPE): Likewise.
30660 (WCHAR_TYPE_SIZE): Likewise.
30661 (STDINT_LONG32): Likewise.
30663 2016-01-12 Richard Biener <rguenther@suse.de>
30665 PR tree-optimization/69053
30666 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
30667 convert initial value for cond reductions.
30669 2016-01-12 Richard Biener <rguenther@suse.de>
30671 PR tree-optimization/69007
30672 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
30673 widen_sum after dot_prod and sad.
30675 2016-01-12 Richard Biener <rguenther@suse.de>
30677 PR tree-optimization/69168
30678 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
30679 pattern stmt SLP type.
30680 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
30681 end up unused so cope with that case.
30683 2016-01-12 Richard Biener <rguenther@suse.de>
30685 PR tree-optimization/69157
30686 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
30687 stmts def type only during analyze phase.
30688 (vectorizable_call): Likewise.
30689 (vectorizable_simd_clone_call): Likewise.
30690 (vectorizable_conversion): Likewise.
30691 (vectorizable_assignment): Likewise.
30692 (vectorizable_shift): Likewise.
30693 (vectorizable_operation): Likewise.
30694 (vectorizable_store): Likewise.
30695 (vectorizable_load): Likewise.
30697 2016-01-12 Richard Biener <rguenther@suse.de>
30699 PR tree-optimization/69174
30700 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
30702 (vectorizable_load): Properly compute the number of loads needed
30703 for permuted strided SLP loads and do not spuriously assign
30704 to SLP_TREE_VEC_STMTS.
30706 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
30708 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
30709 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
30710 (MD_EXEC_PREFIX): Remove.
30711 (MD_STARTFILE_PREFIX) Removee.
30712 (FILE_NAME_ABSOLUTE_P): Remove.
30713 (CPP_SPEC): Do not read macros from sys/version.h.
30714 (LINK_COMMAND_SPEC): Remove.
30715 (LOCAL_INCLUDE_DIR): Remove.
30716 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
30717 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
30718 (POST_LINK_SPEC): Define to invoke stubify after linker
30719 (LIBSTDCXX): Remove define
30720 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
30721 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
30722 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
30723 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
30724 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
30725 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
30726 (i386_djgpp_asm_named_section): Add propotype of new procedure
30728 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
30729 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
30730 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
30731 in config/i386/djgpp.h).
30732 (STANDARD_STARTFILE_PREFIX_2): Define identical to
30733 STANDARD_STARTFILE_PREFIX_1.
30734 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
30735 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
30736 installation errors.
30737 (MAX_OFILE_ALIGNMENT): Define to 128.
30738 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
30740 * config/i386/djgpp.c: New file. Add implementation of
30741 i386_djgpp_asm_named_section.
30743 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
30745 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
30746 Add rule for building djgpp.o.
30748 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30750 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
30751 (rtx_is_swappable_p): Reductions are swappable.
30752 (insn_is_swappable_p): V2DF reductions are swappable.
30754 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
30756 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
30757 reloads for other unsupported memory operands.
30759 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
30760 Jim Wilson <jim.wilson@linaro.org>
30763 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
30764 copy_to_mode_reg instead of force_reg.
30766 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
30769 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
30770 TARGET_80387 is true.
30772 2016-01-11 Jakub Jelinek <jakub@redhat.com>
30775 * lra-eliminations.c (move_plus_up): Only move plus up
30776 if subreg of the constant can be simplified into constant
30777 and use the simplified subreg of the constant instead of
30778 the original constant.
30780 * fold-const.c (fold_convertible_p): Don't return true
30781 for conversion of VECTOR_TYPE to same sized integral type.
30782 (fold_convert_loc): Fix up formatting. Fold conversion of
30783 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
30784 instead of NOP_EXPR.
30786 PR tree-optimization/69214
30787 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
30788 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
30791 PR tree-optimization/69207
30792 * tree-vect-slp.c (vect_get_constant_vectors): For
30793 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
30794 fold_convertible_p to vector_type's element type, and always
30795 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
30797 2016-01-11 Richard Biener <rguenther@suse.de>
30799 PR tree-optimization/69173
30800 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
30801 fixup the cycle if all stmts are in a pattern.
30803 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
30805 PR middle-end/68999
30806 * alias.c (base_alias_check): Move check for addresses with
30807 alignment ANDs before the call for compare_base_decls.
30808 (memrefs_conflict_p): Return -1 for different decls
30809 that went through alignment adjustments.
30811 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30813 PR rtl-optimization/68796
30814 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
30815 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
30816 and QImode comparisons against zero with CC_NZmode.
30817 * config/aarch64/iterators.md (short_mask): New mode_attr.
30819 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
30821 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
30822 (<avx512>_store<mode>_mask): Likewise.
30824 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
30825 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30827 PR rtl-optimization/68841
30828 * ifcvt.c (struct noce_if_info): Add orig_x field.
30829 (bbs_ok_for_cmove_arith): Add to_rename parameter.
30830 Don't record conflicts on to_rename if it's present.
30831 Allow memory destinations in sets.
30832 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
30833 blocks, passing orig_x to the checks.
30834 (noce_process_if_block): Set if_info->orig_x appropriately.
30836 2016-01-11 Tom de Vries <tom@codesourcery.com>
30838 PR tree-optimization/69069
30839 * tree-parloops.c (create_parallel_loop): Add missing phi args.
30841 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
30843 PR rtl-optimization/68920
30844 * config/i386/i386.c (ix86_option_override_internal): Restrict number
30845 of conditional moves for RTL if-conversion to 1 for
30846 TARGET_ONE_IF_CONV_INSN.
30847 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
30848 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
30849 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
30850 parameter to restirct number of conditional moves for
30852 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
30853 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
30856 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
30859 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
30860 onepart vars. Fix typo in comment. Fix reversed condition in
30862 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
30865 * var-tracking.c (dump_onepart_variable_differences): New.
30866 (dataflow_set_different): If a detailed dump is requested,
30867 delay early returns and dump differences between onepart
30868 variables present before and after, and added variables.
30870 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
30873 * expr.c (expand_expr_real_1): For boolean vector constants
30874 with a scalar mode use const_scalar_mask_from_tree.
30875 (const_scalar_mask_from_tree): New.
30876 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
30877 assigned to a mask type to handle constants.
30879 2016-01-11 Martin Jambor <mjambor@suse.cz>
30882 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
30883 useless parameters if we cannot change function signature.
30885 2016-01-11 Martin Jambor <mjambor@suse.cz>
30888 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
30891 2016-01-11 Tom de Vries <tom@codesourcery.com>
30893 PR tree-optimization/69109
30894 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
30897 2016-01-11 Tom de Vries <tom@codesourcery.com>
30899 PR tree-optimization/69108
30900 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
30901 res is not used in a phi.
30903 2016-01-11 Yury Gribov <y.gribov@samsung.com>
30906 * common.opt (frandom-seed): Fix parameter name.
30907 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
30909 2016-01-11 Tom de Vries <tom@codesourcery.com>
30911 PR tree-optimization/69058
30912 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
30915 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
30917 * config/arc/arc.opt (mdiv-rem): Add period to the end.
30918 (mcode-density): Likewise.
30920 2016-01-10 Tom de Vries <tom@codesourcery.com>
30922 PR tree-optimization/69062
30923 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
30924 (parallelize_loops): Don't paralelize loop that has phi with address
30927 2016-01-10 Tom de Vries <tom@codesourcery.com>
30929 PR tree-optimization/69039
30930 * tree-parloops.c (try_create_reduction_list): Only allow single exit
30933 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
30935 PR middle-end/68743
30936 * match.pd: Require target has function_c99_misc before doing
30937 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
30939 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
30941 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
30943 * configure: Regenerate.
30945 2016-01-09 Jakub Jelinek <jakub@redhat.com>
30947 PR middle-end/50865
30948 PR tree-optimization/69097
30949 * fold-const.h (expr_not_equal_to): New prototype.
30950 * fold-const.c: Include stringpool.h and tree-ssanames.h.
30951 (expr_not_equal_to): New function.
30952 * match.pd (X % -Y is the same as X % Y): Don't optimize
30953 unless X is known not to be equal to minimum or Y is known
30954 not to be equal to -1.
30955 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
30956 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
30957 (simplify_stmt_using_ranges): Adjust caller.
30958 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
30959 substitute_and_fold.
30961 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
30963 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
30966 2016-01-08 Jakub Jelinek <jakub@redhat.com>
30968 PR tree-optimization/69167
30969 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
30970 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
30972 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
30974 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
30975 Richard Biener <rguenther@suse.de>
30977 PR tree-optimization/68707
30978 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
30979 instances that can be handled via vect_load_lanes.
30981 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
30983 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
30984 if we can't determine address equivalence.
30985 * alias.c (compare_base_decl): Update for changed return value of
30986 symtab_node::equal_address_to.
30988 2016-01-08 Jason Merrill <jason@redhat.com>
30992 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
30993 * expr.c (store_field): Not here.
30994 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
30995 call with TREE_ADDRESSABLE type.
30996 * tree-cfg.c (verify_gimple_call): Adjust.
30998 2016-01-08 Olivier Hainque <hainque@adacore.com>
31000 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
31003 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
31005 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
31006 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
31007 (reduc_smin_v2sf): Rename to...
31008 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
31009 (reduc_splus_v2sf): Rename to...
31010 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
31012 2016-01-08 Jakub Jelinek <jakub@redhat.com>
31014 PR tree-optimization/69162
31015 * gimplify.c (gimplify_va_arg_expr): Encode original type of
31016 valist argument in another argument.
31017 (gimplify_modify_expr): Adjust for the above change. Cleanup.
31018 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
31019 to determine the va_list type, build a MEM_REF instead of
31020 build_fold_indirect_ref.
31022 PR tree-optimization/69172
31023 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
31026 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
31028 PR tree-optimization/67781
31029 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
31030 and cmpnop in two steps: first the ones not accessed in original
31031 gimple expression in a endian independent way and then the ones not
31032 accessed in the final result in an endian-specific way.
31034 2016-01-08 Jakub Jelinek <jakub@redhat.com>
31036 PR tree-optimization/69083
31037 * tree-vect-slp.c (vect_get_constant_vectors): For
31038 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
31039 element type. If op is fold_convertible_p to vector_type's element
31040 type, use NOP_EXPR instead of VCE.
31042 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
31044 PR rtl-optimization/67778
31045 PR rtl-optimization/68634
31046 PR rtl-optimization/68909
31047 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
31048 block from the stack until done with it. Remove a superfluous
31049 bitmap set. Remove a superfluous bitmap test.
31051 2016-01-07 Martin Sebor <msebor@redhat.com>
31054 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
31055 constraint on the type of arguments.
31057 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
31059 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
31060 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
31061 unaligned_access on the gcc_options set.
31062 * config/arm/arm.c (arm_option_override_internal): Use
31063 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
31065 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
31068 * config/i386/i386.c (ix86_frame_pointer_required): Enable
31069 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
31071 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
31074 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
31077 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
31078 depending on frame_pointer_needed before remaining integer and SSE
31079 registers are saved.
31081 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
31084 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
31086 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
31089 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
31090 Use the "xBm" constraint.
31091 (float<sseintvecmodelower><mode>2<mask_name><round_name):
31093 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
31094 (sse_cvtsi2ssq<round_name>): Likewise.
31095 (sse_cvtss2si<round_name>): Likewise.
31096 (sse_cvtss2siq<round_name>): Likewise.
31097 (sse2_cvtsi2sdq<round_name>): Likewise.
31098 (sse2_cvtsd2si<round_name>): Likewise.
31099 (sse2_cvtsd2siq<round_name>): Likewise.
31100 * config/i386/subst.md (round_nimm_scalar_predicate): New
31103 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
31105 PR middle-end/67639
31106 * varasm.c (make_decl_rtl): Mark invalid register vars as
31109 PR rtl-optimization/66206
31110 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
31111 All callers changed.
31113 2016-01-07 Jakub Jelinek <jakub@redhat.com>
31115 PR tree-optimization/69141
31116 * tree-ssa-pre.c: Include langhooks.h.
31117 (eliminate_dom_walker::before_dom_children): Use
31118 lang_hooks.decl_printable_name instead of
31119 cgraph_node::get ()->name ().
31121 PR middle-end/68960
31122 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
31123 it and DECL_ALIGN too.
31125 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
31127 * config/mips/mips-ftypes.def: Sort to lexicographical order.
31129 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
31132 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
31133 depending on frame_pointer_needed before remaining integer and SSE
31134 registers are saved.
31136 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31138 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
31139 mode iterator with VSX_M2.
31140 (*p9_vecstore_<mode>): Likewise.
31141 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
31142 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
31143 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
31144 (define_split for VSX_LE128 stores): Likewise.
31145 (define_peephole2 for TImode LE swaps): Likewise.
31146 (define_split for VSX_LE128 post-reload stores): Likewise.
31148 2016-01-06 Marek Polacek <polacek@redhat.com>
31151 * convert.c (convert_to_integer_1): Adjust call to
31152 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
31153 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
31154 EXPR instead of ARG.
31155 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
31157 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
31160 * doc/extend.texi (RL78 Variable Attributes): New section.
31162 2016-01-05 Marek Polacek <polacek@redhat.com>
31165 * builtins.c (get_memmodel): Use expansion point location rather than
31166 the input location. Call warning_at rather than warning.
31167 (expand_builtin_atomic_compare_exchange): Likewise.
31168 (expand_builtin_atomic_load): Likewise.
31169 (expand_builtin_atomic_store): Likewise.
31170 (expand_builtin_atomic_clear): Likewise.
31172 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
31175 * config/i386/i386.c (ix86_expand_vector_logical_operator):
31176 Replace nonimmediate_operand with vector_operand.
31177 * config/i386/predicates.md (vector_operand): New predicate.
31178 (general_vector_operand): Replace nonimmediate_operand with
31180 * config/i386/sse.md: Replace nonimmediate_operand with
31181 vector_operand and m constraint with Bm constraint on SSE
31182 patterns with 16-byte memory operand.
31183 * config/i386/subst.md (round_nimm_predicate): Replace
31184 nonimmediate_operand with vector_operand.
31185 (round_saeonly_nimm_predicate): Likewise.
31186 (round_saeonly_nimm_scalar_predicate): New.
31188 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
31191 * config/i386/constraints.md (Bm): New constraint.
31192 * config/i386/predicates.md (vector_memory_operand): New
31194 * config/i386/sse.md: Replace xm with xBm in plusminus and
31195 any_logic patterns.
31197 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
31200 * doc/extend.texi (V850 Function Attributes): New section.
31201 (V850 Variable Attributes): New section.
31203 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
31206 * doc/extend.texi (MicroBlaze Function Attributes): Document
31207 interrupt_handler and fast_interrupt attributes.
31209 2016-01-05 Sergei Trofimovich <siarheit@google.com>
31212 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
31213 for local symbolic operands.
31214 * config/ia64/predicates.md (local_symbolic_operand64): New
31217 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31219 PR rtl-optimization/68651
31220 * combine.c (combine_simplify_rtx): Canonicalize x + x into
31223 2016-01-05 Nathan Sidwell <nathan@acm.org>
31225 * alias.c (compare_base_decls): Use symtab_node::get.
31227 2016-01-05 Nick Clifton <nickc@redhat.com>
31230 * ira-costs.c (copy_cost): Initialise the t_icode field of the
31231 secondary_reload_info structure.
31234 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
31235 decls if weak support is available.
31237 2016-01-04 Martin Sebor <msebor@redhat.com>
31239 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
31241 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
31243 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
31244 OPTION_MASK_P9_DFORM.
31246 * config/rs6000/constraints.md (wo constraint): New constraint for
31249 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
31251 (rs6000_init_hard_regno_mode_ok): Likewise.
31253 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
31256 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
31257 expanders not to have constraints. Add support for ISA 3.0 xxperm
31258 instruction. Add support for fusing xxlor with xxperm.
31259 (altivec_vperm_<mode>_internal): Likewise.
31260 (altivec_vperm_v8hiv16qi): Likewise.
31261 (altivec_vperm_<mode>v16q): Likewise.
31262 (altivec_vperm_<mode>_uns): Likewise.
31263 (vperm_v8hiv4si): Likewise.
31264 (vperm_v16qiv8hi): Likewise.
31266 * doc/md.texi (RS/6000 constraints): Document wo constraint.
31268 2016-01-04 Jakub Jelinek <jakub@redhat.com>
31270 Update copyright years.
31272 * gcc.c (process_command): Update copyright notice dates.
31273 * gcov-dump.c (print_version): Ditto.
31274 * gcov.c (print_version): Ditto.
31275 * gcov-tool.c (print_version): Ditto.
31276 * gengtype.c (create_file): Ditto.
31277 * doc/cpp.texi: Bump @copying's copyright year.
31278 * doc/cppinternals.texi: Ditto.
31279 * doc/gcc.texi: Ditto.
31280 * doc/gccint.texi: Ditto.
31281 * doc/gcov.texi: Ditto.
31282 * doc/install.texi: Ditto.
31283 * doc/invoke.texi: Ditto.
31285 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
31287 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
31288 modes larger than TImode as TImode if NEON is not enabled.
31290 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
31293 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
31294 mode for %f0-%f31 only if TARGET_FPU.
31296 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
31299 * config/sparc/sparc.c (scan_record_type): Take into account subfields
31300 to compute the PACKED_P predicate.
31301 (function_arg_record_value): Minor tweaks.
31303 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
31305 * doc/install.texi (--with-multilib-list): Describe the meaning of the
31306 option for arm*-*-* targets.
31308 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
31310 * doc/extend.texi (Common Function Attributes): Move docs for
31311 MSP430-specific attributes to....
31312 (MSP430 Function Attributes): ...here. Delete the redundant
31313 entries and copy-edit the remaining text.
31314 (MSP430 Variable Attributes): Use uniform format for index
31315 entries and add a cross-reference to the corresponding function
31318 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
31320 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
31322 (x86 Options): Likewise.
31324 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
31328 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
31329 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
31330 to corresponding attribute.
31332 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
31334 * doc/extend.texi (Common Function Attributes) <noplt>: Move
31335 to correct alphabetization of table. Copy-edit and correct
31337 <stack_protect>: Likewise.
31338 <target_clones>: Likewise.
31340 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
31341 Correct punctuation.
31342 (Code Gen Options) <-fno-plt>: Copy-edit.
31344 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
31347 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
31348 SI values. Explicitly convert SI to DI and vice-versa.
31350 2016-01-01 Jakub Jelinek <jakub@redhat.com>
31352 PR tree-optimization/69070
31353 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
31354 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
31357 * ubsan.c (ubsan_instrument_float_cast): Call
31358 initialize_sanitizer_builtins.
31361 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
31363 Copyright (C) 2016 Free Software Foundation, Inc.
31365 Copying and distribution of this file, with or without modification,
31366 are permitted in any medium without royalty provided the copyright
31367 notice and this notice are preserved.