[ARM][committed] Sort ARMv8 processors by alphabetic order
[official-gcc.git] / gcc / ChangeLog
blob662f145dc7529da4e744eb1cdcd3bddef14b7d89
1 2016-12-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3         * config/arm/arm-cores.def (cortex-m23, cortex-m33): Move into
4         alphabetical order with respect to other ARMv8 processors.
5         * config/arm/arm-tables.opt: Regenerate.
6         * config/arm/arm-tune.md: Likewise.
8 2016-12-06  Robert Suchanek  <robert.suchanek@imgtec.com>
10         * config/mips/mips.c (mips_expand_builtin_insn): Check input
11         ranges of literal integer arguments.
13 2016-12-06  Aldy Hernandez  <aldyh@redhat.com>
15         PR middle-end/78548
16         * tree-ssa-uninit.c (simplify_preds_4): Call release() instead of
17         destroy_predicate_vecs.
18         (uninit_uses_cannot_happen): Make uninit_preds a scalar.
20 2016-12-06  Aldy Hernandez  <aldyh@redhat.com>
22         PR middle-end/78566
23         * tree-ssa-uninit.c (can_one_predicate_be_invalidated_p): Change
24         argument type to a pred_chain.
25         (can_chain_union_be_invalidated_p): Use pred_chain instead of a
26         worklist.
27         (flatten_out_predicate_chains): Remove.
28         (uninit_uses_cannot_happen): Rename from
29         uninit_ops_invalidate_phi_use.
30         Change logic so that we are checking that the PHI use will
31         invalidate _ALL_ possibly uninitialized operands.
32         (is_use_properly_guarded): Rename call to
33         uninit_ops_invalidate_phi_use into uninit_uses_cannot_happen.
35 2016-12-06  Tamar Christina  <tamar.christina@arm.com>
37         * gcc/config/aarch64/arm_neon.h
38         (vreinterpretq_p8_p128, vreinterpretq_p16_p128): Added.
39         (vreinterpret_p64_p16, vreinterpretq_p64_p128): Likewise.
40         (vreinterpretq_p64_p16, vreinterpretq_p128_p8): Likewise.
41         (vreinterpretq_p128_p16, vreinterpretq_p128_f16): Likewise.
42         (vreinterpretq_p128_f32, vreinterpretq_p128_p64): Likewise.
43         (vreinterpretq_p128_s64, vreinterpretq_p128_u64): Likewise.
44         (vreinterpretq_p128_s8, vreinterpretq_p128_s16): Likewise.
45         (vreinterpretq_p128_s32, vreinterpretq_p128_u8): Likewise.
46         (vreinterpretq_p128_u16, vreinterpretq_p128_u32): Likewise.
47         (vreinterpretq_f16_p128, vreinterpretq_f32_p128): Likewise.
48         (vreinterpretq_s64_p128, vreinterpretq_u64_p128): Likewise.
49         (vreinterpretq_s8_p128, vreinterpretq_s16_p128): Likewise.
50         (vreinterpretq_s32_p128, vreinterpretq_u8_p128): Likewise.
51         (vreinterpretq_u16_p128, vreinterpretq_u32_p128): Likewise.
53 2016-12-06  Jakub Jelinek  <jakub@redhat.com>
55         PR c++/71537
56         * fold-const.c (fold_comparison): Assume CONSTANT_CLASS_P (base0)
57         plus offset is non-zero.  For maybe_nonzero_address decl base0,
58         require indirect_base0.
60         PR c++/71537
61         * fold-const-call.c (fold_const_call_1): Remove memchr handling here.
62         (fold_const_call) <case CFN_BUILT_IN_STRNCMP,
63         case CFN_BUILT_IN_STRNCASECMP>: Formatting improvements.
64         (fold_const_call) <case CFN_BUILT_IN_MEMCMP>: Likewise.  If s2 is 0
65         and arguments have no side-effects, return 0.
66         (fold_const_call): Handle CFN_BUILT_IN_MEMCHR.
68         PR c++/71537
69         * fold-const-call.c (fold_const_call): Handle
70         CFN_BUILT_IN_{INDEX,STRCHR,RINDEX,STRRCHR}.
72         PR tree-optimization/78675
73         * tree-vect-loop.c (vectorizable_live_operation): For
74         VECTOR_BOOLEAN_TYPE_P vectype use integral type with bitsize precision
75         instead of TREE_TYPE (vectype) for the BIT_FIELD_REF.
77 2016-12-06  Eric Botcazou  <ebotcazou@adacore.com>
79         PR middle-end/78642
80         * emit-rtl.c (verify_rtx_sharing) <CLOBBER>: Relax condition.
81         (copy_rtx_if_shared_1) <CLOBBER>: Likewise.
82         (copy_insn_1) <CLOBBER>: Likewise.
84 2016-12-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
86         PR target/78688
87         * config/rs6000/rs6000.h (FUNCTION_VALUE_REGNO_P): Use IN_RANGE
88         instead of ((N) >= (X) && (N) <= (Y-X)) to silence warnings about
89         comparing signed to unsigned values.
90         (FUNCTION_ARG_REGNO_P): Likewise.
92 2016-12-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
93             Stefan Freudenberger  <stefan@reservoir.com>
95         PR tree-optimization/78646
96         * gimple-ssa-strength-reduction.c (replace_ref): The pointer
97         addition used for the memory base expression should have the type
98         of the candidate.
100 2016-12-05  Waldemar Brodkorb  <wbx@openadk.org>
102         PR target/71721
103         * config.gcc (*-*-uclinux*): Enable posix threads.
105 2016-12-05  Andrew Senkevich  <andrew.senkevich@intel.com>
107         * config/i386/avx512bwintrin.h: Add new k-mask intrinsics.
108         * config/i386/avx512dqintrin.h: Ditto.
109         * config/i386/avx512fintrin.h: Ditto.
110         * config/i386/i386-builtin-types.def (UCHAR_FTYPE_UQI_UQI_PUCHAR,
111         UCHAR_FTYPE_UHI_UHI_PUCHAR, UCHAR_FTYPE_USI_USI_PUCHAR,
112         UCHAR_FTYPE_UDI_UDI_PUCHAR, UCHAR_FTYPE_UQI_UQI, UCHAR_FTYPE_UHI_UHI,
113         UCHAR_FTYPE_USI_USI, UCHAR_FTYPE_UDI_UDI, UQI_FTYPE_UQI_INT,
114         UHI_FTYPE_UHI_INT, USI_FTYPE_USI_INT, UDI_FTYPE_UDI_INT,
115         UQI_FTYPE_UQI, USI_FTYPE_USI, UDI_FTYPE_UDI, UQI_FTYPE_UQI_UQI): New
116         function types.
117         * config/i386/i386-builtin.def (__builtin_ia32_knotqi,
118         __builtin_ia32_knotsi, __builtin_ia32_knotdi,
119         __builtin_ia32_korqi, __builtin_ia32_korsi, __builtin_ia32_kordi,
120         __builtin_ia32_kxnorqi, __builtin_ia32_kxnorsi,
121         __builtin_ia32_kxnordi, __builtin_ia32_kxorqi, __builtin_ia32_kxorsi,
122         __builtin_ia32_kxordi, __builtin_ia32_kandqi,
123         __builtin_ia32_kandsi, __builtin_ia32_kanddi, __builtin_ia32_kandnqi,
124         __builtin_ia32_kandnsi, __builtin_ia32_kandndi): New.
125         * config/i386/i386.c (ix86_expand_args_builtin): Handle new types.
127 2016-12-05  Segher Boessenkool  <segher@kernel.crashing.org>
129         * combine.c: Revert r243162.
131 2016-12-05  Paolo Bonzini  <bonzini@gnu.org>
133         * match.pd: Simplify X ? C : 0 where C is a power of 2 and
134         X tests a single bit.
136 2016-12-05  Nathan Sidwell  <nathan@acm.org>
138         * diagnostic.c (diagnostic_check_max_errors): New, broken out of ...
139         (diagnostic_action_after_output): ... here.
140         (diagnostic_report_diagnostic): Call it for non-notes.
141         * diagnostic.h (struct diagnostic_context): Make max_errors signed
142         int.
143         (diagnostic_check_max_errors): Declare.
145 2016-12-05  Cupertino Miranda  <cmiranda@synopsys.com>
147         * config/arc/arc.h (STARTFILE_SPEC): Use default linux specs.
148         (ENDFILE_SPEC): Likewise.
150 2016-12-05  Claudiu Zissulescu  <claziss@synopsys.com>
152         * config/arc/arc-protos.h (insn_is_tls_gd_dispatch): Remove.
153         * config/arc/arc.c (arc_unspec_offset): New function.
154         (arc_finalize_pic): Change.
155         (arc_emit_call_tls_get_addr): Likewise.
156         (arc_legitimize_tls_address): Likewise.
157         (arc_legitimize_pic_address): Likewise.
158         (insn_is_tls_gd_dispatch): Remove.
159         * config/arc/arc.h (INSN_REFERENCES_ARE_DELAYED): Change.
160         * config/arc/arc.md (ls_gd_load): Remove unused pattern.
161         (tls_gd_dispatch): Likewise.
163 2016-12-05  Andre Vieira  <andre.simoesdiasvieira@arm.com>
165         * config/arm/arm.c (TARGET_ASM_INIT_SECTIONS): Fix wrong undef
166         location.
168 2016-12-05  Eric Botcazou  <ebotcazou@adacore.com>
170         * config/sparc/sparc-protos.h (sparc_splitdi_legitimate): Rename to...
171         (sparc_split_reg_mem_legitimate): ...this.
172         (sparc_split_reg_mem): Declare.
173         (sparc_split_mem_reg): Likewise.
174         (sparc_split_regreg_legitimate): Rename to...
175         (sparc_split_reg_reg_legitimate): ...this.
176         * config/sparc/sparc.c (sparc_splitdi_legitimate): Rename to...
177         (sparc_split_reg_mem_legitimate): ...this.
178         (sparc_split_reg_mem): New function.
179         (sparc_split_mem_reg): Likewise.
180         (sparc_split_regreg_legitimate): Rename to...
181         (sparc_split_reg_reg_legitimate): ...this.
182         (sparc_split_reg_reg): New function.
183         * config/sparc/sparc.md (lra): Remove "none" value.
184         (enabled): Adjust to above change.
185         (*movdi_insn_sp32): Remove new (r,T) alternative and reorder others.
186         (DImode splitters): Adjust to above renamings and use new functions.
187         (*movdf_insn_sp32): Remove new (r,T) alternative and reorder others.
188         (DFmode splitters): Adjust to above renamings and use new functions.
189         (*mov<VM64:mode>_insn_sp64): Replace C with Z constraint and use W
190         constraint in conjunction with e.
191         (*mov<VM64:mode>_insn_sp32): Remove new (r,T) alternative, add (o,Y)
192         alternative and reorder others.
193         (VM64:mode splitters): Adjust to above renamings and use new functions.
195 2016-12-04  Martin Sebor  <msebor@redhat.com>
197         PR c/78668
198         * builtin-attrs.def (ATTR_ALLOC_SIZE, ATTR_RETURNS_NONNULL): New
199         identifier tree nodes.
200         (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): New attribute list.
201         (ATTR_MALLOC_SIZE_1_NOTHROW_LIST): Same.
202         (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Same.
203         (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Same.
204         (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Same.
205         * builtins.def (aligned_alloc, calloc, malloc, realloc):
206         Add attribute alloc_size.
207         (alloca): Add attribute alloc_size and returns_nonnull.
209 2016-12-04  Uros Bizjak  <ubizjak@gmail.com>
211         PR target/70322
212         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Handle NEG.
213         (dimode_scalar_chain::compute_convert_gain): Ditto.
214         (dimode_scalar_chain::convert_insn): Ditto.
216 2016-12-03  Eric Botcazou  <ebotcazou@adacore.com>
218         * lra-constraints.c (emit_spill_move): Use gen_lowpart_SUBREG in all
219         cases to build a lowpart SUBREG.
221 2016-12-03  Eric Botcazou  <ebotcazou@adacore.com>
222             David S. Miller  <davem@davemloft.net>
224         * config/sparc/constraints.md (U): Adjust comment.
225         * config/sparc/sparc.md (lra): New attribute.
226         (enabled): For base instructions, if the lra attribute is set,
227         return 1 if it is in keeping with TARGET_LRA.
228         (*movdi_insn_sp32): Add lra attribute for alternatives mentioning U
229         constraint and duplicate them with U replaced by r.
230         (*movdf_insn_sp32): Likewise.
231         (*mov<VM64:mode>_insn_sp32): Likewise.
232         (*movtf_insn_sp32): Remove alternatives mentioning U constraint.
234 2016-12-02  Jeff Law  <law@redhat.com>
236         * config/arm/arm.c (arm_handle_cmse_nonsecure_call): Remove unused
237         variable main_variant.
239 2016-12-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
241         * config.gcc (powerpc*-*-linux*): Set gnu-indirect-function by
242         default on PowerPC linux systems.
244 2016-12-02  Segher Boessenkool  <segher@kernel.crashing.org>
246         * simplify-rtx.c (simplify_truncation): M2 is not mode, it is
247         GET_MODE (op).  Fix this.
249 2016-12-02  David Malcolm  <dmalcolm@redhat.com>
251         PR bootstrap/78616
252         * selftest.c (selftest::assert_strndup_eq): Rename to...
253         (selftest::assert_xstrndup_eq): ...this, and remove call to
254         strndup.
255         (selftest::test_strndup): Rename to...
256         (selftest::test_xstrndup): ...this, updating for above renaming.
257         (selftest::test_libiberty): Update for renaming.
259 2016-12-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
261         PR target/78639
262         * config/rs6000/rs6000.md (movdi_internal64): Fix typo in
263         subversion id 242679 that causes the wrong store instruction to be
264         generated if a DImode is in an Altivec register using REG+REG
265         addressing.
267 2016-12-02  Uros Bizjak  <ubizjak@gmail.com>
269         PR target/70322
270         * config/i386/i386.md (*andndi3_doubleword): Add non-BMI alternative
271         and corresponding post-reload splitter.
273 2016-12-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
275         * config/aarch64/aarch64.h (machine_function): Add
276         reg_is_wrapped_separately field.
277         * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Define new constant.
278         * config/aarch64/aarch64.c (emit_set_insn): Change return type to
279         rtx_insn *.
280         (aarch64_save_callee_saves): Don't save registers that are wrapped
281         separately.
282         (aarch64_restore_callee_saves): Don't restore registers that are
283         wrapped separately.
284         (offset_9bit_signed_unscaled_p, offset_12bit_unsigned_scaled_p,
285         aarch64_offset_7bit_signed_scaled_p): Move earlier in the file.
286         (aarch64_get_separate_components): New function.
287         (aarch64_get_next_set_bit): Likewise.
288         (aarch64_components_for_bb): Likewise.
289         (aarch64_disqualify_components): Likewise.
290         (aarch64_emit_prologue_components): Likewise.
291         (aarch64_emit_epilogue_components): Likewise.
292         (aarch64_set_handled_components): Likewise.
293         (aarch64_process_components): Likewise.
294         (TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS,
295         TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB,
296         TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS,
297         TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS,
298         TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS,
299         TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS): Define.
301 2016-12-02  Martin Jambor  <mjambor@suse.cz>
303         * passes.def: Move pass_rebuild_cgraph_edges to the end of
304         pass_build_ssa_passes.
306 2016-12-02  Uros Bizjak  <ubizjak@gmail.com>
308         * config/alpha/alpha.md (exception_receiver): Copy
309         alpha_gp_ave_rtx return value.
311 2016-12-02  Tadek Kijkowski  <tkijkowski@gmail.com>
313         * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
314         for several include directories that may be relative to sysroot.
315         * config/i386/x-mingw32 (gplus_includedir): Define.
316         (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
317         (native_system_includedir): Likewise.
318         * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
319         override if TARGET_SYSTEM_ROOT is defined.
320         (NATIVE_SYSTEM_HEADER_DIR): Likewise.
322 2016-12-02  Jakub Jelinek  <jakub@redhat.com>
324         PR target/70322
325         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Handle NOT.
326         (dimode_scalar_chain::compute_convert_gain): Likewise.
327         (dimode_scalar_chain::convert_insn): Likewise.
328         * config/i386/i386.md (*one_cmpldi2_doubleword): New
329         define_insn_and_split.
330         (one_cmpl<mode>2): Use SWIM1248x iterator instead of SWIM.
332         PR target/78614
333         * rtl.c (copy_rtx): Don't clear used flag here.
334         (shallow_copy_rtx_stat): Clear used flag here unless code the rtx
335         is shareable.
336         * simplify-rtx.c (simplify_replace_fn_rtx): When copying rtx with
337         'E' in format, copy all vectors.
338         * emit-rtl.c (copy_insn_1): Don't clear used flag here.
339         * valtrack.c (cleanup_auto_inc_dec): Likewise.
340         * config/rs6000/rs6000.c (rs6000_frame_related): Likewise.
342 2016-12-02  Andre Vieira  <andre.simoesdiasvieira@arm.com>
343             Thomas Preud'homme  <thomas.preudhomme@arm.com>
345         * config/arm/arm-builtins.c (arm_builtins): Define
346         ARM_BUILTIN_CMSE_NONSECURE_CALLER.
347         (bdesc_2arg): Add line for cmse_nonsecure_caller.
348         (arm_init_builtins): Handle cmse_nonsecure_caller.
349         (arm_expand_builtin): Likewise.
350         * config/arm/arm_cmse.h (cmse_nonsecure_caller): New.
352 2016-12-02  Andre Vieira  <andre.simoesdiasvieira@arm.com>
353             Thomas Preud'homme  <thomas.preudhomme@arm.com>
355         * config/arm/arm.c (detect_cmse_nonsecure_call): New.
356         (cmse_nonsecure_call_clear_caller_saved): New.
357         (arm_reorg): Use cmse_nonsecure_call_clear_caller_saved.
358         (arm_function_ok_for_sibcall): Disable sibcalls for
359         cmse_nonsecure_call.
360         * config/arm/arm-protos.h (detect_cmse_nonsecure_call): New.
361         * config/arm/arm.md (call): Handle cmse_nonsecure_entry.
362         (call_value): Likewise.
363         (nonsecure_call_internal): New.
364         (nonsecure_call_value_internal): New.
365         * config/arm/thumb1.md (*nonsecure_call_reg_thumb1_v5): New.
366         (*nonsecure_call_value_reg_thumb1_v5): New.
367         * config/arm/thumb2.md (*nonsecure_call_reg_thumb2): New.
368         (*nonsecure_call_value_reg_thumb2): New.
369         * config/arm/unspecs.md (UNSPEC_NONSECURE_MEM): New.
371 2016-12-02  Andre Vieira  <andre.simoesdiasvieira@arm.com>
372             Thomas Preud'homme  <thomas.preudhomme@arm.com>
374         * config/arm/arm.c (gimplify.h): New include.
375         (arm_handle_cmse_nonsecure_call): New.
376         (arm_attribute_table): Added cmse_nonsecure_call.
377         (arm_comp_type_attributes): Deny compatibility of function types
378         with without the cmse_nonsecure_call attribute.
379         * doc/extend.texi (ARM ARMv8-M Security Extensions): New attribute.
381 2016-12-02  Andre Vieira  <andre.simoesdiasvieira@arm.com>
382             Thomas Preud'homme  <thomas.preudhomme@arm.com>
384         * config/arm/arm.c (output_return_instruction): Clear
385         registers.
386         (thumb2_expand_return): Likewise.
387         (thumb1_expand_epilogue): Likewise.
388         (thumb_exit): Likewise.
389         (arm_expand_epilogue): Likewise.
390         (cmse_nonsecure_entry_clear_before_return): New.
391         (comp_not_to_clear_mask_str_un): New.
392         (compute_not_to_clear_mask): New.
393         * config/arm/thumb1.md (*epilogue_insns): Change length attribute.
394         * config/arm/thumb2.md (*thumb2_return): Disable for
395         cmse_nonsecure_entry functions.
396         (*thumb2_cmse_entry_return): Duplicate thumb2_return pattern for
397         cmse_nonsecure_entry functions.
399 2016-12-02  Andre Vieira  <andre.simoesdiasvieira@arm.com>
400             Thomas Preud'homme  <thomas.preudhomme@arm.com>
402         * config/arm/arm.c (use_return_insn): Change to return with  bxns
403         when cmse_nonsecure_entry.
404         (output_return_instruction): Likewise.
405         (arm_output_function_prologue): Likewise.
406         (thumb_pop): Likewise.
407         (thumb_exit): Likewise.
408         (thumb2_expand_return): Assert that entry functions always have simple
409         returns.
410         (arm_expand_epilogue): Handle entry functions.
411         (arm_function_ok_for_sibcall): Disable sibcall for entry functions.
412         (arm_asm_declare_function_name): New.
413         * config/arm/arm-protos.h (arm_asm_declare_function_name): New.
414         * config/arm/elf.h (ASM_DECLARE_FUNCTION_NAME): Redefine to
415         use arm_asm_declare_function_name.
417 2016-12-02  Andre Vieira  <andre.simoesdiasvieira@arm.com>
418             Thomas Preud'homme  <thomas.preudhomme@arm.com>
420         * config/arm/arm.c (arm_handle_cmse_nonsecure_entry): New.
421         (arm_attribute_table): Added cmse_nonsecure_entry
422         (arm_compute_func_type): Handle cmse_nonsecure_entry.
423         (cmse_func_args_or_return_in_stack): New.
424         (arm_handle_cmse_nonsecure_entry): New.
425         * config/arm/arm.h (ARM_FT_CMSE_ENTRY): New macro define.
426         (IS_CMSE_ENTRY): Likewise.
427         * doc/extend.texi (ARM ARMv8-M Security Extensions): New attribute.
429 2016-12-02  Andre Vieira  <andre.simoesdiasvieira@arm.com>
430             Thomas Preud'homme  <thomas.preudhomme@arm.com>
432         * config.gcc (extra_headers): Added arm_cmse.h.
433         * config/arm/arm-arches.def (ARM_ARCH):
434         (armv8-m): Add FL2_CMSE.
435         (armv8-m.main): Likewise.
436         (armv8-m.main+dsp): Likewise.
437         * config/arm/arm-c.c
438         (arm_cpu_builtins): Added __ARM_FEATURE_CMSE macro.
439         * config/arm/arm-flags.h: Define FL2_CMSE.
440         * config/arm.c (arm_arch_cmse): New.
441         (arm_option_override): New error for unsupported cmse target.
442         * config/arm/arm.h (arm_arch_cmse): New.
443         * config/arm/arm.opt (mcmse): New.
444         * config/arm/arm_cmse.h: New file.
445         * doc/invoke.texi (ARM Options): Add -mcmse.
446         * doc/sourcebuild.texi (arm_cmse_ok): Add new effective target.
447         * doc/extend.texi: Add ARMv8-M Security Extensions entry.
449 2016-12-02  Georg-Johann Lay  <avr@gjlay.de>
451         * config/avr/avr.c: Fix coding rule glitches.
453 2016-12-02  Martin Jambor  <mjambor@suse.cz>
455         * hsa.c (hsa_callable_function_p): Return false for artificial
456         functions.
458 2016-12-02  James Greenhalgh  <james.greenhalgh@arm.com>
460         PR rtl-optimization/78561
461         * varasm.c (recompute_pool_offsets): New.
462         (output_constant_pool): Call it.
464 2016-12-02  James Greenhalgh  <james.greenhalgh@arm.com>
466         PR rtl-optimization/78561
467         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p) Rename
468         get_pool_size to get_pool_size_upper_bound.
469         (rs6000_stack_info): Likewise.
470         (rs6000_emit_prologue): Likewise.
471         (rs6000_elf_declare_function_name): Likewise.
472         (rs6000_set_up_by_prologue): Likewise.
473         (rs6000_can_eliminate): Likewise, reformat spaces to tabs.
474         * output.h (get_pool_size): Rename to...
475         (get_pool_size_upper_bound): ...This.
476         * varasm.c (get_pool_size): Rename to...
477         (get_pool_size_upper_bound): ...This.
479 2016-12-02  Bin Cheng  <bin.cheng@arm.com>
481         * match.pd: Add new pattern:
482         (cond (cmp (convert? x) c1) (op x c2) c3) -> (op (minmax x c1) c2).
484 2016-12-02  Nathan Sidwell  <nathan@acm.org>
486         * diagnostic.c (diagnostic_report_diagnostic): Remove extraneous
487         braces.
489 2016-12-02  Aldy Hernandez  <aldyh@redhat.com>
491         PR middle-end/78328
492         * gimple-ssa-warn-alloca.c (alloca_call_type): Handle
493         VR_ANTI_RANGE.
495 2016-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
497         * config/s390/s390.c (s390_save_gprs_to_fprs): Fix RTL sharing
498         problem.
500 2016-12-02  Georg-Johann Lay  <avr@gjlay.de>
502         * config/avr/avr-arch.h (avr_mcu_t) [n_flash]: Remove field.
503         * config/avr/avr-devices.c (AVR_MCU): Remove N_FLASH macro argument.
504         * config/avr/avr-mcus.def (AVR_MCU): Remove initializer for n_flash.
505         * config/avr/avr.c (avr_set_core_architecture) [avr_n_flash]: Use
506         avr_mcu_types.flash_size to compute default value.
507         * config/avr/gen-avr-mmcu-specs.c (print_mcu) [cc1_n_flash]: Use
508         mcu->flash_size to compute value for spec.
510 2016-12-02  Georg-Johann Lay  <avr@gjlay.de>
512         * doc/invoke.texi (AVR Options) [-mabsdata]: Point to absdata.
513         * doc/extend.texi (AVR Variable Attributes) [progmem]: Hint
514         about linker description to avoid progmem altogether.
515         [absdata]: Point to -mabsdata option.
517 2016-12-02  Jakub Jelinek  <jakub@redhat.com>
519         PR rtl-optimization/78547
520         * emit-rtl.c (unshare_all_rtl): Make sure DECL_RTL and
521         DECL_INCOMING_RTL is not shared.
522         * config/i386/i386.c (convert_scalars_to_vectors): If any
523         insns have been converted, adjust all parameter's DEC_RTL and
524         DECL_INCOMING_RTL back from V1TImode to TImode if the parameters have
525         TImode.
527         PR rtl-optimization/78575
528         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses): Use
529         DF infrastructure to wrap all V1TImode reg uses into TImode subreg
530         if not already wrapped in a subreg.  Make sure df_insn_rescan does not
531         affect further iterations.
533 2016-12-02  Martin Liska  <mliska@suse.cz>
535         PR ipa/78555
536         * sreal.c (sreal::to_int): Make absolute value before shifting.
537         (sreal::operator/): Likewise.
538         (sreal_verify_negative_division): New test.
539         (void sreal_c_tests): Call the new test.
540         * sreal.h (sreal::normalize_up): Use new SREAL_ABS and
541         SREAL_SIGN macros.
542         (sreal::normalize_down): Likewise.
544 2016-12-02  Dominik Vogt  <vogt@linux.vnet.ibm.com>
546         * combine.c (combine_simplify_rtx):  Suppress replacement of
547         "(and (reg) (const_int bit))" with "if_then_else".
549 2016-12-02  Dominik Vogt  <vogt@linux.vnet.ibm.com>
551         PR target/77822
552         * config/s390/s390.md ("extzv")
553         ("*extzv<mode><clobbercc_or_nocc>")
554         ("*extzvdi<clobbercc_or_nocc>_lshiftrt")
555         ("*<risbg_n>_ior_and_sr_ze")
556         ("*extract1bitdi<clobbercc_or_nocc>")
557         ("*insv<mode><clobbercc_or_nocc>", "*insv_rnsbg_noshift")
558         ("*insv_rnsbg_srl", "*insv<mode>_mem_reg")
559         ("*insvdi_mem_reghigh", "*insvdi_reg_imm"): Use EXTRACT_ARGS_IN_RANGE
560         to validate the arguments of zero_extract and sign_extract.
562 2016-12-02  Dominik Vogt  <vogt@linux.vnet.ibm.com>
564         PR target/77822
565         * rtl.h (EXTRACT_ARGS_IN_RANGE): New.
567 2016-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
569         * gcc/config/s390/s390.c (s390_builtin_vectorization_cost): New
570         function.
571         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Define target
572         macro.
574 2016-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
576         * config/s390/vector.md (vec_halfhalf): New mode iterator.
577         ("vec_pack_trunc_<mode>", "vec_pack_ssat_<mode>")
578         ("vec_pack_usat_<mode>", "vec_unpacks_hi_v16qi")
579         ("vec_unpacks_low_v16qi", "vec_unpacku_hi_v16qi")
580         ("vec_unpacku_low_v16qi", "vec_unpacks_hi_v8hi")
581         ("vec_unpacks_lo_v8hi", "vec_unpacku_hi_v8hi")
582         ("vec_unpacku_lo_v8hi", "vec_unpacks_hi_v4si")
583         ("vec_unpacks_lo_v4si", "vec_unpacku_hi_v4si")
584         ("vec_unpacku_lo_v4si"): New pattern definitions.
585         * config/s390/vx-builtins.md: Move VI_HW_HSD mode iterator to
586         vector.md.
588 2016-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
590         * config/s390/s390-protos.h (s390_reverse_condition): New
591         prototype.
592         * config/s390/s390.c (s390_canonicalize_comparison): Fold compares
593         of CC mode values.
594         (s390_reverse_condition): New function.
595         * config/s390/s390.h (REVERSE_CC_MODE, REVERSE_CONDITION): Define
596         target macros.
598 2016-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
600         * config/s390/s390-modes.def (CCVEQANY, CCVH, CCVHANY, CCVHU)
601         (CCVHUANY): Remove modes.
602         (CCVIH, CCVIHU, CCVIALL, CCVIANY, CCVFALL, CCVFANY): Add modes and
603         documentation.
604         * config/s390/s390.c (s390_match_ccmode_set): Rename cc modes.
605         (s390_expand_vec_compare_scalar): Pick one of the cc consumer
606         modes.
607         (s390_branch_condition_mask): Adjust to use the new cc consumer
608         modes.  The new modes allow for proper reversal in the middle-end.
609         (s390_expand_vec_compare_cc): Determine the proper cc producer and
610         consumer modes for a comparison.
611         * config/s390/s390.md: Rename CCVH to CCVIH and CCVHU to CCVIHU
612         throughout the file.
613         * config/s390/vx-builtins.md: Likewise.
615 2016-12-02  Maxim Ostapenko  <m.ostapenko@samsung.com>
617         * asan.c (asan_global_struct): Refactor.
618         (create_odr_indicator): New function.
619         (asan_needs_odr_indicator_p): Likewise.
620         (is_odr_indicator): Likewise.
621         (asan_add_global): Introduce odr_indicator_ptr. Pass it into global's
622         constructor.
623         (asan_protect_global): Do not protect odr indicators.
625 2016-12-01  Jeff Law  <law@redhat.com>
627         * tree-ssa-threadedge.c
628         (record_temporary_equivalences_from_stmts_at_dest): Avoid temporary
629         propagation of operands if there are no operands.
631 2016-12-02  Jakub Jelinek  <jakub@redhat.com>
633         PR tree-optimization/78586
634         * gimple-ssa-sprintf.c (format_integer): Don't handle NOP_EXPR,
635         CONVERT_EXPR or COMPONENT_REF here.  Formatting fix.  For
636         SSA_NAME_DEF_STMT with NOP_EXPR only change argtype if the rhs1's
637         type is INTEGER_TYPE or POINTER_TYPE.
639 2016-12-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
641         PR target/78577
642         * config/rs6000/vsx.md (vextuhlx): Revise mode of operand 2.
643         (vextuhrx): Likewise.
644         (vextuwlx): Likewise.
645         (vextuwrx): Likewise.
647 2016-12-01  David Malcolm  <dmalcolm@redhat.com>
649         * dwarf2out.c (dwarf2out_c_finalize): Reset early_dwarf and
650         early_dwarf_finished.
652 2016-12-01  Eric Botcazou  <ebotcazou@adacore.com>
653             David S. Miller  <davem@davemloft.net>
655         * config/sparc/sparc.opt (mlra): New target option.
656         * config/sparc/sparc.c (TARGET_LRA_P): Define to...
657         (sparc_lra_p): ...this.  New function.
658         (D_MODES, DF_MODES): Add missing cast.
659         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
660         provide these insns when flag_pic.
661         (sethi_di_medlow, losum_di_medlow, seth44, setm44, setl44, sethh,
662         setlm, sethm, setlo, embmedany_sethi, embmedany_losum,
663         embmedany_brsum, embmedany_textuhi, embmedany_texthi,
664         embmedany_textulo, embmedany_textlo): Likewise.
665         (sethi_di_medlow_embmedany_pic): Provide it only with flag_pic.
667 2016-12-01  David Edelsohn  <dje.gcc@gmail.com>
669         PR debug/66419
670         PR c++/78235
671         * dbxout.c (dbxout_type_fields): Skip TEMPLATE_DECLs.
673 2016-12-01  Richard Biener  <rguenther@suse.de>
674             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
676         * vec.h (vec<T, A, vl_embed>::quick_grow_cleared): Guard call to
677         memset if len-oldlen != 0.
678         (vec<T, va_heap, vl_ptr>::safe_grow_cleared): Likewise.
680 2016-12-01  Uros Bizjak  <ubizjak@gmail.com>
682         * config/i386/i386.md (*andndi3_doubleword): Depend on TARGET_SSE2.
684 2016-12-01  Georg-Johann Lay  <avr@gjlay.de>
686         * config/avr/avr.c: Fix coding rule glitches.
688 2016-12-01  Markus Trippelsdorf  <markus@trippelsdorf.de>
690         PR tree-optimization/78598
691         * tree-ssa-loop-prefetch.c (ddown): Cast to signed to avoid
692         overflows.
694 2016-12-01  Markus Trippelsdorf  <markus@trippelsdorf.de>
696         PR rtl-optimization/78596
697         * combine.c (simplify_comparison): Cast to unsigned to avoid
698         left shifting of negative value.
700 2016-12-01  Matthias Klose  <doko@ubuntu.com>
702         * doc/install.texi: Don't use pkg-config to check for bdw-gc.
704 2016-12-01  Richard Biener  <rguenther@suse.de>
706         * tree-ssa-alias.c (indirect_refs_may_alias_p): Do not
707         treat arrays with same type as objects that cannot overlap.
709 2016-12-01  Georg-Johann Lay  <avr@gjlay.de>
711         * config/avr/avr.c (avr_print_operand): Use SYMBOL_REF_P if possible.
712         (avr_handle_addr_attribute, avr_asm_output_aligned_decl_common)
713         (avr_asm_asm_output_aligned_bss, avr_addr_space_convert): Dito.
715 2016-12-01  Jakub Jelinek  <jakub@redhat.com>
717         PR debug/78587
718         * dwarf2out.c (loc_descr_plus_const): For negative offset use
719         uint_loc_descriptor instead of int_loc_descriptor and perform negation
720         in unsigned HOST_WIDE_INT type.
721         (scompare_loc_descriptor): Shift UINTVAL left instead of INTVAL.
723         PR target/78614
724         * config/rs6000/rs6000.c (rs6000_frame_related): Call
725         set_used_flags (pat) before any simplifications.  Clear used flag on
726         PARALLEL copy.  Don't guard add_reg_note call.  Call
727         copy_rtx_if_shared on pat before storing it into
728         REG_FRAME_RELATED_EXPR.
730 2016-12-01  Alan Modra  <amodra@gmail.com>
732         * gcc/config/rs6000/rs6000.c (insn_is_swappable_p): Properly
733         look inside UNSPEC_VSX_XXSPLTW vec.
735 2016-12-01  Segher Boessenkool  <segher@kernel.crashing.org>
737         PR rtl-optimization/78607
738         * combine.c (try_combine): Emit a barrier after a unconditional trap.
740 2016-11-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
742         PR target/78602
743         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): If the
744         element is not a constant or in a register, force it to a
745         register.
747         PR target/78560
748         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Force value
749         that will be set to a vector element to be in a register.
750         * config/rs6000/vsx.md (vsx_set_<mode>_p9): Fix thinko that used
751         the wrong multiplier to convert the element number to a byte
752         offset.
754 2016-11-30  Vladimir Makarov  <vmakarov@redhat.com>
756         PR tree-optimization/77856
757         * lra-constraints.c (inherit_in_ebb): Check original regno for
758         invalid invariant regs too.  Set only clobbered hard regs for the
759         invalid invariant regs.
761 2016-11-30  Pitchumani Sivanupandi  <pitchumani.sivanupandi@microchip.com>
763         Commit files forgotten in r242966.
765         * config/avr/avr-arch.h (avr_mcu_t) [flash_size]: New member.
766         * config/avr/avr-devices.c (avr_mcu_types): Add flash size info.
767         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Remove hard-coded
768         prefix check to find wrap-around value, instead use MCU flash size.
769         For 8k flash devices, update link_pmem_wrap spec string to
770         add --pmem-wrap-around=8k.
771         * config/avr/specs.h (LINK_RELAX_SPEC): Move link_pmem_wrap from
772         here...
773         (LINK_SPEC): ...to here.
775 2016-11-30  David Malcolm  <dmalcolm@redhat.com>
777         PR c/78498
778         * selftest.c (selftest::assert_strndup_eq): New function.
779         (selftest::test_strndup): New function.
780         (selftest::test_libiberty): New function.
781         (selftest::selftest_c_tests): Call test_libiberty.
783 2016-11-30  Segher Boessenkool  <segher@kernel.crashing.org>
785         PR rtl-optimization/78610
786         * ira.c (combine_and_move_insns): Don't substitute into TRAP_IF
787         instructions.
789 2016-11-30  Bin Cheng  <bin.cheng@arm.com>
791         PR tree-optimization/78574
792         * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Skip loop
793         header PHI that doesn't define biv.
795 2016-11-30  Jakub Jelinek  <jakub@redhat.com>
797         * emit-rtl.c (verify_insn_sharing): Call verify_rtx_sharing instead of
798         reset_used_flags.
800         * config/i386/i386.c (dimode_scalar_chain::convert_op): Avoid
801         sharing the SUBREG rtx between move and following insn.
803         * ira.c (ira_update_equiv_info_by_shuffle_insn): Use copy_rtx
804         for REG_EQUIV argument.
806 2016-11-30  Thomas Preud'homme  <thomas.preudhomme@arm.com>
808         * config/arm/t-rmprofile: Add mappings for Cortex-M23 and Cortex-M33.
810 2016-11-30  Markus Trippelsdorf  <markus@trippelsdorf.de>
812         PR ipa/78555
813         * real.c (real_hash): Add cast to avoid left
814         shifting of negative values.
816 2016-11-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
818         PR target/78362
819         * config/aarch64/aarch64.md (add<mode>3): Extract inner expression
820         from a subreg in operands[1] and don't call REGNO on a non-reg
821         expression when deciding to force operands[2] into a reg.
823 2016-11-30  Claudiu Zissulescu  <claziss@synopsys.com>
824             Andrew Burgess  <andrew.burgess@embecosm.com>
826         * config/arc/arc-protos.h (arc_store_addr_hazard_p): Declare.
827         * config/arc/arc.c (arc_store_addr_hazard_p): New function.
828         (workaround_arc_anomaly): Call arc_store_addr_hazard_p for ARC700.
829         * config/arc/arc700.md: Add define_bypass for store/load.
831 2016-11-30  Martin Liska  <mliska@suse.cz>
833         * cgraph.c (symbol_table::initialize): Initialize
834         ipa_clones_dump_file.
835         (cgraph_node::remove): Report to ipa_clones_dump_file.
836         * cgraph.h: Add new argument (suffix) to cloning methods.
837         * cgraphclones.c (dump_callgraph_transformation): New function.
838         (cgraph_node::create_clone): New argument.
839         (cgraph_node::create_virtual_clone): Likewise.
840         (cgraph_node::create_version_clone): Likewise.
841         * dumpfile.c: Add .ipa-clones dump file.
842         * dumpfile.h (enum tree_dump_index): Add TDI_clones
843         * ipa-inline-transform.c (clone_inlined_nodes): Report operation
844         to dump_callgraph_transformation.
846 2016-11-30  Martin Liska  <mliska@suse.cz>
848         PR sanitizer/78541
849         * asan.c (asan_expand_mark_ifn): Properly
850         select a VAR_DECL from FRAME.* component reference.
852 2016-11-30  Segher Boessenkool  <segher@kernel.crashing.org>
854         PR rtl-optimization/78583
855         * simplify-rtx.c (simplify_truncation): Add check missing from the
856         previous commit.
858 2016-11-30  Segher Boessenkool  <segher@kernel.crashing.org>
860         PR rtl-optimization/78590
861         * combine.c (change_zero_ext): Transform zero_extend of subregs only
862         if the subreg_reg is a scalar integer mode.
864 2016-11-30  Jakub Jelinek  <jakub@redhat.com>
866         PR tree-optimization/78586
867         * gimple-ssa-sprintf.c (format_integer): Use TYPE_MAX_VALUE or
868         TYPE_MIN_VALUE or build_all_ones_cst instead of folding LSHIFT_EXPR.
869         Don't build_int_cst min/max twice.  Formatting fix.
871 2016-11-30  Markus Trippelsdorf  <markus@trippelsdorf.de>
873         PR rtl-optimization/78588
874         * combine.c (if_then_else_cond): Also guard against BLKmode.
875         * rtlanal.c (num_sign_bit_copies1): Add assert.
877 2016-11-29  Jeff Law  <law@redhat.com>
879         * common/config/arc/arc-common.c (arc_handle_option): Remove unused
880         variables.
882         * lra-constraints.c (check_and_process_move): Constrain the
883         range of DCLASS and SCLASS to avoid false positive out of bounds
884         array index warning.
886 2016-11-29  David Malcolm  <dmalcolm@redhat.com>
888         * doc/install.texi (--with-target-bdw-gc): Remove stray '@'.
890 2016-11-29  David Malcolm  <dmalcolm@redhat.com>
892         PR preprocessor/78569
893         * input.c (get_substring_ranges_for_loc): Fail gracefully if
894         line directives were present.
896 2016-11-30  Matthias Klose  <doko@ubuntu.com>
898         * doc/install.texi: Document configure options --enable-objc-gc
899         and --with-target-bdw-gc.
901 2016-11-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
903         PR target/78594
904         * config/rs6000/rs6000.md (mov<mode>_internal, QHI iterator): Add
905         'x' to stxsi<wd>x print pattern, so that QImode and HImode values
906         residing in traditional altivec registers can be stored
907         correctly.
909 2016-11-29  Max Filippov  <jcmvbkbc@gmail.com>
911         PR target/78603
912         * config/xtensa/xtensa.c (hwloop_optimize): Don't emit zero
913         overhead loop start between a call and its CALL_ARG_LOCATION
914         note.
916 2016-11-29  Waldemar Brodkorb  <wbx@openadk.org>
918         * config/bfin/linux.h (CPP_SPEC): Define.
920 2016-11-29  Martin Sebor  <msebor@redhat.com>
922         PR tree-optimization/78512
923         * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Remove.
924         * config/rs6000/linux.h: Same.
925         * config/rs6000/linux64.h: Same.
926         * config/sol2.h: Same.
927         * config/sol2.c (solaris_printf_pointer_format): Remove.
928         * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Remove.
929         * doc/tm.texi: Regenerate.
930         * gimple-ssa-sprintf.c (format_pointer): Rempove.
931         (pass_sprintf_length::compute_format_length): Return bool.
932         (pass_sprintf_length::handle_gimple_call): Adjust.
933         * target.def (printf_pointer_format): Remove.
934         * targhooks.c (default_printf_pointer_format): Remove.
935         (linux_printf_pointer_format): Same.
936         * targhooks.h (default_printf_pointer_format): Remove.
937         (linux_printf_pointer_format, solaris_printf_pointer_format): Same.
939 2016-11-29  Uros Bizjak  <ubizjak@gmail.com>
941         * config/i386/sse.md (UNSPEC_MASKOP): Move from i386.md.
942         (mshift): Ditto.
943         (SWI1248_AVX512BWDQ): Ditto.
944         (SWI1248_AVX512BW): Ditto.
945         (k<any_logic:code><mode>): Ditto.
946         (kandn<mode>): Ditto.
947         (kxnor<mode>): Ditto.
948         (knot<mode>): Ditto.
949         (*k<any_lshift:code><mode>): Ditto.
950         (kortestzhi, kortestchi): Ditto.
951         (kunpckhi, kunpcksi, kunpckdi): Ditto.
953 2016-11-29  Andrew Pinski  <apinski@cavium.com>
955         * tree-vrp.c (simplify_stmt_using_ranges): Use boolean_type_node
956         for the EQ_EXPR.
958 2016-11-29  Chen Gang  <gang.chen.5i5j@gmail.com>
960         PR target/71331
961         * config/tilegx/tilegx.c (tilegx_function_profiler): Save r10
962         to stack before call mcount.
963         (tilegx_can_use_return_insn_p): Clean up code.
965 2016-11-29  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
967         * config/avr/avr-mcu.def: (avr_mcu_types): Add flash size info.
969 2016-11-29  David Malcolm  <dmalcolm@redhat.com>
971         PR c++/72774
972         PR c++/72786
973         PR c++/77922
974         PR c++/78313
975         * spellcheck.c (selftest::test_find_closest_string): Verify that
976         we don't offer the goal string as a suggestion.
977         * spellcheck.h (best_match::get_best_meaningful_candidate): Don't
978         offer the goal string as a suggestion.
981 2016-11-29  Claudiu Zissulescu  <claziss@synopsys.com>
983         * config/arc/arc.c (arc_override_options): Avoid selection of
984         compact casesi for ARCv2.
986 2016-11-29  Richard Biener  <rguenther@suse.de>
988         * tree-cfg.c (lower_phi_internal_fn): Do not look for further
989         PHIs after a regular stmt.
990         (stmt_starts_bb_p): PHIs not preceeded by a PHI or a label
991         start a new BB.
993 2016-11-29  Martin Liska  <mliska@suse.cz>
995         PR gcov-profile/78582
996         * tree-profile.c (gimple_gen_time_profiler): Make one extra BB
997         to prevent PHI argument clash.
999 2016-11-29  Claudiu Zissulescu  <claziss@synopsys.com>
1001         * config/arc/arc.opt (marclinux): Fix typo.
1002         (marclinux_prof): Likewise.
1004 2016-11-29  Jiong Wang  <jiong.wang@arm.com>
1006         * target.def (stack_protect_runtime_enabled_p): New.
1007         * function.c (expand_function_end): Guard stack_protect_epilogue with
1008         targetm.stack_protect_runtime_enabled_p.
1009         * cfgexpand.c (pass_expand::execute): Likewise.
1010         * calls.c (expand_call): Likewise.
1011         * doc/tm.texi.in (TARGET_STACK_PROTECT_RUNTIME_ENABLED_P): Add it.
1012         * doc/tm.texi: Regenerate.
1014 2016-11-29  Richard Biener  <rguenther@suse.de>
1016         PR middle-end/78546
1017         * match.pd: Add CST1 - (CST2 - A) -> CST3 + A missing case.
1019 2016-11-29  Janus Weil  <janus@gcc.gnu.org>
1021         * doc/contrib.texi: Add a few missing gfortran contributors.
1023 2016-11-29  Segher Boessenkool  <segher@kernel.crashing.org>
1025         * combine.c (change_zero_ext): Also handle extends from a subreg
1026         to a mode bigger than that of the operand of the subreg.
1028 2016-11-29  Segher Boessenkool  <segher@kernel.crashing.org>
1030         PR target/77687
1031         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Emit the
1032         stack_restore_tie insn instead of stack_tie, for the SVR4 and
1033         SPE ABIs.
1034         * config/rs6000/rs6000.md (stack_restore_tie): New define_insn.
1036 2016-11-28  Segher Boessenkool  <segher@kernel.crashing.org>
1038         * shrink-wrap.c (init_separate_shrink_wrap): Do not clear
1039         head_components and tail_components.
1040         (spread_components): New algorithm.
1041         (emit_common_tails_for_components): Clear head_components and
1042         tail_components.
1043         (insert_prologue_epilogue_for_components): Write extra output to the
1044         dump file for sibcalls and abnormal exits.
1046 2016-11-28  Segher Boessenkool  <segher@kernel.crashing.org>
1048         PR rtl-optimization/78342
1049         * combine.c: Include "cfghooks.h".
1050         (try_combine): If we create an unconditional trap, break the basic
1051         block in two just after it, and remove the edge between; also, set
1052         the *new_direct_jump_p flag so that cleanup_cfg is run.
1054 2016-11-28  Segher Boessenkool  <segher@kernel.crashing.org>
1056         * simplify-rtx.c (simplify_truncation): Handle truncate of zero_extract
1057         and sign_extract.
1059 2016-11-28  Uros Bizjak  <ubizjak@gmail.com>
1061         * config/i386/i386.md (*and<mode>_1): Merge insn pattern from
1062         *andsi_1 and *andhi_1 using SWI24 mode iterator.  Use multi-line
1063         output template string.
1064         (*anddi_1): Use multi-line output template string.
1065         (*andqi_1): Ditto.
1067 2016-11-28  Jakub Jelinek  <jakub@redhat.com>
1069         PR middle-end/78540
1070         * rtl.h (remove_reg_equal_equiv_notes): Return bool instead of void.
1071         * rtlanal.c (remove_reg_equal_equiv_notes): Return true if any
1072         note has been removed.
1073         * postreload.c (reload_combine_recognize_pattern): If
1074         remove_reg_equal_equiv_notes returns true, call df_notes_rescan.
1076 2016-11-28  Martin Sebor  <msebor@redhat.com>
1078         PR middle-end/78520
1079         * gimple-ssa-sprintf.c (target_max_value): Remove.
1080         (target_int_max, target_size_max): Use TYPE_MAX_VALUE.
1081         (get_width_and_precision): New function.
1082         (format_integer, format_floating, get_string_length, format_string):
1083         Correct handling of width and precision with unknown value.
1084         (format_directive): Add warning.
1085         (pass_sprintf_length::compute_format_length): Allow for precision
1086         to consist of a sole period with no asterisk or digits after it.
1088 2016-11-28  Jakub Jelinek  <jakub@redhat.com>
1090         PR rtl-optimization/78546
1091         * simplify-rtx.c (neg_const_int): When negating most negative
1092         number in mode wider than HOST_BITS_PER_WIDE_INT, use
1093         simplify_const_unary_operation to produce CONST_DOUBLE or
1094         CONST_WIDE_INT.
1095         (simplify_plus_minus): Handle the case where neg_const_int
1096         doesn't return a CONST_INT.
1098 2016-11-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
1100         PR target/78556
1101         * config/rs6000/rs6000.c (vspltis_constant): Add casts to avoid
1102         left shifting of negative values.
1104 2016-11-28  Jakub Jelinek  <jakub@redhat.com>
1106         PR fortran/78298
1107         * tree-nested.c (convert_local_reference_stmt): After adding
1108         shared (FRAME.NN) clause to omp parallel, task or target,
1109         add it also to all outer omp parallel, task or target constructs.
1111 2016-11-28  Uros Bizjak  <ubizjak@gmail.com>
1113         * config/i386/i386.md (UNSPEC_KMASKOP): New.
1114         (UNSPEC_KMOV): Remove.
1115         (kmovw): Expand to plain HImode move.
1116         (k<any_logic:code><mode>): Rename from *k<logic><mode>. Use
1117         register_operand predicates.  Tag pattern with UNSPEC_KMASKOP.
1118         Remove corresponding clobber-removing splitter.
1119         (*anddi_1): Remove mask register alternatives.
1120         (*andsi_1): Ditto.
1121         (*andhi_1): Ditto.
1122         (*andqi_1): Ditto.
1123         (*<any_or:code><mode>_1): Ditto.
1124         (*<any_or:code>qi_1): Ditto.
1125         (kandn<mode>): Use SWI1248_AVX512BW mode iterator.  Remove
1126         general register alternatives.  Tag pattern with UNSPEC_KMASKOP.
1127         Remove corresponding splitter to operation with general registers.
1128         (*andn<SWI38:mode>): Rename from *bmi_andn_<mode>.
1129         (*andn<SWI12:mode>): New pattern.
1130         (*kxnor<mode>): Remove general register alternatives.  Tag pattern
1131         with UNSPEC_KMASKOP.  Remove corresponding splitter to operation
1132         with general registers.
1133         (knot<mode>): New insn pattern.
1134         (*one_cmpl<mode>2_1): Remove mask register alternatives.
1135         (one_cmplqi2_1): Ditto.
1136         (*k<any_lshift:code><mode>): Rename from *k<mshift><mode>3.
1137         Tag pattern with UNSPEC_KMASKOP. Add mode attribute.
1138         * config/i386/predicates.md (mask_reg_operand): Remove predicate.
1139         * config/i386/sse.md (vec_unpacks_hi_hi): Update pattern
1140         to generate kmaskop shift.
1141         (vec_unpacks_hi_<mode>): Ditto.
1142         * config/i386/i386-builtin.def (__builtin_ia32_kandhi):
1143         Use CODE_FOR_kandhi.
1144         (__builtin_ia32_knothi): Use CODE_FOR_knothi.
1145         (__builtin_ia32_korhi): Use CODE_FOR_kiorhi.
1146         (__builtin_ia32_kxorhi): Use CODE_FOR_kxorhi.
1148 2016-11-28  Richard Biener  <rguenther@suse.de>
1150         * tree-vrp.c (vrp_visit_assignment_or_call): Handle simplifications
1151         to SSA names via extract_range_from_ssa_name if allowed.
1153 2016-11-28  Richard Biener  <rguenther@suse.de>
1155         PR tree-optimization/78542
1156         * tree-ssa-ccp.c (evaluate_stmt): Only valueize simplification
1157         if allowed.
1159 2016-11-28  Paolo Bonzini  <bonzini@gnu.org>
1161         * combine.c (simplify_if_then_else): Simplify IF_THEN_ELSE that
1162         isolates a single bit, even if the condition involves subregs.
1164 2016-11-28  Tamar Christina  <tamar.christina@arm.com>
1166         * config/aarch64/aarch64-simd-builtins.def
1167         (BSL_P): Added di and v2di mode.
1168         * config/aarch64/arm_neon.h
1169         (vsriq_n_p64, vsri_n_p64): Added poly type.
1170         (vextq_p64, vext_p64): Likewise.
1171         (vceq_p64, vbslq_p64, vbsl_p64): Likewise.
1173 2016-11-28  Tamar Christina  <tamar.christina@arm.com>
1175         * config/aarch64/aarch64-builtins.c (TYPES_SETREGP): Added poly type.
1176         (TYPES_GETREGP): Likewise.
1177         (TYPES_SHIFTINSERTP): Likewise.
1178         (TYPES_COMBINEP): Likewise.
1179         (TYPES_STORE1P): Likewise.
1180         * config/aarch64/aarch64-simd-builtins.def
1181         (combine): Added poly generator.
1182         (get_dregoi): Likewise.
1183         (get_dregci): Likewise.
1184         (get_dregxi): Likewise.
1185         (ssli_n): Likewise.
1186         (ld1): Likewise.
1187         (st1): Likewise.
1188         * config/aarch64/arm_neon.h
1189         (poly64x1x2_t, poly64x1x3_t): New.
1190         (poly64x1x4_t, poly64x2x2_t): Likewise.
1191         (poly64x2x3_t, poly64x2x4_t): Likewise.
1192         (poly64x1_t): Likewise.
1193         (vcreate_p64, vcombine_p64): Likewise.
1194         (vdup_n_p64, vdupq_n_p64): Likewise.
1195         (vld2_p64, vld2q_p64): Likewise.
1196         (vld3_p64, vld3q_p64): Likewise.
1197         (vld4_p64, vld4q_p64): Likewise.
1198         (vld2_dup_p64, vld3_dup_p64): Likewise.
1199         (vld4_dup_p64, vsli_n_p64): Likewise.
1200         (vsliq_n_p64, vst1_p64): Likewise.
1201         (vst1q_p64, vst2_p64): Likewise.
1202         (vst3_p64, vst4_p64): Likewise.
1203         (__aarch64_vdup_lane_p64, __aarch64_vdup_laneq_p64): Likewise.
1204         (__aarch64_vdupq_lane_p64, __aarch64_vdupq_laneq_p64): Likewise.
1205         (vget_lane_p64, vgetq_lane_p64): Likewise.
1206         (vreinterpret_p8_p64, vreinterpretq_p8_p64): Likewise.
1207         (vreinterpret_p16_p64, vreinterpretq_p16_p64): Likewise.
1208         (vreinterpret_p64_f16, vreinterpret_p64_f64): Likewise.
1209         (vreinterpret_p64_s8, vreinterpret_p64_s16): Likewise.
1210         (vreinterpret_p64_s32, vreinterpret_p64_s64): Likewise.
1211         (vreinterpret_p64_f32, vreinterpret_p64_u8): Likewise.
1212         (vreinterpret_p64_u16, vreinterpret_p64_u32): Likewise.
1213         (vreinterpret_p64_u64, vreinterpret_p64_p8): Likewise.
1214         (vreinterpretq_p64_f64, vreinterpretq_p64_s8): Likewise.
1215         (vreinterpretq_p64_s16, vreinterpretq_p64_s32): Likewise.
1216         (vreinterpretq_p64_s64, vreinterpretq_p64_f16): Likewise.
1217         (vreinterpretq_p64_f32, vreinterpretq_p64_u8): Likewise.
1218         (vreinterpretq_p64_u16, vreinterpretq_p64_u32): Likewise.
1219         (vreinterpretq_p64_u64, vreinterpretq_p64_p8): Likewise.
1220         (vreinterpret_f16_p64, vreinterpretq_f16_p64): Likewise.
1221         (vreinterpret_f32_p64, vreinterpretq_f32_p64): Likewise.
1222         (vreinterpret_f64_p64, vreinterpretq_f64_p64): Likewise.
1223         (vreinterpret_s64_p64, vreinterpretq_s64_p64): Likewise.
1224         (vreinterpret_u64_p64, vreinterpretq_u64_p64): Likewise.
1225         (vreinterpret_s8_p64, vreinterpretq_s8_p64): Likewise.
1226         (vreinterpret_s16_p64, vreinterpret_s32_p64): Likewise.
1227         (vreinterpretq_s32_p64, vreinterpret_u8_p64): Likewise.
1228         (vreinterpret_u16_p64, vreinterpretq_u16_p64): Likewise.
1229         (vreinterpret_u32_p64, vreinterpretq_u32_p64): Likewise.
1230         (vset_lane_p64, vsetq_lane_p64): Likewise.
1231         (vget_low_p64, vget_high_p64): Likewise.
1232         (vcombine_p64, vst2_lane_p64): Likewise.
1233         (vst3_lane_p64, vst4_lane_p64): Likewise.
1234         (vst2q_lane_p64, vst3q_lane_p64): Likewise.
1235         (vst4q_lane_p64, vget_lane_p64): Likewise.
1236         (vget_laneq_p64, vset_lane_p64): Likewise.
1237         (vset_laneq_p64, vcopy_lane_p64): Likewise.
1238         (vcopy_laneq_p64, vdup_n_p64): Likewise.
1239         (vdupq_n_p64, vdup_lane_p64): Likewise.
1240         (vdup_laneq_p64, vld1_p64): Likewise.
1241         (vld1q_p64, vld1_dup_p64): Likewise.
1242         (vld1q_dup_p64, vld1q_dup_p64): Likewise.
1243         (vmov_n_p64, vmovq_n_p64): Likewise.
1244         (vst3q_p64, vst4q_p64): Likewise.
1245         (vld1_lane_p64, vld1q_lane_p64): Likewise.
1246         (vst1_lane_p64, vst1q_lane_p64): Likewise.
1247         (vcopy_laneq_p64, vcopyq_laneq_p64): Likewise.
1248         (vdupq_laneq_p64): Likewise.
1250 2016-11-28  Tamar Christina  <tamar.christina@arm.com>
1252         * config/arm/arm_neon.h (vget_lane_p64): New.
1254 2016-11-28  Iain Sandoe  <iain@codesourcery.com>
1256         PR target/71767
1257         * configure.ac (with_ld64): Use portable method to extract the
1258         major part of the version number.
1259         * configure: Regenerated.
1261 2016-11-28  Jakub Jelinek  <jakub@redhat.com>
1263         * gimple-ssa-sprintf.c (build_intmax_type_nodes): Look at
1264         UINTMAX_TYPE rather than SIZE_TYPE.  Add gcc_unreachable if
1265         intmax_t couldn't be determined.
1266         (format_integer): Make {,u}intmax_type_node no longer static,
1267         initialize them only when needed.  For z and t use
1268         signed_or_unsigned_type_for instead of assuming size_t and
1269         ptrdiff_t have the same precision.
1271         PR lto/78211
1272         * ipa-icf.h (sem_item_optimizer): Add m_classes_vec member.
1273         * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Initialize it.
1274         (sem_item_optimizer::~sem_item_optimizer): Traverse m_classes_vec
1275         vector instead of traversing m_classes hash table.  Release
1276         m_classes_vec.
1277         (sem_item_optimizer::read_section, sem_item_optimizer::add_class):
1278         Formatting fixes.
1279         (sem_item_optimizer::get_group_by_hash): When inserting a new group,
1280         add it also to m_classes_vec vector.
1281         (sem_item_optimizer::remove_symtab_node,
1282         sem_item_optimizer::build_hash_based_classes,
1283         sem_item_optimizer::parse_nonsingleton_classes): Formatting fixes.
1284         (sem_item_optimizer::subdivide_classes_by_equality,
1285         sem_item_optimizer::subdivide_classes_by_sensitive_refs,
1286         sem_item_optimizer::verify_classes): Traverse m_classes_vec vector
1287         instead of traversing m_classes hash table.  Formatting fixes.
1288         (sem_item_optimizer::traverse_congruence_split,
1289         sem_item_optimizer::do_congruence_step_for_index,
1290         sem_item_optimizer::do_congruence_step): Formatting fixes.
1291         (sem_item_optimizer::process_cong_reduction): Traverse m_classes_vec
1292         vector instead of traversing m_classes hash table.
1293         (sem_item_optimizer::dump_cong_classes): Likewise.  Formatting fixes.
1294         (sem_item_optimizer::merge_classes): Traverse m_classes_vec vector
1295         instead of traversing m_classes hash table.
1297 2016-11-28  Georg-Johann Lay  <avr@gjlay.de>
1299         * config/avr/avr.c (out_movhi_r_mr) [REG_X + PLUS]: Only SBIW if
1300         X is not unused after.
1302 2016-11-28  Bernd Schmidt  <bschmidt@redhat.com>
1304         PR rtl-optimization/78120
1305         * rtlanal.c (insn_rtx_cost): Revert previous change.
1307 2016-11-28  Georg-Johann Lay  <avr@gjlay.de>
1309         PR 41076
1310         * config/avr/avr.md (SPLIT34): New mode iterator.
1311         (bitop): New code iterator.
1312         (*iorhi3.ashift8-*). New insn-and-split patterns.
1313         (*movhi): Post-reload split reg = 0.
1314         [!MOVW]: Post-reload split reg = reg.
1315         (*mov<mode>) [SI,SF,PSI,SQ,USQ,SA,USA]: Post-reload split reg = reg.
1316         (andhi3, andpsi3, andsi3): Post-reload split reg-reg operations.
1317         (iorhi3, iorpsi3, iorsi3): Same.
1318         (xorhi3, xorpsi3, xorsi3): Same.
1319         * config/avr/avr.c (avr_rtx_costs_1) [IOR && HImode]: Adjust rtx
1320         costs to *iorhi3.ashift8-* patterns.
1322 2016-11-27  Iain Sandoe  <iain@codesourcery.com>
1323             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1325         PR target/67710
1326         * config.in: Regenerate
1327         * config/darwin-driver.c (darwin_driver_init): Emit a version string
1328         for the assembler.
1329         * config/darwin.h(ASM_MMACOSX_VERSION_MIN_SPEC): New, new tests.
1330         * config/darwin.opt(asm_macosx_version_min): New.
1331         * config/i386/darwin.h: Handle ASM_MMACOSX_VERSION_MIN_SPEC.
1332         * configure: Regenerate
1333         * configure.ac: Check for mmacosx-version-min handling.
1335 2016-11-27  Iain Sandoe  <iain@codesourcery.com>
1337         PR target/57438
1338         * config/i386/i386.c (ix86_code_end): Note that we emitted code
1339         where the function might otherwise appear empty for picbase thunks.
1340         (ix86_output_function_epilogue): If we find a zero-sized function
1341         assume that reaching it is UB and trap.  If we find a trailing label
1342         append a nop.
1343         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): If we
1344         find a zero-sized function assume that reaching it is UB and trap.
1345         If we find a trailing label, append a nop.
1347 2016-11-27  Iain Sandoe  <iain@codesourcery.com>
1349         PR target/71767
1350         * config/darwin-sections.def (picbase_thunk_section): New.
1351         * config/darwin.c (darwin_init_sections): Set up picbase thunk
1352         section. (darwin_rodata_section, darwin_objc2_section,
1353         machopic_select_section, darwin_asm_declare_constant_name,
1354         darwin_emit_weak_or_comdat, darwin_function_section): Don’t use
1355         coalesced with newer linkers.
1356         (darwin_override_options): Decide on usage of coalesed sections
1357         on the basis of the target linker version.
1358         * config/darwin.h (MIN_LD64_NO_COAL_SECTS): New.
1359         * config/darwin.opt  (mtarget-linker): New.
1360         * config/i386/i386.c (ix86_code_end): Do not force the thunks into
1361         a coalesced section, instead use a thunks section.
1363 2016-11-27  Iain Sandoe  <iain@codesourcery.com>
1365         PR target/71767
1366         * configure.ac (with-ld64): New var, set for Darwin, set on
1367         detection of ld64, gcc_cv_ld64_export_dynamic: New, New test.
1368         * config/darwin.h: Use LD64_HAS_DYNAMIC export. DEF_LD64: New, define.
1369         * config/darwin10.h(DEF_LD64): Update for this target version.
1370         * config/darwin12.h(LINK_GCC_C_SEQUENCE_SPEC): Remove rdynamic test.
1371         (DEF_LD64): Update for this target version.
1372         * configure: Regenerated.
1373         * config.in: Regenerated.
1375 2016-11-27  Iain Sandoe  <iain@codesourcery.com>
1377         PR target/71767
1378         * config/darwin.c (imachopic_indirection_name): Make data
1379         section indirections linker-visible.
1380         * config/darwin.h (ASM_GENERATE_INTERNAL_LABEL): Make local
1381         constant labels linker-visible.
1383 2016-11-26  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1385         * tree.c (build_common_tree_nodes): Initialize ptrdiff_type_node.
1386         (free_lang_data): Remove assignment to ptrdiff_type_node.
1388 2016-11-25  Jakub Jelinek  <jakub@redhat.com>
1390         PR rtl-optimization/78526
1391         * simplify-rtx.c (simplify_immed_subreg): Don't use wi::extract_uhwi
1392         beyond val's precision.
1394         PR rtl-optimization/78527
1395         * combine.c (make_compound_operation_int): Ignore LSHIFTRT with
1396         out of bounds shift count.
1398 2016-11-25  Martin Liska  <mliska@suse.cz>
1400         PR web/71666
1401         * doc/invoke.texi (-fprofile-use): Fix reference to a section
1402         where -fprofile-generate is documented.
1404 2016-11-25  Martin Liska  <mliska@suse.cz>
1406         PR gcov-profile/78086
1407         * coverage.c (build_init_ctor): Don't use priority {cd}tors if
1408         not supported by a target.  Set priority to 100 if possible.
1409         (build_gcov_exit_decl): Likewise.
1411 2016-11-25  Richard Biener  <rguenther@suse.de>
1413         PR ipa/78515
1414         * ipa-prop.c (compute_complex_assign_jump_func): Properly identify
1415         unary, binary and single RHSs.
1416         * tree.def (BIT_INSERT_EXPR): Adjust tree code name.
1418 2016-11-25  Bin Cheng  <bin.cheng@arm.com>
1420         PR middle-end/78507
1421         PR middle-end/78510
1422         PR middle-end/78517
1423         * match.pd ((cond (cmp (convert1? @1) @3) (convert2? @1) @2)): Use
1424         cmp directly, rather than cmp_code.  Initialize code to ERROR_MARK
1425         and set it to result code if transformation is valid.  Use code EQ
1426         directly in last simplification case.
1428 2016-11-25  Richard Biener  <rguenther@suse.de>
1430         * gimple-fold.c (fold_stmt_1): Check may_propagate_copy
1431         before valueizing return stmts.
1433 2016-11-24  Richard Biener  <rguenther@suse.de>
1435         PR tree-optimization/78343
1436         * passes.def: Add CD-DCE pass after loop splitting.
1437         * tree-ssa-dce.c (find_obviously_necessary_stmts): Move
1438         SCEV init/finalize ...
1439         (perform_tree_ssa_dce): ... here.  Deal with being
1440         executed inside the loop pipeline in aggressive mode.
1442 2016-11-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1444         * tree-ssa-math-opts.c (struct symbolic_number): Improve comment.
1446 2016-11-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1448         PR tree-optimization/77673
1449         * tree-ssa-math-opts.c (struct symbolic_number): Add new src field.
1450         (init_symbolic_number): Initialize src field from src parameter.
1451         (perform_symbolic_merge): Select most dominated statement as the
1452         source statement.  Set src field of resulting n structure from the
1453         input src with the lowest address.
1454         (find_bswap_or_nop): Rename source_stmt into ins_stmt.
1455         (bswap_replace): Rename src_stmt into ins_stmt.  Initially get source
1456         of load from src field rather than insertion statement.  Cancel
1457         optimization if statement analyzed is not dominated by the insertion
1458         statement.
1459         (pass_optimize_bswap::execute): Rename src_stmt to ins_stmt.  Compute
1460         dominance information.
1462 2016-11-25  Eric Botcazou  <ebotcazou@adacore.com>
1464         PR ada/67205
1465         * config/mips/mips.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
1467 2016-11-25  Martin Jambor  <mjambor@suse.cz>
1469         PR tree-optimization/70965
1470         * passes.def (pass_build_ssa_passes): Add pass_rebuild_cgraph_edges.
1472 2016-11-24  James Greenahlgh  <james.greenhalgh@arm.com>
1474         PR target/78509
1475         * config/i386/i386.c (i386_excess_precision): Do not return
1476         FLT_EVAL_METHOD_UNPREDICTABLE when "type" is
1477         EXCESS_PRECISION_TYPE_STANDARD.
1478         * target.def (excess_precision): Document that targets should
1479         not return FLT_EVAL_METHOD_UNPREDICTABLE when "type" is
1480         EXCESS_PRECISION_TYPE_STANDARD or EXCESS_PRECISION_TYPE_FAST.
1481         Fix typo in first sentence.
1482         * doc/tm.texi: Regenerate.
1484 2016-11-25  Richard Biener  <rguenther@suse.de>
1486         PR tree-optimization/78396
1487         * tree-vectorizer.c (vectorize_loops): When the if-converted
1488         body contains masked loads or stores do not attempt to
1489         basic-block-vectorize it.
1491 2016-11-25  Richard Sandiford  <richard.sandiford@arm.com>
1492             Alan Hayward  <alan.hayward@arm.com>
1493             David Sherwood  <david.sherwood@arm.com>
1495         * function.h (spill_slot_alignment): Declare.
1496         * function.c (spill_slot_alignment): New function.
1497         * lra-spills.c (slot): Add align and size fields.
1498         (assign_mem_slot): Use them in the call to assign_stack_local.
1499         (add_pseudo_to_slot): Update the fields.
1500         (assign_stack_slot_num_and_sort_pseudos): Initialise the fields.
1502 2016-11-25  Richard Sandiford  <richard.sandiford@arm.com>
1503             Alan Hayward  <alan.hayward@arm.com>
1504             David Sherwood  <david.sherwood@arm.com>
1506         * stor-layout.c (layout_type): Allow the caller to set the mode of
1507         a float type.  Only choose one here if the mode is still VOIDmode.
1508         * tree.c (build_common_tree_nodes): Set the type mode of decimal
1509         floats before calling layout_type.
1510         * config/rs6000/rs6000.c (rs6000_init_builtins): Likewise.
1512 2016-11-25  Richard Sandiford  <richard.sandiford@arm.com>
1514         * tree-tailcall.c (find_tail_calls): Allow calls to reference
1515         local variables if all references are known to be direct.
1517 2016-11-25  Jakub Jelinek  <jakub@redhat.com>
1518             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1520         PR middle-end/78501
1521         * tree-vrp.c (extract_range_basic): Check for ptrdiff_type_node to be
1522         non null and it's precision matches precision of lhs's type.
1524 2016-11-24  Martin Sebor  <msebor@redhat.com>
1526         PR tree-optimization/78476
1527         * gimple-ssa-sprintf.c (struct pass_sprintf_length::call_info):
1528         Add a member.
1529         (handle_gimple_call): Adjust signature.
1530         (try_substitute_return_value): Remove calls to bounded functions
1531         with zero buffer size whose result is known.
1532         (pass_sprintf_length::execute): Adjust call to handle_gimple_call.
1534 2016-11-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1536         * varasm.c (assemble_start_function): Wrap align_log definition in
1537         ASM_OUTPUT_MAX_SKIP_ALIGN.
1539 2016-11-24  Uros Bizjak  <ubizjak@gmail.com>
1541         * config/i386/i386.md (wide AND insn to QImode splitter): Use
1542         explicit mode macros.
1543         (wide OR insn to QImode splitter): Ditto.
1545 2016-11-24  Vladimir Makarov  <vmakarov@redhat.com>
1547         PR rtl-optimization/77541
1548         * lra-constraints.c (struct input_reload): Add field match_p.
1549         (get_reload_reg): Check modes of input reloads to generate unique
1550         value reload pseudo.
1551         (match_reload): Add input reload pseudo for the current insn.
1553 2016-11-24  James Greenhalgh  <james.greenhalgh@arm.com>
1555         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Update
1556         __FLT_EVAL_METHOD__ and __FLT_EVAL_METHOD_C99__ when we switch
1557         architecture levels.
1558         * config/aarch64/aarch64.c (aarch64_promoted_type): Only promote
1559         the aarch64_fp16_type_node, not all HFmode types.
1560         (aarch64_libgcc_floating_mode_supported_p): Support HFmode.
1561         (aarch64_scalar_mode_supported_p): Likewise.
1562         (aarch64_excess_precision): New.
1563         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
1564         (TARGET_SCALAR_MODE_SUPPORTED_P): Likewise.
1565         (TARGET_C_EXCESS_PRECISION): Likewise.
1567 2016-11-24  James Greenhalgh  <james.greenhalgh@arm.com>
1569         * config/aarch64/aarch64-c.c (aarch64_scalar_mode_supported_p): New.
1570         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
1572 2016-11-24  James Greenhalgh  <james.greenhalgh@arm.com>
1574         * config/aarch64/aarch64.md (<optab>sihf2): Convert to expand.
1575         (<optab>dihf2): Likewise.
1576         (aarch64_fp16_<optab><mode>hf2): New.
1578 2016-11-24  Alexander Monakov  <amonakov@ispras.ru>
1580         PR target/67822
1581         * config/nvptx/mkoffload.c (main): Allow -fopenmp.
1583 2016-11-24  Eric Botcazou  <ebotcazou@adacore.com>
1585         * common/config/sparc/sparc-common.c (sparc_option_optimization_table):
1586         Enable REE at -O2 and higher.
1587         * config/sparc/sparc.c (sparc_option_override): Disable it by default
1588         in 32-bit mode.
1590 2016-11-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1592         PR target/48863
1593         PR inline-asm/70184
1594         * tree-ssa-ter.c (temp_expr_table): Add reg_vars_cnt field.
1595         (new_temp_expr_table): Initialise reg_vars_cnt.
1596         (free_temp_expr_table): Release reg_vars_cnt.
1597         (process_replaceable): Add reg_vars_cnt argument, set reg_vars_cnt
1598         field of TAB.
1599         (find_replaceable_in_bb): Use the above to record register variable
1600         write occurrences and cancel replacement across them.
1602 2016-11-24  Eric Botcazou  <ebotcazou@adacore.com>
1604         PR rtl-optimization/78437
1605         * ree.c (get_uses): New function.
1606         (combine_reaching_defs): When a copy is needed, return false if any
1607         reaching use of the source register reads it in a mode larger than
1608         the mode it is set in and WORD_REGISTER_OPERATIONS is true.
1610 2016-11-24  Martin Liska  <mliska@suse.cz>
1612         * gimple-pretty-print.c (dump_edge_probability): New function.
1613         (dump_gimple_switch): Dump label edge probabilities.
1614         (dump_gimple_cond): Likewise.
1615         (dump_gimple_label): Dump
1616         (dump_gimple_bb_header): Dump basic block frequency.
1617         (pp_cfg_jump): Replace e->dest argument with e.
1618         (dump_implicit_edges): Likewise.
1619         * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at):
1620         Use gimple_bb (at) instead of at->bb.
1622 2016-11-24  Bernd Schmidt  <bschmidt@redhat.com>
1624         * common.opt (flimit-function-alignment): New.
1625         * doc/invoke.texi (-flimit-function-alignment): Document.
1626         * emit-rtl.h (struct rtl_data): Add max_insn_address field.
1627         * final.c (shorten_branches): Set it.
1628         * varasm.c (assemble_start_function): Limit alignment if
1629         requested.
1631 2016-11-24  Richard Biener  <rguenther@suse.de>
1633         PR tree-optimization/71595
1634         * cfgloopmanip.h (remove_path): Add irred_invalidated and
1635         loop_closed_ssa_invalidated parameters, defaulted to NULL.
1636         * cfgloopmanip.c (remove_path): Likewise, pass them along to
1637         called functions.  Only fix irred flags if the caller didn't
1638         request state.
1639         * tree-ssa-loop-ivcanon.c (unloop_loops): Use add_bb_to_loop.
1640         (unloop_loops): Pass irred_invalidated and loop_closed_ssa_invalidated
1641         to remove_path.
1643 2016-11-24  Bernd Schmidt  <bschmidt@redhat.com>
1645         PR rtl-optimization/78120
1646         * ifcvt.c (noce_conversion_profitable_p): Check original cost in all
1647         cases, and additionally test against max_seq_cost for speed
1648         optimization.
1649         (noce_process_if_block): Compute an estimate for the original cost when
1650         optimizing for speed, using the minimum of then and else block costs.
1652         PR rtl-optimization/78120
1653         * rtlanal.c (insn_rtx_cost): Use set_rtx_cost.
1655         PR rtl-optimization/78120
1656         * config/i386/i386.c (ix86_rtx_costs): Fully handle SETs.
1658 2016-11-24  Bin Cheng  <bin.cheng@arm.com>
1660         * match.pd: Refine type conversion in result expr for below pattern:
1661         (cond (cmp (convert1? x) c1) (convert2? x) c2) -> (minmax (x c)).
1663 2016-11-24  Eric Botcazou  <ebotcazou@adacore.com>
1665         PR middle-end/78429
1666         * tree.h (wi::fits_to_boolean_p): New predicate.
1667         (wi::fits_to_tree_p): Use it for boolean types.
1668         * tree.c (int_fits_type_p): Likewise.
1670 2016-11-24  Martin Liska  <mliska@suse.cz>
1672         * print-tree.c (struct bucket): Remove.
1673         (print_node): Add new argument which drives whether a tree node
1674         is printed briefly or not.
1675         (debug_tree): Replace a custom hash table with hash_set<T>.
1676         * print-tree.h (print_node): Add the argument.
1678 2016-11-24  Chung-Lin Tang  <cltang@codesourcery.com>
1680         * config/nios2/nios2.c (nios2_init_libfuncs): Add ATTRIBUTE_UNUSED.
1682 2016-11-23  Peter Bergner  <bergner@vnet.ibm.com>
1684         PR target/78458
1685         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return MODE
1686         if it is at least NREGS wide.
1688 2016-11-23  Joseph Myers  <joseph@codesourcery.com>
1690         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p): For
1691         TARGET_E500_DOUBLE. handle TDmode, TImode and PTImode the same as
1692         TFmode, IFmode and KFmode.
1694 2016-11-23  Joseph Myers  <joseph@codesourcery.com>
1696         * config/rs6000/spe.md (*frob_<SPE64:mode>_ti_8): New insn
1697         pattern.
1699 2016-11-23  Segher Boessenkool  <segher@kernel.crashing.org>
1701         * combine.c (change_zero_ext): Only change the mode of a hard register
1702         destination if can_change_dest_mode holds for that.
1704 2016-11-23  Jeff Law  <law@redhat.com>
1706         * varasm.c (assemble_name): Increase buffer size for name.
1708         * config/spu/spu.md (floatunsdidf2): Remove unused local variable.
1710 2016-11-23  Jakub Kicinski  <jakub.kicinski@netronome.com>
1712         * doc/extend.texi: Constify first argument to __builtin_object_size.
1714 2016-11-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1716         * opth-gen.awk: Use unsigned shifts for bit masks.  Allow all bits
1717         to be used.  Add brackets around macro argument.
1719 2016-11-23  Uros Bizjak  <ubizjak@gmail.com>
1721         * config/i386/i386.md (*<any_or:code>hi_1): Fix operand 2 constraints.
1723 2016-11-23  Jakub Jelinek  <jakub@redhat.com>
1725         PR sanitizer/69278
1726         * opts.c (parse_sanitizer_options): For -fsanitize=undefined,
1727         restore enabling also SANITIZE_UNREACHABLE and SANITIZE_RETURN.
1729 2016-11-23  Jakub Jelinek  <jakub@redhat.com>
1731         PR middle-end/69183
1732         * omp-low.c (build_outer_var_ref): Change lastprivate argument
1733         to code, pass it recursively, adjust uses.  For OMP_CLAUSE_PRIVATE
1734         on worksharing constructs, treat it like clauses on simd construct.
1735         Formatting fix.
1736         (lower_rec_input_clauses): For OMP_CLAUSE_PRIVATE_OUTER_REF pass
1737         OMP_CLAUSE_PRIVATE as last argument to build_outer_var_ref.
1738         (lower_lastprivate_clauses): Pass OMP_CLAUSE_LASTPRIVATE instead
1739         of true as last argument to build_outer_var_ref.
1741 2016-11-23  Uros Bizjak  <ubizjak@gmail.com>
1743         * config/i386/i386.md (*movqi_internal): Calculate mode
1744         attribute of alternatives 7,8,9 depending on TARGET_AVX512DQ.
1745         <TYPE_MSKMOV>: Emit kmovw for MODE_HI insn mode attribute.
1746         (*k<logic><mode>): Calculate mode attribute depending on
1747         TARGET_AVX512DQ.  Emit k<logic>w for MODE_HI insn mode attribute.
1748         (*andqi_1): Calculate mode attribute of alternative 3 depending
1749         on TARGET_AVX512DQ.  Emit kandw for MODE_HI insn mode attribute.
1750         (kandn<mode>): Calculate mode attribute of alternative 2 depending
1751         on TARGET_AVX512DQ.  Emit kandnw for MODE_HI insn mode attribute.
1752         (kxnor<mode>): Merge insn patterns using SWI1248_AVX512BW mode
1753         iterator.  Calculate mode attribute of alternative 1 depending
1754         on TARGET_AVX512DQ.  Emit kxnorw for MODE_HI insn mode attribute.
1755         (*one_cmplqi2_1): Calculate mode attribute of alternative 2 depending
1756         on TARGET_AVX512DQ.  Emit knotw for MODE_HI insn mode attribute.
1758 2016-11-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1760         PR middle-end/78153
1761         * gimple-fold.c (fold_stmt_1): Handle case for GIMPLE_RETURN.
1762         * tree-vrp.c (extract_range_basic): Handle case for
1763         CFN_BUILT_IN_STRLEN.
1765 2016-11-23  Jeff Law  <law@redhat.com>
1767         * config/mcore/mcore.c (emit_new_cond_insn): Fix prototype.
1769         * config/iq2000/iq2000.c (iq2000_rtx_costs): Avoid multiplication
1770         in boolean context warning.
1772         * config/ia64/ia64.c (ia64_emit_insn_before): Fix prototype.
1774 2016-11-23  James Greenhalgh  <james.greenhalgh@arm.com>
1776         PR target/63250
1777         * config/arm/arm-builtins.c (arm_simd_floatHF_type_node): Rename to...
1778         (arm_fp16_type_node): ...This, make visibile.
1779         (arm_simd_builtin_std_type): Rename arm_simd_floatHF_type_node to
1780         arm_fp16_type_node.
1781         (arm_init_simd_builtin_types): Likewise.
1782         (arm_init_fp16_builtins): Likewise.
1783         * config/arm/arm.c (arm_excess_precision): New.
1784         (arm_floatn_mode): Likewise.
1785         (TARGET_C_EXCESS_PRECISION): Likewise.
1786         (TARGET_FLOATN_MODE): Likewise.
1787         (arm_promoted_type): Only promote arm_fp16_type_node.
1788         * config/arm/arm.h (arm_fp16_type_node): Declare.
1790 2016-11-23  James Greenhalgh  <james.greenhalgh@arm.com>
1792         * config/arm/arm.c (arm_convert_to_type): Delete.
1793         (TARGET_CONVERT_TO_TYPE): Delete.
1794         (arm_init_libfuncs): Enable trunc_optab from DFmode to HFmode.
1795         (arm_libcall_uses_aapcs_base): Add trunc_optab from DF- to HFmode.
1796         * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): New.
1797         * config/arm/arm.md (truncdfhf2): Only convert through SFmode if we
1798         are in fast math mode, and have no single step hardware instruction.
1799         (extendhfdf2): Only expand through SFmode if we don't have a
1800         single-step hardware instruction.
1801         * config/arm/vfp.md (*truncdfhf2): New.
1802         (extendhfdf2): Likewise.
1804 2016-11-23  James Greenhalgh  <james.greenhalgh@arm.com>
1806         * targhooks.c (default_floatn_mode): Enable _Float16 if a target
1807         provides HFmode.
1809 2016-11-23  James Greenhalgh  <james.greenhalgh@arm.com>
1811         * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Delete.
1812         * config/m68k/m68k.h (TARGET_FLT_EVAL_METHOD): Delete.
1813         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Delete.
1814         * defaults.h (TARGET_FLT_EVAL_METHOD): Delete.
1815         * doc/tm.texi.in (TARGET_FLT_EVAL_METHOD): Delete.
1816         * doc/tm.texi: Regenerate.
1817         * system.h (TARGET_FLT_EVAL_METHOD): Poison.
1819 2016-11-23  James Greenhalgh  <james.greenhalgh@arm.com>
1821         * toplev.c (init_excess_precision): Delete most logic.
1822         * tree.c (excess_precision_type): Rewrite to use
1823         TARGET_EXCESS_PRECISION.
1824         * doc/invoke.texi (-fexcess-precision): Document behaviour in a
1825         more generic fashion.
1826         * ginclude/float.h: Wrap definition of FLT_EVAL_METHOD in
1827         __STDC_WANT_IEC_60559_TYPES_EXT__.
1829 2016-11-23  James Greenhalgh  <james.greenhalgh@arm.com>
1831         * common.opt (fpermitted-flt-eval-methods): New.
1832         * doc/invoke.texi (-fpermitted-flt-eval-methods): Document it.
1833         * flag_types.h (permitted_flt_eval_methods): New.
1835 2016-11-23  James Greenhalgh  <james.greenhalgh@arm.com>
1837         * config/m68k/m68k.c (m68k_excess_precision): New.
1838         (TARGET_C_EXCESS_PRECISION): Define.
1840 2016-11-23  James Greenhalgh  <james.greenhalgh@arm.com>
1842         * config/s390/s390.c (s390_excess_precision): New.
1843         (TARGET_C_EXCESS_PRECISION): Define.
1845 2016-11-23  James Greenhalgh  <james.greenhalgh@arm.com>
1847         * config/i386/i386.c (ix86_excess_precision): New.
1848         (TARGET_C_EXCESS_PRECISION): Define.
1850 2016-11-23  James Greenhalgh  <james.greenhalgh@arm.com>
1852         * target.def (excess_precision): New hook.
1853         * target.h (flt_eval_method): New.
1854         (excess_precision_type): Likewise.
1855         * targhooks.c (default_excess_precision): New.
1856         * targhooks.h (default_excess_precision): New.
1857         * doc/tm.texi.in (TARGET_C_EXCESS_PRECISION): New.
1858         * doc/tm.texi: Regenerate.
1860 2016-11-23  Martin Sebor  <msebor@redhat.com>
1862         PR middle-end/78461
1863         * gimple-ssa-sprintf.c (format_string): Correct the maxima and
1864         set the minimum number of bytes for an unknown string to zero.
1866 2016-11-23  Martin Jambor  <mjambor@suse.cz>
1867             Martin Liska  <mliska@suse.cz>
1869         * hsa-builtins.def: New file.
1870         * Makefile.in (BUILTINS_DEF): Add hsa-builtins.def dependency.
1871         * builtins.def: Include hsa-builtins.def.
1872         (DEF_HSA_BUILTIN): New macro.
1873         * dumpfile.h (OPTGROUP_OPENMP): Define.
1874         * dumpfile.c (optgroup_options): Added OPTGROUP_OPENMP.
1875         * gimple.h (gf_mask): Added elements GF_OMP_FOR_GRID_INTRA_GROUP and
1876         GF_OMP_FOR_GRID_GROUP_ITER.
1877         (gimple_omp_for_grid_phony): Added checking assert.
1878         (gimple_omp_for_set_grid_phony): Likewise.
1879         (gimple_omp_for_grid_intra_group): New function.
1880         (gimple_omp_for_set_grid_intra_group): Likewise.
1881         (gimple_omp_for_grid_group_iter): Likewise.
1882         (gimple_omp_for_set_grid_group_iter): Likewise.
1883         * omp-low.c (check_omp_nesting_restrictions): Allow GRID loop where
1884         previosuly only distribute loop was permitted.
1885         (lower_lastprivate_clauses): Allow non tcc_comparison predicates.
1886         (grid_get_kernel_launch_attributes): Support multiple HSA grid
1887         dimensions.
1888         (grid_expand_omp_for_loop): Likewise and also support standalone
1889         distribute constructs.  New parameter INTRA_GROUP, updated both users.
1890         (grid_expand_target_grid_body): Support standalone distribute
1891         constructs.
1892         (pass_data_expand_omp): Changed optinfo_flags to OPTGROUP_OPENMP.
1893         (pass_data_expand_omp_ssa): Likewise.
1894         (pass_data_omp_device_lower): Likewsie.
1895         (pass_data_lower_omp): Likewise.
1896         (pass_data_diagnose_omp_blocks): Likewise.
1897         (pass_data_oacc_device_lower): Likewise.
1898         (pass_data_omp_target_link): Likewise.
1899         (grid_lastprivate_predicate): New function.
1900         (lower_omp_for_lastprivate): Call grid_lastprivate_predicate for
1901         gridified loops.
1902         (lower_omp_for): Support standalone distribute constructs.
1903         (grid_prop): New type.
1904         (grid_safe_assignment_p): Check for assignments to group_sizes, new
1905         parameter GRID.
1906         (grid_seq_only_contains_local_assignments): New parameter GRID, pass
1907         it to callee.
1908         (grid_find_single_omp_among_assignments_1): Likewise, improve missed
1909         optimization info messages.
1910         (grid_find_single_omp_among_assignments): Likewise.
1911         (grid_find_ungridifiable_statement): Do not bail out for SIMDs.
1912         (grid_parallel_clauses_gridifiable): New function.
1913         (grid_inner_loop_gridifiable_p): Likewise.
1914         (grid_dist_follows_simple_pattern): Likewise.
1915         (grid_gfor_follows_tiling_pattern): Likewise.
1916         (grid_call_permissible_in_distribute_p): Likewise.
1917         (grid_handle_call_in_distribute): Likewise.
1918         (grid_dist_follows_tiling_pattern): Likewise.
1919         (grid_target_follows_gridifiable_pattern): Support standalone
1920         distribute constructs.
1921         (grid_var_segment): New enum.
1922         (grid_mark_variable_segment): New function.
1923         (grid_copy_leading_local_assignments): Call grid_mark_variable_segment
1924         if a new argument says so.
1925         (grid_process_grid_body): New function.
1926         (grid_eliminate_combined_simd_part): Likewise.
1927         (grid_mark_tiling_loops): Likewise.
1928         (grid_mark_tiling_parallels_and_loops): Likewise.
1929         (grid_process_kernel_body_copy): Support standalone distribute
1930         constructs.
1931         (grid_attempt_target_gridification): New grid variable holding overall
1932         gridification state.  Support standalone distribute constructs and
1933         collapse clauses.
1934         * doc/optinfo.texi (Optimization groups): Document OPTGROUP_OPENMP.
1935         * hsa.h (hsa_bb): Add method method append_phi.
1936         (hsa_insn_br): Renamed to hsa_insn_cbr, renamed all
1937         occurences in all files too.
1938         (hsa_insn_br): New class, now the ancestor of hsa_incn_cbr.
1939         (is_a_helper <hsa_insn_br *>::test): New function.
1940         (is_a_helper <hsa_insn_cbr *>::test): Adjust to only cover conditional
1941         branch instructions.
1942         (hsa_insn_signal): Make a direct descendant of
1943         hsa_insn_basic.  Add memorder constructor parameter and
1944         m_memory_order and m_signalop member variables.
1945         (hsa_insn_queue): Changed constructor parameters to common form.
1946         Added m_segment and m_memory_order member variables.
1947         (hsa_summary_t): Add private member function
1948         process_gpu_implementation_attributes.
1949         (hsa_function_summary): Rename m_binded_function to
1950         m_bound_function.
1951         (hsa_insn_basic_p): Remove typedef.
1952         (hsa_op_with_type): Change hsa_insn_basic_p into plain pointers.
1953         (hsa_op_reg_p): Remove typedef.
1954         (hsa_function_representation): Change hsa_op_reg_p into plain
1955         pointers.
1956         (hsa_insn_phi): Removed new and delete operators.
1957         (hsa_insn_br): Likewise.
1958         (hsa_insn_cbr): Likewise.
1959         (hsa_insn_sbr): Likewise.
1960         (hsa_insn_cmp): Likewise.
1961         (hsa_insn_mem): Likewise.
1962         (hsa_insn_atomic): Likewise.
1963         (hsa_insn_signal): Likewise.
1964         (hsa_insn_seg): Likewise.
1965         (hsa_insn_call): Likewise.
1966         (hsa_insn_arg_block): Likewise.
1967         (hsa_insn_comment): Likewise.
1968         (hsa_insn_srctype): Likewise.
1969         (hsa_insn_packed): Likewise.
1970         (hsa_insn_cvt): Likewise.
1971         (hsa_insn_alloca): Likewise.
1972         * hsa.c (hsa_destroy_insn): Also handle instances of hsa_insn_br.
1973         (process_gpu_implementation_attributes): New function.
1974         (link_functions): Move some functionality into it.  Adjust after
1975         renaming m_binded_functions to m_bound_functions.
1976         (hsa_insn_basic::op_output_p): Add BRIG_OPCODE_DEBUGTRAP
1977         to the list of instructions with no output registers.
1978         (get_in_type): Return this if it is a register of
1979         matching size.
1980         (hsa_get_declaration_name): Moved to...
1981         * hsa-gen.c (hsa_get_declaration_name): ...here.  Allocate
1982         temporary string on an obstack instead from ggc.
1983         (query_hsa_grid): Renamed to query_hsa_grid_dim, reimplemented, cut
1984         down to two overloads.
1985         (hsa_allocp_operand_address): Removed.
1986         (hsa_allocp_operand_immed): Likewise.
1987         (hsa_allocp_operand_reg): Likewise.
1988         (hsa_allocp_operand_code_list): Likewise.
1989         (hsa_allocp_operand_operand_list): Likewise.
1990         (hsa_allocp_inst_basic): Likewise.
1991         (hsa_allocp_inst_phi): Likewise.
1992         (hsa_allocp_inst_mem): Likewise.
1993         (hsa_allocp_inst_atomic): Likewise.
1994         (hsa_allocp_inst_signal): Likewise.
1995         (hsa_allocp_inst_seg): Likewise.
1996         (hsa_allocp_inst_cmp): Likewise.
1997         (hsa_allocp_inst_br): Likewise.
1998         (hsa_allocp_inst_sbr): Likewise.
1999         (hsa_allocp_inst_call): Likewise.
2000         (hsa_allocp_inst_arg_block): Likewise.
2001         (hsa_allocp_inst_comment): Likewise.
2002         (hsa_allocp_inst_queue): Likewise.
2003         (hsa_allocp_inst_srctype): Likewise.
2004         (hsa_allocp_inst_packed): Likewise.
2005         (hsa_allocp_inst_cvt): Likewise.
2006         (hsa_allocp_inst_alloca): Likewise.
2007         (hsa_allocp_bb): Likewise.
2008         (hsa_obstack): New.
2009         (hsa_init_data_for_cfun): Initialize obstack.
2010         (hsa_deinit_data_for_cfun): Release memory of the obstack.
2011         (hsa_op_immed::operator new): Use obstack instead of object_allocator.
2012         (hsa_op_reg::operator new): Likewise.
2013         (hsa_op_address::operator new): Likewise.
2014         (hsa_op_code_list::operator new): Likewise.
2015         (hsa_op_operand_list::operator new): Likewise.
2016         (hsa_insn_basic::operator new): Likewise.
2017         (hsa_insn_phi::operator new): Likewise.
2018         (hsa_insn_br::operator new): Likewise.
2019         (hsa_insn_sbr::operator new): Likewise.
2020         (hsa_insn_cmp::operator new): Likewise.
2021         (hsa_insn_mem::operator new): Likewise.
2022         (hsa_insn_atomic::operator new): Likewise.
2023         (hsa_insn_signal::operator new): Likewise.
2024         (hsa_insn_seg::operator new): Likewise.
2025         (hsa_insn_call::operator new): Likewise.
2026         (hsa_insn_arg_block::operator new): Likewise.
2027         (hsa_insn_comment::operator new): Likewise.
2028         (hsa_insn_srctype::operator new): Likewise.
2029         (hsa_insn_packed::operator new): Likewise.
2030         (hsa_insn_cvt::operator new): Likewise.
2031         (hsa_insn_alloca::operator new): Likewise.
2032         (hsa_init_new_bb): Likewise.
2033         (hsa_bb::append_phi): New function.
2034         (gen_hsa_phi_from_gimple_phi): Use it.
2035         (get_symbol_for_decl): Fix dinstinguishing between
2036         global and local functions.  Put local variables into a segment
2037         according to their attribute or static flag, if there is one.
2038         (hsa_insn_br::hsa_insn_br): New.
2039         (hsa_insn_br::operator new): Likewise.
2040         (hsa_insn_cbr::hsa_insn_cbr): Set width via ancestor constructor.
2041         (query_hsa_grid_nodim): New function.
2042         (multiply_grid_dim_characteristics): Likewise.
2043         (gen_get_num_threads): Likewise.
2044         (gen_get_num_teams): Reimplemented.
2045         (gen_get_team_num): Likewise.
2046         (gen_hsa_insns_for_known_library_call): Updated calls to the above
2047         helper functions.
2048         (get_memory_order_name): Removed.
2049         (get_memory_order): Likewise.
2050         (hsa_memorder_from_tree): New function.
2051         (gen_hsa_ternary_atomic_for_builtin): Renamed to
2052         gen_hsa_atomic_for_builtin, can also create signals.
2053         (gen_hsa_insns_for_call): Handle many new builtins.  Adjust to use
2054         hsa_memory_order_from_tree and gen_hsa_atomic_for_builtin.
2055         (hsa_insn_atomic): Fix function comment.
2056         (hsa_insn_signal::hsa_insn_signal): Fix comment.  Update call to
2057         ancestor constructor and initialization of new member variables.
2058         (hsa_insn_queue::hsa_insn_queue): Added initialization of new
2059         member variables.
2060         (hsa_get_host_function): Handle functions with no bound CPU
2061         implementation.  Fix binded to bound.
2062         (get_brig_function_name): Likewise.
2063         (HSA_SORRY_ATV): Remove semicolon after macro.
2064         (HSA_SORRY_AT): Likewise.
2065         (omp_simple_builtin::generate): Add missing semicolons.
2066         (hsa_insn_phi::operator new): Removed.
2067         (hsa_insn_br::operator new): Likewise.
2068         (hsa_insn_cbr::operator new): Likewise.
2069         (hsa_insn_sbr::operator new): Likewise.
2070         (hsa_insn_cmp::operator new): Likewise.
2071         (hsa_insn_mem::operator new): Likewise.
2072         (hsa_insn_atomic::operator new): Likewise.
2073         (hsa_insn_signal::operator new): Likewise.
2074         (hsa_insn_seg::operator new): Likewise.
2075         (hsa_insn_call::operator new): Likewise.
2076         (hsa_insn_arg_block::operator new): Likewise.
2077         (hsa_insn_comment::operator new): Likewise.
2078         (hsa_insn_srctype::operator new): Likewise.
2079         (hsa_insn_packed::operator new): Likewise.
2080         (hsa_insn_cvt::operator new): Likewise.
2081         (hsa_insn_alloca::operator new): Likewise.
2082         (get_symbol_for_decl): Accept CONST_DECLs, put them to
2083         readonly segment.
2084         (gen_hsa_addr): Also process CONST_DECLs.
2085         (gen_hsa_addr_insns): Process CONST_DECLs by creating private
2086         copies.
2087         (gen_hsa_unary_operation): Make sure the function does
2088         not use bittype source type for firstbit and lastbit operations.
2089         (gen_hsa_popcount_to_dest): Make sure the function uses a bittype
2090         source type.
2091         * hsa-brig.c (emit_insn_operands): Cope with zero operands in an
2092         instruction.
2093         (emit_branch_insn): Renamed to emit_cond_branch_insn.
2094         Emit the width stored in the class.
2095         (emit_generic_branch_insn): New function.
2096         (emit_insn): Call emit_generic_branch_insn.
2097         (emit_signal_insn): Remove obsolete comment.  Update
2098         member variable name, pick a type according to profile.
2099         (emit_alloca_insn): Remove obsolete comment.
2100         (emit_atomic_insn): Likewise.
2101         (emit_queue_insn): Get segment and memory order from the IR object.
2102         (hsa_brig_section): Make allocate_new_chunk, chunks
2103         and cur_chunk provate, add a default NULL parameter to add method.
2104         (hsa_brig_section::add): Added a new parameter, store pointer to
2105         output data there if it is non-NULL.
2106         (emit_function_directives): Use this new parameter instead of
2107         calculating the pointer itself, fix function comment.
2108         (hsa_brig_emit_function): Add forgotten endian conversion.
2109         (hsa_output_kernels): Remove unnecessary building of
2110         kernel_dependencies_vector_type.
2111         (emit_immediate_operand): Declare.
2112         (emit_directive_variable): Also emit initializers of CONST_DECLs.
2113         (gen_hsa_insn_for_internal_fn_call): Also handle IFN_RSQRT.
2114         (verify_function_arguments): Properly detect variadic
2115         arguments.
2116         * hsa-dump.c (hsa_width_specifier_name): New function.
2117         (dump_hsa_insn_1): Dump generic branch instructions, update signal
2118         member variable name.  Special dumping for queue objects.
2119         * ipa-hsa.c (process_hsa_functions): Adjust after renaming
2120         m_binded_functions to m_bound_functions.  Copy externally visible flag
2121         to the node.
2122         (ipa_hsa_write_summary): Likewise.
2123         (ipa_hsa_read_section): Likewise.
2125 2016-11-23  Richard Biener  <rguenther@suse.de>
2127         PR tree-optimization/78396
2128         * tree-vectorizer.c (vectorize_loops): If an innermost loop didn't
2129         vectorize try vectorizing an if-converted body using BB vectorization.
2131 2016-11-23  Richard Sandiford  <richard.sandiford@arm.com>
2132             Alan Hayward  <alan.hayward@arm.com>
2133             David Sherwood  <david.sherwood@arm.com>
2135         * rtlanal.c (subreg_get_info): Use more local variables.
2136         Remark that for HARD_REGNO_NREGS_HAS_PADDING, each scalar unit
2137         occupies at least one register.  Assume that full hard registers
2138         have consistent endianness.  Share previously-duplicated if block.
2139         Rework the main handling so that it operates on independently-
2140         addressable YMODE-sized blocks.  Use subreg_size_lowpart_offset
2141         to check lowpart offsets, without trying to find an equivalent
2142         integer mode first.  Handle WORDS_BIG_ENDIAN != REG_WORDS_BIG_ENDIAN
2143         as a final register-endianness correction.
2145 2016-11-23  Segher Boessenkool  <segher@kernel.crashing.org>
2147         PR target/77881
2148         PR bootstrap/78390
2149         PR target/78438
2150         PR bootstrap/78477
2151         * combine.c (make_compound_operation_int): Do not convert a subreg of
2152         a non-constant logical shift right to a zero_extract.  Handle the case
2153         where some zero bits have been shifted into the range covered by that
2154         subreg.
2156 2016-11-23  Richard Sandiford  <richard.sandiford@arm.com>
2157             Alan Hayward  <alan.hayward@arm.com>
2158             David Sherwood  <david.sherwood@arm.com>
2160         * rtl.h (subreg_size_offset_from_lsb): Declare.
2161         (subreg_offset_from_lsb): New function.
2162         (subreg_size_lowpart_offset): Declare.
2163         (subreg_lowpart_offset): Turn into an inline function.
2164         (subreg_size_highpart_offset): Declare.
2165         (subreg_highpart_offset): Turn into an inline function.
2166         * emit-rtl.c (subreg_size_lowpart_offset): New function.
2167         (subreg_size_highpart_offset): Likewise
2168         * rtlanal.c (subreg_size_offset_from_lsb): Likewise.
2170 2016-11-23  Richard Biener  <rguenther@suse.de>
2172         PR tree-optimization/78482
2173         * tree-cfgcleanup.c: Include tree-ssa-loop-niter.h.
2174         (remove_forwarder_block_with_phi): When merging with a loop
2175         header creates a new latch reset number of iteration information
2176         of the loop.
2178 2016-11-23  Eric Botcazou  <ebotcazou@adacore.com>
2180         * config/sparc/sparc.md (*ashrsi3_extend): Rename to...
2181         (*ashrsi3_extend0): ...this.  Accept constant integers.
2182         (*ashrsi3_extend2): Rename to...
2183         (*ashrsi3_extend1): ...this.
2184         (*ashrsi3_extend2): New pattern.
2185         (*lshrsi3_extend1): Accept constant integers.
2186         (*lshrsi3_extend2): Fix condition on operand 2.
2188 2016-11-23  Martin Liska  <mliska@suse.cz>
2190         * config/i386/i386.c: Initialize function pointer to NULL.
2192 2016-11-23  Bin Cheng  <bin.cheng@arm.com>
2194         * fold-const.c (fold_cond_expr_with_comparison): Move simplification
2195         for A == C1 ? A : C2 to below.
2196         * match.pd: Move from above to here:
2197         (cond (eq (convert1? x) c1) (convert2? x) c2)
2198           -> (cond (eq x c1) c1 c2).
2200 2016-11-23  Bin Cheng  <bin.cheng@arm.com>
2202         * fold-const.c (fold_cond_expr_with_comparison): Move simplification
2203         for A cmp C1 ? A : C2 to below, also simplify remaining code.
2204         * match.pd: Move and extend simplification from above to here:
2205         (cond (cmp (convert1? x) c1) (convert2? x) c2) -> (minmax (x c)).
2206         * tree-if-conv.c (ifcvt_follow_ssa_use_edges): New func.
2207         (predicate_scalar_phi): Call fold_stmt using the new valueize func.
2209 2016-11-23  Martin Liska  <mliska@suse.cz>
2210             Martin Jambor  <mjambor@suse.cz>
2212         * doc/install.texi: Remove entry about --with-hsa-kmt-lib.
2214 2016-11-23  Aldy Hernandez  <aldyh@redhat.com>
2216         PR target/78213
2217         * opts.c (finish_options): Set -fsyntax-only if running self tests.
2219 2016-11-23  Richard Biener  <rguenther@suse.de>
2221         PR middle-end/71762
2222         * match.pd ((~X & Y) -> X < Y, (X & ~Y) -> Y < X,
2223         (~X | Y) -> X <= Y, (X | ~Y) -> Y <= X): Remove.
2225 2016-11-23  Richard Biener  <rguenther@suse.de>
2227         PR lto/78472
2228         * tree.c (gimple_canonical_types_compatible_p): Ignore zero-sized
2229         fields.
2231 2016-11-23  Richard Biener  <rguenther@suse.de>
2232             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.rog>
2234         PR tree-optimization/78154
2235         * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Return true if function
2236         returns it's argument and the argument is nonnull.
2237         * builtin-attrs.def: Define ATTR_RETURNS_NONNULL,
2238         ATT_RETNONNULL_NOTHROW_LEAF.
2239         * builtins.def (BUILT_IN_MEMPCPY): Change attribute to
2240         ATTR_RETNONNULL_NOTHROW_LEAF.
2241         (BUILT_IN_STPCPY): Likewise.
2242         (BUILT_IN_STPNCPY): Likewise.
2243         (BUILT_IN_MEMPCPY_CHK): Likewise.
2244         (BUILT_IN_STPCPY_CHK): Likewise.
2245         (BUILT_IN_STPNCPY_CHK): Likewise.
2246         (BUILT_IN_STRCAT): Change attribute to ATTR_RET1_NOTHROW_NONNULL_LEAF.
2247         (BUILT_IN_STRNCAT): Likewise.
2248         (BUILT_IN_STRNCPY): Likewise.
2249         (BUILT_IN_MEMSET_CHK): Likewise.
2250         (BUILT_IN_STRCAT_CHK): Likewise.
2251         (BUILT_IN_STRCPY_CHK): Likewise.
2252         (BUILT_IN_STRNCAT_CHK): Likewise.
2253         (BUILT_IN_STRNCPY_CHK): Likewise.
2255 2016-11-23  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
2257         * fold-const.c (tree_expr_nonzero_p) : Make non-static.
2258         * fold-const.h (tree_expr_nonzero_p) : Declare.
2259         * match.pd (cmp (mult:c @0 @1) (mult:c @2 @1) : New Pattern.
2261 2016-11-23  Paolo Bonzini  <bonzini@gnu.org>
2263         * system.h (HAVE_DESIGNATED_INITIALIZERS,
2264         HAVE_DESIGNATED_UNION_INITIALIZERS): Do not use
2265         "defined" in macros.
2266         * doc/cpp.texi (Defined): Mention -Wexpansion-to-defined.
2267         * doc/cppopts.texi (Invocation): Document -Wexpansion-to-defined.
2268         * doc/invoke.texi (Warning Options): Document -Wexpansion-to-defined.
2270 2016-11-23  Georg-Johann Lay  <avr@gjlay.de>
2272         PR target/60300
2273         * config/avr/constraints.md (Csp): Widen range to [-11..6].
2274         * config/avr/avr.c (avr_prologue_setup_frame): Limit number
2275         of RCALLs in prologue to 3.
2277 2016-11-22  Michael Collison  <michael.collison@arm.com>
2279         * config/aarch64/aarch64-protos.h
2280         (aarch64_and_split_imm1, aarch64_and_split_imm2)
2281         (aarch64_and_bitmask_imm): New prototypes
2282         * config/aarch64/aarch64.c (aarch64_and_split_imm1):
2283         New overloaded function to create bit mask covering the
2284         lowest to highest bits set.
2285         (aarch64_and_split_imm2): New overloaded functions to create bit
2286         mask of zeros between first and last bit set.
2287         (aarch64_and_bitmask_imm): New function to determine if a integer
2288         is a valid two instruction "and" operation.
2289         * config/aarch64/aarch64.md:(and<mode>3): New define_insn and _split
2290         allowing wider range of constants with "and" operations.
2291         * (ior<mode>3, xor<mode>3): Use new LOGICAL2 iterator to prevent
2292         "and" operator from matching restricted constant range used for
2293         ior and xor operators.
2294         * config/aarch64/constraints.md (UsO constraint): New SImode constraint
2295         for constants in "and" operantions.
2296         (UsP constraint): New DImode constraint for constants
2297         in "and" operations.
2298         * config/aarch64/iterators.md (lconst2): New mode iterator.
2299         (LOGICAL2): New code iterator.
2300         * config/aarch64/predicates.md (aarch64_logical_and_immediate): New
2301         predicate.
2302         (aarch64_logical_and_operand): New predicate allowing extended
2303         constants for "and" operations.
2305 2016-11-22  Walter Lee  <walt@tilera.com>
2307         * config/tilegx/tilegx.md (trap): New pattern.
2308         * config/tilepro/tilepro.md (trap): Likewise.
2310 2016-11-22  Walter Lee  <walt@tilera.com>
2312         * config/tilegx/tilegx.md (*zero_extract): Use
2313         define_insn_and_split instead of define_insn; Handle pos + size >
2314         64.
2315         (*sign_extract): Likewise.
2317 2016-11-22  Marek Polacek  <polacek@redhat.com>
2319         PR tree-optimization/78455
2320         * tree-ssa-uninit.c (can_chain_union_be_invalidated_p): Fix typo.
2322 2016-11-22  Ian Lance Taylor  <iant@golang.org>
2324         PR go/78431
2325         PR go/78432
2326         * godump.c (go_format_type): Always pass alignment as 1 when
2327         calling go_append_padding at end of struct/union.
2329 2016-11-22  Jakub Jelinek  <jakub@redhat.com>
2331         PR target/78451
2332         * config/i386/avx512bwintrin.h (_mm512_setzero_qi,
2333         _mm512_setzero_hi): Removed.
2334         (_mm512_maskz_mov_epi16, _mm512_maskz_loadu_epi16,
2335         _mm512_maskz_mov_epi8, _mm512_maskz_loadu_epi8,
2336         _mm512_maskz_broadcastb_epi8, _mm512_maskz_set1_epi8,
2337         _mm512_maskz_broadcastw_epi16, _mm512_maskz_set1_epi16,
2338         _mm512_mulhrs_epi16, _mm512_maskz_mulhrs_epi16, _mm512_mulhi_epi16,
2339         _mm512_maskz_mulhi_epi16, _mm512_mulhi_epu16,
2340         _mm512_maskz_mulhi_epu16, _mm512_maskz_mullo_epi16,
2341         _mm512_cvtepi8_epi16, _mm512_maskz_cvtepi8_epi16, _mm512_cvtepu8_epi16,
2342         _mm512_maskz_cvtepu8_epi16, _mm512_permutexvar_epi16,
2343         _mm512_maskz_permutexvar_epi16, _mm512_avg_epu8, _mm512_maskz_avg_epu8,
2344         _mm512_maskz_add_epi8, _mm512_maskz_sub_epi8, _mm512_avg_epu16,
2345         _mm512_maskz_avg_epu16, _mm512_subs_epi8, _mm512_maskz_subs_epi8,
2346         _mm512_subs_epu8, _mm512_maskz_subs_epu8, _mm512_adds_epi8,
2347         _mm512_maskz_adds_epi8, _mm512_adds_epu8, _mm512_maskz_adds_epu8,
2348         _mm512_maskz_sub_epi16, _mm512_subs_epi16, _mm512_maskz_subs_epi16,
2349         _mm512_subs_epu16, _mm512_maskz_subs_epu16, _mm512_maskz_add_epi16,
2350         _mm512_adds_epi16, _mm512_maskz_adds_epi16, _mm512_adds_epu16,
2351         _mm512_maskz_adds_epu16, _mm512_srl_epi16, _mm512_maskz_srl_epi16,
2352         _mm512_packs_epi16, _mm512_sll_epi16, _mm512_maskz_sll_epi16,
2353         _mm512_maddubs_epi16, _mm512_maskz_maddubs_epi16, _mm512_unpackhi_epi8,
2354         _mm512_maskz_unpackhi_epi8, _mm512_unpackhi_epi16,
2355         _mm512_maskz_unpackhi_epi16, _mm512_unpacklo_epi8,
2356         _mm512_maskz_unpacklo_epi8, _mm512_unpacklo_epi16,
2357         _mm512_maskz_unpacklo_epi16, _mm512_shuffle_epi8,
2358         _mm512_maskz_shuffle_epi8, _mm512_min_epu16, _mm512_maskz_min_epu16,
2359         _mm512_min_epi16, _mm512_maskz_min_epi16, _mm512_max_epu8,
2360         _mm512_maskz_max_epu8, _mm512_max_epi8, _mm512_maskz_max_epi8,
2361         _mm512_min_epu8, _mm512_maskz_min_epu8, _mm512_min_epi8,
2362         _mm512_maskz_min_epi8, _mm512_max_epi16, _mm512_maskz_max_epi16,
2363         _mm512_max_epu16, _mm512_maskz_max_epu16, _mm512_sra_epi16,
2364         _mm512_maskz_sra_epi16, _mm512_srav_epi16, _mm512_maskz_srav_epi16,
2365         _mm512_srlv_epi16, _mm512_maskz_srlv_epi16, _mm512_sllv_epi16,
2366         _mm512_maskz_sllv_epi16, _mm512_maskz_packs_epi16, _mm512_packus_epi16,
2367         _mm512_maskz_packus_epi16, _mm512_abs_epi8, _mm512_maskz_abs_epi8,
2368         _mm512_abs_epi16, _mm512_maskz_abs_epi16, _mm512_dbsad_epu8,
2369         _mm512_maskz_dbsad_epu8, _mm512_srli_epi16, _mm512_maskz_srli_epi16,
2370         _mm512_slli_epi16, _mm512_maskz_slli_epi16, _mm512_shufflehi_epi16,
2371         _mm512_maskz_shufflehi_epi16, _mm512_shufflelo_epi16,
2372         _mm512_maskz_shufflelo_epi16, _mm512_srai_epi16,
2373         _mm512_maskz_srai_epi16, _mm512_packs_epi32,
2374         _mm512_maskz_packs_epi32, _mm512_packus_epi32,
2375         _mm512_maskz_packus_epi32): Use _mm512_setzero_si512 instead of
2376         _mm512_setzero_qi or _mm512_setzero_hi.
2377         (_mm512_maskz_alignr_epi8, _mm512_dbsad_epu8,
2378         _mm512_maskz_dbsad_epu8): Formatting fixes.
2379         (_mm512_srli_epi16, _mm512_maskz_srli_epi16, _mm512_slli_epi16,
2380         _mm512_maskz_slli_epi16, _mm512_shufflehi_epi16,
2381         _mm512_maskz_shufflehi_epi16, _mm512_shufflelo_epi16,
2382         _mm512_maskz_shufflelo_epi16, _mm512_srai_epi16,
2383         _mm512_maskz_srai_epi16): Use _mm512_setzero_si512 instead of
2384         _mm512_setzero_qi or _mm512_setzero_hi.
2386 2016-11-22  Nathan Sidwell  <nathan@acm.org>
2388         * gcc-ar.c (main): Fix indentation.
2389         * gcov-io.c (gcov_write_summary): Remove extraneous {...}
2390         * ggc-page.c (move_ptes_to_front): Fix formatting.
2391         * hsa-dump.c (dump_has_cfun): Fix indentation.
2392         * sel-sched-ir.h: Remove trailing blank lines.
2394 2016-11-22  Jakub Jelinek  <jakub@redhat.com>
2395             Alexander Monakov  <amonakov@ispras.ru>
2397         * internal-fn.c (expand_GOMP_USE_SIMT): New function.
2398         * tree.c (omp_clause_num_ops): OMP_CLAUSE__SIMT_ has 0 operands.
2399         (omp_clause_code_name): Add _simt_ name.
2400         (walk_tree_1): Handle OMP_CLAUSE__SIMT_.
2401         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SIMT_.
2402         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__SIMT_.
2403         (scan_omp_simd): New function.
2404         (scan_omp_1_stmt): Use it in target regions if needed.
2405         (omp_max_vf): Don't max with omp_max_simt_vf.
2406         (lower_rec_simd_input_clauses): Use omp_max_simt_vf if
2407         OMP_CLAUSE__SIMT_ is present.
2408         (lower_rec_input_clauses): Compute maybe_simt from presence of
2409         OMP_CLAUSE__SIMT_.
2410         (lower_lastprivate_clauses): Likewise.
2411         (expand_omp_simd): Likewise.  Remove explicit offloaded region check.
2412         (execute_omp_device_lower): Lower IFN_GOMP_USE_SIMT.
2413         * internal-fn.def (GOMP_USE_SIMT): New internal function.
2414         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__SIMT_.
2416 2016-11-22  Alexander Monakov  <amonakov@ispras.ru>
2418         * internal-fn.c (expand_GOMP_SIMT_LANE): New.
2419         (expand_GOMP_SIMT_VF): New.
2420         (expand_GOMP_SIMT_LAST_LANE): New.
2421         (expand_GOMP_SIMT_ORDERED_PRED): New.
2422         (expand_GOMP_SIMT_VOTE_ANY): New.
2423         (expand_GOMP_SIMT_XCHG_BFLY): New.
2424         (expand_GOMP_SIMT_XCHG_IDX): New.
2425         * internal-fn.def (GOMP_SIMT_LANE): New.
2426         (GOMP_SIMT_VF): New.
2427         (GOMP_SIMT_LAST_LANE): New.
2428         (GOMP_SIMT_ORDERED_PRED): New.
2429         (GOMP_SIMT_VOTE_ANY): New.
2430         (GOMP_SIMT_XCHG_BFLY): New.
2431         (GOMP_SIMT_XCHG_IDX): New.
2432         * omp-low.c (omp_maybe_offloaded_ctx): New, outlined from...
2433         (create_omp_child_function): ...here.  Set "omp target entrypoint"
2434         or "omp declare target" attribute based on is_gimple_omp_offloaded.
2435         (omp_max_simt_vf): New.  Use it...
2436         (omp_max_vf): ...here.
2437         (lower_rec_input_clauses): Add reduction lowering for SIMT execution.
2438         (lower_lastprivate_clauses): Likewise, for "lastprivate" lowering.
2439         (lower_omp_ordered): Likewise, for "ordered" lowering.
2440         (expand_omp_simd): Add SIMT transforms.
2441         (pass_data_lower_omp): Add PROP_gimple_lomp_dev.
2442         (execute_omp_device_lower): New.
2443         (pass_data_omp_device_lower): New.
2444         (pass_omp_device_lower): New pass.
2445         (make_pass_omp_device_lower): New.
2446         * passes.def (pass_omp_device_lower): Position new pass.
2447         * tree-pass.h (PROP_gimple_lomp_dev): Define.
2448         (make_pass_omp_device_lower): Declare.
2450 2016-11-22  Jakub Jelinek  <jakub@redhat.com>
2452         PR target/78451
2453         * config/i386/avx512vlintrin.h (_mm_setzero_di): Removed.
2454         (_mm_maskz_mov_epi64): Use _mm_setzero_si128 instead of
2455         _mm_setzero_di.
2456         (_mm_maskz_load_epi64): Likewise.
2457         (_mm_setzero_hi): Removed.
2458         (_mm_maskz_loadu_epi64): Use _mm_setzero_si128 instead of
2459         _mm_setzero_di.
2460         (_mm_abs_epi64, _mm_maskz_abs_epi64, _mm_maskz_srl_epi64,
2461         _mm_maskz_unpackhi_epi64, _mm_maskz_unpacklo_epi64,
2462         _mm_maskz_compress_epi64, _mm_srav_epi64, _mm_maskz_srav_epi64,
2463         _mm_maskz_sllv_epi64, _mm_maskz_srlv_epi64, _mm_rolv_epi64,
2464         _mm_maskz_rolv_epi64, _mm_rorv_epi64, _mm_maskz_rorv_epi64,
2465         _mm_min_epi64, _mm_max_epi64, _mm_max_epu64, _mm_min_epu64,
2466         _mm_lzcnt_epi64, _mm_maskz_lzcnt_epi64, _mm_conflict_epi64,
2467         _mm_maskz_conflict_epi64, _mm_sra_epi64, _mm_maskz_sra_epi64,
2468         _mm_maskz_sll_epi64, _mm_rol_epi64, _mm_maskz_rol_epi64,
2469         _mm_ror_epi64, _mm_maskz_ror_epi64, _mm_alignr_epi64,
2470         _mm_maskz_alignr_epi64, _mm_srai_epi64, _mm_maskz_slli_epi64):
2471         Likewise.
2472         (_mm_cvtepi32_epi8, _mm256_cvtepi32_epi8, _mm_cvtsepi32_epi8,
2473         _mm256_cvtsepi32_epi8, _mm_cvtusepi32_epi8, _mm256_cvtusepi32_epi8,
2474         _mm_cvtepi32_epi16, _mm256_cvtepi32_epi16, _mm_cvtsepi32_epi16,
2475         _mm256_cvtsepi32_epi16, _mm_cvtusepi32_epi16, _mm256_cvtusepi32_epi16,
2476         _mm_cvtepi64_epi8, _mm256_cvtepi64_epi8, _mm_cvtsepi64_epi8,
2477         _mm256_cvtsepi64_epi8, _mm_cvtusepi64_epi8, _mm256_cvtusepi64_epi8,
2478         _mm_cvtepi64_epi16, _mm256_cvtepi64_epi16, _mm_cvtsepi64_epi16,
2479         _mm256_cvtsepi64_epi16, _mm_cvtusepi64_epi16, _mm256_cvtusepi64_epi16,
2480         _mm_cvtepi64_epi32, _mm256_cvtepi64_epi32, _mm_cvtsepi64_epi32,
2481         _mm256_cvtsepi64_epi32, _mm_cvtusepi64_epi32, _mm256_cvtusepi64_epi32,
2482         _mm_maskz_set1_epi32, _mm_maskz_set1_epi64): Formatting fixes.
2483         (_mm_maskz_cvtps_ph, _mm256_maskz_cvtps_ph): Use _mm_setzero_si128
2484         instead of _mm_setzero_hi.
2485         (_mm256_permutex_pd, _mm256_maskz_permutex_epi64, _mm256_insertf32x4,
2486         _mm256_maskz_insertf32x4, _mm256_inserti32x4, _mm256_maskz_inserti32x4,
2487         _mm256_extractf32x4_ps, _mm256_maskz_extractf32x4_ps,
2488         _mm256_shuffle_i32x4, _mm256_maskz_shuffle_i32x4, _mm256_shuffle_f64x2,
2489         _mm256_maskz_shuffle_f64x2, _mm256_shuffle_f32x4,
2490         _mm256_maskz_shuffle_f32x4, _mm256_maskz_shuffle_pd,
2491         _mm_maskz_shuffle_pd, _mm256_maskz_shuffle_ps, _mm_maskz_shuffle_ps,
2492         _mm256_maskz_srli_epi32, _mm_maskz_srli_epi32, _mm_maskz_srli_epi64,
2493         _mm256_mask_slli_epi32, _mm256_maskz_slli_epi32, _mm256_mask_slli_epi64,
2494         _mm256_maskz_slli_epi64, _mm256_roundscale_ps,
2495         _mm256_maskz_roundscale_ps, _mm256_roundscale_pd,
2496         _mm256_maskz_roundscale_pd, _mm_roundscale_ps, _mm_maskz_roundscale_ps,
2497         _mm_roundscale_pd, _mm_maskz_roundscale_pd, _mm256_getmant_ps,
2498         _mm256_maskz_getmant_ps, _mm_getmant_ps, _mm_maskz_getmant_ps,
2499         _mm256_getmant_pd, _mm256_maskz_getmant_pd, _mm_getmant_pd,
2500         _mm_maskz_getmant_pd, _mm256_maskz_shuffle_epi32,
2501         _mm_maskz_shuffle_epi32, _mm256_rol_epi32, _mm256_maskz_rol_epi32,
2502         _mm_rol_epi32, _mm_maskz_rol_epi32, _mm256_ror_epi32,
2503         _mm256_maskz_ror_epi32, _mm_ror_epi32, _mm_maskz_ror_epi32,
2504         _mm_maskz_alignr_epi32, _mm_maskz_alignr_epi64,
2505         _mm256_maskz_srai_epi32, _mm_maskz_srai_epi32, _mm_srai_epi64,
2506         _mm_maskz_srai_epi64, _mm256_maskz_permutex_pd,
2507         _mm256_maskz_permute_pd, _mm256_maskz_permute_ps, _mm_maskz_permute_pd,
2508         _mm_maskz_permute_ps, _mm256_permutexvar_ps): Formatting fixes.
2509         (_mm_maskz_slli_epi64, _mm_rol_epi64, _mm_maskz_rol_epi64,
2510         _mm_ror_epi64, _mm_maskz_ror_epi64): Use _mm_setzero_si128 instead of
2511         _mm_setzero_di.
2512         (_mm_maskz_cvtps_ph, _mm256_maskz_cvtps_ph): Use _mm_setzero_si128
2513         instead of _mm_setzero_hi.
2514         * config/i386/avx512dqintrin.h (_mm512_broadcast_f64x2,
2515         _mm512_broadcast_i64x2, _mm512_broadcast_f32x2, _mm512_broadcast_i32x2,
2516         _mm512_broadcast_f32x8, _mm512_broadcast_i32x8): Formatting fixes.
2517         (_mm512_extracti64x2_epi64, _mm512_maskz_extracti64x2_epi64): Use
2518         _mm_setzero_si128 instead of _mm_setzero_di.
2519         (_mm512_cvtt_roundpd_epi64, _mm512_mask_cvtt_roundpd_epi64,
2520         _mm512_maskz_cvtt_roundpd_epi64, _mm512_cvtt_roundpd_epu64,
2521         _mm512_mask_cvtt_roundpd_epu64, _mm512_maskz_cvtt_roundpd_epu64,
2522         _mm512_cvtt_roundps_epi64, _mm512_mask_cvtt_roundps_epi64,
2523         _mm512_maskz_cvtt_roundps_epi64, _mm512_cvtt_roundps_epu64,
2524         _mm512_mask_cvtt_roundps_epu64, _mm512_maskz_cvtt_roundps_epu64,
2525         _mm512_cvt_roundpd_epi64, _mm512_mask_cvt_roundpd_epi64,
2526         _mm512_maskz_cvt_roundpd_epi64, _mm512_cvt_roundpd_epu64,
2527         _mm512_mask_cvt_roundpd_epu64, _mm512_maskz_cvt_roundpd_epu64,
2528         _mm512_cvt_roundps_epi64, _mm512_mask_cvt_roundps_epi64,
2529         _mm512_maskz_cvt_roundps_epi64, _mm512_cvt_roundps_epu64,
2530         _mm512_mask_cvt_roundps_epu64, _mm512_maskz_cvt_roundps_epu64,
2531         _mm512_cvt_roundepi64_ps, _mm512_mask_cvt_roundepi64_ps,
2532         _mm512_maskz_cvt_roundepi64_ps, _mm512_cvt_roundepu64_ps,
2533         _mm512_mask_cvt_roundepu64_ps, _mm512_maskz_cvt_roundepu64_ps,
2534         _mm512_cvt_roundepi64_pd, _mm512_mask_cvt_roundepi64_pd,
2535         _mm512_maskz_cvt_roundepi64_pd, _mm512_cvt_roundepu64_pd,
2536         _mm512_mask_cvt_roundepu64_pd, _mm512_maskz_cvt_roundepu64_pd,
2537         _mm512_reduce_pd, _mm512_maskz_reduce_pd, _mm512_reduce_ps,
2538         _mm512_maskz_reduce_ps, _mm512_extractf32x8_ps,
2539         _mm512_maskz_extractf32x8_ps, _mm512_extractf64x2_pd,
2540         _mm512_maskz_extractf64x2_pd, _mm512_extracti32x8_epi32,
2541         _mm512_maskz_extracti32x8_epi32, _mm512_range_pd,
2542         _mm512_maskz_range_pd, _mm512_range_ps, _mm512_maskz_range_ps,
2543         _mm512_range_round_pd, _mm512_maskz_range_round_pd,
2544         _mm512_range_round_ps, _mm512_maskz_range_round_ps,
2545         _mm512_maskz_insertf64x2, _mm512_insertf32x8,
2546         _mm512_maskz_insertf32x8): Formatting fixes.
2547         (_mm512_extracti64x2_epi64, _mm512_maskz_extracti64x2_epi64): Use
2548         _mm_setzero_si128 instead of _mm_setzero_di.
2549         * config/i386/avx512vldqintrin.h (_mm_cvttpd_epi64,
2550         _mm_cvttpd_epu64, _mm_cvtpd_epi64, _mm_cvtpd_epu64,
2551         _mm_cvttps_epi64, _mm_maskz_cvttps_epi64, _mm_cvttps_epu64,
2552         _mm_maskz_cvttps_epu64, _mm_maskz_mullo_epi64, _mm_cvtps_epi64,
2553         _mm_maskz_cvtps_epi64, _mm_cvtps_epu64, _mm_maskz_cvtps_epu64,
2554         _mm256_extracti64x2_epi64, _mm256_maskz_extracti64x2_epi64): Use
2555         _mm_setzero_si128 instead of _mm_setzero_di.
2556         (_mm256_extracti64x2_epi64, _mm256_maskz_extracti64x2_epi64):
2557         Likewise in macros.
2558         * config/i386/avx512vlbwintrin.h (_mm_maskz_mov_epi8,
2559         _mm_maskz_loadu_epi16, _mm_maskz_mov_epi16, _mm_maskz_loadu_epi8,
2560         _mm_permutexvar_epi16, _mm_maskz_maddubs_epi16): Use
2561         _mm_setzero_si128 instead of _mm_setzero_hi.
2562         (_mm_maskz_min_epu16, _mm_maskz_max_epu8, _mm_maskz_max_epi8,
2563         _mm_maskz_min_epu8, _mm_maskz_min_epi8, _mm_maskz_max_epi16,
2564         _mm_maskz_max_epu16, _mm_maskz_min_epi16): Use _mm_setzero_si128
2565         instead of _mm_setzero_di.
2566         (_mm_dbsad_epu8, _mm_maskz_shufflehi_epi16,
2567         _mm_maskz_shufflelo_epi16): Use _mm_setzero_si128 instead of
2568         _mm_setzero_hi.
2569         (_mm_maskz_shufflehi_epi16, _mm_maskz_shufflelo_epi16,
2570         _mm_maskz_slli_epi16): Use _mm_setzero_si128 instead of
2571         _mm_setzero_hi.
2572         (_mm_maskz_alignr_epi8): Use _mm_setzero_si128 instead of
2573         _mm_setzero_di.
2574         (_mm_maskz_mulhi_epi16, _mm_maskz_mulhi_epu16, _mm_maskz_mulhrs_epi16,
2575         _mm_maskz_mullo_epi16, _mm_srav_epi16, _mm_srlv_epi16,
2576         _mm_sllv_epi16): Use _mm_setzero_si128 instead of _mm_setzero_hi.
2578 2016-11-22  Carl Love  <cel@us.ibm.com>
2580         * config/rs6000/rs6000-c.c: Add built-in support for vector compare
2581         equal and vector compare not equal.  The vector compares take two
2582         arguments of type vector bool char, vector bool short, vector bool int,
2583         vector bool long long with the same return type.
2584         * doc/extend.texi: Update built-in documentation file for the new
2585         powerpc built-ins.
2587 2016-11-22  Uros Bizjak  <ubizjak@gmail.com>
2589         * Makefile.in ($(lang_checks_parallelized)): Fix detection
2590         of -j argument.
2592 2016-11-22  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2594         * config.gcc: Allow new rmprofile value for configure option
2595         --with-multilib-list.
2596         * config/arm/t-rmprofile: New file.
2597         * doc/install.texi (--with-multilib-list): Document new rmprofile value
2598         for ARM.
2600 2016-11-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2602         PR target/78439
2603         * config/arm/vfp.md (*movdi_vfp_cortexa8): Use 'q' constraints for the
2604         register operand in alternatives 4,5,6.
2606 2016-11-22  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2608         PR target/77904
2609         * config/arm/arm.c (thumb1_compute_save_reg_mask): Mark frame pointer
2610         in save register mask if it is needed.
2612 2016-11-22  Jakub Jelinek  <jakub@redhat.com>
2614         PR tree-optimization/78436
2615         * gimple-ssa-store-merging.c (zero_char_buf): Removed.
2616         (shift_bytes_in_array, shift_bytes_in_array_right,
2617         merged_store_group::apply_stores): Formatting fixes.
2618         (clear_bit_region): Likewise.  Use memset.
2619         (encode_tree_to_bitpos): Formatting fixes.  Fix comment typos - EPXR
2620         instead of EXPR and inerted instead of inserted.  Use memset instead
2621         of zero_char_buf.  For !BYTES_BIG_ENDIAN decrease byte_size by 1
2622         if shift_amnt is 0.
2624         PR middle-end/78416
2625         * expmed.c (expand_divmod): Use wide_int for computation of
2626         op1_is_pow2.  Don't set it if op1 is 0.  Formatting fixes.
2627         Use size <= HOST_BITS_PER_WIDE_INT instead of
2628         HOST_BITS_PER_WIDE_INT >= size.
2630         PR tree-optimization/78445
2631         * tree-if-conv.c (tree_if_conversion): If any_pred_load_store or
2632         any_complicated_phi, version loop even if flag_tree_loop_if_convert
2633         is 1.  Formatting fix.
2635 2016-11-22  Martin Liska  <mliska@suse.cz>
2637         PR ipa/78309
2638         * ipa-icf.c (void sem_item::set_hash): Update m_hash_set.
2639         (sem_function::get_hash): Use the new field.
2640         (sem_function::parse): Remove an argument from ctor.
2641         (sem_variable::parse): Likewise.
2642         (sem_variable::get_hash): Use the new field.
2643         (sem_item_optimizer::read_section): Use new ctor and set hash.
2644         * ipa-icf.h: _hash is removed from sem_item::sem_item,
2645         sem_variable::sem_variable, sem_function::sem_function.
2647 2016-11-21  Jeff Law  <law@redhat.com>
2649         PR target/68538
2650         * config/cris/cris.md: Don't call copy_to_mode_reg unless
2651         can_create_pseudo_p is true.
2653 2016-11-21  Segher Boessenkool  <segher@kernel.crashing.org>
2655         PR target/68803
2656         * config/rs6000/rs6000.md (*rotlsi3_insert_5, *rotldi3_insert_6,
2657         *rotldi3_insert_7): New define_insns.
2659 2016-11-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
2661         * config/rs6000/rs6000.md (movdi_internal32): Change constraints
2662         so that DImode can be allocated to FP/vector registers in more
2663         cases, and we can avoid direct move operations.  If the register
2664         needs reloading, prefer GPRs over FP/vector registers.  In the
2665         case of FPR vs. Altivec registers, prefer FPR registers unless we
2666         have the ISA 3.0 reg+offset scalar instructions.
2667         (movdi_internal64): Likewise.
2669 2016-11-21  Jakub Jelinek  <jakub@redhat.com>
2671         PR middle-end/67335
2672         * omp-simd-clone.c (simd_clone_adjust_argument_types): Use NULL prefix
2673         for tmp simd array if DECL_NAME (parm) is NULL.
2675 2016-11-20  Jeff Law  <law@redhat.com>
2677         PR target/25128
2678         * config/m68k/predicates.md (swap_peephole_relational_operator): New
2679         predicate.
2680         * config/m68k/m68k.md (relational tests against 65535/65536): New
2681         peephole2.
2683 2016-11-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2685         * tree-ssa-loop-prefetch.c: Delete FIXME after the includes.
2687 2016-11-21  Martin Sebor  <msebor@redhat.com>
2689         * doc/invoke.texi (-fprintf-return-value): Document that option
2690         is enabled by default.
2692 2016-11-21  Georg-Johann Lay  <avr@gjlay.de>
2694         * config/avr/avr-c.c (avr_register_target_pragmas): Use C++
2695         for-loop declaration of loop variable.
2696         (avr_register_target_pragmas, avr_cpu_cpp_builtins): Same.
2697         * config/avr/avr.c (avr_popcount_each_byte)
2698         (avr_init_expanders, avr_regs_to_save, sequent_regs_live)
2699         (get_sequence_length, avr_prologue_setup_frame, avr_map_metric)
2700         (avr_expand_epilogue, avr_function_arg_advance)
2701         (avr_out_compare, avr_out_plus_1, avr_out_bitop, avr_out_fract)
2702         (avr_rotate_bytes, _reg_unused_after, avr_assemble_integer)
2703         (avr_adjust_reg_alloc_order, output_reload_in_const)
2704         (avr_conditional_register_usage, avr_find_unused_d_reg)
2705         (avr_map_decompose, avr_fold_builtin): Same.
2707 2016-11-21  Georg-Johann Lay  <avr@gjlay.de>
2709         * config/avr/avr.c (avr_popcount): Remove static function.
2710         (avr_popcount_each_byte, avr_out_bitop): Use popcount_hwi instead.
2712 2016-11-21  Richard Earnshaw  <rearnsha@arm.com>
2714         * arm.opt (mapcs-float): Delete option.
2715         * arm.c (arm_option_override): Remove hunk relating to
2716         TARGET_APCS_FLOAT.
2717         * doc/invoke.texi (arm options): Remove documentation for -mapcs-float.
2719 2016-11-21  Richard Sandiford  <richard.sandiford@arm.com>
2721         * tree-tailcall.c (process_assignment): Simplify the check for
2722         a valid copy, allowing the source to be a local variable as
2723         well as an SSA name.
2724         (find_tail_calls): Allow copies between local variables to follow
2725         the call.  Allow the result to be stored in any local variable,
2726         even if it's an aggregate.
2727         (eliminate_tail_call): Check whether the result is an SSA name
2728         before updating its SSA_NAME_DEF_STMT.
2730 2016-11-21  David Malcolm  <dmalcolm@redhat.com>
2732         PR preprocessor/78324
2733         * input.c (get_substring_ranges_for_loc): Fail gracefully if
2734         -ftrack-macro-expansion has a value other than 2.
2736 2016-11-21  Segher Boessenkool  <segher@kernel.crashing.org>
2738         PR rtl-optimization/78400
2739         * shrink-wrap.c (try_shrink_wrapping_separate): Call
2740         df_update_entry_exit_and_calls instead of df_update_entry_block_defs
2741         and df_update_exit_block_uses.
2743 2016-11-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2745         PR c++/71973
2746         * doc/invoke.texi (-Wno-builtin-declaration-mismatch): Document the
2747         new default-enabled warning..
2748         * builtin-types.def (BT_CONST_TM_PTR): New primitive type.
2749         (BT_PTR_CONST_STRING): Updated.
2750         (BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR): Removed.
2751         (BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_TM_PTR): New function type.
2752         * builtins.def (DEF_TM_BUILTIN): Disable BOTH_P for TM builtins.
2753         (strftime): Update builtin function.
2754         * tree-core.h (TI_CONST_TM_PTR_TYPE): New enum value.
2755         * tree.h (const_tm_ptr_type_node): New type node.
2756         * tree.c (free_lang_data, build_common_tree_nodes): Initialize
2757         const_tm_ptr_type_node.
2759 2016-11-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2761         PR tree-optimization/78413
2762         * tree-if-conv.c (versionable_outer_loop_p): Require that both
2763         inner and outer loop latches have single predecessors.
2765 2016-11-21  Georg-Johann Lay  <avr@gjlay.de>
2767         PR target/78093
2768         * config/avr/avr.c (avr_decl_maybe_lds_p): New static function.
2769         (avr_encode_section_info) [TARGET_ABSDATA && AVR_TINY]: Use it.
2771 2016-11-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2773         * rtl.h: Adjust prototype.
2774         * rtlanal.c (dead_or_set_p): Change argument type to rtx_insn *.
2775         (dead_or_set_regno_p): Likewise.
2777 2016-11-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2779         * rtl.h: Adjust prototype.
2780         * rtlanal.c (add_int_reg_note): Change argument type to rtx_insn *.
2782 2016-11-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2784         * function.c (contains): Change argument type to rtx_insn *.
2785         (prologue_contains): Likewise.
2786         (epilogue_contains): Likewise.
2787         (prologue_epilogue_contains): Likewise.
2788         * function.h: Adjust prototype.
2790 2016-11-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2792         * optabs.c (emit_libcall_block): Change argument type to
2793         rtx_insn *.
2794         * optabs.h: Adjust prototype.
2796 2016-11-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2798         * cfgrtl.c (delete_insn): Change argument type to rtx_insn *.
2799         (fixup_reorder_chain): Adjust.
2800         * cfgrtl.h: Adjust prototype.
2802 2016-11-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2804         * rtl.h: Adjust prototype.
2805         * rtlanal.c (replace_label_in_insn): Change argument type to
2806         rtx_insn *.
2808 2016-11-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2810         * config/v850/v850.c (expand_prologue): Adjust.
2811         (expand_epilogue): Likewise.
2812         * expr.c (init_expr_target): Likewise.
2813         * genrecog.c (print_subroutine): Always make the argument type
2814         rtx_insn *.
2815         * recog.h: Adjust prototype.
2817 2016-11-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2819         * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): split
2820         up variables to make some rtx_insn *.
2821         * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
2822         * config/arc/arc.c: Likewise.
2823         * config/arm/arm.c: Likewise.
2824         * config/mn10300/mn10300.c (mn10300_legitimize_pic_address): Likewise.
2825         * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue):
2826         Likewise.
2827         * config/spu/spu.c (spu_emit_branch_hint): Likewise.
2829 2016-11-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2831         * config/arm/arm.c (legitimize_pic_address): Change to use
2832         rtx_insn * as the type of variables.
2833         (arm_pic_static_addr): Likewise.
2834         (arm_emit_movpair): Likewise.
2835         * config/c6x/c6x.c (reorg_split_calls): Likewise.
2836         * config/darwin.c (machopic_legitimize_pic_address): Likewise.
2837         * config/frv/frv.c (frv_optimize_membar_local): Likewise.
2838         * config/frv/frv.md: Likewise.
2839         * config/i386/i386-protos.h: Likewise.
2840         * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
2841         (ix86_split_fp_branch): Likewise.
2842         (predict_jump): Likewise.
2843         * config/ia64/ia64.c: Likewise.
2844         * config/mcore/mcore.c: Likewise.
2845         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
2846         * config/s390/s390.c: Likewise.
2847         * config/s390/s390.md: Likewise.
2848         * config/spu/spu.md: Likewise.
2849         * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise.
2850         * lower-subreg.c (resolve_simple_move): Likewise.
2852 2016-11-20  Jeff Law  <law@redhat.com>
2854         PR target/48551
2855         * reload.h (struct target_reload): Make x_double_reg_address_ok
2856         be per-mode rather.
2857         * reload.c (find_reloads_address): Check if double_reg_address_ok
2858         is true for the mode of the memory reference.
2859         * reload1.c (init_reload): Initialize double_reg_address_ok for
2860         each mode.
2862 2016-11-20  Aldy Hernandez  <aldyh@redhat.com>
2864         PR middle-end/61409
2865         * tree-ssa-uninit.c: Define new global max_phi_args.
2866         (compute_uninit_opnds_pos): Use max_phi_args.
2867         (prune_uninit_phi_opnds): Same.
2868         (use_pred_not_overlap_with_undef_path_pred): Remove reference to
2869         missing NUM_PREDS in function comment.
2870         (can_one_predicate_be_invalidated_p): New.
2871         (can_chain_union_be_invalidated_p): New.
2872         (flatten_out_predicate_chains): New.
2873         (uninit_ops_invalidate_phi_use): New.
2874         (is_use_properly_guarded): Call uninit_ops_invalidate_phi_use.
2876 2016-11-20  Marc Glisse  <marc.glisse@inria.fr>
2878         * fold-const.c (fold_comparison): Ignore EXACT_DIV_EXPR.
2879         * match.pd (A /[ex] B CMP C): New simplifications.
2881 2016-11-20  Marc Glisse  <marc.glisse@inria.fr>
2883         * match.pd (0 / X, X / X, X % X): New simplifications.
2885 2016-11-19  Jakub Jelinek  <jakub@redhat.com>
2887         * config/i386/i386.c (ix86_can_inline_p): Use || instead of &
2888         when checking if callee's isa flags are subset of caller's isa flags.
2889         Fix comment wording.
2891         * config/i386/i386.c (ix86_valid_target_attribute_tree): Don't
2892         clear opts->x_ix86_isa_flags, clear opts->x_ix86_isa_flags2
2893         instead and using = 0 instead of &= 0.
2895         * config/i386/i386.c (def_builtin, def_builtin2, def_builtin_const2,
2896         ix86_add_new_builtins): Formatting fixes.
2897         (ix86_expand_builtin): Use || instead of && for isa vs. isa2.
2898         (ix86_get_builtin): Likewise.
2900         * config/i386/i386.c (ix86_expand_builtin): Remove msk_mov variable,
2901         don't initialize it, don't use it for the case where it isn't
2902         provable %{z} nor using the same argument, instead move merge
2903         argument into a new pseudo and use that as target.  Formatting fixes.
2905 2016-11-19  Jeff Law  <law@redhat.com>
2907         PR target/25111
2908         * config/m68k/m68k.md (bsetdreg): New pattern.
2909         (bchgdreg, bclrdreg): Likewise.
2911 2016-11-19  Kaz Kojima  <kkojima@gcc.gnu.org>
2913         PR target/78426
2914         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Use copy_to_mode_reg
2915         instead of force_reg.
2916         (sh_expand_setmem): Likewise.
2918 2016-11-19  Krister Walfridsson  <krister.walfridsson@gmail.com>
2920         * config.gcc (*-*-netbsd): Set use_gcc_stdint=wrap.
2922 2016-11-18  Walter Lee  <walt@tilera.com>
2924         * config/tilegx/tilegx.c (tilegx_gen_bundles): Preserve
2925           end-of-bundle marker for consecutive barriers.
2927 2016-11-18  Walter Lee  <walt@tilera.com>
2929         * config/tilegx/tilegx.md (clzsi2): Fix for big-endian.
2931 2016-11-18  Jakub Jelinek  <jakub@redhat.com>
2933         PR middle-end/78419
2934         * multiple_target.c (get_attr_len): Start with argnum and increment
2935         argnum on every arg.  Use strchr in a loop instead of counting commas
2936         manually.
2937         (get_attr_str): Increment argnum for every comma in the string.
2938         (separate_attrs): Use for instead of while loop, simplify.
2939         (expand_target_clones): Rename defenition argument to definition.
2940         Free attrs and attr_str even when diagnosing errors.  Temporarily
2941         change input_location around targetm.target_option.valid_attribute_p
2942         calls.  Don't emit warning or errors if that function fails.
2944         * dwarf2out.c (size_of_discr_list): Fix typo in function comment.
2946         PR debug/78191
2947         * dwarf2out.c (abbrev_opt_base_type_end): New variable.
2948         (die_abbrev_cmp): Sort dies with die_abbrev smaller than
2949         abbrev_opt_base_type_end only by increasing die_abbrev, before
2950         any other dies.
2951         (optimize_abbrev_table): Don't change abbrev numbers of
2952         base types and CU or optimize implicit consts in them if
2953         calc_base_type_die_sizes has been called during build_abbrev_table.
2954         (calc_base_type_die_sizes): If abbrev_opt_start, set
2955         abbrev_opt_base_type_end to one plus largest base type's die_abbrev.
2957 2016-11-18  Jeff Law  <law@redhat.com>
2959         PR target/25112
2960         * config/m68k/m68k.c (moveq feeding equality comparison): New
2961         peepholes.
2962         * config/m68k/predicates.md (addq_subq_operand): New predicate.
2963         (equality_comparison_operator): Likewise.
2965 2016-11-18  Richard Sandiford  <richard.sandiford@arm.com>
2967         * rtlanal.c (load_extend_op): Move to...
2968         * rtl.h: ...here and make inline.
2970 2016-11-18  Terry Guo  <terry.guo@arm.com>
2971             Thomas Preud'homme  <thomas.preudhomme@arm.com>
2973         * common/config/arm/arm-common.c (arm_target_thumb_only): New function.
2974         * config/arm/arm-opts.h: Include arm-flags.h.
2975         (struct arm_arch_core_flag): Define.
2976         (arm_arch_core_flags): Define.
2977         * config/arm/arm-protos.h: Include arm-flags.h
2978         (FL_NONE, FL_ANY, FL_CO_PROC, FL_ARCH3M, FL_MODE26, FL_MODE32,
2979         FL_ARCH4, FL_ARCH5, FL_THUMB, FL_LDSCHED, FL_STRONG, FL_ARCH5E,
2980         FL_XSCALE, FL_ARCH6, FL_VFPV2, FL_WBUF, FL_ARCH6K, FL_THUMB2, FL_NOTM,
2981         FL_THUMB_DIV, FL_VFPV3, FL_NEON, FL_ARCH7EM, FL_ARCH7, FL_ARM_DIV,
2982         FL_ARCH8, FL_CRC32, FL_SMALLMUL, FL_NO_VOLATILE_CE, FL_IWMMXT,
2983         FL_IWMMXT2, FL_ARCH6KZ, FL2_ARCH8_1, FL2_ARCH8_2, FL2_FP16INST,
2984         FL_TUNE, FL_FOR_ARCH2, FL_FOR_ARCH3, FL_FOR_ARCH3M, FL_FOR_ARCH4,
2985         FL_FOR_ARCH4T, FL_FOR_ARCH5, FL_FOR_ARCH5T, FL_FOR_ARCH5E,
2986         FL_FOR_ARCH5TE, FL_FOR_ARCH5TEJ, FL_FOR_ARCH6, FL_FOR_ARCH6J,
2987         FL_FOR_ARCH6K, FL_FOR_ARCH6Z, FL_FOR_ARCH6ZK, FL_FOR_ARCH6KZ,
2988         FL_FOR_ARCH6T2, FL_FOR_ARCH6M, FL_FOR_ARCH7, FL_FOR_ARCH7A,
2989         FL_FOR_ARCH7VE, FL_FOR_ARCH7R, FL_FOR_ARCH7M, FL_FOR_ARCH7EM,
2990         FL_FOR_ARCH8A, FL2_FOR_ARCH8_1A, FL2_FOR_ARCH8_2A, FL_FOR_ARCH8M_BASE,
2991         FL_FOR_ARCH8M_MAIN, arm_feature_set, ARM_FSET_MAKE,
2992         ARM_FSET_MAKE_CPU1, ARM_FSET_MAKE_CPU2, ARM_FSET_CPU1, ARM_FSET_CPU2,
2993         ARM_FSET_EMPTY, ARM_FSET_ANY, ARM_FSET_HAS_CPU1, ARM_FSET_HAS_CPU2,
2994         ARM_FSET_HAS_CPU, ARM_FSET_ADD_CPU1, ARM_FSET_ADD_CPU2,
2995         ARM_FSET_DEL_CPU1, ARM_FSET_DEL_CPU2, ARM_FSET_UNION, ARM_FSET_INTER,
2996         ARM_FSET_XOR, ARM_FSET_EXCLUDE, ARM_FSET_IS_EMPTY,
2997         ARM_FSET_CPU_SUBSET): Move to ...
2998         * config/arm/arm-flags.h: This new file.
2999         * config/arm/arm.h (TARGET_MODE_SPEC_FUNCTIONS): Define.
3000         (EXTRA_SPEC_FUNCTIONS): Add TARGET_MODE_SPEC_FUNCTIONS to its value.
3001         (TARGET_MODE_SPECS): Define.
3002         (DRIVER_SELF_SPECS): Add TARGET_MODE_SPECS to its value.
3004 2016-11-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3006         * config/arm/arm-protos.h (FL_NONE, FL_ANY, FL_CO_PROC, FL_ARCH3M,
3007         FL_MODE26, FL_MODE32, FL_ARCH4, FL_ARCH5, FL_THUMB, FL_LDSCHED,
3008         FL_STRONG, FL_ARCH5E, FL_XSCALE, FL_ARCH6, FL_VFPV2, FL_WBUF,
3009         FL_ARCH6K, FL_THUMB2, FL_NOTM, FL_THUMB_DIV, FL_VFPV3, FL_NEON,
3010         FL_ARCH7EM, FL_ARCH7, FL_ARM_DIV, FL_ARCH8, FL_CRC32, FL_SMALLMUL,
3011         FL_NO_VOLATILE_CE, FL_IWMMXT, FL_IWMMXT2, FL_ARCH6KZ, FL2_ARCH8_1,
3012         FL2_ARCH8_2, FL2_FP16INST): Reindent comment, add final dot when
3013         missing and make value unsigned.
3014         (arm_feature_set): Use unsigned entries instead of unsigned long.
3016 2016-11-18  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3018         Re-apply after PR bootstrap/77359 is fixed:
3019         2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3021         * explow.c (get_dynamic_stack_size): Take known alignment of stack
3022         pointer + STACK_DYNAMIC_OFFSET into account when calculating the
3023         size needed.
3025 2016-11-18  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3027         PR bootstrap/77359
3028         * config/rs6000/rs6000.c (rs6000_stack_info): Properly align local
3029         variables in functions calling alloca.  Also update the ASCII
3030         drawings.
3031         * config/rs6000/rs6000.h (STARTING_FRAME_OFFSET)
3032         (STACK_DYNAMIC_OFFSET): Likewise.
3033         * config/rs6000/aix.h (STARTING_FRAME_OFFSET)
3034         (STACK_DYNAMIC_OFFSET): Copy AIX specific versions of the rs6000.h
3035         macros to aix.h.
3037 2016-11-18  Richard Sandiford  <richard.sandiford@arm.com>
3038             Alan Hayward  <alan.hayward@arm.com>
3039             David Sherwood  <david.sherwood@arm.com>
3041         * combine.c (try_combine): Use rtx_mode_t instead of std::make_pair.
3042         * dwarf2out.c (mem_loc_descriptor, loc_descriptor): Likewise.
3043         (add_const_value_attribute): Likewise.
3044         * explow.c (plus_constant): Likewise.
3045         * expmed.c (expand_mult, make_tree): Likewise.
3046         * expr.c (convert_modes): Likewise.
3047         * loop-doloop.c (doloop_optimize): Likewise.
3048         * postreload.c (reload_cse_simplify_set): Likewise.
3049         * simplify-rtx.c (simplify_const_unary_operation): Likewise
3050         (simplify_binary_operation_1, simplify_const_binary_operation):
3051         Likewise.
3052         (simplify_const_relational_operation, simplify_immed_subreg): Likewise.
3053         * wide-int.h: Update documentation to recommend rtx_mode_t
3054         instead of std::make_pair.
3056 2016-11-18  Richard Sandiford  <richard.sandiford@arm.com>
3057             Alan Hayward  <alan.hayward@arm.com>
3058             David Sherwood  <david.sherwood@arm.com>
3060         * tree.h (SET_DECL_MODE): New macro.
3061         * cfgexpand.c (avoid_deep_ter_for_debug): Use SET_DECL_MODE.
3062         (expand_gimple_basic_block): Likewise.
3063         * function.c (split_complex_args): Likeise.
3064         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
3065         * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Likewise.
3066         * stor-layout.c (layout_decl, relayout_decl): Likewise.
3067         (finish_bitfield_representative): Likewise.
3068         * tree.c (make_node_stat): Likewise.
3069         * tree-inline.c (remap_ssa_name): Likewise.
3070         (tree_function_versioning): Likewise.
3071         * tree-into-ssa.c (rewrite_debug_stmt_uses): Likewise.
3072         * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
3073         * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
3074         * tree-ssa-loop-ivopts.c (remove_unused_ivs): Likewise.
3075         * tree-ssa.c (insert_debug_temp_for_var_def): Likewise.
3076         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
3077         * varasm.c (make_debug_expr_from_rtl): Likewise.
3079 2016-11-18  Segher Boessenkool  <segher@kernel.crashing.org>
3081         PR rtl-optimization/71785
3082         * bb-reorder.c (maybe_duplicate_computed_goto): New function.
3083         (duplicate_computed_gotos): New function.
3084         (pass_duplicate_computed_gotos::execute): Rewrite.
3086 2016-11-17  Jeff Law  <law@redhat.com>
3088         PR target/47192
3089         * config/m68k/m68k.c (m68k_expand_epilogue): Emit a scheduling
3090         barrier prior to deallocating the stack.
3092 2016-11-17  Andrew Burgess  <andrew.burgess@embecosm.com>
3094         * config/arc/arc.md (cmem bit/sign-extend peephole2): New peephole
3095         to make better use of cmem loads in the case where a single bit is
3096         being accessed.
3097         * config/arc/predicates.md (ge_lt_comparison_operator): New predicate.
3099 2016-11-17  Andrew Senkevich <andrew.senkevich@intel.com>
3101         * config/i386/i386.c (processor_features): Add F_AVX5124VNNIW,
3102         F_AVX5124FMAPS.
3103         (isa_names_table): Handle new features.
3105 2016-11-17  Kirill Yukhin  <kirill.yukhin@gmail.com>
3106             Andrew Senkevich <andrew.senkevich@intel.com>
3108         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX5124FMAPS_SET,
3109         OPTION_MASK_ISA_AVX5124FMAPS_UNSET, OPTION_MASK_ISA_AVX5124VNNIW_SET,
3110         OPTION_MASK_ISA_AVX5124VNNIW_UNSET): New.
3111         (ix86_handle_option): Handle OPT_mavx5124fmaps, OPT_mavx5124vnniw.
3112         * config.gcc: Add avx5124fmapsintrin.h, avx5124vnniwintrin.h.
3113         * config/i386/avx5124fmapsintrin.h: New file.
3114         * config/i386/avx5124vnniwintrin.h: Ditto.
3115         * config/i386/constraints.md (h): New constraint.
3116         * config/i386/cpuid.h (bit_AVX5124VNNIW, bit_AVX5124FMAPS): New.
3117         * config/i386/driver-i386.c (host_detect_local_cpu):
3118         Detect avx5124fmaps, avx5124vnniw.
3119         * config/i386/i386-builtin-types.def: Add types
3120         V16SF_FTYPE_V16SF_V16SF_V16SF_V16SF_V16SF_PCV4SF_V16SF_UHI,
3121         V16SF_FTYPE_V16SF_V16SF_V16SF_V16SF_V16SF_PCV4SF,
3122         V4SF_FTYPE_V4SF_V4SF_V4SF_V4SF_V4SF_PCV4SF,
3123         V4SF_FTYPE_V4SF_V4SF_V4SF_V4SF_V4SF_PCV4SF_V4SF_UQI,
3124         V16SI_FTYPE_V16SI_V16SI_V16SI_V16SI_V16SI_PCV4SI,
3125         V16SI_FTYPE_V16SI_V16SI_V16SI_V16SI_V16SI_PCV4SI_V16SI_UHI.
3126         * config/i386/i386-builtin.def (__builtin_ia32_4fmaddps_mask,
3127         __builtin_ia32_4fmaddps, __builtin_ia32_4fmaddss,
3128         __builtin_ia32_4fmaddss_mask, __builtin_ia32_4fnmaddps_mask,
3129         __builtin_ia32_4fnmaddps, __builtin_ia32_4fnmaddss,
3130         __builtin_ia32_4fnmaddss_mask, __builtin_ia32_vp4dpwssd,
3131         __builtin_ia32_vp4dpwssd_mask, __builtin_ia32_vp4dpwssds,
3132         __builtin_ia32_vp4dpwssds_mask): New.
3133         * config/i386/i386-c.c (ix86_target_macros_internal):
3134         Define __AVX5124FMAPS__, __AVX5124VNNIW__.
3135         * config/i386/i386-modes.def: Fixed comment typos, added new
3136         modes (VECTOR_MODES (FLOAT, 256), VECTOR_MODE (INT, SI, 64)).
3137         * config/i386/i386.c (ix86_target_string): Add -mavx5124fmaps,
3138         -mavx5124vnniw.
3139         (PTA_AVX5124FMAPS, PTA_AVX5124VNNIW): Define.
3140         (ix86_option_override_internal): Handle new options.
3141         (ix86_valid_target_attribute_inner_p): Add avx5124fmaps,
3142         avx5124vnniw.
3143         (ix86_expand_builtin): Handle new builtins.
3144         (ix86_additional_allocno_class_p): New.
3145         * config/i386/i386.h (TARGET_AVX5124FMAPS, TARGET_AVX5124FMAPS_P,
3146         TARGET_AVX5124VNNIW, TARGET_AVX5124VNNIW_P): Define.
3147         (reg_class): Add MOD4_SSE_REGS.
3148         (MOD4_SSE_REG_P, MOD4_SSE_REGNO_P): New.
3149         * config/i386/i386.opt: Add mavx5124fmaps, mavx5124vnniw.
3150         * config/i386/immintrin.h: Include avx5124fmapsintrin.h,
3151         avx5124vnniwintrin.h.
3152         * config/i386/sse.md (unspec): Add UNSPEC_VP4FMADD, UNSPEC_VP4FNMADD,
3153         UNSPEC_VP4DPWSSD, UNSPEC_VP4DPWSSDS.
3154         (define_mode_iterator IMOD4): New.
3155         (define_mode_attr imod4_narrow): Ditto.
3156         (define_insn "mov<mode>"): Ditto.
3157         (define_insn "avx5124fmaddps_4fmaddps"): Ditto.
3158         (define_insn "avx5124fmaddps_4fmaddps_mask"): Ditto.
3159         (define_insn "avx5124fmaddps_4fmaddps_maskz"): Ditto.
3160         (define_insn "avx5124fmaddps_4fmaddss"): Ditto.
3161         (define_insn "avx5124fmaddps_4fmaddss_mask"): Ditto.
3162         (define_insn "avx5124fmaddps_4fmaddss_maskz"): Ditto.
3163         (define_insn "avx5124fmaddps_4fnmaddps"): Ditto.
3164         (define_insn "avx5124fmaddps_4fnmaddps_mask"): Ditto.
3165         (define_insn "avx5124fmaddps_4fnmaddps_maskz"): Ditto.
3166         (define_insn "avx5124fmaddps_4fnmaddss"): Ditto.
3167         (define_insn "avx5124fmaddps_4fnmaddss_mask"): Ditto.
3168         (define_insn "avx5124fmaddps_4fnmaddss_maskz"): Ditto.
3169         (define_insn "avx5124vnniw_vp4dpwssd"): Ditto.
3170         (define_insn "avx5124vnniw_vp4dpwssd_mask"): Ditto.
3171         (define_insn "avx5124vnniw_vp4dpwssd_maskz"): Ditto.
3172         (define_insn "avx5124vnniw_vp4dpwssds"): Ditto.
3173         (define_insn "avx5124vnniw_vp4dpwssds_mask"): Ditto.
3174         (define_insn "avx5124vnniw_vp4dpwssds_maskz"): Ditto.
3175         * init-regs.c (initialize_uninitialized_regs): Add emit_clobber call.
3176         * genmodes.c (mode_size_inline): Extend return type.
3177         * machmode.h (mode_size, mode_base_align): Extend type.
3179 2016-11-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
3181         PR target/78101
3182         * config/rs6000/predicates.md (fusion_addis_mem_combo_load): Add
3183         the appropriate checks for SFmode/DFmode load/stores in GPR
3184         registers.
3185         (fusion_addis_mem_combo_store): Likewise.
3186         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Rename
3187         fusion_fpr_* to fusion_vsx_* and add in support for ISA 3.0 scalar
3188         d-form instructions for traditional Altivec registers.
3189         (emit_fusion_p9_load): Likewise.
3190         (emit_fusion_p9_store): Likewise.
3191         * config/rs6000/rs6000.md (p9 fusion store peephole2): Remove
3192         early clobber from scratch register.  Do not match if the register
3193         being stored is the scratch register.
3194         (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_load): Rename fusion_fpr_*
3195         to fusion_vsx_* and add in support for ISA 3.0 scalar d-form
3196         instructions for traditional Altivec registers.
3197         (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
3198         (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
3199         (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
3201 2016-11-17  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3203         PR target/77933
3204         * config/arm/arm.c (thumb1_expand_prologue): Distinguish between lr
3205         being live in the function and lr needing to be saved.  Distinguish
3206         between already saved pushable registers and registers to push.
3207         Check for LR being an available pushable register.
3209 2016-11-17  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
3211         * config/i386/i386.md (cmpstrnsi): New test to bail out if neither
3212         string input is a string constant.
3213         * builtins.c (expand_builtin_strncmp): Attempt expansion of strncmp
3214         via cmpstrnsi even if neither string is constant.
3216 2016-11-17  Jakub Jelinek  <jakub@redhat.com>
3218         PR middle-end/78201
3219         * varasm.c (default_use_anchors_for_symbol_p): Fix a comment typo.
3220         Don't test decl != NULL.  Don't look at DECL_SIZE, but DECL_SIZE_UNIT
3221         instead, return false if it is NULL, or doesn't fit into uhwi, or
3222         is larger or equal to targetm.max_anchor_offset.
3224 2016-11-17  Pip Cet  <pipcet@gmail.com>
3225             Eric Botcazou  <ebotcazou@adacore.com>
3227         PR rtl-optimization/78355
3228         * doc/tm.texi.in (SLOW_UNALIGNED_ACCESS): Document that the macro only
3229         needs to deal with unaligned accesses.
3230         * doc/tm.texi: Regenerate.
3231         * lra-constraints.c (simplify_operand_subreg): Only invoke
3232         SLOW_UNALIGNED_ACCESS on innermode if the MEM is not aligned enough.
3234 2016-11-17  David Malcolm  <dmalcolm@redhat.com>
3236         * input.c (selftest::test_lexer_string_locations_long_line): New
3237         function.
3238         (selftest::test_lexer_string_locations_raw_string_multiline): New
3239         function.
3240         (selftest::input_c_tests): Call the new functions, via
3241         for_each_line_table_case.
3243 2016-11-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3245         * config/aarch64/aarch64.md (mov<mode>): Call
3246         aarch64_split_dimode_const_store on DImode constant stores.
3247         * config/aarch64/aarch64-protos.h (aarch64_split_dimode_const_store):
3248         New prototype.
3249         * config/aarch64/aarch64.c (aarch64_split_dimode_const_store): New
3250         function.
3252 2016-11-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3253             Richard Biener  <rguenther@suse.de>
3255         PR tree-optimization/77848
3256         * tree-if-conv.c (tree_if_conversion): Always version loops unless
3257         the user specified -ftree-loop-if-convert.
3259 2016-11-17  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3261         PR target/77308
3262         * config/arm/arm.md (*thumb2_ldrd, *thumb2_ldrd_base,
3263         *thumb2_ldrd_base_neg, *thumb2_strd, *thumb2_strd_base,
3264         *thumb2_strd_base_neg): Recognize insn regardless of
3265         current_tune->prefer_ldrd_strd.
3266         * config/arm/ldrdstrd.md: Enable all ldrd/strd peephole rules
3267         whenever possible.
3269 2016-11-17  Claudiu Zissulescu  <claziss@synopsys.com>
3271         * config/arc/arc.c (arc_ccfsm_post_advance): Handle return
3272         instruction type.
3274 2016-11-17  Claudiu Zissulescu  <claziss@synopsys.com>
3276         * config/arc/arc-arches.def: Add FPX quarkse instruction as valid
3277         for arcem.
3278         * config/arc/arc-c.def (__ARC_FPX_QUARK__): Define.
3279         * config/arc/arc-cpus.def (quarkse_em): Add.
3280         * config/arc/arc-options.def (FL_FPX_QUARK, FL_QUARK): Likewise.
3281         * config/arc/arc-opts.h (FPX_QK): Define.
3282         * config/arc/arc-tables.opt: Regenerate.
3283         * config/arc/arc.c (gen_compare_reg): Change.
3284         (arc_register_move_cost): Avoid Dy,Dx moves.
3285         * config/arc/arc.h (TARGET_HARD_FLOAT): Change.
3286         (TARGET_FPX_QUARK, TARGET_FP_ASSIST): Define.
3287         * config/arc/arc.md (divsf3, sqrtsf2, fix_truncsfsi2, floatsisf2):
3288         New expands.
3289         * config/arc/fpu.md (divsf3_fpu, sqrtsf2_fpu, floatsisf2_fpu)
3290         (fix_truncsfsi2_fpu): Rename.
3291         * config/arc/fpx.md (cmp_quark, cmpsf_quark_, cmpsf_quark_ord)
3292         (cmpsf_quark_uneq, cmpsf_quark_eq, divsf3_quark, sqrtsf2_quark)
3293         (fix_truncsfsi2_quark, floatsisf2_quark): New patterns.
3294         * config/arc/t-multilib: Regenerate.
3296 2016-11-17  Georg-Johann Lay  <avr@gjlay.de>
3298         * config/avr/avr.c (avr_print_operand_address): Use CONST_INT_P if
3299         appropriate.
3300         (ashlqi3_out, ashlsi3_out, ashrqi3_out, ashrhi3_out): Same.
3301         (ashrsi3_out, lshrqi3_out, lshrhi3_out, lshrsi3_out): Same.
3302         (avr_rtx_costs_1, extra_constraint_Q): Same.
3303         (avr_address_cost): Use SUBREG_P if possible.
3305 2016-11-17  Richard Biener  <rguenther@suse.de>
3307         PR middle-end/78383
3308         * tree-cfgcleanup.c (cleanup_control_flow_bb): Do not turn
3309         non-local goto into CFG.
3311 2016-11-17  Richard Biener  <rguenther@suse.de>
3313         * common.opt (ftree-loop-if-convert-stores): Mark as preserved for
3314         backward compatibility.
3315         * doc/invoke.texi (ftree-loop-if-convert-stores): Remove.
3316         * tree-if-conv.c (pass_if_conversion::gate): Do not test
3317         flag_tree_loop_if_convert_stores.
3318         (pass_if_conversion::execute): Likewise.
3320 2016-11-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3322         * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): Check for
3323         const_double code before calling aarch64_float_const_zero_rtx_p.
3325 2016-11-17  Richard Biener  <rguenther@suse.de>
3327         PR tree-optimization/78306
3328         * ipa-inline-analysis.c (initialize_inline_failed): Do not
3329         inhibit inlining if function calls cilk_spawn.
3330         (can_inline_edge_p): Likewise.
3332 2016-11-17  Richard Biener  <rguenther@suse.de>
3334         PR middle-end/78305
3335         * fold-const.c (negate_expr_p): Fix multiplication case.
3337 2016-11-17  Chung-Lin Tang  <cltang@codesourcery.com>
3339         PR target/78357
3340         * config/nios2/nios2.c (nios2_init_libfuncs): Remove TARGET_LINUX_ABI
3341         condition.
3342         (TARGET_INIT_LIBFUNCS): Delete definition and...
3343         * config/nios2/linux.h (TARGET_INIT_LIBFUNCS): ...move to here, add
3344         comments.
3346 2016-11-17  Krister Walfridsson  <krister.walfridsson@gmail.com>
3348         * config/netbsd-stdint.h: New.
3349         * config.gcc (i[34567]86-*-netbsd): Add netbsd-stdint.h to tm_file.
3350         (x86_64-*-netbsd*): Likewise.
3352 2016-11-16  Andrew PInski  <apinski@cavium.com>
3354         * config/aarch64/aarch64.opt (mverbose-cost-dump): New option.
3355         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
3356         flag_aarch64_verbose_cost instead of checking for details dump.
3357         (aarch64_rtx_costs_wrapper): Likewise.
3359 2016-11-16  Jakub Jelinek  <jakub@redhat.com>
3361         PR rtl-optimization/78378
3362         * combine.c (make_extraction): Use force_to_mode for non-{REG,MEM}
3363         inner only if pos is 0.  Fix up formatting.
3365 2016-11-17  Alan Modra  <amodra@gmail.com>
3367         PR rtl-optimization/78325
3368         PR rtl-optimization/70890
3369         * ira.c (combine_and_move_insns): Only remove REG_EQUIV notes
3370         for dead regno.
3372 2016-11-16  Jason Merrill  <jason@redhat.com>
3374         * rtl.h: Declare gt_ggc_mx and gt_pch_nx.
3376 2016-11-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3377             Richard Biener  <rguenther@suse.de>
3379         PR tree-optimization/77848
3380         * tree-if-conv.c (version_loop_for_if_conversion): When versioning
3381         an outer loop, only save basic block aux information for the inner
3382         loop.
3383         (versionable_outer_loop_p): New function.
3384         (tree_if_conversion): Version the outer loop instead of the inner
3385         one if the pattern will be recognized for outer-loop
3386         vectorization.
3388 2016-11-16  Andrew Burgess  <andrew.burgess@embecosm.com>
3390         * gcc/bb-reorder.c: Remove 'toplev.h' include.
3391         (pass_partition_blocks::gate): No longer check
3392         user_defined_section_attribute, instead check the function decl
3393         for a section attribute.
3394         * gcc/c-family/c-attribs.c (handle_section_attribute): No longer
3395         set user_defined_section_attribute.
3396         * gcc/final.c (rest_of_handle_final): Likewise.
3397         * gcc/toplev.c: Remove definition of user_defined_section_attribute.
3398         * gcc/toplev.h: Remove declaration of
3399         user_defined_section_attribute.
3401 2016-11-16  Maciej W. Rozycki  <macro@imgtec.com>
3403         * config/mips/mips.md (casesi_internal_mips16_<mode>):
3404         Explicitly switch between JR and JRC for the table jump.  Adjust
3405         instruction count.
3407 2016-11-16  Maciej W. Rozycki  <macro@imgtec.com>
3409         * config/mips/mips.md (casesi_internal_mips16_<mode>): Set
3410         `insn_count' to 11 rather than 16.
3412 2016-11-16  Maciej W. Rozycki  <macro@imgtec.com>
3414         * config/mips/mips.md (casesi_internal_mips16_<mode>): Use the
3415         `ltu' rather than `leu' operation in the RTL pattern
3417 2016-11-16  Maciej W. Rozycki  <macro@imgtec.com>
3419         * config/mips/mips.md (casesi_internal_mips16_<mode>): Add
3420         missing <d> instruction prefixes throughout.  Correct
3421         formatting.
3423 2016-11-16  Maciej W. Rozycki  <macro@imgtec.com>
3425         * config/mips/mips.c (mips_output_jump): Output R_MICROMIPS_JALR
3426         rather than R_MIPS_JALR relocation in microMIPS code.  Do not
3427         cancel short delay slots in PIC call relaxation.
3429 2016-11-16  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3431         * config/arm/arm.md (arm_addsi3): Add alternative for addition of
3432         general register with general register or ARM constant into SP
3433         register.
3435 2016-11-16  Jakub Jelinek  <jakub@redhat.com>
3437         PR fortran/78299
3438         * omp-low.c (expand_omp_for_static_nochunk): Don't assert
3439         that loop->header == body_bb if broken_loop.
3441 2015-11-16  Wilco Dijkstra  <wdijkstr@arm.com>
3443         * tree-ssa-math-opts.c (bswap_replace): Remove test
3444         of SLOW_UNALIGNED_ACCESS.
3446 2016-11-16  Alexander Monakov  <amonakov@ispras.ru>
3448         * config/nvptx/mkoffload.c (main): Check that either OpenACC or OpenMP
3449         is selected.  Pass -mgomp to offload compiler in OpenMP case.
3450         * config/nvptx/nvptx-protos.h (nvptx_shuffle_kind): Move enum
3451         declaration from nvptx.c.
3452         (nvptx_gen_shuffle): Declare.
3453         (nvptx_output_set_softstack): Declare.
3454         * config/nvptx/nvptx.c (nvptx_shuffle_kind): Move to nvptx-protos.h.
3455         (need_softstack_decl): New variable.
3456         (need_unisimt_decl): New variable.
3457         (diagnose_openacc_conflict): New.  Use it...
3458         (nvptx_option_override): ...here.  Handle TARGET_GOMP.
3459         (nvptx_encode_section_info): Handle "shared" attribute.
3460         (write_as_kernel): Restrict to OpenACC target regions.
3461         (init_softstack_frame): New.
3462         (nvptx_init_unisimt_predicate): New.
3463         (write_omp_entry): New.  Use it...
3464         (nvptx_declare_function_name): ...here to emit OpenMP target region
3465         entrypoints.  Handle TARGET_SOFT_STACK.  Call
3466         nvptx_init_unisimt_predicate.
3467         (nvptx_output_set_softstack): New.
3468         (nvptx_get_drap_rtx): Return %argp as the DRAP if needed.
3469         (nvptx_gen_shuffle): Export.
3470         (nvptx_output_call_insn): Handle COND_EXEC patterns.  Emit instruction
3471         predicate.
3472         (nvptx_print_operand): Fix handling of instruction predicates.
3473         (nvptx_get_unisimt_master): New helper function.
3474         (nvptx_get_unisimt_predicate): Ditto.
3475         (nvptx_call_insn_is_syscall_p): Ditto.
3476         (nvptx_unisimt_handle_set): Ditto.
3477         (nvptx_reorg_uniform_simt): New.  Transform code for -muniform-simt.
3478         (nvptx_reorg): Call nvptx_reorg_uniform_simt.
3479         (nvptx_handle_shared_attribute): New.  Use it...
3480         (nvptx_attribute_table): ... here (new entry).
3481         (nvptx_record_offload_symbol): Handle NULL attributes.
3482         (nvptx_file_end): Handle need_softstack_decl and need_unisimt_decl.
3483         (nvptx_simt_vf): New.
3484         (TARGET_SIMT_VF): Define.
3485         * config/nvptx/nvptx.h (TARGET_CPU_CPP_BUILTINS): Define
3486         __nvptx_softstack or __nvptx_unisimt__ when -msoft-stack, or resp.
3487         -muniform-simt option is active.
3488         (STACK_SIZE_MODE): Define.
3489         (FIXED_REGISTERS): Adjust.
3490         (SOFTSTACK_SLOT_REGNUM): New.
3491         (SOFTSTACK_PREV_REGNUM): New.
3492         (REGISTER_NAMES): Adjust.
3493         (struct machine_function): New fields.
3494         * config/nvptx/nvptx.md (UNSPEC_SET_SOFTSTACK): New.
3495         (UNSPEC_VOTE_BALLOT): Ditto.
3496         (UNSPEC_LANEID): Ditto.
3497         (UNSPECV_NOUNROLL): Ditto.
3498         (atomic): New attribute.
3499         (predicable): New attribute.  Generate predicated forms via
3500         define_cond_exec.
3501         (br_true): Mark as not predicable.
3502         (br_false): Ditto.
3503         (br_true_uni): Ditto.
3504         (br_false_uni): Ditto.
3505         (return): Ditto.
3506         (trap_if_true): Ditto.
3507         (trap_if_false): Ditto.
3508         (nvptx_fork): Ditto.
3509         (nvptx_forked): Ditto.
3510         (nvptx_joining): Ditto.
3511         (nvptx_join): Ditto.
3512         (nvptx_barsync): Ditto.
3513         (epilogue): Emit stack restore if TARGET_SOFT_STACK.
3514         (allocate_stack): Implement for TARGET_SOFT_STACK.  Remove unused code.
3515         (allocate_stack_<mode>): Remove unused pattern.
3516         (set_softstack_insn): New pattern.
3517         (restore_stack_block): Handle for TARGET_SOFT_STACK.
3518         (nvptx_vote_ballot): New pattern.
3519         (omp_simt_lane): Ditto.
3520         (omp_simt_last_lane): Ditto.
3521         (omp_simt_ordered): Ditto.
3522         (omp_simt_vote_any): Ditto.
3523         (omp_simt_xchg_bfly): Ditto.
3524         (omp_simt_xchg_idx): Ditto.
3525         (nvptx_nounroll): Ditto.
3526         (atomic_compare_and_swap<mode>_1): Mark with atomic attribute.
3527         (atomic_exchange<mode>): Ditto.
3528         (atomic_fetch_add<mode>): Ditto.
3529         (atomic_fetch_addsf): Ditto.
3530         (atomic_fetch_<logic><mode>): Ditto.
3531         * config/nvptx/nvptx.opt (msoft-stack): New option.
3532         (muniform-simt): Ditto.
3533         (mgomp): Ditto.
3534         * config/nvptx/t-nvptx (MULTILIB_OPTIONS): New.
3535         * doc/extend.texi (Nvidia PTX Variable Attributes): New section.
3536         * doc/invoke.texi (msoft-stack): Document.
3537         (muniform-simt): Document
3538         (mgomp): Document.
3539         * doc/tm.texi: Regenerate.
3540         * doc/tm.texi.in (TARGET_SIMT_VF): New hook.
3541         * target.def: Define it.
3542         * target-insns.def (omp_simt_lane): New.
3543         (omp_simt_last_lane): New.
3544         (omp_simt_ordered): New.
3545         (omp_simt_vote_any): New.
3546         (omp_simt_xchg_bfly): New.
3547         (omp_simt_xchg_idx): New.
3549 2016-11-16  Maciej W. Rozycki  <macro@imgtec.com>
3551         * config/mips/mips-protos.h (mips_set_text_contents_type): New
3552         prototype.
3553         * config/mips/mips.h (ASM_OUTPUT_BEFORE_CASE_LABEL): New macro.
3554         (ASM_OUTPUT_CASE_END): Likewise.
3555         * config/mips/mips.c (mips_set_text_contents_type): New function.
3556         (mips16_emit_constants): Record the pool's initial label number
3557         with the `consttable' insn.  Emit a `consttable_end' insn at the end.
3558         (mips_final_prescan_insn): Call `mips_set_text_contents_type'
3559         for `consttable' insns.
3560         (mips_final_postscan_insn): Call `mips_set_text_contents_type'
3561         for `consttable_end' insns.
3562         * config/mips/mips.md (unspec): Add UNSPEC_CONSTTABLE_END enum value.
3563         (consttable): Add operand.
3564         (consttable_end): New insn.
3566 2016-11-16  Yuri Rumyantsev  <ysrumyan@gmail.com>
3568         * params.def (PARAM_VECT_EPILOGUES_NOMASK): New.
3569         * tree-if-conv.c (tree_if_conversion): Make public.
3570         * * tree-if-conv.h: New file.
3571         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences) Avoid
3572         dynamic alias checks for epilogues.
3573         * tree-vect-loop-manip.c (vect_do_peeling): Return created epilog.
3574         * tree-vect-loop.c: include tree-if-conv.h.
3575         (new_loop_vec_info): Add zeroing orig_loop_info field.
3576         (vect_analyze_loop_2): Don't try to enhance alignment for epilogues.
3577         (vect_analyze_loop): Add argument ORIG_LOOP_INFO which is not NULL
3578         if epilogue is vectorized, set up orig_loop_info field of loop_vinfo
3579         using passed argument.
3580         (vect_transform_loop): Check if created epilogue should be returned
3581         for further vectorization with less vf.  If-convert epilogue if
3582         required. Print vectorization success for epilogue.
3583         * tree-vectorizer.c (vectorize_loops): Add epilogue vectorization
3584         if it is required, pass loop_vinfo produced during vectorization of
3585         loop body to vect_analyze_loop.
3586         * tree-vectorizer.h (struct _loop_vec_info): Add new field
3587         orig_loop_info.
3588         (LOOP_VINFO_ORIG_LOOP_INFO): New.
3589         (LOOP_VINFO_EPILOGUE_P): New.
3590         (LOOP_VINFO_ORIG_VECT_FACTOR): New.
3591         (vect_do_peeling): Change prototype to return epilogue.
3592         (vect_analyze_loop): Add argument of loop_vec_info type.
3593         (vect_transform_loop): Return created loop.
3595 2016-11-16  Segher Boessenkool  <segher@kernel.crashing.org>
3597         * config/rs6000/rs6000.c (rs6000_components_for_bb): Mark the LR
3598         component as used also if LR_REGNO is a live input to the bb.
3599         * df-scan.c (df_get_entry_block_def_set): Return immediately after
3600         clearing the set if DF_SCAN_EMPTY_ENTRY_EXIT is set.
3601         (df_get_exit_block_use_set): Ditto.
3602         * df.h (df_scan_flags): New enum.
3603         * shrink-wrap.c (try_shrink_wrapping_separate): Set
3604         DF_SCAN_EMPTY_ENTRY_EXIT in df_scan->local_flags, and call
3605         df_update_entry_block_defs and df_update_exit_block_uses
3606         at the start; clear the flag and call those functions at the end.
3608 2016-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3609             Alan Hayward  <alan.hayward@arm.com>
3610             David Sherwood  <david.sherwood@arm.com>
3612         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Set
3613         nb_iterations to the number of latch iterations rather than the
3614         number of loop iterations.
3616 2016-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3617             Alan Hayward  <alan.hayward@arm.com>
3618             David Sherwood  <david.sherwood@arm.com>
3620         * combine.c (maybe_swap_commutative_operands): New function.
3621         (combine_simplify_rtx): Use it.
3622         (change_zero_ext): Likewise.
3623         (make_compound_operation_int): New function, split out of...
3624         (make_compound_operation): ...here.  Use
3625         maybe_swap_commutative_operands for both.
3627 2016-11-16  Richard Earnshaw  <rearnsha@arm.com>
3629         * arm/arm-fpus.def (vfpv2): New FPU, currently an alias for 'vfp'.
3630         (neon-vfpv3): New FPU, currently an alias for 'neon'.
3631         * arm/arm-tables.opt: Regenerated.
3632         * arm/t-aprofile (MULTILIB_REUSE): Add reuse rules for vfpv2 and
3633         neon-vfpv3.
3634         * doc/invoke.texi (ARM: -mfpu): Document new options.  Note that 'vfp'
3635         and 'neon' are aliases for specific implementations.
3637 2016-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3638             Alan Hayward  <alan.hayward@arm.com>
3639             David Sherwood  <david.sherwood@arm.com>
3641         * optabs.c (vector_compare_rtx): Add a cmp_mode parameter
3642         and use it in the final call to gen_rtx_fmt_ee.
3643         (expand_vec_cond_expr): Update accordingly.
3644         (expand_vec_cmp_expr): Likewise.
3646 2016-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3647             Alan Hayward  <alan.hayward@arm.com>
3648             David Sherwood  <david.sherwood@arm.com>
3650         * cprop.c (local_cprop_find_used_regs): Use df_read_modify_subreg_p.
3652 2016-11-16  Richard Biener  <rguenther@suse.de>
3654         PR middle-end/78333
3655         * gimplify.c (gimplify_function_tree): Do not instrument
3656         GNU extern inline functions.
3658 2016-11-16  Martin Liska  <mliska@suse.cz>
3660         PR sanitizer/78270
3661         * gimplify.c (gimplify_switch_expr): Always save previous
3662         gimplify_ctxp->live_switch_vars.
3664 2016-11-16  Andrew Burgess  <andrew.burgess@embecosm.com>
3666         * config/arc/arc.md (movb peephole2): New peephole2 to merge two
3667         zero_extract operations to allow a movb to occur.
3668         * testsuite/gcc.target/arc/movb-1.c: Update little endian arc results.
3669         * testsuite/gcc.target/arc/movb-2.c: Likewise.
3670         * testsuite/gcc.target/arc/movb-5.c: Likewise.
3671         * testsuite/gcc.target/arc/movh_cl-1.c: Extend test to cover
3672         little endian arc.
3674 2016-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3675             Alan Hayward  <alan.hayward@arm.com>
3676             David Sherwood  <david.sherwood@arm.com>
3678         * expr.c (emit_group_load_1): Tighten check for whether an
3679         access involves only one operand of a CONCAT.  Use extract_bit_field
3680         for constants if the bit range does span the whole operand.
3682 2016-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3683             Alan Hayward  <alan.hayward@arm.com>
3684             David Sherwood  <david.sherwood@arm.com>
3686         * rtlanal.c (rtx_addr_can_trap_p_1): Handle unknown sizes.
3688 2016-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3689             Alan Hayward  <alan.hayward@arm.com>
3690             David Sherwood  <david.sherwood@arm.com>
3692         * tree-vect-loop.c (vect_transform_loop): Protect the updates of
3693         all three iteration counts with an any_* test.  Use a single update
3694         for each count.  Fix the calculation of nb_iterations_estimate.
3696 2016-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3698         * config/pdp11/pdp11.c: Include dbxout.h.
3700 2016-11-16  Richard Sandiford  <richard.sandiford@arm.com>
3702         * config/arc/arc.c (arc_loop_hazard): Add missing brackets.
3704 2016-11-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3706         PR target/78364
3707         * config/arm/arm.md (*extv_reg): Restrict operands 2 and 3 to the
3708         proper ranges for an SBFX instruction.
3709         (extzv_t2): Likewise for UBFX.
3711 2016-11-16  Richard Biener  <rguenther@suse.de>
3713         PR tree-optimization/78348
3714         * tree-loop-distribution.c (enum partition_kind): Add PKIND_MEMMOVE.
3715         (generate_memcpy_builtin): Honor PKIND_MEMCPY on the partition.
3716         (classify_partition): Set PKIND_MEMCPY if dependence analysis
3717         revealed no dependency, PKIND_MEMMOVE otherwise.
3719 2016-11-16  Jakub Jelinek  <jakub@redhat.com>
3721         PR sanitizer/77823
3722         * ubsan.c (ubsan_build_overflow_builtin): Add DATAP argument, if
3723         it points to non-NULL tree, use it instead of ubsan_create_data.
3724         (instrument_si_overflow): Handle vector signed integer overflow
3725         checking.
3726         * ubsan.h (ubsan_build_overflow_builtin): Add DATAP argument.
3727         * tree-vrp.c (simplify_internal_call_using_ranges): Punt for
3728         vector IFN_UBSAN_CHECK_*.
3729         * internal-fn.c (expand_addsub_overflow): Add DATAP argument,
3730         pass it through to ubsan_build_overflow_builtin.
3731         (expand_neg_overflow, expand_mul_overflow): Likewise.
3732         (expand_vector_ubsan_overflow): New function.
3733         (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB,
3734         expand_UBSAN_CHECK_MUL): Use tit for vector arithmetics.
3735         (expand_arith_overflow): Adjust expand_*_overflow callers.
3737 2016-11-16  Matthias Klose  <doko@ubuntu.com>
3739         * doc/install.texi: Remove references to java/libjava.
3741 2016-11-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
3743         * tree-ssa-coalesce.c (register_default_def): Remove
3744         register_ssa_partition.
3745         (create_outofssa_var_map): Likewise.
3746         * tree-ssa-live.c (register_ssa_partition_check): Remove.
3747         * tree-ssa-live.h (register_ssa_partition): Likewise.
3749 2016-11-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3751         * genattrtab.c (attr_rtx_1): Avoid allocating new rtx objects.
3752         Clear ATTR_CURR_SIMPLIFIED_P for re-used binary rtx objects.
3753         Use DEF_ATTR_STRING for string arguments.  Use RTL_HASH for
3754         integer arguments.  Only set ATTR_PERMANENT_P on newly hashed
3755         rtx when all sub-rtx are also permanent.
3756         (attr_eq): Simplify.
3757         (attr_copy_rtx): Remove.
3758         (make_canonical, get_attr_value): Use attr_equal_p.
3759         (copy_boolean): Rehash NOT.
3760         (simplify_test_exp_in_temp,
3761         optimize_attrs): Remove call to attr_copy_rtx.
3762         (attr_alt_intersection, attr_alt_union,
3763         attr_alt_complement, mk_attr_alt): Rehash EQ_ATTR_ALT.
3764         (make_automaton_attrs): Use attr_eq.
3766 2016-11-15  Matthias Klose  <doko@ubuntu.com>
3768         * doc/install.texi: Remove references to java/libjava.
3769         * doc/sourcebuild.texi: Likewise.
3770         * doc/invoke.texi: Likewise.
3771         * doc/standards.texi: Likewise.
3773 2016-11-15  Richard Sandiford  <richard.sandiford@arm.com>
3774             Alan Hayward  <alan.hayward@arm.com>
3775             David Sherwood  <david.sherwood@arm.com>
3777         * config/i386/i386.h (INCOMING_RETURN_ADDR_RTX): Use Pmode instead
3778         of VOIDmode.
3779         * config/ia64/ia64.h (INCOMING_RETURN_ADDR_RTX): Likewise.
3780         * config/iq2000/iq2000.h (INCOMING_RETURN_ADDR_RTX): Likewise.
3781         * config/m68k/m68k.h (INCOMING_RETURN_ADDR_RTX): Likewise.
3782         * config/microblaze/microblaze.h (INCOMING_RETURN_ADDR_RTX): Likewise.
3783         * config/mips/mips.h (INCOMING_RETURN_ADDR_RTX): Likewise.
3784         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Likewise.
3785         * config/nios2/nios2.h (INCOMING_RETURN_ADDR_RTX): Likewise.
3787 2016-11-15  Richard Sandiford  <richard.sandiford@arm.com>
3788             Alan Hayward  <alan.hayward@arm.com>
3789             David Sherwood  <david.sherwood@arm.com>
3791         * dce.c (check_argument_store): Pass the size instead of
3792         the memory reference.
3793         (find_call_stack_args): Pass MEM_SIZE to check_argument_store.
3795 2016-11-15  Richard Sandiford  <richard.sandiford@arm.com>
3796             Alan Hayward  <alan.hayward@arm.com>
3797             David Sherwood  <david.sherwood@arm.com>
3799         * alias.c (canon_rtx): Use simplify_gen_binary.
3801 2016-11-15  Richard Sandiford  <richard.sandiford@arm.com>
3802             Alan Hayward  <alan.hayward@arm.com>
3803             David Sherwood  <david.sherwood@arm.com>
3805         * rtl.h (load_extend_op): Declare.
3806         * rtlanal.c (load_extend_op): New function.
3807         (nonzero_bits1): Use it.
3808         (num_sign_bit_copies1): Likewise.
3809         * cse.c (cse_insn): Likewise.
3810         * fold-const.c (fold_single_bit_test): Likewise.
3811         (fold_unary_loc): Likewise.
3812         * fwprop.c (free_load_extend): Likewise.
3813         * postreload.c (reload_cse_simplify_set): Likewise.
3814         (reload_cse_simplify_operands): Likewise.
3815         * combine.c (try_combine): Likewise.
3816         (simplify_set): Likewise.  Remove redundant SUBREG_BYTE and
3817         subreg_lowpart_p checks.
3819 2016-11-15  Richard Sandiford  <richard.sandiford@arm.com>
3820             Alan Hayward  <alan.hayward@arm.com>
3821             David Sherwood  <david.sherwood@arm.com>
3823         * combine.c (simplify_shift_const_1): Use the number of bits
3824         in the inner mode to determine the range of the shift.
3825         When handling shifts of vectors, skip any rules that apply
3826         only to scalars.
3828 2016-11-15  Richard Sandiford  <richard.sandiford@arm.com>
3829             Alan Hayward  <alan.hayward@arm.com>
3830             David Sherwood  <david.sherwood@arm.com>
3832         * rtlanal.c (num_sign_bit_copies1): Calculate bitwidth after
3833         handling VOIDmode.
3835 2016-11-15  Matthias Klose  <doko@ubuntu.com>
3837         * doc/install.texi: Remove references to gcj/libjava.
3838         * doc/invoke.texi: Likewise.
3840 2016-11-15  Jeff Law  <law@redhat.com>
3842         * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove unneeded
3843         parameter.  Callers changed.
3844         (check-subpath_and_update_thread_path): Extracted from
3845         fsm_find_control_statement_thread_paths.
3846         (handle_phi, handle_assignment, handle_assignment_p): Likewise.
3847         (handle_phi, handle_assignment): Allow any constant node, not
3848         just INTEGER_CST.
3850 2016-11-15  Claudiu Zissulescu  <claziss@synopsys.com>
3852         * config/arc/arc-arch.h: New file.
3853         * config/arc/arc-arches.def: Likewise.
3854         * config/arc/arc-cpus.def: Likewise.
3855         * config/arc/arc-options.def: Likewise.
3856         * config/arc/t-multilib: Likewise.
3857         * config/arc/genmultilib.awk: Likewise.
3858         * config/arc/genoptions.awk: Likewise.
3859         * config/arc/arc-tables.opt: Likewise.
3860         * config/arc/driver-arc.c: Likewise.
3861         * testsuite/gcc.target/arc/nps400-cpu-flag.c: Likewise.
3862         * common/config/arc/arc-common.c (arc_handle_option): Trace
3863         toggled options.
3864         * config.gcc (arc*-*-*): Add arc-tables.opt to arc's extra
3865         options; check for supported cpu against arc-cpus.def file.
3866         (arc*-*-elf*, arc*-*-linux-uclibc*): Use new make fragment; define
3867         TARGET_CPU_BUILD macro; add driver-arc.o as an extra object.
3868         * config/arc/arc-c.def: Add emacs local variables.
3869         * config/arc/arc-opts.h (processor_type): Use arc-cpus.def file.
3870         (FPU_FPUS, FPU_FPUD, FPU_FPUDA, FPU_FPUDA_DIV, FPU_FPUDA_FMA)
3871         (FPU_FPUDA_ALL, FPU_FPUS_DIV, FPU_FPUS_FMA, FPU_FPUS_ALL)
3872         (FPU_FPUD_DIV, FPU_FPUD_FMA, FPU_FPUD_ALL): New defines.
3873         (DEFAULT_arc_fpu_build): Define.
3874         (DEFAULT_arc_mpy_option): Define.
3875         * config/arc/arc-protos.h (arc_init): Delete.
3876         * config/arc/arc.c (arc_cpu_name): New variable.
3877         (arc_selected_cpu, arc_selected_arch, arc_arcem, arc_archs)
3878         (arc_arc700, arc_arc600, arc_arc601): New variable.
3879         (arc_init): Add static; remove selection of default tune value,
3880         cleanup obsolete error messages.
3881         (arc_override_options): Make use of .def files for selecting the
3882         right cpu and option configurations.
3883         * config/arc/arc.h (stdbool.h): Include.
3884         (TARGET_CPU_DEFAULT): Define.
3885         (CPP_SPEC): Remove mcpu=NPS400 handling.
3886         (arc_cpu_to_as): Declare.
3887         (EXTRA_SPEC_FUNCTIONS): Define.
3888         (OPTION_DEFAULT_SPECS): Likewise.
3889         (ASM_DEFAULT): Remove.
3890         (ASM_SPEC): Use arc_cpu_to_as.
3891         (DRIVER_SELF_SPECS): Remove deprecated options.
3892         (arc_base_cpu): Declare.
3893         (TARGET_ARC600, TARGET_ARC601, TARGET_ARC700, TARGET_EM)
3894         (TARGET_HS, TARGET_V2, TARGET_ARC600): Make them use arc_base_cpu
3895         variable.
3896         (MULTILIB_DEFAULTS): Use ARC_MULTILIB_CPU_DEFAULT.
3897         * config/arc/arc.md (attr_cpu): Remove.
3898         * config/arc/arc.opt (mno-mpy): Deprecate.
3899         (mcpu=ARC600, mcpu=ARC601, mcpu=ARC700, mcpu=NPS400, mcpu=ARCEM)
3900         (mcpu=ARCHS): Remove.
3901         (mcrc, mdsp-packa, mdvbf, mmac-d16, mmac-24, mtelephony, mrtsc):
3902         Deprecate.
3903         (mbarrel_shifte, mspfp_, mdpfp_, mdsp_pack, mmac_): Remove.
3904         (arc_fpu): Use new defines.
3905         (mpy-option): Change to use numeric or string like inputs.
3906         * config/arc/t-arc (driver-arc.o): New target.
3907         (arc-cpus, t-multilib, arc-tables.opt): Likewise.
3908         * config/arc/t-arc-newlib: Delete.
3909         * config/arc/t-arc-uClibc: Renamed to t-uClibc.
3910         * doc/invoke.texi (ARC): Update arc options.
3912 2016-11-15  Maciej W. Rozycki  <macro@imgtec.com>
3914         * config/mips/mips.c (mips16_emit_constants): Emit `consttable'
3915         insn at the beginning of the constant pool.
3916         (mips_insert_insn_pseudos): New function.
3917         (mips_machine_reorg2): Call it.
3918         * config/mips/mips.md (unspec): Add UNSPEC_CONSTTABLE and
3919         UNSPEC_INSN_PSEUDO enum values.
3920         (insn_pseudo, consttable): New insns.
3922 2016-11-15  Michael Matz  <matz@suse.de>
3924         PR missed-optimization/77881
3925         * combine.c (simplify_comparison): Remove useless subregs
3926         also inside the loop, not just after it.
3927         (make_compound_operation): Recognize some subregs as being
3928         masking as well.
3930 2016-11-15  Richard Sandiford  <richard.sandiford@arm.com>
3931             Alan Hayward  <alan.hayward@arm.com>
3932             David Sherwood  <david.sherwood@arm.com>
3934         * dwarf2out.c (mem_loc_descriptor): Fix GET_MODE_CLASS/
3935         GET_MODE_SIZE typo.
3937 2016-11-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
3939         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Add support
3940         for using xxinsertw and vinsert{b,h} on ISA 3.0.
3942         * config/rs6000/vsx.md (vsx_extract_<mode>): Update comment.
3943         (vsx_set_<mode>_p9): New insn to generate xxinsertw and
3944         vinsert{b,h} on ISA 3.0.
3946 2016-11-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3948         * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
3949         and cmpnop in two steps: first the ones not accessed in original gimple
3950         expression in a endian independent way and then the ones not accessed
3951         in the final result in an endian-specific way.
3952         (bswap_replace): Stop doing big endian adjustment.
3954 2016-11-14  Uros Bizjak  <ubizjak@gmail.com>
3956         * config/i386/i386.md (*andndi3_doubleword): Merge operand constraints.
3957         (*ashl<mode>3_doubleword): Ditto.
3959 2016-11-14  Martin Liska  <mliska@suse.cz>
3961         * tree-ssa-dse.c (dse_optimize_stmt): Remove quotes and extra new line.
3963 2016-11-14  Prasad Ghangal  <prasad.ghangal@gmail.com>
3964             Richard Biener  <rguenther@suse.de>
3966         * doc/invoke.texi (fgimple): Document.
3967         * dumpfile.h (TDF_GIMPLE): Add.
3968         * dumpfile.c (dump_options): Add gimple.
3969         * gimple-pretty-print.c (dump_gimple_switch): Adjust dump
3970         for TDF_GIMPLE.
3971         (dump_gimple_label): Likewise.
3972         (dump_gimple_phi): Likewise.
3973         (dump_gimple_bb_header): Likewise.
3974         (dump_phi_nodes): Likewise.
3975         (pp_cfg_jump): Likewise.  Pass in dump flags.
3976         (dump_implicit_edges): Adjust.
3977         * passes.c (pass_init_dump_file): Do not dump function header
3978         for TDF_GIMPLE.
3979         * tree-cfg.c (dump_function_to_file): Dump function return type
3980         and __GIMPLE keyword for TDF_GIMPLE.  Change guard for dumping
3981         GIMPLE stmts.
3982         * tree-pretty-print.c (dump_decl_name): Adjust dump for TDF_GIMPLE.
3983         (dump_generic_node): Likewise.
3984         * function.h (struct function): Add pass_startwith member.
3985         * passes.c (execute_one_pass): Implement startwith.
3986         * tree-ssanames.c (make_ssa_name_fn): New argument, check for version
3987         and assign proper version for parsed ssa names.
3988         * tree-ssanames.h (make_ssa_name_fn): Add new argument to the function.
3989         * internal-fn.c (expand_PHI): New function.
3990         * internal-fn.h (expand_PHI): Declared here.
3991         * internal-fn.def: New defination for PHI.
3992         * tree-cfg.c (lower_phi_internal_fn): New function.
3993         (build_gimple_cfg): Call it.
3994         (verify_gimple_call): Condition for passing label as arg in internal
3995         function PHI.
3996         * tree-into-ssa.c (rewrite_add_phi_arguments): Handle already
3997         present PHIs with arguments.
3999 2016-11-14  Martin Liska  <mliska@suse.cz>
4001         PR bootstrap/78069
4002         * common.opt: Add prefer-atomic as a new enum value for
4003         -fprofile-update.
4004         * coretypes.h: Likewise.
4005         * doc/invoke.texi: Document the new option value.
4006         * gcc.c: Replace atomic with prefer-atomic.  Remove warning.
4007         * tree-profile.c (tree_profiling): Select default value
4008         of -fprofile-update when 'prefer-atomic' is selected.
4010 2016-11-14  Wilco Dijkstra  <wdijkstr@arm.com>
4012         * config/arm/cortex-a57.md (cortex_a57_alu): Move extend here, bfm...
4013         (cortex_a57_alu_shift): ...here.
4015 2016-11-14  Wilco Dijkstra  <wdijkstr@arm.com>
4017         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3)
4018         Use bfx attribute.
4019         (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
4020         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
4021         (<optab>si3_insn_uxtw): Likewise.
4022         (<optab><mode>3_insn): Likewise.
4023         (<ANY_EXTEND:optab><GPI:mode>_ashl<SHORT:mode>): Likewise.
4024         (zero_extend<GPI:mode>_lshr<SHORT:mode>): Likewise.
4025         (extend<GPI:mode>_ashr<SHORT:mode>): Likewise.
4026         (<optab><mode>): Likewise.
4027         (insv<mode>): Likewise.
4028         (andim_ashift<mode>_bfiz): Likewise.
4029         * config/aarch64/thunderx.md (thunderx_shift): Add bfx.
4030         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
4031         * config/arm/cortex-a57.md (cortex_a57_alu): Add bfx.
4032         * config/arm/exynos-m1.md (exynos_m1_alu): Add bfx.
4033         (exynos_m1_alu_p): Likewise.
4034         * config/arm/types.md: Add bfx.
4035         * config/arm/xgene1.md (xgene1_bfm): Add bfx.
4037 2016-11-14  Wilco Dijkstra  <wdijkstr@arm.com>
4039         * config/aarch64/aarch64.c (cortexa57_vector_cost):
4040         Change vec_stmt_cost, vec_align_load_cost and vec_unalign_load_cost.
4042 2016-11-14  Richard Biener  <rguenther@suse.de>
4044         PR tree-optimization/78312
4045         * gimple-ssa-backprop.c (backprop::prepare_change): Reset
4046         flow-sensitive info.
4048 2016-11-14  Georg-Johann Lay  <avr@gjlay.de>
4050         PR target/78093
4051         * doc/invoke.texi (AVR Options) [-mabsdata]: Document new option.
4052         * config/avr/avr.opt (-mabsdata): New option.
4053         * config/avr/avr-arch.h (avr_device_specific_features): Add AVR_ISA_LDS.
4054         * config/avr/avr.c (avr_encode_section_info) [AVR_TINY]: If
4055         -mabsdata & symbol is not progmem, tag as AVR_SYMBOL_FLAG_TINY_ABSDATA.
4056         * config/avr/avr-mcus.def (attiny4/5/9/10/20): Use AVR_ISA_LDS.
4057         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Print cc1_absdata
4058         spec depending on AVR_ISA_LDS.
4059         * config/avr/specs.h (CC1_SPEC): Enhanced by cc1_absdata spec.
4061 2016-11-13  Jakub Jelinek  <jakub@redhat.com>
4063         * match.pd: Don't try to compare addresses of variables with
4064         DECL_VALUE_EXPR.
4066 2016-11-13  Kugan Vivekanandarajah  <kuganv@linaro.org>
4068         * ipa-cp.c (ipa_get_jf_pass_through_result): Skip unary expressions.
4069         (propagate_vr_accross_jump_function): Handle unary expressions.
4070         * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
4071         (load_from_param_1): New.
4072         (load_from_unmodified_param): Factor common part into load_from_param_1.
4073         (load_from_param): New.
4074         (compute_complex_assign_jump_func): Handle unary expressions.
4075         (update_jump_functions_after_inlining): Likewise.
4076         (ipa_write_jump_function): Likewise.
4077         (ipa_read_jump_function): Likewise.
4079 2016-11-13  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
4081         PR c/35503
4082         * doc/invoke.texi: Document Wrestrict.
4083         * pretty-print.c (pp_format): Add case for "Z" specifier.
4084         (test_pp_format): Test "Z" specifier.
4086 2016-11-13  Eric Botcazou  <ebotcazou@adacore.com>
4088         * ipa-icf.c (sem_function::merge): Do not create a wrapper also if the
4089         original function needs a static chain.
4091 2016-11-13  David Edelsohn  <dje.gcc@gmail.com>
4093         PR target/78336
4094         * config/rs6000/rs6000.c (rs6000_asm_weaken_decl): Protect
4095         ASM_OUTPUT_DEF.
4097 2016-11-12  Segher Boessenkool  <segher@kernel.crashing.org>
4099         PR target/77957
4100         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
4101         return early if !optional_tbtab.
4103 2016-11-11  Eric Botcazou  <ebotcazou@adacore.com>
4105         PR rtl-optimization/59461
4106         * doc/rtl.texi (paradoxical subregs): Add missing word.
4107         * combine.c (reg_nonzero_bits_for_combine): Do not discard results
4108         in modes with precision larger than that of last_set_mode.
4109         * rtlanal.c (nonzero_bits1) <SUBREG>: If WORD_REGISTER_OPERATIONS is
4110         set and LOAD_EXTEND_OP is appropriate, propagate results from inner
4111         REGs to paradoxical SUBREGs.
4112         (num_sign_bit_copies1) <SUBREG>: Likewise.  Check that the mode is not
4113         larger than a word before invoking LOAD_EXTEND_OP on it.
4115 2016-11-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
4117         PR target/78243
4118         * config/rs6000/vsx.md (vsx_extract_<mode>_p9): Correct the
4119         element order for little endian ordering.
4121         * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Use
4122         VECTOR_ELT_ORDER_BIG and not BYTES_BIG_ENDIAN to adjust element
4123         number.
4125 2016-11-11  Uros Bizjak  <ubizjak@gmail.com>
4127         PR target/78310
4128         * config/i386/i386.md (rotate to rotatex splitter): Avoid overflow
4129         when calculating operand 2.
4130         (rotate to rotatex zext splitter): Ditto.
4132 2016-11-11  Jeff Law  <law@redhat.com>
4134         * gimple-ssa-isolate-paths.c (is_divmod_with_given_divisor): New
4135         function.
4136         (stmt_uses_name_in_undefined_way): New function, extracted from
4137         find_implicit_erroneous_behavior and extended for div/mod case.
4138         (stmt_uses_0_or_null_in_undefined_way): New function, extracted from
4139         find_explicit_erroneous_behavior and extended for div/mod case.
4140         (find_implicit_erroneous_behavior): Use new helper function.
4141         (find_explicit_erroneous_behavior): Use new helper function.
4143 2016-11-11  Richard Biener  <rguenther@suse.de>
4145         PR tree-optimization/71575
4146         * graphite-isl-ast-to-gimple.c (copy_cond_phi_nodes): Remove
4147         bogus assert.
4149 2016-11-11  Richard Biener  <rguenther@suse.de>
4151         PR middle-end/78295
4152         * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
4153         about uninitialized destination arg of BIT_INSERT_EXPR.
4155 2016-11-10  Sandra Loosemore  <sandra@codesourcery.com>
4157         PR c/37998
4158         * doc/invoke.texi (Code Gen Options) [-fno-common]: Use correct
4159         terminology.  Expand to remove ambiguity.
4161 2016-11-10  Segher Boessenkool  <segher@kernel.crashing.org>
4163         PR rtl-optimization/78232
4164         * combine.c (try_combine): Add a big comment about why reusing i2dest
4165         is undesirable.
4166         (change_zero_ext): Do not call simplify_gen_binary, do the
4167         simplifications manually.
4169 2016-11-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
4171         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If ISA 3.0,
4172         enable HImode and QImode to go in vector registers by default if
4173         the -mvsx-small-integer option is enabled.
4174         (rs6000_secondary_reload_simple_move): Likewise.
4175         (rs6000_preferred_reload_class): Don't force integer constants to
4176         be loaded into vector registers that we can easily make into
4177         memory (or being created in the GPRs and moved over with direct move).
4178         * config/rs6000/vsx.md (UNSPEC_P9_MEMORY): Delete, no longer used.
4179         (vsx_extract_<mode>): Rework V4SImode, V8HImode, and V16QImode
4180         vector extraction on ISA 3.0 when the scalar integer can be
4181         allocated in vector registers.  Generate the VEC_SELECT directy,
4182         and don't use UNSPEC's to avoid having the scalar type in a vector
4183         register.  Make the expander target registers, and let the
4184         combiner fold in results storing to memory, if the machine
4185         supports stores.
4186         (vsx_extract_<mode>_di): Likewise.
4187         (vsx_extract_<mode>_p9): Likewise.
4188         (vsx_extract_<mode>_di_p9): Likewise.
4189         (vsx_extract_<mode>_store_p9): Likewise.
4190         (vsx_extract_si): Likewise.
4191         (vsx_extract_<mode>_p8): Likewise.
4192         (p9_lxsi<wd>zx): Delete, no longer used.
4193         (p9_stxsi<wd>x): Likewise.
4194         * config/rs6000/rs6000.md (INT_ISA3): New mode iterator for
4195         integers in vector registers for ISA 3.0.
4196         (QHI): Update comment.
4197         (zero_extendqi<mode>2): Add support for ISA 3.0 scalar load or
4198         vector extract instructions in sign/zero extend.
4199         (zero_extendhi<mode>): Likewise.
4200         (extendqi<mode>): Likewise.
4201         (extendhi<mode>2): Likewise.
4202         (HImode splitter for load/sign extend in vector register): Likewise.
4203         (float<QHI:mode><FP_ISA3:mode>2): Eliminate old method of
4204         optimizing floating point conversions to/from small data types and
4205         rewrite it to support QImode/HImode being allowed in vector
4206         registers on ISA 3.0.
4207         (float<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
4208         (floatuns<QHI:mode><FP_ISA3:mode>2): Likewise.
4209         (floatuns<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
4210         (fix_trunc<SFDF:mode><QHI:mode>2): Likewise.
4211         (fix_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
4212         (fixuns_trunc<SFDF:mode><QHI:mode>2): Likewise.
4213         (fixuns_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
4214         VSPLITISW on ISA 2.07.
4215         (movhi_internal): Combine movhi_internal and movqi_internal into
4216         one mov<mode>_internal with an iterator.  Add support for QImode
4217         and HImode being allowed in vector registers.  Make large number
4218         of attributes and constraints easier to read.
4219         (movqi_internal): Likewise.
4220         (mov<mode>_internal): Likewise.
4221         (movdi_internal64): Fix constraint to allow loading -16..15 with
4222         VSPLITISW on ISA 2.07.
4223         (integer XXSPLTIB splitter): Add support for QI, HI, and SImode as
4224         well as DImode.
4226 2016-11-10  Pat Haugen  <pthaugen@us.ibm.com>
4228         PR rtl-optimization/78241
4229         * loop-unroll.c (unroll_loop_runtime_iterations): Don't adjust 'niter',
4230         but emit initial peel copy if niter expr is not reliable.
4232 2016-11-10  Segher Boessenkool  <segher@kernel.crashing.org>
4234         * dwarf2cfi.c (dump_cfi_row): Add forward declaration.
4235         (maybe_record_trace_start): If the CFI is different on the new and
4236         old paths, print out both to the dump file before ICEing.
4238 2016-11-10  Vladimir Makarov  <vmakarov@redhat.com>
4240         * target.def (additional_allocno_class_p): New.
4241         * hooks.h (hook_bool_reg_class_t_false): New prototype.
4242         * hooks.c (hook_bool_reg_class_t_false): New.
4243         * ira.c (setup_allocno_and_important_classes): Use the new hook.
4244         * doc/tm.texi.in (TARGET_ADDITIONAL_ALLOCNO_CLASS_P): Add it.
4245         * doc/tm.texi: Update.
4247 2016-11-10  Jason Merrill  <jason@redhat.com>
4249         * gengtype.c (new_structure): Append to structures list.
4250         (find_structure): Likewise.
4252 2016-11-10  Jim Wilson  <jim.wilson@linaro.org>
4254         * tree-loop-distribution.c (pg_add_dependence_edges): Return 2 if
4255         this_dir is 2.  Check for this_dir non-zero before dir != this_dir
4256         check.
4258 2016-11-10  Jakub Jelinek  <jakub@redhat.com>
4260         * omp-low.c (lower_omp_target): Fix up argument to is_reference.
4261         (expand_omp_ordered_sink): Handle TREE_PURPOSE of deps being
4262         TRUNC_DIV_EXPR.
4263         * gimplify.c (gimplify_scan_omp_clauses): Likewise.  Set
4264         ctx->target_map_scalars_firstprivate on OMP_TARGET even for Fortran.
4265         Remove omp_no_lastprivate callers.  Propagate lastprivate on combined
4266         teams distribute parallel for simd even to distribute and teams
4267         construct.  For OMP_CLAUSE_DEPEND add missing break at the end of
4268         OMP_CLAUSE_DEPEND_SINK case.
4269         (omp_notice_variable): Use lang_hooks.decls.omp_scalar_p.
4270         (omp_no_lastprivate): Removed.
4271         (gimplify_adjust_omp_clauses): Remove omp_no_lastprivate callers.
4272         (gimplify_omp_for): Likewise.
4273         (computable_teams_clause): Fail for automatic vars from current
4274         function not yet seen in bind expr.
4275         * langhooks.c (lhd_omp_scalar_p): New function.
4276         * langhooks.h (struct lang_hooks_for_decls): Add omp_scalar_p.
4277         * varpool.c (varpool_node::get_create): Set node->offloading
4278         even for DECL_EXTERNAL decls.
4279         * langhooks-def.h (lhd_omp_scalar_p): New prototype.
4280         (LANG_HOOKS_OMP_SCALAR_P): Define.
4281         (LANG_HOOKS_DECLS): Use it.
4283 2016-11-10  Martin Liska  <mliska@suse.cz>
4285         PR sanitizer/78270
4286         * gimplify.c (gimplify_switch_expr): Create live_switch_vars
4287         only when SWITCH_BODY is a BIND_EXPR.
4289 2016-11-10  Pierre-Marie de Rodat  <derodat@adacore.com>
4291         PR debug/78112
4292         * dwarf2out.c (dwarf2out_early_global_decl): Call dwarf2out_decl
4293         on the context only when it has no DIE yet.
4295 2016-11-10  Richard Earnshaw  <rearnsha@arm.com>
4297         * arm.h (target_cpus): Delete.
4298         * arm-opts.h (enum processor_type): Prefix entires with TARGET_CPU_.
4299         * arm.c (all_cores): Prefix IDENT with TARGET_CPU_.
4300         (all_architectures): Likewise.
4301         (arm_option_override): Adjust use of CPU enums.
4302         (arm_sched_reorder): Likewise.
4303         * vfp.md (movdi_vfp, movdi_vfp_cortexa8): Likewise.
4304         * arm.opt (mcpu, mtune): Adjust use of CPU enums.
4305         * arm/genopt.sh (processor_type): Prefix enumeration entries with
4306         TARGET_CPU_.
4307         * arm-tables.opt: Regenerated.
4309 2016-11-10  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
4311         * config/aarch64/aarch64-cores.def (qdf24xx): Update part number.
4312         (falkor): New core.
4313         * config/aarch64/aarch64-tune.md: Regenerated.
4314         * config/arm/arm-cores.def (falkor): New core.
4315         * config/arm/arm-tables.opt: Regenerated.
4316         * config/arm/arm-tune.md: Regenerated.
4317         * config/arm/bpabi.h (BE8_LINK_SPEC): Add falkor support.
4318         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
4319         * doc/invoke.texi (AArch64 Options/-mtune): Document it.
4320         (ARM Options/-mtune): Likewise.
4322 2016-11-10  Kugan Vivekanandarajah  <kuganv@linaro.org>
4324         Revert
4325         2016-11-09  Kugan Vivekanandarajah  <kuganv@linaro.org>
4327         * ipa-cp.c (ipa_get_jf_pass_through_result): Handle unary expressions.
4328         (propagate_vr_accross_jump_function): Likewise.
4329         * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
4330         (load_from_param_1): New.
4331         (load_from_unmodified_param): Factor common part into load_from_param_1.
4332         (load_from_param): New.
4333         (compute_complex_assign_jump_func): Handle unary expressions.
4334         (ipa_write_jump_function): Likewise.
4335         (ipa_read_jump_function): Likewise.
4337 2016-11-09  Segher Boessenkool  <segher@kernel.crashing.org>
4339         * simplify-rtx.c (simplify_binary_operation_1): Simplify
4340         (xor (and (xor A B) C) B) to (ior (and A C) (and B ~C)) and
4341         (xor (and (xor A B) C) A) to (ior (and A ~C) (and B C)) if C
4342         is a const_int.
4344 2016-11-09  David Malcolm  <dmalcolm@redhat.com>
4346         * print-rtl-function.c: Include varasm.h.
4347         (print_any_param_name): New function.
4348         (print_param): New function.
4349         (print_rtx_function): Call print_param for each argument.
4350         * print-rtl.c (rtx_writer::finish_directive): New function.
4351         * print-rtl.h (rtx_writer::finish_directive): New decl.
4353 2016-11-09  Uros Bizjak  <ubizjak@gmail.com>
4355         PR target/78262
4356         * config/i386/i386.md (*<shift_insn><mode>3_doubleword): Mark
4357         operand 0 as earlyclobber.
4358         (*ashl<mode>3_doubleword): Ditto for all operand 0 alternatives.
4360 2016-11-09  Martin Liska  <mliska@suse.cz>
4362         * fold-const-call.c (fold_const_call): Fix up type of s0 and s1.
4364 2016-11-09  Jakub Jelinek  <jakub@redhat.com>
4366         PR target/77718
4367         * builtins.c (expand_builtin_memcmp): Formatting fix.
4369         * flag-types.h (enum sanitize_code): Add SANITIZE_SHIFT_BASE
4370         and SANITIZE_SHIFT_EXPONENT, change SANITIZE_SHIFT to bitwise
4371         or of them, renumber other enumerators.
4372         * opts.c (sanitizer_opts): Add shift-base and shift-exponent.
4373         * doc/invoke.texi: Document -fsanitize=shift-base and
4374         -fsanitize-shift-exponent, document -fsanitize=shift as
4375         having those 2 suboptions.
4377 2016-11-09  Richard Biener  <rguenther@suse.de>
4379         * fold-const.c (tree_swap_operands_p): Remove unused arg.
4380         * fold-const.c (tree_swap_operands_p): Likewise.
4381         (fold_binary_loc): Adjust.
4382         (fold_ternary_loc): Likewise.
4383         * genmatch.c (dt_operand::gen_gimple_exp): Likewise.
4384         * gimple-fold.c (fold_stmt_1): Likewise.
4385         * gimple-match-head.c (gimple_resimplify2): Likewise.
4386         (gimple_resimplify3): Likewise.
4387         (gimple_simplify): Likewise.
4388         * tree-ssa-dom.c (record_equality): Likewise.
4389         * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Likewise.
4390         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
4391         * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): Likewise.
4393 2016-11-09  Richard Biener  <rguenther@suse.de>
4395         * tree-ssa-dom.c (canonicalize_comparison): Remove.
4396         (optimize_stmt): Remove redundant pre-propagation canonicalization
4397         of comparison operand order.
4399 2016-11-09  Martin Liska  <mliska@suse.cz>
4401         * fold-const-call.c (fold_const_call): Fix the folding.
4403 2016-11-09  Richard Biener  <rguenther@suse.de>
4405         * common.opt (flag_evaluation_order): Remove.
4406         * expr.c (expand_operands): Remove code guarded by
4407         flag_evaluation_order.
4408         * fold-const.c (reorder_operands_p): Remove, it always returns
4409         true.
4410         (negate_expr_p): Remove calls to reorder_operands_p.
4411         (fold_negate_expr): Likewise.
4412         (tree_swap_operands_p): Likewise.
4413         (fold_binary_loc): Likewise.
4415 2016-11-09  Andreas Schwab  <schwab@suse.de>
4417         PR target/78254
4418         * config/m68k/m68k.md: Reject out-of-range bit pos in bit-fields
4419         insns operating on a register.
4421 2016-11-09  Richard Biener  <rguenther@suse.de>
4423         PR tree-optimization/78007
4424         * tree-vect-stmts.c (vectorizable_bswap): New function.
4425         (vectorizable_call): Call vectorizable_bswap for
4426         BUILT_IN_BSWAP{16,32,64} if arguments are not promoted.
4428 2016-11-09  Richard Biener  <rguenther@suse.de>
4430         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
4431         Look at the DR_BASE_ADDRESS object for forcing alignment.
4433 2016-11-09  Kugan Vivekanandarajah  <kuganv@linaro.org>
4435         * ipa-cp.c (ipa_get_jf_pass_through_result): Handle unary expressions.
4436         (propagate_vr_accross_jump_function): Likewise.
4437         * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
4438         (load_from_param_1): New.
4439         (load_from_unmodified_param): Factor common part into load_from_param_1.
4440         (load_from_param): New.
4441         (compute_complex_assign_jump_func): Handle unary expressions.
4442         (ipa_write_jump_function): Likewise.
4443         (ipa_read_jump_function): Likewise.
4445 2016-11-09  Kugan Vivekanandarajah  <kuganv@linaro.org>
4447         PR ipa/78121
4448         * ipa-cp.c (propagate_vr_accross_jump_function): Pass param type.
4449         Also fold constant passed as argument while computing value range.
4450         (propagate_constants_accross_call): Pass param type.
4451         * ipa-prop.c: export ipa_get_callee_param_type.
4452         * ipa-prop.h: export ipa_get_callee_param_type.
4454 2016-11-09  Maxim Ostapenko  <m.ostapenko@samsung.com>
4456         * asan.h (asan_intercepted_p): Handle BUILT_IN_STRCSPN,
4457         BUILT_IN_STRPBRK, BUILT_IN_STRSPN and BUILT_IN_STRSTR.
4459 2016-11-09  Maxim Ostapenko  <m.ostapenko@samsung.com>
4461         * asan.h (ASAN_STACK_MAGIC_PARTIAL): Remove.
4462         * asan.c (ASAN_STACK_MAGIC_PARTIAL): Replace with
4463         ASAN_STACK_MAGIC_MIDDLE.
4464         (asan_global_struct): Increase the size of fields.
4465         (asan_add_global): Add new field constructor.
4466         * sanitizer.def (__asan_version_mismatch_check_v6): Replace with
4467         __asan_version_mismatch_check_v8.
4469 2016-11-08  David Edelsohn  <dje.gcc@gmail.com>
4471         * dwarf2asm.c (USE_LINKONCE_INDIRECT): Test XCOFF_DEBUGGING_INFO
4472         at runtime.
4474 2016-11-08  Uros Bizjak  <ubizjak@gmail.com>
4476         PR target/70799
4477         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
4478         Handle ASHIFT and LSHIFTRT.
4479         (dimode_scalar_chain::compute_convert_gain): Ditto.
4480         (dimode_scalar_chain::convert_insn): Ditto.
4482 2016-11-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4484         * gimple-ssa-store-merging.c: Include selftest.h
4485         (verify_array_eq): New function.
4486         (verify_shift_bytes_in_array): Likewise.
4487         (verify_shift_bytes_in_array_right): Likewise.
4488         (verify_clear_bit_region): Likewise.
4489         (verify_clear_bit_region_be): Likewise.
4490         (store_merging_c_tests): Likewise.
4491         * selftest.h (store_merging_c_tests): Declare prototype.
4492         * selftest-run-tests.c (selftest::run_tests): Run
4493         store_merging_c_tests.
4495 2016-11-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4497         * config/arm/arm.opt (mold-rtx-costs): Delete.
4498         (mnew-generic-costs): Delete.
4499         * config/arm/arm-protos.h (struct tune_params): Delete rtx_costs field.
4500         * config/arm/arm.c (arm_rtx_costs_1): Delete.
4501         (arm_size_rtx_costs): Likewise.
4502         (arm_slowmul_rtx_costs): Likewise.
4503         (arm_fastmul_rtx_costs): Likewise.
4504         (arm_xscale_rtx_costs): Likewise.
4505         (arm_9e_rtx_costs): Likewise.
4506         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
4507         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
4508         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
4509         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
4510         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
4511         arm_cortex_a5_tune, arm_xgene1_tune, arm_marvell_pj4_tune,
4512         arm_cortex_a35_tune, arm_exynosm1_tune, arm_cortex_a73_tune,
4513         arm_cortex_m7_tune):
4514         Delete rtx_costs field.
4515         (arm_new_rtx_costs): Rename to...
4516         (arm_rtx_costs_internal): ... This.
4517         (arm_rtx_costs): Remove old way of doing rtx costs.
4519 2016-11-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4521         * config/arm/arm.c (arm_slowmul_tune): Use generic_extra_costs.
4522         (arm_fastmul_tune): Likewise.
4523         (arm_strongarm_tune): Likewise.
4524         (arm_xscale_tune): Likewise.
4525         (arm_9e_tune): Likewise.
4526         (arm_marvell_pj4_tune): Likewise.
4527         (arm_v6t2_tune): Likewise.
4528         (arm_v6m_tune): Likewise.
4529         (arm_fa726te_tune): Likewise.
4531 2016-11-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4533         PR tree-optimization/78234
4534         * gimple-ssa-store-merging.c (clear_bit_region): Fix off-by-one error
4535         in start != 0 case.
4537 2016-11-08  Martin Liska  <mliska@suse.cz>
4539         PR testsuite/78242
4540         * dbgcnt.def: Add new debug counter asan_use_after_scope.
4541         * gimplify.c (gimplify_decl_expr): Do not sanitize vars
4542         with a value expr.  Do not add artificial variables to
4543         live_switch_vars.  Use the debug counter.
4544         (gimplify_target_expr): Use the debug counter.
4545         * internal-fn.def: Remove ECF_TM_PURE from ASAN_MARK builtin.
4546         * sanitizer.def: Set ATTR_NOTHROW_LEAF_LIST to
4547         BUILT_IN_ASAN_CLOBBER_N and BUILT_IN_ASAN_UNCLOBBER_N.
4549 2016-11-08  Richard Biener  <rguenther@suse.de>
4551         * tree-vect-stmts.c (get_group_load_store_type): If the
4552         access is aligned do not trigger peeling for gaps.
4553         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
4554         force alignment of vars with DECL_USER_ALIGN.
4556 2016-11-08  James Greenhalgh  <james.greenhalgh@arm.com>
4558         * config/aarch64/t-aarch64 (aarch64-c.o): Depend on TARGET_H.
4560 2016-11-08  Richard Biener  <rguenther@suse.de>
4562         PR tree-optimization/78205
4563         * tree-vect-stmts.c (vectorizable_load): Move check whether
4564         we may run into gaps when BB vectorizing SLP permutations ...
4565         * tree-vect-slp.c (vect_supported_load_permutation_p): ...
4566         here where we can do a more precise check.
4568 2016-11-08  Richard Biener  <rguenther@suse.de>
4570         PR tree-optimization/78224
4571         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
4572         Split the fallthru edge in case its successor may have PHIs.
4573         Do not free dominance info.
4575 2016-11-07  Jakub Jelinek  <jakub@redhat.com>
4577         PR target/78229
4578         * config/i386/i386.c (ix86_gimple_fold_builtin): Do not adjust
4579         EH info even for bzhi and pdep/pext.
4581 2016-11-07  Peter Bergner  <bergner@vnet.ibm.com>
4583         * config.gcc (powerpc*-*-*, rs6000*-*-*): Remove setting of
4584         INCLUDE_EXTRA_SPEC for Advance Toolchain builds.
4586 2016-11-07  Segher Boessenkool  <segher@kernel.crashing.org>
4588         * config/rs6000/rs6000.md (div<mode>3): Expand using rs6000_emit_swdiv
4589         if appropriate.
4590         * config/rs6000/vector.md (div<mode>3): Ditto.
4592 2016-11-07  David Edelsohn  <dje.gcc@gmail.com>
4594         * configure.ac (.hidden): Change to conftest_s string. Provide string
4595         for AIX assembler.
4596         (gcc_cv_ld_hidden): Yes for AIX.
4597         * configure: Regenerate.
4599         * dwarf2asm.c (USE_LINKONCE_INDIRECT): Don't set for AIX (XCOFF).
4601         * config/rs6000/rs6000-protos.h (rs6000_asm_weaken_decl): Declare
4602         (rs6000_xcoff_asm_output_aligned_decl_common): Declare.
4603         * config/rs6000/xcoff.h (TARGET_ASM_GLOBALIZE_DECL_NAME): Define.
4604         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
4605         (ASM_OUTPUT_ALIGNED_COMMON): Delete.
4606         * config/rs6000/rs6000.c (rs6000_init_builtins): Change clog rename
4607         from #if to if.
4608         (rs6000_xcoff_visibility): New.
4609         (rs6000_xcoff_declare_function_name): Add visibility support.
4610         (rs6000_xcoff_asm_globalize_decl_name): New.
4611         (rs6000_xcoff_asm_output_aligned_decl_common): New.
4612         (rs6000_asm_weaken_decl): New.
4613         (rs6000_code_end): Disable HIDDEN_LINKONCE on XCOFF.
4614         config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Change definition to
4615         reference function.
4617 2016-11-07  Jack Howarth  <howarth.at.gcc@gmail.com>
4619         PR driver/78206
4620         * incpath.c (remove_dup): Also silently ignore EPERM.
4622 2016-11-07  Martin Jambor  <mjambor@suse.cz>
4624         * tree.c (verify_type_variant): Use pointer comparison to check that
4625         TYPE_SIZE_UNIT match.
4627 2016-11-07  Jakub Jelinek  <jakub@redhat.com>
4629         PR target/77834
4630         * dse.c (dse_step5): Call scan_reads even if just
4631         insn_info->frame_read.  Improve and fix dump file messages.
4633         PR target/78227
4634         * config/i386/i386.c (ix86_expand_sse_cmp): Force dest into
4635         cmp_mode argument even for -O0 if cmp_mode != mode and maskcmp.
4637 2016-11-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
4639         PR middle-end/35691
4640         * match.pd: Add following two patterns:
4641         (x == 0 & y == 0) -> (x | typeof(x)(y)) == 0.
4642         (x != 0 | y != 0) -> (x | typeof(x)(y)) != 0.
4644 2016-11-07  Bernd Schmidt  <bschmidt@redhat.com>
4646         * emit-rtl.c (emit_copy_of_insn_after): Duplicate notes in order.
4647         * sel-sched-ir.c (create_copy_of_insn_rtx): Likewise.
4648         * rtl.h (duplicate_reg_notes): Declare.
4649         * rtlanal.c (duplicate_reg_note): New function.
4651         PR rtl-optimization/77309
4652         * combine.c (make_compound_operation): Allow EQ for IN_CODE, and
4653         don't assume an equality comparison for plain COMPARE.
4654         (simplify_comparison): Pass a more accurate code to
4655         make_compound_operation.
4657 2016-11-07  Pat Haugen  <pthaugen@us.ibm.com>
4659         * target.def (compute_pressure_classes): New target hook.
4660         * doc/tm.texi.in: Document it.
4661         * doc/tm.texi: Regenerate.
4662         * ira.c (setup_pressure_classes): Call target hook if defined.
4664 2016-11-07  David Malcolm  <dmalcolm@redhat.com>
4666         * print-rtl.c (rtx_writer::operand_has_default_value_p): New
4667         method.
4668         (rtx_writer::print_rtx): In compact mode, omit trailing operands
4669         that have the default values.
4670         * print-rtl.h (rtx_writer::operand_has_default_value_p): New
4671         method.
4672         * rtl-tests.c (selftest::test_dumping_insns): Remove empty
4673         label string from expected dump.
4674         (seltest::test_uncond_jump): Remove trailing "(nil)" for REG_NOTES
4675         from expected dump.
4677 2016-11-07  Jakub Jelinek  <jakub@redhat.com>
4679         PR target/77834
4680         * alias.c (nonoverlapping_memrefs_p): If one decl is
4681         FUNCTION_DECL or LABEL_DECL and the other is not, return 1.
4683 2016-11-07  Richard Biener  <rguenther@suse.de>
4685         PR target/78229
4686         * config/i386/i386.c (ix86_gimple_fold_builtin): Do not adjust
4687         EH info.
4689 2016-11-07  Richard Biener  <rguenther@suse.de>
4691         PR tree-optimization/78218
4692         * gimple-ssa-store-merging.c
4693         (pass_store_merging::terminate_all_aliasing_chains):
4694         Drop unused argument, fix alias check to also consider uses.
4695         (pass_store_merging::execute): Adjust.
4697 2016-11-07  Richard Biener  <rguenther@suse.de>
4699         PR tree-optimization/78228
4700         * tree-ssa-phiopt.c (abs_replacement): Avoid introducing
4701         undefined behavior.
4703 2016-11-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4705         PR target/77822
4706         * config/aarch64/aarch64.md (*tb<optab><mode>1): Use
4707         aarch64_simd_shift_imm_<mode> predicate for operand 1.
4708         (<optab>, ANY_EXTRACT): Use tighter predicates on operands 2 and 3
4709         to restrict them to an appropriate range and add FAIL check if the
4710         region they specify is out of range.  Delete useless constraint
4711         strings.
4712         (*<optab><mode>, ANY_EXTRACT): Add appropriate predicates on operands
4713         2 and 3 to restrict their range and add pattern predicate.
4715 2016-11-07  Martin Liska  <mliska@suse.cz>
4717         * asan.c (enum asan_check_flags): Move the enum to header file.
4718         (asan_init_shadow_ptr_types): Make type creation more generic.
4719         (shadow_mem_size): New function.
4720         (asan_emit_stack_protection): Use newly added ASAN_SHADOW_GRANULARITY.
4721         Rewritten stack unpoisoning code.
4722         (build_shadow_mem_access): Add new argument return_address.
4723         (instrument_derefs): Instrument local variables if use after scope
4724         sanitization is enabled.
4725         (asan_store_shadow_bytes): New function.
4726         (asan_expand_mark_ifn): Likewise.
4727         (asan_sanitize_stack_p): Moved from asan_sanitize_stack_p.
4728         * asan.h (enum asan_mark_flags): Moved here from asan.c
4729         (asan_protect_stack_decl): Protect all declaration that need
4730         to live in memory.
4731         (asan_sanitize_use_after_scope): New function.
4732         (asan_no_sanitize_address_p): Likewise.
4733         * cfgexpand.c (partition_stack_vars): Consider
4734         asan_sanitize_use_after_scope in condition.
4735         (expand_stack_vars): Likewise.
4736         * common.opt (-fsanitize-address-use-after-scope): New option.
4737         * doc/invoke.texi (use-after-scope-direct-emission-threshold):
4738         Explain the parameter.
4739         * flag-types.h (enum sanitize_code): Define SANITIZE_USE_AFTER_SCOPE.
4740         * gimplify.c (build_asan_poison_call_expr): New function.
4741         (asan_poison_variable): Likewise.
4742         (gimplify_bind_expr): Generate poisoning/unpoisoning for local
4743         variables that have address taken.
4744         (gimplify_decl_expr): Likewise.
4745         (gimplify_target_expr): Likewise for C++ temporaries.
4746         (sort_by_decl_uid): New function.
4747         (gimplify_expr): Unpoison all variables for a label we can jump
4748         from outside of a scope.
4749         (gimplify_switch_expr): Unpoison variables defined in the switch
4750         context.
4751         (gimplify_function_tree): Clear asan_poisoned_variables.
4752         (asan_poison_variables): New function.
4753         (warn_switch_unreachable_r): Handle IFN_ASAN_MARK.
4754         * internal-fn.c (expand_ASAN_MARK): New function.
4755         * internal-fn.def (ASAN_MARK): Declare.
4756         * opts.c (finish_options): Handle -fstack-reuse if
4757         -fsanitize-address-use-after-scope is enabled.
4758         (common_handle_option): Enable address sanitization if
4759         -fsanitize-address-use-after-scope is enabled.
4760         * params.def (PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD):
4761         New parameter.
4762         * params.h: Likewise.
4763         * sancov.c (pass_sanopt::execute): Handle IFN_ASAN_MARK.
4764         * sanitizer.def: Define __asan_poison_stack_memory and
4765         __asan_unpoison_stack_memory functions.
4766         * asan.c (asan_mark_poison_p): New function.
4767         (transform_statements): Handle asan_mark_poison_p calls.
4768         * gimple.c (nonfreeing_call_p): Handle IFN_ASAN_MARK.
4770 2016-11-07  Tamar Christina  <tamar.christina@arm.com>
4772         PR driver/78196
4773         * Makefile.in (SELFTEST_FLAGS): Added -o /dev/null.
4775 2016-11-07  Martin Liska  <mliska@suse.cz>
4777         * tree-profile.c (gimple_gen_time_profiler): Set proper type
4778         to time_profiler_counter_ptr.
4780 2016-11-07  Richard Biener  <rguenther@suse.de>
4782         PR tree-optimization/37150
4783         * tree-vectorizer.h (vect_transform_slp_perm_load): Add n_perms
4784         parameter.
4785         * tree-vect-slp.c (vect_supported_load_permutation_p): Adjust.
4786         (vect_analyze_slp_cost_1): Account for the real number of
4787         permutations emitted and for dead loads.
4788         (vect_transform_slp_perm_load): Add n_perms parameter counting
4789         the number of emitted permutations.
4790         * tree-vect-stmts.c (vectorizable_load): Adjust.
4792 2016-11-07  Richard Biener  <rguenther@suse.de>
4794         PR tree-optimization/78189
4795         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Fix
4796         alignment computation.
4798 2016-11-06  Kugan Vivekanandarajah  <kuganv@linaro.org>
4800         * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove unreachable code.
4802 2016-11-05  Martin Sebor  <msebor@redhat.com>
4804         * doc/invoke.texi (Warning Options): Correct typos in -Walloca
4805         documentation.
4807 2016-11-05  David Edelsohn  <dje.gcc@gmail.com>
4809         PR bootstrap/78188
4810         PR c++/71848
4811         * ipa-comdats.c (pass_ipa_comdats::gate): Require HAVE_COMDAT_GROUP.
4813 2016-11-04  Jakub Jelinek  <jakub@redhat.com>
4815         PR target/77834
4816         * alias.c (nonoverlapping_memrefs_p): Return 0 if exprx or expry
4817         doesn't have rtl set.
4819 2016-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4821         * config/rs6000/rs6000.c (gimple-ssa.h): New #include.
4822         (TARGET_GIMPLE_FOLD_BUILTIN): Define as
4823         rs6000_gimple_fold_builtin.
4824         (rs6000_gimple_fold_builtin): New function.  Add handling for
4825         early expansion of vector addition builtins.
4827 2016-11-04  Eric Botcazou  <ebotcazou@adacore.com>
4829         * expr.h (copy_blkmode_from_reg): Delete.
4830         * expr.c (copy_blkmode_from_reg): Make static.
4832 2016-11-04  Eric Botcazou  <ebotcazou@adacore.com>
4834         * defaults.h (LOAD_EXTEND_OP): Define if not already defined.
4835         * combine.c (LOAD_EXTEND_OP): Delete.
4836         (simplify_comparison): Fix comment about LOAD_EXTEND_OP.
4837         * cse.c (LOAD_EXTEND_OP): Delete.
4838         * fold-const.c (LOAD_EXTEND_OP): Likewise.
4839         * fwprop.c (free_load_extend): Remove #ifdef LOAD_EXTEND_OP/#endif.
4840         * postreload.c (LOAD_EXTEND_OP): Delete.
4841         * reload.c (push_reload): Remove #ifdef LOAD_EXTEND_OP/#endif.
4842         Convert conditional compilation based on WORD_REGISTER_OPERATIONS.
4843         (find_reloads): Likewise.
4844         * reload1.c (eliminate_regs_1): Likewise.
4845         * rtlanal.c (nonzero_bits1): Remove #ifdef LOAD_EXTEND_OP/#endif.
4846         (num_sign_bit_copies1): Likewise.
4848 2016-11-04  David Malcolm  <dmalcolm@redhat.com>
4850         * config/i386/i386.c: Include "selftest.h" and "selftest-rtl.h".
4851         (selftest::ix86_test_dumping_hard_regs): New function.
4852         (selftest::ix86_run_selftests): New function.
4853         (TARGET_RUN_TARGET_SELFTESTS): When CHECKING_P, wire this up to
4854         selftest::ix86_run_selftests.
4855         * doc/tm.texi.in (TARGET_RUN_TARGET_SELFTESTS): New.
4856         * doc/tm.texi: Regenerate
4857         * selftest-rtl.h: New file.
4858         * rtl-tests.c: Include "selftest-rtl.h".
4859         (selftest::assert_rtl_dump_eq): Make non-static.
4860         (ASSERT_RTL_DUMP_EQ): Move to selftest-rtl.h.
4861         (selftest::test_dumping_regs): Update comment.
4862         * selftest-run-tests.c: Include "target.h".
4863         (selftest::run_tests): If non-NULL, call
4864         targetm.run_target_selftests.
4865         * target.def (run_target_selftests): New hook.
4867 2016-11-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4869         * config/arm/arm-arches.def (armv8-m.main+dsp): Set Cortex-M33 as
4870         representative core for this architecture.
4871         * config/arm/arm-cores.def (cortex-m33): Define new processor.
4872         * config/arm/arm-tables.opt: Regenerate.
4873         * config/arm/arm-tune.md: Likewise.
4874         * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex-M33 to the list of
4875         valid -mcpu options.
4876         * doc/invoke.texi (ARM Options): Document new Cortex-M33 processor.
4878 2016-11-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4880         * config/arm/arm-arches.def (armv8-m.base): Set Cortex-M23 as
4881         representative core for this architecture.
4882         * config/arm/arm-cores.def (cortex-m23): Define new processor.
4883         * config/arm/arm-tables.opt: Regenerate.
4884         * config/arm/arm-tune.md: Likewise.
4885         * config/arm/arm.c (arm_v6m_tune): Add Cortex-M23 to the list of cores
4886         this tuning parameters apply to in the comment.
4887         * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex-M23 to the list of
4888         valid -mcpu options.
4889         * doc/invoke.texi (ARM Options): Document new Cortex-M23 processor.
4891 2016-11-04  Bin Cheng  <bin.cheng@arm.com>
4893         * fold-const.c (fold_cond_expr_with_comparison): Remove call
4894         to pedantic_non_lvalue_loc.  Remove useless code for lvalue
4895         where cond_expr can't be a lvalue.
4897 2016-11-04  Claudiu Zissulescu  <claziss@synopsys.com>
4899         * config/arc/arc.c (arc_process_double_reg_moves): Use
4900         gen_dexcl_2op call.
4901         * config/arc/arc.md (movsi_insn): Disable unsupported move
4902         instructions for ARCv2 cores.
4903         (movdi): Use prepare_move_operands.
4904         (movsf, movdf): Use move_dest_operand predicate.
4905         * config/arc/constraints.md (Chs): Enable when barrel shifter is
4906         present.
4907         * config/arc/fpu.md (divsf3): Change to divsf3_fpu.
4908         * config/arc/fpx.md (dexcl_3op_peep2_insn): Dx data register is
4909         also a destination.
4910         (dexcl_3op_peep2_insn_nores): Likewise.
4911         * config/arc/arc.h (SHIFT_COUNT_TRUNCATED): Define to one.
4912         (LINK_COMMAND_SPEC): Remove.
4914 2016-11-04  Richard Biener  <rguenther@suse.de>
4916         PR middle-end/78185
4917         * loop-invariant.c (find_exits): Record entering inner
4918         loops as possibly exiting to handle infinite sub-loops.
4919         * tree-ssa-loop-im.c: Include tree-ssa-loop-niter.h.
4920         (fill_always_executed_in_1): Honor infinite child loops.
4922 2016-11-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
4924         PR target/78192
4925         * config/rs6000/vsx.md (vsx_extract_<mode>_di): The element number
4926         has already been adjusted for endianness, so don't adjust it any
4927         further.
4929         PR target/77993
4930         * config/rs6000/rs6000.h (FLOAT128_IBM_P): Do not allow IFmode or
4931         ICmode unless we have standard PowerPC floating point.
4932         * config/rs6000/rs6000.md (FP iterator): Likewise.
4933         (FMOVE128 iterator): Likewise.
4935 2016-11-03  Jakub Jelinek  <jakub@redhat.com>
4936             Alexandre Oliva  <aoliva@redhat.com>
4937             Jason Merrill  <jason@redhat.com>
4939         PR debug/28767
4940         PR debug/56974
4941         * langhooks.h (struct lang_hooks_for_types): Add type_dwarf_attribute
4942         langhook.
4943         * langhooks.c (lhd_type_dwarf_attribute): New function.
4944         * langhooks-def.h (lhd_type_dwarf_attribute): Declare.
4945         (LANG_HOOKS_TYPE_DWARF_ATTRIBUTE): Define.
4946         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add
4947         LANG_HOOKS_TYPE_DWARF_ATTRIBUTE.
4948         (check_qualified_type, check_aligned_type): Call it.
4949         * dwarf2out.c (modified_type_die): Don't use type_main_variant
4950         for FUNCTION_TYPE or METHOD_TYPE, instead walk over variants with
4951         check_base_type and check_lang_type.
4952         (gen_ptr_to_mbr_type_die): If lookup_type_die is already non-NULL,
4953         return early.  For pointer-to-data-member add DW_AT_use_location
4954         attribute.
4955         (gen_subroutine_type_die): Add DW_AT_{,rvalue_}reference attribute
4956         if needed.
4957         (gen_type_die_with_usage): Don't use type_main_variant
4958         for FUNCTION_TYPE or METHOD_TYPE, instead walk over variants with
4959         check_base_type and check_lang_type.  Formatting fixes. Call
4960         get_debug_type langhook.
4962 2016-11-03  Jason Merrill  <jason@redhat.com>
4964         * tree.c (check_lang_type): New.
4965         (check_qualified_type): Use it.
4966         (check_aligned_type): Use it.
4967         * tree.h: Declare it.
4969 2016-11-03  Richard Earnshaw  <rearnsha@arm.com>
4971         * config.gcc (arm-wrs-vxworks): Set target_cpu_cname.
4972         (arm*-freebsd*): Likewise.
4973         (arm*-*-netbsdelf*): Likewise.
4974         (arm*-*-linux*): Likewise.
4975         (arm*-*-uclinux*eabi*): Likewise.
4976         (arm*-*-phoenix*): Likewise.
4977         (arm*-*-eabi*, arm*-*-symbianelf*, arm*-*-rtems*): Likewise.
4978         (arm*-*-*): Don't clobber target_cpu_cname when --with-cpu is not
4979         specified.  Default to arm6 if target_cpu_cname is not set.
4980         * arm/arm.c (arm_option_override): Simplify logic.  Assert that the
4981         default cpu has been correctly configured.
4982         * arm/arm.h (TARGET_CPU_DEFAULT): Delete.
4983         (target_cpus): Delete TARGET_CPU_generic, add TARGET_CPU_num_cores.
4984         * arm/freebsd.h (SUBTARGET_CPU_DEFAULT): Delete.
4985         * arm/linux-eabi.h (SUBTARGET_CPU_DEFAULT): Delete.
4986         * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Delete.
4987         * arm/symbian.h (SUBTARGET_CPU_DEFAULT): Delete.
4988         * arm/unknown-elf.h (SUBTARGET_CPU_DEFAULT): Delete.
4990 2016-11-03  Jiong Wang  <jiong.wang@arm.com>
4992         * reg-notes.def (CFA_VAL_EXPRESSION): New entry.
4993         * dwarf2cfi.c (dwarf2out_frame_debug_cfa_val_expression): New function.
4994         (dwarf2out_frame_debug): Support REG_CFA_VAL_EXPRESSION.
4995         (output_cfa_loc): Support DW_CFA_val_expression.
4996         (output_cfa_loc_raw): Likewise.
4997         (output_cfi): Likewise.
4998         (output_cfi_directive): Likewise.
4999         * dwarf2out.c (dw_cfi_oprnd1_desc): Support DW_CFA_val_expression.
5000         (dw_cfi_oprnd2_desc): Likewise.
5001         (mem_loc_descriptor): Recognize new pattern generated for value
5002         expression.
5004 2016-11-03  Segher Boessenkool  <segher@kernel.crashing.org>
5006         PR rtl-optimization/78186
5007         * combine.c (change_zero_ext): Mask the RHS of a zero_extract as
5008         well, when converting to IOR.
5010 2016-11-03  Eric Botcazou  <ebotcazou@adacore.com>
5012         * config/sparc/sparc.md (vec_interleave_lowv8qi): Delete.
5013         (vec_interleave_highv8qi): Likewise.
5015 2016-11-03  Martin Liska  <mliska@suse.cz>
5017         * profile.c (instrument_values): Fix coding style.
5018         (branch_prob): Use renamed function.
5019         * tree-profile.c (init_ic_make_global_vars): Likewise.
5020         (gimple_init_edge_profiler): Rename to
5021         gimple_init_gcov_profiler.
5022         tree_time_profiler_counter variable declaration.
5023         (gimple_gen_time_profiler): Rewrite to do a direct gimple code
5024         emission.
5025         * value-prof.h: Remove an argument.
5027 2016-11-03  Richard Biener  <rguenther@suse.de>
5029         * config/rs6000/rs6000.c (rs6000_xcoff_declare_object_name): Use
5030         symtab_node::get_create.
5032 2016-11-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5034         * rtlanal.c (nonzero_bits1): Fix WORD_REGISTER_OPERATIONS condition.
5035         Move comments into more natural position.
5037 2016-11-03  Vineet Gupta  <vgupta@synopsys.com>
5039         * config/arc/arc.h (SIZE_TYPE): Define as unsigned int.
5040         (PTRDIFF_TYPE): Define as int.
5042 2016-11-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5044         * ccmp.c (expand_ccmp_expr_1): Adjust.
5045         (expand_ccmp_expr): Likewise.
5046         (expand_ccmp_next): Likewise.
5047         * config/aarch64/aarch64.c (aarch64_gen_ccmp_next): Likewise.
5048         (aarch64_gen_ccmp_first): Likewise.
5049         * doc/tm.texi: Regenerate.
5050         * target.def (gen_ccmp_first): Change argument types to rtx_insn *.
5051         (gen_ccmp_next): Likewise.
5053 2016-11-03  Bin Cheng  <bin.cheng@arm.com>
5055         * tree-vect-loop.c (destroy_loop_vec_info): Handle cond_expr.
5056         (vect_is_simple_reduction): Swap cond_reduction by inversion.
5058 2016-11-02  Uros Bizjak  <ubizjak@gmail.com>
5060         * config/i386/i386.c (ix86_init_libfuncs): New.  Call
5061         darwin_rename_builtins here.
5062         (ix86_expand_divmod_libfunc): New.
5063         (TARGET_INIT_LIBFUNCS): Unconditionally define to ix86_init_libfuncs.
5064         (TARGET_EXPAND_DIVMOD_LIBFUNC): Define.
5066 2016-11-02  Cesar Philippidis  <cesar@codesourcery.com>
5067             Nathan Sidwell  <nathan@acm.org>
5069         * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): Set to zero.
5071 2016-11-02  Max Filippov  <jcmvbkbc@gmail.com>
5073         * config/xtensa/xtensa.c (xtensa_output_integer_literal_parts):
5074         New function.
5075         (xtensa_output_literal): Use xtensa_output_integer_literal_parts
5076         to format MODE_INT and MODE_PARTIAL_INT literals.
5078 2016-11-02  Segher Boessenkool  <segher@kernel.crashing.org>
5080         PR target/78168
5081         * config/r6000/rs6000.c (rs6000_get_separate_components): Return
5082         NULL if TARGET_SPE_ABI.
5084 2016-11-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5086         * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Don't forget to
5087         clear padding bits even when they're less than a byte.
5089 2016-11-02  Richard Biener  <rguenther@suse.de>
5091         * gimple-ssa-store-merging.c: Include gimplify-me.h.
5092         (imm_store_chain_info::output_merged_stores): Force base_addr
5093         to be proper GIMPLE for a MEM_REF address.
5094         (pass_store_merging::execute): Restrict negative bitpos
5095         handling to non-MEM_REF bases.  Remove TREE_THIS_VOLATILE
5096         check.  Take into account non-NULL_TREE offset if the base
5097         is already addressable.
5099 2016-11-26  Wilco Dijkstra  <wdijkstr@arm.com>
5101         * config/aarch64/aarch64-simd.md (aarch64_crypto_sha1hv4si):
5102         New pattern.
5103         (aarch64_be_crypto_sha1hv4si): New pattern.
5105 2016-11-02  Wilco Dijkstra  <wdijkstr@arm.com>
5107         * config/aarch64/aarch64.md (add<mode>3): Remove
5108         redundant code.  Don't split frame based additions.
5110 2016-11-02  Richard Biener  <rguenther@suse.de>
5112         * gimple-ssa-store-merging.c (struct store_immediate_info): Remove
5113         redundant val and dest members.
5114         (store_immediate_info::store_immediate_info): Adjust.
5115         (merged_store_group::merged_store_group): Adjust.
5116         (merged_store_group::apply_stores): Likewise.
5117         (struct imm_store_chain_info): Add base_addr field.
5118         (imm_store_chain_info::imm_store_chain_info): New constructor.
5119         (imm_store_chain_info::terminate_and_process_chain): Do not pass base.
5120         (imm_store_chain_info::output_merged_store): Likewise.  Use
5121         addr_base which is already the address.
5122         (imm_store_chain_info::output_merged_stores): Likewise.
5123         (pass_tree_store_merging::terminate_all_aliasing_chains): Take
5124         imm_store_chain_info instead of base.  Fix alias check.
5125         (pass_tree_store_merging::terminate_and_release_chain): Likewise.
5126         (imm_store_chain_info::coalesce_immediate_stores): Adjust.
5127         (pass_store_merging::execute): Refuse to operate on TARGET_MEM_REF.
5128         use the address of the base and adjust for other changes.
5130 2016-11-02  Martin Liska  <mliska@suse.cz>
5132         * fold-const-call.c (host_size_t_cst_p): Test whether
5133         t is convertible to size_t.
5135 2016-11-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5137         PR tree-optimization/78170
5138         * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Truncate padding
5139         introduced by native_encode_expr on little-endian as well.
5141 2016-11-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5143         PR tree-optimization/78162
5144         * gimple-ssa-store-merging.c (execute): Mark stores with bitpos < 0
5145         as invalid.
5147 2016-11-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5149         * config/aarch64/aarch64.c (aarch64_register_saved_on_entry): Add
5150         function comment.
5151         (aarch64_next_callee_save): Likewise.
5152         (aarch64_pushwb_single_reg): Likewise.
5153         (aarch64_gen_storewb_pair): Likewise.
5154         (aarch64_push_regs): Likewise.
5155         (aarch64_gen_loadwb_pair): Likewise.
5156         (aarch64_pop_regs): Likewise.
5157         (aarch64_gen_store_pair): Likewise.
5158         (aarch64_gen_load_pair): Likewise.
5159         (aarch64_save_callee_saves): Likewise.
5160         (aarch64_restore_callee_saves): Likewise.
5162 2016-11-02  Richard Biener  <rguenther@suse.de>
5164         PR tree-optimization/78035
5165         PR tree-optimization/77964
5166         * gimple-pretty-print.c (pp_points_to_solution): Print
5167         vars_contains_interposable.
5168         * tree-ssa-alias.c: Include varasm.h.
5169         (ptrs_compare_unequal): Check vars_contains_interposable and
5170         decl_binds_to_current_def_p.
5171         (dump_points_to_solution): Dump vars_contains_interposable.
5172         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_interposable
5173         flag.
5174         * tree-ssa-structalias.c: Include varasm.h.
5175         (set_uids_in_ptset): Record whether vars contains a
5176         not decl_binds_to_current_def_p variable in vars_contains_interposable.
5177         (ipa_escaped_pt): Update initializer.
5179 2016-11-02  Richard Biener  <rguenther@suse.de>
5181         PR tree-optimization/78047
5182         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Initialize
5183         fake field at offset zero conservatively regarding to may_have_pointers.
5185 2016-11-02  Richard Biener  <rguenther@suse.de>
5187         * tree-vrp.c (evrp_dom_walker::before_dom_children): Call
5188         infer_value_range on stmt ops and update value-ranges.
5189         Dump visited stmts and blocks.
5190         (evrp_dom_walker::push_value_range): Dump changes.
5191         (evrp_dom_walker::pop_value_range): Likewise.
5192         (evrp_dom_walker::try_find_new_range): Avoid noop changes.
5194 2016-11-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5196         * emit-rtl.c (prev_nonnote_insn_bb): Change argument type to
5197         rtx_insn *.
5198         * rtl.h (prev_nonnote_insn_bb): Adjust prototype.
5200 2016-11-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5202         * cfgrtl.c (delete_insn_chain): Change argument type to rtx_insn *
5203         and adjust for that.
5204         * cfgrtl.h (delete_insn_chain): Adjust prototype.
5206 2016-11-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5208         * config/rl78/rl78.c (gen-and_emit_move): Change argument type
5209         to rtx_insn *.
5210         (transcode_memory_rtx): Likewise.
5211         (move_to_acc): Likewise.
5212         (move_from_acc): Likewise.
5213         (move_acc_to_reg): Likewise.
5214         (move_to_x): Likewise.
5215         (move_to_hl): Likewise.
5216         (move_to_de): Likewise.
5217         * config/rs6000/rs6000.c (emit_frame_save): Likewise.
5218         (rs6000_emit_savres_rtx): Likewise.
5219         (rs6000_emit_prologue): Likewise.
5220         * reorg.c (update_reg_unused_notes): Likewise.
5221         * rtl.h (remove_note): Adjust prototype.
5222         * rtlanal.c (remove_note): Make argument type rtx_insn *.
5224 2016-11-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5226         * config/alpha/alpha.c (alpha_legitimize_address_1): Split up
5227         variables so some can be rtx_insn *.
5228         (alpha_emit_xfloating_libcall): Likewise.
5229         * config/mips/mips.c (mips_call_tls_get_addr): Likewise.
5230         (mips_legitimize_tls_address): Likewise.
5231         * optabs.c (expand_binop): Likewise.
5232         * reload1.c (gen_reload): Likewise.
5234 2016-11-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5236         * reorg.c (relax_delay_slots): Split up the trial variable.
5238 2016-11-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5240         * config/arc/arc.c (arc_emit_call_tls_get_addr): Make the type
5241         of variables rtx_insn *.
5242         * config/arm/arm.c (arm_call_tls_get_addr): Likewise.
5243         (legitimize_tls_address): Likewise.
5244         * config/bfin/bfin.c (hwloop_optimize): Likewise.
5245         (bfin_gen_bundles): Likewise.
5246         * config/c6x/c6x.c (reorg_split_calls): Likewise.
5247         (c6x_reorg): Likewise.
5248         * config/frv/frv.c (frv_reorder_packet): Likewise.
5249         * config/i386/i386.c (ix86_split_idivmod): Likewise.
5250         * config/ia64/ia64.c (ia64_expand_compare): Likewise.
5251         * config/m32c/m32c.c (m32c_prepare_shift): Likewise.
5252         * config/mn10300/mn10300.c: Likewise.
5253         * config/rl78/rl78.c: Likewise.
5254         * config/s390/s390.c (s390_fix_long_loop_prediction): Likewise.
5255         * config/sh/sh-mem.cc (sh_expand_cmpstr): Likewise.
5256         (sh_expand_cmpnstr): Likewise.
5257         (sh_expand_strlen): Likewise.
5258         (sh_expand_setmem): Likewise.
5259         * config/sh/sh.md: Likewise.
5260         * emit-rtl.c (emit_pattern_before): Likewise.
5261         * except.c: Likewise.
5262         * final.c: Likewise.
5263         * jump.c: Likewise.
5265 2016-11-01  Jason Merrill  <jason@redhat.com>
5267         * tree-inline.c (copy_tree_body_r): Only copy the taken branch of
5268         a COND_EXPR with constant condition.
5270 2016-11-01  Jakub Jelinek  <jakub@redhat.com>
5272         * dwarf2out.c (gen_variable_die): Remove again origin_die variable
5273         and its initialization.
5275 2016-11-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5277         * dwarf2out.c (output_rnglists): Wrap basebuf, len in
5278         HAVE_AS_LEB128.
5280 2016-11-01  Jakub Jelinek  <jakub@redhat.com>
5282         * dwarf2out.c (add_name_and_src_coords_attributes): Add NO_LINKAGE_NAME
5283         argument, don't call add_linkage_name if it is true.
5284         (gen_variable_die): For C++ inline static data members, consider the
5285         initial call when old_die is NULL to be declaration and call
5286         add_name_and_src_coords_attributes in that case with true as
5287         NO_LINKAGE_NAME.  Add DW_AT_inline attribute if needed.
5288         (gen_member_die): For C++ inline static data members, emit a
5289         definition DIE right away in DW_TAG_compile_unit context.
5291 2016-11-01  John David Anglin  <danglin@gcc.gnu.org>
5293         PR target/78166
5294         * config/pa/pa.md: Add new shift/add patterns to handle
5295         (plus (mult (reg) (mem_shadd_operand)) (reg)) source operand.
5297 2016-11-01  Max Filippov  <jcmvbkbc@gmail.com>
5299         * config/xtensa/xtensa-protos.h
5300         (xtensa_use_return_instruction_p): New prototype.
5301         * config/xtensa/xtensa.c (xtensa_current_frame_size,
5302         xtensa_callee_save_size): Remove.
5303         (struct machine_function): Add new fields: current_frame_size,
5304         callee_save_size, frame_laid_out and epilogue_done.
5305         (compute_frame_size, xtensa_expand_prologue,
5306         xtensa_expand_epilogue): Replace xtensa_callee_save_size with
5307         cfun->machine->callee_save_size and xtensa_current_frame_size
5308         with cfun->machine->current_frame_size.
5309         (compute_frame_size): Update cfun->machine->frame_laid_out and
5310         don't update frame layout after reload completion.
5311         (xtensa_expand_epilogue): Set cfun->machine->epilogue_done
5312         instead of zeroing xtensa_current_frame_size.
5313         (xtensa_use_return_instruction_p): New function.
5314         * config/xtensa/xtensa.h (xtensa_current_frame_size): Remove
5315         declaration.
5316         (INITIAL_ELIMINATION_OFFSET): Use return value of
5317         compute_frame_size instead of xtensa_current_frame_size value.
5318         * config/xtensa/xtensa.md ("return" pattern): Use new predicate
5319         function xtensa_use_return_instruction_p instead of inline code.
5321 2016-11-01  Jakub Jelinek  <jakub@redhat.com>
5323         * tree.h (BLOCK_IN_COLD_SECTION_P): Define.
5324         * final.c (final_scan_insn): Set BLOCK_IN_COLD_SECTION_P.
5325         * dwarf2out.c (rnglist_idx): New variable.
5326         (struct dw_ranges): Add label, idx and maybe_new_sec fields.
5327         (DEBUG_RNGLISTS_SECTION): Define.
5328         (ranges_base_label): New variable.
5329         (size_of_die) <case dw_val_class_range_list>: If using
5330         DW_FORM_rnglistx, count size of uleb128 of range list index.
5331         (value_format) <case dw_val_class_range_list>: For
5332         -gdwarf-5 -gsplit-dwarf return DW_FORM_rnglistx.
5333         (output_range_list_offset): Handle -gdwarf-5 .debug_rnglists
5334         offsets.  Multiply dwarf < 5 offsets by 2 * DWARF_ADDR_SIZE.
5335         (add_ranges_num): Remove useless prototype.  Don't multiply
5336         by 2 * DWARF2_ADDR_SIZE.  Add maybe_new_sec argument, adjust
5337         for new fields added to dw_ranges struct.
5338         (add_ranges): Add maybe_new_sec argument and pass it
5339         through to add_ranges_num.
5340         (note_rnglist_head): New function.
5341         (add_ranges_by_labels): Pass true as maybe_new_sec to
5342         add_ranges_num, call note_rnglist_head on the head of the list.
5343         (output_ranges): Add function comment.  Switch to
5344         .debug_ranges section here and emit .Ldebug_ranges0 label.
5345         (index_rnglists, output_rnglists): New functions.
5346         (gen_subprogram_die): Formatting fixes.
5347         (add_high_low_attributes): Don't divide offsets
5348         by 2 * DWARF2_ADDR_SIZE.  Call note_rnglist_head on the
5349         first list element or when pointing into the middle of
5350         a list.  Pass true as second argument to add_ranges on the
5351         first block fragment after cold/hot section switch.
5352         (init_sections_and_labels): For -gdwarf-5 use .debug_rnglists
5353         section instead of .debug_ranges.  Initialize
5354         ranges_base_label if -gdwarf-5 -gsplit-dwarf.
5355         (dwarf2out_finish): For -gdwarf-5 -gsplit-dwarf call
5356         index_rnglists and add DW_AT_rnglists_base attr.  Don't switch
5357         to dwarf_ranges_section here or emit .Ldebug_ranges0 label.
5358         Call output_rnglists for -gdwarf-5.
5359         (dwarf2out_c_finalize): Clear rnglist_idx.
5361 2016-11-01  Fritz Reese  <fritzoreese@gmail.com>
5363         * combine.c (simplify_compare_const): Add gcc_fallthrough.
5365 2016-11-01  Bilyan Borisov  <bilyan.borisov@arm.com>
5366             Tamar Christina <tamar.christina@arm.com>
5368         * config/arm/arm-c.c (arm_cpu_builtins): New macro definition.
5369         * config/arm/arm_neon.h (vmaxnm_f32): New intrinsinc.
5370         (vmaxnmq_f32): Likewise.
5371         (vminnm_f32): Likewise.
5372         (vminnmq_f32): Likewise.
5373         * config/arm/arm_neon_builtins.def (vmaxnm): New builtin.
5374         (vminnm): Likewise.
5375         * config/arm/neon.md (neon_<fmaxmin_op><mode>, VCVTF): New
5376         expander.
5378 2016-10-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
5380         * config/rs6000/vsx.md (VSX_EXTRACT_FL): New iterator for all
5381         binary floating point types supported by the hardware except for
5382         double.
5383         (vsx_xvcvsxwdp_df): Provide scalar result alternative to the
5384         vector instruction for optimizing extracting a SImode from a
5385         V4SImode vector and converting it to floating point.
5386         (vsx_xvcvuxwdp_df): Likewise.
5387         (vsx_extract_si): On ISA 3.0, allow extract target and temporary
5388         registers to be any VSX register.  Move stores to the end of the
5389         constraints.
5390         (vsx_extract_si_<uns>float_df): New combiner pattern and splitter
5391         to optimize extracting a SImode from a V4SImode vector and
5392         converting it to a binary floating point type supported by the
5393         hardware.  Use the vector converts instead of extracting the
5394         element, sign extending it, and then converting it to double.
5395         Other floating point types  than double first convert to double,
5396         then the double is converted to that type.
5397         (vsx_extract_si_<uns>float_<mode>): Likewise.
5399 2016-10-31  Andrew Pinski  <apinski@cavium.com>
5401         * config/aarch64/driver-aarch64.c (host_detect_local_cpu):
5402         Rewrite handling of part num to handle the case where
5403         multiple implementers share the same part num.
5405 2016-10-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
5406             Jakub Jelinek  <jakub@redhat.com>
5408         * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): Adjust for -gdwarf-5.
5409         (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Likewise.
5411 2016-10-31  Jakub Jelinek  <jakub@redhat.com>
5413         * dwarf2out.c (dwarf_AT): Handle DW_AT_dwo_name.
5414         (use_debug_types): Adjust comment for DWARF5 DW_UT_type units.
5415         (new_die): Handle DW_TAG_skeleton_unit like DW_TAG_compile_unit.
5416         (is_cu_die, is_unit_die): Likewise.
5417         (should_move_die_to_comdat, break_out_comdat_types): Adjust
5418         comments for DWARF5 DW_UT_type units.
5419         (output_compilation_unit_header): Add UT argument, output
5420         start of DWARF5 .debug_info section header.
5421         (output_comp_unit): Add dwo_id argument.  Adjust
5422         output_compilation_unit_header caller, for DW_UT_split_compile
5423         emit dwo_id field, otherwise padding1.  Emit padding2 field.
5424         (add_top_level_skeleton_die_attrs): Add DW_AT_dwo_name
5425         rather than DW_AT_GNU_dwo_name attr for -gdwarf-5.
5426         (output_skeleton_debug_sections): Add dwo_id argument, for
5427         -gdwarf-5 emit DWARF 5 DW_UT_skeleton header.
5428         (output_comdat_type_unit): For -gdwarf-5 emit .debug_info
5429         DW_UT_type or DW_UT_split_type units rather than .debug_types.
5430         (dwarf2out_finish): Use DW_TAG_skeleton_unit rather than
5431         DW_TAG_compile_unit for skeleton unit die.  Don't add
5432         DW_AT_GNU_dwo_id attributes for -gdwarf-5, instead pass checksum
5433         address to output_comp_unit and output_skeleton_debug_sections.
5435         * dwarf2out.c (debug_line_str_section): New variable.
5436         (debug_line_str_hash): Likewise.
5437         (DEBUG_LINE_STR_SECTION): Define.
5438         (set_indirect_string): Handle DW_FORM_line_strp like
5439         DW_FORM_strp.
5440         (find_string_form): Fix up formatting.
5441         (size_of_die): Handle DW_FORM_line_strp like DW_FORM_strp.
5442         Fix up indentation.
5443         (output_die): Handle DW_FORM_line_strp.
5444         (DWARF5_USE_DEBUG_LINE_STR): Define.
5445         (output_line_string): New function.
5446         (output_file_names): Add -gdwarf-5 support.
5447         (output_line_info): Likewise.
5448         (init_sections_and_labels): Initialize debug_line_str_section.
5449         (output_indirect_string): Change 2nd argument from void *
5450         to enum dwarf_form form, compare with form rather than
5451         DW_FORM_strp.
5452         (output_indirect_strings): Pass DW_FORM_strp to
5453         output_indirect_string traversion.
5454         (dwarf2out_finish): Output .debug_line_str strings.
5455         (dwarf2out_c_finalize): Clear debug_line_str_section and
5456         debug_line_str_hash.
5458 2016-10-31  Tom Tromey  <tom@tromey.com>
5460         PR debug/77315
5461         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_form_tls_address.
5462         (resolve_args_picking_1): Move DW_OP_form_tls_address case next to
5463         DW_OP_GNU_push_tls_address case.
5464         (loc_list_from_tree_1): Use DW_OP_form_tls_address.
5466 2016-10-31  Jakub Jelinek  <jakub@redhat.com>
5468         * dwarf2out.h (struct dw_loc_descr_node): Adjust comment
5469         for frame_offset_rel bit.
5470         (struct array_descr_info): Add rank field.
5471         * dwarf2out.c (struct loc_descr_context): Add placeholder_arg
5472         and placeholder_seen fields.
5473         (resolve_args_picking_1): Handle also frame_offset_rel DW_OP_dup
5474         and DW_OP_over.  Optimize DW_OP_pick 0 into DW_OP_dup and
5475         DW_OP_pick 1 into DW_OP_over.
5476         (function_to_dwarf_procedure, type_byte_size, field_byte_offset,
5477         gen_variant_part): Clear placeholder_{arg,seen}.
5478         (loc_list_from_tree_1): Drop const from context argument.
5479         Handle integral PLACEHOLDER_EXPR if context->placeholder_arg.
5480         (loc_list_for_address_of_addr_expr_of_indirect_ref,
5481         loc_list_from_tree, loc_descriptor_from_tree): Drop const from
5482         context argument.
5483         (add_scalar_info): Drop const from context argument.  Handle
5484         context->placeholder_arg.
5485         (add_bound_info): Drop const from context argument.
5486         (gen_descr_array_type_die): Drop const from ctx variable.
5487         Initialize placeholder_arg and placeholder_seen.  Add DW_AT_rank
5488         attribute and use a single DW_TAG_generic_subrange instead of
5489         7 DW_TAG_subrange_type for assumed rank arrays.
5491         * dwarf2out.h (enum dw_val_class): Add dw_val_class_loclistsptr.
5492         * dwarf2out.c (struct dw_loc_list_struct): Change emitted field
5493         from bool to 1-bit uchar bitfield.  Add num_assigned and
5494         offset_emitted bitfields.
5495         (dw_val_equal_p): Compare v.val_lbl_id rather than v.val_unsigned
5496         for dw_val_class_lineptr and dw_val_class_macptr.  Handle
5497         dw_val_class_loclistsptr.
5498         (new_addr_loc_descr): Fix up formatting.
5499         (DEBUG_LOCLISTS_SECTION, DEBUG_DWO_LOCLISTS_SECTION): Define.
5500         (add_AT_low_high_pc): Fix up formatting.
5501         (add_AT_loclistsptr): New function.
5502         (AT_lbl): Allow dw_val_class_loclistsptr.
5503         (print_dw_val, attr_checksum, attr_checksum_ordered, same_dw_val_p):
5504         Handle dw_val_class_loclistsptr.
5505         (loc_list_idx): New variable.
5506         (output_loclists_offsets, assign_location_list_indexes): New
5507         functions.
5508         (size_of_die): For dw_val_class_loc_list -gsplit-dwarf -gdwarf-5
5509         add size_of_uleb128 of the index.  Drop never used
5510         dwarf_split_debug_info AT_index handling.  Handle
5511         dw_val_class_loclistsptr.
5512         (value_format): Return DW_FORM_loclistsx for dw_val_class_loc_list
5513         if -gsplit-dwarf -gdwarf-5.  Handle dw_val_class_loclistsptr.
5514         (output_loc_list): Handle DWARF 5 .debug_loclists* format.
5515         (output_loc_list_offset): Handle -gsplit-dwarf -gdwarf-5
5516         DW_FORM_loclistx indexes.
5517         (output_attr_index_or_value): Fix up formatting.  Don't handle
5518         dw_val_class_loc_list here.
5519         (output_die): Formatting fixes.  Handle dw_val_class_loclistsptr.
5520         For dw_val_class_loc_list call output_loc_list_offset rather than
5521         output_attr_index_or_value.
5522         (init_sections_and_labels): For -gdwarf-5 use .debug_loclists
5523         or .debug_loclists.dwo section name for debug_loc_section.
5524         (resolve_addr_in_expr): Formatting fix.
5525         (index_location_lists): Likewise.
5526         (dwarf2out_finish): If there are any location lists, for
5527         -gsplit-dwarf -gdwarf-5 add DW_AT_loclists_base attribute.  Call
5528         index_location_lists only if have_location_lists.  Call
5529         assign_location_list_indexes for -gsplit-dwarf -gdwarf-5.  Emit
5530         .debug_loclists{,.dwo} section header for -gdwarf-5, for -gdwarf-5
5531         -gsplit-dwarf also emit offset table.
5533         * dwarf2out.c (DWARF_LARGEST_DATA_FORM_BITS): Define.
5534         (size_of_die, value_format, output_die): Use
5535         DW_FORM_data16 for 128-bit dw_val_class_const_double or
5536         dw_val_class_wide_int.
5538         * dwarf2out.c (dwarf_op): Renamed to ...
5539         (dwarf_OP): ... this.
5540         (convert_descriptor_to_mode, scompare_loc_descriptor,
5541         minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
5542         implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr): Adjust
5543         callers.
5544         (dwarf_AT, dwarf_TAG): New functions.
5545         (check_die): Disallow DW_AT_call_all_calls next to
5546         DW_AT_GNU_all_call_sites.
5547         (gen_call_site_die): Use dwarf_TAG and dwarf_AT with DWARF 5 tag
5548         and attributes instead of the corresponding GNU tag and attributes.
5549         (gen_subprogram_die): Likewise.  Emit call site information even
5550         for -gdwarf-5 -gstrict-dwarf.  Replace DW_AT_GNU_defaulted with
5551         DW_AT_defaulted in comment.
5552         (resolve_addr): Handle DW_AT_call_origin attribute on
5553         DW_TAG_call_site DIE like DW_AT_abstract_origin on
5554         DW_TAG_GNU_call_site DIE.
5556         * dwarf2out.c (dwarf_op): New function.
5557         (size_of_loc_descr): Handle DW_OP_{implicit_pointer,entry_value},
5558         DW_OP_{const,regval,deref}_type and DW_OP_{convert,reinterpret}.
5559         (output_loc_operands, output_loc_operands_raw): Likewise.
5560         (resolve_args_picking_1, prune_unused_types_walk_loc_descr,
5561         mark_base_types, hash_loc_operands, compare_loc_operands): Likewise.
5562         (resolve_addr_in_expr): Likewise.  Only punt for !dwarf_strict
5563         if dwarf_version < 5.
5564         (convert_descriptor_to_mode): Use dwarf_op (DW_OP_xxx) instead of
5565         DW_OP_GNU_xxx.
5566         (scompare_loc_descriptor, ucompare_loc_descriptor,
5567         minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
5568         implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr,
5569         optimize_location_into_implicit_ptr): Likewise.  Only punt for
5570         !dwarf_strict if dwarf_version < 5.
5571         (string_cst_pool_decl): Adjust comment.
5572         (non_dwarf_expression): Handle DW_OP_implicit_pointer.
5574         * dwarf2out.h (enum dw_val_class): Add dw_val_class_const_implicit,
5575         dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
5576         (struct dw_val_node): Add val_file_implicit field.
5577         * dwarf2out.c (dw_val_equal_p, print_dw_val, attr_checksum,
5578         attr_checksum_ordered, same_dw_val_p, size_of_die, value_format,
5579         output_die): Handle dw_val_class_const_implicit,
5580         dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
5581         (abbrev_die_table): Change into va_gc vec.
5582         (abbrev_die_table_allocated, abbrev_die_table_in_use,
5583         ABBREV_DIE_TABLE_INCREMENT): Remove.
5584         (AT_int, AT_unsigned, AT_file): Allow dw_val_class_*_implicit.
5585         (abbrev_opt_start, abbrev_usage_count, sorted_abbrev_dies): New
5586         variables.
5587         (build_abbrev_table): Adjust for abbrev_die_table being a va_gc vec.
5588         If abbrev_opt_start, fill in abbrev_usage_count and abbrev_dies
5589         vectors.
5590         (die_abbrev_cmp, optimize_implicit_const, optimize_abbrev_table): New
5591         functions.
5592         (output_die_abbrevs): For DW_FORM_implicit_const emit sleb128 with
5593         the implicit value.
5594         (output_abbrev_section): Adjust for abbrev_die_table being a va_gc
5595         vec.
5596         (output_comp_unit): Initialize abbrev_opt_start if emitting the main
5597         unit.  Call optimize_abbrev_table.
5598         (dwarf2out_init, dwarf2out_finish, dwarf2out_c_finalize): Adjust for
5599         abbrev_die_table being a va_gc vec.
5601         PR tree-optimization/77860
5602         * tree-ssa-reassoc.c (eliminate_using_constants): Handle
5603         also integral complex and vector constants.
5605         * dwarf2out.c (dwarf2out_define, dwarf2out_undef, output_macinfo_op,
5606         optimize_macinfo_range, save_macinfo_strings): Replace
5607         DW_MACRO_GNU_* constants with corresponding DW_MACRO_* constants.
5608         (output_macinfo): Likewise.  Emit .debug_macro* rather than
5609         .debug_macinfo* even for -gstrict-dwarf -gdwarf-5.
5610         (init_sections_and_labels): Use .debug_macro* labels rather than
5611         .debug_macinfo* labels even for -gstrict-dwarf -gdwarf-5.
5612         (dwarf2out_finish): Use DW_AT_macros instead of DW_AT_macro_info
5613         or DW_AT_GNU_macros for -gdwarf-5.
5615 2016-10-31  Waldemar Brodkorb  <wbx@openadk.org>
5617         * config/microblaze/linux.h (UCLIBC_DYNAMIC_LINKER): Define.
5619 2016-09-11  Le-Chun Wu  <lcwu@google.com>
5620             Mark Wielaard  <mjw@redhat.com>
5622         * common.opt (Wshadow=global): New option. Default for -Wshadow.
5623         (Wshadow=local): New option.
5624         (Wshadow-local): Hidden alias for -Wshadow=local.
5625         (Wshadow=compatible-local): New option.
5626         (Wshadow-compatible-local): Hidden alias for
5627         -Wshadow=compatible-local.
5628         * doc/invoke.texi: Document Wshadow=global, Wshadow=local and
5629         Wshadow=compatible-local.
5631 2016-10-31  Bin Cheng  <bin.cheng@arm.com>
5633         * tree-vect-slp.c (vect_get_and_check_slp_defs): New parameter SWAP.
5634         Check slp defs for COND_EXPR by swapping/inverting operands if the
5635         new parameter SWAP indicates so.
5636         (vect_build_slp_tree_1): New parameter SWAP.  Check COND_EXPR stmt
5637         is isomorphic to the first stmt via swapping/inverting.  Store swap
5638         information in the new parameter SWAP.
5639         (vect_build_slp_tree): New local array SWAP and pass it to function
5640         vect_build_slp_tree_1.  Cleanup result handling code for function
5641         call to vect_get_and_check_slp_defs.  Skip operand swapping if the
5642         order of operands has been fixed as indicated by SWAP[i].
5644 2016-10-31  Bin Cheng  <bin.cheng@arm.com>
5646         * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): Skip
5647         unnecessary data dependence check after visited store stmt.
5649 2016-10-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5651         PR tree-optimization/71915
5652         PR tree-optimization/71490
5653         * gimple-ssa-strength-reduction.c (struct slsr_cand_d): Add
5654         stride_type field.
5655         (find_basis_for_base_expr): Require stride types to match when
5656         seeking a basis.
5657         (alloc_cand_and_find_basis): Record the stride type.
5658         (slsr_process_phi): Pass stride type to alloc_cand_and_find_basis.
5659         (backtrace_base_for_ref): Pass types to legal_cast_p_1 rather than
5660         the expressions having those types.
5661         (slsr_process_ref): Pass stride type to alloc_cand_and_find_basis.
5662         (create_mul_ssa_cand): Likewise.
5663         (create_mul_imm_cand): Likewise.
5664         (create_add_ssa_cand): Likewise.
5665         (create_add_imm_cand): Likewise.
5666         (legal_cast_p_1): Change interface to accept types rather than the
5667         expressions having those types.
5668         (legal_cast_p): Pass types to legal_cast_p_1.
5669         (slsr_process_cast): Pass stride type to
5670         alloc_cand_and_find_basis.
5671         (slsr_process_copy): Likewise.
5672         (dump_candidate): Display stride type when a cast exists.
5673         (create_add_on_incoming_edge): Introduce a cast when necessary for
5674         the stride type.
5675         (analyze_increments): Change the code checking for invalid casts
5676         to rely on the stride type, and update the documentation and
5677         example.  Change the code checking for pointer multiplies to rely
5678         on the stride type.
5679         (insert_initializers): Introduce a cast when necessary for the
5680         stride type.  Use the stride type for the type of the initializer.
5682 2016-10-30  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5684         * config/arm/arm.c (arm_const_not_ok_for_debug_p): Use VAR_P.
5686 2016-10-29  Jakub Jelinek  <jakub@redhat.com>
5688         PR rtl-optimization/77919
5689         * expr.c (expand_expr_real_1) <normal_inner_ref>: Only avoid forcing
5690         into memory if both modes are complex and their inner modes have the
5691         same precision.  If the two modes are different complex modes, convert
5692         each part separately and generate a new CONCAT.
5694 2016-10-29  John David Anglin  <danglin@gcc.gnu.org>
5696         * config/pa/pa64-hpux.h (FINI_SECTION_ASM_OP): Define to null string.
5698 2016-10-29  Jakub Jelinek  <jakub@redhat.com>
5700         PR target/78148
5701         * gimple-ssa-store-merging.c
5702         (imm_store_chain_info::output_merged_store): Use build_aligned_type
5703         instead of SET_TYPE_ALIGN on shared integral type.
5705 2016-10-29  John David Anglin  <danglin@gcc.gnu.org>
5707         * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
5708         (MALLOC_ABI_ALIGNMENT): Define to 128 on all targets except SOM.
5709         Adjust comment.
5711 2016-10-28  Jeff Law  <law@redhat.com>
5713         * config/vax/vax.h (REGNO_REG_CLASS): Access the REGNO argument.
5714         * config/spu/spu.h (REGNO_REG_CLASS): Likewise.
5716 2016-10-28  Eric Botcazou  <ebotcazou@adacore.com>
5718         * doc/sourcebuild.texi (Ada Tests): Remove mention of gcc chapter.
5720 2016-10-28  Eric Botcazou  <ebotcazou@adacore.com>
5722         * target.def (min_arithmetic_precision): New hook.
5723         * doc/tm.texi.in (Misc): Add TARGET_MIN_ARITHMETIC_PRECISION.
5724         * doc/tm.texi: Regenerate.
5725         * internal-fn.c (expand_arith_overflow): Adjust handling of target
5726         dependent support by means of TARGET_MIN_ARITHMETIC_PRECISION.
5727         * targhooks.c (default_min_arithmetic_precision): New function.
5728         * targhooks.h (default_min_arithmetic_precision): Declare.
5729         * config/sparc/sparc.c (TARGET_MIN_ARITHMETIC_PRECISION): Define.
5730         (sparc_min_arithmetic_precision): New function.
5732 2016-10-28  Segher Boessenkool  <segher@kernel.crashing.org>
5734         PR target/71847
5735         * combine.c (change_zero_ext): Handle zero_ext of hard registers.
5736         Swap commutative operands in new RTL if needed.  Handle zero_ext
5737         in the set_dest.
5738         (recog_for_combine): Pass *pnewpat to change_zero_ext instead of
5739         PATTERN (insn).
5741 2016-10-28  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5742             Kugan Vivekanandarajah  <kuganv@linaro.org>
5743             Jim Wilson  <jim.wilson@linaro.org>
5745         PR tree-optimization/43721
5746         * target.def: New hook expand_divmod_libfunc.
5747         * doc/tm.texi.in: Add hook for TARGET_EXPAND_DIVMOD_LIBFUNC.
5748         * doc/tm.texi: Regenerate.
5749         * internal-fn.def: Add new entry for DIVMOD ifn.
5750         * internal-fn.c (expand_DIVMOD): New.
5751         * tree-ssa-math-opts.c: Include optabs-libfuncs.h, tree-eh.h,
5752         targhooks.h.
5753         (widen_mul_stats): Add new field divmod_calls_inserted.
5754         (target_supports_divmod_p): New.
5755         (divmod_candidate_p): Likewise.
5756         (convert_to_divmod): Likewise.
5757         (pass_optimize_widening_mul::execute): Call calculate_dominance_info,
5758         renumber_gimple_stmt_uids at beginning of function. Call
5759         convert_to_divmod and record stats for divmod.
5760         * config/arm/arm.c (arm_expand_divmod_libfunc): Override hook
5761         TARGET_EXPAND_DIVMOD_LIBFUNC.
5762         * doc/sourcebuild.texi: Add items for arm_divmod_simode, divmod,
5763         divmod_simode.
5765 2016-10-28  Eric Botcazou  <ebotcazou@adacore.com>
5766             Segher Boessenkool  <segher@kernel.crashing.org>
5768         * dojump.c (do_jump_by_parts_greater_rtx): Invert probability when
5769         swapping the arms of the branch.
5770         * internal-fn.c (expand_addsub_overflow): Use a straight-line code
5771         sequence for the generic signed-signed-signed case.
5773 2016-10-28  Jeff Law  <law@redhat.com>
5775         * config/bfin/bfin.c (bfin_legitimate_address_p): Add missing
5776         fallthru comment.
5777         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
5779 2016-10-28  Segher Boessenkool  <segher@kernel.crashing.org>
5781         PR rtl-optimization/78029
5782         * function.c (prologue_contains, epilogue_contains): New functions.
5783         (record_prologue_seq, record_epilogue_seq): New functions.
5784         * function.h (prologue_contains, epilogue_contains,
5785         record_prologue_seq, record_epilogue_seq): New declarations.
5786         * sched-deps.c (sched_analyze_insn): Make dependencies to prevent
5787         mixing prologue and epilogue insns.
5788         (init_deps): Initialize the new fields in struct deps_desc.
5789         * sched-int.h (struct deps_desc): New fields last_prologue,
5790         last_epilogue, and last_logue_was_epilogue.
5791         * shrink-wrap.c (emit_common_heads_for_components): Record all
5792         emitted prologue and epilogue insns.
5793         (emit_common_tails_for_components): Ditto.
5794         (insert_prologue_epilogue_for_components): Ditto.
5796 2016-10-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5798         PR middle-end/22141
5799         * Makefile.in (OBJS): Add gimple-ssa-store-merging.o.
5800         * common.opt (fstore-merging): New Optimization option.
5801         * opts.c (default_options_table): Add entry for
5802         OPT_ftree_store_merging.
5803         * fold-const.h (can_native_encode_type_p): Declare prototype.
5804         * fold-const.c (can_native_encode_type_p): Define.
5805         * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Define.
5806         (PARAM_MAX_STORES_TO_MERGE): Likewise.
5807         * timevar.def (TV_GIMPLE_STORE_MERGING): New timevar.
5808         * passes.def: Insert pass_tree_store_merging.
5809         * tree-pass.h (make_pass_store_merging): Declare extern
5810         prototype.
5811         * gimple-ssa-store-merging.c: New file.
5812         * doc/invoke.texi (Optimization Options): Document
5813         -fstore-merging.
5814         (--param documentation): Document store-merging-allow-unaligned
5815         and max-stores-to-merge.
5817 2016-10-28  Will Schmidt <will_schmidt@vnet.ibm.com>
5819         PR middle-end/72747
5820         * gimplify.c (gimplify_init_constructor): Move emit of constructor
5821         assignment to earlier in the if/else logic.
5823 2016-10-28  Richard Biener  <rguenther@suse.de>
5825         PR middle-end/78128
5826         PR middle-end/71002
5827         * fold-const.c (make_bit_field_ref): Only adjust alias set
5828         when the original alias set was zero.
5830 2016-10-28  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5832         * config/s390/s390.c (s390_adjust_loop_scan_osc): New function.
5833         (s390_adjust_loops): New function.
5834         (s390_reorg): Invoke s390_adjust_loops.
5835         * config/s390/s390.md (UNSPEC_OSC_BREAK): New constant.
5836         ("osc_break"): New insn definition.
5838 2016-10-28  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5840         * config/s390/s390.opt: Support alternate cpu level naming (archXX).
5841         * config.gcc: Support alternate archXX cpu levels with
5842         --with-arch= and --with-tune=.
5843         * config/s390/linux.h: Translate new archXX cpu levels to the
5844         original names when calling GAS.
5845         * config/s390/tpf.h: Likewise.
5846         * doc/invoke.texi: Document the alternate cpu level names.
5848 2016-10-28  Jakub Jelinek  <jakub@redhat.com>
5850         PR rtl-optimization/77919
5851         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force CONCAT into
5852         MEM if mode1 is not a complex mode.
5854         PR rtl-optimization/78132
5855         * ree.c (combine_reaching_defs): Give up if copy_needed and
5856         !HARD_REGNO_MODE_OK (REGNO (src_reg), dst_mode).
5858 2016-10-27  Eric Botcazou  <ebotcazou@adacore.com>
5860         * config/sparc/sparc.md (<*vlop:code><VL:mode>3): Remove leading '*'.
5862 2016-10-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
5864         * config/rs6000/constraints.md (wH constraint): Add new
5865         constraints for allowing 32-bit integers (and eventually 8/16-bit
5866         integers) into the vector registers.
5867         (wI constraint): Likewise.
5868         (wJ constraint): Likewise.
5869         (wK constraint): Likewise.
5870         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
5871         -mvsx-small-integer as a default option for ISA 2.07
5872         (i.e. power8).
5873         (POWERPC_MASKS): Likewise.
5874         * config/rs6000/rs6000.opt (-mvsx-small-integer): Add new debug
5875         switch to turn off small integer support in vector registers.
5876         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Eliminate
5877         test for -mupper-regs-di, since it is already done with the
5878         reg_add[mode].scalar_in_vsx_p.  Add support for the switch
5879         -mvsx-small-integer.
5880         (rs6000_debug_reg_global): Add support for wH, wI, wJ, and wK
5881         constraints.
5882         (rs6000_setup_reg_addr_masks): Likewise.
5883         (rs6000_init_hard_regno_mode_ok): Likewise.
5884         (rs6000_option_override_internal): Add consistency checks for
5885         -mvsx-small-integer.
5886         (rs6000_secondary_reload_simple_move): SImode is a simple move if
5887         -mvsx-small-integer.
5888         (rs6000_secondary_reload): Use std::swap.
5889         (rs6000_preferred_reload_class): Don't prefer FLOAT_REGS over
5890         VSX_REGS for small integers in vector registers, since there is no
5891         D-FORM address mode for such types.
5892         (rs6000_register_move_cost): Use FIRST_FPR_REGNO instead of 32.
5893         (rs6000_opt_masks): Add -mvsx-small-integer.
5894         * config/rs6000/vsx.md (VSINT_84): Add SImode for small integer
5895         support.
5896         (VSX_EXTRACT_I2): Clone VSX_EXTRACT_I, but drop V4SI since SImode
5897         extracts can be done on ISA 2.07.
5898         (vsx_extract_<mode>): Add support for small integers in vsx
5899         registers.
5900         (vsx_extract_<mode>_p9): Use 'v' instead of VSX_EX, since we no
5901         longer support V4SImode in this pattern.
5902         (vsx_extract_si): New insn to support extraction of SImode in ISA
5903         2.07 using either xxextractuw or vspltw.
5904         (vsx_extract_<mode>_p8): Use 'v' instead of VSX_EX, since we no
5905         longer support V4SImode in this pattern.
5906         * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wH, wI,
5907         wJ, and wK constraints.
5908         * config/rs6000/rs6000.md (f32_sv): Use correct instruction for
5909         storing SDmode with VSX instructions.
5910         (zero_extendsi<mode>2): Reorder pattern, so RLDICL comes after the
5911         GPR load and before the FPR and VSX loads.  Remove ??, ! from the
5912         constraints.  Add MFVSRWZ and XXEXTRACTUW instructions to support
5913         small integers in vector registers.
5914         (extendsi<mode>2): Reorder pattern, so EXTSW comes after the GPR
5915         load and before the FPR and VSX loads.  Remove ??, ! from the
5916         constraints.  Add VEXTSW2D support for small integers in vector
5917         registers.
5918         (lfiwax): Remove ! constraint.  Add VEXTSW2D support for small
5919         integers in vector registers.
5920         (floatsi<mode>2_lfiwax): If -mvsx-small-integer issue a normal
5921         move instead of using an UNSPEC.
5922         (lfiwzx): Remove ! constraint.  Add XXEXTRACTUW support for small
5923         integers in vector registers.
5924         (floatunssi<mode>2_lfiwzx): If -mvsx-small-integer issue a normal
5925         move instead of using an UNSPEC.
5926         (movsi_internal1): Add support for -mvsx-small-integer.  Align
5927         columns so that it is more readable.
5928         (SImode splitter for ISA 3.0 constants): Add splitter for
5929         -128..127 constants that can easily be constructed on ISA 3.0.
5930         * doc/md.texi (PowerPC Constraints): Document wH, wI, wJ, and wK
5931         constraints.
5933 2016-10-27  Jakub Jelinek  <jakub@redhat.com>
5935         PR middle-end/78025
5936         * omp-simd-clone.c (simd_clone_adjust): Handle noreturn declare simd
5937         functions.
5939 2016-10-27  Aldy Hernandez  <aldyh@redhat.com>
5941         * builtins.c (expand_builtin_nonlocal_goto): Avoid evaluating
5942         PIC_OFFSET_TABLE_REGNUM twice.
5944 2016-10-27  Bin Cheng  <bin.cheng@arm.com>
5946         * match.pd ((convert (op:s (convert@2 @0) (convert?@3 @1)))): Add
5947         support for constant operand for OP.
5949 2016-10-27  Jakub Jelinek  <jakub@redhat.com>
5951         * dwarf2out.c (gen_member_die): Only reparent_child instead of
5952         splice_child_die if child doesn't have DW_AT_specification attribute.
5954 2016-10-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5956         * config/arm/arm.h (TARGET_HAVE_LDREX): Define for ARMv8-M Baseline.
5957         (TARGET_HAVE_LDREXBH): Likewise.
5958         (TARGET_HAVE_LDACQ): Likewise.
5960 2016-10-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5962         * config/arm/arm.c (arm_split_atomic_op): Add function comment.  Add
5963         logic to to decide whether to copy over old value to register for new
5964         value.
5965         * config/arm/sync.md: Add comments explaning why mode and code
5966         attribute are not defined in iterators.md
5967         (thumb1_atomic_op_str): New code attribute.
5968         (thumb1_atomic_newop_str): Likewise.
5969         (thumb1_atomic_fetch_op_str): Likewise.
5970         (thumb1_atomic_fetch_newop_str): Likewise.
5971         (thumb1_atomic_fetch_oldop_str): Likewise.
5972         (atomic_exchange<mode>): Add new ARMv8-M Baseline only alternatives to
5973         mirror the more restrictive constraints of the Thumb-1 insns after
5974         split compared to Thumb-2 counterpart insns.
5975         (atomic_<sync_optab><mode>): Likewise.  Add comment to keep constraints
5976         in sync with non atomic version.
5977         (atomic_nand<mode>): Likewise.
5978         (atomic_fetch_<sync_optab><mode>): Likewise.
5979         (atomic_fetch_nand<mode>): Likewise.
5980         (atomic_<sync_optab>_fetch<mode>): Likewise.
5981         (atomic_nand_fetch<mode>): Likewise.
5982         * config/arm/thumb1.md (thumb1_addsi3): Add comment to keep contraint
5983         in sync with atomic version.
5984         (thumb1_subsi3_insn): Likewise.
5985         (thumb1_andsi3_insn): Likewise.
5986         (thumb1_iorsi3_insn): Likewise.
5987         (thumb1_xorsi3_insn): Likewise.
5989 2016-10-27  Nick Clifton  <nickc@redhat.com>
5991         * plugin.c (register_plugin_info): Produce an error message if the
5992         plugin is not found in the hash table.
5994 2016-10-27  Bin Cheng  <bin.cheng@arm.com>
5996         * match.pd ((convert1 (minmax ((convert2 (x) c)))) -> minmax (x c)):
5997         New pattern.
5999 2016-10-26  Kelvin Nilsen  <kelvin@gcc.gnu.org>
6001         PR target/78056
6002         * config/rs6000/rs6000.c (spe_init_builtins): Modify loops to not
6003         define builtin functions from the bdesc_spe_predicates or
6004         bdesc_spe_evsel arrays if the builtin mask is not compatible with
6005         the current compiler configuration.
6006         (paired_init_builtins): Modify loop to not define define builtin
6007         functions from the bdesc_paried_preds array if the builtin mask is
6008         not compatible with the current compiler configuration.
6009         (altivec_init_builtins): Modify loops to not define the
6010         __builtin_altivec_stxvl function nor the builtin functions from
6011         the bdesc_dst or bdesc_altivec_preds, or bdesc_abs arrays if the
6012         builtin mask is not compatible with the current compiler
6013         configuration.
6015 2016-10-26  Jeff Law  <law@redhat.com>
6017         * config/sh/sh.c (output_branch): Add missing fallthru comments.
6018         (gen_shl_and): Likewise.
6019         * config/sh/sh.md (movsicc): Add missing fallthru comments.
6021         * config/mips/mips.c (mips16_constant_cost): Add missing
6022         fallthru comments.
6023         (mips16_build_call_stub): Increase buffer size.  Adjust
6024         fallthru comment.
6026 2016-10-26  David Malcolm  <dmalcolm@redhat.com>
6028         * print-rtl.c (rtx_writer::print_rtx_operand_code_u): Print
6029         INSN_UIDs for all insns in compact mode.
6030         (rtx_writer::print_rtx): Likewise.
6031         * print-rtl.h (rtx_writer::flag_compact): Update comment.
6032         * rtl-tests.c (selftest::test_dumping_insns): Update expected
6033         output to include INSN_UID.
6034         (selftest::test_uncond_jump): Likewise.
6036 2016-10-26  Pat Haugen  <pthaugen@us.ibm.com>
6038         * haifa-sched.c (call_used_regs_num): Rename to...
6039         (call_saved_regs_num): ...this.
6040         (fixed_regs_num): New variable.
6041         (sched_pressure_start_bb): Subtract out fixed_regs. Scale call_saved
6042         regs not call_used.
6043         (alloc_global_sched_pressure_data): Compute call_saved and fixed regs.
6045 2016-10-26  David Malcolm  <dmalcolm@redhat.com>
6047         * print-rtl-function.c (print_rtx_function): Rewrite in terms of
6048         class rtx_writer.
6049         * print-rtl.c (outfile): Delete global.
6050         (sawclose): Likewise.
6051         (indent): Likewise.
6052         (in_call_function_usage): Likewise.
6053         (flag_compact): Likewise.
6054         (flag_simple): Likewise.
6055         (rtx_writer::rtx_writer): New ctor.
6056         (print_rtx_operand_code_0): Convert to...
6057         (rtx_writer::print_rtx_operand_code_0): ...this.
6058         (print_rtx_operand_code_e): Convert to...
6059         (rtx_writer::print_rtx_operand_code_e): ...this.
6060         (print_rtx_operand_codes_E_and_V): Convert to...
6061         (rtx_writer::print_rtx_operand_codes_E_and_V): ...this.
6062         (print_rtx_operand_code_i): Convert to...
6063         (rtx_writer::print_rtx_operand_code_i): ...this.
6064         (print_rtx_operand_code_r): Convert to...
6065         (rtx_writer::print_rtx_operand_code_r): ...this.
6066         (print_rtx_operand_code_u): Convert to...
6067         (rtx_writer::print_rtx_operand_code_u): ...this.
6068         (print_rtx_operand): Convert to...
6069         (rtx_writer::print_rtx_operand): ...this.
6070         (print_rtx): Convert to...
6071         (rtx_writer::print_rtx): ...this.
6072         (print_inline_rtx): Rewrite in terms of class rtx_writer.
6073         (debug_rtx): Likewise.
6074         (print_rtl): Convert to...
6075         (rtx_writer::print_rtl): ...this.
6076         (print_rtl): Reimplement in terms of class rtx_writer.
6077         (print_rtl_single): Rewrite in terms of class rtx_writer.
6078         (print_rtl_single_with_indent): Convert to..
6079         (rtx_writer::print_rtl_single_with_indent): ...this.
6080         (print_simple_rtl): Rewrite in terms of class rtx_writer.
6081         * print-rtl.h (flag_compact): Delete decl.
6082         (class rtx_writer): New class.
6083         * rtl-tests.c (selftest::assert_rtl_dump_eq): Rewrite in terms of
6084         class rtx_writer.
6086 2016-10-26  Jeff Law  <law@redhat.com>
6088         * config/microblaze/microblaze.c (tls_mentioned_p): Avoid
6089         fallthru.
6091         * config/arc/arc.c (acr_print_operand): Adjust fallthru comment.
6092         (check_if_valid_sleep_operand): Add missing fallthru comment.
6093         (arc_register_move_cost): Increase buffer size.
6094         * config/arc/arc.md (cbranch4si_scratch): Add missing fallthru
6095         comment.
6096         * config/arc/predicates.md (move_str_operand): Avoid fallthru.
6098         * config/cr16/cr16.c (cr16_print_operand): Add missing fallthru
6099         comment.  Add gcc_unreachable for path that should never happen.
6101         * config/epiphany/epiphany.c (epiphany_print_operand): Adjust
6102         fallthru comment.
6104 2016-10-26  Jakub Jelinek  <jakub@redhat.com>
6105             Martin Liska  <mliska@suse.cz>
6107         PR fortran/77973
6108         * gimplify.c (gimplify_adjust_omp_clauses_1): For all added map
6109         clauses with OMP_CLAUSE_SIZE being a decl, call omp_notice_variable
6110         on outer context if any.
6112 2016-10-26  Jakub Jelinek  <jakub@redhat.com>
6114         * gen-pass-instances.awk (adjust_linenos): Increment pass_lines[p]
6115         by increment rather than double it.
6116         (insert_remove_pass): Strip leading whitespace from args[3].  Don't
6117         emit a space before args[4].
6118         (END): Don't emit a space before with_arg.
6120 2016-10-26  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6122         * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Add new ARMv8-M
6123         Baseline only alternatives to (i) hold store atomic success value in a
6124         return register rather than a scratch register, (ii) use a low register
6125         for it and to (iii) ensure the cbranchsi insn generated by the split
6126         respect the constraints of Thumb-1 cbranchsi4_insn and
6127         cbranchsi4_scratch.
6128         * config/arm/thumb1.md (cbranchsi4_insn): Add comment to indicate
6129         constraints must match those in atomic_compare_and_swap.
6130         (cbranchsi4_scratch): Likewise.
6132 2016-10-26  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6134         * config/arm/arm.c (arm_expand_compare_and_swap): Add new bdst local
6135         variable.  Add the new parameter to the insn generator.  Set that
6136         parameter to be CC flag for 32-bit targets, bval otherwise.  Set the
6137         return value from the negation of that parameter for Thumb-1, keeping
6138         the logic unchanged otherwise except for using bdst as the destination
6139         register of the compare_and_swap insn.
6140         (arm_split_compare_and_swap): Add explanation about how is the value
6141         returned to the function comment.  Rename scratch variable to
6142         neg_bval.  Adapt initialization of variables holding operands to the
6143         new operand numbers.  Use return register to hold result of store
6144         exclusive for Thumb-1, scratch register otherwise.  Construct the
6145         appropriate cbranch for Thumb-1 targets, keeping the logic unchanged
6146         for 32-bit targets.  Guard Z flag setting to restrict to 32bit targets.
6147         Use gen_cbranchsi4 rather than hand-written conditional branch to loop
6148         for strongly ordered compare_and_swap.
6149         * config/arm/predicates.md (cc_register_operand): New predicate.
6150         * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Use a
6151         match_operand with the new predicate to accept either the CC flag or a
6152         destination register for the boolean return value, restricting it to
6153         CC flag only via constraint.  Adapt operand numbers accordingly.
6155 2016-10-26  Jeff Law  <law@redhat.com>
6157         * config/fr30/fr30.c (fr30_print_operand): Adjust fallthru comment.
6159         * config/frv/frv.c (comparison_string): Do not fall through after
6160         an error.
6162         * config/iq2000/iq2000.c (iq2000_function_arg): Adjust fallthru
6163         comment.
6164         (expand_one_builtin): Add missing break.
6166         * config/m32c/m32c.c (encode_pattern_1): Add fallthru comment.
6167         (m32c_legitimate_address_p): Likewise.
6169         * config/m32r/m32r.c (m32r_print_operand): Adjust fallthru comment.
6171         * config/mcore/mcore.c (mcore_gen_compare): Adjust fallthru comments.
6173         * config/microblaze/microblaze.c (microblaze_function_arg): Adjust
6174         fallthru comment.
6176         * config/msp430/msp430.c (msp430_legitimate_address_p): Adjust
6177         fallthru comment.
6179         * config/nios2/nios2.c (nios2_rtx_costs): Avoid fallthru.
6181         * config/rl78/rl78.c (rl78_calculate_death_notes): Add fallthru
6182         comment.
6183         (rl78_asm_ctor_dtor): Increase buffer size.
6185         * config/stormy16/stormy16.c (xstormy16_asm_output_destrutor): Increase
6186         buffer size.
6187         (xstormy16_asm_output_constructor): Likewise.
6189         * config/pa/pa.c (pa_asm_output_mi_thunk): Increase buffer
6190         size.
6192         * config/h8300/h8300.c (h8300_print_operand): Adjust FALLTHRU
6193         comment to silence warning.
6195         * config/spu/spu.c (spu_sched_reorder): Add missing fallthru comment.
6196         (spu_legitimate_address_p): Fix logic error and add missing fallthru
6197         comment.
6199 2016-10-26  Michael Matz  <matz@suse.de>
6201         PR tree-optimization/78060
6202         PR tree-optimization/78061
6203         PR tree-optimization/78088
6204         * tree-ssa-loop-split.c (easy_exit_values): New function.
6205         (tree_ssa_split_loops): Use it.
6206         (compute_new_first_bound): Change order of operations,
6207         fix invalid use of types.
6209 2016-10-26  Georg-Johann Lay  <avr@gjlay.de>
6211         gen-pass-instances.awk is sensitive to the order in which
6212         passes are added; passes that appear later have to be added first.
6214         PR target/71676
6215         PR target/71678
6216         * config/avr/avr-passes.def: Swap order of directives for
6217         gen-pass-instances.awk.
6219 2016-10-25  Jeff Law  <law@redhat.com>
6221         * config/vax/vax.c (vad_address_cost_1): Add missing FALLTHRU comment.
6222         (vax_notice_update_cc): Likewise.
6224 2016-10-25  Eric Botcazou  <ebotcazou@adacore.com>
6226         * config.gcc (sparc*-*-solaris2*): Adjust.
6227         (sparc64-*-linux*): Likewise.
6228         * config/sparc/default-64.h: Rename to...
6229         * config/sparc/default64.h: ...this.
6230         * config/sparc/sparc.c (sparc_option_override): Replace TARGET_64BIT
6231         with TARGET_ARCH64.
6232         (sparc_mangle_type): Replace !TARGET_64BIT with TARGET_ARCH32.
6233         * config/sparc/sparc.h: Minor tweaks.
6234         * config/sparc/sparc.md: Replace !TARGET_64BIT and !TARGET_ARCH64 with
6235         TARGET_ARCH32 throughout.  Minor various tweaks throughout.
6237 2016-10-25  David Malcolm  <dmalcolm@redhat.com>
6239         * input.c (fcache::file_patch): Add comment about lifetime.
6240         (selftest::cpp_reader_ptr): New class.
6241         (selftest::lexer_test): Convert m_parser from cpp_reader *
6242         to a cpp_reader_ptr, and move m_tempfile to after it.
6243         (selftest::lexer_test::lexer_test): Update for above reordering.
6244         (lexer_test::~lexer_test): Move cleanup of m_parser to
6245         cpp_reader_ptr's dtor.
6247 2016-10-25  David Malcolm  <dmalcolm@redhat.com>
6249         * toplev.c (toplev::main): Remove call to
6250         location_adhoc_data_fini.
6252 2016-10-25  Eric Botcazou  <ebotcazou@adacore.com>
6254         * tree.h (wi::fits_to_tree_p): Accept only 0 and 1 for boolean types.
6255         * tree.c (int_fits_type_p): Likewise.  Adjust head comment.
6257 2016-10-25  David Malcolm  <dmalcolm@redhat.com>
6259         * ggc-tests.c (forcibly_ggc_collect): Rename to...
6260         (selftest::forcibly_ggc_collect): ...this, and remove "static".
6261         (test_basic_struct): Update for above renaming.
6262         (test_length): Likewise.
6263         (test_union): Likewise.
6264         (test_finalization): Likewise.
6265         (test_deletable_global): Likewise.
6266         (test_inheritance): Likewise.
6267         (test_chain_next): Likewise.
6268         (test_user_struct): Likewise.
6269         (test_tree_marking): Likewise.
6270         * selftest-run-tests.c (selftest::run_tests): Call
6271         selftest::forcibly_ggc_collect at the end of the selftests.
6272         * selftest.h (selftest::forcibly_ggc_collect): New decl.
6274 2016-10-25  Jakub Jelinek  <jakub@redhat.com>
6276         PR target/78102
6277         * optabs.def (vcondeq_optab, vec_cmpeq_optab): New optabs.
6278         * optabs.c (expand_vec_cond_expr): For comparison codes
6279         EQ_EXPR and NE_EXPR, attempt vcondeq_optab as fallback.
6280         (expand_vec_cmp_expr): For comparison codes
6281         EQ_EXPR and NE_EXPR, attempt vec_cmpeq_optab as fallback.
6282         * optabs-tree.h (expand_vec_cmp_expr_p, expand_vec_cond_expr_p):
6283         Add enum tree_code argument.
6284         * optabs-query.h (get_vec_cmp_eq_icode, get_vcond_eq_icode): New
6285         inline functions.
6286         * optabs-tree.c (expand_vec_cmp_expr_p): Add CODE argument.  For
6287         CODE EQ_EXPR or NE_EXPR, attempt to use vec_cmpeq_optab as
6288         fallback.
6289         (expand_vec_cond_expr_p): Add CODE argument.  For CODE EQ_EXPR or
6290         NE_EXPR, attempt to use vcondeq_optab as fallback.
6291         * tree-vect-generic.c (expand_vector_comparison,
6292         expand_vector_divmod, expand_vector_condition): Adjust
6293         expand_vec_cmp_expr_p and expand_vec_cond_expr_p callers.
6294         * tree-vect-stmts.c (vectorizable_condition,
6295         vectorizable_comparison): Likewise.
6296         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern,
6297         check_bool_pattern, search_type_for_mask_1): Likewise.
6298         * expr.c (do_store_flag): Likewise.
6299         * doc/md.texi (@code{vec_cmpeq@var{m}@var{n}},
6300         @code{vcondeq@var{m}@var{n}}): Document.
6301         * config/i386/sse.md (vec_cmpeqv2div2di, vcondeq<VI8F_128:mode>v2di):
6302         New expanders.
6304 2016-10-25  Jeff Law  <law@redhat.com>
6306         * config/v850/v850.c (v850_handle_data_area_attribute): Fix fallthru
6307         comment.
6308         (v850_output_aligned_bss): Add missing break.
6310         * config/m68k/m68k.c (m68k_get_reloc_decoration): Add gcc_unreachable.
6312 2016-10-25  Martin Liska  <mliska@suse.cz>
6314         PR sanitizer/78106
6315         * sanopt.c (imm_dom_path_with_freeing_call): Handle gasm
6316         statements as they can also contain possibly a freeing call.
6318 2016-10-25  H.J. Lu  <hongjiu.lu@intel.com>
6319             Martin Liska  <mliska@suse.cz>
6321         PR ipa/78099
6322         * common.opt: Mark flag_ipa_icf_variables as Optimization flag.
6323         * ipa-icf.c (sem_function::get_hash): Add target optimization
6324         node to hash.
6326 2016-10-25  Wilco Dijkstra  <wdijkstr@arm.com>
6328         PR target/78041
6329         * config/arm/neon.md (ashldi3_neon): Add "r 0 i" and "&r r i" variants.
6330         Remove partial overlap check for shift by 1.
6331         (ashldi3_neon): Likewise.
6333 2016-10-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6335         * config/arm/constraints.md (Q constraint): Document its use for
6336         Thumb-1.
6337         (Pf constraint): New constraint for relaxed, consume or relaxed memory
6338         models.
6339         * config/arm/sync.md (atomic_load<mode>): Add new ARMv8-M Baseline only
6340         alternatives to allow any register when memory model matches Pf and
6341         thus lda is used, but only low registers otherwise.  Use unpredicated
6342         output template for Thumb-1 targets.
6343         (atomic_store<mode>): Likewise for stl.
6344         (arm_load_exclusive<mode>): Add new ARMv8-M Baseline only alternative
6345         whose output template does not have predication.
6346         (arm_load_acquire_exclusive<mode>): Likewise.
6347         (arm_load_exclusivesi): Likewise.
6348         (arm_load_acquire_exclusivesi): Likewise.
6349         (arm_store_release_exclusive<mode>): Likewise.
6350         (arm_store_exclusive<mode>): Use unpredicated output template for
6351         Thumb-1 targets.
6353 2016-10-25  Jakub Jelinek  <jakub@redhat.com>
6355         * internal-fn.def (LAUNDER): New internal function.
6356         * internal-fn.c (expand_LAUNDER): New function.
6358 2016-10-25  Georg-Johann Lay  <avr@gjlay.de>
6359             Pitchumani Sivanupandi  <pitchumani.sivanupandi@microchip.com>
6361         New avr target pass to work around performance loss by PR fix.
6363         PR target/71676
6364         PR target/71678
6365         * config/avr/avr.md (casesi_<mode>_sequence) [qi,hi]: New insn.
6366         (*cmp<mode>) [qi,qq,uqq,hi,hq,uhq,ha,uha]: Rename to cmp<mode>3.
6367         * config/avr/predicates.md (extend_operator): New.
6368         * config/avr/avr-passes.def (avr_pass_casesi): Register new pass.
6369         * config/avr/avr-protos.h (avr_casei_sequence_check_operands)
6370         (make_avr_pass_casesi): New prototypes.
6371         * config/avr/avr.c (print-rtl.h): Include it.
6372         (pass_data avr_pass_data_casesi): Data for new pass.
6373         (avr_pass_casesi): New class implementing rtl_opt_pass .avr-casesi.
6374         (make_avr_pass_casesi, avr_parallel_insn_from_insns)
6375         (avr_is_casesi_sequence, avr_casei_sequence_check_operands)
6376         (avr_optimize_casesi): New functions.
6378 2016-10-25  Georg-Johann Lay  <avr@gjlay.de>
6379             Pitchumani Sivanupandi  <pitchumani.sivanupandi@microchip.com>
6381         PR target/71676
6382         PR target/71678
6383         * config/avr/avr.md (casesi): Rewrite avoiding subregs of SI.
6385 2016-10-24  Jakub Jelinek  <jakub@redhat.com>
6387         * dwarf2out.c (gen_subprogram_die): Add DW_AT_reference or
6388         DW_AT_rvalue_reference attributes.
6390 2016-10-24  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6392         * doc/invoke.text (Wint-in-bool-context): Update documentation.
6393         * value-prof.c (stringop_block_profile): Fix a warning.
6395 2016-10-24  Martin Sebor  <msebor@redhat.com>
6397         PR middle-end/77735
6398         * builtins.c (string_length): New function.
6399         (c_strlen): Use string_length.  Correctly handle wide strings.
6400         * gimple-ssa-sprintf.c (target_max_value, target_size_max): New
6401         functions.
6402         (target_int_max): Call target_max_value.
6403         (format_result::knownrange): New data member.
6404         (fmtresult::fmtresult): Define default constructor.
6405         (format_integer): Use it and set format_result::knownrange.
6406         Handle global constants.
6407         (format_floating_max): Add third argument.
6408         (format_floating): Recompute maximum value for %a for each argument.
6409         (get_string_length): Use fmtresult default ctor.
6410         (format_string): Set format_result::knownrange.
6411         (format_directive): Check format_result::knownrange.
6412         (add_bytes): Same.  Correct caret placement in diagnostics.
6413         (pass_sprintf_length::compute_format_length): Set
6414         format_result::knownrange.
6415         (pass_sprintf_length::handle_gimple_call): Use target_size_max.
6417 2016-10-24  Jakub Jelinek  <jakub@redhat.com>
6419         * config/i386/i386.c (ix86_in_large_data_p, ix86_expand_builtin): Use
6420         VAR_P (x) instead of TREE_CODE (x) == VAR_DECL.
6422 2016-10-24  Ximin Luo  <infinity0@pwned.gg>
6424         PR debug/77985
6425         * dwarf2out.c (file_table_relative_p): Remove.
6426         (gen_compile_unit_die, dwarf2out_early_finish): Emit DW_AT_comp_dir
6427         also for absolute paths.
6428         * doc/tm.texi: Update.
6429         * doc/tm.texi.in (SDB and DWARF) <TARGET_FORCE_AT_COMP_DIR>: Remove.
6430         * target.def (force_at_comp_dir): Remove hook.
6431         * config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Remove define.
6433 2016-10-24  Richard Biener  <rguenther@suse.de>
6435         * tree-vrp.c (evrp_dom_walker::before_dom_children): Ignore
6436         backedges when identifying the single predecessor to take
6437         conditional info from.  Use SCEV to get at ranges for loop IVs.
6438         * lto-streamer-out.c (lto_write_mode_table): CSE inner mode to
6439         avoid false warning.
6441 2016-10-24  Georg-Johann Lay  <avr@gjlay.de>
6443         PR target/78093
6444         * doc/extend.texi (AVR Variable Attributes) [absdata]: Document it.
6445         * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_ABSDATA): New macro.
6446         (avr_address_tiny_absdata_p): New static function.
6447         (avr_legitimate_address_p, avr_legitimize_address) [AVR_TINY]: Use
6448         it to determine validity of constant addresses.
6449         (avr_attribute_table) [absdata]: New variable attribute...
6450         (avr_handle_absdata_attribute): ...and handler.
6451         (avr_decl_absdata_p): New static function.
6452         (avr_encode_section_info) [AVR_TINY]: Use it to add flag
6453         AVR_SYMBOL_FLAG_TINY_ABSDATA to respective symbols_refs.
6454         (avr_address_cost) [AVR_TINY]: absdata addresses cost 2.
6456 2016-10-24  Richard Biener  <rguenther@suse.de>
6458         PR tree-optimization/78076
6459         * tree-ssa-loop-split.c (tree_ssa_split_loops): Reset aux
6460         also on the loop tree root.
6462 2016-10-24  Jakub Jelinek  <jakub@redhat.com>
6464         * config/i386/i386.c (ix86_fold_builtin): Handle
6465         IX86_BUILTIN_BEXTR{,I}{32,64}, IX86_BUILTIN_BZHI{32,64},
6466         IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
6467         (ix86_gimple_fold_builtin): Handle IX86_BUILTIN_BZHI{32,64},
6468         IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
6470 2016-10-24  Martin Liska  <mliska@suse.cz>
6472         PR sanitizer/77966
6473         * opts.c (finish_options): Skip conditionally.
6475 2016-10-23  Martin Sebor  <msebor@redhat.com>
6477         PR target/77837
6478         * config/rs6000/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define.
6479         * config/rs6000/linux64.h (TARGET_PRINTF_POINTER_FORMAT): Likewise.
6481 2016-10-23  Eric Botcazou  <ebotcazou@adacore.com>
6483         * config/sparc/sparc.md (cpu_feature): Minor tweak.
6484         (enabled): Likewise.
6485         (movsi_insn, movdi_insn_sp32, movdi_insn_sp64, movsf_insn,
6486         movdf_insn_sp32, movdf_insn_sp64, zero_extendsidi2_insn_sp64,
6487         sign_extendsidi2_insn, mov<VM32:mode>_insn, mov<VM64:mode>_insn_sp64,
6488         mov<VM64:mode>_insn_sp32, not_<code><mode>, nand<mode>_vis,
6489         <code>_not1<mode>_vi, <code>_not2<mode>_vis, one_cmpl<mode>2,
6490         fcmp<code><GCM:gcm_name>, pdistn<mode>_vis): Likewise.
6492 2016-10-23  Eric Botcazou  <ebotcazou@adacore.com>
6494         * config/sparc/sparc-c.c (sparc_target_macros): Replace TARGET_64BIT
6495         with TARGET_ARCH64.  Define __VIS to 0x400 if TARGET_VIS4.
6497 2016-10-21  Andrew Pinski  <apinski@cavium.com>
6499         * config/aarch64/aarch64-cores.def: Rewrite so IMP and PART are
6500         integer constants.
6501         * config/aarch64/driver-aarch64.c (struct aarch64_core_data): Change
6502         implementer_id to unsigned char.
6503         Change part_no to unsigned int.
6504         (AARCH64_BIG_LITTLE): New define.
6505         (INVALID_IMP): New define.
6506         (INVALID_CORE): New define.
6507         (cpu_data): Change the last element's implementer_id and part_no to
6508         integers.
6509         (valid_bL_string_p): Rewrite to ..
6510         (valid_bL_core_p): this for integers instead of strings.
6511         (parse_field): New function.
6512         (contains_string_p): Rewrite to ...
6513         (contains_core_p): this for integers and only for the part_no.
6514         (host_detect_local_cpu): Rewrite handling of implementation and
6515         par num to be integers; simplifying the code.
6517 2016-10-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
6519         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Create nonzero
6520         value range for pointers in more cases.
6522 2016-10-21  Wilco Dijkstra  <wdijkstr@arm.com>
6524         * config/aarch64/aarch64.c (aarch64_add_constant_internal):
6525         Add extra argument to allow emitting the move immediate.
6526         Use add/sub with positive immediate.
6527         (aarch64_add_constant): Add inline function.
6528         (aarch64_add_sp): Likewise.
6529         (aarch64_sub_sp): Likewise.
6530         (aarch64_expand_prologue): Call aarch64_sub_sp.
6531         (aarch64_expand_epilogue): Call aarch64_add_sp.
6532         Decide when to leave out move.
6533         (aarch64_output_mi_thunk): Call aarch64_add_constant.
6535 2016-10-21  Wilco Dijkstra  <wdijkstr@arm.com>
6537         * config/aarch64/aarch64.c (aarch64_layout_frame):
6538         Align FP callee-saves.
6540 2016-10-21  Jakub Jelinek  <jakub@redhat.com>
6542         * config/i386/adxintrin.h (_subborrow_u32, _addcarry_u32,
6543         _addcarryx_u32, _subborrow_u64, _addcarry_u64, _addcarryx_u64):
6544         Formatting fixes.
6545         * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
6546         _rdseed64_step): Likewise.
6547         * config/i386/tbmintrin.h (__bextri_u32): Likewise.
6549         PR target/78057
6550         * config/i386/i386.c: Include fold-const-call.h, tree-vrp.h
6551         and tree-ssanames.h.
6552         (ix86_fold_builtin): Fold IX86_BUILTIN_[LT]ZCNT{16,32,64}
6553         with INTEGER_CST argument.
6554         (ix86_gimple_fold_builtin): New function.
6555         (TARGET_GIMPLE_FOLD_BUILTIN): Define.
6557         * dwarf2out.c (ranges_table): Change into vec<dw_ranges, va_gc> *.
6558         (ranges_by_label): Change into vec<dw_ranges_by_label, va_gc> *.
6559         (ranges_table_allocated, ranges_table_in_use,
6560         ranges_by_label_allocated, ranges_by_label_in_use,
6561         RANGES_TABLE_INCREMENT): Removed.
6562         (add_ranges_num): Use vec_safe_push into ranges_table.
6563         (add_ranges_by_labels): Use vec_safe_push into ranges_by_label.
6564         (output_ranges): Adjust for ranges_table and ranges_by_label
6565         conversion from arrays to vec.
6566         (add_high_low_attributes, dwarf2out_finish): Adjust for range_table
6567         conversion from arrays to vec.
6568         (dwarf2out_c_finalize): Don't clear ranges_table_allocated,
6569         ranges_table_in_use, ranges_by_label_allocated and
6570         ranges_by_label_in_use.  Set ranges_by_label to NULL instead of 0.
6572         * dwarf2out.c (gen_variable_die): Emit DW_AT_const_expr attribute
6573         if needed.  Re-add origin_die variable and its initialization.
6575         * gimplify.c (gimplify_bind_expr): Handle oacc_declare_returns
6576         even for -fstack-reuse=none, or for volatile vars etc.
6578 2016-10-21  David Malcolm  <dmalcolm@redhat.com>
6580         * print-rtl-function.c (flag_compact): Move extern decl to...
6581         * print-rtl.h (flag_compact): ...here.
6582         * rtl-tests.c (selftests::assert_rtl_dump_eq): New function.
6583         (ASSERT_RTL_DUMP_EQ): New macro.
6584         (selftest::test_dumping_regs): New function.
6585         (selftest::test_dumping_insns): New function.
6586         (selftest::test_uncond_jump): Add uses of ASSERT_RTL_DUMP_EQ on
6587         the insns.
6588         (selftest::rtl_tests_c_tests): Call the new test functions.
6590 2016-10-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6592         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
6593         (outgoing_edges_match): Likewise.
6594         (try_crossjump_to_edge): Likewise.
6595         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
6596         (rtl_tidy_fallthru_edge): Likewise.
6597         * rtl.h (tablejump_p): Adjust prototype.
6598         * rtlanal.c (tablejump_p): Return the label as a rtx_insn *.
6600 2016-10-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6602         * rtl.h (label_ref_label): New function.
6603         (set_label_ref_label): New function.
6604         (LABEL_REF_LABEL): Delete.
6605         * alias.c (rtx_equal_for_memref_p): Adjust.
6606         * cfgbuild.c (make_edges): Likewise.
6607         (purge_dead_tablejump_edges): Likewise.
6608         * cfgexpand.c (convert_debug_memory_address): Likewise.
6609         * cfgrtl.c (patch_jump_insn): Likewise.
6610         * combine.c (distribute_notes): Likewise.
6611         * cse.c (hash_rtx_cb): Likewise.
6612         (exp_equiv_p): Likewise.
6613         (fold_rtx): Likewise.
6614         (check_for_label_ref): Likewise.
6615         * cselib.c (rtx_equal_for_cselib_1): Likewise.
6616         (cselib_hash_rtx): Likewise.
6617         * emit-rtl.c (mark_label_nuses): Likewise.
6618         * explow.c (convert_memory_address_addr_space_1): Likewise.
6619         * final.c (output_asm_label): Likewise.
6620         (output_addr_const): Likewise.
6621         * gcse.c (add_label_notes): Likewise.
6622         * genconfig.c (walk_insn_part): Likewise.
6623         * genrecog.c (validate_pattern): Likewise.
6624         * ifcvt.c (cond_exec_get_condition): Likewise.
6625         (noce_emit_store_flag): Likewise.
6626         (noce_get_alt_condition): Likewise.
6627         (noce_get_condition): Likewise.
6628         * jump.c (maybe_propagate_label_ref): Likewise.
6629         (mark_jump_label_1): Likewise.
6630         (redirect_exp_1): Likewise.
6631         (rtx_renumbered_equal_p): Likewise.
6632         * lra-constraints.c (operands_match_p): Likewise.
6633         * print-rtl.c (print_value): Likewise.
6634         * reload.c (find_reloads): Likewise.
6635         * reload1.c (set_label_offsets): Likewise.
6636         * reorg.c (get_branch_condition): Likewise.
6637         * rtl-tests.c (test_uncond_jump): Likewise.
6638         * rtl.c (rtx_equal_p_cb): Likewise.
6639         (rtx_equal_p): Likewise.
6640         * rtlanal.c (reg_mentioned_p): Likewise.
6641         (rtx_referenced_p): Likewise.
6642         (get_condition): Likewise.
6643         * varasm.c (const_hash_1): Likewise.
6644         (compare_constant): Likewise.
6645         (const_rtx_hash_1): Likewise.
6646         (output_constant_pool_1): Likewise.
6648 2016-10-21  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
6650         PR target/71627
6651         * reload.c (find_valid_class_1): Allow regclass if atleast one
6652         regno in regclass is ok. Compute and use rclass size based on
6653         actually available regnos for mode in rclass.
6655 2016-10-21  Eric Botcazou  <ebotcazou@adacore.com>
6657         * config/sparc/sparc-modes.def (CCV): New.
6658         (CCXV): Likewise.
6659         * config/sparc/predicates.md (v_comparison_operator): New.
6660         (icc_comparison_operator): Add support for CCV/CCXV.
6661         (xcc_comparison_operator): Likewise.
6662         * config/sparc/sparc.c (output_cbranch): Likewise.
6663         (sparc_print_operand): Likewise.
6664         * config/sparc/sparc.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
6665         (uaddvdi4): New expander.
6666         (addvdi4): Likewise.
6667         (uaddvdi4_sp32): New instruction.
6668         (addvdi4_sp32): Likewise.
6669         (uaddvsi4): New expander.
6670         (addvsi4): Likewise.
6671         (cmp_ccc_plus_sltu_set): New instruction.
6672         (cmp_ccv_plus): Likewise.
6673         (cmp_ccxv_plus): Likewise.
6674         (cmp_ccv_plus_set): Likewise.
6675         (cmp_ccxv_plus_set): Likewise.
6676         (cmp_ccv_plus_sltu_set): Likewise.
6677         (uaddvdi4): New expander.
6678         (subvdi4): Likewise.
6679         (usubdi4_sp32): New instruction.
6680         (subvdi4_sp32): Likewise.
6681         (usubvsi4): New expander.
6682         (subvsi4): Likewise.
6683         (cmpsi_minus_sltu_set): New instruction.
6684         (cmp_ccv_minus): Likewise.
6685         (cmp_ccxv_minus): Likewise.
6686         (cmp_ccv_minus_set): Likewise.
6687         (cmp_ccxv_minus_set): Likewise.
6688         (cmp_ccv_minus_sltu_set): Likewise.
6689         (unegvdi3): New expander.
6690         (negvdi3): Likewise.
6691         (unegdi3_sp32): New instruction.
6692         (negvdi3_sp32): Likewise.
6693         (unegvsi3): New expander.
6694         (negvsi3): Likewise.
6695         (cmp_ccc_neg_sltu_set): New instruction.
6696         (cmp_ccv_neg): Likewise.
6697         (cmp_ccxv_neg): Likewise.
6698         (cmp_ccv_neg_set): Likewise.
6699         (cmp_ccxv_neg_set): Likewise.
6700         (cmp_ccv_neg_sltu_set): Likewise.
6702         * tree-ssa-loop-split.c: Remove trailing spaces.
6703         * match.pd: Likewise.
6705 2016-10-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6707         PR rtl-optimization/78038
6708         * ree.c (get_defs): Return NULL if a defining insn for REG cannot
6709         be deduced to set REG through the RTL structure.
6710         (make_defs_and_copies_lists): Return false on a failing get_defs call.
6712 2016-10-21  Richard Biener  <rguenther@suse.de>
6714         PR tree-optimization/78051
6715         * tree-vrp.c (evrp_dom_walker::before_dom_children): Update stmt
6716         and mark replaced if folding did something.
6718 2016-10-21  David Edelsohn  <dje.gcc@gmail.com>
6720         * config/rs6000/rs6000.c (rs6000_assemble_visibility): Swap "internal"
6721         and "protected" in visibility types.
6722         (rs6000_xcoff_declare_function_name): Fix formatting.
6723         (rs6000_xcoff_declare_object_name): Fix formatting.
6725 2016-10-21  Uros Bizjak  <ubizjak@gmail.com>
6727         * config/i386/i386.c (ix86_fold_builtin): Handle IX86_BUILTIN_INFQ
6728         and IX86_BUILTIN_HUGE_VALQ here ...
6729         (ix86_expand_builtin): ... not here.
6731 2016-10-20  Jakub Jelinek  <jakub@redhat.com>
6733         * doc/gty.texi (for_user): Use @item next to @findex.
6735 2016-10-20  Uros Bizjak  <ubizjak@gmail.com>
6737         PR target/78037
6738         * config/i386/bmiintrin.h (__tzcnt_u16): Call __builtin_ia32_tzcnt_u16.
6739         (__tzcnt_u32, _tzcnt_u32): Call __builtin_ia32_tzcnt_u32.
6740         (__tzcnt_u64, _tzcnt_u64): Call __builtin_ia32_tzcnt_u64.
6741         * config/i386/lzcntintrin.h (__lzcnt_u16): Call
6742         __builtin_ia32_lzcnt_u16.
6743         (__lzcnt_u32, _lzcnt_u32): Call __builtin_ia32_lzcnt_u32.
6744         (__lzcnt_u64, _lzcnt_u64): Call __builtin_ia32_lzcnt_u64.
6745         * config/i386/i386.md (UNSPEC_LZCNT, UNSPEC_TZCNT): New unspecs.
6746         (ctz<mode>2, *ctz<mode>2): Use SWI48 mode iterator.
6747         (bmi_tzcnt_<mode>): New expander.
6748         (*bmi_tzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
6749         (*bmi_tzcnt_<mode>_falsedep, *bmi_tzcnt_<mode>): New insn patterns.
6750         (clz<mode>2_lzcnt, *clz<mode>2_lzcnt): Use SWI48 mode iterator.
6751         (lzcnt_<mode>): New expander.
6752         (*lzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
6753         (*lzcnt_<mode>_falsedep, *lzcnt_<mode>): New insn patterns.
6754         * config/i386/i386-builtin-types.def (UINT_FTYPE_UINT): New.
6755         (UINT64_FTYPE_UINT64): New.
6756         * config/i386/i386-builtin.def (__builtin_clzs): Remove description.
6757         (__builtin_ia32_lzcnt_u16): New description.
6758         (__builtin_ia32_lzcnt_u32): Ditto.
6759         (__builtin_ia32_lzcnt_u64): Ditto.
6760         (__builtin_ctzs): Remove description.
6761         (__builtin_ia32_tzcnt_u16): New description.
6762         (__builtin_ia32_tzcnt_u32): Ditto.
6763         (__builtin_ia32_tzcnt_u64): Ditto.
6764         * config/i386/i386.c (ix86_expand_args_builtin): Handle
6765         UINT_FTYPE_UINT and UINT64_FTYPE_UINT64.
6767 2016-10-20  Martin Liska  <mliska@suse.cz>
6769         PR lto/78049
6770         * lto-streamer-in.c (fixup_call_stmt_edges_1): Replace value
6771         comparison with STMT_UID_NOT_IN_RANGE.
6772         (fixup_call_stmt_edges): Do not fixup edges of a thunk in
6773         LTRANS.
6775 2016-10-20  Eric Botcazou  <ebotcazou@adacore.com>
6777         * compare-elim.c (conforming_compare): Accept UNSPECs.
6778         (find_comparison_dom_walker::before_dom_children): Deal with
6779         instructions both using and killing the flags register.
6780         (equivalent_reg_at_start): New function extracted from...
6781         (try_eliminate_compare): ...here.  Use it and add support for
6782         registers and UNSPECs as second operand of the compare.
6783         * config/visium/visium-modes.def (CCV): New.
6784         * config/visium/predicates.md (visium_v_comparison_operator): New.
6785         (visium_branch_operator): Deal with CCV mode.
6786         * config/visium/visium.c (visium_select_cc_mode): Likewise.
6787         (output_cbranch): Likewise.
6788         * config/visium/visium.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
6789         (uaddv<mode>4): New expander.
6790         (addv<mode>4): Likewise.
6791         (add<mode>3_insn_set_carry): New instruction.
6792         (add<mode>3_insn_set_overflow): Likewise.
6793         (addsi3_insn_set_overflow): Likewise.
6794         (usubv<mode>4): New expander.
6795         (subv<mode>4): Likewise.
6796         (sub<mode>3_insn_set_carry): New instruction.
6797         (sub<mode>3_insn_set_overflow): Likewise.
6798         (subsi3_insn_set_overflow): Likewise.
6799         (unegv<mode>3): New expander.
6800         (negv<mode>3): Likewise.
6801         (neg<mode>2_insn_set_overflow): New instruction.
6802         (addv_tst<mode>): Likewise.
6803         (subv_tst<mode>): Likewise.
6804         (negv_tst<mode>): Likewise.
6805         (cbranch<mode>4_addv_insn): New splitter and instruction.
6806         (cbranch<mode>4_subv_insn): Likewise.
6807         (cbranch<mode>4_negv_insn): Likewise.
6809 2016-10-20  Richard Biener  <rguenther@suse.de>
6811         * tree-ssa-alias.c (ptrs_compare_unequal): Remove code duplication.
6812         Handle decls possibly not bound.
6813         * tree-ssa-structalias.c (get_constraint_for_ssa_var): Add
6814         nothing_id for decls that might not be bound if we are interested
6815         for the address.
6816         (get_constraint_for_component_ref): Deal with that.
6818 2016-10-20  Michael Matz  <matz@suse.de>
6820         Loop splitting.
6821         * common.opt (-fsplit-loops): New flag.
6822         * passes.def (pass_loop_split): Add.
6823         * opts.c (default_options_table): Add OPT_fsplit_loops entry at -O3.
6824         (enable_fdo_optimizations): Add loop splitting.
6825         * timevar.def (TV_LOOP_SPLIT): Add.
6826         * tree-pass.h (make_pass_loop_split): Declare.
6827         * tree-ssa-loop-manip.h (rewrite_into_loop_closed_ssa_1): Declare.
6828         * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h,
6829         * tree-ssa-loop-split.c: New file.
6830         * Makefile.in (OBJS): Add tree-ssa-loop-split.o.
6831         * doc/invoke.texi (fsplit-loops): Document.
6832         * doc/passes.texi (Loop optimization): Add paragraph about loop
6833         splitting.
6835 2016-10-20  Richard Biener  <rguenther@suse.de>
6837         * cgraphunit.c (analyze_functions): Set node->definition to
6838         false to signal symbol removal to debug_hooks->late_global_decl.
6839         * ipa.c (symbol_table::remove_unreachable_nodes): When not in
6840         WPA signal symbol removal to the debuginfo machinery.
6841         * dwarf2out.c (dwarf2out_late_global_decl): Instead of
6842         using early_finised to guard the we're called for symbol
6843         removal case look at the symtabs definition flag.
6844         (gen_variable_die): Remove redundant check.
6846 2016-10-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6848         * config/s390/s390.md ("prefetch"): Add fallthrough comment.
6850 2016-10-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6852         PR tree-optimization/53979
6853         * match.pd ((a ^ b) | a -> a | b): New pattern.
6855 2016-10-19  John David Anglin  <danglin@gcc.gnu.org>
6857         * config/pa/pa64-hpux.h (PA_INIT_FRAME_DUMMY_ASM_OP): Move to
6858         config/pa/pa64-hpux-lib.h.
6859         (PA_CRTBEGIN_HACK): Likewise.
6860         (DTOR_LIST_BEGIN): Likewise.
6862 2016-10-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6864         * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
6865         register only if "in" and "out" are different registers.
6867 2016-10-19  Eric Botcazou  <ebotcazou@adacore.com>
6869         * omp-low.c (pass_oacc_device_lower::gate): New method.
6870         (execute): Always call execute_oacc_device_lower.
6872 2016-10-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6874         PR tree-optimization/77916
6875         PR tree-optimization/77937
6876         * gimple-ssa-strength-reduction.c (analyze_increments): Remove
6877         stopgap fix.
6878         (insert_initializers): Requirement of initializer for -1 should be
6879         based on pointer-typedness of the candidate basis.
6881 2016-10-19  Bin Cheng  <bin.cheng@arm.com>
6883         PR tree-optimization/78005
6884         * tree-vect-loop-manip.c (vect_gen_prolog_loop_niters): Compute
6885         upper (included) bound for niters of prolog loop.
6886         (vect_gen_scalar_loop_niters): Change parameter VF to VFM1.
6887         Compute niters of scalar loop above which vectorized loop is
6888         preferred, as well as the upper (included) bound for the niters.
6889         (vect_do_peeling): Record niter bound for loops accordingly.
6891 2016-10-19  Thomas Schwinge  <thomas@codesourcery.com>
6893         PR lto/77458
6894         * tree-core.h (enum tree_index): Put the complex types after their
6895         component types.
6896         * tree-streamer.c (verify_common_node_recorded): New function.
6897         (preload_common_nodes) <TREE_CODE (node) == COMPLEX_TYPE>: Use it.
6899 2016-10-19  Martin Liska  <mliska@suse.cz>
6901         * cgraph.h (cgraph_edge::binds_to_current_def_p):
6902         Replace NULL with false as a return value.
6904 2016-10-19  Thomas Schwinge  <thomas@codesourcery.com>
6906         PR tree-optimization/78024
6907         * omp-low.c (oacc_loop_discovery): Call clear_bb_flags before, and
6908         don't clear BB_VISITED after processing.
6910 2016-10-19  Richard Biener  <rguenther@suse.de>
6912         * domwalk.c (dom_walker::walk): Use RPO order.
6914 2016-10-19  Richard Biener  <rguenther@suse.de>
6916         * tree-vrp.c (evrp_dom_walker::evrp_dom_walker): Initialize
6917         stmts_to_remove.
6918         (evrp_dom_walker::~evrp_dom_walker): Free it.
6919         (evrp_dom_walker::stmts_to_remove): Add.
6920         (evrp_dom_walker::before_dom_children): Mark PHIs and stmts
6921         whose output we fully propagate for removal.  Propagate
6922         into BB destination PHI arguments.
6923         (execute_early_vrp): Remove queued stmts.  Dump value ranges
6924         before stmt removal.
6926 2016-10-18  Aldy Hernandez  <aldyh@redhat.com>
6928         * Makefile.in (OBJS): Add gimple-ssa-warn-alloca.o.
6929         * passes.def: Add two instances of pass_walloca.
6930         * tree-pass.h (make_pass_walloca): New.
6931         * gimple-ssa-warn-alloca.c: New file.
6932         * doc/invoke.texi: Document -Walloca, -Walloca-larger-than=, and
6933         -Wvla-larger-than= options.
6935 2016-10-18  Thomas Schwinge  <thomas@codesourcery.com>
6937         * cfg.c (clear_bb_flags): Use FOR_ALL_BB_FN.
6938         * config/nvptx/nvptx.c (nvptx_find_sese): Likewise.
6940 2016-10-18  Kelvin Nilsen  <kelvin@gcc.gnu.org>
6942         * config/rs6000/altivec.h (vec_xl_len): New macro.
6943         (vec_xst_len): New macro.
6944         (vec_cmpnez): New macro.
6945         (vec_cntlz_lsbb): New macro.
6946         (vec_cnttz_lsbb): New macro.
6947         (vec_xlx): New macro.
6948         (vec_xrx): New macro.
6949         (vec_all_nez): New C++ predicate template.
6950         (vec_any_eqz): New C++ predicate template.
6951         (vec_all_ne): Revised C++ predicate template under _ARCH_PWR9
6952         conditional compilation.
6953         (vec_any_eq): Revised C++ predicate template under _ARCH_PWR9
6954         conditional compilation.
6955         (vec_all_nez): New macro.
6956         (vec_any_eqz): New macro.
6957         (vec_all_ne): Revised macro under _ARCH_PWR9 conditional
6958         compilation.
6959         (vec_any_eq): Revised macro under _ARCH_PWR9 conditional
6960         compilation.
6961         * config/rs6000/vector.md (VI): Moved this mode iterator
6962         definition from altivec.md to vector.md.
6963         (UNSPEC_NEZ_P): New value.
6964         (vector_ne_<mode>_p): New expansion for implementation of
6965         vec_all_ne and vec_any_eq built-in functions.
6966         (vector_nez_<mode>_p): New expansion for implementation of
6967         vec_all_nez and vec_any_eqz built-in functions.
6968         (vector_ne_v2di_p): New expansion for implementation of vec_all_ne
6969         and vec_any_eq built-in function.
6970         (cr6_test_for_zero): New commentary to explain this expansion.
6971         (cr6_test_for_zero_reverse): New commentary to explain this expansion.
6972         (cr6_test_for_lt): New commentary to explain this expansion.
6973         (cr6_test_for_lt_reverse): New commentary to explain this
6974         expansion.
6975         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
6976         overloaded function prototypes for vec_all_ne, vec_all_nez,
6977         vec_any_eq, vec_any_eqz, vec_cmpnez, vec_cntlz_lsbb,
6978         vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx, and vec_xrx
6979         built-in functions.
6980         (altivec_resolve_overloaded_builtin): Modify the handling of
6981         ALTIVEC_BUILTIN_VEC_CMPNE to use the Power9 instructions when
6982         the compiler is configured to support TARGET_P9_VECTOR.
6983         * config/rs6000/rs6000-builtin.def (BU_ALTIVEC_P): Add commentary
6984         to explain the special processing that is given to predicate
6985         built-ins introduced using this macro.
6986         (BU_ALTIVEC_OVERLOAD_P): Add commentary to alert maintainers to
6987         the special processing given to predicate built-ins introduced
6988         using this macro.
6989         (BU_VSX_P): Likewise.
6990         (BU_P8V_AV_P): Likewise.
6991         (BU_P9V_AV_P): Likewise.
6992         (BU_P9V_AV_X): New macro.
6993         (BU_P9V_64BIT_AV_X): New macro.
6994         (BU_P9V_VSX_3): New macro.
6995         (BU_P9V_OVERLOAD_P): New macro.
6996         (LXVL): New BU_P9V_64BIT_VSX_2.
6997         (VEXTUBLX): New BU_P9V_AV_2.
6998         (VEXTUBRX): Likewise.
6999         (VEXTUHLX): Likewise.
7000         (VEXTUHRX): Likewise.
7001         (VEXTUWLX): Likewise.
7002         (VEXTUWRX): Likewise.
7003         (STXVL): New BU_P9V_64BIT_AV_X.
7004         (VCLZLSBB): New BU_P9V_AV_1.
7005         (VCTZLSBB): Likewise.
7006         (CMPNEB): New BU_P9V_AV_2.
7007         (CMPNEH): Likewise.
7008         (CMPNEW): Likewise.
7009         (CMPNEF): Likewise.
7010         (CMPNED): Likewise.
7011         (VCMPNEB_P): New BU_P9V_AV_P.
7012         (VCMPNEH_P): Likewise.
7013         (VCMPNEW_P): Likewise.
7014         (VCMPNED_P): Likewise.
7015         (VCMPNEFP_P): Likewise.
7016         (VCMPNEDP_P): Likewise.
7017         (CMPNEZB): New BU_P9V_AV_2.
7018         (CMPNEZH): Likewise.
7019         (CMPNEZW): Likewise.
7020         (VCMPNEZB_P): New BU_P9V_AV_P.
7021         (VCMPNEZH_P): Likewise.
7022         (VCMPNEZW_P): Likewise.
7023         (LXVL): New BU_P9V_OVERLOAD_2.
7024         (STXVL): New BU_P9V_OVERLOAD_3.
7025         (VEXTULX): New BU_P9V_OVERLOAD_2.
7026         (VEXTURX): Likewise.
7027         (CMPNEZ): Likewise.
7028         (VCMPNEZ_P): New BU_P9V_OVERLOAD_P.
7029         (VCMPNE_P): Likewise.
7030         (VCLZLSBB): New BU_P9V_OVERLOAD_1.
7031         (VCTZLSBB): Likewise.
7032         * config/rs6000/rs6000.c (altivec_expand_predicate_builtin): Add
7033         comment to explain mode used for scratch register.
7034         (altivec_expand_stxvl_builtin): New function.
7035         (altivec_expand_builtin): Add case for new constant P9V_BUILTIN_STXVL.
7036         (altivec_init_builtins): Add initialized variable
7037         void_ftype_v16qi_pvoid_long and use this type to define the
7038         built-in function __builtin_altivec_stxvl.
7039         * config/rs6000/vsx.md (UNSPEC_LXVL): New value.
7040         (UNSPEC_STXVL): New value.
7041         (UNSPEC_VCLZLSBB): New value.
7042         (UNSPEC_VCTZLSBB): New value.
7043         (UNSPEC_VEXTUBLX): New value.
7044         (UNSPEC_VEXTUHLX): New value.
7045         (UNSPEC_VEXTUWLX): New value.
7046         (UNSPEC_VEXTUBRX): New value.
7047         (UNSPEC_VEXTUHRX): New value.
7048         (UNSPEC_VEXTUWRX): New value.
7049         (UNSPEC_VCMPNEB): New value.
7050         (UNSPEC_VCMPNEZB): New value.
7051         (UNSPEC_VCMPNEH): New value.
7052         (UNSPEC_VCMPNEZH): New value.
7053         (UNSPEC_VCMPNEW): New value.
7054         (UNSPEC_VCMPNEZW): New value.
7055         (*vsx_ne_<mode>_p): New insn for vector test all not equal with
7056         vector of integer modes.
7057         (*vsx_ne_<mode>_p): New insn for vector test all not equal with
7058         vector of float or double modes.
7059         (*vector_nez_<mode>_p): New insn for vector test all not equal or
7060         zero.
7061         (lxvl): New expand for load VSX vector with length.
7062         (*lxvl): New insn for load VSX vector with length.
7063         (stxvl): New expand for store VSX vector with length.
7064         (*stxvl): New insn for store VSX vector with length.
7065         (vcmpneb): New insn for vector of byte compare not equal.
7066         (vcmpnezb): New insn for vector of byte compare not equal or zero.
7067         (vcmpneh): New insn for vector of half word compare not equal.
7068         (vcmpnezh): New insn for vector of half word compare not equal or
7069         zero.
7070         (vcmpnew): New insn for vector of word compare not equal.
7071         (vcmpne<VSs>): New insn for vector of float or double compare not
7072         equal.
7073         (vcmpnezw): New insn for vector of word compare not equal or zero.
7074         (vclzlsbb): New insn for vector count leading zero
7075         least-significant bits byte.
7076         (vctzlsbb): New insn for vector count trailing zero least
7077         signficant bits byte.
7078         (vextublx): New insn for vector extract unsigned byte left
7079         indexed.
7080         (vextubrx): New insn for vector extract unsigned byte right
7081         indexed.
7082         (vextuhlx): New insn for vector extract unsigned half word left
7083         indexed.
7084         (vextuhrx): New insn for vector extract unsigned half word right
7085         indexed.
7086         (vextuwlx): New insn for vector extract unsigned word left
7087         indexed.
7088         (vextuwrx): New insn for vector extract unsigned word right
7089         indexed.
7090         * config/rs6000/rs6000.h (RS6000_BTC_CONST): Enhance comment to
7091         clarify intent of this constant.
7092         * config/rs6000/altivec.md (VI): Move this mode iterator to vsx.md.
7093         * doc/extend.texi (PowerPC Altivec Built-in Functions): Add
7094         documentation for vec_all_nez, vec_any_eqz, vec_cmpnez,
7095         vec_cntlz_lsbb, vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx,
7096         and vec_xrx functions.
7098 2016-10-18  Andrew Pinski  <apinski@cavium.com>
7100         PR tree-opt/65950
7101         * predict.c (is_exit_with_zero_arg): New function.
7102         (tree_bb_level_predictions): Don't consider paths leading to exit(0)
7103         as nottaken.
7105 2016-10-18  Uros Bizjak  <ubizjak@gmail.com>
7107         PR target/77991
7108         * config/i386/i386.c (legitimize_tls_address)
7109         <case TLS_MODEL_INITIAL_EXEC>: For TARGET_64BIT || TARGET_ANY_GNU_TLS
7110         convert dest to Pmode if different than Pmode.
7112 2016-10-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7114         PR tree-optimization/77916
7115         * gimple-ssa-strength-reduction.c (analyze_increments): Reinstate
7116         stopgap fix, as pointers with -1 increment are still broken.
7118 2016-10-18  David Edelsohn  <dje.gcc@gmail.com>
7120         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Move storage
7121         mapping class decoration from here...
7122         (rs6000_xcoff_encode_section): ...to here.
7124         (rs6000_savres_strategy) [AIX,ELFv2]: Inline FPR save and restore
7125         if shrink-wrapping and optimizing for speed.
7127 2016-10-18  Richard Biener  <rguenther@suse.de>
7129         * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
7130         not visited but non-executable predecessors.  Return taken edge.
7131         Simplify conditions and refactor propagation vs. folding step.
7133 2016-10-18  Segher Boessenkool  <segher@kernel.crashing.org>
7135         * config/rs6000/rs6000.c (rs6000_savres_strategy): Do not select
7136         {SAVE,REST}_MULTIPLE if shrink-wrapping separate components.
7137         (rs6000_get_separate_components): Assert we do not have those
7138         strategies selected.
7140 2016-10-18  Richard Biener  <rguenther@suse.de>
7142         * tree-ssa-propagate.h (substitute_and_fold): Adjust prototype.
7143         * tree-ssa-propagate.c (ssa_prop_fini): Remove final BB_VISITED
7144         clearing.
7145         (substitute_and_fold_dom_walker): Adjust constructor.
7146         (substitute_and_fold_dom_walker::before_dom_children): Remove
7147         do_dce flag and handling (always true).
7148         (substitute_and_fold): Likewise.
7149         * tree-vrp.c (vrp_finalize): Adjust.
7150         (execute_early_vrp): Remove final BB_VISITED clearing.
7151         * tree-ssa-ccp.c (ccp_finalize): Adjust.
7152         * tree-ssa-copy.c (fini_copy_prop): Likewise.
7153         * ira.c (ira): Call clear_bb_flags.
7155 2016-10-18  Richard Biener  <rguenther@suse.de>
7157         * genmatch.c (dt_operand::gen_gimple_expr): Use get_name to
7158         get at the operand to look at with TREE_OPERAND for generic
7159         sub-nodes.
7161 2016-10-18  David Malcolm  <dmalcolm@redhat.com>
7163         * genattrtab.c (attr_string): Use rtx_reader_ptr for call to
7164         copy_md_ptr_loc.
7165         (gen_attr): Use rtx_reader_ptr for lookup_enum_type call.
7166         (write_test_expr): Use rtx_reader_ptr for calls to
7167         fprint_c_condition.
7168         (write_attr_value): Likewise.
7169         * genconditions.c (write_one_condition): Use rtx_reader_ptr for
7170         call to print_md_ptr_loc.
7171         (write_one_condition): Likewise for calls to print_c_condition.
7172         * genconstants.c: Include "statistics.h" and "vec.h".
7173         (main): Update for conversion to member functions.
7174         * genemit.c (emit_c_code): Use rtx_reader_ptr for
7175         call to print_md_ptr_loc.
7176         * genenums.c: Include "statistics.h" and "vec.h".
7177         (main): Update for conversion of traverse_enum_types to a method.
7178         * genmddeps.c: Include "statistics.h" and "vec.h".
7179         * genoutput.c (process_template): Use rtx_reader_ptr for call to
7180         print_md_ptr_loc.
7181         * genpreds.c (write_predicate_subfunction): Likewise.
7182         (write_predicate_expr): Likewise for calls to print_c_condition.
7183         * genrecog.c (print_test): Likewise.
7184         * gensupport.c (process_rtx): Likewise for calls to
7185         copy_md_ptr_loc and join_c_conditions.
7186         (alter_test_for_insn): Likewise for call to join_c_conditions.
7187         (process_substs_on_one_elem): Likewise.
7188         (gen_mnemonic_setattr): Update for move of string_obstack to a
7189         field of rtx_reader.
7190         (mnemonic_htab_callback): Likewise.  Fix formatting.
7191         (gen_mnemonic_attr): Likewise.
7192         * gentarget-def.c (def_target_insn): Use rtx_reader_ptr for calls
7193         to print_c_condition.
7194         * read-md.c: Include "statistics.h" and "vec.h".
7195         (string_obstack): Convert this global to field "m_string_obstack"
7196         of class rtx_reader.
7197         (ptr_locs): Likewise, as "m_ptr_locs".
7198         (ptr_loc_obstack): Likewise, as "m_ptr_loc_obstack".
7199         (joined_conditions): Likewise, as "m_joined_conditions".
7200         (joined_conditions_obstack): Likewise, as "m_joined_conditions_obstack".
7201         (md_constants): Likewise, as "m_md_constants".
7202         (enum_types): Likewise, as "m_enum_types".
7203         (set_md_ptr_loc): Convert to...
7204         (rtx_reader::set_md_ptr_loc): ...member function.
7205         (get_md_ptr_loc): Convert to...
7206         (rtx_reader::get_md_ptr_loc): ...member function.
7207         (copy_md_ptr_loc): Convert to...
7208         (rtx_reader::copy_md_ptr_loc): ...member function.
7209         (fprint_md_ptr_loc): Convert to...
7210         (rtx_reader::fprint_md_ptr_loc): ...member function.
7211         (print_md_ptr_loc): Convert to...
7212         (rtx_reader::print_md_ptr_loc): ...member function.
7213         (join_c_conditions): Convert to...
7214         (rtx_reader::join_c_conditions): ...member function.
7215         (fprint_c_condition): Convert to...
7216         (rtx_reader::fprint_c_condition): ...member function.
7217         (print_c_condition): Convert to...
7218         (rtx_reader::print_c_condition): ...member function.
7219         (read_name): Convert to...
7220         (rtx_reader::read_name): ...member function.
7221         (read_escape): Convert to...
7222         (rtx_reader::read_escape): ...member function.
7223         (read_quoted_string): Convert to...
7224         (rtx_reader::read_quoted_string): ...member function.
7225         (read_braced_string): Convert to...
7226         (rtx_reader::read_braced_string): ...member function.
7227         (read_string): Convert to...
7228         (rtx_reader::read_string): ...member function.
7229         (read_skip_construct): Convert to...
7230         (rtx_reader::read_skip_construct): ...member function.
7231         (handle_constants): Convert to...
7232         (rtx_reader::handle_constants): ...member function.
7233         (traverse_md_constants): Convert to...
7234         (rtx_reader::traverse_md_constants): ...member function.
7235         (handle_enum): Convert to...
7236         (rtx_reader::handle_enum): ...member function.
7237         (lookup_enum_type): Convert to...
7238         (rtx_reader::lookup_enum_type): ...member function.
7239         (traverse_enum_types): Convert to...
7240         (rtx_reader::traverse_enum_types): ...member function.
7241         (rtx_reader::rtx_reader): Move initializations
7242         of various former global data from rtx_reader::read_md_files to
7243         here, as fields, along with the call to unlock_std_streams.
7244         (rtx_reader::~rtx_reader): Clean up m_base_dir, and clean up
7245         the new fields.
7246         (rtx_reader::read_md_files): Move initializations of various
7247         global data from here to the ctor.
7248         * read-md.h (read_name): Convert to...
7249         (rtx_reader::read_name): ...member function.
7250         (rtx_reader::read_escape): New method decl.
7251         (read_quoted_string): Convert to...
7252         (rtx_reader::read_quoted_string): ...member function.
7253         (rtx_reader::read_braced_string): New method decl.
7254         (read_string): Convert to...
7255         (rtx_reader::read_string): ...member function.
7256         (rtx_reader::read_skip_construct): New method decl.
7257         (rtx_reader::set_md_ptr_loc): New method decl.
7258         (rtx_reader::get_md_ptr_loc): New method decl.
7259         (copy_md_ptr_loc): Convert to...
7260         (rtx_reader::copy_md_ptr_loc): ...member function.
7261         (fprint_md_ptr_loc): Convert to...
7262         (rtx_reader::fprint_md_ptr_loc): ...member function.
7263         (print_md_ptr_loc): Convert to...
7264         (rtx_reader::print_md_ptr_loc): ...member function.
7265         (rtx_reader::lookup_enum_type): New method decl.
7266         (rtx_reader::traverse_enum_types): New method decl.
7267         (rtx_reader::handle_constants): New method decl.
7268         (traverse_md_constants): Convert to...
7269         (rtx_reader::traverse_md_constants): ...member function.
7270         (rtx_reader::handle_enum): New method decl.
7271         (rtx_reader::join_c_conditions): New method decl.
7272         (fprint_c_condition): Convert to...
7273         (rtx_reader::fprint_c_condition): ...member function.
7274         (print_c_condition): Convert to...
7275         (rtx_reader::print_c_condition): ...member function.
7276         (rtx_reader::apply_iterator_to_string): New method decl.
7277         (rtx_reader::copy_rtx_for_iterators): New method decl.
7278         (rtx_reader::read_conditions): New method decl.
7279         (rtx_reader::record_potential_iterator_use): New method decl.
7280         (rtx_reader::read_mapping): New method decl.
7281         (rtx_reader::read_rtx): New method decl.
7282         (rtx_reader::read_rtx_code): New method decl.
7283         (rtx_reader::read_rtx_operand): New method decl.
7284         (rtx_reader::read_nested_rtx): New method decl.
7285         (rtx_reader::read_rtx_variadic): New method decl.
7286         (rtx_reader::get_string_obstack): New method.
7287         (rtx_reader::get_md_constants): New method.
7288         (string_obstack): Convert global variable decl to...
7289         (rtx_reader::m_string_obstack): ...this new field.
7290         (rtx_reader::m_ptr_locs): New field.
7291         (rtx_reader::m_ptr_loc_obstack): New field.
7292         (rtx_reader::m_joined_conditions): New field.
7293         (rtx_reader::m_joined_conditions_obstack): New field.
7294         (rtx_reader::m_md_constants): New field.
7295         (rtx_reader::m_enum_types): New field.
7296         * read-rtl.c (apply_iterator_to_string): Convert to...
7297         (rtx_reader::apply_iterator_to_string): ...member function.
7298         (copy_rtx_for_iterators): Convert to...
7299         (rtx_reader::copy_rtx_for_iterators): ...member function.
7300         (add_condition_to_string): Use rtx_reader_ptr for
7301         calls join_c_conditions.
7302         (apply_iterators): Use rtx_reader_ptr for calls to
7303         join_c_conditions and copy_rtx_for_iterators.
7304         (read_conditions): Convert to...
7305         (rtx_reader::read_conditions): ...member function.
7306         (record_potential_iterator_use): Convert to...
7307         (rtx_reader::record_potential_iterator_use): ...member function.
7308         (read_mapping): Convert to...
7309         (rtx_reader::read_mapping): ...member function.
7310         (read_subst_mapping): Use rtx_reader_ptr for read_string call.
7311         (read_rtx): Convert to...
7312         (rtx_reader::read_rtx): ...member function.
7313         (read_rtx_code): Convert to...
7314         (rtx_reader::read_rtx_code): ...member function.
7315         (read_rtx_operand): Convert to...
7316         (rtx_reader::read_rtx_operand): ...member function.  Update for move
7317         of string_obstack to a field.
7318         (read_nested_rtx): Convert to..
7319         (rtx_reader::read_nested_rtx): ...member function.
7320         (read_rtx_variadic): Convert to..
7321         (rtx_reader::read_rtx_variadic): ...member function.
7323 2016-10-18  Kugan Vivekanandarajah  <kuganv@linaro.org>
7325         * tree-vrp.c (get_value_range): Check get_ptr_nonnull.
7327 2016-10-18  Kugan Vivekanandarajah  <kuganv@linaro.org>
7329         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Set value range
7330         for pointer type too.
7331         (ipcp_update_vr): set_ptr_nonnull for pointer.
7333 2016-10-18  Kugan Vivekanandarajah  <kuganv@linaro.org>
7335         * tree-ssa-alias.h (pt_solution_singleton_or_null_p): Renamed from
7336         pt_solution_singleton_p.
7337         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use renamed
7338         pt_solution_singleton_or_null_p from pt_solution_singleton_p.
7339         * tree-ssa-structalias.c (find_what_p_points_to): Preserve
7340         pointer nonnull computed by VRP.
7341         Also Conservatively set pt.null to 1.
7342         (pt_solution_reset): Conservatively set pt.null to 1.
7343         (pt_solution_singleton_or_null_p): Renamed from
7344         pt_solution_singleton_p.
7345         * tree-ssanames.h (set_ptr_nonnull): Declare.
7346         (get_ptr_nonnull): Likewise.
7347         * tree-ssanames.c (set_ptr_nonnull): New.
7348         (get_ptr_nonnull): Likewise.
7349         * tree-vrp.c (vrp_finalize): Set ptr that are nonnull.
7350         (evrp_dom_walker::before_dom_children): Likewise.
7352 2016-10-17  Eric Botcazou  <ebotcazou@adacore.com>
7354         * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
7355         * config/i386/i386.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
7356         * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
7357         * config/ia64/ia64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
7358         * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to.
7359         * config/rs6000/rs6000.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
7360         (rs6000_option_override_internal): Clear it if ABI_AIX.
7361         * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
7362         * config/sparc/sparc.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ... here.
7364 2016-10-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7366         * gimple-ssa-strength-reduction.c (record_increment): Remove
7367         garbage comment.
7369 2016-10-17  Eric Botcazou  <ebotcazou@adacore.com>
7371         * expmed.c (expand_shift_1): Add MAY_FAIL parameter and do not assert
7372         that the result is non-zero if it is true.
7373         (maybe_expand_shift): New wrapper around expand_shift_1.
7374         (emit_store_flag): Call maybe_expand_shift in lieu of expand_shift.
7376 2016-10-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7378         PR tree-optimization/77916
7379         * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge):
7380         Don't allow a MINUS_EXPR for pointer arithmetic for either known
7381         or unknown strides.
7382         (record_increment): Increments of -1 for unknown strides just use
7383         a multiply initializer like other negative values.
7384         (analyze_increments): Remove stopgap solution for -1 increment
7385         applied to pointer arithmetic.
7387 2016-10-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
7389         * dominance.c (dom_info::dom_info): Add new constructor for region
7390         which is vector of basic blocks.
7391         (dom_init): New method to initialize members common for both
7392         constructors.
7393         (dom_info::dom_info): Invoke dom_init for partial initialization.
7394         (dom_info::get_idom): Add check to corner cases on basic blocks which
7395         are not in region.
7396         (dom_info::calc_dfs_tree): Check M_FAKE_EXIT_EDGE instead of M_REVERSE
7397         to detect unreachable bbs.
7398         (dom_info::calc_idoms): Likewise.
7399         (compute_dom_fast_query_in_region): New function.
7400         (calculate_dominance_info_for_region): Likewise.
7401         (free_dominance_info_for_region): Likewise.
7402         * dominance.h: Add prototypes for introduced region-based functions
7403         * tree-if-conv.c (build_region): New function.
7404         (if_convertible_loop_p_1): Invoke local version of post-dominators
7405         calculation before basic block predication with subsequent freeing
7406         post-dominator info.
7407         (tree_if_conversion): Remove free of post-dominator info
7408         (pass_if_conversion::execute): Delete detection of infinite loops
7409         and fake edges to exit block since post-dominator calculation is
7410         performed per if-converted loop only.
7412 2016-10-17  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7414         PR target/77308
7415         * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
7416         register explicitly.
7417         * config/arm/arm.md (ashldi3, ashrdi3, lshrdi3): Don't FAIL if
7418         optimizing for size.
7420 2016-10-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7422         * config/aarch64/aarch64.c: Delete inclusion of
7423         cortex-a57-fma-steering.h.
7424         (aarch64_override_options): Delete call
7425         to aarch64_register_fma_steering.
7426         * config/aarch64/aarch64-protos.h (make_pass_fma_steering): Declare.
7427         * config/aarch64/cortex-a57-fma-steering.h: Delete.
7428         * config/aarch64/aarch64-passes.def: New file.
7429         * config/aarch64/cortex-a57-fma-steering.c
7430         (aarch64_register_fma_steering): Delete definition.
7431         (make_pass_fma_steering): Remove static qualifier.
7432         * config/aarch64/t-aarch64 (PASSES_EXTRA): New directive.
7433         (cortex-a57-fma-steering.o): Remove dependency on
7434         cortex-a57-fma-steering.h.
7436 2016-10-17  Eric Botcazou  <ebotcazou@adacore.com>
7438         * explow.c (validize_mem): Do not modify the argument in-place.
7440 2016-10-17  Thomas Schwinge  <thomas@codesourcery.com>
7442         * tree-streamer.c (record_common_node): Explicitly list expected
7443         tree codes.
7445 2016-10-17  Richard Biener  <rguenther@suse.de>
7447         PR tree-optimization/77988
7448         * tree-vrp.c (remove_range_assertions): Use replace_uses_by.
7450 2016-10-17  Marek Polacek  <polacek@redhat.com>
7452         * Makefile.in (C_COMMON_OBJS): Add c-family/c-attribs.o.
7454 2016-10-17  Richard Biener  <rguenther@suse.de>
7456         * bb-reorder.c (reorder_basic_blocks_simple): Clear BB_VISITED
7457         before using it.
7459 2016-10-17  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7461         PR tree-optimization/71636
7462         * match.pd (x & ((1 << b) - 1) -> x & ~(~0 << b)): New pattern.
7464 2016-10-17  Richard Biener  <rguenther@suse.de>
7466         * gimplify.c (gimplify_function_tree): Do not move the outer
7467         binds block.
7469 2016-10-17  Jakub Jelinek  <jakub@redhat.com>
7471         * langhooks.h (struct lang_hooks_for_decls): Remove
7472         function_decl_explicit_p, function_decl_deleted_p and
7473         function_decl_defaulted hooks.  Add decl_dwarf_attribute hook.
7474         * langhooks-def.h (lhd_decl_dwarf_attribute): Declare.
7475         (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
7476         LANG_HOOKS_FUNCTION_DECL_DELETED_P,
7477         LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Remove.
7478         (LANG_HOOKS_DECL_DWARF_ATTRIBUTE): Define.
7479         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
7480         LANG_HOOKS_FUNCTION_DECL_DELETED_P and
7481         LANG_HOOKS_FUNCTION_DECL_DEFAULTED.  Add
7482         LANG_HOOKS_DECL_DWARF_ATTRIBUTE.
7483         * langhooks.c (lhd_decl_dwarf_attribute): New function.
7484         * dwarf2out.c (gen_subprogram_die): Use
7485         lang_hooks.decls.decl_dwarf_attribute instead of
7486         lang_hooks.decls.function_decl_*.
7488 2016-10-16  Eric Botcazou  <ebotcazou@adacore.com>
7490         PR ada/37139
7491         PR ada/67205
7492         * common.opt (-ftrampolines): New option.
7493         * doc/invoke.texi (Code Gen Options): Document it.
7494         * doc/tm.texi.in (Trampolines): Add TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
7495         * doc/tm.texi: Regenerate.
7496         * builtins.def: Add init_descriptor and adjust_descriptor.
7497         * builtins.c (expand_builtin_init_trampoline): Do not issue a warning
7498         on platforms with descriptors.
7499         (expand_builtin_init_descriptor): New function.
7500         (expand_builtin_adjust_descriptor): Likewise.
7501         (expand_builtin) <BUILT_IN_INIT_DESCRIPTOR>: New case.
7502         <BUILT_IN_ADJUST_DESCRIPTOR>: Likewise.
7503         * calls.c (prepare_call_address): Remove SIBCALLP parameter and add
7504         FLAGS parameter.  Deal with indirect calls by descriptor and adjust.
7505         Set STATIC_CHAIN_REG_P on the static chain register, if any.
7506         (call_expr_flags): Set ECF_BY_DESCRIPTOR for calls by descriptor.
7507         (expand_call): Likewise.  Move around call to prepare_call_address
7508         and pass all flags to it.
7509         * cfgexpand.c (expand_call_stmt): Reinstate CALL_EXPR_BY_DESCRIPTOR.
7510         * gimple.h (enum gf_mask): New GF_CALL_BY_DESCRIPTOR value.
7511         (gimple_call_set_by_descriptor): New setter.
7512         (gimple_call_by_descriptor_p): New getter.
7513         * gimple.c (gimple_build_call_from_tree): SetCALL_EXPR_BY_DESCRIPTOR.
7514         (gimple_call_flags): Deal with GF_CALL_BY_DESCRIPTOR.
7515         * langhooks.h (struct lang_hooks): Add custom_function_descriptors.
7516         * langhooks-def.h (LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS): Define.
7517         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS.
7518         * rtl.h (STATIC_CHAIN_REG_P): New macro.
7519         * rtlanal.c (find_first_parameter_load): Skip static chain registers.
7520         * target.def (custom_function_descriptors): New POD hook.
7521         * tree.h (FUNC_ADDR_BY_DESCRIPTOR): New flag on ADDR_EXPR.
7522         (CALL_EXPR_BY_DESCRIPTOR): New flag on CALL_EXPR.
7523         * tree-core.h (ECF_BY_DESCRIPTOR): New mask.
7524         Document FUNC_ADDR_BY_DESCRIPTOR and CALL_EXPR_BY_DESCRIPTOR.
7525         * tree.c (make_node_stat) <tcc_declaration>: Use FUNCTION_ALIGNMENT.
7526         (build_common_builtin_nodes): Initialize init_descriptor and
7527         adjust_descriptor.
7528         * tree-nested.c: Include target.h.
7529         (struct nesting_info): Add 'any_descr_created' field.
7530         (get_descriptor_type): New function.
7531         (lookup_element_for_decl): New function extracted from...
7532         (create_field_for_decl): Likewise.
7533         (lookup_tramp_for_decl): ...here.  Adjust.
7534         (lookup_descr_for_decl): New function.
7535         (convert_tramp_reference_op): Deal with descriptors.
7536         (build_init_call_stmt): New function extracted from...
7537         (finalize_nesting_tree_1): ...here.  Adjust and deal with descriptors.
7538         * defaults.h (FUNCTION_ALIGNMENT): Define.
7539         (TRAMPOLINE_ALIGNMENT): Set to above instead of FUNCTION_BOUNDARY.
7540         * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
7541         * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
7542         * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS):Likewise.
7543         * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
7545 2016-10-16  Eric Botcazou  <ebotcazou@adacore.com>
7547         * config/sparc/sparc.c (sparc_expand_vector_init): Only accept literal
7548         constants in CONST_VECTORs.
7550 2016-10-15  Eric Botcazou  <ebotcazou@adacore.com>
7552         * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use a scratch
7553         register as destination of bmask.
7554         (vector_init_bshuffle): Likewise.
7555         * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
7556         (bmaskdi_vis): Enable only in 64-bit mode.
7558 2016-10-15  Segher Boessenkool  <segher@kernel.crashing.org>
7560         * config/rs6000/rs6000.c (rs6000_get_separate_components): Do not
7561         make LR a separately shrink-wrapped component unless savres_strategy
7562         contains all of {SAVE,REST}_INLINE_{GPRS,FPRS,VRS}.  Do not wrap
7563         GPRs unless both {SAVE,REST}_INLINE_GPRS.  Do not disallow all
7564         wrapping when not both {SAVE,REST}_INLINE_GPRS.
7566 2016-10-15  Eric Botcazou  <ebotcazou@adacore.com>
7568         * optabs.c (expand_parity): Fix mode mismatch, add final conversion
7569         and keep looping on failure.
7571 2016-10-14  David Malcolm  <dmalcolm@redhat.com>
7573         * print-rtl-function.c (print_edge): Omit "(flags)" when none are
7574         set.
7575         (print_rtx_function): Update example in comment for...
7576         * print-rtl.c (print_rtx_operand_code_r): In compact mode, print
7577         non-virtual pseudos with a '%' sigil followed by the regno, offset
7578         by (LAST_VIRTUAL_REGISTER + 1), so that the first non-virtual
7579         pseudo is dumped as "%0".
7581 2016-10-14  Jakub Jelinek  <jakub@redhat.com>
7583         PR middle-end/77959
7584         * expr.c (expand_expr_real_1) <case CONST_DECL>: For EXPAND_WRITE
7585         return a MEM.
7587 2016-10-14  Eric Botcazou  <ebotcazou@adacore.com>
7589         * config/sparc/sparc-passes.def: New file.
7590         * config/sparc/t-sparc (PASSES_EXTRA): Add sparc-passes.def.
7591         * config/sparc/sparc-protos.h (make_pass_work_around_errata): New.
7592         * config/sparc/sparc.c (sparc_option_override): Don't register passes.
7594 2016-10-14  Pat Haugen  <pthaugen@us.ibm.com>
7596         * loop-unroll.c (unroll_loop_runtime_iterations): Condition initial
7597         loop peel to loops with exit test at the beginning.
7599 2016-10-14  Pat Haugen  <pthaugen@us.ibm.com>
7601         PR rtl-optimization/68212
7602         * cfgloopmanip.c (duplicate_loop_to_header_edge): Use preheader edge
7603         frequency when computing scale factor for peeled copies.
7604         * loop-unroll.c (unroll_loop_runtime_iterations): Fix freq/count
7605         values for switch/peel blocks/edges.
7607 2016-10-14  Pedro Alves  <palves@redhat.com>
7609         * coretypes.h (OVERRIDE, FINAL): Delete, moved to include/ansidecl.h.
7611 2016-10-14  Catherine Moore  <clm@codesourcery.com>
7613         * config/mips/mips.c (mips_prepare_pch_save): Initialize
7614         micromips_globals to zero.
7616 2016-10-14  Richard Biener  <rguenther@suse.de>
7618         PR tree-optimization/77979
7619         * tree-vrp.c (compare_name_with_value): Handle released SSA names
7620         in the equivalency sets.
7621         (compare_names): Likewise.
7623 2016-10-14  Martin Liska  <mliska@suse.cz>
7625         * builtins.h(target_char_cst_p): Declare the function.
7626         * builtins.c (fold_builtin_memchr): Remove.
7627         (target_char_cst_p): Move the function from gimple-fold.c.
7628         (fold_builtin_3): Do not call the function.
7629         * gimple-fold.c (gimple_fold_builtin_memchr): New function.
7630         (gimple_fold_builtin): Call the function.
7631         * fold-const-call.c (fold_const_call_1): Handle CFN_BUILT_IN_MEMCHR.
7633 2016-10-14  Martin Liska  <mliska@suse.cz>
7635         * builtins.c (fold_builtin_strcmp): Remove function.
7636         (fold_builtin_strncmp): Likewise.
7637         (fold_builtin_2): Remove call of the function.
7638         (fold_builtin_3): Likewise.
7639         * fold-const-call.c (fold_const_call): Add constant folding
7640         for CFN_BUILT_IN_STRCASECMP and CFN_BUILT_IN_STRNCASECMP.
7641         * fold-const-call.h (build_cmp_result): Declare the function.
7642         * gimple-fold.c (gimple_load_first_char): New function.
7643         (gimple_fold_builtin_string_compare): Likewise.
7644         (gimple_fold_builtin): Call the function.
7646 2016-10-14  Nathan Sidwell  <nathan@acm.org>
7648         * gcov-io.c (gcov_open): Deconstify 'mode'.
7650 2016-10-14  Martin Liska  <mliska@suse.cz>
7652         * fold-const.c (c_getstr): Support of properly \0-terminated
7653         string constants.  New argument is added.
7654         * fold-const.h: New argument is added.
7656 2016-10-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7658         * config/aarch64/aarch64.c (aarch64_print_hint_for_core_or_arch):
7659         New function.
7660         (aarch64_print_hint_for_core): Likewise.
7661         (aarch64_print_hint_for_arch): Likewise.
7662         (aarch64_validate_march): Use it.  Fix indentation in type signature.
7663         (aarch64_validate_mcpu): Use aarch64_print_hint_for_core_or_arch.
7664         (aarch64_validate_mtune): Likewise.
7665         (aarch64_handle_attr_arch): Likewise.
7666         (aarch64_handle_attr_cpu): Likewise.
7667         (aarch64_handle_attr_tune): Likewise.
7669 2016-10-14  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7671         * optabs.def: Remove optab function gen_int_libfunc for sdivmod_optab
7672         and udivmod_optab.
7674 2016-10-13  Andreas Schwab  <schwab@linux-m68k.org>
7676         * config/m68k/m68k.c (m68k_option_override): Check
7677         opt_fstack_limit_symbol_arg and opt_fstack_limit_register_no
7678         instead of stack_limit_rtx.
7680 2016-10-13  Jakub Jelinek  <jakub@redhat.com>
7682         * dwarf2out.c (gen_member_die): Handle inline static data member
7683         definitions.
7685 2016-10-13  Nathan Sidwell  <nathan@acm.org>
7687         * gcov-io.c (gcov_open): Fix documentation.  Simplify setting
7688         gcov_var.mode.  Remove unnecessary fstat.
7690 2016-10-13  Segher Boessenkool  <segher@kernel.crashing.org>
7692         PR bootstrap/77962
7693         * function.c (thread_prologue_and_epilogue_insns): Call all
7694         make_*logue_seq in the same order as traditional.  Call them
7695         all a second time if shrink_wrapped_separate.
7697 2016-10-13  Marek Polacek  <polacek@redhat.com>
7699         * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
7700         insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Don't
7701         use -Wno-error.
7703 2016-10-13  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7705         PR tree-optimization/77937
7706         * gimple-ssa-strength-reduction.c (analyze_increments): Set cost
7707         to infinite when we have a pointer with an increment of -1.
7709 2016-10-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7711         * coretypes.h: Move MEMMODEL_* macros and enum memmodel definition
7712         into ...
7713         * memmodel.h: This file.
7714         * alias.c, asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
7715           caller-save.c, calls.c, ccmp.c, cfgbuild.c, cfgcleanup.c,
7716           cfgexpand.c, cfgloopanal.c, cfgrtl.c, cilk-common.c, combine.c,
7717           combine-stack-adj.c, common/config/aarch64/aarch64-common.c,
7718           common/config/arm/arm-common.c, common/config/bfin/bfin-common.c,
7719           common/config/c6x/c6x-common.c, common/config/i386/i386-common.c,
7720           common/config/ia64/ia64-common.c, common/config/nvptx/nvptx-common.c,
7721           compare-elim.c, config/aarch64/aarch64-builtins.c,
7722           config/aarch64/aarch64-c.c, config/aarch64/cortex-a57-fma-steering.c,
7723           config/arc/arc.c, config/arc/arc-c.c, config/arm/arm-builtins.c,
7724           config/arm/arm-c.c, config/avr/avr.c, config/avr/avr-c.c,
7725           config/avr/avr-log.c, config/bfin/bfin.c, config/c6x/c6x.c,
7726           config/cr16/cr16.c, config/cris/cris.c, config/darwin-c.c,
7727           config/darwin.c, config/epiphany/epiphany.c,
7728           config/epiphany/mode-switch-use.c,
7729           config/epiphany/resolve-sw-modes.c, config/fr30/fr30.c,
7730           config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
7731           config/i386/i386-c.c, config/i386/winnt.c, config/iq2000/iq2000.c,
7732           config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
7733           config/m68k/m68k.c, config/mcore/mcore.c,
7734           config/microblaze/microblaze.c, config/mmix/mmix.c,
7735           config/mn10300/mn10300.c, config/moxie/moxie.c,
7736           config/msp430/msp430.c, config/nds32/nds32-cost.c,
7737           config/nds32/nds32-intrinsic.c, config/nds32/nds32-md-auxiliary.c,
7738           config/nds32/nds32-memory-manipulation.c,
7739           config/nds32/nds32-predicates.c, config/nds32/nds32.c,
7740           config/nios2/nios2.c, config/nvptx/nvptx.c, config/pa/pa.c,
7741           config/pdp11/pdp11.c, config/rl78/rl78.c, config/rs6000/rs6000-c.c,
7742           config/rx/rx.c, config/s390/s390-c.c, config/s390/s390.c,
7743           config/sh/sh.c, config/sh/sh-c.c, config/sh/sh-mem.cc,
7744           config/sh/sh_treg_combine.cc, config/sol2.c, config/spu/spu.c,
7745           config/stormy16/stormy16.c, config/tilegx/tilegx.c,
7746           config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
7747           config/visium/visium.c, config/vms/vms-c.c, config/xtensa/xtensa.c,
7748           coverage.c, cppbuiltin.c, cprop.c, cse.c, cselib.c, dbxout.c, dce.c,
7749           df-core.c, df-problems.c, df-scan.c, dojump.c, dse.c, dwarf2asm.c,
7750           dwarf2cfi.c, dwarf2out.c, emit-rtl.c, except.c, explow.c, expmed.c,
7751           expr.c, final.c, fold-const.c, function.c, fwprop.c, gcse.c,
7752           ggc-page.c, haifa-sched.c, hsa-brig.c, hsa-gen.c, hw-doloop.c,
7753           ifcvt.c, init-regs.c, internal-fn.c, ira-build.c, ira-color.c,
7754           ira-conflicts.c, ira-costs.c, ira-emit.c, ira-lives.c, ira.c, jump.c,
7755           loop-doloop.c, loop-invariant.c, loop-iv.c, loop-unroll.c,
7756           lower-subreg.c, lra.c, lra-assigns.c, lra-coalesce.c,
7757           lra-constraints.c, lra-eliminations.c, lra-lives.c, lra-remat.c,
7758           lra-spills.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
7759           postreload-gcse.c, postreload.c, predict.c, print-rtl-function.c,
7760           recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
7761           reload.c, reload1.c, reorg.c, resource.c, rtl-chkp.c, rtl-tests.c,
7762           rtlanal.c, rtlhooks.c, sched-deps.c, sched-rgn.c, sdbout.c,
7763           sel-sched-ir.c, sel-sched.c, shrink-wrap.c, simplify-rtx.c,
7764           stack-ptr-mod.c, stmt.c, stor-layout.c, target-globals.c,
7765           targhooks.c, toplev.c, tree-nested.c, tree-outof-ssa.c,
7766           tree-profile.c, tree-ssa-coalesce.c, tree-ssa-ifcombine.c,
7767           tree-ssa-loop-ivopts.c, tree-ssa-loop.c, tree-ssa-reassoc.c,
7768           tree-ssa-sccvn.c, tree-vect-data-refs.c, ubsan.c, valtrack.c,
7769           var-tracking.c, varasm.c: Include memmodel.h.
7770         * genattrtab.c (write_header): Include memmodel.h in generated file.
7771         * genautomata.c (main): Likewise.
7772         * gengtype.c (open_base_files): Likewise.
7773         * genopinit.c (main): Likewise.
7774         * genconditions.c (write_header): Include memmodel.h earlier in
7775         generated file.
7776         * genemit.c (main): Likewise.
7777         * genoutput.c (output_prologue): Likewise.
7778         * genpeep.c (main): Likewise.
7779         * genpreds.c (write_insn_preds_c): Likewise.
7780         * genrecog.c (write_header): Likewise.
7781         * Makefile.in (PLUGIN_HEADERS): Include memmodel.h
7783 2016-10-13  David Malcolm  <dmalcolm@redhat.com>
7785         * function-tests.c (selftest::test_expansion_to_rtl): Add "true"
7786         for new "compact" param of print_rtx_function.  Check for "cinsn"
7787         rather than "insn".
7788         * print-rtl-function.c (flag_compact): New decl.
7789         (print_rtx_function): Add param "compact" and use it to set
7790         flag_compact, adding a description of the effect to the leading
7791         comment, and updating the example output.
7792         * print-rtl.c (flag_compact): New variable.
7793         (print_rtx_operand_code_0): Omit the JUMP_LABEL reference in compact
7794         mode.
7795         (print_rtx_operand_code_i): When printing source locations, wrap
7796         xloc.file in quotes.  Don't print INSN_CODEs in compact mode.
7797         (print_rtx_operand_code_r): Don't print regnos for hard regs and
7798         virtuals in compact mode.
7799         (print_rtx_operand_code_u): Don't print insn UIDs in compact mode,
7800         apart from in LABEL_REFs.
7801         (print_rtx_operand): In case 'w', don't print in hex in compact mode.
7802         Don't print basic block ids in compact mode.
7803         (print_rtx):  In compact mode, prefix the code of insns with "c",
7804         only print the INSN_UID of CODE_LABELs, and omit their LABEL_NUSES.
7805         * print-rtl.h (print_rtx_function): Add "compact" param.
7807 2016-10-13  Richard Earnshaw  <rearnsha@arm.com>
7809         * arm.h (TARGET_VFP): Delete.
7810         (TARGET_VFPD32): Remove references to TARGET_VFP.
7811         (TARGET_VFP3, TARGET_VFP5): Likewise.
7812         (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE): Likewise.
7813         (TARGET_NEON_FP16): Likewise.
7814         (TARGET_FMA): Likewise.
7815         (TARGET_CRYPTO): Likewise.
7816         (TARGET_NEON): Likewise.
7817         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
7818         (FUNCTION_ARG_REGNO_P): Likewise.
7819         * arm.c (arm_option_check_internal): Likewise.
7820         (arm_option_override): Likewise.
7821         (use_return_insn): Likewise.
7822         (arm_function_value_regno_p): Likewise.
7823         (arm_apply_result_size): Likewise.
7824         (use_vfp_abi): Likewise.
7825         (arm_legitimate_address_outer_p): Likewise.
7826         (thumb2_legitimate_address_p): Likewise.
7827         (arm_legitimate_index_p): Likewise.
7828         (thumb2_legitimate_index_p): Likewise.
7829         (arm_legitimate_address): Likewise.
7830         (arm_get_vfp_saved_size): Likewise.
7831         (arm_emit_vfp_multi_reg_pop): Likewise.
7832         (arm_get_frame_offsets): Likewise.
7833         (arm_save_coproc_regs): Likewise.
7834         (arm_hard_regno_mode_ok): Likewise.
7835         (arm_expand_epilogue_apcs_frame): Likewise.
7836         (arm_expand_epilogue): Likewise.
7837         (arm_file_start): Likewise.
7838         (arm_conditional_register_usage): Likewise.
7839         (arm_validize_comparison): Use vfp_compare_operand directly.
7840         * arm-builtins.c (arm_init_builtins): Remove references to TARGET_VFP.
7841         (arm_expand_vfp_builtin): Use TARGET_HARD_FLOAT for detecting
7842         unsupported usage.
7843         (arm_atomic_assign_expand_fenv): Likewise.
7844         * arm.md (divsf3): Likewise.
7845         (arm_negsi2): Likewise.
7846         (absdf2): Likewise.
7847         (arm_movdi): Likewise.
7848         (arm_movt): Likewise.
7849         (cbranchsf4): Change predicate to vfp_compare_operand.
7850         (cbranchdf4): Change predicate to vfp_compare_operand.
7851         (cstorehf4): Change predicate to vfp_compare_operand.
7852         (cstoresf4): Change predicate to vfp_compare_operand.
7853         (cstoredf4): Change predicate to vfp_compare_operand.
7854         (vfp_pop_multiple_with_writeback): Remove references to TARGET_VFP.
7855         (movhi_insn_arch4, movhi_bytes): Likewise.
7856         * constraints.md (Dt): Likewise.
7857         (Dp): Likewise.
7858         * iterators.md (SDF): Likewise.
7859         * predicates.md (arm_float_compare_operand): Delete.
7860         (const_double_vcvt_power_of_two_reciprocal): Remove references to
7861         TARGET_VFP.
7862         (const_double_vcvt_power_of_two): Likewise.
7863         * thumb2.md thumb2_movsi_insn): Likewise.
7864         * vfp.md (arm_movhi_vfp, thumb2_movhi_vfp): Likewise.
7865         (movhf_vfp): Likewise.
7866         (arm_movsi_vfp, thumb2_movsi_vfp): Likewise.
7867         (movdi_vfp, movdi_vfp_cortexa8): Likewise.
7868         (movsf_vfp, thumb2_movsf_vfp): Likewise.
7869         (movdf_vfp, thumb2_movdf_vfp): Likewise.
7870         (movsfcc_vfp, abssf2_vfp, negsf2_vfp, addsf3_vfp): Likewise.
7871         (subsf3_vfp, divsf3_vfp): Likewise.
7872         (mulsf3_vfp, mulsf3negsf_vfp, negmulsf3_vfp): Likewise.
7873         (mulsf3addsf_vfp, (mulsf3subsf_vfp, mulsf3negsfaddsf_vfp): Likewise.
7874         (mulsf3negsfsubsf_vfp): Likewise.
7875         (truncsisf2_vfp, fixuns_truncsfsi2, floatsisf2_vfp): Likewise.
7876         (floatunssisf2, sqrtsf2_vfp): Likewise.
7877         (movcc_vfp): Likewise.
7878         (cmpsf_split_vfp, cmpsf_trap_split_vfp): Likewise.
7879         (cmpsf_vfp, cmpsf_trap_vfp): Likewise.
7880         (push_multi_vfp): Likewise.
7881         (set_fpscr, get_fpscr): Likewise.
7882         * arm-c.c (arm_cpu_builtins): Unconditionally define __VFP_FP__.
7884 2016-10-13  Richard Earnshaw  <rearnsha@arm.com>
7886         * arm.h (TARGET_VFP): Unconditionally define to 1.
7887         (arm_fpu_desc): Remove 'model' field.
7888         (TARGET_FPU_MODEL): Delete.
7889         * arm.c (all_fpus): Don't initialize the model field.
7890         (arm_can_inline_p): Don't check the FPU model.
7891         * arm-fpus.def: Remove redundant model field from all FPU
7892         descriptions.
7894 2016-10-13  Richard Biener  <rguenther@suse.de>
7896         PR middle-end/77826
7897         * genmatch.c (struct capture): Add value_match member.
7898         (commutate): Preserve value_match.
7899         (lower_opt_convert): Likewise.
7900         (lower_cond): Likewise.
7901         (replace_id): Likewise.
7902         (struct dt_operand): Add value_match member.
7903         (decision_tree::cmp_node): Compare it.
7904         (decision_tree::insert_operand): Honor it when finding and
7905         when appending a DT_MATCH.
7906         (dt_operand::gen_match_op): Generate a type check after
7907         operand_equal_p if ! value_match for both GENERIC and GIMPLE.
7908         (parser::get_internal_capture_id): New helper.
7909         (parser::finish_match_operand): New function lowering @@<id>.
7910         (parser::parse_capture): Parse @@<id> as value-match.
7911         (parser::parse_expr): Use get_internal_capture_id.
7912         (parser::parse_simplify): Call finish_match_operand.
7913         (walk_captures): New helper.
7914         * match.pd (X - (X / Y) * Y -> X % Y): Use value-matching instead
7915         of operand_equal_p.
7916         ((X /[ex] A) * A -> X): Likewise.
7917         ((X | Y) ^ X -> Y & ~ X): Handle constants properly by using
7918         convert[12] and value-matching.
7919         ((A | B) & (A | C) ->  A | (B & C)): Likewise.
7920         ((X | Y) | Y -> X | Y): Likewise.
7921         ((X ^ Y) ^ Y -> X): Likewise.
7922         (A - (A & B) -> ~B & A): Likewise.
7923         ((T)(P + A) - (T)P -> (T) A): Likewise.
7924         ((T)P - (T)(P + A) -> -(T) A): Likewise.
7925         ((T)(P + A) - (T)(P + B) -> (T)A - (T)B): Likewise.
7926         * doc/match-and-simplify.texi: Amend capture section.
7928 2016-10-13  Claudiu Zissulescu  <claziss@synopsys.com>
7930         * config/arc/arc.md (umul_600): Remove predicated variant.
7931         (umul64_600): Likewise.
7933 2016-10-13  Claudiu Zissulescu  <claziss@synopsys.com>
7935         * config/arc/arc.h (INSN_LENGTH_ALIGNMENT): Change.
7937 2016-10-13  Bin Cheng  <bin.cheng@arm.com>
7939         * tree-vect-loop.c (loop_niters_no_overflow): New func.
7940         (vect_transform_loop): Call loop_niters_no_overflow.  Pass the
7941         no-overflow information to vect_do_peeling_for_loop_bound and
7942         vect_gen_vector_loop_niters.
7944 2016-10-13  Bin Cheng  <bin.cheng@arm.com>
7946         * tree-predcom.c (tree_predictive_commoning_loop): Skip loop that only
7947         iterates 1 time.
7949 2016-10-13  Bin Cheng  <bin.cheng@arm.com>
7951         * tree-vect-loop-manip.c (adjust_vec_debug_stmts): Don't release
7952         adjust_vec automatically.
7953         (slpeel_add_loop_guard): Remove param cond_expr_stmt_list.  Rename
7954         param exit_bb to guard_to.
7955         (slpeel_checking_verify_cfg_after_peeling):
7956         (set_prologue_iterations):
7957         (create_lcssa_for_virtual_phi): New func which is factored out from
7958         slpeel_tree_peel_loop_to_edge.
7959         (slpeel_tree_peel_loop_to_edge):
7960         (iv_phi_p): New func.
7961         (vect_can_advance_ivs_p): Call iv_phi_p.
7962         (vect_update_ivs_after_vectorizer): Call iv_phi_p.  Directly insert
7963         new gimple stmts in basic block.
7964         (vect_gen_niters_for_prolog_loop): Rename to...
7965         (vect_gen_prolog_loop_niters): ...Rename from.  Change parameters and
7966         adjust implementation.
7967         (vect_update_inits_of_drs): Fix code style issue.  Convert niters to
7968         sizetype if necessary.
7969         (vect_build_loop_niters): Move to here from tree-vect-loop.c.  Change
7970         it to external function.
7971         (vect_gen_scalar_loop_niters, vect_gen_vector_loop_niters): New.
7972         (vect_gen_vector_loop_niters_mult_vf): New.
7973         (slpeel_update_phi_nodes_for_loops): New.
7974         (slpeel_update_phi_nodes_for_guard1): Reimplement.
7975         (find_guard_arg, slpeel_update_phi_nodes_for_guard2): Reimplement.
7976         (slpeel_update_phi_nodes_for_lcssa, vect_do_peeling): New.
7977         * tree-vect-loop.c (vect_build_loop_niters): Move to file
7978         tree-vect-loop-manip.c
7979         (vect_generate_tmps_on_preheader): Delete.
7980         (vect_transform_loop): Rename vectorization_factor to vf.  Call
7981         vect_do_peeling instead of vect_do_peeling-* functions.
7982         * tree-vectorizer.h (vect_do_peeling): New decl.
7983         (vect_build_loop_niters, vect_gen_vector_loop_niters): New decls.
7984         (vect_do_peeling_for_loop_bound): Delete.
7985         (vect_do_peeling_for_alignment): Delete.
7987 2016-10-13  Bin Cheng  <bin.cheng@arm.com>
7989         * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg): Put
7990         duplicated loop after its preheader and after the original loop.
7992 2016-10-13  Bin Cheng  <bin.cheng@arm.com>
7994         * tree-vect-loop.c (vect_analyze_loop_2): Check and skip loop if it
7995         has no enough iterations for LOOP_VINFO_PEELING_FOR_GAPS.
7997 2016-10-13  Bin Cheng  <bin.cheng@arm.com>
7999         * tree-vect-loop.c (vectorizable_live_operation): Support handling
8000         for live variable outside loop but not in lcssa form.
8002 2016-10-13  Bin Cheng  <bin.cheng@arm.com>
8004         * cfg.c (reset_original_copy_tables): New func.
8005         * cfg.h (reset_original_copy_tables): New decl.
8007 2016-10-13  Jakub Jelinek  <jakub@redhat.com>
8009         PR c/77946
8010         * tree.h (FALLTHROUGH_LABEL_P): Use private_flag instead of
8011         public_flag.
8012         * varasm.c (default_binds_local_p_3): Formatting fix.
8014 2016-10-13  Bin Cheng  <bin.cheng@arm.com>
8016         * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Fix code
8017         style issue.
8018         (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
8019         Remove useless code.
8021 2016-10-13  Martin Liska  <mliska@suse.cz>
8023         PR tree-optimization/77943
8024         * tree-ssa-tail-merge.c (merge_stmts_p): Do not merge BBs with
8025         a different EH landing pads.
8027 2016-10-13  Jakub Jelinek  <jakub@redhat.com>
8029         PR target/77957
8030         * hooks.h (hook_tree_void_null): Declare.
8031         * hooks.c (hook_tree_void_null): New function.
8032         * langhooks.c (lhd_return_null_tree_v): Remove.
8033         * langhooks-def.h (lhd_return_null_tree_v): Remove.
8034         * cfgexpand.c (stack_protect_prologue): If guard_decl is NULL,
8035         set y to const0_rtx.
8036         * function.c (stack_protect_epilogue): Likewise.
8037         * config/tilepro/tilepro.c (TARGET_STACK_PROTECT_GUARD): Redefine
8038         if TARGET_THREAD_SSP_OFFSET is defined.
8039         * config/s390/s390.c (TARGET_STACK_PROTECT_GUARD): Likewise.
8040         * config/sparc/sparc.c (TARGET_STACK_PROTECT_GUARD): Likewise.
8041         * config/tilegx/tilegx.c (TARGET_STACK_PROTECT_GUARD): Likewise.
8042         * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Likewise.
8043         * config/i386/i386.c (TARGET_STACK_PROTECT_GUARD): Likewise.
8044         (ix86_stack_protect_guard): New function.
8046 2016-10-13  Richard Biener  <rguenther@suse.de>
8048         * dwarf2out.c (tree_add_const_value_attribute): Do not try
8049         rtl_for_decl_init during early phase.
8050         (gen_variable_die): Do not create locations during early phase.
8051         (gen_label_die): Likewise.
8052         (decls_for_scope): Do not waste time handling BLOCK_NONLOCALIZED_VARs
8053         twice.
8055 2016-10-12  Richard Biener  <rguenther@suse.de>
8057         * tree-vrp.c (evrp_dom_walker::try_find_new_range): Renamed from
8058         try_add_new_range and made to eturn new range.
8059         (evrp_dom_walker::before_dom_children): Push op1 value range before
8060         pushing op0 value range.
8062 2016-10-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8064         PR tree-optimization/77937
8065         * gimple-ssa-strength-reduction.c (analyze_increments): Use
8066         POINTER_TYPE_P on the candidate type to determine whether
8067         candidates in this chain require pointer arithmetic.
8069 2016-10-12  Eric Botcazou  <ebotcazou@adacore.com>
8071         * config/visium/visium.c (visium_gimplify_va_arg): Emit a big-endian
8072         correction if the type is smaller than a word.
8073         (visium_select_cc_mode): Add ... fall through ... comment.
8075 2016-10-12  Segher Boessenkool  <segher@kernel.crashing.org>
8077         * config/rs6000/rs6000.c (machine_function): Add new fields
8078         gpr_is_wrapped_separately and lr_is_wrapped_separately.
8079         (TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS,
8080         TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB,
8081         TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS,
8082         TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS,
8083         TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS,
8084         TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS): Define.
8085         (rs6000_get_separate_components): New function.
8086         (rs6000_components_for_bb): New function.
8087         (rs6000_disqualify_components): New function.
8088         (rs6000_emit_prologue_components): New function.
8089         (rs6000_emit_epilogue_components): New function.
8090         (rs6000_set_handled_components): New function.
8091         (rs6000_emit_prologue): Don't emit LR save if lr_is_wrapped_separately.
8092         Don't emit GPR saves if gpr_is_wrapped_separately for that register.
8093         (restore_saved_lr): Don't restore LR if lr_is_wrapped_separately.
8094         (rs6000_emit_epilogue): Don't emit GPR restores if
8095         gpr_is_wrapped_separately for that register.  Don't make a
8096         REG_CFA_RESTORE note for registers we did not restore, either.
8098 2016-10-12  Segher Boessenkool  <segher@kernel.crashing.org>
8100         * function.c (thread_prologue_and_epilogue_insns): Call
8101         try_shrink_wrapping_separate.  Compute the prologue_seq afterwards,
8102         if it has possibly changed.  Compute the split_prologue_seq and
8103         epilogue_seq later, too.
8104         * shrink-wrap.c: #include cfgbuild.h and insn-config.h.
8105         (dump_components): New function.
8106         (struct sw): New struct.
8107         (SW): New function.
8108         (init_separate_shrink_wrap): New function.
8109         (fini_separate_shrink_wrap): New function.
8110         (place_prologue_for_one_component): New function.
8111         (spread_components): New function.
8112         (disqualify_problematic_components): New function.
8113         (emit_common_heads_for_components): New function.
8114         (emit_common_tails_for_components): New function.
8115         (insert_prologue_epilogue_for_components): New function.
8116         (try_shrink_wrapping_separate): New function.
8117         * shrink-wrap.h: Declare try_shrink_wrapping_separate.
8119 2016-10-12  Segher Boessenkool  <segher@kernel.crashing.org>
8121         * regrename.c (build_def_use): Invalidate chains that have a
8122         REG_CFA_RESTORE on some instruction.
8124 2016-10-12  Segher Boessenkool  <segher@kernel.crashing.org>
8126         * dce.c (delete_unmarked_insns): Don't delete instructions with
8127         a REG_CFA_RESTORE note.
8129 2016-10-12  Segher Boessenkool  <segher@kernel.crashing.org>
8131         * common.opt (-fshrink-wrap-separate): New flag.
8132         * doc/invoke.texi: Document it.
8133         * doc/tm.texi.in (Shrink-wrapping separate components): New subsection.
8134         * doc/tm.texi: Regenerate.
8135         * emit-rtl.h (struct rtl_data): New field shrink_wrapped_separate.
8136         * target.def (shrink_wrap): New hook vector.
8137         (get_separate_components, components_for_bb, disqualify_components,
8138         emit_prologue_components, emit_epilogue_components,
8139         set_handled_components): New hooks.
8141 2016-10-12  Segher Boessenkool  <segher@kernel.crashing.org>
8143         * config/rs6000/rs6000.c (rs6000_return_in_memory): Warn for
8144         vector return by reference only if -Wpsabi.
8145         (rs6000_pass_by_reference): Similarly, for argument passing.
8147 2016-10-12  David Malcolm  <dmalcolm@redhat.com>
8149         * function-tests.c: Include "print-rtl.h".
8150         (selftest::test_expansion_to_rtl): Call print_rtx_function on the
8151         function, and verify what is dumped.
8152         * print-rtl-function.c (print_edge): New function.
8153         (begin_any_block): New function.
8154         (end_any_block): New function.
8155         (can_have_basic_block_p): New function.
8156         (print_rtx_function): Track the basic blocks of insns in the
8157         chain, wrapping those that are within blocks within "(block)"
8158         directives.  Remove the "(cfg)" directive.
8160 2016-10-12  David Malcolm  <dmalcolm@redhat.com>
8162         * selftest.c (selftest::read_file): New function.
8163         (selftest::test_read_file): New function.
8164         (selftest::selftest_c_tests): Call test_read_file.
8165         * selftest.h (selftest::read_file): New decl.
8167 2016-10-12  Richard Biener  <rguenther@suse.de>
8169         PR debug/77947
8170         * cgraphunit.c (analyze_functions): Preserve cgraph nodes
8171         function context.
8173 2016-10-12  Thomas Schwinge  <thomas@codesourcery.com>
8175         * lto-streamer.c: Fix LTO_STREAMER_DEBUG build.
8177         * dwarf2out.c (dwarf2_lineno_debug_hooks): Use
8178         dwarf2out_assembly_start.
8180         * Makefile.in (SELFTEST_FLAGS): Add -nostdinc.
8182         * Makefile.in (SELFTEST_FLAGS): New variable.
8183         (s-selftest, selftest-gdb, selftest-valgrind): Use it.
8185         * vmsdbgout.c (vmsdbg_debug_hooks): Add filename parameter to
8186         early_finish hook.
8188 2016-10-12  Georg-Johann Lay  <avr@gjlay.de>
8190         * rtl.h (struct rtx_def): Comment how RTX_FLAGS will be
8191         dumped in RTL dumps.
8193 2016-10-12  Martin Liska  <mliska@suse.cz>
8195         * gimple-fold.c (create_tmp_reg_or_ssa_name): New function.
8196         (gimple_fold_builtin_memory_op): Use the function.
8197         (gimple_fold_builtin_strchr): Likewise.
8198         (gimple_fold_builtin_strcat): Likewise.
8199         (gimple_build): Likewise.
8201 2016-10-12  Nathan Sidwell  <nathan@acm.org>
8203         * diagnostic.c (diagnostc_report_diagnostic): Fix formatting.
8205 2016-10-12  Pierre-Marie de Rodat  <derodat@adacore.com>
8207         * dwarf2out.c (int_loc_descriptor): Generate opcodes for another
8208         equivalent 32-bit constant (modulo 2**32) when that yields
8209         smaller instructions.
8210         (size_of_int_loc_descriptor): Update accordingly.
8212 2016-10-12  Pierre-Marie de Rodat  <derodat@adacore.com>
8214         * dwarf2out.c (dwarf2out_early_global_decl): For nested
8215         functions, call dwarf2out_decl on the parent function first.
8217 2016-10-12  Richard Biener  <rguenther@suse.de>
8219         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary constraint
8220         on the conversion.
8222 2016-10-12  Richard Biener  <rguenther@suse.de>
8224         * tree-ssa-propagate.c
8225         (substitute_and_fold_dom_walker::before_dom_children): Do not
8226         ignore ASSERT_EXPRs but only preserve them.
8227         * tree-vrp.c (remove_range_assertions): Deal with ASSERT_EXPRs
8228         that have been propagated into.
8229         (vrp_finalize): Enable DCE for substitute_and_fold.
8231 2016-10-12  Richard Biener  <rguenther@suse.de>
8233         PR tree-optimization/77920
8234         * tree-vrp.c (simplify_div_or_mod_using_ranges): Simplify.
8235         (simplify_min_or_max_using_ranges): Pass in gsi and use it.
8236         (simplify_abs_using_ranges): Likewise.
8237         (simplify_conversion_using_ranges): Likewise.
8238         (simplify_stmt_using_ranges): Adjust.
8240 2016-10-12  Jakub Jelinek  <jakub@redhat.com>
8242         PR tree-optimization/77929
8243         * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Handle
8244         (*ops)[ranges[i].idx]->op != ranges[i].exp case.
8246 2016-10-12  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
8248         PR target/77934
8249         * config/rs6000/vmx.md (vsx_concat_<mode>): The mtvsrdd instruction
8250         needs a base register for arg 1.
8252 2016-10-12  Jakub Jelinek  <jakub@redhat.com>
8254         * common.opt (Wimplicit-fallthrough) Turn into alias to
8255         -Wimplicit-fallthrough=3.  Remove EnabledBy.
8256         (Wimplicit-fallthrough=): New option.
8257         * gimplify.c (warn_implicit_fallthrough_r): Use
8258         OPT_Wimplicit_fallthrough_ instead of OPT_Wimplicit_fallthrough.
8259         * doc/invoke.texi (-Wimplicit-fallthrough): Document as alias
8260         to -Wimplicit-fallthrough=3.
8261         (-Wimplicit-fallthrough=): Document.
8263 2016-10-11  Eric Botcazou  <ebotcazou@adacore.com>
8265         * config/sparc/sparc.c (emit_scc_insn): Remove direct support for EQ
8266         and GEU in DImode if TARGET_SUBXC.
8267         * config/sparc/sparc.md (seqdi<W:mode>_zero): Remove TARGET_SUBXC.
8268         (seqdi<W:mode>_zero_subxc): Delete.
8269         (neg_seqdi<W:mode>_zero): Remove TARGET_VIS3.
8270         (neg_seqdi<W:mode>_zero_vis3): Delete.
8271         (plus_seqdi<W:mode>_zero): Likewise.
8272         (minus_seqdi<W:mode>_zero): Likewise.
8273         (plus_plus_sltu<W:mode>): Accept only register.
8274         (addx<W:mode>): Likewise.
8275         (plus_sltu<W:mode>_vis3): Likewise.
8276         (plus_plus_sltu<W:mode>_vis3): Likewise.
8277         (neg_sgeu<W:mode>_vis3): Delete.
8278         (minus_sgeu<W:mode>_vis3): Likewise.
8279         (addxc<W:mode>): Accept only registers.
8280         (neg_sltu<W:mode>_subxc): Write %%g0 instead of 0.
8281         (minus_neg_sltu<W:mode>_subxc): Accept only register.
8282         (neg_plus_sltu<W:mode>_subxc): Likewise.
8283         (minus_sltu<W:mode>_subxc): Write %%g0 instead of 0.
8284         (minus_minus_sltu<W:mode>_subxc): Accept only register.
8285         (sgeu<W:mode>_insn_subxc): Delete.
8286         (plus_sgeu<W:mode>_subxc): Likewise.
8287         (subxc<W:mode>): Accept only register.
8288         (scc splitter): Split always GEU again.
8290 2016-10-11  Jeff Law  <law@redhat.com>
8292         PR tree-optimization/77424
8293         * tree-ssa-threadupdate.c (thread_through_all_blocks): Remove
8294         dead conditionals.  Assert that all e->aux fields are NULL.
8296 2016-10-11  David Malcolm  <dmalcolm@redhat.com>
8298         * print-rtl.c (print_rtx): Rename "i" to "idx".  Split out the
8299         operand-printing "switch" statement into...
8300         (print_rtx_operand_code_0): ...this new function, ...
8301         (print_rtx_operand_code_e): ...this new function, ...
8302         (print_rtx_operand_codes_E_and_V): ...this new function, ...
8303         (print_rtx_operand_code_i): ...this new function, ...
8304         (print_rtx_operand_code_r): ...this new function, ...
8305         (print_rtx_operand_code_u): ...this new function, ...
8306         (print_rtx_operand): ...and this new function.
8308 2016-10-11  Uros Bizjak  <ubizjak@gmail.com>
8310         * config/alpha/alpha-passes.def: New file.
8311         * config/alpha/t-alpha: New file.
8312         * config/alpha/alpha-protos.h (gcc::context, rtl_opt_pass): Declare.
8313         (make_pass_handle_trap_shadows): New prototype.
8314         (make_pass_align_insns): Ditto.
8315         * config/alpha/alpha.c (alpha_option_override): Don't register
8316         passes here.
8317         * config.gcc (alpha*-*-*) Add alpha/t-alpha to tmake_file.
8319 2016-10-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
8321         PR target/77924
8322         * config/rs6000/rs6000.c (rs6000_init_builtins): Only create the
8323         distinct __ibm128 IBM extended double type if long doubles are
8324         128-bits and the default format for long double is IEEE 128-bit.
8326 2016-10-11  Richard Biener  <rguenther@suse.de>
8328         * dwarf2out.c (DEBUG_STR_OFFSETS_SECTION): Remove conditional.
8329         (init_sections_and_labels): Use DEBUG_DWO_STR_OFFSETS_SECTION.
8330         (verify_die): New function.
8331         (dwarf2out_finish): Call it.
8332         (output_line_info): Handle case of -gsplit-dwarf without
8333         DWARF2_ASM_LINE_DEBUG_INFO.
8335 2016-10-11  Richard Biener  <rguenther@suse.de>
8337         PR debug/77931
8338         * gimple-low.c (lower_gimple_bind): Handle arbitrary common
8339         sub-chains of BLOCK_VARS and gimple_bind_vars.
8341 2016-10-11  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
8343         * config/i386/znver1.md : Fix imov/imovx load type reservations.
8345 2016-10-11  Eric Botcazou  <ebotcazou@adacore.com>
8347         * config/sparc/sparc.opt (msubxc): New option.
8348         * doc/invoke.texi (SPARC options): Document it and tidy up.
8349         * doc/tm.texi.in (Condition Codes): Adjust SPARC example.
8350         * doc/tm.texi: Regenerate.
8351         * config/sparc/sparc-modes.def (CC_NOOV): Rename into...
8352         (CCNZ): ...this.
8353         (CCX_NOOV): Rename into...
8354         (CCXNZ): ...this.
8355         (CCC): New.
8356         (CCXC): Likewise.
8357         * config/sparc/predicates.m (fcc_register_operand): Simplify.
8358         (fcc0_register_operand): Likewise.
8359         (icc_register_operand): New.
8360         (icc_or_fcc_register_operand): Simplify.
8361         (nz_comparison_operator): New.
8362         (c_comparison_operator): Likewise.
8363         (noov_compare_operator): Rename into...
8364         (icc_comparison_operator): ...this.  Use above predicates.
8365         (noov_compare64_operator): Rename into...
8366         (v9_comparison_operator): ...this and tidy up.
8367         (fcc_comparison_operator): New.
8368         (icc_or_fcc_comparison_operator): Likewise.
8369         (v9_register_compare_operator): Rename info...
8370         (v9_register_comparison_operator): ...this.
8371         * config/sparc/sparc.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
8372         (sparc_option_override): Remove redundant VIS masks and add MASK_SUBXC
8373         for Niagara-7.
8374         (sparc_fixed_condition_code_regs): New function.
8375         (select_cc_mode): Remove ATTRIBUTE_UNUSED.  Adjust for CCNZ/CCXNZ
8376         renaming and add support for CCC/CCXC.
8377         (output_cbranch): Likewise.
8378         (sparc_print_operand): Likewise.
8379         (gen_v9_scc): Remove obsolete assertion.
8380         (emit_scc_insn): Emit RTL directly for EQ and NE.  Add direct support
8381         for EQ in DImode if TARGET_SUBXC.  Remove test on TARGET_VIS3 for GEU.
8382         (output_cbcond): Remove bogus handling of CC modes.
8383         (sparc_register_move_cost): Return 100 for NO_REGS.
8384         * config/sparc/sparc.md (W): New mode iterator.
8385         (length): Adjust for noov_compare64_operator renaming.
8386         (cmpsi_sne): New instruction.
8387         (cmpdi_sne): Likewise.
8388         (seqdi_special): Delete.
8389         (seqdi_special): Likewise.
8390         (snesi<P:mode>_special): Likewise.
8391         (snedi_special): Likewise.
8392         (snedi_special_vis3): Likewise.
8393         (snesi patterns): Use W iterator.
8394         (snedi patterns): Likewise.  Add TARGET_SUBXC patterns.
8395         (sltu patterns): Likewise.
8396         (sgeu patterns): Likewise.
8397         (scc splitter): Do not split GEU in DImode if TARGET_SUBXC.
8398         (normal_branch): Use icc_comparison_operator predicate.
8399         (inverted_branch): Likewise.
8400         (cbcond_sp32): Use comparison_operator predicate.
8401         (cbcond_sp64): Likewise.
8402         (normal_int_branch_sp64): Adjust for renaming
8403         (inverted_int_branch_sp64): Likewise.
8404         (mov<I:mode>_cc_reg_sp64): Likewise.
8405         (movsf_cc_reg_sp6): Likewise.
8406         (movdf_cc_reg_sp64): Likewise.
8407         (movtf_cc_reg_hq_sp64): Likewise.
8408         (movtf_cc_reg_sp64): Likewise.
8409         (mov<I:mode>_cc_v9): Use icc_or_fcc_comparison_operator predicate.
8410         (movsf_cc_v9): Likewise.
8411         (movdf_cc_v9): Likewise.
8412         (movtf_cc_hq_v9): Likewise.
8413         (movtf_cc_v9): Likewise.
8414         (adddi3): Call gen_adddi3_sp32.
8415         (adddi3_insn_sp32): Rename to...
8416         (adddi3_sp32): ...this.  Accept only register_operand as operand #1
8417         and use CCCmode for the carry.
8418         (addx_extend_sp32): Use CCCmode for the carry.
8419         (addx_extend_sp64): Delete.
8420         (adddi3_extend_sp32): Use CCCmode for the carry.
8421         (cmp_plus patterns): Use CCNZ/CCXNZ mode and add C variants.
8422         (subdi3): Call gen_subdi3_sp32.
8423         (subdi3_insn_sp32): Rename to...
8424         (subdi3_sp32): ...this and use CCmode for the carry.
8425         (subx_extend_sp32): Use CCCmode for the carry.
8426         (subx_extend_sp64): Delete.
8427         (subdi3_extend_sp32): Use CCmode for the carry.
8428         (cmp_minus patterns): Use CCNZ/CCXNZ mode and add C variants.
8429         (negdi3): Call gen_negdi3_sp32.
8430         (negdi3_sp32): Use CCCmode for the carry.
8431         (cmp_neg patterns): Use CCNZ/CCXNZ mode and add C variants.
8432         (cmp_nz_ashift_1): Use CCNZ mode.
8433         (cmp_nz_set_ashift_1): Likewise.
8434         (ctrapsi4): Use comparison_operator predicate.
8435         (ctrapdi4): Likewise.
8436         (trapsi_insn): Use icc_comparison_operator predicate.
8437         (trapdi_insn): Likewise.
8438         (edge8 patterns): Use CCNZmode.
8439         (edge16 patterns): Likewise.
8440         (edge32 patterns): Likewise.
8442 2016-10-11  Eric Botcazou  <ebotcazou@adacore.com>
8444         * config/visium/visium-modes.def (CC_NOOV): Rename into...
8445         (CCNZ): ...this.
8446         (CC_BTST): Rename into...
8447         (CCC): ...this.
8448         * config/visium/predicates.md (real_add_operand): New.
8449         (visium_btst_operator): Rename into...
8450         (visium_equality_comparison_operator): ...this.
8451         (visium_noov_operator): Rename into...
8452         (visium_nz_comparison_operator): ...this.
8453         (visium_c_comparison_operator): New.
8454         (visium_branch_operator): Adjust and deal with all CC modes.
8455         * config/visium/visium.c (visium_adjust_cost): Adjust.
8456         (visium_split_double_add): Use the *_set_carry patterns.
8457         (visium_select_cc_mode): Add support for CCC mode and adjust.
8458         (output_cbranch): Adjust and use the carry-based operators for
8459         floating-point comparisons.
8460         * config/visium/visium.md (flags_subst_arith): Adjust.
8461         (addsi3_insn_set_carry): New instruction.
8462         (subsi3_insn_set_carry): Likewise.
8463         (negsi2_insn_set_carry): Likewise.
8464         (btst): Adjust.
8465         (cmp<mode>_sne): Likewise.
8466         (cbranch<mode>4): Use ordered_comparison_operator.
8467         (cbranch<mode>4_insn): Likewise.
8468         (cbranchsi4_btst_insn): Adjust.
8470 2016-10-11  Tom de Vries  <tom@codesourcery.com>
8472         PR middle-end/77558
8473         * builtins.c (std_canonical_va_list_type): Remove RECORD_TYPE
8474         special-casing.
8476 2016-10-11  Eric Botcazou  <ebotcazou@adacore.com>
8478         * tree.h (build_complex_type): Add second parameter with default.
8479         * tree.c (build_complex_type): Add NAMED second parameter and adjust
8480         recursive call.  Create a TYPE_DECL only if NAMED is true.
8481         (build_common_tree_nodes): Pass true in calls to build_complex_type.
8483 2016-10-11  Georg-Johann Lay  <avr@gjlay.de>
8485         New avr-passes.def to register AVR specific passes.
8487         * config/avr/avr-passes.def: New file.
8488         * config/avr/t-avr (PASSES_EXTRA): Add avr-passes.def.
8489         * config/avr/avr-protos.h (gcc::context, rtl_opt_pass): Declare.
8490         (make_avr_pass_recompute_note): New proto.
8491         * config/avr/avr.c (make_avr_pass_recompute_notes): New function.
8492         (avr_pass_recompute_notes): Use anonymous namespace.
8493         (avr_register_passes): Remove function...
8494         (avr_option_override): ...and its call.
8496 2016-10-11  Robert Suchanek  <robert.suchanek@imgtec.com>
8498         * config/mips/mips-cpus.def: Replace PTF_AVOID_BRANCHLIKELY with
8499         PTF_AVOID_BRANCHLIKELY_ALWAYS for generic architecture and with
8500         PTF_AVOID_BRANCHLIKELY_SPEED for others.
8501         (mips2, mips3, mips4): Add PTF_AVOID_BRANCHLIKELY_SIZE to tune
8502         flags.
8503         * config/mips/mips.c (mips_option_override): Enable the branch
8504         likely depending on the tune flags and optimization level.
8505         * config/mips/mips.h (PTF_AVOID_BRANCHLIKELY): Remove.
8506         (PTF_AVOID_BRANCHLIKELY_SPEED): Define.
8507         (PTF_AVOID_BRANCHLIKELY_SIZE): Likewise.
8508         (PTF_AVOID_BRANCHLIKELY_ALWAYS): Likewise.
8510 2016-10-11  Richard Biener  <rguenther@suse.de>
8512         * lto-streamer-out.c (collect_block_tree_leafs): New helper.
8513         (output_function): Properly stream the whole block tree.
8514         * lto-streamer-in.c (input_function): Likewise.
8516 2016-10-11  Marek Polacek  <polacek@redhat.com>
8518         * Makefile.in (C_COMMON_OBJS): Add c-family/c-warn.o.
8520 2016-10-11  Kugan Vivekanandarajah  <kuganv@linaro.org>
8522         * tree-vrp.c (evrp_dom_walker::try_add_new_range): New.
8523         (evrp_dom_walker::before_dom_children): Infer and push new value
8524         ranges for x in y < x.
8526 2016-10-10  Joseph Myers  <joseph@codesourcery.com>
8528         PR target/77586
8529         * config/ia64/ia64.c (ia64_libgcc_floating_mode_supported_p)
8530         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
8531         * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Likewise.
8532         * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Likewise.
8533         * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
8534         (IA64_NO_LIBGCC_TFMODE): Likewise.
8536 2016-10-11  Kugan Vivekanandarajah  <kuganv@linaro.org>
8538         * tree-vrp.c (vrp_intersect_ranges_1): Allocate bitmap before
8539           copying.
8541 2016-10-10  Andreas Tobler  <andreast@gcc.gnu.org>
8543         * config.gcc: Add aarch64-*-freebsd* support.
8544         * config.host: Likewise.
8545         * config/aarch64/aarch64-freebsd.h: New file.
8546         * config/aarch64/t-aarch64-freebsd: Ditto.
8548 2016-10-10  Jeff Law  <law@redhat.com>
8550         PR tree-optimization/71947
8551         * tree-ssa-dom.c (cprop_into_stmt): Avoid replacing A with B, then
8552         B with A within a single statement.
8554 2016-10-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8556         PR tree-optimization/77824
8557         * gimple-ssa-strength-reduction.c (stmt_cost): Explicitly return
8558         zero cost for copies.
8559         (find_candidates_dom_walker::before_dom_children): Replace
8560         MODIFY_EXPR with SSA_NAME.
8561         (replace_mult_candidate): Likewise.
8562         (replace_profitable_candidates): Likewise.
8564 2016-10-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8566         * config/s390/s390.h: Wrap more macros args in brackets and fix
8568 2016-10-10  Georg-Johann Lay  <avr@gjlay.de>
8570         * config/avr/gen-avr-mmcu-texi.c (string.h): Include.
8572 2016-10-10  Andreas Schwab  <schwab@suse.de>
8574         PR target/77738
8575         * config/ia64/ia64.md ("doloop_end"): Reject if mode of loop
8576         pseudo is not DImode.
8578 2016-10-10  Claudiu Zissulescu  <claziss@synopsys.com>
8580         * common/config/arc/arc-common.c (arc_option_optimization_table):
8581         Remove compact casesi option.
8582         * config/arc/arc.c (arc_override_options): Use compact casesi
8583         option only for pre-ARCv2 cores.
8584         * doc/invoke.texi (mcompact-casesi): Update text.
8586 2016-10-09  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
8588         * config/rs6000/rs6000.h (TARGET_EFFICIENT_OVERLAPPING_UNALIGNED):
8589         Add macro to say we can efficiently handle overlapping unaligned
8590         loads.
8591         * config/rs6000/rs6000.c (expand_block_compare): Avoid generating
8592         poor code for processors older than p8.
8594 2016-10-09  Eric Botcazou  <ebotcazou@adacore.com>
8596         * gen-pass-instances.awk: Remove GNUism.
8598 2016-10-09  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
8600         * ipa-prop.c (ipcp_transform_function): Set fields m_vr and bits to
8601         NULL of (*ipcp_transformations)][node->uid].
8603 2016-10-09  John David Anglin  <danglin@gcc.gnu.org>
8605         * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
8606         (MALLOC_ABI_ALIGNMENT): Define.
8608 2016-10-09  Jakub Jelinek  <jakub@redhat.com>
8610         * tree-ssa.c (target_for_debug_bind, verify_phi_args,
8611         ssa_undefined_value_p, maybe_optimize_var): Use VAR_P and/or
8612         VAR_OR_FUNCTION_DECL_P macros.
8613         * tree-chkp.c (chkp_register_var_initializer, chkp_make_static_bounds,
8614         chkp_get_bounds_for_decl_addr, chkp_parse_array_and_component_ref,
8615         chkp_find_bounds_1): Likewise.
8616         * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Likewise.
8617         * hsa-gen.c (get_symbol_for_decl): Likewise.
8618         * cgraphunit.c (check_global_declaration, analyze_functions,
8619         handle_alias_pairs, thunk_adjust, cgraph_node::expand_thunk):
8620         Likewise.
8621         * gimple-fold.c (can_refer_decl_in_current_unit_p,
8622         canonicalize_constructor_val, gimple_get_virt_method_for_vtable):
8623         Likewise.
8624         * tree.c (set_decl_section_name, copy_node_stat,
8625         need_assembler_name_p, free_lang_data_in_decl, find_decls_types_r,
8626         merge_dllimport_decl_attributes, handle_dll_attribute,
8627         decl_init_priority_insert, auto_var_in_fn_p, array_at_struct_end_p,
8628         verify_type): Likewise.
8629         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior,
8630         find_explicit_erroneous_behavior): Likewise.
8631         * sdbout.c (sdbout_toplevel_data, sdbout_late_global_decl): Likewise.
8632         * ipa.c (process_references): Likewise.
8633         * tree-chkp-opt.c (chkp_get_check_result): Likewise.
8634         * varasm.c (get_block_for_decl, use_blocks_for_decl_p, make_decl_rtl,
8635         notice_global_symbol, assemble_variable, mark_decl_referenced,
8636         build_constant_desc, output_constant_def_contents, do_assemble_alias,
8637         make_decl_one_only, default_section_type_flags,
8638         categorize_decl_for_section, default_encode_section_info): Likewise.
8639         * trans-mem.c (requires_barrier): Likewise.
8640         * gimple-expr.c (mark_addressable): Likewise.
8641         * cfgexpand.c (add_scope_conflicts_1, expand_one_var,
8642         expand_used_vars_for_block, clear_tree_used, stack_protect_decl_p,
8643         expand_debug_expr): Likewise.
8644         * tree-dump.c (dequeue_and_dump): Likewise.
8645         * ubsan.c (instrument_bool_enum_load): Likewise.
8646         * tree-pretty-print.c (print_declaration): Likewise.
8647         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
8648         * tree-ssa-uninit.c (warn_uninitialized_vars): Likewise.
8649         * asan.c (asan_protect_global, instrument_derefs): Likewise.
8650         * tree-into-ssa.c (rewrite_stmt, maybe_register_def,
8651         pass_build_ssa::execute): Likewise.
8652         * var-tracking.c (var_debug_decl, track_expr_p): Likewise.
8653         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost, split_address_cost):
8654         Likewise.
8655         * ipa-split.c (test_nonssa_use, consider_split, mark_nonssa_use):
8656         Likewise.
8657         * tree-inline.c (insert_debug_decl_map, remap_ssa_name,
8658         can_be_nonlocal, remap_decls, copy_debug_stmt,
8659         initialize_inlined_parameters, add_local_variables,
8660         reset_debug_binding, replace_locals_op): Likewise.
8661         * dse.c (can_escape): Likewise.
8662         * ipa-devirt.c (compare_virtual_tables, referenced_from_vtable_p):
8663         Likewise.
8664         * tree-diagnostic.c (default_tree_printer): Likewise.
8665         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
8666         unpack_ts_decl_with_vis_value_fields,
8667         lto_input_ts_decl_common_tree_pointers): Likewise.
8668         * builtins.c (builtin_save_expr, fold_builtin_expect,
8669         readonly_data_expr): Likewise.
8670         * tree-ssa-structalias.c (new_var_info, get_constraint_for_ssa_var,
8671         create_variable_info_for, set_uids_in_ptset, visit_loadstore):
8672         Likewise.
8673         * gimple-streamer-out.c (output_gimple_stmt): Likewise.
8674         * gimplify.c (force_constant_size, gimplify_bind_expr,
8675         gimplify_decl_expr, gimplify_var_or_parm_decl,
8676         gimplify_compound_lval, gimplify_init_constructor,
8677         gimplify_modify_expr, gimplify_asm_expr, gimplify_oacc_declare,
8678         gimplify_type_sizes): Likewise.
8679         * cgraphbuild.c (record_reference, record_type_list, mark_address,
8680         mark_load, mark_store, pass_build_cgraph_edges::execute): Likewise.
8681         * tree-ssa-live.c (mark_all_vars_used_1, remove_unused_scope_block_p,
8682         remove_unused_locals): Likewise.
8683         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p, ptrs_compare_unequal,
8684         ref_maybe_used_by_call_p_1, call_may_clobber_ref_p_1): Likewise.
8685         * function.c (instantiate_expr, instantiate_decls_1,
8686         setjmp_vars_warning, add_local_decl): Likewise.
8687         * alias.c (ao_ref_from_mem, get_alias_set, compare_base_symbol_refs):
8688         Likewise.
8689         * tree-stdarg.c (find_va_list_reference, va_list_counter_struct_op,
8690         va_list_ptr_read, va_list_ptr_write, check_all_va_list_escapes,
8691         optimize_va_list_gpr_fpr_size): Likewise.
8692         * tree-nrv.c (pass_nrv::execute): Likewise.
8693         * tsan.c (instrument_expr): Likewise.
8694         * tree-ssa-dce.c (remove_dead_stmt): Likewise.
8695         * vtable-verify.c (verify_bb_vtables): Likewise.
8696         * tree-dfa.c (ssa_default_def, set_ssa_default_def,
8697         get_ref_base_and_extent): Likewise.
8698         * toplev.c (wrapup_global_declaration_1, wrapup_global_declaration_2):
8699         Likewise.
8700         * tree-sra.c (static bool constant_decl_p, find_var_candidates,
8701         analyze_all_variable_accesses): Likewise.
8702         * tree-nested.c (get_nonlocal_debug_decl,
8703         convert_nonlocal_omp_clauses, note_nonlocal_vla_type,
8704         note_nonlocal_block_vlas, convert_nonlocal_reference_stmt,
8705         get_local_debug_decl, convert_local_omp_clauses,
8706         convert_local_reference_stmt, nesting_copy_decl, remap_vla_decls):
8707         Likewise.
8708         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Likewise.
8709         * stmt.c (decl_overlaps_hard_reg_set_p): Likewise.
8710         * dbxout.c (dbxout_late_global_decl, dbxout_type_fields,
8711         dbxout_symbol, dbxout_common_check): Likewise.
8712         * expr.c (expand_assignment, expand_expr_real_2, expand_expr_real_1,
8713         string_constant): Likewise.
8714         * hsa.c (hsa_get_declaration_name): Likewise.
8715         * passes.c (rest_of_decl_compilation): Likewise.
8716         * tree-ssanames.c (make_ssa_name_fn): Likewise.
8717         * tree-streamer-out.c (pack_ts_decl_common_value_fields,
8718         pack_ts_decl_with_vis_value_fields,
8719         write_ts_decl_common_tree_pointers): Likewise.
8720         * stor-layout.c (place_field): Likewise.
8721         * symtab.c (symtab_node::maybe_create_reference,
8722         symtab_node::verify_base, symtab_node::make_decl_local,
8723         symtab_node::copy_visibility_from,
8724         symtab_node::can_increase_alignment_p): Likewise.
8725         * dwarf2out.c (add_var_loc_to_decl, tls_mem_loc_descriptor,
8726         decl_by_reference_p, reference_to_unused, rtl_for_decl_location,
8727         fortran_common, add_location_or_const_value_attribute,
8728         add_scalar_info, add_linkage_name, set_block_abstract_flags,
8729         local_function_static, gen_variable_die, dwarf2out_late_global_decl,
8730         optimize_one_addr_into_implicit_ptr,
8731         optimize_location_into_implicit_ptr): Likewise.
8732         * gimple-low.c (record_vars_into): Likewise.
8733         * ipa-visibility.c (update_vtable_references): Likewise.
8734         * tree-ssa-address.c (fixed_address_object_p, copy_ref_info):
8735         Likewise.
8736         * lto-streamer-out.c (tree_is_indexable, get_symbol_initial_value,
8737         DFS::DFS_write_tree_body, write_symbol): Likewise.
8738         * langhooks.c (lhd_warn_unused_global_decl,
8739         lhd_set_decl_assembler_name): Likewise.
8740         * attribs.c (decl_attributes): Likewise.
8741         * except.c (output_ttype): Likewise.
8742         * varpool.c (varpool_node::get_create, ctor_for_folding,
8743         varpool_node::assemble_decl, varpool_node::create_alias): Likewise.
8744         * fold-const.c (fold_unary_loc): Likewise.
8745         * ipa-prop.c (ipa_compute_jump_functions_for_edge,
8746         ipa_find_agg_cst_from_init): Likewise.
8747         * omp-low.c (expand_omp_regimplify_p, expand_omp_taskreg,
8748         expand_omp_target, lower_omp_regimplify_p,
8749         grid_reg_assignment_to_local_var_p, grid_remap_prebody_decls,
8750         find_link_var_op): Likewise.
8751         * tree-chrec.c (chrec_contains_symbols): Likewise.
8752         * tree-cfg.c (verify_address, verify_expr, verify_expr_location_1,
8753         gimple_duplicate_bb, move_stmt_op, replace_block_vars_by_duplicates,
8754         execute_fixup_cfg): Likewise.
8756         PR tree-optimization/77901
8757         * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Only optimize
8758         if ranges[i].exp is SSA_NAME when looking for >= and only when
8759         ranges[i].exp is NULL or SSA_NAME when looking for the other
8760         comparison.
8762 2016-10-09  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
8764         * ipa-cp.c (ipcp_alignment_lattice): Remove.
8765         (ipcp_param_lattices): Remove field alignment.
8766         (print_all_lattices): Remove call to ipcp_alignment_lattice::print.
8767         (set_all_contains_variable): Remove call to
8768         ipcp_alignment_lattice::set_to_bottom.
8769         (initialize_node_lattices): Likewise.
8770         (propagate_alignment_accross_jump_function): Remove.
8771         (propagate_constants_accross_call): Remove call to
8772         propagate_alignment_accross_jump_function.
8773         (ipcp_store_alignment_results): Remove.
8774         (ipcp_driver): Remove call to ipcp_store_alignment_results.
8775         (propagate_bits_accross_jump_function): Handle ancestor jump function.
8776         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Remove
8777         pretty-printing of alignment jump function.
8778         (ipa_set_jf_unknown): Remove assignment to jfunc->alignment.known.
8779         (ipa_compute_jump_functions_for_edge): Adjust ipa_bits jump function for
8780         alignments and remove computing ipa_alignment jump function.
8781         (ipa_node_params_t::duplicate): Remove copying of src_trans->alignments.
8782         (ipa_write_jump_functions): Remove streaming for ipa_alignment.
8783         (ipa_read_jump_function): Remove reading of ipa_alignment.
8784         (write_ipcp_transformation_info): Remove streaming for alignment
8785         propagation summary.
8786         (read_ipcp_transformation_info): Remove reading of alignment
8787         propagation summary.
8788         (ipcp_update_alignments): Remove.
8789         (ipcp_update_bits): Adjust to set alignment for parameters of pointer
8790         type.
8791         (ipcp_transform_function): Remove call to ipcp_update_alignments()
8792         and remove assignment to (*ipcp_transformations)[node->uid].alignments.
8793         * ipa-prop.h (ipa_alignment): Remove.
8794         (ipa_jump_func): Remove field alignment.
8795         (ipcp_transformation_summary): Remove field alignments.
8796         * doc/invoke.texi: Mark fipa-cp-alignment as obsolete.
8797         * opts.c (default_options_table): Remove entry for fipa-cp-alignment.
8798         (enable_fdo_optimizations): Remove checking for fipa-cp-alignment.
8800 2016-10-08  Eric Botcazou  <ebotcazou@adacore.com>
8802         * config/sparc/sparc.h (FIXED_REGISTERS): Add %icc.
8804         * config/visium/visium.c (visium_expand_int_cstore): Revert latest
8805         change.
8806         (visium_expand_fp_cstore): Likewise.
8808 2016-10-08  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
8810         * diagnostic-core.h (warning_at_rich_loc_n): Declare.
8811         * diagnostic.c (warning_at_rich_loc_n): New function.
8812         (diagnostic_n_impl_richloc): Likewise.
8813         (diagnostic_n_impl): Move most of the function to
8814         diagnostic_n_impl_richloc and call it.
8816 2016-10-08  Jakub Jelinek  <jakub@redhat.com>
8818         * gen-pass-instances.awk: Rewritten.
8819         * Makefile.in (pass-instances.def): Depend on $(PASSES_EXTRA), pass
8820         $(PASSES_EXTRA) after passes.def to the script.
8821         * config/i386/t-i386 (PASSES_EXTRA): Add i386-passes.def.
8822         * config/i386/i386-passes.def: New file.
8823         * config/i386/i386-protos.h (make_pass_insert_vzeroupper,
8824         make_pass_stv): Declare.
8825         * config/i386/i386.c (pass_stv::pass_stv): Initialize timode_p to
8826         false.
8827         (pass_stv::gate): Depending on timode_p member require TARGET_64BIT
8828         or !TARGET_64BIT.
8829         (pass_stv::clone, pass_stv::set_pass_param): New methods.
8830         (pass_stv::timode_p): New non-static data member.
8831         (ix86_option_override): Don't register passes here.
8833         * doc/invoke.texi: Document accepting Else, fallthrough.
8835         * doc/invoke.texi (-Wimplicit-fallthrough): Document FALLTHRU comment
8836         style changes.
8838         * doc/invoke.texi (-Wimplicit-fallthrough): Document the accepted
8839         FALLTHRU comment styles.
8841 2016-10-07  Andrew Pinski  <apinski@cavium.com>
8843         * config/aarch64/aarch64-arches.def (AARCH64_ARCH): #undef at the end.
8844         * config/aarch64/aarch64-cores.def (AARCH64_CORE): Likewise.
8845         * config/aarch64/aarch64-fusion-pairs.def (AARCH64_FUSION_PAIR):
8846         Likewise.
8847         * config/aarch64/aarch64-option-extensions.def (AARCH64_OPT_EXTENSION):
8848         Likewise.
8849         * config/aarch64/aarch64-tuning-flags.def (AARCH64_EXTRA_TUNING_OPTION):
8850         Likewise.
8851         * config/aarch64/aarch64-opts.h (AARCH64_CORE): Don't #undef here.
8852         (AARCH64_ARCH): Likewise.
8853         * common/config/aarch64/aarch64-common.c (AARCH64_OPT_EXTENSION):
8854         Likewise.
8855         (AARCH64_CORE): Likewise.
8856         (AARCH64_ARCH): Likewise.
8857         * config/aarch64/aarch64-protos.h (AARCH64_FUSION_PAIR): Likewise.
8858         (AARCH64_EXTRA_TUNING_OPTION): Likewise.
8859         * config/aarch64/aarch64.c (AARCH64_FUION_PAIR): Likewise.
8860         (AARCH64_EXTRA_TUNING_OPTION): Likewise.
8861         (AARCH64_ARCH): Likewise.
8862         (AARCH64_CORE): Likewise.
8863         * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
8864         * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Likewise.
8865         (AARCH64_CORE): Likewise.
8866         (AARCH64_ARCH): Likewise.
8868 2016-10-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
8870         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Split
8871         -mfloat128 into -mfloat128-type that enables the IEEE 128-bit
8872         floating point type infrastructre, and -mfloat128 that enables the
8873         keyword.  Define __FLOAT128__ if -mfloat128, and __FLOAT128_TYPE__
8874         if -mfloat128-type.  Define __ibm128 to be long double by default.
8875         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print whether
8876         the IEEE 128-bit floating point type infrastructure should
8877         automatically be enabled.
8878         (rs6000_init_hard_regno_mode_ok): Switch to use -mfloat128-type
8879         instead of -mfloat128 to enable KFmode.
8880         (rs6000_option_override_internal): Split the option -mfloat128
8881         into -mfloat128-type and -mfloat128.  On Linux PowerPC 64-bit
8882         systems, automatically set -mfloat128-type, but don't enable it on
8883         other operating systems.  Move setting the long double size and
8884         IEEE quad support before the IEEE 128-bit floating point changes.
8885         (rs6000_init_builtins): Do not create a unique type for __ibm128
8886         if long double is IBM extended double, instead rely on __ibm128
8887         being defined as 'long double'.  If -mfloat128-type and not
8888         -mfloat128, create the KFmode type with an undocumented __ieee128
8889         keyword.
8890         (rs6000_init_libfuncs): Use -mfloat128-type instead of
8891         -mfloat128 for tests about the types, but keep tests for
8892         -mfloat128 to enable the keyword support.
8893         (rs6000_complex_function_value): Likewise.
8894         (rs6000_scalar_mode_supported_p): Likewise.
8895         (rs6000_floatn_mode): Likewise.
8896         (rs6000_c_mode_for_suffix): Likewise.
8897         (rs6000_opt_masks): Add -mfloat128-type.
8898         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add support for
8899         -mfloat128-type being split from -mfloat128.  Add
8900         -mfloat128-hardware, which was missing.
8901         * config/rs6000/rs6000.opt (-mfloat128): Split -mfloat128 into
8902         -mfloat128 and -mfloat128-type:
8903         (-mfloat128-type): Likewise.
8904         * config/rs6000/linux64.h (TARGET_FLOAT128_ENABLE_TYPE): Define so
8905         that 64-bit Linux systems with enable -mfloat128-type by default
8906         on VSX systems.
8907         * config/rs6000/rs6000.h (TARGET_FLOAT128_ENABLE_TYPE): Likewise.
8908         (FLOAT128_VECTOR_P): Switch IEEE 128-bit floating points to use
8909         -mfloat128-type instead of -mfloat128.
8910         (FLOAT128_2REG_P): Likewise.
8911         (MASK_FLOAT128_TYPE): Likewise.
8912         (ALTIVEC_ARG_MAX_RETURN): Likewise.
8913         (RS6000_BTM_FLOAT128): Likewise.
8914         (TARGET_FLOAT128): Poison old identifiers.
8915         (OPTION_MASK_FLOAT128): Likewise.
8916         (MASK_FLOAT128): Likewise.
8917         * config/rs6000/rs6000.md (FP): Likewise.
8918         (FLOAT128): Likewise.
8919         (fix_trunc<mode>di2): Likewise.
8920         (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
8921         (floatdi<mode>2): Likewise.
8922         (floatuns<SDI:mode><IEEE128:mode>2): Likewise.
8923         (neg<mode>2, FLOAT128 iterator): Likewise.
8924         (abs<mode>2, FLOAT128 iterator): Likewise.
8925         (ieee_128bit_negative_zero): Likewise.
8926         (ieee_128bit_vsx_neg<mode>2): Likewise.
8927         (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
8928         (ieee_128bit_vsx_abs<mode>2): Likewise.
8929         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
8930         (ieee_128bit_vsx_nabs<mode>2): Likewise.
8931         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
8932         (extendiftf2): Likewise.
8933         (extendifkf2): Likewise.
8934         (extendtfkf2): Likewise.
8935         (trunciftf2): Likewise.
8936         (truncifkf2): Likewise.
8937         (trunckftf2): Likewise.
8938         (trunctfif2): Likewise.
8939         (extendkftf2): Likewise.
8940         (trunctfkf2): Likewise.
8942 2016-10-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8944         * simplify-rtx.c (simplify_immed_subreg): Zero-initialize tmp array
8945         before merging in bytes to pass down to real_from_target.
8947 2016-10-07  Richard Biener  <rguenther@suse.de>
8949         * tree-ssa-propagate.c (replace_phi_args_in): Remove no longer
8950         required hack.
8951         (substitute_and_fold_dom_walker::before_dom_children):
8952         Substitute and fold before pass specific folding to avoid
8953         feeding that with SSA names that will be later released.
8954         * tree-ssa-ccp.c (get_value_for_expr): Guard for new SSA names
8955         introduced by folding and visited by evaluate_stmt called during
8956         ccp_fold_stmt.
8957         (likely_value): Likewise.
8958         (evaluate_stmt): Likewise.
8959         * tree-vrp.c (simplify_truth_ops_using_ranges): Fold modified stmt.
8960         (simplify_div_or_mod_using_ranges): Likewise.
8961         (simplify_min_or_max_using_ranges): Likewise.
8962         (simplify_abs_using_ranges): Likewise.
8963         (simplify_conversion_using_ranges): Likewise.
8964         (simplify_float_conversion_using_ranges): Likewise.
8965         (simplify_stmt_using_ranges): Likewise.
8967 2016-10-07  Marek Polacek  <polacek@redhat.com>
8969         * gimplify.c (should_warn_for_implicit_fallthrough): Check for
8970         FALLTHROUGH_LABEL_P here...
8971         (warn_implicit_fallthrough_r): ...not here.
8973 2016-10-07  Bernd Schmidt  <bschmidt@redhat.com>
8975         PR tree-optimization/77880
8976         * expr.c (by_pieces_ninsns): Use unsigned HOST_WIDE_INT where
8977         necessary.
8979 2016-10-07  Marek Polacek  <polacek@redhat.com>
8981         PR c++/77803
8982         * gimplify.c (last_stmt_in_scope): Add check for FALLTHROUGH ().
8984 2016-10-07  Richard Biener  <rguenther@suse.de>
8986         * bitmap.h: Document constraints on bitmap modification while
8987         iterating over it.
8989 2016-10-07  Richard Biener  <rguenther@suse.de>
8991         * bitmap.c (bitmap_elem_to_freelist): Set indx to -1.
8992         * bitmap.h (bmp_iter_set): When advancing to the next element
8993         check that we didn't remove the current one.
8994         (bmp_iter_and): Likewise.
8995         (bmp_iter_and_compl): Likewise.
8996         * tree-ssa.c (release_defs_bitset): Do not remove worklist bit
8997         we currently iterate on but keep a one-level queue.
8998         * sched-deps.c (remove_from_deps): Do not clear current bit
8999         but keep a one-level queue.
9001 2016-10-07  Jakub Jelinek  <jakub@redhat.com>
9003         PR tree-optimization/77664
9004         * tree-ssa-reassoc.c (update_range_test): Also clear low and high
9005         for the other ranges.
9006         (optimize_range_tests_diff): Fix up formatting.
9007         (optimize_range_tests_var_bound): New function.
9008         (optimize_range_tests): Use it.
9010 2016-10-07  Martin Liska  <mliska@suse.cz>
9012         * coverage.c (build_gcov_exit_decl): Fix priority what
9013         should be really 99.
9015 2016-10-07  Richard Biener  <rguenther@suse.de>
9017         * gimple-low.c (lower_gimple_bind): Clear DECL_CHAIN of
9018         vars in gimple_bind_vars but not in BLOCK_VARS.
9020 2016-10-07  Richard Biener  <rguenther@suse.de>
9022         PR tree-optimization/77879
9023         * tree-ssa-structalias.c (handle_const_call): Properly handle
9024         NRV return slots.
9025         (handle_pure_call): Likewise.
9027 2016-10-06  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
9029         * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor)
9030         (rs6000_elf_asm_out_destructor): increase size of buf to avoid
9031         possible overflow.
9033 2016-10-06  Andrew Pinski  <apinski@cavium.com>
9035         * config/aarch64/aarch64-cores.def: Add a comment before each
9036         set of cores.
9038 2016-10-06  Kugan Vivekanandarajah  <kuganv@linaro.org>
9040         PR tree-optimization/77862
9041         * tree-vrp.c (add_equivalence): Use get_value_range so that
9042         num_vr_values is checked before accessing vr_values.
9044 2016-10-06  Kugan Vivekanandarajah  <kuganv@linaro.org>
9046         * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
9047           POINTER_TYPE_P.
9049 2016-10-05  Jeff Law  <law@redhat.com>
9051         PR tree-optimization/71661
9052         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Handle case when
9053         removal of a forwarder exposes a new natural loop.
9055 2016-10-06  Uros Bizjak  <ubizjak@gmail.com>
9057         * config/i386/sse.md (andnot<mode>3): Add FALLTHRU comments.
9058         Introduce ssesuffix variable.
9059         (<mask_codefor><code><mode>3<mask_name>): Ditto.
9060         (*<code><mode>3): Ditto.
9062 2016-10-06  Jan Hubicka  <hubicka@ucw.cz>
9064         * postreload.c (reload_cse_simplify): Skip also USE when detecting
9065         noop move.
9067 2016-10-06  Richard Biener  <rguenther@suse.de>
9069         PR tree-optimization/77855
9070         * tree-ssa-pre.c (prune_clobbered_mems): Queue exprs to remove
9071         instead of removing the current item while iterating over the set
9072         which is not safe.
9074 2016-10-06  James Clarke  <jrtc27@jrtc27.com>
9075             Eric Botcazou  <ebotcazou@adacore.com>
9077         PR target/77759
9078         * config/sparc/sparc.c (classify_data_t): Remove int_regs field.
9079         (classify_registers): Don't set it
9080         (function_arg_slotno): Don't initialize and test it.  Tidy up.
9082 2016-10-06  Richard Biener  <rguenther@suse.de>
9084         PR tree-optimization/77839
9085         * tree-ssa-sccvn.c (set_ssa_val_to): Forbid value -> constant value
9086         lattice transition.
9088 2016-10-06  Martin Liska  <mliska@suse.cz>
9090         * gcc.c: Set -fprofile-update=atomic when profiling is
9091         enabled and -pthread is set.  Warn when one combines
9092         -pthread and -fprofile-update=single for an app using
9093         profiling code.
9095 2016-10-06  Martin Liska  <mliska@suse.cz>
9097         PR bootstrap/77788
9098         * expmed.h (mul_highpart_cost_ptr): Add an gcc_assert.
9099         * gimple-ssa-strength-reduction.c (slsr_process_cast):
9100         Initialize a pointer to NULL.
9101         (slsr_process_copy): Likewise.
9102         * input.c (location_get_source_line): Likewise.
9103         * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
9105 2016-10-05  Andrew Senkevich  <andrew.senkevich@intel.com>
9107         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
9108         OPTION_MASK_ISA_PCOMMIT_SET): Deleted definitions.
9109         (ix86_handle_option): Deleted handle of OPT_mpcommit.
9110         * config.gcc: Deleted pcommitintrin.h
9111         * config/i386/pcommitintrin.h: Deleted file.
9112         * config/i386/cpuid.h (bit_PCOMMIT): Deleted.
9113         * config/i386/driver-i386.c (host_detect_local_cpu): Deleted pcommit
9114         detection.
9115         * config/i386/i386-c.c (ix86_target_macros_internal): Deleted define
9116         __PCOMMIT__.
9117         * config/i386/i386.c (ix86_target_string): Deleted -mpcommit.
9118         (PTA_PCOMMIT): Deleted define.
9119         (ix86_option_override_internal): Deleted handle of option.
9120         (ix86_valid_target_attribute_inner_p): Deleted pcommit.
9121         * config/i386/i386-builtin.def (IX86_BUILTIN_PCOMMIT,
9122         __builtin_ia32_pcommit): Deleted.
9123         * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Deleted.
9124         * config/i386/i386.md (unspecv): Deleted UNSPECV_PCOMMIT.
9125         (pcommit): Deleted instruction.
9126         * config/i386/i386.opt: Mention -mpcommit deprecation.
9127         * config/i386/x86intrin.h: Deleted inclusion of pcommitintrin.h.
9129 2016-10-05  Uros Bizjak  <ubizjak@gmail.com>
9131         PR target/77874
9132         * config/i386/sse.md (<mask_codefor><code><mode>3<mask_name>):
9133         Remove wrong assert.
9134         (<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>:
9135         Use <round_constraint> as operand 1 constraint.
9137 2016-10-05  Jakub Jelinek  <jakub@redhat.com>
9139         PR sanitizer/66343
9140         * ubsan.c (ubsan_create_data): Call initialize_sanitizer_builtins here.
9141         (ubsan_instrument_float_cast): And not here.
9143         PR sanitizer/66343
9144         * ubsan.c (ubsan_ids): New GTY(()) array.
9145         (ubsan_type_descriptor, ubsan_create_data): Use ubsan_ids
9146         instead of static local counters.
9148 2016-10-05  Martin Sebor  <msebor@redhat.com>
9150         PR bootstrap/77819
9151         * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define macro.
9152         * config/linux.c (gnu_libc_printf_pointer_format): Remove.
9153         * targhooks.c [DEFAULT_LIBC == LIBC_UCLIBC) && SINGLE_LIBC]
9154         (default_printf_pointer_format): Define function.
9155         * targhooks.c (linux_printf_pointer_format): Define new function.
9156         * targhooks.h (linux_printf_pointer_format): Declare.
9157         (gnu_libc_printf_pointer_format): Remove declaration.
9159 2016-10-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9161         * fold-const.c (native_encode_real): Fix logic for selecting offset
9162         to write to when BYTES_BIG_ENDIAN.
9164 2016-10-05  Wilco Dijkstra  <wdijkstr@arm.com>
9166         * builtins.c (fold_builtin_strchr): Remove function.
9167         (fold_builtin_strrchr): Likewise.
9168         (fold_builtin2): Remove strchr, index, strrchr, rindex cases.
9169         * gimple-fold.c (target_char_cst_p): New function.
9170         (gimple_fold_builtin_strchr) Add more foldings.
9171         (gimple_fold_builtin): Add index, strrchr, rindex cases.
9173 2016-10-05  Richard Biener  <rguenther@suse.de>
9175         PR middle-end/77863
9176         * genmatch.c (capture_info::walk_c_expr): Diagnose unknown
9177         capture ids in c-exprs.
9179 2016-10-05  Richard Biener  <rguenther@suse.de>
9181         PR middle-end/77826
9182         * genmatch.c (dt_operand::gen_match_op): Amend operand_equal_p
9183         with types_match for GIMPLE code gen to handle type mismatched
9184         constants properly.
9185         (dt_operand::gen): Adjust.
9186         * match.pd ((X /[ex] A) * A -> X): Properly handle converted
9187         and constant A.
9189 2016-10-05  Richard Biener  <rguenther@suse.de>
9191         * match.pd (copysign(x, CST) -> [-]abs (x)): New pattern.
9193 2016-10-05  Richard Biener  <rguenther@suse.de>
9195         PR middle-end/77842
9196         * genmatch.c (parser::parse_c_expr): Handle premature EOF.
9198 2016-10-05  Pierre-Marie de Rodat  <derodat@adacore.com>
9200         * dwarf2out.c (dwarf2out_imported_module_or_decl): Move DWARF
9201         version check to protect only DW_TAG_imported_module generation.
9203 2016-10-05  Richard Biener  <rguenther@suse.de>
9205         PR middle-end/55152
9206         * match.pd (min(a,-a) -> -abs(a)): New pattern.
9208 2016-10-04  Ian Lance Taylor  <iant@golang.org>
9210         * explow.c (allocate_dynamic_stack_space): Call
9211         do_pending_stack_adjust before handling flag_split_stack.
9213 2016-10-04  David Malcolm  <dmalcolm@redhat.com>
9215         * genattrtab.c (make_internal_attr): Supply dummy column number to
9216         file_location ctor.
9217         (main): Likewise.
9218         * genoutput.c (init_insn_for_nothing): Likewise.
9219         * gensupport.c (add_define_attr): Likewise.
9220         * read-md.c (message_at_1): Print column number.
9221         (fatal_with_file_and_line): Likewise.
9222         (rtx_reader::read_char): Track column numbers.
9223         (rtx_reader::unread_char): Likewise.
9224         (rtx_reader::rtx_reader): Initialize m_read_md_colno.
9225         (rtx_reader::handle_include): Stash and restore m_read_md_colno.
9226         (rtx_reader::handle_file): Initialize m_read_md_colno.
9227         (rtx_reader::get_current_location): Supply column number to
9228         file_location ctor.
9229         * read-md.h (struct file_location): Add field "colno".
9230         (file_location::file_location): Likewise.
9231         (rtx_reader::get_colno): New accessor.
9232         (rtx_reader::m_read_md_colno): New field.
9233         (rtx_reader::m_last_line_colno): New field.
9235 2016-10-04  Jakub Jelinek  <jakub@redhat.com>
9237         * doc/extend.texi (Java Exceptions): Remove.
9238         (java_interface): Remove.
9240 2016-10-04  Doug Gilmore  <doug.gilmore@imgtec.com>
9242         PR tree-optimization/77808
9243         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Check base_addr
9244         and addr are different before copying points-to information.
9246 2016-10-04  Uros Bizjak  <ubizjak@gmail.com>
9248         * config/i386/x86-tune.def (X86_TUNE_VECTORIZE_DOUBLE): Remove.
9249         * config/i386/i386.h (TARGET_VECTORIZE_DOUBLE): Remove.
9250         * config/i386/i386.c (ix86_add_stmt_cost): Use TARGET_BONNEL instead
9251         of !TARGET_VECTORIZE_DOUBLE when penalizing DFmode vector ops.
9253 2016-10-04  Richard Biener  <rguenther@suse.de>
9255         PR tree-optimization/77399
9256         * tree-ssa-forwprop.c (simplify_vector_constructor): Properly
9257         verify the target can convert.
9259 2016-10-04  Richard Biener  <rguenther@suse.de>
9261         PR middle-end/77833
9262         * explow.c (plus_constant): Verify the mode of the constant
9263         pool offset before calling plus_constant.
9265 2016-10-04  Richard Biener  <rguenther@suse.de>
9267         PR middle-end/77407
9268         * match.pd (X / abs (X) -> X < 0 ? -1 : 1): Drop vector
9269         type support, mark with :C.
9270         (X / -X -> -1): Mark with :C.
9272 2016-10-04  Jakub Jelinek  <jakub@redhat.com>
9274         * defaults.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Remove.
9275         * system.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Poison.
9276         * doc/tm.texi.in (TARGET_USE_JCR_SECTION): Remove.
9277         * doc/tm.texi: Regenerated.
9278         * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Remove.
9279         * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Remove.
9280         * config/darwin.h (JCR_SECTION_NAME): Remove.
9281         * config/pa/pa64-hpux.h (JCR_SECTION_NAME): Remove.
9282         * config/rs6000/aix71.h (TARGET_USE_JCR_SECTION): Remove.
9283         * config/rs6000/aix51.h (TARGET_USE_JCR_SECTION): Remove.
9284         * config/rs6000/aix52.h (TARGET_USE_JCR_SECTION): Remove.
9285         * config/rs6000/aix53.h (TARGET_USE_JCR_SECTION): Remove.
9286         * config/rs6000/aix61.h (TARGET_USE_JCR_SECTION): Remove.
9288 2016-10-03  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9290         * ipa-cp.c (propagate_bits_accross_jump_function): Introduce space
9291         between "because" and "param" in dump message in call to fprintf.
9293 2016-10-03  Jeff Law  <law@redhat.com>
9295         PR tree-optimization/71550
9296         PR tree-optimization/71403
9297         * tree-ssa-threadbackward.c: Include tree-vectorizer.h
9298         (profitable_jump_thread_path): Also return boolean indicating if
9299         the realized path will create an irreducible loop.
9300         Remove loop depth tests from 71403.
9301         (fsm_find_control_statement_thread_paths): Remove loop depth tests
9302         from 71403.  If threading will create an irreducible loop, then
9303         throw away loop iteration and related information.
9305 2016-10-03  Uros Bizjak  <ubizjak@gmail.com>
9307         * configure.ac (strict_warn): Merge -Wmissing-format-attribute and
9308         -Woverloaded-virtual checks for warning options.
9309         * configure: Regenerate.
9311 2016-10-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9313         PR preprocessor/77699
9314         * input.c (maybe_grow): Don't allocate one byte extra headroom.
9315         (get_next_line): Return false on error.
9316         (read_next_line): Removed, use get_next_line instead.
9317         (read_line_num): Don't copy the line.
9318         (location_get_source_line): Don't use static data.
9319         (selftest::test_reading_source_line): Add more test cases.
9321 2016-10-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9323         Revert
9324         2016-09-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9326         * ifcvt.c (noce_try_avoid_const_materialization): New function.
9327         (noce_process_if_block): Use it.
9329 2016-10-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9331         * doc/invoke.texi: Update -Wint-in-bool-context.
9333 2016-10-02  Jakub Jelinek  <jakub@redhat.com>
9335         * dwarf2out.c (output_fde, output_call_frame_info,
9336         dwarf2out_do_cfi_startproc, set_indirect_string,
9337         gen_internal_sym, output_die, output_line_info): Use
9338         MAX_ARTIFICIAL_LABEL_BYTES as char array sizes for
9339         ASM_GENERATE_INTERNAL_LABEL output.
9341 2016-10-01  Richard Biener  <rguenther@suse.de>
9343         PR middle-end/77798
9344         * genmatch.c (get_operand_type): Add operand position arg
9345         and handle COND_EXPR comparison operand with fixed boolean_type_node.
9346         (expr::gen_transform): Adjust.
9347         (dt_simplify::gen_1): Likewise.
9349 2016-10-01  Jakub Jelinek  <jakub@redhat.com>
9351         * config/i386/sse.md (<mask_codefor><code><mode>): Add FALLTHRU
9352         comments.  Simplify asserts, remove unnecessary conditions.
9353         Formatting fixes.
9354         (*<code><mode>3): Likewise.
9356 2016-09-30  Jakub Jelinek  <jakub@redhat.com>
9358         * doc/invoke.texi (-Wregister): Document.
9360 2016-09-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9362         * configure.ac: Split CHECKING_P into CHECKING_P and
9363         ENABLE_EXTRA_CHECKING.
9364         * configure: Regenerated.
9365         * config.in: Adjust commment of CHECKING_P.  Add ENABLE_EXTRA_CHECKING.
9366         * common.opt (flag_checking): Use CHECKING_P and ENABLE_EXTRA_CHECKING.
9368 2016-09-30  Prasad Ghangal  <prasad.ghangal@gmail.com>
9370         PR other/31566
9371         * gcc.c (process_command): For @filename handling, output
9372         the correct name if the file does not exist.
9374 2016-09-30  Marek Polacek  <polacek@redhat.com>
9376         * config/aarch64/aarch64-simd.md: Adjust fall through comments.
9377         * config/alpha/predicates.md: Likewise.
9379 2016-09-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9381         * ifcvt.c (noce_try_avoid_const_materialization): New function.
9382         (noce_process_if_block): Use it.
9384 2016-09-30  Martin Liska  <mliska@suse.cz>
9386         * doc/invoke.texi: Document asan-use-after-return that
9387         it's disabled by default in runtime.
9389 2016-09-30  Richard Biener  <rguenther@suse.de>
9391         * tree-vrp.c (intersect_ranges): If we failed to handle
9392         the intersection choose a constant singleton range if available.
9394 2016-09-30  Richard Biener  <rguenther@suse.de>
9396         PR tree-optimization/77399
9397         * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
9398         float <-> int conversions.
9400 2016-09-30  Alan Modra  <amodra@gmail.com>
9402         * config/rs6000/rs6000.c (rs6000_opt_vars): Revert last change.
9404 2016-09-29  Uros Bizjak  <ubizjak@gmail.com>
9406         * config/i386/driver-i386.c (host_detect_local_cpu): Check maximum
9407         ext_level before calling CPUID with 0x80000008.
9408         Simplify xgetbv checks.
9410 2016-09-29  David Malcolm  <dmalcolm@redhat.com>
9412         * Makefile.in (OBJS): Add print-rtl-function.o.
9413         * print-rtl-function.c: New file.
9414         * print-rtl.h (print_rtx_function): New decl.
9416 2016-09-29  Uros Bizjak  <ubizjak@gmail.com>
9418         PR target/77756
9419         * config/i386/cpuid.h (__get_cpuid_count): New.
9420         (__get_cpuid): Rename __level to __leaf.
9422 2016-09-29  Marek Polacek  <polacek@redhat.com>
9424         * genattrtab.c (write_attr_case): Also emit FALLTHRU marker.
9426 2016-09-29  Bernd Schmidt  <bschmidt@redhat.com>
9428         PR target/77718
9429         * builtins.c (expand_builtin_memcmp): Don't swap args unless
9430         result is only being compared with zero.
9432 2016-09-29  Marek Polacek  <polacek@redhat.com>
9434         * dwarf2out.c (loc_descriptor): Add fall through comment.
9435         (add_const_value_attribute): Likewise.
9437 2016-09-29  Matthew Wahab  <matthew.wahab@arm.com>
9439         * config/arm/arm.md (*arm_movsi_insn): Replace "t2" arch attribute
9440         with "v6t2".  Move "arch" attribute above "pool_range".
9441         * config/arm/vfp.md (*arm_movhi_vfp): Replace "t2" arch attribute
9442         with "v6t2".
9443         (*thumb2_movhi_vfp): Likewise.
9444         (*arm_movhi_fp16): Likewise.
9445         (*thumb2_movhi_fp16): Likewise.
9446         (*arm_movsi_vfp): Remove "arch" attribute.
9447         (*thumb2_movsi_vfp): Likewise.
9449 2016-09-29  Martin Liska  <mliska@suse.cz>
9451         * doc/extend.texi: Remove limitation of Objective C for
9452         __attribute__((constructor)) and __attribute__((destructor)).
9454 2016-09-29  Richard Biener  <rguenther@suse.de>
9456         PR tree-optimization/77768
9457         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
9458         Handle stores to readonly memory when removing redundant stores.
9460 2016-09-29  Richard Biener  <rguenther@suse.de>
9462         PR middle-end/77407
9463         * match.pd: Add X / abs (X) -> X < 0 ? -1 : 1 and
9464         X / -X -> -1 simplifications.
9466 2016-09-29  Richard Biener  <rguenther@suse.de>
9468         PR middle-end/55152
9469         * match.pd: Add max(a,-a) -> abs(a) pattern.
9470         * tree-ssa-phiopt.c (minmax_replacement): Disable for
9471         HONOR_SIGNED_ZEROS types.
9473 2016-09-29  James Greenhalgh  <james.greenhalgh@arm.com>
9475         * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Remove.
9476         * system.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Poison.
9478 2016-09-29  Richard Biener  <rguenther@suse.de>
9480         * tree-vrp.c (set_defs_to_varying): New helper avoiding
9481         writing to vr_const_varying.
9482         (vrp_initialize): Call it.
9483         (vrp_visit_stmt): Likewise.
9484         (evrp_dom_walker::before_dom_children): Likewise.
9486 2016-09-29  Richard Biener  <rguenther@suse.de>
9488         * tree-vect-stmts.c (vectorizable_load): Avoid emitting vector
9489         constructors with vector elements.
9491 2016-09-29  Richard Biener  <rguenther@suse.de>
9493         PR tree-optimization/77768
9494         * tree-ssa-sccvn.c (visit_reference_op_store): Properly deal
9495         with stores to a place we know has a constant value.
9497 2016-09-29  Alan Modra  <amodra@gmail.com>
9499         * config/rs6000/sysv4.opt (mgnu-attribute): New option.
9500         * doc/invoke.texi: Document it.
9501         * config/rs6000/rs6000.c (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): Define.
9502         (rs6000_passes_float): Comment.
9503         (rs6000_passes_long_double): New static var.
9504         (call_ABI_of_interest): Return false unless rs6000_gnu_attr is set.
9505         (init_cumulative_args): Set up to emit fp .gnu_attribute for
9506         ELF 64-bit ABIs as well as 32-bit ELF.  Correct rs6000_passes_float
9507         to include fp values returned in vectors.
9508         Set rs6000_passes_long_double.
9509         (rs6000_function_arg_advance_1): Likewise for function args.
9510         (rs6000_elf_file_end): Emit fp .gnu_attribute for ELF 64-bit ABIs,
9511         and SPE.  Emit long double tag value too.
9512         (rs6000_opt_vars): Add gnu-attr.
9513         * configure.ac (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): New ppc32 test.
9514         * configure: Regenerate.
9515         * config.in: Regenerate.
9517 2016-09-28  Jakub Jelinek  <jakub@redhat.com>
9519         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Use x > 0 instead
9520         of 0 < x.
9521         (format_floating, format_string, format_directive,
9522         get_destination_size, pass_sprintf_length::handle_gimple_call):
9523         Likewise.
9525 2016-09-28  Jakub Jelinek  <jakub@redhat.com>
9527         * gimple-ssa-sprintf.c: Fix comment formatting.
9528         (format_integer): Use is_gimple_assign.
9529         (pass_sprintf_length::handle_gimple_call): Use gimple_call_builtin_p
9530         and gimple_call_fndecl.  Reorder case BUILT_IN_SPRINTF_CHK.  Fix up
9531         BUILT_IN_SNPRINTF_CHK comment.  Replace "to to" with "to" in comment.
9532         (pass_sprintf_length::execute): Use is_gimple_call.
9534 2016-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
9536         * gimple-fold.c (gimple_fold_builtin): After failing to fold
9537         strchr, also try the generic folding.
9539 2016-09-28  Martin Sebor  <msebor@redhat.com>
9541         PR c/77762
9542         * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
9543         Fix typos.
9545 2016-09-28  Martin Sebor  <msebor@redhat.com>
9547         PR middle-end/77683
9548         * gimple-ssa-sprintf.c (format_integer): Fail gracefully when
9549         length modifier is not expected.
9550         (format_floating): Ignore l length modifier and fail gracefuly
9551         when it isn't one of the other expected ones.
9553 2016-09-28  Martin Sebor  <msebor@redhat.com>
9555         PR bootstrap/77753
9556         * varasm.c (assemble_addr_to_section): Increase local buffer size.
9558 2016-09-27  Richard Biener  <rguenther@suse.de>
9560         * dwarf2out.c (cu_die_list): New global.
9561         (dwarf2out_finish): Walk cu_die_list instead of limbo DIEs.  Add
9562         main_comp_unit_die to cu_die_list if we created it.
9563         Move break_out_includes ...
9564         (dwarf2out_early_finish): ... here.  Push created CU DIEs onto
9565         the cu_die_list.
9567 2016-09-28  Richard Biener  <rguenther@suse.de>
9569         * dwarf2out.c (struct die_struct): Add removed flag.
9570         (lookup_type_die): If the DIE is marked as removed, clear
9571         TYPE_SYMTAB_DIE and return NULL.
9572         (lookup_decl_die): If the DIE is marked as removed, remove it
9573         from the hash and return NULL.
9574         (mark_removed): New helper.
9575         (prune_unused_types_prune): Call it for removed DIEs.
9576         (gen_subprogram_die): Move the premark_used_types call to after
9577         DIEs for the functions scopes are generated.
9578         (process_scope_var): Do not re-create pruned types or type decls.
9579         Make sure to also re-parent type decls.
9580         (dwarf2out_finish): Move unused type pruning and debug_types
9581         handling ...
9582         (dwarf2out_early_finish): ... here.
9584 2016-09-29  Claudiu Zissulescu  <claziss@synopsys.com>
9586         * config/arc/arc-c.c: New file.
9587         * config/arc/arc-c.def: Likewise.
9588         * config/arc/t-arc: Likewise.
9589         * config.gcc: Include arc-c.o as c and cpp object.
9590         * config/arc/arc-protos.h (arc_cpu_cpp_builtins): Add prototype.
9591         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Use
9592         arc_cpu_cpp_builtins.
9594 2016-09-29  Claudiu Zissulescu  <claziss@synopsys.com>
9596         * config/arc/arc.md (*rotrsi3_cnt1): New pattern.
9597         (*ashlsi2_cnt1, *lshrsi3_cnt1, *ashrsi3_cnt1): Likewise.
9599 2016-09-28  Nathan Sidwell  <nathan@acm.org>
9601         * gimple-pretty-print.c (dump_gimple_call_args): Simplify "' "
9602         printing.
9604 2016-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
9606         PR tree-optimization/61056
9607         * gimple-fold.c (gimple_fold_builtin_strchr):
9608         New function to optimize strchr (s, 0) to strlen.
9609         (gimple_fold_builtin): Add BUILT_IN_STRCHR case.
9611 2016-09-27  Robin Dapp  <rdapp@linux.vnet.ibm.com>
9613         PR tree-optimization/77724
9614         * tree-vect-loop-manip.c (create_intersect_range_checks_index):
9615         Add tree_fits_shwi_p check.
9617 2016-09-27  Jakub Jelinek  <jakub@redhat.com>
9619         * auto-inc-dec.c (try_merge): Remove break after return.
9620         * cselib.c (autoinc_split): Likewise.
9621         * explow.c (promote_mode): Likewise.
9622         * fixed-value.c (fixed_arithmetic): Likewise.
9623         * hsa.c (hsa_internal_fn::get_arity): Likewise.
9624         * rtlanal.c (modified_between_p, modified_in_p): Likewise.
9625         * trans-mem.c (get_attrs_for): Likewise.
9626         * tree-if-conv.c (if_convertible_stmt_p): Likewise.
9627         * tree-vrp.c (simplify_stmt_using_ranges): Likewise.
9628         * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Likewise.
9629         * config/aarch64/aarch64.c (aarch64_get_condition_code_1): Likewise.
9630         * config/c6x/c6x.c (c6x_get_unit_specifier): Likewise.
9631         * config/cr16/cr16.c (legitimate_pic_operand_p): Likewise.
9632         * config/cris/cris.c (cris_op_str): Likewise.
9633         * config/mn10300/mn10300.c (cc_flags_for_code): Likewise.
9634         * config/tilepro/tilepro.c (tilepro_emit_setcc_internal_di): Likewise.
9636 2016-09-27  Nathan Sidwell  <nathan@codesourcery.com>
9638         * internal-fn.h (IFN_UNIQUE_CODES, IFN_GOACC_LOOP_CODES,
9639         IFN_GOACC_REDUCTION_CODES): New.
9640         (enum ifn_unique_kind, enum ifn_goacc_loop_kind, enum
9641         ifn_goacc_reduction_kind): Use them.
9642         * gimple-pretty-print.c (dump_gimple_call_args): Decode first arg
9643         of internal functions, when applicable.
9645 2016-09-27  Maciej W. Rozycki  <macro@imgtec.com>
9647         * config/mips/constraints.md (d): Fix documentation.
9648         * doc/md.texi (Machine Constraints): Update accordingly.
9650 2016-09-27  Richard Biener  <rguenther@suse.de>
9652         * dwarf2out.c (dwarf2out_init): Move text_section_line_info,
9653         cur_line_info_table initialization ...
9654         (dwarf2out_assembly_start): ... here.
9656 2016-09-27  Matthew Wahab  <matthew.wahab@arm.com>
9658         * config/arm/arm.md (*arm_movsi_insn): Add "arch" attribute.
9659         * config/arm/vfp.md (*arm_movhi_vfp): Likewise.
9660         (*thumb2_movhi_vfp): Likewise.
9661         (*arm_movhi_fp16): Remove predication operand from VMOV.F16
9662         template.  Expand predicable attribute to mark VMOV.F16 as not
9663         predicable.  Add "arch" attribute.
9664         (*thumb2_movhi_fp16): Likewise.
9665         (*arm_movsi_vfp): Break a long line.  Add "arch" attribute.
9666         (*thumb2_movsi_vfp): Add "arch" attribute.
9668 2016-09-27  David Edelsohn  <dje.gcc@gmail.com>
9670         * config/rs6000/rs6000.c (rs6000_output_symbol): Don't modify
9671         VAR_DECL string.
9673 2016-09-27  Marek Polacek  <polacek@redhat.com>
9675         * config/ia64/ia64.c (ia64_print_operand): Adjust fall through
9676         comment.
9678         * config/c6x/c6x.h: Adjust fall through comment.
9679         * config/sh/sh.c (final_prescan_insn): Likewise.
9680         * config/visium/visium.c (visium_expand_int_cstore): Likewise.
9681         (visium_expand_fp_cstore): Likewise.
9683 2016-09-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9685         * config/arm/arm.c (const_ok_for_op): Use "Fall through" comment form
9686         expected by -Wimplicit-fallthrough.
9687         (thumb1_size_rtx_costs): Likewise.
9688         (thumb2_reorg): Likewise.
9689         (tls_mentioned_p): Add "Fall through" comment.
9690         (thumb2_reorg): Likewise.
9691         * config/arm/arm-builtins.c (arm_expand_neon_args): Use "Fall through"
9692         comment form expected by -Wimplicit-fallthrough.
9694 2016-09-27  Martin Liska  <mliska@suse.cz>
9696         PR gcov-profile/46266
9697         * input.h (RESERVED_LOCATION_P): New macro.
9698         * profile.c (branch_prob): Use RESERVED_LOCATION_P and
9699         instread of comparison with UNKNOWN_LOCATION.
9701 2016-09-27  Richard Biener  <rguenther@suse.de>
9703         PR tree-optimization/77745
9704         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
9705         When removing redundant stores make sure to check compatibility
9706         of the TBAA state for downstream accesses.
9707         * tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when
9708         value-numbering virtual operands for store matches.
9710 2016-09-27  Oleg Endo  <olegendo@gcc.gnu.org>
9712         PR target/51244
9713         * config/sh/sh.c (sh_rtx_costs): Fix return value of SET of movt and
9714         movrt patterns.  Match them before anything else in the SET case.
9716 2016-09-27  Martin Liska  <mliska@suse.cz>
9718         PR gcov-profile/7970
9719         PR gcov-profile/16855
9720         PR gcov-profile/44779
9721         * coverage.c (build_gcov_exit_decl): New function.
9722         (coverage_obj_init): Call the function and generate __gcov_exit
9723         destructor.
9724         * doc/gcov.texi: Document when __gcov_exit function is called.
9726 2016-09-27  Marek Polacek  <polacek@redhat.com>
9728         PR bootstrap/77751
9729         * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
9730         insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Use
9731         -Wno-error instead of -Wno-implicit-fallthrough.
9733 2016-09-27  Martin Liska  <mliska@suse.cz>
9735         PR bootstrap/77749
9736         * gcov-counter.def: Remove GCOV_COUNTER_V_DELTA.
9738 2016-09-27  Jakub Jelinek  <jakub@redhat.com>
9740         * combine.c (simplify_comparison): Add canonical FALLTHROUGH comments.
9741         * config/i386/i386.c (ix86_dep_by_shift_count_body): Add FALLTHROUGH
9742         comments.  Remove break after return.
9743         (ix86_fp_compare_code_to_integer, has_dispatch,
9744         ix86_simd_clone_usable): Remove break after return.
9746 2016-09-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9748         PR rlt-optimization/77714
9749         * lra-eliminations.c (eliminate_regs_in_insn): Avoid alias on
9750         REG_EQUAL note.
9752 2016-09-27  Kugan Vivekanandarajah  <kuganv@linaro.org>
9754         PR ipa/77677
9755         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Use
9756         extract_range_from_unary_expr to convert value_range.
9757         * tree-vrp.c (extract_range_from_unary_expr_1): Rename to.
9758         (extract_range_from_unary_expr): This.
9759         * tree-vrp.h (extract_range_from_unary_expr): Declare.
9761 2016-09-27  Segher Boessenkool  <segher@kernel.crashing.org>
9763         * config/rs6000/rs6000.md (movcc_internal1): Disparage using CTR or LR.
9765 2016-09-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9767         * config/i386/i386.c (ix86_print_operand)
9768         [HAVE_AS_IX86_CMOV_SUN_SYNTAX]: Add gcc_fallthrough.
9769         * config/sparc/sparc.c (check_pic): Add fallthrough comment.
9770         (epilogue_renumber): Likewise.
9772 2016-09-26  Kugan Vivekanandarajah  <kuganv@linaro.org>
9774         PR middle-end/77719
9775         * tree-ssa-reassoc.c (make_new_ssa_for_def): Use gimple_get_lhs
9776         to get lhs instead of gimple_assign_lhs as stmt can be builtins too.
9778 2016-09-26  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9780         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
9781         is_mm_consume, is_mm_acquire, is_mm_release, is_mm_acq_rel,
9782         is_mm_seq_cst, is_mm_sync): Move to ...
9783         * memmodel.h: This.  New file.
9784         * builtins.c: Include memmodel.h.
9785         * optabs.c: Likewise.
9786         * tsan.c: Likewise.
9787         * config/aarch64/aarch64.c: Likewise.
9788         * config/alpha/alpha.c: Likewise.
9789         * config/arm/arm.c: Likewise.
9790         * config/i386/i386.c: Likewise.
9791         * config/ia64/ia64.c: Likewise.
9792         * config/mips/mips.c: Likewise.
9793         * config/rs6000/rs6000.c: Likewise.
9794         * config/sparc/sparc.c: Likewise.
9795         * genconditions.c: Include memmodel.h in generated file.
9796         * genemit.c: Likewise.
9797         * genoutput.c: Likewise.
9798         * genpeep.c: Likewise.
9799         * genpreds.c: Likewise.
9800         * genrecog.c: Likewise.
9802 2016-09-26  David Malcolm  <dmalcolm@redhat.com>
9804         * read-rtl.c (read_rtx_code): Rename local "i" to "idx", and use
9805         "c" instead when parsing characters.  Move operand parsing into...
9806         (read_rtx_operand): ...this new function, renaming "i" to "idx",
9807         and tightening the scope of various locals.
9809 2016-09-26  Liu Hao  <lh_mouse@126.com>
9811         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Fix typo.
9813 2016-09-26  Marek Polacek  <polacek@redhat.com>
9815         * system.h: Use __has_attribute to check whether the fallthrough
9816         attribute is supported.
9818 2016-09-26  Marek Polacek  <polacek@redhat.com>
9820         * ipa-inline-analysis.c (find_foldable_builtin_expect): Use
9821         gimple_call_internal_p.
9822         * ipa-split.c (find_return_bb): Likewise.
9823         (execute_split_functions): Likewise.
9824         * omp-low.c (dump_oacc_loop_part): Likewise.
9825         (oacc_loop_xform_head_tail): Likewise.
9826         * predict.c (predict_loops): Likewise.
9827         * sanopt.c (pass_sanopt::execute): Likewise.
9828         * tree-cfg.c (get_abnormal_succ_dispatcher): Likewise.
9829         * tree-parloops.c (oacc_entry_exit_ok_1): Likewise.
9830         * tree-stdarg.c (gimple_call_ifn_va_arg_p): Remove function.
9831         (expand_ifn_va_arg_1): Use gimple_call_internal_p.
9832         (expand_ifn_va_arg): Likewise.
9833         * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
9834         (optimize_mask_stores): Likewise.
9835         * tree-vect-stmts.c (vect_simd_lane_linear): Likewise.
9836         (vect_transform_stmt): Likewise.
9837         * tree-vectorizer.c (vect_loop_vectorized_call): Likewise.
9838         * tsan.c (instrument_memory_accesses): Likewise.
9840 2016-09-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9841             Alexander Monakov  <amonakov@ispras.ru>
9843         * regrename.c (rename_chains): Check
9844         HARD_FRAME_POINTER_IS_FRAME_POINTER rather than
9845         HARD_FRAME_POINTER_REGNUM when picking unavailable registers.
9846         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
9848 2016-09-26  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9850         * config/s390/s390.c (s390_rtx_costs): Add /* fallthrough */.
9851         (s390_sched_score): Likewise.
9853 2016-09-26  Martin Liska  <mliska@suse.cz>
9855         * doc/gcov.texi: Update program output of gcov tool.
9857 2016-09-26  Martin Liska  <mliska@suse.cz>
9859         PR gcov-profile/23332
9860         * profile.c (instrument_values): Do not handle HIST_TYPE_CONST_DELTA.
9861         * tree-profile.c (gimple_gen_const_delta_profiler): Remove.
9862         * value-prof.c (dump_histogram_value): Do not handle
9863         HIST_TYPE_CONST_DELTA.
9864         (stream_in_histogram_value): Likewise.
9865         (gimple_find_values_to_profile): Likewise.
9866         * value-prof.h (enum hist_type): Likewise.
9868 2016-09-26  Martin Liska  <mliska@suse.cz>
9870         * common.opt: Exclude SANITIZE_UNREACHABLE and SANITIZE_RETURN
9871         from default sanitize recover values.
9872         * doc/invoke.texi: Fix documentation related to -fsanitize=leak,
9873         -fsanitize=address, -fsanitize=thread and -fsanitize-recover.
9874         * flag-types.h: Replace couple of 1 << x to 1UL << x, make it
9875         consistent.
9876         * opts.c (finish_options): Do a generic loop over options
9877         that can be recovered.
9878         (parse_sanitizer_options): Exclude SANITIZE_UNREACHABLE and
9879         SANITIZE_RETURN.
9880         (common_handle_option): Likewise.
9881         * opts.h: Declare can_recover to sanitizer_opts_s.
9883 2016-09-26  Andre Vieira  <andre.simoesdiasvieira@arm.com>
9885         * target.def(elf_flags_numeric): Change documentation to present tense.
9886         * doc/tm.texi: Regenerate.
9888 2016-09-26  Marek Polacek  <polacek@redhat.com>
9890         PR c/7652
9891         * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
9892         insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Add
9893         -Wno-switch-fallthrough.
9894         * builtins.c (expand_builtin_int_roundingfn_2): Add gcc_fallthrough.
9895         (expand_builtin): Likewise.
9896         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass): Likewise.
9897         * convert.c (convert_to_real_1): Likewise.
9898         (convert_to_integer_1): Likewise.
9899         * final.c (output_alternate_entry_point): Likewise.
9900         * genattrtab.c (make_canonical): Likewise.
9901         (write_test_expr): Likewise.
9902         * genpreds.c (validate_exp): Likewise.
9903         * gimple-ssa-strength-reduction.c
9904         (find_candidates_dom_walker::before_dom_children): Likewise.
9905         * godump.c (go_format_type): Likewise.
9906         * reload1.c (elimination_effects): Likewise.
9907         * resource.c (mark_referenced_resources): Likewise.
9908         (mark_set_resources): Likewise.
9909         * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Likewise.
9910         * varasm.c (output_addressed_constants): Likewise.
9912 2016-09-26  Marek Polacek  <polacek@redhat.com>
9914         PR c/7652
9915         * common.opt (Wimplicit-fallthrough): New option.
9916         * doc/extend.texi: Document statement attributes and the fallthrough
9917         attribute.
9918         * doc/invoke.texi: Document -Wimplicit-fallthrough.
9919         * gimple.h (gimple_call_internal_p): New function.
9920         * gimplify.c (struct gimplify_ctx): Add in_switch_expr.
9921         (struct label_entry): New struct.
9922         (find_label_entry): New function.
9923         (case_label_p): New function.
9924         (collect_fallthrough_labels): New function.
9925         (last_stmt_in_scope): New function.
9926         (should_warn_for_implicit_fallthrough): New function.
9927         (warn_implicit_fallthrough_r): New function.
9928         (maybe_warn_implicit_fallthrough): New function.
9929         (expand_FALLTHROUGH_r): New function.
9930         (expand_FALLTHROUGH): New function.
9931         (gimplify_switch_expr): Call maybe_warn_implicit_fallthrough and
9932         expand_FALLTHROUGH for the innermost GIMPLE_SWITCH.
9933         (gimplify_label_expr): New function.
9934         (gimplify_case_label_expr): Set location.
9935         (gimplify_expr): Call gimplify_label_expr.
9936         * internal-fn.c (expand_FALLTHROUGH): New function.
9937         * internal-fn.def (FALLTHROUGH): New internal function.
9938         * langhooks.c (lang_GNU_OBJC): New function.
9939         * langhooks.h (lang_GNU_OBJC): Declare.
9940         * system.h (gcc_fallthrough): Define.
9941         * tree-core.h: Add FALLTHROUGH_LABEL_P comment.
9942         * tree.h (FALLTHROUGH_LABEL_P): Define.
9944 2016-09-26  Richard Biener  <rguenther@suse.de>
9946         * dwarf2out.c (stripattributes): Remove unused function.
9947         (DEBUG_NORM_MACINFO_SECTION): Rename to DEBUG_MACINFO_SECTION.
9948         Push dwarf_split_debug_info handling into init_sections_and_labels.
9949         (DEBUG_NORM_MACRO_SECTION): Likewise to DEBUG_MACRO_SECTION.
9950         (DEBUG_MACRO_SECTION_FLAGS): Remove.
9951         (debug_macinfo_section_name): New global.
9952         (output_macinfo): Use debug_macinfo_section_name.
9953         (init_sections_and_labels): Split out section and label generation
9954         from dwarf2out_init.  Set debug_macinfo_section_name.
9955         (dwarf2out_init): Move text section label generation and emission
9956         to ...
9957         (dwarf2out_assembly_start): ... here.
9958         (dwarf2out_finish): Call init_sections_and_labels before DWARF
9959         output starts.
9961 2016-09-26  Richard Biener  <rguenther@suse.de>
9963         PR debug/77692
9964         * cgraphunit.c (analyze_functions): Before early removing
9965         global vars calls the late_global_decl debug handler mark
9966         the variable as readonly.
9968 2016-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
9970         PR target/51244
9971         * config/sh/sh.c (sh_movt_set_dest, sh_movrt_set_dest): Add overloads.
9972         (sh_rtx_costs): Handle SET of movt and movrt patterns.
9973         * cnofig/sh/sh-protos.h (sh_movt_set_dest, sh_movrt_set_dest): Forward
9974         declare new overloads.
9975         * config/sh/sh.md (*cset_zero): Add variant that takes a treg_set_expr
9976         operand.
9978 2016-09-24  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
9980         * config/rs6000/rs6000.c (expand_block_compare, do_load_for_compare):
9981         Change TARGET_LITTLE_ENDIAN to !BYTES_BIG_ENDIAN.
9983 2016-09-24  David Edelsohn  <dje.gcc@gmail.com>
9985         * configure.ac (gcc_cv_as_aix_dwloc): Fix typo in assembly fragment.
9986         * configure: Regenerate.
9988 2016-09-24  Marek Polacek  <polacek@redhat.com>
9990         PR c/77490
9991         * doc/invoke.texi: Document -Wbool-operation.
9993 2016-09-23  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
9995         * config/rs6000/rs6000.md (cmpmemsi): New define_expand.
9996         * config/rs6000/rs6000.c (expand_block_compare): New function used by
9997         cmpmemsi pattern to do builtin expansion of memcmp ().
9998         (compute_current_alignment): Add helper function for
9999         expand_block_compare used to compute alignment as the compare proceeds.
10000         (select_block_compare_mode): Used by expand_block_compare to select
10001         the mode used for reading the next chunk of bytes in the compare.
10002         (do_load_for_compare): Used by expand_block_compare to emit the load
10003         insns for the compare.
10004         (rs6000_emit_dot_insn): Moved this function to avoid a forward
10005         reference from expand_block_compare ().
10006         * config/rs6000/rs6000-protos.h (expand_block_compare): Add a
10007         prototype for this function.
10008         * config/rs6000/rs6000.opt (mblock-compare-inline-limit): Add a new
10009         target option for controlling how much code inline expansion of
10010         memcmp() will be allowed to generate.
10012 2016-09-23  Jakub Jelinek  <jakub@redhat.com>
10014         * hooks.c (hook_bool_bool_false, hook_bool_bool_gcc_optionsp_false,
10015         hook_bool_mode_false, hook_bool_mode_true,
10016         hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
10017         hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
10018         hook_bool_const_rtx_insn_const_rtx_insn_true,
10019         hook_bool_mode_uhwi_false, hook_void_FILEptr_constcharptr,
10020         hook_bool_FILEptr_rtx_false, hook_bool_gsiptr_false,
10021         hook_bool_const_tree_hwi_hwi_const_tree_false,
10022         hook_bool_const_tree_hwi_hwi_const_tree_true,
10023         default_can_output_mi_thunk_no_vcall, hook_int_uint_mode_1,
10024         hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
10025         hook_int_rtx_0, hook_int_rtx_bool_0, hook_void_tree,
10026         hook_void_constcharptr, hook_void_tree_treeptr, hook_void_int_int,
10027         hook_bool_tree_false, hook_bool_const_tree_false, hook_bool_tree_true,
10028         hook_bool_const_tree_true, hook_bool_tree_tree_false,
10029         hook_bool_tree_tree_true, hook_bool_tree_bool_false,
10030         hook_bool_rtx_insn_true, hook_bool_rtx_false,
10031         hook_bool_uintp_uintp_false,
10032         hook_bool_rtx_mode_int_int_intp_bool_false, hook_rtx_rtx_null,
10033         hook_rtx_tree_int_null, hook_uint_mode_0,
10034         hook_constcharptr_const_tree_null, hook_tree_tree_int_treep_bool_null,
10035         hook_tree_tree_tree_null, hook_tree_tree_tree_tree_null,
10036         hook_constcharptr_const_rtx_insn_null,
10037         hook_constcharptr_const_tree_const_tree_null,
10038         hook_constcharptr_int_const_tree_null,
10039         hook_constcharptr_int_const_tree_const_tree_null,
10040         hook_tree_const_tree_null, hook_bool_rtx_insn_int_false,
10041         hook_void_rtx_insn_int, hook_void_gcc_optionsp): For arguments with
10042         ATTRIBUTE_UNUSED, remove parameter name as well as ATTRIBUTE_UNUSED.
10044         * vec.h (vNULL): Extend comment to say = vNULL initialization
10045         isn't needed for static vars.
10047         * sel-sched-ir.c (sel_global_bb_info, sel_region_bb_info,
10048         loop_nests, s_i_d, last_added_blocks): Remove unnecessary
10049         = vNULL initialization of file scope vec.
10050         * passes.c (pass_tab, enabled_pass_uid_range_tab,
10051         disabled_pass_uid_range_tab): Likewise.
10052         * haifa-sched.c (sched_luids, h_i_d): Likewise.
10053         * tree-chkp-opt.c (check_infos): Likewise.
10054         * sel-sched.c (vec_av_set, vec_temp_moveop_nops): Likewise.
10056         * vec.h (vnull::operator vec): Add constexpr keyword for
10057         C++11 and later.
10059 2016-09-23  Doug Gilmore  <doug.gilmore@imgtec.com>
10061         PR tree-optimization/77654
10062         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Add call
10063         to duplicate_ssa_name_ptr_info.
10065 2016-09-23  David Malcolm  <dmalcolm@redhat.com>
10067         PR preprocessor/77672
10068         * input.c (selftest::test_lexer_string_locations_simple): Update
10069         test to expect location information of the terminator character
10070         at the location of the final closing quote.
10071         (selftest::test_lexer_string_locations_hex): Likewise.
10072         (selftest::test_lexer_string_locations_oct): Likewise.
10073         (selftest::test_lexer_string_locations_letter_escape_1): Likewise.
10074         (selftest::test_lexer_string_locations_letter_escape_2): Likewise.
10075         (selftest::test_lexer_string_locations_ucn4): Likewise.
10076         (selftest::test_lexer_string_locations_ucn8): Likewise.
10077         (selftest::test_lexer_string_locations_u8): Likewise.
10078         (selftest::test_lexer_string_locations_utf8_source): Likewise.
10079         (selftest::test_lexer_string_locations_concatenation_1): Likewise.
10080         (selftest::test_lexer_string_locations_concatenation_2): Likewise.
10081         (selftest::test_lexer_string_locations_concatenation_3): Likewise.
10082         (selftest::test_lexer_string_locations_macro): Likewise.
10083         (selftest::test_lexer_string_locations_long_line): Likewise.
10085 2016-09-23  Richard Biener  <rguenther@suse.de>
10087         * tree-ssa-sccvn.c (visit_reference_op_call): Value number
10088         virtual definition to virtual use if the call devirtualizes
10089         to a const or pure function.
10090         (visit_use): Also visit calls we can devirtualize to a
10091         const or pure function.
10093 2016-09-23  Richard Biener  <rguenther@suse.de>
10095         PR tree-optimization/77697
10096         * tree-ssa-forwprop.c (defcodefor_name): Remove bogus code,
10097         signal error if we have sth ternary or unhandled.
10099 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
10101         * config/arm/arm_neon.h (vabd_f16): New.
10102         (vabdq_f16): New.
10103         (vabs_f16): New.
10104         (vabsq_f16): New.
10105         (vadd_f16): New.
10106         (vaddq_f16): New.
10107         (vcage_f16): New.
10108         (vcageq_f16): New.
10109         (vcagt_f16): New.
10110         (vcagtq_f16): New.
10111         (vcale_f16): New.
10112         (vcaleq_f16): New.
10113         (vcalt_f16): New.
10114         (vcaltq_f16): New.
10115         (vceq_f16): New.
10116         (vceqq_f16): New.
10117         (vceqz_f16): New.
10118         (vceqzq_f16): New.
10119         (vcge_f16): New.
10120         (vcgeq_f16): New.
10121         (vcgez_f16): New.
10122         (vcgezq_f16): New.
10123         (vcgt_f16): New.
10124         (vcgtq_f16): New.
10125         (vcgtz_f16): New.
10126         (vcgtzq_f16): New.
10127         (vcle_f16): New.
10128         (vcleq_f16): New.
10129         (vclez_f16): New.
10130         (vclezq_f16): New.
10131         (vclt_f16): New.
10132         (vcltq_f16): New.
10133         (vcltz_f16): New.
10134         (vcltzq_f16): New.
10135         (vcvt_f16_s16): New.
10136         (vcvt_f16_u16): New.
10137         (vcvt_s16_f16): New.
10138         (vcvt_u16_f16): New.
10139         (vcvtq_f16_s16): New.
10140         (vcvtq_f16_u16): New.
10141         (vcvtq_s16_f16): New.
10142         (vcvtq_u16_f16): New.
10143         (vcvta_s16_f16): New.
10144         (vcvta_u16_f16): New.
10145         (vcvtaq_s16_f16): New.
10146         (vcvtaq_u16_f16): New.
10147         (vcvtm_s16_f16): New.
10148         (vcvtm_u16_f16): New.
10149         (vcvtmq_s16_f16): New.
10150         (vcvtmq_u16_f16): New.
10151         (vcvtn_s16_f16): New.
10152         (vcvtn_u16_f16): New.
10153         (vcvtnq_s16_f16): New.
10154         (vcvtnq_u16_f16): New.
10155         (vcvtp_s16_f16): New.
10156         (vcvtp_u16_f16): New.
10157         (vcvtpq_s16_f16): New.
10158         (vcvtpq_u16_f16): New.
10159         (vcvt_n_f16_s16): New.
10160         (vcvt_n_f16_u16): New.
10161         (vcvtq_n_f16_s16): New.
10162         (vcvtq_n_f16_u16): New.
10163         (vcvt_n_s16_f16): New.
10164         (vcvt_n_u16_f16): New.
10165         (vcvtq_n_s16_f16): New.
10166         (vcvtq_n_u16_f16): New.
10167         (vfma_f16): New.
10168         (vfmaq_f16): New.
10169         (vfms_f16): New.
10170         (vfmsq_f16): New.
10171         (vmax_f16): New.
10172         (vmaxq_f16): New.
10173         (vmaxnm_f16): New.
10174         (vmaxnmq_f16): New.
10175         (vmin_f16): New.
10176         (vminq_f16): New.
10177         (vminnm_f16): New.
10178         (vminnmq_f16): New.
10179         (vmul_f16): New.
10180         (vmul_lane_f16): New.
10181         (vmul_n_f16): New.
10182         (vmulq_f16): New.
10183         (vmulq_lane_f16): New.
10184         (vmulq_n_f16): New.
10185         (vneg_f16): New.
10186         (vnegq_f16): New.
10187         (vpadd_f16): New.
10188         (vpmax_f16): New.
10189         (vpmin_f16): New.
10190         (vrecpe_f16): New.
10191         (vrecpeq_f16): New.
10192         (vrnd_f16): New.
10193         (vrndq_f16): New.
10194         (vrnda_f16): New.
10195         (vrndaq_f16): New.
10196         (vrndm_f16): New.
10197         (vrndmq_f16): New.
10198         (vrndn_f16): New.
10199         (vrndnq_f16): New.
10200         (vrndp_f16): New.
10201         (vrndpq_f16): New.
10202         (vrndx_f16): New.
10203         (vrndxq_f16): New.
10204         (vrsqrte_f16): New.
10205         (vrsqrteq_f16): New.
10206         (vrecps_f16): New.
10207         (vrecpsq_f16): New.
10208         (vrsqrts_f16): New.
10209         (vrsqrtsq_f16): New.
10210         (vsub_f16): New.
10211         (vsubq_f16): New.
10213 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
10215         * config.gcc (extra_headers): Add arm_fp16.h
10216         * config/arm/arm_fp16.h: New.
10217         * config/arm/arm_neon.h: Include "arm_fp16.h".
10219 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
10221         * config/arm/arm_neon_builtins.def (vadd): New (v8hf, v4hf
10222         variants).
10223         (vmulf): New (v8hf, v4hf variants).
10224         (vfma): New (v8hf, v4hf variants).
10225         (vfms): New (v8hf, v4hf variants).
10226         (vsub): New (v8hf, v4hf variants).
10227         (vcage): New (v8hf, v4hf variants).
10228         (vcagt): New (v8hf, v4hf variants).
10229         (vcale): New (v8hf, v4hf variants).
10230         (vcalt): New (v8hf, v4hf variants).
10231         (vceq): New (v8hf, v4hf variants).
10232         (vcgt): New (v8hf, v4hf variants).
10233         (vcge): New (v8hf, v4hf variants).
10234         (vcle): New (v8hf, v4hf variants).
10235         (vclt): New (v8hf, v4hf variants).
10236         (vceqz): New (v8hf, v4hf variants).
10237         (vcgez): New (v8hf, v4hf variants).
10238         (vcgtz): New (v8hf, v4hf variants).
10239         (vcltz): New (v8hf, v4hf variants).
10240         (vclez): New (v8hf, v4hf variants).
10241         (vabd): New (v8hf, v4hf variants).
10242         (vmaxf): New (v8hf, v4hf variants).
10243         (vmaxnm): New (v8hf, v4hf variants).
10244         (vminf): New (v8hf, v4hf variants).
10245         (vminnm): New (v8hf, v4hf variants).
10246         (vpmaxf): New (v4hf variant).
10247         (vpminf): New (v4hf variant).
10248         (vpadd): New (v4hf variant).
10249         (vrecps): New (v8hf, v4hf variants).
10250         (vrsqrts): New (v8hf, v4hf variants).
10251         (vabs): New (v8hf, v4hf variants).
10252         (vneg): New (v8hf, v4hf variants).
10253         (vrecpe): New (v8hf, v4hf variants).
10254         (vrnd): New (v8hf, v4hf variants).
10255         (vrnda): New (v8hf, v4hf variants).
10256         (vrndm): New (v8hf, v4hf variants).
10257         (vrndn): New (v8hf, v4hf variants).
10258         (vrndp): New (v8hf, v4hf variants).
10259         (vrndx): New (v8hf, v4hf variants).
10260         (vrsqrte): New (v8hf, v4hf variants).
10261         (vmul_lane): Add v4hf and v8hf variants.
10262         (vmul_n): Add v4hf and v8hf variants.
10263         (vext): New (v8hf, v4hf variants).
10264         (vcvts): New (v8hi, v4hi variants).
10265         (vcvts): New (v8hf, v4hf variants).
10266         (vcvtu): New (v8hi, v4hi variants).
10267         (vcvtu): New (v8hf, v4hf variants).
10268         (vcvts_n): New (v8hf, v4hf variants).
10269         (vcvtu_n): New (v8hi, v4hi variants).
10270         (vcvts_n): New (v8hi, v4hi variants).
10271         (vcvtu_n): New (v8hf, v4hf variants).
10272         (vbsl): New (v8hf, v4hf variants).
10273         (vcvtas): New (v8hf, v4hf variants).
10274         (vcvtau): New (v8hf, v4hf variants).
10275         (vcvtms): New (v8hf, v4hf variants).
10276         (vcvtmu): New (v8hf, v4hf variants).
10277         (vcvtns): New (v8hf, v4hf variants).
10278         (vcvtnu): New (v8hf, v4hf variants).
10279         (vcvtps): New (v8hf, v4hf variants).
10280         (vcvtpu): New (v8hf, v4hf variants).
10282 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
10284         * config/arm/arm-builtins.c (hf_UP): New.
10285         (si_UP): New.
10286         (vfp_builtin_data): New.  Update comment.
10287         (enum arm_builtins): Include "arm_vfp_builtins.def".
10288         (ARM_BUILTIN_VFP_PATTERN_START): New.
10289         (arm_init_vfp_builtins): New.
10290         (arm_init_builtins): Add arm_init_vfp_builtins.
10291         (arm_expand_vfp_builtin): New.
10292         (arm_expand_builtins): Update for arm_expand_vfp_builtin.  Fix
10293         long line.
10294         * config/arm/arm_vfp_builtins.def: New file.
10295         * config/arm/t-arm (arm.o): Add arm_vfp_builtins.def.
10296         (arm-builtins.o): Likewise.
10298 2016-09-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
10300         PR ipa/77677
10301         * ipa-cp.c (propagate_vr_accross_jump_function): Drop TREE_OVERFLOW
10302         from constant while creating value range.
10304 2016-09-23  Renlin Li  <renlin.li@arm.com>
10306         * ira.c (ira): Move ira_use_lra_p initialization code to ...
10307         (ira_init_once): Here.
10309 2016-09-23  Uros Bizjak  <ubizjak@gmail.com>
10310             Jakub Jelinek  <jakub@redhat.com>
10312         * hooks.h (hook_uint_uintp_false): Rename to...
10313         (hook_bool_uint_uintp_false): ... this.
10314         * hooks.c (hook_uint_uintp_false): Rename to...
10315         (hook_bool_uint_uintp_false): ... this.
10316         * target.def (elf_flags_numeric): Use hook_bool_uint_uintp_false
10317         instead of hook_uint_uintp_false.
10319 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
10321         * config/arm/arm-builtins.c (arm_init_neon_builtin): New.
10322         (arm_init_builtins): Move body of a loop to the standalone
10323         function arm_init_neon_builtin.
10324         (arm_expand_neon_builtin_1): New.  Update comment.  Function body
10325         moved from arm_neon_builtin with some white-space fixes.
10326         (arm_expand_neon_builtin): Move code into the standalone function
10327         arm_expand_neon_builtin_1.
10329 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
10331         * config/arm/iterators.md (VCVTHI): New.
10332         (NEON_VCMP): Add UNSPEC_VCLT and UNSPEC_VCLE.  Fix a long line.
10333         (NEON_VAGLTE): New.
10334         (VFM_LANE_AS): New.
10335         (VH_CVTTO): New.
10336         (V_reg): Add HF, V4HF and V8HF.  Fix white-space.
10337         (V_HALF): Add V4HF.  Fix white-space.
10338         (V_if_elem): Add HF, V4HF and V8HF.  Fix white-space.
10339         (V_s_elem): Likewise.
10340         (V_sz_elem): Fix white-space.
10341         (V_elem_ch): Likewise.
10342         (VH_elem_ch): New.
10343         (scalar_mul_constraint): Add V8HF and V4HF.
10344         (Is_float_mode): Fix white-space.
10345         (Is_d_reg): Add V4HF and V8HF.  Fix white-space.
10346         (q): Add HF.  Fix white-space.
10347         (float_sup): New.
10348         (float_SUP): New.
10349         (cmp_op_unsp): Add UNSPEC_VCALE and UNSPEC_VCALT.
10350         (neon_vfm_lane_as): New.
10351         * config/arm/neon.md (add<mode>3_fp16): New.
10352         (sub<mode>3_fp16): New.
10353         (mul<mode>3add<mode>_neon): New.
10354         (fma<VH:mode>4_intrinsic): New.
10355         (fmsub<VCVTF:mode>4_intrinsic): Fix white-space.
10356         (fmsub<VH:mode>4_intrinsic): New.
10357         (<absneg_str><mode>2): New.
10358         (neon_v<absneg_str><mode>): New.
10359         (neon_v<fp16_rnd_str><mode>): New.
10360         (neon_vrsqrte<mode>): New.
10361         (neon_vpaddv4hf): New.
10362         (neon_vadd<mode>): New.
10363         (neon_vsub<mode>): New.
10364         (neon_vmulf<mode>): New.
10365         (neon_vfma<VH:mode>): New.
10366         (neon_vfms<VH:mode>): New.
10367         (neon_vc<cmp_op><mode>): New.
10368         (neon_vc<cmp_op><mode>_fp16insn): New
10369         (neon_vc<cmp_op_unsp><mode>_fp16insn_unspec): New.
10370         (neon_vca<cmp_op><mode>): New.
10371         (neon_vca<cmp_op><mode>_fp16insn): New.
10372         (neon_vca<cmp_op_unsp><mode>_fp16insn_unspec): New.
10373         (neon_vc<cmp_op>z<mode>): New.
10374         (neon_vabd<mode>): New.
10375         (neon_v<maxmin>f<mode>): New.
10376         (neon_vp<maxmin>fv4hf: New.
10377         (neon_<fmaxmin_op><mode>): New.
10378         (neon_vrecps<mode>): New.
10379         (neon_vrsqrts<mode>): New.
10380         (neon_vrecpe<mode>): New (VH variant).
10381         (neon_vdup_lane<mode>_internal): New.
10382         (neon_vdup_lane<mode>): New.
10383         (neon_vcvt<sup><mode>): New (VCVTHI variant).
10384         (neon_vcvt<sup><mode>): New (VH variant).
10385         (neon_vcvt<sup>_n<mode>): New (VH variant).
10386         (neon_vcvt<sup>_n<mode>): New (VCVTHI variant).
10387         (neon_vcvt<vcvth_op><sup><mode>): New.
10388         (neon_vmul_lane<mode>): New.
10389         (neon_vmul_n<mode>): New.
10390         * config/arm/unspecs.md (UNSPEC_VCALE): New
10391         (UNSPEC_VCALT): New.
10392         (UNSPEC_VFMA_LANE): New.
10393         (UNSPECS_VFMS_LANE): New.
10395 2016-09-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10397         * config/s390/s390.md ("*extzv<mode>_zEC12", "*extzv<mode>_z10")
10398         ("*extzv<mode><clobbercc_or_nocc>"):
10399         Correct a typo in a comment.
10400         Merged patterns.
10401         ("*insv<mode>_zEC12", "*insv<mode>_z10")
10402         ("*insv<mode><clobbercc_or_nocc>"): Ditto.
10403         ("*insv<mode>_zEC12_appendbitsleft")
10404         ("*insv<mode><clobbercc_or_nocc>_appendbitsleft")
10405         ("*insv<mode>_z10_appendbitsleft"): Ditto.
10406         ("*insv<mode>_zEC12_noshift", "*insv<mode>_z10_noshift")
10407         ("*insv<mode><clobbercc_or_nocc>_noshift"): Ditto.
10408         Provide pattern with operands switched.
10409         ("*pre_z10_extv<mode>"):
10410         Use new subst patterns.
10411         ("*extzvdi<clobbercc_or_nocc>_lshiftrt", "*<risbg_n>_ior_and_sr_ze")
10412         ("*extvsidi<clobbercc_or_nocc>", "*<risbg_n>_and_subregdi_rotr")
10413         ("*<risbg_n>_and_subregdi_rotl", "*<risbg_n>_di_and_rot")
10414         ("*insv_z10_noshift_cc", "*insv_z10_noshift_cconly")
10415         ("*<risbg_n>_<mode>_ior_and_lshiftrt")
10416         ("*<risbg_n>_sidi_ior_and_lshiftrt")
10417         ("*trunc_sidi_and_subreg_lshrt<clobbercc_or_nocc>"):
10418         New patterns.
10419         ("*extzv_<mode>_sll", "*extzv_<mode>_srl")
10420         ("*extzv_<mode>_srl<clobbercc_or_nocc>")
10421         ("*extzv_<mode>_sll<clobbercc_or_nocc>"): Renamed patterns, use risbgn
10422         on zEC12.
10423         ("SINT"): New mode_iterator with SI, HI, QI.
10424         * config/s390/subst.md ("clobbercc_or_nocc_subst", "z10_or_zEC12_cond")
10425         ("clobbercc_or_nocc", "risbg_n"): New constructs for risbg pattern
10426         duplication.
10428 2016-09-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10430         * config/s390/predicates.md ("contiguous_bitmask_operand"): Adapt to
10431         new interface of s390_contiguous_bitmask_p.
10432         ("contiguous_bitmask_nowrap_operand"): New predicate.
10433         ("*anddi3_cc", "*anddi3_cconly", "*anddi3"): Replace NxxDq with NxxDw.
10434         * config/s390/constraints.md ("NxxDw", "NxxSq"): Adapt to new interface
10435         of s390_contiguous_bitmask_p.
10436         ("NxxDw"): Rename NxxDq constraint to NxxDw.
10437         ("NxxSw"): New constraint.
10438         * config/s390/s390.md ("*andsi3_zarch"): Enable bitmask wraparound.
10439         * config/s390/s390-protos.h (s390_contiguous_bitmask_p): Updated
10440         interface.
10441         (s390_contiguous_bitmask_nowrap_p): Export.
10442         * config/s390/s390.c (s390_contiguous_bitmask_nowrap_p): New name of
10443         former s390_contiguous_bitmask_p.
10444         (s390_contiguous_bitmask_p): Use s390_contiguous_bitmask_nowrap_p to
10445         detect contiguous bit ranges with wraparound.  Change signature to
10446         return START and END position instead of POS and LENGTH.
10447         (s390_contiguous_bitmask_vector_p): Remove extra code for continous bit
10448         ranges with wraparound.
10449         (s390_extzv_shift_ok): Use s390_contiguous_bitmask_nowrap_p.
10450         (s390_contiguous_bitmask_vector_p,s390_extzv_shift_ok,print_operand):
10451         Adapt to new signature of s390_contiguous_bitmask_p.
10453 2016-09-23  Bin Cheng  <bin.cheng@arm.com>
10455         * tree-vect-loop-manip.c (create_intersect_range_checks_index): New.
10456         (create_intersect_range_checks): New.
10457         (vect_create_cond_for_alias_checks): Call above function.
10459 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
10461         * config/arm/iterators.md (Code iterators): Fix some white-space
10462         in the comments.
10463         (GLTE): New.
10464         (ABSNEG): New
10465         (FCVT): Moved from vfp.md.
10466         (VCVT_HF_US_N): New.
10467         (VCVT_SI_US_N): New.
10468         (VCVT_HF_US): New.
10469         (VCVTH_US): New.
10470         (FP16_RND): New.
10471         (absneg_str): New.
10472         (FCVTI32typename): Moved from vfp.md.
10473         (sup): Add UNSPEC_VCVTA_S, UNSPEC_VCVTA_U, UNSPEC_VCVTM_S,
10474         UNSPEC_VCVTM_U, UNSPEC_VCVTN_S, UNSPEC_VCVTN_U, UNSPEC_VCVTP_S,
10475         UNSPEC_VCVTP_U, UNSPEC_VCVT_HF_S_N, UNSPEC_VCVT_HF_U_N,
10476         UNSPEC_VCVT_SI_S_N, UNSPEC_VCVT_SI_U_N,  UNSPEC_VCVTH_S_N,
10477         UNSPEC_VCVTH_U_N, UNSPEC_VCVTH_S and UNSPEC_VCVTH_U.
10478         (vcvth_op): New.
10479         (fp16_rnd_str): New.
10480         (fp16_rnd_insn): New.
10481         * config/arm/unspecs.md (UNSPEC_VCVT_HF_S_N): New.
10482         (UNSPEC_VCVT_HF_U_N): New.
10483         (UNSPEC_VCVT_SI_S_N): New.
10484         (UNSPEC_VCVT_SI_U_N): New.
10485         (UNSPEC_VCVTH_S): New.
10486         (UNSPEC_VCVTH_U): New.
10487         (UNSPEC_VCVTA_S): New.
10488         (UNSPEC_VCVTA_U): New.
10489         (UNSPEC_VCVTM_S): New.
10490         (UNSPEC_VCVTM_U): New.
10491         (UNSPEC_VCVTN_S): New.
10492         (UNSPEC_VCVTN_U): New.
10493         (UNSPEC_VCVTP_S): New.
10494         (UNSPEC_VCVTP_U): New.
10495         (UNSPEC_VCVTP_S): New.
10496         (UNSPEC_VCVTP_U): New.
10497         (UNSPEC_VRND): New.
10498         (UNSPEC_VRNDA): New.
10499         (UNSPEC_VRNDI): New.
10500         (UNSPEC_VRNDM): New.
10501         (UNSPEC_VRNDN): New.
10502         (UNSPEC_VRNDP): New.
10503         (UNSPEC_VRNDX): New.
10504         * config/arm/vfp.md (<absneg_str>hf2): New.
10505         (neon_vabshf): New.
10506         (neon_v<fp16_rnd_str>hf): New.
10507         (neon_vrndihf): New.
10508         (addhf3): New.
10509         (subhf3): New.
10510         (divhf3): New.
10511         (mulhf3): New.
10512         (*mulsf3neghf_vfp): New.
10513         (*negmulhf3_vfp): New.
10514         (*mulsf3addhf_vfp): New.
10515         (*mulhf3subhf_vfp): New.
10516         (*mulhf3neghfaddhf_vfp): New.
10517         (*mulhf3neghfsubhf_vfp): New.
10518         (fmahf4): New.
10519         (neon_vfmahf): New.
10520         (fmsubhf4_fp16): New.
10521         (neon_vfmshf): New.
10522         (*fnmsubhf4): New.
10523         (*fnmaddhf4): New.
10524         (neon_vsqrthf): New.
10525         (neon_vrsqrtshf): New.
10526         (FCVT): Move to iterators.md.
10527         (FCVTI32typename): Likewise.
10528         (neon_vcvth<sup>hf): New.
10529         (neon_vcvth<sup>si): New.
10530         (neon_vcvth<sup>_nhf_unspec): New.
10531         (neon_vcvth<sup>_nhf): New.
10532         (neon_vcvth<sup>_nsi_unspec): New.
10533         (neon_vcvth<sup>_nsi): New.
10534         (neon_vcvt<vcvth_op>h<sup>si): New.
10535         (neon_<fmaxmin_op>hf): New.
10537 2016-09-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10539         * config/s390/s390.md (bitoff, bitoff_plus): Neq mode attributes.
10540         ("*extzv<mode>_zEC12", "*insv<mode>_zEC12", "*insv<mode>_z10")
10541         ("*insv<mode>_zEC12_appendbitsleft")
10542         ("*insv<mode>_z10_appendbitsleft", "*r<noxa>sbg_<mode>_sll")
10543         ("*r<noxa>sbg_<mode>_srl"): Use new attributes.
10545 2016-09-23  Jakub Jelinek  <jakub@redhat.com>
10547         * ipa-cp.c (ipcp_store_vr_results): Avoid static local var zero.
10548         * sreal.h (sreal::min, sreal::max): Avoid static local vars,
10549         construct values without normalization.
10550         * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't initialize
10551         static local lhs_ops to vNULL.
10553 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
10554             Jiong Wang <jiong.wang@arm.com>
10556         * config/arm/arm.c (coproc_secondary_reload_class): Make HFmode
10557         available when FP16 instructions are available.
10558         (output_move_vfp): Add support for 16-bit data moves.
10559         (arm_validize_comparison): Fix some white-space.  Support HFmode
10560         by conversion to SFmode.
10561         * config/arm/arm.md (truncdfhf2): Fix a comment.
10562         (extendhfdf2): Likewise.
10563         (cstorehf4): New.
10564         (movsicc): Fix some white-space.
10565         (movhfcc): New.
10566         (movsfcc): Fix some white-space.
10567         (*cmovhf): New.
10568         * config/arm/vfp.md (*arm_movhi_vfp): Disable when VFP FP16
10569         instructions are available.
10570         (*thumb2_movhi_vfp): Likewise.
10571         (*arm_movhi_fp16): New.
10572         (*thumb2_movhi_fp16): New.
10573         (*movhf_vfp_fp16): New.
10574         (*movhf_vfp_neon): Disable when VFP FP16 instructions are available.
10575         (*movhf_vfp): Likewise.
10576         (extendhfsf2): Enable when VFP FP16 instructions are available.
10577         (truncsfhf2):  Enable when VFP FP16 instructions are available.
10579 2016-09-23  Martin Liska  <mliska@suse.cz>
10581         * config/s390/vx-builtins.md: Replace 'adress' with 'address'.
10583 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
10585         * config/arm/arm.c (arm_evpc_neon_vuzp): Add support for V8HF and
10586         V4HF modes.
10587         (arm_evpc_neon_vtrn): Likewise.
10588         (arm_evpc_neon_vrev): Likewise.
10589         (arm_evpc_neon_vext): Likewise.
10590         * config/arm/arm_neon.h (vbsl_f16): New.
10591         (vbslq_f16): New.
10592         (vdup_n_f16): New.
10593         (vdupq_n_f16): New.
10594         (vdup_lane_f16): New.
10595         (vdupq_lane_f16): New.
10596         (vext_f16): New.
10597         (vextq_f16): New.
10598         (vmov_n_f16): New.
10599         (vmovq_n_f16): New.
10600         (vrev64_f16): New.
10601         (vrev64q_f16): New.
10602         (vtrn_f16): New.
10603         (vtrnq_f16): New.
10604         (vuzp_f16): New.
10605         (vuzpq_f16): New.
10606         (vzip_f16): New.
10607         (vzipq_f16): New.
10608         * config/arm/arm_neon_buillins.def (vdup_n): New (v8hf, v4hf variants).
10609         (vdup_lane): New (v8hf, v4hf variants).
10610         (vext): New (v8hf, v4hf variants).
10611         (vbsl): New (v8hf, v4hf variants).
10612         * config/arm/iterators.md (VDQWH): New.
10613         (VH): New.
10614         (V_double_vector_mode): Add V8HF and V4HF.  Fix white-space.
10615         (Scalar_mul_8_16): Fix white-space.
10616         (Is_d_reg): Add V4HF and V8HF.
10617         * config/arm/neon.md (neon_vdup_lane<mode>_internal): New.
10618         (neon_vdup_lane<mode>): New.
10619         (neon_vtrn<mode>_internal): Replace VDQW with VDQWH.
10620         (*neon_vtrn<mode>_insn): Likewise.
10621         (neon_vzip<mode>_internal): Likewise. Also fix white-space.
10622         (*neon_vzip<mode>_insn): Likewise
10623         (neon_vuzp<mode>_internal): Likewise.
10624         (*neon_vuzp<mode>_insn): Likewise
10625         * config/arm/vec-common.md (vec_perm_const<mode>): New.
10627 2016-09-23  Jiong Wang  <jiong.wang@arm.com>
10628             Matthew Wahab  <matthew.wahab@arm.com>
10630         * config/arm/arm.c (output_move_vfp): Weaken assert to allow HImode.
10631         (arm_hard_regno_mode_ok): Allow HImode values in VFP registers.
10632         * config/arm/arm.md (*movhi_bytes): Disable when VFP registers are
10633         available.  Also fix some white-space.
10634         * config/arm/vfp.md (*arm_movhi_vfp): New.
10635         (*thumb2_movhi_vfp): New.
10637 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
10639         * config/arm/arm-c.c (arm_cpu_builtins): Define
10640         "__ARM_FEATURE_FP16_SCALAR_ARITHMETIC" and
10641         "__ARM_FEATURE_FP16_VECTOR_ARITHMETIC".
10643 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
10645         * doc/sourcebuild.texi (ARM-specific attributes): Add anchor for
10646         arm_v8_1a_neon_ok.  Add entries for arm_v8_2a_fp16_scalar_ok,
10647         arm_v8_2a_fp16_scalar_hw, arm_v8_2a_fp16_neon_ok and
10648         arm_v8_2a_fp16_neon_hw.
10649         (Add options): Add entries for arm_v8_1a_neon, arm_v8_2a_scalar,
10650         arm_v8_2a_neon.
10652 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
10654         * doc/sourcebuild.texi (ARM-specific attributes): Add entries for
10655         arm_fp16_alternative_ok and arm_fp16_none_ok.
10657 2016-09-23  Martin Liska  <mliska@suse.cz>
10659         * ipa-icf.c (sem_variable::merge): Replace adress with address.
10661 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
10663         * config/arm/arm-arches.def ("armv8.1-a"): Add FL_CRC32.
10664         ("armv8.2-a"): New.
10665         ("armv8.2-a+fp16"): New.
10666         * config/arm/arm-protos.h (FL2_ARCH8_2): New.
10667         (FL2_FP16INST): New.
10668         (FL2_FOR_ARCH8_2A): New.
10669         * config/arm/arm-tables.opt: Regenerate.
10670         * config/arm/arm.c (arm_arch8_2): New.
10671         (arm_fp16_inst): New.
10672         (arm_option_override): Set arm_arch8_2 and arm_fp16_inst.  Check
10673         for incompatible fp16-format settings.
10674         * config/arm/arm.h (TARGET_VFP_FP16INST): New.
10675         (TARGET_NEON_FP16INST): New.
10676         (arm_arch8_2): Declare.
10677         (arm_fp16_inst): Declare.
10678         * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for
10679         march=armv8.2-a and march=armv8.2-a+fp16.
10680         * config/arm/t-aprofile (Arch Matches): Add entries for armv8.2-a
10681         and armv8.2-a+fp16.
10682         * doc/invoke.texi (ARM Options): Add "-march=armv8.1-a",
10683         "-march=armv8.2-a" and "-march=armv8.2-a+fp16".
10685 2016-09-23  Martin Liska  <mliska@suse.cz>
10687         * doc/extend.texi: Remove fused-madd from i386 target options.
10689 2016-09-23  Martin Liska  <mliska@suse.cz>
10691         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
10692         Handle movbe.
10694 2016-09-23  Martin Liska  <mliska@suse.cz>
10696         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
10697         Handle crc32.
10699 2016-09-23  Martin Liska  <mliska@suse.cz>
10701         PR target/71652
10702         * config/i386/i386.c (ix86_option_override_internal): Change
10703         signature and return false when there's an error related to
10704         arch string.
10705         (release_options_strings): New function.
10706         (ix86_valid_target_attribute_tree): Call the function.
10708 2016-09-23  Jakub Jelinek  <jakub@redhat.com>
10710         * hsa-gen.c (hsa_op_immed::hsa_op_immed Use CONSTRUCTOR_NELTS (...)
10711         instead of vec_safe_length (CONSTRUCTOR_ELTS (...)).
10712         (gen_hsa_ctor_assignment): Likewise.
10713         * print-tree.c (print_node): Likewise.
10714         * tree-dump.c (dequeue_and_dump): Likewise.
10715         * tree-sra.c (sra_modify_constructor_assign): Likewise.
10716         * expr.c (store_constructor): Likewise.
10717         * fold-const.c (operand_equal_p): Likewise.
10718         * tree-pretty-print.c (dump_generic_node): Likewise.
10719         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Likewise.
10720         * ipa-icf-gimple.c (func_checker::compare_operand): Likewise.
10722 2016-09-23  Richard Biener  <rguenther@suse.de>
10724         * hooks.h (hook_uint_uintp_false): Declare.
10726 2016-09-22  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
10728         * config/avr/avr.c (avr_rtx_costs_1): Handle DImode MULT.
10729         (avr_address_cost): Replace 61 with MAX_LD_OFFSET(mode).
10731 2016-09-22  Martin Sebor  <msebor@redhat.com>
10733         PR target/77676
10734         * gimple-ssa-sprintf.c (target_int_min, target_int_max): Use
10735         HOST_BITS_PER_WIDE_INT, make a static local variable auto.
10736         (target_int_min): Correct computation.
10737         (format_integer): Use long long as the argument for the ll length
10738         modifier.
10739         (format_floating): Use target_int_max().
10740         (get_string_length): Same.
10741         (format_string): Avoid setting the bounded flag for strings
10742         of unknown length.
10743         (try_substitute_return_value): Avoid setting range info when
10744         the result isn't bounded.
10745         * varasm.c (assemble_name): Increase buffer size.
10747 2016-09-22  Andre Vieira  <andre.simoesdiasvieira@arm.com>
10748             Terry Guo  <terry.guo@arm.com>
10750         * target.def (elf_flags_numeric): New target hook.
10751         * targhooks.h (default_asm_elf_flags_numeric): New.
10752         * varasm.c (default_asm_elf_flags_numeric): New.
10753         (default_elf_asm_named_section): Use new target hook.
10754         * config/arm/arm.opt (mpure-code): New.
10755         * config/arm/arm.h (SECTION_ARM_PURECODE): New.
10756         * config/arm/arm.c (arm_asm_init_sections): Add section
10757         attribute to default text section if -mpure-code.
10758         (arm_option_check_internal): Diagnose use of option with
10759         non supported targets and/or options.
10760         (arm_asm_elf_flags_numeric): New.
10761         (arm_function_section): New.
10762         (arm_elf_section_type_flags): New.
10763         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Disable
10764         for -mpure-code.
10765         * doc/texi (TARGET_ASM_ELF_FLAGS_NUMERIC): New.
10766         * doc/texi.in (TARGET_ASM_ELF_FLAGS_NUMERIC): Likewise.
10768 2016-09-22  Jan Hubicka  <hubicka@ucw.cz>
10770         * regcprop.c (copyprop_hardreg_forward_1): Remove noop moves.
10772 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10774         * emit-rtl.c (next_cc0_user): Make argument type rtx_insn *.
10775         * rtl.h: Adjust prototype.
10777 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10779         * emit-rtl.c (next_active_insn): Change argument type to rtx_insn *.
10780         (prev_active_insn): Likewise.
10781         (active_insn_p): Likewise.
10782         * rtl.h: Adjust prototypes.
10783         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
10784         * config/arc/arc.md: Likewise.
10785         * config/pa/pa.c (branch_to_delay_slot_p): Likewise.
10786         (branch_needs_nop_p): Likewise.
10787         (use_skip_p): Likewise.
10788         * config/sh/sh.c (gen_block_redirect): Likewise.
10789         (split_branches): Likewise.
10790         * reorg.c (optimize_skip): Likewise.
10791         (fill_simple_delay_slots): Likewise.
10792         (fill_slots_from_thread): Likewise.
10793         (relax_delay_slots): Likewise.
10794         * resource.c (mark_target_live_regs): Likewise.
10796 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10798         * config/cris/cris.c (cris_asm_output_case_end): Change argument
10799         type to rtx_insn *.
10800         * emit-rtl.c (next_nonnote_nondebug_insn): Likewise.
10801         (prev_nonnote_nondebug_insn): Likewise.
10802         * config/cris/cris-protos.h: Adjust prototype.
10803         * rtl.h: Likewise.
10804         * jump.c (rtx_renumbered_equal_p): Adjust.
10806 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10808         * emit-rtl.c (prev_real_insn): Change argument type to rtx_insn *.
10809         * rtl.h: Adjust prototype.
10810         * config/sh/sh.md: Adjust.
10811         * dwarf2out.c (add_var_loc_to_decl): Likewise.
10813 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10815         * emit-rtl.c (next_nondebug_insn): Change argument type to rtx_insn *.
10816         (prev_nondebug_insn): Likewise.
10817         * loop-doloop.c (doloop_condition_get): Likewise.
10818         * rtl.h: Adjust prototype.
10819         * cfgloop.h: Likewise.
10821 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10823         * emit-rtl.c (next_nonnote_insn): Change argument type to rtx_insn *.
10824         (prev_nonnote_insn): Likewise.
10825         * jump.c (reversed_comparison_code_parts): Likewise.
10826         (reversed_comparison): Likewise.
10827         * rtl.h: Adjust prototypes.
10828         * config/arc/arc.md: Adjust.
10829         * cse.c (find_comparison_args): Likewise.
10830         * reorg.c (redundant_insn): Change return type to rtx_insn *.
10831         (fix_reg_dead_note): Change argument type to rtx_insn *.
10832         (delete_prior_computation): Likewise.
10833         (delete_computation): Likewise.
10834         (fill_slots_from_thread): Adjust.
10835         (relax_delay_slots): Likewise.
10836         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
10837         (simplify_relational_operation_1): Likewise.
10838         (simplify_ternary_operation): Likewise.
10840 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10842         * config/arc/arc-protos.h (arc_label_align): Change type of
10843         variables from rtx to rtx_insn *.
10844         * config/arc/arc.c (arc_label_align): Likewise.
10845         * config/arm/arm.c (any_sibcall_could_use_r3): Likewise.
10846         * config/bfin/bfin.c (workaround_speculation): Likewise.
10847         * config/c6x/c6x.c (find_next_cycle_insn): Likewise.
10848         (find_last_same_clock): Likewise.
10849         (reorg_split_calls): Likewise.
10850         * config/cris/cris-protos.h (cris_cc0_user_requires_cmp): Likewise.
10851         * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise.
10852         * config/h8300/h8300-protos.h (same_cmp_preceding_p): Likewise.
10853         (same_cmp_following_p): Likewise.
10854         * config/h8300/h8300.c (same_cmp_preceding_p): Likewise.
10855         (same_cmp_following_p): Likwise.
10856         * config/m32r/m32r.c (m32r_expand_epilogue): Likewise.
10857         * config/nds32/nds32-protos.h (nds32_target_alignment): Likewise.
10858         * config/nds32/nds32.c (nds32_target_alignment): Likewise.
10859         * config/rl78/rl78.c (rl78_alloc_physical_registers_op2): Likewise.
10860         (rl78_alloc_physical_registers_cmp): Likewise.
10861         (rl78_alloc_physical_registers_umul): Likewise.
10862         (rl78_calculate_death_notes): Likewise.
10863         * config/s390/s390-protos.h (s390_label_align): Likewise.
10864         * config/s390/s390.c (s390_label_align): Likewise.
10865         * config/sh/sh.c (barrier_align): Likewise.
10866         * config/sparc/sparc-protos.h (emit_cbcond_nop): Likewise.
10867         * config/sparc/sparc.c (sparc_asm_function_epilogue): Likewise.
10868         (emit_cbcond_nop): Likewise.
10870 2016-09-22  Martin Liska  <mliska@suse.cz>
10872         PR ipa/77653
10873         * ipa-icf.c (sem_variable::merge): Yield merge operation if
10874         alias address matters, not necessarily address of original.
10876 2016-09-22  Richard Biener  <rguenther@suse.de>
10878         PR middle-end/77697
10879         * gimple-fold.c (fold_array_ctor_reference): Turn asserts into
10880         fold fails.
10882 2016-09-22  Richard Biener  <rguenther@suse.de>
10884         PR middle-end/77677
10885         * gimple-match-head.c (gimple_resimplify1): Drop TREE_OVERFLOW
10886         from constant folding results.
10887         (gimple_resimplify2): Likewise.
10888         (gimple_resimplify3): Likewise.
10890 2016-09-22  Richard Biener  <rguenther@suse.de>
10892         PR middle-end/77678
10893         * expr.c (expand_expr_real_1): Guard array access against negative
10894         offset.
10896 2016-09-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10898         * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN instead
10899         of MPFR_RNDN.
10900         (format_floating): Likewise.
10902 2016-09-22  Jakub Jelinek  <jakub@redhat.com>
10904         PR fortran/77665
10905         * tree-inline.c (remap_gimple_stmt): Set has_simduid_loops
10906         for all IFN_GOMP_SIMD_* internal fns, not just for
10907         IFN_GOMP_SIMD_ORDERED_*.
10909 2016-09-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
10911         PR target/77670
10912         * config/rs6000/predicates.md (invert_fpmask_comparison_operator):
10913         New predicate that matches the ISA 3.0 XSCMP{EQ,GT,GE}DP
10914         instructions when you want to invert the test.
10915         * config/rs6000/rs6000.md (fpmask<mode>): Use the arguments in the
10916         correct order for XXSEL.
10917         (mov<SFDF:mode><SFDF2:mode>cc_invert_p9): Define the inverted test
10918         for using XSCMP{EQ,GT,GE}DP.
10920 2016-09-21  David Malcolm  <dmalcolm@redhat.com>
10922         * genconstants.c (main): Introduce noop_reader and convert call
10923         to read_md_files to a method call.
10924         * genenums.c (main): Likewise.
10925         * genmddeps.c (main): Likewise.
10926         * genpreds.c (write_tm_constrs_h): Replace use of "in_fname" with
10927         rtx_reader_ptr->get_top_level_filename ().
10928         (write_tm_preds_h): Likewise.
10929         (write_insn_preds_c): Likewise.
10930         * gensupport.c (class gen_reader): New subclass of rtx_reader.
10931         (rtx_handle_directive): Convert to...
10932         (gen_reader::handle_unknown_directive): ...this.
10933         (init_rtx_reader_args_cb): Convert return type from bool to
10934         rtx_reader *.  Create a gen_reader instance, using it for the
10935         call to read_md_files.  Return it if no errors occur.
10936         (init_rtx_reader_args): Convert return type from bool to
10937         rtx_reader *.
10938         * gensupport.h (init_rtx_reader_args_cb): Likewise.
10939         (init_rtx_reader_args_cb): Likewise.
10940         * read-md.c (struct file_name_list): Move to class rtx_reader.
10941         (read_md_file): Delete in favor of rtx_reader::m_read_md_file.
10942         (read_md_filename): Delete in favor of
10943         rtx_reader::m_read_md_filename.
10944         (read_md_lineno): Delete in favor of rtx_reader::m_read_md_lineno.
10945         (in_fname): Delete in favor of rtx_reader::m_toplevel_fname.
10946         (base_dir): Delete in favor of rtx_reader::m_base_dir.
10947         (first_dir_md_include): Delete in favor of
10948         rtx_reader::m_first_dir_md_include.
10949         (last_dir_md_include_ptr): Delete in favor of
10950         rtx_reader::m_last_dir_md_include_ptr.
10951         (max_include_len): Delete.
10952         (rtx_reader_ptr): New.
10953         (fatal_with_file_and_line): Use get_filename and get_lineno
10954         accessors of rtx_reader_ptr.
10955         (require_char_ws): Likewise.
10956         (rtx_reader::read_char): New method, based on ::read_char.
10957         (rtx_reader::unread_char): New method, based on ::unread_char.
10958         (read_escape): Use get_filename and get_lineno accessors of
10959         rtx_reader_ptr.
10960         (read_braced_string): Use get_lineno accessor of rtx_reader_ptr.
10961         (read_string): Use get_filename and get_lineno accessors of
10962         rtx_reader_ptr.
10963         (rtx_reader::rtx_reader): New ctor.
10964         (rtx_reader::~rtx_reader): New dtor.
10965         (handle_include): Convert from a function to...
10966         (rtx_reader::handle_include): ...this method, converting
10967         handle_directive from a callback to a virtual function.
10968         (handle_file): Likewise, converting to...
10969         (rtx_reader::handle_file): ...this method.
10970         (handle_toplevel_file): Likewise, converting to...
10971         (rtx_reader::handle_toplevel_file): ...this method.
10972         (rtx_reader::get_current_location): New method.
10973         (parse_include): Convert from a function to...
10974         (rtx_reader::add_include_path): ...this method, dropping redundant
10975         update to unused max_include_len.
10976         (read_md_files): Convert from a function to...
10977         (rtx_reader::read_md_files): ...this method, converting
10978         handle_directive from a callback to a virtual function.
10979         (noop_reader::handle_unknown_directive): New method.
10980         * read-md.h (directive_handler_t): Delete this typedef.
10981         (in_fname): Delete.
10982         (read_md_file): Delete.
10983         (read_md_lineno): Delete.
10984         (read_md_filename): Delete.
10985         (class rtx_reader): New class.
10986         (rtx_reader_ptr): New decl.
10987         (class noop_reader): New subclass of rtx_reader.
10988         (read_char): Reimplement in terms of rtx_reader::read_char.
10989         (unread_char): Reimplement in terms of rtx_reader::unread_char.
10990         (read_md_files): Delete.
10991         * read-rtl.c (read_rtx_code): Update for deletion of globals
10992         read_md_filename and read_md_lineno.
10994 2016-09-21  Jason Merrill  <jason@redhat.com>
10996         * input.h (from_macro_definition_at): New.
10998 2016-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
11000         * doc/rtl.texi (JUMP_LABEL): Document RETURN and SIMPLE_RETURN values.
11002 2016-09-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11004         PR tree-optimization/77550
11005         * tree-vect-stmts.c (create_array_ref): Change parameters.
11006         (get_group_alias_ptr_type): New function.
11007         (vectorizable_store, vectorizable_load): Use get_group_alias_ptr_type.
11009 2016-09-21  Marek Polacek  <polacek@redhat.com>
11011         * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
11012         Add falls through comment.
11014 2016-09-21  Richard Biener  <rguenther@suse.de>
11016         * dwarf2out.c (remove_child_with_prev): Clear child->die_sib.
11017         (replace_child): Likewise.
11018         (remove_child_TAG): Adjust.
11019         (move_marked_base_types): Likewise.
11020         (prune_unused_types_prune): Clear die_sib of removed children.
11022 2016-09-21  Georg-Johann Lay  <avr@gjlay.de>
11024         PR target/77326
11025         * config/avr/avr.c (avr_notice_update_cc) [CC_NONE]: If insn
11026         touches some regs mentioned in cc_status, do CC_STATUS_INIT.
11028 2016-09-21  Richard Biener  <rguenther@suse.de>
11030         PR tree-optimization/77648
11031         * tree-ssa-structalias.c (process_constraint): Handle all DEREF
11032         with complex RHS.
11033         (make_transitive_closure_constraints): Adjust comment.
11034         (make_any_offset_constraints): New function.
11035         (handle_rhs_call): Make sure to first expand a pointer to all
11036         subfields before transitively closing it.
11037         (handle_const_call): Likewise.  Properly expand returned
11038         pointers as well.
11039         (handle_pure_call): Likewise.
11041 2016-09-21  Richard Biener  <rguenther@suse.de>
11042             Jakub Jelinek  <jakub@redhat.com>
11044         PR tree-optimization/77621
11045         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
11046         group at non-vectorizable stmts.
11048 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
11050         PR tree-optimization/72835
11051         * tree-ssa-reassoc.c (make_new_ssa_for_def): New.
11052         (make_new_ssa_for_all_defs): Likewise.
11053         (zero_one_operation): Replace all SSA_NAMEs defined in the chain.
11055 2016-09-20  Martin Sebor  <msebor@redhat.com>
11057         PR middle-end/49905
11058         * Makefile.in (OBJS): Add gimple-ssa-sprintf.o.
11059         * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Redefine.
11060         * config/linux.c (gnu_libc_printf_pointer_format): New function.
11061         * config/sol2.h (TARGET_PRINTF_POINTER_FORMAT): Same.
11062         * config/sol2.c (solaris_printf_pointer_format): New function.
11063         * doc/invoke.texi (-Wformat-length, -fprintf-return-value): New
11064         options.
11065         * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Document.
11066         * doc/tm.texi: Regenerate.
11067         * gimple-fold.h (get_range_strlen): New function.
11068         (get_maxval_strlen): Declare existing function.
11069         * gimple-fold.c (get_range_strlen): Add arguments and compute both
11070         maximum and minimum.
11071          (get_range_strlen): Define overload.
11072         (get_maxval_strlen): Adjust.
11073         * gimple-ssa-sprintf.c: New file and pass.
11074         * passes.def (pass_sprintf_length): Add new pass.
11075         * targhooks.h (default_printf_pointer_format): Declare new function.
11076         (gnu_libc_printf_pointer_format): Same.
11077         (solaris_libc_printf_pointer_format): Same.
11078         * targhooks.c (default_printf_pointer_format): Define new function.
11079         * tree-pass.h (make_pass_sprintf_length): Declare new function.
11080         * print-tree.c: Increase buffer size.
11082 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
11084         * tree-vrp.c (get_value_range): Teach PARM_DECL to use ipa-vrp results.
11086 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
11088         * common.opt: New option -fipa-vrp.
11089         * ipa-cp.c (ipa_get_vr_lat): New.
11090         (ipcp_vr_lattice::print): Likewise.
11091         (print_all_lattices): Call ipcp_vr_lattice::print.
11092         (ipcp_vr_lattice::meet_with): New.
11093         (ipcp_vr_lattice::meet_with_1): Likewise.
11094         (ipcp_vr_lattice::top_p): Likewise.
11095         (ipcp_vr_lattice::bottom_p): Likewsie.
11096         (ipcp_vr_lattice::set_to_bottom): Likewise.
11097         (set_all_contains_variable): Call VR set_to_bottom.
11098         (initialize_node_lattices): Init VR lattices.
11099         (propagate_vr_accross_jump_function): New.
11100         (propagate_constants_accross_call): Call
11101         propagate_vr_accross_jump_function.
11102         (ipcp_store_vr_results): New.
11103         (ipcp_driver): Handle VR.
11104         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Handle VR.
11105         (ipa_set_jf_unknown): Likewise.
11106         (ipa_compute_jump_functions_for_edge): Likewise.
11107         (ipa_node_params_t::duplicate): Likewise.
11108         (ipa_write_jump_function): Likewise.
11109         (ipa_read_jump_function): Likewise.
11110         (write_ipcp_transformation_info): Likewise.
11111         (read_ipcp_transformation_info): Likewise.
11112         (ipcp_update_vr): New.
11113         (ipcp_transform_function): Handle VR.
11114         * ipa-prop.h (struct ipa_vr): New.
11115         * cgraph.c: Include tree-vrp.h.
11116         * cgraphunit.c: Likewise.
11117         * ipa-utils.c: Likewise.
11118         * ipa.c: Likewise.
11119         * opts.c: Likewise.
11120         * toplev.c: Likewise.
11121         * ipa-devirt.c: Likewise.
11122         * ipa-inline-transform.c: Likewise.
11123         * ipa-inline.c: Likewise.
11124         * ipa-profile.c: Likewise.
11126 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
11128         * doc/invoke.texi: Document -fdump-tree-evrp.
11129         * passes.def: Define new pass_early_vrp.
11130         * timevar.def: Define new TV_TREE_EARLY_VRP.
11131         * tree-pass.h (make_pass_early_vrp): New.
11132         * tree-ssa-propagate.c: Make replace_uses_in non static.
11133         * tree-ssa-propagate.h: Export replace_uses_in.
11134         * tree-vrp.c (extract_range_for_var_from_comparison_expr): New.
11135         (extract_range_from_assert): Factor out
11136         extract_range_for_var_from_comparison_expr.
11137         (vrp_initialize_lattice): New.
11138         (vrp_initialize): Factor out vrp_initialize_lattice.
11139         (vrp_valueize): Fix it to reject complex value ranges.
11140         (vrp_free_lattice): New.
11141         (evrp_dom_walker::before_dom_children): Likewise.
11142         (evrp_dom_walker::after_dom_children): Likewise.
11143         (evrp_dom_walker::push_value_range): Likewise.
11144         (evrp_dom_walker::pop_value_range): Likewise.
11145         (execute_early_vrp): Likewise.
11146         (execute_vrp): Call vrp_initialize_lattice and vrp_free_lattice.
11147         (make_pass_early_vrp): New.
11149 2016-09-20  Uros Bizjak  <ubizjak@gmail.com>
11151         * config/i386/i386.md (mult->ashift peephole2s): Use pow2p_hwi
11152         instead of exact_log2.
11154 2016-09-20  Uros Bizjak  <ubizjak@gmail.com>
11156         PR target/77621
11157         * config/i386/i386.c (ix86_preferred_simd_mode) <case DFmode>:
11158         Don't return word_mode for !TARGET_VECTORIZE_DOUBLE.
11159         (ix86_add_stmt_cost): Penalize DFmode vector operations
11160         for !TARGET_VECTORIZE_DOUBLE.
11162 2016-09-20  Gerald Pfeifer  <gerald@pfeifer.com>
11164         * doc/invoke.texi (Warning Options): Simplify language.
11165         (Optimize Options): Complete sentence.
11167 2016-09-20  David Edelsohn  <dje.gcc@gmail.com>
11169         * dbxout.c (xcoff_debug_hooks):  Add filename parameter to
11170         early_finish hook.
11172 2016-09-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
11174         PR target/71395
11175         * config/rs6000/rs6000.c (rs6000_expand_vector_init): For V4SF
11176         inits on power8 and above, use the VMRGEW instruction instead of a
11177         permute.
11179         * config/rs6000/altivec.md (UNSPEC_VMRGEW_DIRECT): New unspec.
11180         (p8_vmrgew_v4sf_direct): New VMRGEW insn for V4SF floating
11181         initialization.
11183 2016-09-20  Tamar Christina  <tamar.christina@arm.com>
11185         * config/aarch64/arm_neon.h
11186         (vst2_s64, vst2_u64, vst2_f64, vst2_s8): Add missing attributes.
11187         (vst3_s64, vst3_u64, vst3_f64, vst3_s8): Likewise.
11188         (vst4_s64, vst4_u64, vst4_f64, vst4_s8): Likewise.
11190 2016-09-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11192         * config/var/vax.h (ELIMINABLE_REGS): Define.
11193         (INITIAL_ELIMINATION_OFFSET): Define.
11195 2016-09-20  Jakub Jelinek  <jakub@redhat.com>
11197         PR middle-end/77624
11198         * builtins.c (fold_builtin_atomic_always_lock_free): Only look through
11199         cast to void * if the cast is from some other pointer type.
11201 2016-09-20  Richard Biener  <rguenther@suse.de>
11203         PR tree-optimization/77646
11204         * tree-ssa-sccvn.c (visit_reference_op_call): Always value-number
11205         a VDEF.
11207 2016-09-20  Tamar Christina  <tamar.christina@arm.com>
11209         * config/aarch64/arm_neon.h: Add gnu_inline and artificial
11210         attributes to all inlined functions and make them extern.
11212 2016-09-20  Richard Biener  <rguenther@suse.de>
11214         * debug.h (gcc_debug_hooks): Add filename parameter to early_finish
11215         hook.
11216         * debug.c (do_nothing_debug_hooks): Adjust.
11217         * dbxout.c (dbx_debug_hooks): Likewise.
11218         * sdbout.c (sdb_debug_hooks): Likewise.
11219         * dwarf2out.c (dwarf2_lineno_debug_hooks): Likewise.
11220         (dwarf2out_finish): Move producer, filename and
11221         path annotation ...
11222         (dwarf2out_early_finish): ... here.  Remove in_lto_p special-casing.
11223         * cgraphunit.c (symbol_table::finalize_compilation_unit): Adjust.
11225 2016-09-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11227         PR c++/77434
11228         * doc/invoke.texi: Document -Wint-in-bool-context.
11230         PR middle-end/77421
11231         * dwarf2out.c (output_loc_operands): Fix an assertion.
11233 2016-09-19  Joseph Myers  <joseph@codesourcery.com>
11235         * ginclude/float.h [__STDC_WANT_IEC_60559_BFP_EXT__]
11236         (CR_DECIMAL_DIG): New macro.
11238 2016-09-19  Joseph Myers  <joseph@codesourcery.com>
11240         * ginclude/stddef.h (max_align_t) [__i386__]: Add __float128
11241         element.
11243 2016-09-19  Vladimir Makarov  <vmakarov@redhat.com>
11245         PR rtl-optimization/77416
11246         * lra-remat.c (operand_to_remat): Process hard coded insn
11247         registers.
11249 2016-09-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11251         * simplify-rtx.c (simplify_relational_operation_1): Add transformation
11252         (GTU (PLUS a C) (C - 1)) --> (LTU a -C).
11254 2016-09-19  Segher Boessenkool  <segher@kernel.crashing.org>
11256         * target.def (lra_p): Wordsmithing.
11257         * doc/tm.texi: Regenerate.
11259 2016-09-19  Jakub Jelinek  <jakub@redhat.com>
11260             Jan Hubicka  <jh@suse.cz>
11262         PR target/77587
11263         * cgraph.c (cgraph_node::rtl_info): Pass &avail to
11264         ultimate_alias_target call, return NULL if avail < AVAIL_AVAILABLE.
11265         Call ultimate_alias_target just once, not up to 4 times.
11267 2016-09-19  Richard Biener  <rguenther@suse.de>
11269         * dwarf2out.c (early_dwarf_finished): New global.
11270         (set_early_dwarf::set_early_dwarf): Assert early_dwarf_finished
11271         is false.
11272         (dwarf2out_early_finish): Set early_dwarf_finished at the end,
11273         if called from LTO exit early.
11274         (dwarf2out_late_global_decl): When being during the early
11275         debug phase do not add locations but only const value attributes.
11276         Adjust the way we generate early DIEs for LTO.
11278 2016-09-19  Richard Biener  <rguenther@suse.de>
11280         PR middle-end/77605
11281         * tree-data-ref.c (analyze_subscript_affine_affine): Use the
11282         proper niter to bound the loops.
11284 2016-09-19  Richard Biener  <rguenther@suse.de>
11286         PR tree-optimization/77514
11287         * tree-ssa-pre.c (create_expression_by_pieces): Optimize
11288         search for folded stmt.
11290 2016-09-17  Jan Hubicka  <hubicka@ucw.cz>
11292         * passes.def (pass_early_thread_jumps): Schedule after forwprop.
11293         * tree-pass.h (make_pass_early_thread_jumps): Declare.
11294         * tree-ssa-threadbackward.c (fsm_find_thread_path,
11295         fsm_find_thread_path, profitable_jump_thread_path,
11296         fsm_find_control_statement_thread_paths,
11297         find_jump_threads_backwards): Add speed_p parameter.
11298         (pass_data_early_thread_jumps): New pass.
11299         (make_pass_early_thread_jumps): New function.
11301 2016-09-17  Andreas Schwab  <schwab@suse.de>
11303         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add cast.
11304         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
11306 2016-09-16  Eric Botcazou  <ebotcazou@adacore.com>
11308         * recog.c (rest_of_handle_split_after_reload): Delete.
11309         (pass_split_after_reload::gate): New method.
11310         (pass_split_after_reload::execute): Call split_all_insns directly.
11312 2016-09-16  Jonathan Wakely  <jwakely@redhat.com>
11314         * doc/extend.texi (Integer Overflow Builtins): Fix type of out
11315         parameters for functions taking long long arguments.
11317 2016-09-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11319         PR target/77613
11320         * config/rs6000/rs6000.c (rtx_is_swappable_p): Add support for
11321         splat with truncate.
11323 2016-09-16  Jason Merrill  <jason@redhat.com>
11325         * hwint.h (least_bit_hwi, pow2_or_zerop, pow2p_hwi, ctz_or_zero):
11326         New.
11327         * hwint.c (exact_log2): Use pow2p_hwi.
11328         (ctz_hwi, ffs_hwi): Use least_bit_hwi.
11329         * alias.c (memrefs_conflict_p): Use pow2_or_zerop.
11330         * builtins.c (get_object_alignment_2, get_object_alignment)
11331         (get_pointer_alignment, fold_builtin_atomic_always_lock_free): Use
11332         least_bit_hwi.
11333         * calls.c (compute_argument_addresses, store_one_arg): Use
11334         least_bit_hwi.
11335         * cfgexpand.c (expand_one_stack_var_at): Use least_bit_hwi.
11336         * combine.c (force_to_mode): Use least_bit_hwi.
11337         (contains_muldiv, find_split_point, combine_simplify_rtx)
11338         (simplify_if_then_else, simplify_set, force_to_mode)
11339         (if_then_else_cond, simplify_and_const_int_1)
11340         (simplify_compare_const): Use pow2p_hwi.
11341         * cse.c (fold_rtx): Use pow2p_hwi.
11342         * emit-rtl.c (set_mem_attributes_minus_bitpos, adjust_address_1):
11343         Use least_bit_hwi.
11344         * expmed.c (synth_mult, expand_divmod): Use ctz_or_zero, ctz_hwi.
11345         (init_expmed_one_conv): Use pow2p_hwi.
11346         * expr.c (is_aligning_offset): Use pow2p_hwi.
11347         * fold-const.c (round_up_loc, round_down_loc): Use pow2_or_zerop.
11348         (fold_binary_loc): Use pow2p_hwi.
11349         * function.c (assign_parm_find_stack_rtl): Use least_bit_hwi.
11350         * gimple-fold.c (gimple_fold_builtin_memory_op): Use pow2p_hwi.
11351         * gimple-ssa-strength-reduction.c (replace_ref): Use least_bit_hwi.
11352         * hsa-gen.c (gen_hsa_addr_with_align, hsa_bitmemref_alignment):
11353         Use least_bit_hwi.
11354         * ifcvt.c (noce_try_store_flag_constants): Use pow2p_hwi.
11355         * ipa-cp.c (ipcp_alignment_lattice::meet_with_1): Use least_bit_hwi.
11356         * ipa-prop.c (ipa_modify_call_arguments): Use least_bit_hwi.
11357         * omp-low.c (oacc_loop_fixed_partitions)
11358         (oacc_loop_auto_partitions): Use least_bit_hwi.
11359         * rtlanal.c (nonzero_bits1): Use ctz_or_zero.
11360         * stor-layout.c (place_field): Use least_bit_hwi.
11361         * tree-pretty-print.c (dump_generic_node): Use pow2p_hwi.
11362         * tree-sra.c (build_ref_for_offset): Use least_bit_hwi.
11363         * tree-ssa-ccp.c (ccp_finalize): Use least_bit_hwi.
11364         * tree-ssa-math-opts.c (bswap_replace): Use least_bit_hwi.
11365         * tree-ssa-strlen.c (handle_builtin_memcmp): Use pow2p_hwi.
11366         * tree-vect-data-refs.c (vect_analyze_group_access_1)
11367         (vect_grouped_store_supported, vect_grouped_load_supported)
11368         (vect_permute_load_chain, vect_shift_permute_load_chain)
11369         (vect_transform_grouped_load): Use pow2p_hwi.
11370         * tree-vect-generic.c (expand_vector_divmod): Use ctz_or_zero.
11371         * tree-vect-patterns.c (vect_recog_divmod_pattern): Use ctz_or_zero.
11372         * tree-vect-stmts.c (vectorizable_mask_load_store): Use
11373         least_bit_hwi.
11374         * tsan.c (instrument_expr): Use least_bit_hwi.
11375         * var-tracking.c (negative_power_of_two_p): Use pow2_or_zerop.
11377 2016-09-16  Andreas Schwab  <schwab@suse.de>
11379         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Use parameter
11380         OFFSET, not offset.
11381         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
11383 2016-09-16  Jakub Jelinek  <jakub@redhat.com>
11385         PR target/77526
11386         * combine.c (rest_of_handle_combine): If any edges have been purged,
11387         free dominators if available.
11389 2016-09-16  Jakub Jelinek  <jakub@redhat.com>
11390             Eric Botcazou  <ebotcazou@adacore.com>
11392         PR middle-end/77594
11393         * internal-fn.c (expand_arith_overflow) <case MINUS_EXPR>: Don't fall
11394         through into expand_addsub_overflow after expand_neg_overflow.
11396 2016-09-15  David Malcolm  <dmalcolm@redhat.com>
11398         * diagnostic-show-locus.c
11399         (selftest::test_fixit_insert_containing_newline): New function.
11400         (selftest::test_fixit_replace_containing_newline): New function.
11401         (selftest::diagnostic_show_locus_c_tests): Call the above.
11403 2016-09-15  Bin Cheng  <bin.cheng@arm.com>
11405         PR tree-optimization/77503
11406         * tree-vect-loop.c (vectorizable_reduction): Record reduction
11407         code for CONST_COND_REDUCTION at analysis stage and use it at
11408         transform stage.
11409         * tree-vectorizer.h (struct _stmt_vec_info): New field.
11410         (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): New macro.
11411         * tree-vect-stmts.c (new_stmt_vec_info): Initialize above new
11412         field.
11414 2016-09-15  Richard Biener  <rguenther@suse.de>
11416         PR middle-end/77544
11417         * fold-const.c (split_tree): Do not split constant ~X.
11419 2016-09-15  Jakub Jelinek  <jakub@redhat.com>
11421         PR rtl-optimization/77425
11422         * sched-int.h (sd_iterator_cond): Don't update it_ptr->linkp if list
11423         is NULL.
11425         PR middle-end/77475
11426         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Simplify,
11427         use %qs instead of %s where desirable, use argument instead of arg in
11428         the diagnostic wording, add list of supported strategies and
11429         spellcheck hint.
11430         (ix86_option_override_internal): Emit target("m...") instead of
11431         option("m...") in the diagnostic.  Use %qs instead of %s in invalid
11432         -march/-mtune option diagnostic.  Add list of supported arches/tunings
11433         and spellcheck hint.  Remove prefix, suffix and sw variables, use
11434         main_args_p ? "..." : "..." in diagnostics to make translation
11435         possible.
11437 2016-09-15  Richard Biener  <rguenther@suse.de>
11439         * dwarf2asm.h (dw2_asm_output_offset): Add overload with
11440         extra offset argument.
11441         * dwarf2asm.c (dw2_asm_output_offset): Implement that.
11442         * doc/tm.texi.in (ASM_OUTPUT_DWARF_OFFSET): Adjust documentation
11443         to reflect new offset parameter.
11444         * doc/tm.texi: Regenerate.
11445         * config/darwin.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
11446         * config/darwin-protos.h (darwin_asm_output_dwarf_delta): Add
11447         offset argument.
11448         (darwin_asm_output_dwarf_offset): Likewise.
11449         * config/darwin.c (darwin_asm_output_dwarf_delta): Add offset
11450         argument.
11451         (darwin_asm_output_dwarf_offset): Pass offset argument through.
11452         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
11453         * config/i386/cygmin.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
11455 2016-09-15  Chung-Lin Tang  <cltang@codesourcery.com>
11457         PR fortran/72743
11458         * ipa-icf.c (set_alias_uids): New function.
11459         (sem_variable::merge): Use set_alias_uids to set DECL_PT_UID of
11460         all the merged variable's referring aliases.
11462 2016-09-15  Richard Biener  <rguenther@suse.de>
11464         PR tree-optimization/77514
11465         * tree-ssa-pre.c (create_expression_by_pieces): Handle garbage
11466         only forced_stmts sequence.
11468 2016-09-15  Kugan Vivekanandarajah  <kuganv@linaro.org>
11470         * tree-ssanames.h (FOR_EACH_SSA_NAME): New.
11471         * cfgexpand.c (update_alias_info_with_stack_vars): Use
11472         FOR_EACH_SSA_NAME to iterate over SSA variables.
11473         (pass_expand::execute): Likewise.
11474         * omp-simd-clone.c (ipa_simd_modify_function_body): Likewise.
11475         * tree-cfg.c (dump_function_to_file): Likewise.
11476         * tree-into-ssa.c (pass_build_ssa::execute): Likewise.
11477         (update_ssa): Likewise.
11478         * tree-ssa-alias.c (dump_alias_info): Likewise.
11479         * tree-ssa-ccp.c (ccp_finalize): Likewise.
11480         * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
11481         (create_outofssa_var_map): Likewise.
11482         (coalesce_ssa_name): Likewise.
11483         * tree-ssa-operands.c (dump_immediate_uses): Likewise.
11484         * tree-ssa-pre.c (compute_avail): Likewise.
11485         * tree-ssa-sccvn.c (init_scc_vn): Likewise.
11486         (scc_vn_restore_ssa_info): Likewise.
11487         (free_scc_vn): Likwise.
11488         (run_scc_vn): Likewise.
11489         * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
11490         * tree-ssa-ter.c (new_temp_expr_table): Likewise.
11491         * tree-ssa-copy.c (fini_copy_prop): Likewise.
11492         * tree-ssa.c (verify_ssa): Likewise.
11494 2016-09-14  Matthew Fortune  <matthew.fortune@imgtec.com>
11496         * config.gcc (mips*-mti-elf*, mips*-mti-linux*): Set mips32r2
11497         and mips64r2 as default 32-bit and 64-bit architectures.
11498         (mips*-img-elf*, mips*-img-linux*): Set mips32r6 and mips64r6
11499         as default 32-bit and 64-bit architectures.
11501 2016-09-14  Pat Haugen  <pthaugen@us.ibm.com>
11503         * loop-unroll.c (unroll_loop_runtime_iterations): Set probability
11504         of succ edge.
11506 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
11508         * target.def (lra_p): Change commentary (for the manual) for the
11509         new default.
11510         * doc/tm.texi: Regenerate.
11512 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
11514         * config/aarch64/aarch64.c (TARGET_LRA_P): Delete macro.
11515         * config/arm/arm.c (TARGET_LRA_P): Delete macro.
11516         * config/i386/i386.c (TARGET_LRA_P): Delete macro.
11517         * config/nds32/nds32.c (TARGET_LRA_P): Delete macro.
11519 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
11521         * targhooks.c (default_lra_p): Return true instead of false.
11523 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
11525         * config/alpha/alpha.c (TARGET_LRA_P): New macro, defined to
11526         hook_bool_void_false.
11527         * config/avr/avr.c: Ditto.
11528         * config/bfin/bfin.c: Ditto.
11529         * config/c6x/c6x.c: Ditto.
11530         * config/cr16/cr16.c: Ditto.
11531         * config/cris/cris.c: Ditto.
11532         * config/epiphany/epiphany.c: Ditto.
11533         * config/fr30/fr30.c: Ditto.
11534         * config/frv/frv.c: Ditto.
11535         * config/h8300/h8300.c: Ditto.
11536         * config/ia64/ia64.c: Ditto.
11537         * config/iq2000/iq2000.c: Ditto.
11538         * config/lm32/lm32.c: Ditto.
11539         * config/m32c/m32c.c: Ditto.
11540         * config/m32r/m32r.c: Ditto.
11541         * config/m68k/m68k.c: Ditto.
11542         * config/mcore/mcore.c: Ditto.
11543         * config/microblaze/microblaze.c: Ditto.
11544         * config/mmix/mmix.c: Ditto.
11545         * config/mn10300/mn10300.c: Ditto.
11546         * config/moxie/moxie.c: Ditto.
11547         * config/msp430/msp430.c: Ditto.
11548         * config/nios2/nios2.c: Ditto.
11549         * config/nvptx/nvptx.c: Ditto.
11550         * config/pa/pa.c: Ditto.
11551         * config/pdp11/pdp11.c: Ditto.
11552         * config/rl78/rl78.c: Ditto.
11553         * config/sparc/sparc.c: Ditto.
11554         * config/spu/spu.c: Ditto.
11555         * config/stormy16/stormy16.c: Ditto.
11556         * config/tilegx/tilegx.c: Ditto.
11557         * config/tilepro/tilepro.c: Ditto.
11558         * config/v850/v850.c: Ditto.
11559         * config/vax/vax.c: Ditto.
11560         * config/visium/visium.c: Ditto.
11561         * config/xtensa/xtensa.c: Ditto.
11563 2016-09-14  Jakub Jelinek  <jakub@redhat.com>
11565         PR sanitizer/68260
11566         * tsan.c: Include target.h.
11567         (enum tsan_atomic_action): Add bool_clear and bool_test_and_set.
11568         (BOOL_CLEAR, BOOL_TEST_AND_SET): Define.
11569         (tsan_atomic_table): Add BUILT_IN_ATOMIC_CLEAR and
11570         BUILT_IN_ATOMIC_TEST_AND_SET entries.
11571         (instrument_builtin_call): Handle bool_clear and bool_test_and_set.
11573 2016-09-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11574             Martin Liska  <mliska@suse.cz>
11576         PR middle-end/77574
11577         * predict.c (force_edge_cold): Add braces to a condition.
11579 2016-09-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11581         PR rtl-optimization/77289
11582         * lra-constraints.c (get_final_hard_regno): Removed.
11583         (get_hard_regno): Add new parameter final_p.
11584         (get_reg_class): Directly call lra_get_elimination_hard_regno.
11585         (operands_match_p): Adjust call to get_hard_regno.
11586         (uses_hard_regs_p): Likewise.
11587         (process_alt_operands): Likewise.
11589 2016-09-13  Joe Seymour  <joe.s@somniumtech.com>
11591         PR target/70713
11592         * config/msp430/msp430.c (msp430_start_function): Emit an error
11593         if a function is both weak and specifies an interrupt number.
11595 2016-09-13  Jakub Jelinek  <jakub@redhat.com>
11597         PR tree-optimization/77454
11598         * tree-ssa-dom.c (optimize_stmt): Set modified flag on stmt after
11599         changing GIMPLE_COND.  Move update_stmt_if_modified call after this.
11600         Formatting fix.
11602 2016-09-13  Tamar Christina  <tamar.christina@arm.com>
11604         * config/aarch64/aarch64-builtins.c
11605         (aarch64_init_simd_builtins): Fix builtin type signature printing.
11607 2016-09-13  Uros Bizjak  <ubizjak@gmail.com>
11609         * config/alpha/alpha.c (alpha_pass_by_reference): Pass un-named
11610         SFmode and SCmode arguments by reference.
11612 2016-09-13  David Malcolm  <dmalcolm@redhat.com>
11614         * diagnostic-show-locus.c (selftest::test_one_liner_fixit_insert):
11615         Rename to...
11616         (selftest::test_one_liner_fixit_insert_before): ...this, and update
11617         for renaming of add_fixit_insert to add_fixit_insert_before.
11618         (selftest::test_one_liner_fixit_insert_after): New function.
11619         (selftest::test_one_liner_fixit_validation_adhoc_locations):
11620         Update for renaming of add_fixit_insert to add_fixit_insert_before.
11621         (selftest::test_one_liner_many_fixits): Likewise.
11622         (selftest::test_diagnostic_show_locus_one_liner): Update for
11623         renaming, call new test function.
11624         (selftest::test_diagnostic_show_locus_fixit_lines): Update for
11625         renaming of add_fixit_insert to add_fixit_insert_before.
11626         (selftest::test_fixit_consolidation): Likewise.
11627         * diagnostic.c (selftest::test_print_parseable_fixits_insert):
11628         Likewise.
11629         * edit-context.c (selftest::test_applying_fixits_insert): Rename to...
11630         (selftest::test_applying_fixits_insert_before): ...this.
11631         (selftest::test_applying_fixits_insert): Update for renaming of
11632         add_fixit_insert to add_fixit_insert_before.
11633         (selftest::test_applying_fixits_insert_after): New function.
11634         (selftest::test_applying_fixits_insert_after_at_line_end): New
11635         function.
11636         (selftest::test_applying_fixits_insert_after_failure): New function.
11637         (selftest::test_applying_fixits_multiple): Update for renaming of
11638         add_fixit_insert to add_fixit_insert_before.
11639         (selftest::change_line): Likewise.
11640         (selftest::test_applying_fixits_unreadable_file): Likewise.
11641         (selftest::test_applying_fixits_line_out_of_range): Likewise.
11642         (selftest::test_applying_fixits_column_validation): Likewise.
11643         (selftest::test_applying_fixits_column_validation): Likewise.
11644         (selftest::edit_context_c_tests): Update for renamed test function;
11645         call new test functions.
11647 2016-09-13  Pat Haugen  <pthaugen@us.ibm.com>
11649         PR tree-optimization/77536
11650         PR rtl-optimization/68212
11651         * config/rs6000/rs6000.md (div->recip splitter): Remove
11652         optimize_insn_for_speed_p condition.
11654 2016-09-13  Maciej W. Rozycki  <macro@imgtec.com>
11656         * optabs.c (prepare_cmp_insn): Update documentation comment.
11658 2016-09-13  Jakub Jelinek  <jakub@redhat.com>
11659             Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
11661         PR middle-end/77475
11662         * opts.h (candidates_list_and_hint): Declare.
11663         * opts-common.c (candidates_list_and_hint): New function.
11664         (cmdline_handle_error): Use it.
11666 2016-09-12  David Malcolm  <dmalcolm@redhat.com>
11668         * edit-context.c (edited_line::get_len): New accessor.
11669         (edited_file::print_diff): Split out hunk-printing into...
11670         (edited_file::print_diff_hunk): New method.
11671         (edited_file::print_diff_line): New method.
11673 2016-09-12  Andrew Pinski  <apinski@cavium.com>
11675         * config/aarch64/aarch64-tuning-flags.def (SLOW_UNALIGNED_LDPW):
11676         New tuning option.
11677         * config/aarch64/aarch64.c (thunderx_tunings): Enable
11678         AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW.
11679         (aarch64_operands_ok_for_ldpstp): Return false if
11680         AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW and the mode
11681         was SImode and the alignment is less than 8 byte.
11682         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
11684 2016-09-12  Orlando Arias  <oarias@knights.ucf.edu>
11686         PR target/77570
11687         * config/msp430/msp430.md (delay_cycles_32x): Fix pushm/popm.
11689 2016-09-12  Marek Polacek  <polacek@redhat.com>
11691         * doc/extend.texi: Use lowercase "boolean".
11692         * doc/invoke.texi: Likewise.
11693         * doc/md.texi: Likewise.
11694         * target.def: Likewise.
11695         * doc/tm.texi: Regenerated.
11697 2016-09-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11699         PR middle-end/77426
11700         * expmed.c (synth_mult): Delete duplicate mode check.
11702 2016-09-10  Tom de Vries  <tom@codesourcery.com>
11704         PR C/71602
11705         * builtins.c (std_canonical_va_list_type): Strictly return non-null for
11706         va_list type only.
11707         * config/i386/i386.c (ix86_canonical_va_list_type): Same.
11708         * gimplify.c (gimplify_va_arg_expr): Handle &va_list.
11710 2016-09-09  Peter Bergner  <bergner@vnet.ibm.com>
11712         PR rtl-optimization/77289
11713         * lra-constraints.c (get_final_hard_regno): Add support for non hard
11714         register numbers.  Remove support for subregs.
11715         (get_hard_regno): Use SUBREG_P.  Don't call get_final_hard_regno().
11716         (get_reg_class): Delete removed get_final_hard_regno() argument.
11717         (uses_hard_regs_p): Call get_final_hard_regno().
11719 2016-09-09  Martin Sebor  <msebor@redhat.com>
11721         PR c/77520
11722         PR c/77521
11723         * pretty-print.c (pp_quoted_string): New function.
11724         (pp_format): Call it for %c and %s directives.
11726 2016-09-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11728         * doc/tm.texi.in (INITIAL_FRAME_POINTER_OFFSET): Remove.
11729         (ELIMINABLE_REGS, TARGET_CAN_ELIMINATE,
11730         INITIAL_ELIMINATION_OFFSET) : Update documentation.
11731         * target.def (frame_pointer_required, can_eliminate): Likewise.
11732         * doc/tm.texi: Regenerated.
11733         * builtins.c (expand_builtin_setjmp_receiver): Remove #ifdef
11734         ELIMINABLE_REGS.
11735         * df-scan.c (df_hard_reg_init): Likewise.
11736         * ira.c (ira_setup_eliminable_regset): Likewise.
11737         * lra-eliminations.c (reg_eliminate_1, (update_reg_eliminate,
11738         init_elim_table): Likewise.
11739         * reload1.c (reg_eliminate_1, verify_initial_elim_offsets,
11740         set_initial_elim_offsets, update_eliminables,
11741         init_elim_table): Likewise.
11742         * rtlanal.c (get_initial_register_offset): Likewise.
11743         * config/ft32/ft32.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
11744         * config/m32r/m32r.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
11745         * config/moxie/moxie.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
11746         * config/vax/vax.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
11747         * config/fr30/fr30.h: Fix comment.
11748         * config/frv/frv.c: Likewise.
11749         * config/frv/frv.h: Likewise.
11750         * config/ft32/ft32.h: Likewise.
11751         * config/visium/visium.h: Likewise.
11752         * config/pa/pa64-linux.h: Likewise.
11753         * config/v850/v850.h: Likewise.
11754         * config/cris/cris.c: Likewise.
11755         * config/ia64/ia64.h: Likewise.
11756         * config/moxie/moxie.h: Likewise.
11757         * config/m32r/m32r.h: Likewise.
11759 2016-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11761         PR target/77267
11762         * config.in: Regenerate.
11763         * config/i386/linux-common.h (MPX_LD_AS_NEEDED_GUARD_PUSH):
11764         New macro.
11765         (MPX_LD_AS_NEEDED_GUARD_PUSH): Ditto.
11766         (LIBMPXWRAPPERS_SPEC): Remove "--no-whole-archive" from
11767         static-libmpxwrappers case.
11768         (LIBMPX_SPEC): Add guards with MPX_LD_AS_NEEDED_GUARD_PUSH and
11769         MPX_LD_AS_NEEDED_GUARD_POP.
11770         * configure: Regenerate.
11771         * configure.ac (HAVE_LD_PUSHPOPSTATE_SUPPORT): New variable.
11772         defined if linker support "--push-state"/"--pop-state".
11774 2016-09-09  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11776         * doc/cpp.texi (__*_WIDTH__): Small wording fixes.
11778 2016-09-09  Joseph Myers  <joseph@codesourcery.com>
11780         * doc/cpp.texi (__SCHAR_WIDTH__, __SHRT_WIDTH__, __INT_WIDTH__)
11781         (__LONG_WIDTH__, __LONG_LONG_WIDTH__, __PTRDIFF_WIDTH__)
11782         (__SIG_ATOMIC_WIDTH__, __SIZE_WIDTH__, __WCHAR_WIDTH__)
11783         (__WINT_WIDTH__, __INT_LEAST8_WIDTH__, __INT_LEAST16_WIDTH__)
11784         (__INT_LEAST32_WIDTH__, __INT_LEAST64_WIDTH__)
11785         (__INT_FAST8_WIDTH__, __INT_FAST16_WIDTH__, __INT_FAST32_WIDTH__)
11786         (__INT_FAST64_WIDTH__, __INTPTR_WIDTH__, __INTMAX_WIDTH__):
11787         Document.
11788         * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Define
11789         width macros from TS 18661-1.
11790         * glimits.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Likewise.
11792 2016-09-08  Jakub Jelinek  <jakub@redhat.com>
11794         PR fortran/77516
11795         * omp-low.c (lower_rec_simd_input_clauses): Use max_vf for non-positive
11796         OMP_CLAUSE_SAFELEN_EXPR.
11798 2016-09-07  David Malcolm  <dmalcolm@redhat.com>
11800         * Makefile.in (OBJS): Add substring-locations.o.
11801         * langhooks-def.h (class substring_loc): New forward decl.
11802         (lhd_get_substring_location): New decl.
11803         (LANG_HOOKS_GET_SUBSTRING_LOCATION): New macro.
11804         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_GET_SUBSTRING_LOCATION.
11805         * langhooks.c (lhd_get_substring_location): New function.
11806         * langhooks.h (class substring_loc): New forward decl.
11807         (struct lang_hooks): Add field get_substring_location.
11808         * substring-locations.c: New file, taking definition of
11809         format_warning_va and format_warning_at_substring from
11810         c-family/c-format.c, making them non-static.
11811         * substring-locations.h (class substring_loc): Move class here
11812         from c-family/c-common.h.  Add and rewrite comments.
11813         (format_warning_va): New decl.
11814         (format_warning_at_substring): New decl.
11815         (get_source_location_for_substring): Add comment.
11817 2016-09-07  Eric Gallager  <egall@gwmail.gwu.edu>
11819         * config/i386/i386.c: Add 'U' suffix to processor feature bits
11820         to avoid -Wnarrowing warning.
11821         * config/i386/x86-tune.def: Likewise for DEF_TUNE selector bitmasks.
11822         * opts.c: Likewise for SANITIZER_OPT bitmasks.
11824 2016-09-07  Wilco Dijkstra  <wdijkstr@arm.com>
11826         * config/aarch64/aarch64.c (aarch64_legitimize_address):
11827         Avoid use of base_offset if offset already in range.
11829 2016-09-07  Kaz Kojima  <kkojima@gcc.gnu.org>
11831         * config/sh/sh-protos.h (struct sh_atomic_model,
11832         selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
11833         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
11834         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Move to...
11835         * config/sh/sh.h (struct sh_atomic_model,
11836         selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
11837         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
11838         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): ...here.
11839         Guard with __cplusplus.
11841 2016-09-06  Jakub Jelinek  <jakub@redhat.com>
11843         PR target/69255
11844         * config/i386/i386.c (ix86_expand_builtin): For builtin with
11845         unsupported or unknown ISA, use expand_call.
11847 2016-09-06  Martin Liska  <mliska@suse.cz>
11849         PR gcov-profile/77378
11850         PR gcov-profile/77466
11851         * tree-profile.c (tree_profiling): Detect whether target can use
11852         -fprofile-update=atomic.
11854 2016-09-06  Richard Biener  <rguenther@suse.de>
11856         PR tree-optimization/77479
11857         * tree-vrp.c (update_value_range): Extend overflow handling to
11858         VARYING.
11860 2016-09-05  Jakub Jelinek  <jakub@redhat.com>
11862         PR target/77476
11863         * config/i386/i386.md (isa): Add x64_avx512bw.
11864         (*zero_extendsidi2): For alternative 11 use x64_avx512bw isa.
11865         (kmov_isa): New mode attr.
11866         (zero_extend<mode>di2): Use <kmov_isa> isa for the last alternative.
11867         (*zero_extend<mode>si2): Likewise.
11868         (*zero_extendqihi2): Use avx512dq isa for the last alternative.
11870 2016-09-05  Gerald Pfeifer  <gerald@pfeifer.com>
11872         * doc/invoke.texi (SPU Options): nops -> NOPs.
11873         (x86 Options): Ditto.
11875 2016-09-05  Jakub Jelinek  <jakub@redhat.com>
11877         PR middle-end/77475
11878         * toplev.c (process_options): Temporarily set input_location
11879         to UNKNOWN_LOCATION around targetm.target_option.override () call.
11881 2016-09-05  Uros Bizjak  <ubizjak@gmail.com>
11883         PR rtl-optimization/77452
11884         * explow.c (plus_constant) <case MEM>: Extract scalar constant from
11885         inner-mode reference to a CONST_VECTOR constant in the constant pool.
11887 2016-09-05  Marek Polacek  <polacek@redhat.com>
11889         PR c/77423
11890         * doc/invoke.texi: Update -Wlogical-not-parentheses documentation.
11892 2016-09-05  Jakub Jelinek  <jakub@redhat.com>
11894         PR other/77421
11895         * gensupport.c (alter_output_for_subst_insn): Remove redundant
11896         *insn_out == '*' test.  Don't copy unnecessary to yet another
11897         memory buffer, and don't leak it.
11899         PR rtl-optimization/77425
11900         * ipa-devirt.c (get_odr_type): Set val->id unconditionally.
11902 2016-09-03  Kirill Yukhin  <kirill.yukhin@intel.com>
11904         * ubsan.c (ubsan_use_new_style_p): Fix check for empty string.
11906 2016-09-02  David Malcolm  <dmalcolm@redhat.com>
11908         * common.opt (fdiagnostics-generate-patch): New option.
11909         * diagnostic.c: Include "edit-context.h".
11910         (diagnostic_initialize): Initialize context->edit_context_ptr.
11911         (diagnostic_finish): Delete context->edit_context_ptr.
11912         (diagnostic_report_diagnostic): Add fix-it hints from the
11913         diagnostic to context->edit_context_ptr, if any.
11914         * diagnostic.h (class edit_context): Add forward decl.
11915         (struct diagnostic_context): Add field "edit_context_ptr".
11916         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
11917         -fdiagnostics-generate-patch.
11918         (-fdiagnostics-generate-patch): New item.
11919         * toplev.c: Include "edit-context.h".
11920         (process_options): Set global_dc->edit_context_ptr to a new
11921         edit_context if the options need one.
11922         (toplev::main): Handle -fdiagnostics-generate-patch by using
11923         global_dc->edit_context_ptr.
11925 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
11927         PR c/65467
11928         * gimplify.c (gimplify_adjust_omp_clauses_1): Diagnose implicit
11929         map and firstprivate clauses on target construct for _Atomic
11930         qualified decls.
11931         (gimplify_adjust_omp_clauses): Diagnose explicit firstprivate clauses
11932         on target construct for _Atomic qualified decls.
11933         * omp-low.c (use_pointer_for_field): Return true for _Atomic qualified
11934         decls.
11935         * omp-simd-clone.c (simd_clone_clauses_extract): Warn and give up for
11936         _Atomic qualified arguments not mentioned in uniform clause.
11938 2016-09-02  David Malcolm  <dmalcolm@redhat.com>
11940         * Makefile.in (OBJS-libcommon): Add edit-context.o.
11941         * diagnostic-color.c (color_dict): Add "diff-filename",
11942         "diff-hunk", "diff-delete", and "diff-insert".
11943         (parse_gcc_colors): Update default value of GCC_COLORS in comment
11944         to reflect above changes.
11945         * doc/invoke.texi (-fdiagnostics-color): Update description of
11946         default GCC_COLORS, and of the supported capabilities.
11947         * edit-context.c: New file.
11948         * edit-context.h: New file.
11949         * input.c (struct fcache): Add field "missing_trailing_newline".
11950         (diagnostics_file_cache_forcibly_evict_file): Initialize it to
11951         true.
11952         (add_file_to_cache_tab): Likewise.
11953         (fcache::fcache): Likewise.
11954         (get_next_line): Update c->missing_trailing_newline.
11955         (location_missing_trailing_newline): New function.
11956         * input.h (location_missing_trailing_newline): New decl.
11957         * selftest-run-tests.c (selftest::run_tests): Call
11958         edit_context_c_tests.
11959         * selftest.h (edit_context_c_tests): New decl.
11961 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
11962             Richard Biener  <rguenth@suse.de>
11964         PR tree-optimization/77444
11965         * tree-ssa-loop-ivopts.c (cand_value_at): For pointers use sizetype
11966         as steptype, remove redundant initialization.
11968 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
11970         PR sanitizer/77396
11971         * sanopt.c: Include gimple-ssa.h, tree-phinodes.h and ssa-iterators.h.
11972         (sanopt_optimize_walker): Optimize away
11973         __asan_before_dynamic_init (...) followed by
11974         __asan_after_dynamic_init () without intervening memory loads/stores.
11975         * ipa-pure-const.c (special_builtin_state): Handle
11976         BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT and
11977         BUILT_IN_ASAN_AFTER_DYNAMIC_INIT.
11979 2016-09-02  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
11981         * cfg.c (free_original_copy_tables): Replace second assignment of
11982         bb_copy = NULL by bb_original = NULL.
11984 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
11986         PR other/77421
11987         * config/i386/i386.c (ix86_expanded_args_builtin): Remove redundant
11988         assignment added in r216794.
11990 2016-09-02  David Malcolm  <dmalcolm@redhat.com>
11992         * Makefile.in (OBJS): Add typed-splay-tree.o.
11993         * selftest-run-tests.c (selftest::run_tests): Call
11994         typed_splay_tree_c_tests.
11995         * selftest.h (typed_splay_tree_c_tests): New decl.
11996         * typed-splay-tree.c: New file.
11997         * typed-splay-tree.h (typed_splay_tree::foreach_fn): New typedef.
11998         (typed_splay_tree::max): New method.
11999         (typed_splay_tree::min): New method.
12000         (typed_splay_tree::foreach): New method.
12001         (typed_splay_tree::closure): New struct.
12002         (typed_splay_tree::inner_foreach_fn): New function.
12004 2016-09-02  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
12006         * ipa-cp.c (ipcp_store_bits_results): Change option name from
12007         -fipa-cp-bit to -fipa-bit-cp.
12009 2016-09-01  Martin Sebor  <msebor@redhat.com>
12011         PR tree-optimization/71831
12012         * tree-object-size.h: Return bool instead of the size and add
12013         argument for the size.
12014         * tree-object-size.c (compute_object_offset): Update signature.
12015         (addr_object_size): Same.
12016         (compute_builtin_object_size): Return bool instead of the size
12017         and add argument for the size.  Handle POINTER_PLUS_EXPR when
12018         optimization is disabled.
12019         (expr_object_size): Adjust.
12020         (plus_stmt_object_size): Adjust.
12021         (pass_object_sizes::execute): Adjust.
12022         * builtins.c (fold_builtin_object_size): Adjust.
12023         * doc/extend.texi (Object Size Checking): Update.
12024         * ubsan.c (instrument_object_size): Adjust.
12026 2016-09-01  Martin Sebor  <msebor@redhat.com>
12028         * genmatch.c (parser::parse_expr): Increase buffer size to guarantee
12029         it fits the output of the formatted function regardless of its
12030         arguments.
12031         * genmodes.c (parser::parse_expr): Same.
12032         * gimplify.c (gimplify_asm_expr): Same.
12033         * passes.c (pass_manager::register_one_dump_file): Same.
12034         * print-tree.c (print_node): Same.
12036 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
12038         * config/rs6000/altivec.md: Use VSCR_REGNO instead of 110 throughout.
12040 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
12042         * config/rs6000/altivec.md: Use VRSAVE_REGNO instead of 109 throughout.
12044 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
12046         * config/rs6000/altivec.md: Use CR6_REGNO instead of 74 throughout.
12047         * config/rs6000/vector.md: Ditto.
12048         * config/rs6000/vsx.md: Ditto.
12050 2016-09-01  Eric Botcazou  <ebotcazou@adacore.com>
12052         * ipa-inline-analysis.c (param_change_prob): Get to the base object
12053         first in all cases.
12055 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
12057         * config/rs6000/rs6000.md (*restore_gpregs_<mode>_r11,
12058         *restore_gpregs_<mode>_r12, *restore_gpregs_<mode>_r1,
12059         *return_and_restore_gpregs_<mode>_r11,
12060         *return_and_restore_gpregs_<mode>_r12,
12061         *return_and_restore_gpregs_<mode>_r1,
12062         *return_and_restore_fpregs_<mode>_r11,
12063         *return_and_restore_fpregs_<mode>_r12,
12064         *return_and_restore_fpregs_<mode>_r1): Use the hard register LR_REGNO
12065         directly instead of via the "l" constraint.  Renumber operands.
12066         Fix whitespace.
12068 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
12070         * config/rs6000/altivec.md (*save_world, *save_vregs_<mode>_r11,
12071         save_vregs_<mode>_r12, *restore_vregs_<mode>_r11,
12072         *restore_vregs_<mode>_r12): Use LR_REGNO instead of 65.
12073         * config/rs6000/darwin.md (load_macho_picbase, load_macho_picbase_si,
12074         load_macho_picbase_di, *call_indirect_nonlocal_darwin64,
12075         *call_nonlocal_darwin64, *call_value_indirect_nonlocal_darwin64,
12076         *call_value_nonlocal_darwin64, reload_macho_picbase,
12077         reload_macho_picbase_si, reload_macho_picbase_di): Ditto.
12078         * config/rs6000/rs6000.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Ditto.
12079         * config/rs6000/rs6000.md (*save_gpregs_<mode>_r11,
12080         *save_gpregs_<mode>_r12, *save_gpregs_<mode>_r1,
12081         *save_fpregs_<mode>_r11, *save_fpregs_<mode>_r12,
12082         *save_fpregs_<mode>_r1): Ditto.
12083         * config/rs6000/spe.md (*save_gpregs_spe, *restore_gpregs_spe,
12084         *return_and_restore_gpregs_spe): Ditto.
12086 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
12088         * config/rs6000/rs6000.md
12089         (define_insn "*return_and_restore_fpregs_aix_<mode>_r11"): Delete
12090         the use of the link register.
12091         (define_insn "*return_and_restore_fpregs_aix_<mode>_r1"): Ditto.
12093 2016-09-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12094             Michael Meissner  <meissner@linux.vnet.ibm.com>
12096         PR target/72827
12097         * config/rs6000/rs6000.c (rs6000_legitimize_address): Avoid
12098         reg+reg addressing for TImode.
12099         (rs6000_legitimate_address_p): Only allow register indirect
12100         addressing for TImode, even without TARGET_QUAD_MEMORY.
12102 2016-09-01  Richard Biener  <rguenther@suse.de>
12104         PR middle-end/77436
12105         * tree-chrec.c (tree_fold_binomial): Use widest_int, properly
12106         check whether the result fits the desired result type.
12108 2016-09-01  Nathan Sidwell  <nathan@acm.org>
12110         * config/nvptx/nvptx.md (cbranch<mode>4): Op 2 can be const.
12112 2016-09-01  Wilco Dijkstra  <wdijkstr@arm.com>
12114         * config/aarch64/aarch64.c (aarch64_legitimize_address_displacement):
12115         New function.
12116         (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): Define.
12118 2016-09-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12120         * config/aarch64/aarch64.md (*ands<mode>_compare0): New pattern.
12121         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_NZmode
12122         for comparisons of integer ZERO_EXTEND against zero.
12124 2016-09-01  Eric Botcazou  <ebotcazou@adacore.com>
12126         * config/i386/i386.c (ix86_option_override_internal): Also disable the
12127         STV pass if -mstackrealign is enabled.
12129 2016-08-31  Ilya Verbin  <iverbin@gmail.com>
12131         * config/i386/driver-i386.c (host_detect_local_cpu): Fix detection of
12132         AVX512IFMA.
12134 2016-08-31  David Malcolm  <dmalcolm@redhat.com>
12136         * diagnostic-show-locus.c (class layout): Add field m_fixit_hints.
12137         (layout_range::intersects_line_p): New method.
12138         (test_range_contains_point_for_single_point): Rename to...
12139         (test_layout_range_for_single_point): ...this, and add testing
12140         for layout_range::intersects_line_p.
12141         (test_range_contains_point_for_single_line): Rename to...
12142         (test_layout_range_for_single_line): ...this,  and add testing
12143         for layout_range::intersects_line_p.
12144         (test_range_contains_point_for_multiple_lines): Rename to...
12145         (test_layout_range_for_multiple_lines): ...this,  and add testing
12146         for layout_range::intersects_line_p.
12147         (layout::layout): Populate m_fixit_hints.
12148         (layout::get_expanded_location): Handle the case of a line-span
12149         for a fix-it hint.
12150         (layout::validate_fixit_hint_p): New method.
12151         (get_line_span_for_fixit_hint): New function.
12152         (layout::calculate_line_spans): Add spans for fixit-hints.
12153         (layout::should_print_annotation_line_p): New method.
12154         (layout::print_any_fixits): Drop param "richloc", instead using
12155         validated fixits in m_fixit_hints.  Add "const" to hint pointers.
12156         (diagnostic_show_locus): Avoid printing blank annotation lines.
12157         (selftest::test_diagnostic_context::test_diagnostic_context):
12158         Initialize show_column and start_span.
12159         (selftest::test_diagnostic_context::start_span_cb): New static
12160         function.
12161         (selftest::test_diagnostic_show_locus_fixit_lines): New function.
12162         (selftest::diagnostic_show_locus_c_tests): Update for function
12163         renamings.  Call test_diagnostic_show_locus_fixit_lines.
12165 2016-08-31  Marc Glisse  <marc.glisse@inria.fr>
12167         PR tree-optimization/73714
12168         * match.pd (a * (1 << b)): Revert change from 2016-05-23.
12170 2016-08-31  David Malcolm  <dmalcolm@redhat.com>
12172         * selftest.c: Move "namespace selftest {" to top of file,
12173         removing explicit "selftest::" qualifiers throughout.
12175 2016-08-31  Marc Glisse  <marc.glisse@inria.fr>
12177         * config/i386/avx512fintrin.h (__m512_u, __m512i_u, __m512d_u):
12178         New types.
12179         (_mm512_loadu_pd, _mm512_storeu_pd, _mm512_loadu_ps,
12180         _mm512_storeu_ps, _mm512_loadu_si512, _mm512_storeu_si512):
12181         Replace builtin with vector extension.
12182         * config/i386/avxintrin.h (__m256_u, __m256i_u, __m256d_u):
12183         New types.
12184         (_mm256_loadu_pd, _mm256_storeu_pd, _mm256_loadu_ps,
12185         _mm256_storeu_ps, _mm256_loadu_si256, _mm256_storeu_si256):
12186         Replace builtin with vector extension.
12187         * config/i386/emmintrin.h (__m128i_u, __m128d_u): New types.
12188         (_mm_loadu_pd, _mm_storeu_pd, _mm_loadu_si128, _mm_storeu_si128):
12189         Replace builtin with vector extension.
12190         * config/i386/xmmintrin.h (__m128_u): New type.
12191         (_mm_loadu_ps, _mm_storeu_ps): Replace builtin with vector extension.
12192         (_mm_load_ps, _mm_store_ps): Simplify.
12194 2016-08-31  Eric Botcazou  <ebotcazou@adacore.com>
12196         * config/arm/arm.c (thumb1_size_rtx_costs) <SET>: Add missing guard.
12198 2016-08-30  David Malcolm  <dmalcolm@redhat.com>
12200         * diagnostic-show-locus.c (colorizer::begin_state): Support more
12201         than 3 ranges per diagnostic by alternating between color 1 and
12202         color 2.
12203         (layout::layout): Replace use of rich_location::MAX_RANGES
12204         with richloc->get_num_locations ().
12205         (layout::calculate_line_spans): Replace use of
12206         rich_location::MAX_RANGES with m_layout_ranges.length ().
12207         (layout::print_annotation_line): Handle arbitrary numbers of
12208         ranges in caret-printing by defaulting to '^'.
12209         (selftest::test_one_liner_many_fixits): New function.
12210         (test_diagnostic_show_locus_one_liner): Call it.
12211         * diagnostic.c (diagnostic_initialize): Update for renaming
12212         of rich_location::MAX_RANGES to
12213         rich_location::STATICALLY_ALLOCATED_RANGES.
12214         * diagnostic.h (struct diagnostic_context): Likewise.
12216 2016-08-30  David Malcolm  <dmalcolm@redhat.com>
12218         * selftest.c (selftest::named_temp_file::named_temp_file): New
12219         ctor.
12220         (selftest::temp_source_file::~temp_source_file): Move to...
12221         (selftest::named_temp_file::~named_temp_file): ...here.
12222         (selftest::test_named_temp_file): New function.
12223         (selftest::selftest_c_tests): Call test_named_temp_file.
12224         * selftest.h (class named_temp_file): New class.
12225         (class temp_source_file): Convert to a subclass of named_temp_file.
12227 2016-08-30  Segher Boessenkool  <segher@kernel.crashing.org>
12229         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Do not emit
12230         USEs of LR_REGNO in returns and sibcalls.
12231         (rs6000_output_mi_thunk): Similar.
12232         (rs6000_sibcall_aix): Similar.
12233         * config/rs6000/rs6000.md (sibcall, sibcall_value, sibcall_local32,
12234         sibcall_local64, sibcall_value_local32, sibcall_value_local64,
12235         sibcall_nonlocal_sysv<mode>, sibcall_value_nonlocal_sysv<mode>):
12236         Remove the USE of LR_REGNO from the patterns as well.  Delete an
12237         obsolete comment.
12238         (return_internal_<mode>): Delete.
12240 2016-08-30  Tamar Christina  <tamar.christina@arm.com>
12242         * config/aarch64/aarch64-simd.md
12243         (aarch64_ld2<mode>_dreg_le): New.
12244         (aarch64_ld2<mode>_dreg_be): New.
12245         (aarch64_ld2<mode>_dreg): Removed.
12246         (aarch64_ld3<mode>_dreg_le): New.
12247         (aarch64_ld3<mode>_dreg_be): New.
12248         (aarch64_ld3<mode>_dreg): Removed.
12249         (aarch64_ld4<mode>_dreg_le): New.
12250         (aarch64_ld4<mode>_dreg_be): New.
12251         (aarch64_ld4<mode>_dreg): Removed.
12252         (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Wrapper around _le, _be.
12254 2016-08-30  David Malcolm  <dmalcolm@redhat.com>
12256         * diagnostic-show-locus.c (test_one_liner_fixit_insert): Remove
12257         redundant location param.
12258         (test_one_liner_fixit_remove): Likewise.
12259         (test_one_liner_fixit_replace): Likewise.
12260         (test_one_liner_fixit_replace_equal_secondary_range): Likewise.
12261         * gcc-rich-location.c
12262         (gcc_rich_location::add_fixit_misspelled_id): Eliminate call to
12263         get_range_from_loc.  Drop overload taking a const char *.
12264         * gcc-rich-location.h
12265         (gcc_rich_location::add_fixit_misspelled_id): Drop overload taking
12266         a const char *.
12268 2016-08-30  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12270         * config/linux.c (linux_libc_has_function): Return true on musl.
12272 2016-08-30  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12274         * config.gcc (*-*-*musl*): Disable gnu-indirect-function.
12276 2016-08-30  Eric Botcazou  <ebotcazou@adacore.com>
12278         * postreload-gcse.c (bb_has_well_behaved_predecessors): Tweak criterion
12279         used for abnormal egdes.
12281 2016-08-30  Jakub Jelinek  <jakub@redhat.com>
12283         PR tree-optimization/72866
12284         * tree-vect-patterns.c (search_type_for_mask): Turn into
12285         a small wrapper, move all code to ...
12286         (search_type_for_mask_1): ... this new function.  Add caching
12287         and adjust recursive calls.
12289         PR debug/77363
12290         * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
12291         instead of lookup_type_die (type_main_variant (type)) even for array
12292         types.
12294         PR middle-end/77377
12295         * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
12296         constant pool reference return x instead of c.
12298 2016-08-29  Segher Boessenkool  <segher@kernel.crashing.org>
12300         * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): Do not
12301         include MQ.
12303 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
12305         * input.c
12306         (selftest::test_make_location_nonpure_range_endpoints): Fix
12307         header comment.
12309 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
12311         * diagnostic-show-locus.c
12312         (selftest::test_one_liner_fixit_validation_adhoc_locations): New
12313         function.
12314         (selftest::test_diagnostic_show_locus_one_liner): Call it.
12315         * input.c (get_pure_location): Move to libcpp/line-map.c.
12316         * input.h (get_pure_location): Convert decl to an inline function
12317         calling implementation in libcpp.
12319 2016-08-29  Uros Bizjak  <ubizjak@gmail.com>
12321         PR target/77403
12322         * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
12323         template for intel asm dialect.
12324         (vec_set_hi_<mode><mask_name>): Ditto.
12326 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
12328         * selftest.h (selftest::fail): Add ATTRIBUTE_NORETURN.
12329         (selftest::fail_formatted): Likewise.
12331 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
12333         * input.c (make_location): Call get_start and get_finish
12334         on the endpoints to avoid storing packed ranges or ad-hoc
12335         ranges in them.
12336         (selftest::test_make_location_nonpure_range_endpoints): New function.
12337         (selftest::input_c_tests): Call it.
12338         * input.h (get_start): New inline function.
12340 2016-08-29  Tom de Vries  <tom@codesourcery.com>
12342         PR c/77398
12343         * gimplify.c (gimplify_va_arg_expr): Replace first argument type error
12344         with assert.
12346 2016-08-29  Eric Botcazou  <ebotcazou@adacore.com>
12348         * Makefile.in (gcov-iov.h): Add dummy recipe.
12350 2016-08-29  Nathan Sidwell  <nathan@acm.org>
12352         * config/nvptx/nvptx.c: #include tree-vrp.h.
12354 2016-08-28  Eric Botcazou  <ebotcazou@adacore.com>
12356         PR target/77324
12357         * config/sparc/sparc.c (sparc_legitimate_address_p): Accept special
12358         HIGH+LO construct during reload.
12360 2016-08-28  Tom de Vries  <tom@codesourcery.com>
12362         PR lto/70955
12363         * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
12364         'sysv_abi va_list' attribute.
12365         (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
12366         (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
12367         attributes.
12369 2016-08-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12371         * emit-rtl.h (struct rtl_data): Make stack_slot_list a vector.
12372         * emit-rtl.c (unshare_all_rtl_1): Adjust.
12373         (unshare_all_rtl_again): Likewise.
12374         * function.c (assign_stack_local_1): Likewise.
12375         (assign_stack_temp_for_type): Likewise.
12377 2016-08-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12379         * cfgbuild.c (make_edges): Adjust.
12380         * cfgrtl.c (can_delete_label_p): Likewise.
12381         * dwarf2cfi.c (create_trace_edges): Likewise.
12382         * except.c (sjlj_emit_dispatch_table): Likewise.
12383         * function.h (struct expr_status): make x_forced_labels a vector.
12384         * jump.c (rebuild_jump_labels_1): Adjust.
12385         * reload1.c (set_initial_label_offsets): Likewise.
12386         * stmt.c (force_label_rtx): Likewise.
12387         (expand_label): Likewise.
12389 2016-08-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12391         * haifa-sched.c (fix_recovery_deps): Make ready_list a vector.
12393 2016-08-27  Patrick Palka  <ppalka@gcc.gnu.org>
12395         PR tree-optimization/71077
12396         PR tree-optimization/68542
12397         * fold-const.c (fold_relational_const): Fix folding of
12398         VECTOR_CST comparisons that have a scalar boolean result type.
12399         (selftest::test_vector_folding): New static function.
12400         (selftest::fold_const_c_tests): Call it.
12402 2016-08-27  Gerald Pfeifer  <gerald@pfeifer.com>
12404         * doc/extend.texi (SPU Built-in Functions): Remove stale
12405         references to material formerly at IBM and Sony.
12407 2016-08-26  David Edelsohn  <dje.gcc@gmail.com>
12409         PR target/77349
12410         * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
12412 2016-08-26  David Malcolm  <dmalcolm@redhat.com>
12414         * diagnostic-show-locus.c
12415         (selftest::test_fixit_consolidation): New function.
12416         (selftest::diagnostic_show_locus_c_tests): Call it.
12417         * gcc-rich-location.h (gcc_rich_location): Eliminate unused
12418         constructor based on source_range.
12420 2016-08-26  David Malcolm  <dmalcolm@redhat.com>
12422         * diagnostic-color.c (color_dict): Add "fixit-insert" and
12423         "fixit-delete".
12424         (parse_gcc_colors): Update description of default GCC_COLORS.
12425         * diagnostic-show-locus.c (colorizer::set_fixit_hint): Delete.
12426         (colorizer::set_fixit_insert): New method.
12427         (colorizer::set_fixit_delete): New method.
12428         (colorizer::get_color_by_name): New method.
12429         (colorizer::STATE_FIXIT_INSERT): New constant.
12430         (colorizer::STATE_FIXIT_DELETE): New constant.
12431         (class colorizer): Drop "_cs" suffix from fields.  Delete "_ce"
12432         fields in favor of new field "m_stop_color".  Add fields
12433         "m_fixit_insert" and "m_fixit_delete".
12434         (colorizer::colorizer): Update for above changes.  Replace
12435         colorize_start calls with calls to get_color_by_name.
12436         (colorizer::begin_state): Handle STATE_FIXIT_INSERT and
12437         STATE_FIXIT_DELETE.  Update for field renamings.
12438         (colorizer::finish_state): Simplify by using m_stop_color,
12439         rather than multiple identical "*_ce" fields.
12440         (colorizer::get_color_by_name): New method.
12441         (layout::print_any_fixits): Print insertions and replacements
12442         using the "fixit-insert" color, and deletions using the
12443         "fixit-delete" color.
12444         * doc/invoke.texi (-fdiagnostics-color): Update description of
12445         default GCC_COLORS, and of the supported capabilities.
12447 2016-08-26  Max Filippov  <jcmvbkbc@gmail.com>
12449         * config/xtensa/xtensa.c (xtensa_expand_prologue): Update
12450         current_function_static_stack_size variable with the static
12451         stack frame size of the current function when
12452         flag_stack_usage_info is enabled.
12454 2016-08-26  Nathan Sidwell  <nathan@acm.org>
12456         * ipa-inline-analysis.c (inline_write_summary): Remove unnecessary
12457         assignment inside if condition.
12459 2016-08-26  Richard Biener  <rguenther@suse.de>
12461         PR tree-optimization/69047
12462         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle general bitfield
12463         extracts similar to what FRE does.
12464         (non_rewritable_mem_ref_base): Likewise.
12466 2016-08-26  Joseph Myers  <joseph@codesourcery.com>
12468         * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p)
12469         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
12470         * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
12471         * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
12472         * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE):
12473         Likewise.
12474         * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
12475         * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
12476         * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
12477         * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Likewise.
12478         * config/i386/vxworks.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
12480 2016-08-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12482         PR target/70473
12483         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_muld): Reduce
12484         reservation duration to 15 cycles.
12485         (cortex_a8_vfp_macs): Likewise.
12486         (cortex_a8_vfp_macd): Likewise.
12487         (cortex_a8_vfp_divs): Likewise.
12488         (cortex_a8_vfp_divd): Likewise.
12490 2016-08-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12492         * config/arm/arm.c (arm_sets_movw_movt_fusible_p): New function.
12493         (aarch_macro_fusion_pair_p): Use above to avoid early return.
12495 2016-08-26  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
12496             Martin Jambhor  <mjambor@suse.cz>
12498         * common.opt: New option -fipa-bit-cp.
12499         * doc/invoke.texi: Document -fipa-bit-cp.
12500         * opts.c (default_options_table): Add entry for -fipa-bit-cp.
12501         (enable_fdo_optimizations): Check for flag_ipa_bit_cp.
12502         * tree-ssa-ccp.h: New header file.
12503         * tree-ssa-ccp.c: Include tree-ssa-ccp.h
12504         (bit_value_binop_1): Change to bit_value_binop_1 and export it.
12505         Replace all occurences of tree parameter by two new params: signop, int.
12506         (bit_value_unop_1): Change to bit_value_unop and export it.
12507         Replace all occurences of tree parameter by two new params: signop,
12508         int.
12509         (bit_value_binop): Change call from bit_value_binop_1 to
12510         bit_value_binop.
12511         (bit_value_assume_aligned): Likewise.
12512         (bit_value_unop): Change call from bit_value_unop_1 to bit_value_unop.
12513         (do_ssa_ccp): Pass nonzero_p || flag_ipa_cp_bit instead of nonzero_p
12514         to ccp_finalize.
12515         (ccp_finalize): Skip processing if val->mask == 0.
12516         * ipa-cp.c: Include tree-ssa-ccp.h
12517         (ipcp_bits_lattice): New class.
12518         (ipcp_param_lattice (bits_lattice): New member.
12519         (print_all_lattices): Call ipcp_bits_lattice::print.
12520         (set_all_contains_variable): Call ipcp_bits_lattice::set_to_bottom.
12521         (initialize_node_lattices): Likewise.
12522         (propagate_bits_accross_jump_function): New function.
12523         (propagate_constants_accross_call): Call
12524         propagate_bits_accross_jump_function.
12525         (ipcp_propagate_stage): Store parameter types when in_lto_p is true.
12526         (ipcp_store_bits_results): New function.
12527         (ipcp_driver): Call ipcp_store_bits_results.
12528         * ipa-prop.h (ipa_bits): New struct.
12529         (ipa_jump_func): Add new member bits of type ipa_bits.
12530         (ipa_param_descriptor): Change decl to decl_or_type.
12531         (ipa_get_param): Change decl to decl_or_type and assert on
12532         PARM_DECL.
12533         (ipa_get_type): New function.
12534         (ipcp_transformation_summary): New member bits.
12535         * ipa-prop.c (ipa_get_param_decl_index_1): s/decl/decl_or_type.
12536         (ipa_populate_param_decls): Likewise.
12537         (ipa_dump_param): Likewise.
12538         (ipa_print_node_jump_functions_for_edge): Pretty-print ipa_bits jump
12539         function.
12540         (ipa_set_jf_unknown): Set ipa_bits::known to false.
12541         (ipa_compute_jump_functions_for_edge): Compute jump function for bits
12542         propagation.
12543         (ipa_node_params_t::duplicate): Copy src->bits into dst->bits.
12544         (ipa_write_jump_function): Add streaming for ipa_bits.
12545         (ipa_read_jump_function): Add support for reading streamed ipa_bits.
12546         (write_ipcp_transformation_info): Add streaming for ipa_bits
12547         summary for ltrans.
12548         (read_ipcp_transfomration_info): Add support for reading streamed
12549         ipa_bits.
12550         (ipcp_update_bits): New function.
12551         (ipcp_transform_function): Call ipcp_update_bits.
12553 2016-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12555         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Update.
12556         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Update.
12558 2016-08-25  David Edelsohn  <dje.gcc@gmail.com>
12560         * multiple_target.c (pass_data_dispatcher_calls): Fix typo.
12562 2016-08-25  Richard Biener  <rguenther@suse.de>
12564         * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
12565         Only add locations in late dwarf.
12566         (gen_scheduled_generic_parms_dies): Do not set early dwarf here.
12567         (dwarf2out_early_finish): But do it here.
12569 2016-08-24  Michael Collison  <michael.collison@linaro.org>
12570             Michael Collison  <michael.collison@arm.com>
12572         * config/arm/arm-modes.def: Add new condition code mode CC_V
12573         to represent the overflow bit.
12574         * config/arm/arm.c (maybe_get_arm_condition_code):
12575         Add support for CC_Vmode.
12576         (arm_gen_unlikely_cbranch): New function to generate common
12577         rtl conditional branches for overflow patterns.
12578         * config/arm/arm-protos.h: Add prototype for
12579         arm_gen_unlikely_cbranch.
12580         * config/arm/arm.md (addv<mode>4, add<mode>3_compareV,
12581         addsi3_compareV_upper): New patterns to support signed
12582         builtin overflow add operations.
12583         (uaddv<mode>4, add<mode>3_compareC, addsi3_compareV_upper):
12584         New patterns to support unsigned builtin add overflow operations.
12585         (subv<mode>4, sub<mode>3_compare1): New patterns to support signed
12586         builtin overflow subtract operations,
12587         (usubv<mode>4): New patterns to support unsigned builtin subtract
12588         overflow operations.
12589         (negvsi3, negvdi3, negdi2_compare, negsi2_carryin_compare): New patterns
12590         to support builtin overflow negate operations.
12592 2016-08-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12594         Revert
12595         2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
12597         * explow.c (get_dynamic_stack_size): Take known alignment of stack
12598         pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
12599         needed.
12601 2016-08-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12603         * doc/fragments.texi (MULTILIB_REUSE): Mention that only options in
12604         MULTILIB_OPTIONS should be used.  Small wording fixes.
12605         * genmultilib: Memorize set of all option combinations in
12606         combination_space.  Detect if RHS of MULTILIB_REUSE uses an option not
12607         found in MULTILIB_OPTIONS by checking if option set is listed in
12608         combination_space.  Output new and existing error message to stderr.
12610 2016-08-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12612         * config/arm/t-aprofile (MULTILIB_MATCHES): Add mapping for
12613         -mcpu=cortex-a7, -mfpu=neon-fp16, -mfpu=fpv5-d16 and -mfpu=fp-armv8.
12614         Fix typo in -mfpu=vfpv3-d16-fp16 mapping.
12615         (MULTILIB_REUSE): Remove reuse rules for option set including
12616         -mfpu=fp-armv8 and -mfpu=vfpv4
12618 2016-08-24  Sebastian Huber  <sebastian.huber@embedded-brains.de>
12620         * config/arm/t-rtems: Add vfp multilib.
12622 2016-08-23  Ian Lance Taylor  <iant@golang.org>
12624         * config/s390/s390.c (s390_asm_file_start): Call
12625         default_file_start.
12627 2016-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
12629         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Set
12630         initialization of all 0's to the 0 constant, instead of directly
12631         generating XOR.  Add support for V4SImode vector initialization on
12632         64-bit systems with direct move, and rework the ISA 3.0 V4SImode
12633         initialization.  Change variables used in V4SFmode vector
12634         intialization.  For V4SFmode vector splat on ISA 3.0, make sure
12635         any memory addresses are in index form.  Add support for using
12636         VSPLTH/VSPLTB to initialize vector short and vector char vectors
12637         with all of the same element.
12638         (regno_or_subregno): New helper function to return a register
12639         number for either REG or SUBREG.
12640         (rs6000_adjust_vec_address): Do not generate ADDI <reg>,R0,<num>.
12641         Use regno_or_subregno where possible.
12642         (rs6000_split_v4si_init_di_reg): New helper function to build up a
12643         DImode value from two SImode values in order to generate V4SImode
12644         vector initialization on 64-bit systems with direct move.
12645         (rs6000_split_v4si_init): Split up the insns for a V4SImode vector
12646         initialization.
12647         (rtx_is_swappable_p): V4SImode vector initialization insn is not
12648         swappable.
12649         * config/rs6000/rs6000-protos.h (rs6000_split_v4si_init): Add
12650         declaration.
12651         * config/rs6000/vsx.md (VSX_SPLAT_I): New mode iterators and
12652         attributes to initialize V8HImode and V16QImode vectors with the
12653         same element.
12654         (VSX_SPLAT_COUNT): Likewise.
12655         (VSX_SPLAT_SUFFIX): Likewise.
12656         (UNSPEC_VSX_VEC_INIT): New unspec.
12657         (vsx_concat_v2sf): Eliminate using 'preferred' register classes.
12658         Allow SFmode values to come from Altivec registers.
12659         (vsx_init_v4si): New insn/split for V4SImode vector initialization
12660         on 64-bit systems with direct move.
12661         (vsx_splat_<mode>, VSX_W iterator): Rework V4SImode and V4SFmode
12662         vector initializations, to allow V4SImode vector initializations
12663         on 64-bit systems with direct move.
12664         (vsx_splat_v4si): Likewise.
12665         (vsx_splat_v4si_di): Likewise.
12666         (vsx_splat_v4sf): Likewise.
12667         (vsx_splat_v4sf_internal): Likewise.
12668         (vsx_xxspltw_<mode>, VSX_W iterator): Eliminate using 'preferred'
12669         register classes.
12670         (vsx_xxspltw_<mode>_direct, VSX_W iterator): Likewise.
12671         (vsx_vsplt<VSX_SPLAT_SUFFIX>_di): New insns to support
12672         initializing V8HImode and V16QImode vectors with the same
12673         element.
12674         * config/rs6000/rs6000.h (TARGET_DIRECT_MOVE_64BIT): Disallow
12675         optimization if -maltivec=be.
12677 2016-08-23  Christophe Lyon  <christophe.lyon@linaro.org>
12679         * config/arm/arm.md (arm_movqi_insn): Swap predicable_short_it
12680         attribute for alternatives 3 and 4.
12682 2016-08-23  David Malcolm  <dmalcolm@redhat.com>
12684         * selftest.c (selftest::assert_str_contains): New function.
12685         (selftest::test_assertions): Verify ASSERT_STR_CONTAINS.
12686         * selftest.h (selftest::assert_str_contains): New decl.
12687         (ASSERT_STR_CONTAINS): New macro.
12689 2016-08-23  Richard Biener  <rguenther@suse.de>
12691         PR tree-optimization/77286
12692         * tree-vect-loop.c (vect_analyze_loop_form_1): Do not modify
12693         the CFG here.
12694         (vect_transform_loop): Split exit edges of loop and scalar
12695         loop if required and at the appropriate time.
12697 2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
12699         * explow.c (get_dynamic_stack_size): Take known alignment of stack
12700         pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
12701         needed.
12702         Correct a typo in a comment.
12704 2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
12706         * config/s390/s390.md ("*andc_split"): New splitter for and with
12707         complement.
12709 2016-08-23  Richard Biener  <rguenther@suse.de>
12711         PR tree-optimization/27336
12712         * tree-vrp.c (infer_value_range): Handle stmts that can throw
12713         by looking for a non-EH edge.
12714         (process_assert_insertions_for): Likewise.
12716 2016-08-23  Richard Biener  <rguenther@suse.de>
12718         PR middle-end/77305
12719         * statistics.c (statistics_counter_event): Robustify against
12720         NULL current_pass.
12722 2016-08-23  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
12724         * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
12725         for targets amdfam10 and barcelona.
12727 2016-08-22  Uros Bizjak  <ubizjak@gmail.com>
12729         * config/i386/i386.md (*zero_extendsidi2): Add (*r,*k) alternative.
12730         (zero_extend<mode>di2): Ditto.
12731         (*zero_extend<mode>si2): Ditto.
12732         (*zero_extendqihi2): Ditto.
12734 2016-08-22  Joseph Myers  <joseph@codesourcery.com>
12736         PR middle-end/77269
12737         * builtins.c (fold_builtin_classify): Use builtin_decl_explicit
12738         (BUILT_IN_SIGNBIT) to expand __builtin_isinf_sign.
12740 2016-08-22  Patrick Palka  <ppalka@gcc.gnu.org>
12742         * print-tree.c (print_node) [VECTOR_CST]: Coalesce the output of
12743         identical consecutive elements.
12744         [SSA_NAME]: Print the name's def stmt on its own line.  When printing
12745         the node's def stmt, avoid printing an unwanted trailing newline by
12746         replacing the call to print_gimple_stmt() with its inlined body and
12747         adjusting it to not set pp_needs_newline and to call pp_flush()
12748         instead of pp_newline_and_flush().
12750 2016-08-22  Joseph Myers  <joseph@codesourcery.com>
12752         * tree.h (CASE_FLT_FN_FLOATN_NX, float16_type_node)
12753         (float32_type_node, float64_type_node, float32x_type_node)
12754         (float128x_type_node): New macros.
12755         * builtin-types.def (BT_FLOAT16, BT_FLOAT32, BT_FLOAT64)
12756         (BT_FLOAT128, BT_FLOAT32X, BT_FLOAT64X, BT_FLOAT128X)
12757         (BT_FN_FLOAT16, BT_FN_FLOAT32, BT_FN_FLOAT64, BT_FN_FLOAT128)
12758         (BT_FN_FLOAT32X, BT_FN_FLOAT64X, BT_FN_FLOAT128X)
12759         (BT_FN_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32)
12760         (BT_FN_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128)
12761         (BT_FN_FLOAT32X_FLOAT32X, BT_FN_FLOAT64X_FLOAT64X)
12762         (BT_FN_FLOAT128X_FLOAT128X, BT_FN_FLOAT16_CONST_STRING)
12763         (BT_FN_FLOAT32_CONST_STRING, BT_FN_FLOAT64_CONST_STRING)
12764         (BT_FN_FLOAT128_CONST_STRING, BT_FN_FLOAT32X_CONST_STRING)
12765         (BT_FN_FLOAT64X_CONST_STRING, BT_FN_FLOAT128X_CONST_STRING)
12766         (BT_FN_FLOAT16_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32_FLOAT32)
12767         (BT_FN_FLOAT64_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128_FLOAT128)
12768         (BT_FN_FLOAT32X_FLOAT32X_FLOAT32X)
12769         (BT_FN_FLOAT64X_FLOAT64X_FLOAT64X)
12770         (BT_FN_FLOAT128X_FLOAT128X_FLOAT128X): New type definitions.
12771         * builtins.def (DEF_GCC_FLOATN_NX_BUILTINS): New macro.
12772         (copysign, fabs, huge_val, inf, nan, nans): Use it.
12773         * builtins.c (expand_builtin): Use CASE_FLT_FN_FLOATN_NX for fabs
12774         and copysign.
12775         (fold_builtin_0): Use CASE_FLT_FN_FLOATN_NX for inf and huge_val.
12776         (fold_builtin_1): Use CASE_FLT_FN_FLOATN_NX for fabs.
12777         * doc/extend.texi (Other Builtins): Document these built-in
12778         functions.
12779         * fold-const-call.c (fold_const_call): Use CASE_FLT_FN_FLOATN_NX
12780         for nan and nans.
12782 2016-08-22  Gerald Pfeifer  <gerald@pfeifer.com>
12784         * doc/install.texi (Binaries): www.opencsw.org now uses https.
12786 2016-08-22  Richard Biener  <rguenther@suse.de>
12788         * tree-ssa-forwprop.c (pass_forwprop::execute): Use RPO order.
12790 2016-08-21  Uros Bizjak  <ubizjak@gmail.com>
12792         PR target/77270
12793         * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
12794         TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
12795         non-SSE2 athlons only, otherwise prefer SSE prefetches.
12797 2016-08-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
12799         * tree-vrp.c (vrp_visit_assignment_or_call): Changed to Return VR.
12800         (vrp_visit_cond_stmt): Just sets TAKEN_EDGE_P.
12801         (vrp_visit_switch_stmt): Likewise.
12802         (extract_range_from_stmt): Factored out from vrp_visit_stmt.
12803         (extract_range_from_phi_node): Factored out from vrp_visit_phi_stmt.
12804         (vrp_visit_stmt): Use extract_range_from_stmt.
12805         (vrp_visit_phi_node): Use extract_range_from_phi_node.
12807 2016-08-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
12809         * Makefile.in: Add tree-vrp.h to GTFILES.
12810         * gengtype.c (open_base_files): Add tree-vrp.h.
12811         * asan.c: Add tree-vrp.h which now has the definition value_range_type.
12812         * builtins.c: Likewise.
12813         * fold-const.c: Likewise.
12814         * gimple-builder.c: Likewise.
12815         * gimple-laddress.c: Likewise.
12816         * hsa-gen.c: Likewise.
12817         * internal-fn.c: Likewise.
12818         * ssa.h: Likewise.
12819         * targhooks.c: Liewise,
12820         * tree-ssa-address.c: Likewise.
12821         * tree-ssanames.h (value_range_type: Move to tree-vrp.h.
12822         * tree-vrp.c (struct value_range): Move to tree-vrp.h
12823         * tree-vrp.h: New file.
12825 2016-08-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
12827         PR tree-optimization/61839
12828         * tree-vrp.c (two_valued_val_range_p): New.
12829         (simplify_stmt_using_ranges): Convert CST BINOP VAR where VAR is
12830         two-valued to VAR == VAL1 ? (CST BINOP VAL1) : (CST BINOP VAL2).
12831         Also Convert VAR BINOP CST where VAR is two-valued to
12832         VAR == VAL1 ? (VAL1 BINOP CST) : (VAL2 BINOP CST).
12834 2016-08-19  David Malcolm  <dmalcolm@redhat.com>
12836         * diagnostic-show-locus.c
12837         (layout::annotation_line_showed_range_p): New method.
12838         (layout::print_any_fixits): Remove case fixit_hint::REMOVE.
12839         Reimplement case fixit_hint::REPLACE to cover removals, and
12840         replacements where the range of the replacement isn't one
12841         of the ranges in the rich_location.
12842         (test_one_liner_fixit_replace): Likewise.
12843         (selftest::test_one_liner_fixit_replace_non_equal_range): New
12844         function.
12845         (selftest::test_one_liner_fixit_replace_equal_secondary_range):
12846         New function.
12847         (selftest::test_diagnostic_show_locus_one_liner): Call the new
12848         functions.
12849         * diagnostic.c (print_parseable_fixits): Remove case
12850         fixit_hint::REMOVE.
12852 2016-08-19  Uros Bizjak  <ubizjak@gmail.com>
12854         PR target/77270
12855         * config/i386/i386.c (ix86_option_override_internal): Remove
12856         PTA_PRFCHW from entries that also have PTA_3DNOW flag.
12857         Enable SSE prefetch also for TARGET_PREFETCHWT1.
12858         Do not try to enable TARGET_PRFCHW ISA flag here.
12859         * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
12860         Rewrite expander function body.
12861         (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
12863 2016-08-19  Joseph Myers  <joseph@codesourcery.com>
12865         PR c/32187
12866         * tree-core.h (TI_COMPLEX_FLOAT16_TYPE)
12867         (TI_COMPLEX_FLOATN_NX_TYPE_FIRST, TI_COMPLEX_FLOAT32_TYPE)
12868         (TI_COMPLEX_FLOAT64_TYPE, TI_COMPLEX_FLOAT128_TYPE)
12869         (TI_COMPLEX_FLOAT32X_TYPE, TI_COMPLEX_FLOAT64X_TYPE)
12870         (TI_COMPLEX_FLOAT128X_TYPE, TI_FLOAT16_TYPE, TI_FLOATN_TYPE_FIRST)
12871         (TI_FLOATN_NX_TYPE_FIRST, TI_FLOAT32_TYPE, TI_FLOAT64_TYPE)
12872         (TI_FLOAT128_TYPE, TI_FLOATN_TYPE_LAST, TI_FLOAT32X_TYPE)
12873         (TI_FLOATNX_TYPE_FIRST, TI_FLOAT64X_TYPE, TI_FLOAT128X_TYPE)
12874         (TI_FLOATNX_TYPE_LAST, TI_FLOATN_NX_TYPE_LAST): New enum
12875         tree_index values.
12876         (NUM_FLOATN_TYPES, NUM_FLOATNX_TYPES, NUM_FLOATN_NX_TYPES): New
12877         macros.
12878         (struct floatn_type_info): New structure type.
12879         (floatn_nx_types): New variable declaration.
12880         * tree.h (FLOATN_TYPE_NODE, FLOATN_NX_TYPE_NODE)
12881         (FLOATNX_TYPE_NODE, float128_type_node, float64x_type_node)
12882         (COMPLEX_FLOATN_NX_TYPE_NODE): New macros.
12883         * tree.c (floatn_nx_types): New variable.
12884         (build_common_tree_nodes): Initialize _FloatN, _FloatNx and
12885         corresponding complex types.
12886         * target.def (floatn_mode): New hook.
12887         * targhooks.c: Include "real.h".
12888         (default_floatn_mode): New function.
12889         * targhooks.h (default_floatn_mode): New prototype.
12890         * doc/extend.texi (Floating Types): Document _FloatN and _FloatNx
12891         types.
12892         * doc/sourcebuild.texi (float@var{n}, float@var{n}x): Document new
12893         effective-target and dg-add-options keywords.
12894         (float@var{n}_runtime, float@var{n}x_runtime, floatn_nx_runtime):
12895         Document new effective-target keywords.
12896         * doc/tm.texi.in (TARGET_FLOATN_MODE): New @hook.
12897         * doc/tm.texi: Regenerate.
12898         * ginclude/float.h (LDBL_DECIMAL_DIG): Define to
12899         __LDBL_DECIMAL_DIG__, not __DECIMAL_DIG__.
12900         [__STDC_WANT_IEC_60559_TYPES_EXT__]: Define macros from TS
12901         18661-3.
12902         * real.h (struct real_format): Add field ieee_bits.
12903         * real.c (ieee_single_format, mips_single_format)
12904         (motorola_single_format, spu_single_format, ieee_double_format)
12905         (mips_double_format, motorola_double_format)
12906         (ieee_extended_motorola_format, ieee_extended_intel_96_format)
12907         (ieee_extended_intel_128_format)
12908         (ieee_extended_intel_96_round_53_format, ibm_extended_format)
12909         (mips_extended_format, ieee_quad_format, mips_quad_format)
12910         (vax_f_format, vax_d_format, vax_g_format, decimal_single_format)
12911         (decimal_double_format, decimal_quad_format, ieee_half_format)
12912         (arm_half_format, real_internal_format: Initialize ieee_bits
12913         field.
12914         * config/i386/i386.c (ix86_init_builtin_types): Do not initialize
12915         float128_type_node.  Set float80_type_node to float64x_type_node
12916         if appropriate and long_double_type_node not appropriate.
12917         * config/ia64/ia64.c (ia64_init_builtins): Likewise.
12918         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format):
12919         Initialize ieee_bits field.
12920         * config/rs6000/rs6000.c (TARGET_FLOATN_MODE): New macro.
12921         (rs6000_init_builtins): Set ieee128_float_type_node to
12922         float128_type_node.
12923         (rs6000_floatn_mode): New function.
12925 2016-08-19  Jakub Jelinek  <jakub@redhat.com>
12927         * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
12928         _rdseed64_step): Uglify argument names and/or local variable names
12929         in inline functions.
12930         * config/i386/rtmintrin.h (_xabort): Likewise.
12931         * config/i386/avx512vlintrin.h (_mm256_ternarylogic_epi64,
12932         _mm256_mask_ternarylogic_epi64, _mm256_maskz_ternarylogic_epi64,
12933         _mm256_ternarylogic_epi32, _mm256_mask_ternarylogic_epi32,
12934         _mm256_maskz_ternarylogic_epi32, _mm_ternarylogic_epi64,
12935         _mm_mask_ternarylogic_epi64, _mm_maskz_ternarylogic_epi64,
12936         _mm_ternarylogic_epi32, _mm_mask_ternarylogic_epi32,
12937         _mm_maskz_ternarylogic_epi32): Likewise.
12938         * config/i386/lwpintrin.h (__llwpcb, __lwpval32, __lwpval64,
12939         __lwpins32, __lwpins64): Likewise.
12940         * config/i386/avx2intrin.h (_mm_i32gather_pd, _mm_mask_i32gather_pd,
12941         _mm256_i32gather_pd, _mm256_mask_i32gather_pd, _mm_i64gather_pd,
12942         _mm_mask_i64gather_pd, _mm256_i64gather_pd, _mm256_mask_i64gather_pd,
12943         _mm_i32gather_ps, _mm_mask_i32gather_ps, _mm256_i32gather_ps,
12944         _mm256_mask_i32gather_ps, _mm_i64gather_ps, _mm_mask_i64gather_ps,
12945         _mm256_i64gather_ps, _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
12946         _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
12947         _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
12948         _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
12949         _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
12950         _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
12951         _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
12952         _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
12953         _mm256_mask_i64gather_epi32): Likewise.
12954         * config/i386/pmm_malloc.h (_mm_malloc, _mm_free): Likewise.
12955         * config/i386/ia32intrin.h (__writeeflags): Likewise.
12956         * config/i386/pkuintrin.h (_wrpkru): Likewise.
12957         * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd,
12958         _mm512_mask_prefetch_i32gather_ps, _mm512_mask_prefetch_i64gather_pd,
12959         _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
12960         _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
12961         _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
12962         _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
12963         _mm512_mask_prefetch_i64scatter_ps): Likewise.
12964         * config/i386/gmm_malloc.h (_mm_malloc, _mm_free): Likewise.
12965         * config/i386/avx512fintrin.h (_mm512_ternarylogic_epi64,
12966         _mm512_mask_ternarylogic_epi64, _mm512_maskz_ternarylogic_epi64,
12967         _mm512_ternarylogic_epi32, _mm512_mask_ternarylogic_epi32,
12968         _mm512_maskz_ternarylogic_epi32, _mm512_i32gather_ps,
12969         _mm512_mask_i32gather_ps, _mm512_i32gather_pd, _mm512_i64gather_ps,
12970         _mm512_i64gather_pd, _mm512_i32gather_epi32, _mm512_i32gather_epi64,
12971         _mm512_i64gather_epi32, _mm512_i64gather_epi64): Likewise.
12973         * config/i386/fxsrintrin.h (_fxsave): Remove return keyword in inlines
12974         returning void.
12975         (_fxrstor, _fxsave64, _fxrstor64): Likewise.
12976         * config/i386/xsaveintrin.h (_xsave, _xrstor, _xsave64, _xrstor64):
12977         Likewise.
12978         * config/i386/xsaveoptintrin.h (_xsaveopt, _xsaveopt64): Likewise.
12979         * config/i386/pkuintrin.h (_wrpkru): Likewise.  Add space after
12980         function name.
12981         (_rdpkru_u32): Add space after function name.
12983         * config/i386/t-i386 (i386-c.o): Don't depend on
12984         i386-builtin-types.inc.
12985         (i386.o): Depend on i386-builtin-types.inc.
12987 2016-08-19  Matthew Wahab  <matthew.wahab@arm.com>
12989         PR target/77281
12990         * config/arm/arm.c (neon_valid_immediate): Delete declaration.
12991         Use const_vec_duplicate to check for duplicated elements.
12993 2016-08-19  Richard Biener  <rguenther@suse.de>
12995         PR tree-optimization/77290
12996         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12997         Fix flag_tree_parallelize_loops check.
12999 2016-08-19  Richard Biener  <rguenther@suse.de>
13001         * match.pd (x | 0 -> x): Add.
13003 2016-08-19  Richard Biener  <rguenther@suse.de>
13005         PR tree-optimization/77286
13006         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
13007         Deal with virtual PHIs being out-of-order.
13009 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
13011         * doc/invoke.texi (fverbose-asm): Note that source code lines
13012         are emitted, and provide an example.
13013         * final.c (asm_show_source): New function.
13014         (final_scan_insn): Call asm_show_source.
13016 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
13018         * diagnostic-show-locus.c (colorizer::colorizer): Replace diagnostic
13019         param with diagnostic_kind.
13020         (class colorizer): Similarly replace field m_diagnostic with
13021         m_diagnostic_kind.
13022         (colorizer::colorizer): Replace diagnostic
13023         param with diagnostic_kind.
13024         (colorizer::begin_state): Update for above field change.
13025         (layout::layout): Replace diagnostic param with rich_location *
13026         and diagnostic_kind.
13027         (diagnostic_show_locus): Replace diagnostic param with richloc
13028         and diagnostic_kind.
13029         (class selftest::test_diagnostic_context): New class.
13030         (selftest::test_diagnostic_show_locus_unknown_location): New
13031         function.
13032         (selftest::test_one_liner_simple_caret): New function.
13033         (selftest::test_one_liner_caret_and_range): New function.
13034         (selftest::test_one_liner_multiple_carets_and_ranges): New
13035         function.
13036         (selftest::test_one_liner_fixit_remove): New function.
13037         (selftest::test_one_liner_fixit_replace): New function.
13038         (selftest::test_diagnostic_show_locus_one_liner): New function.
13039         (selftest::diagnostic_show_locus_c_tests): Call the new test
13040         functions.
13041         * diagnostic.c (diagnostic_initialize): Initialize
13042         colorize_source_p, show_ruler_p and parseable_fixits_p.
13043         (default_diagnostic_finalizer): Update for change to
13044         diagnostic_show_locus.
13045         (diagnostic_append_note): Likewise.
13046         * diagnostic.h (diagnostic_show_locus): Replace
13047         const diagnostic_info * param with location * and diagnostic_t.
13049 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
13051         * input.c (saved_line_table): New global.
13052         (class selftest::temp_line_table): Rename to line_table_test and
13053         move declaration to selftest.h, and drop field m_old_line_table.
13054         (selftest::temp_line_table::temp_line_table): Rename ctor to...
13055         (selftest::line_table_test::line_table_test): ...this.  Add a
13056         default ctor.  Store current value of line_table within
13057         saved_line_table.
13058         (selftest::temp_line_table::~temp_line_table): Rename dtor to...
13059         (selftest::line_table_test::~line_table_test): ...this, and
13060         restore line_table from the saved_line_table, rather than
13061         m_old_line_table.
13062         (selftest::test_accessing_ordinary_linemaps): Update for above
13063         renaming.
13064         (selftest::test_lexer): Likewise.
13065         (struct selftest::lexer_test): Likewise.
13066         (selftest::lexer_test::lexer_test): Likewise.
13067         (selftest::input_c_tests): Move the looping over test cases from
13068         here into...
13069         (selftest::for_each_line_table_case): New function.
13070         * input.h (saved_line_table): New decl.
13071         * selftest.h (struct selftest::line_table_case): New forward decl.
13072         (class selftest::line_table_test): New class, moved here from
13073         selftest::temp_line_table in input.c, and renamed.
13074         (selftest::for_each_line_table_case): New decl.
13076 2015-08-18  H.J. Lu  <hongjiu.lu@intel.com>
13078         PR target/72839
13079         * config/i386/i386.c (lakemont_cost): Set MOVE_RATIO to 17.
13081 2016-08-18  Chung-Lin Tang  <cltang@codesourcery.com>
13083         PR middle-end/70895
13084         * gimplify.c (omp_add_variable): Adjust/add variable mapping on
13085         enclosing parallel construct for reduction variables on OpenACC loop
13086         directives.
13088 2016-08-18  Pierre-Marie de Rodat  <derodat@adacore.com>
13090         * dwarf2out.c (copy_dwarf_procedure): Remove obsolete comment.
13091         (new_dwarf_proc_die): Emit DW_TAG_dwarf_procedure DIEs even for
13092         -gdwarf-3.
13093         (function_to_dwarf_procedure): Update comment.
13095 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
13097         * input.c (diagnostics_file_cache_forcibly_evict_file): New
13098         function.
13099         * input.h (diagnostics_file_cache_forcibly_evict_file): New
13100         declaration.
13101         * selftest.c (selftest::temp_source_file::~temp_source_file):
13102         Evict m_filename from the diagnostic file cache.
13104 2016-08-18  Richard Biener  <rguenther@suse.de>
13106         * tree-pass.h (make_pass_materialize_all_clones): Declare.
13107         * ipa.c (pass_data_materialize_all_clones, pass_materialize_all_clones,
13108         make_pass_materialize_all_clones): New simple IPA pass encapsulating
13109         clone materialization.
13110         * passes.def (all_late_ipa_passes): Start with
13111         pass_materialize_all_clones.
13112         * cgraphunit.c (symbol_table::compile): Remove call to
13113         materialize_all_clones.
13114         * tree-into-ssa.c: Include statistics.h.
13115         (update_ssa): Count number of times we do incremental/rewrite
13116         SSA update.
13118 2016-08-18  Richard Biener  <rguenther@suse.de>
13120         PR tree-optimization/77282
13121         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
13122         When doing auto-parallelizing also prevent use of PHIs that
13123         carry dependences across loop backedges.
13125 2016-08-18  Tamar Christina  <tamar.christina@arm.com>
13126             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13128         * varasm.c (default_use_anchors_for_symbol_p): Reject too large decls.
13130 2016-08-18  Richard Biener  <rguenther@suse.de>
13132         * ssa-iterators.h (ssa_vuse_operand): New inline.
13133         * tree-if-conv.c (ifc_temp_var): Update virtual operand.
13134         (predicate_all_scalar_phis): Use remove_phi_node to remove
13135         phi nodes predicated.  Delay removing virtual PHIs.
13136         (predicate_mem_writes): Update virtual operands.
13137         (combine_blocks): Likewise.  Propagate out remaining virtual PHIs.
13138         (tree_if_conversion): Do not rewrite virtual SSA form.
13139         * tree-phinodes.c (release_phi_node): Make static.
13140         * tree-phinodes.h (release_phi_node): Remove.
13142 2016-08-18  Jakub Jelinek  <jakub@redhat.com>
13144         * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_*
13145         codes that appear in bdesc_* arrays, instead include i386-builtin.def
13146         twice to define those.
13147         (bdesc_comi, bdesc_pcmpestr, bdesc_pcmpistr, bdesc_special_args,
13148         bdesc_args, bdesc_round_args, bdesc_mpx, bdesc_mpx_const,
13149         bdesc_multi_arg): Define by including i386-builtin.def the third time.
13150         * config/i386/i386-builtin.def: New file.
13152 2016-08-17  David Malcolm  <dmalcolm@redhat.com>
13154         * input.c (get_source_range_for_char): Rename to...
13155         (selftest::get_source_range_for_char): ...this, and move within
13156         the #if CHECKING_P guard.
13157         (get_num_source_ranges_for_substring): Rename to...
13158         (selftest::get_num_source_ranges_for_substring): ...this, move
13159         within the #if CHECKING_P guard, and make static.
13160         (selftest::assert_num_substring_ranges): Initialize
13161         actual_num_ranges.
13163 2016-08-18  Alan Modra  <amodra@gmail.com>
13165         PR rtl-optimization/72771
13166         * reload.c (find_reloads): Don't assume that a subreg mem is OK
13167         when find_reloads_toplev returns address_reloaded==-1.
13168         (alternative_allows_const_pool_ref): Update comment.
13170 2015-08-17  Alan Hayward  <alan.hayward@arm.com>
13172         PR tree-optimization/71752
13173         * tree-vect-loop.c (vectorizable_reduction): Keep SLP operand ordering.
13174         * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
13176 2016-08-17  Jakub Jelinek  <jakub@redhat.com>
13178         * gimple-fold.c (gimple_fold_call): Use gimple_call_noreturn_p
13179         instead of testing ECF_NORETURN bit in gimple_call_flags.
13180         * tree-cfg.c (make_edges_bb, execute_fixup_cfg): Likewise.
13181         * predict.c (tree_bb_level_predictions): Likewise.
13182         * gimple-low.c (gimple_stmt_may_fallthru): Likewise.
13184         PR middle-end/77259
13185         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
13186         turning a call into __builtin_unreachable-like noreturn call, adjust
13187         gimple_call_set_fntype.
13188         * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
13189         gimple_call_fntype has void return type.
13191 2016-08-17  Chung-Lin Tang  <cltang@codesourcery.com>
13193         * omp-low.c (lower_oacc_reductions): Adjust variable lookup to use
13194         maybe_lookup_decl, to handle nested acc loop directives.
13196 2016-08-17  Richard Biener  <rguenther@suse.de>
13198         PR tree-optimization/76490
13199         * tree-vrp.c (update_value_range): Preserve overflow infinities
13200         when intersecting with ranges from get_range_info.
13201         (operand_less_p): Handle overflow infinities correctly.
13202         (value_range_constant_singleton): Use vrp_operand_equal_p
13203         to handle overflow max/min correctly.
13204         (vrp_valueize): Likewise.
13205         (union_ranges): Likewise.
13206         (intersect_ranges): Likewise.
13207         (vrp_visit_phi_node): Improve iteration limitation to only
13208         apply when we'll possibly re-visit the PHI via a changed argument
13209         on the backedge.
13211 2016-08-17  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13213         * config/arm/t-aprofile (MULTILIB_EXCEPTIONS): Rewrite into ...
13214         (MULTILIB_REQUIRED): This by specifying multilib needing to be built
13215         rather than those that should not be built.
13217 2016-08-17  Stanislaw Halik  <sthalik@misaki.pl>
13219         PR target/66488
13220         * config/i386/xm-mingw32.h (HOST_BITS_PER_PTR): Define if __x86_64__.
13222 2016-08-17  Richard Biener  <rguenther@suse.de>
13224         * tree-ssa.c: Include tree-cfg.h and tree-dfa.h.
13225         (verify_vssa): New function verifying virtual SSA form.
13226         (verify_ssa): Call it.
13227         * tree-ssa-loop-manip.c (slpeel_update_phi_nodes_for_guard2):
13228         Do not apply loop-closed SSA handling to virtuals.
13229         * ssa-iterators.h (op_iter_init): Handle GIMPLE_TRANSACTION.
13230         * tree-into-ssa.c (prepare_use_sites_for): Skip virtual SSA names
13231         when rewriting their symbol.
13232         (prepare_def_site_for): Likewise.
13233         * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Clear virtual
13234         operands of moved stmts.
13236 2016-08-17  Richard Biener  <rguenther@suse.de>
13238         PR tree-optimization/23855
13239         * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h.
13240         (tree_unswitch_outer_loop): Iterate find_loop_guard as long as we
13241         find guards to hoist.  Do not update SSA form but rewrite virtuals
13242         into loop closed SSA.
13243         (find_loop_guard): Adjust to skip already hoisted guards.  Do
13244         not mark virtuals for renaming or update SSA form.
13246 2016-08-17  Martin Liska  <mliska@suse.cz>
13248         * coverage.c (get_gcov_type): Replace GCOV_TYPE_SIZE with
13249         a LONG_LONG_TYPE_SIZE comparison.
13250         * gcov-io.h: Remove macro definitions.
13251         * tree-profile.c (gimple_gen_edge_profiler): Replace usage
13252         of GCOV_TYPE_ATOMIC_FETCH_ADD with a LONG_LONG_TYPE_SIZE
13253         comparison.
13255 2016-08-16  Jakub Jelinek  <jakub@redhat.com>
13257         * config/i386/i386.c (enum ix86_builtins): Reorder enumerators, so
13258         that builtins not mentioned in bdesc_* arrays come first, then
13259         the ones mentioned in bdesc_* arrays in the order they appear in
13260         the arrays in between IX86_BUILTIN__BDESC_*_FIRST and
13261         IX86_BUILTIN__BDESC_*_LAST enumerator.
13262         (bdesc_mpx): Fix up a comment typo.
13263         (bdesc_multi_arg): Remove __builtin_ia32_vpcomne[bwdq] and
13264         __builtin_ia32_vpcomneu[bwdq] builtins.
13265         (BDESC_VERIFY, BDESC_VERIFYS): Define.
13266         (ix86_init_mmx_sse_builtins, ix86_init_mpx_builtins): Verify
13267         enum ix86_builtins ordering.
13268         (ix86_expand_builtin): Use enum ix86_builtins ordering assumption
13269         for direct bdesc_* array member access instead of searching all the
13270         arrays until an fcode match is found.
13272 2016-08-16  Uros Bizjak  <ubizjak@gmail.com>
13274         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite define_insn
13275         pattern as define_insn_and_split.  Split insn before reload to
13276         ashl<mode>3_1.
13277         (*<shift_insn><mode>3_mask): Ditto.  Split insn before reload to
13278         <shift_insn><mode>3_1.
13279         (*<rotate_insn><mode>3_mask): Ditto.  Split insn before reload to
13280         <rotate_insn><mode>3_1.
13282 2016-08-16  David Malcolm  <dmalcolm@redhat.com>
13284         PR c/72857
13285         * input.c (get_source_range_for_substring): Rename to...
13286         (get_source_location_for_substring): ...this, adding param
13287         "caret_idx", and converting output param from source_range * to
13288         location_t *.
13289         (get_source_range_for_char): New function.
13290         (get_num_source_ranges_for_substring): Update comment to reflect
13291         above renaming.
13292         (assert_char_at_range): Update to use get_source_range_for_char
13293         rather than get_source_range_for_substring.
13294         (test_lexer_string_locations_concatenation_2): Likewise.
13295         * substring-locations.h (get_source_range_for_substring): Rename
13296         to...
13297         (get_source_location_for_substring): ...this, and adding param
13298         "caret_idx", and converting output param from source_range * to
13299         location_t *.
13301 2016-08-16  David Malcolm  <dmalcolm@redhat.com>
13303         * input.c (class selftest::temp_source_file): Move to
13304         selftest.h.
13305         (selftest::temp_source_file::temp_source_file): Move to
13306         selftest.c.
13307         (selftest::temp_source_file::~temp_source_file): Likewise.
13308         * selftest.c (selftest::temp_source_file::temp_source_file): Move
13309         here from input.c.
13310         (selftest::temp_source_file::~temp_source_file): Likewise.
13311         * selftest.h (class selftest::temp_source_file): Move here from
13312         input.c
13314 2016-08-16  Jakub Jelinek  <jakub@redhat.com>
13316         PR target/71910
13317         * tree-cfg.c (execute_fixup_cfg): Add node variable, use it.  Before
13318         inlining, add cgraph edge for the added __builtin_unreachable call.
13320         PR middle-end/67485
13321         * expmed.c (expand_mult_const): Change val_so_far's type to UHWI,
13322         only cast it to SHWI for the final comparison.
13324 2016-08-16  Martin Liska  <mliska@suse.cz>
13326         PR gcov-profile/36412
13327         * doc/gcov.texi: Document --hash-filenames(-x).
13328         * gcov.c (print_usage): Add the option.
13329         (process_args): Process the option, sort options alphabetically.
13330         (md5sum_to_hex): New function.
13331         (make_gcov_file_name): Do the md5sum and append it to a
13332         filename.
13334 2016-08-16  Bin Cheng  <bin.cheng@arm.com>
13336         PR tree-optimization/69848
13337         * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Invert NE
13338         and swtich operands to avoid additional NOT instruction.
13339         (vcond<v_cmp_mixed><mode>): Ditto.
13340         (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
13342 2016-08-16  Eric Botcazou  <ebotcazou@adacore.com>
13344         * doc/install.texi (*-*-solaris2*): Adjust latest change.
13346 2016-08-16  Richard Biener  <rguenther@suse.de>
13348         PR tree-optimization/76783
13349         * tree-ssa-propagate.c (ssa_prop_init): Use RPO order.  Clear
13350         BB visited flags at start.
13352 2016-08-16  Bin Cheng  <bin.cheng@arm.com>
13354         PR tree-optimization/72817
13355         PR tree-optimization/73450
13356         * tree-ssa-loop-niter.c (number_of_iterations_ne): Check
13357         multiple_of_p for adjusted IV.base.
13359 2016-08-15  Uros Bizjak  <ubizjak@gmail.com>
13361         PR target/72867
13362         * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
13363         Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
13364         for !flag_finite_math_only or flag_signed_zeros.
13365         (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
13366         *<code><mode>3_finite<mask_name><round_saeonly_name>.  Do not
13367         depend on flag_finite_math_only.
13368         (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
13369         New insn pattern.
13370         (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
13371         (*ieee_smin<mode>3): Ditto.
13372         (*ieee_smax<mode>3): Ditto.
13373         * config/i386/mmx.md (mmx_<code>v2sf3): Emit
13374         mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
13375         flag_signed_zeros.
13376         (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite.  Do not
13377         depend on flag_finite_math_only.
13378         (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
13379         (*mmx_<code>v2sf3): Remove.
13380         * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
13381         * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
13382         flag_signed_zeros instead of !flag_unsafe_math_optimizations.
13384 2016-08-15  Segher Boessenkool  <segher@kernel.crashing.org>
13386         PR rtl-optimization/73650
13387         * lra-constraints.c (simple_move_p): If the insn is multiple_sets
13388         it is not a simple move.
13390 2016-08-15  Martin Liska  <mliska@suse.cz>
13392         PR driver/72765
13393         * gcc.c (do_spec_1): Call save_string with the right size.
13394         (save_string): Do an assert about string we copy.
13396 2016-08-15  Richard Biener  <rguenther@suse.de>
13398         * ree.c (rest_of_handle_ree): Remove redundant timevar push/pop.
13399         * config/i386/i386.c (pass_data_insert_vzeroupper): Account to
13400         TV_MACH_DEP.
13401         (pass_data_stv): Likewise.
13403 2016-08-15  Richard Biener  <rguenther@suse.de>
13405         PR tree-optimization/73434
13406         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
13407         TBAA info on the base when forwarding a non-invariant address.
13409 2016-08-15  Jakub Jelinek  <jakub@redhat.com>
13411         * dwarf2out.c (struct checksum_attributes): Add
13412         at_string_length_bit_size and at_string_length_byte_size fields.
13413         (collect_checksum_attributes): Handle DW_AT_string_length_bit_size
13414         and DW_AT_string_length_byte_size.
13415         (die_checksum_ordered): Handle at_string_length_bit_size and
13416         at_string_length_byte_size.
13417         (gen_array_type_die): For dwarf_version >= 5 emit
13418         DW_AT_string_length_byte_size instead of DW_AT_byte_size.
13419         (adjust_string_types): For dwarf_version >= 5 remove
13420         DW_AT_string_length_byte_size instead of DW_AT_byte_size.
13421         (resolve_addr): Likewise.
13423         PR debug/71906
13424         * dwarf2out.c (string_types): New variable.
13425         (gen_array_type_die): Change early_dwarf handling of
13426         DW_AT_string_length, create DW_OP_call4 referencing the
13427         length var temporarily.  Handle parameters that are pointers
13428         to string length.
13429         (adjust_string_types): New function.
13430         (gen_subprogram_die): Temporarily set string_types to local var,
13431         call adjust_string_types if needed.
13432         (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
13433         New functions.
13434         (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
13436 2016-08-15  Eric Botcazou  <ebotcazou@adacore.com>
13438         * doc/install.texi (*-*-solaris2*): Fix version number and document
13439         requirement on GNU make for building libjava with the Solaris linker.
13441 2016-08-15  Martin Liska  <mliska@suse.cz>
13442             Jakub Jelinek  <jakub@redhat.com>
13444         PR tree-optimization/72824
13445         * tree-loop-distribution.c (const_with_all_bytes_same)
13446         <case VECTOR_CST>: Fix a typo.
13448 2016-08-14  Uros Bizjak  <ubizjak@gmail.com>
13450         PR target/76342
13451         * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
13452         Renamed from _mm512_undefined_si512.
13453         (_mm_undefined_si512): New definition.
13455 2016-08-13  Richard Biener  <rguenther@suse.de>
13457         * tree-ssa-forwprop.c (pass_forwprop::execute): Propagate
13458         into PHIs and update the lattice for its def.
13460 2016-08-12  Jakub Jelinek  <jakub@redhat.com>
13462         PR c/71512
13463         * ubsan.c (instrument_si_overflow): Pass true instead of false
13464         to gsi_replace.
13465         (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
13466         of bbs.  Return TODO_cleanup_cfg if any returned true.
13468 2016-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
13470         * config/rs6000/vsx.md (vsx_concat_<mode>): Add support for the
13471         ISA 3.0 MTVSRDD instruction.
13472         (vsx_splat_<mode>): Change cpu type of MTVSRDD instruction to
13473         vecperm.
13475 2016-08-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13477         PR tree-optimization/71083
13478         * tree-predcom.c (ref_at_iteration): Use a COMPONENT_REF for the
13479         bitfield access when possible.
13481 2016-08-12  Patrick Palka  <ppalka@gcc.gnu.org>
13483         PR middle-end/71654
13484         * match.pd ((T)A CMP (T)B -> A CMP B): Allow (T)A to be a
13485         sign-changing cast from a shorter unsigned type to a wider
13486         signed type.
13488 2016-08-12  Jakub Jelinek  <jakub@redhat.com>
13490         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm,
13491         vec_extract_hi_<mode>_mask, vec_extract_lo_<mode>_mask,
13492         vec_extract_hi_<mode>_mask): Use Yk constraint instead of k.
13494 2016-08-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13496         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
13497         Correct costs for vec_construct.
13499 2016-08-12  Bin Cheng  <bin.cheng@arm.com>
13501         PR tree-optimization/69848
13502         * tree-vectorizer.h (enum vect_def_type): New condition reduction
13503         type CONST_COND_REDUCTION.
13504         * tree-vect-loop.c (vectorizable_reduction): Support new condition
13505         reudction type CONST_COND_REDUCTION.
13507 2016-08-12  Richard Biener  <rguenther@suse.de>
13509         PR tree-optimization/57326
13510         * tree-ssa-pre.c (fully_constant_expression): Handle simplification
13511         returning an SSA name.
13512         (phi_translate_1): When fully_constant_expression returns a NAME
13513         make sure we have a leader for it.
13515 2016-08-12  Martin Liska  <mliska@suse.cz>
13516             Adam Fineman  <afineman@afineman.com>
13518         * gcov.c (process_file): Create .gcov file when .gcda
13519         file is missing.
13521 2016-08-12  Marek Polacek  <polacek@redhat.com>
13523         PR c/7652
13524         * alias.c (find_base_value): Adjust fall through comment.
13525         * cfgexpand.c (expand_debug_expr): Likewise.
13526         * combine.c (find_split_point): Likewise.
13527         (expand_compound_operation): Likewise.  Add FALLTHRU.
13528         (make_compound_operation): Adjust fall through comment.
13529         (canon_reg_for_combine): Add FALLTHRU.
13530         (force_to_mode): Adjust fall through comment.
13531         (simplify_shift_const_1): Likewise.
13532         (simplify_comparison): Likewise.
13533         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Add
13534         FALLTHRU.
13535         * config/aarch64/predicates.md: Likewise.
13536         * config/i386/i386.c (function_arg_advance_32): Likewise.
13537         (ix86_gimplify_va_arg): Likewise.
13538         (print_reg): Likewise.
13539         (ix86_print_operand): Likewise.
13540         (ix86_build_const_vector): Likewise.
13541         (ix86_expand_branch): Likewise.
13542         (ix86_sched_init_global): Adjust fall through comment.
13543         (ix86_expand_args_builtin): Add FALLTHRU.
13544         (ix86_expand_builtin): Likewise.
13545         (ix86_expand_vector_init_one_var): Likewise.
13546         * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
13547         (rs6000_adjust_cost): Likewise.
13548         (insn_must_be_first_in_group): Likewise.
13549         * config/rs6000/rs6000.md: Likewise.  Adjust fall through comment.
13550         * dbxout.c (dbxout_symbol): Adjust fall through comment.
13551         * df-scan.c (df_uses_record): Likewise.
13552         * dojump.c (do_jump): Add FALLTHRU.
13553         * dwarf2out.c (mem_loc_descriptor): Likewise.  Adjust fall through
13554         comment.
13555         (resolve_args_picking_1): Adjust fall through comment.
13556         (loc_list_from_tree_1): Likewise.
13557         * expmed.c (make_tree): Likewise.
13558         * expr.c (expand_expr_real_2): Add FALLTHRU.
13559         (expand_expr_real_1): Likewise.  Adjust fall through comment.
13560         * fold-const.c (const_binop): Adjust fall through comment.
13561         (fold_truth_not_expr): Likewise.
13562         (fold_cond_expr_with_comparison): Add FALLTHRU.
13563         (fold_binary_loc): Likewise.
13564         (contains_label_1): Adjust fall through comment.
13565         (multiple_of_p): Likewise.
13566         * gcov-tool.c (process_args): Add FALLTHRU.
13567         * genattrtab.c (check_attr_test): Likewise.
13568         (write_test_expr): Likewise.
13569         * genconfig.c (walk_insn_part): Likewise.
13570         * genpreds.c (validate_exp): Adjust fall through comment.
13571         (needs_variable): Likewise.
13572         * gensupport.c (get_alternatives_number): Add FALLTHRU.
13573         (subst_dup): Likewise.
13574         * gimple-pretty-print.c (dump_gimple_assign): Likewise.
13575         * gimplify.c (gimplify_addr_expr): Adjust fall through comment.
13576         (gimplify_scan_omp_clauses): Add FALLTHRU.
13577         (goa_stabilize_expr): Likewise.
13578         * graphite-isl-ast-to-gimple.c (substitute_ssa_name): Adjust fall
13579         through comment.
13580         * hsa-gen.c (get_address_from_value): Likewise.
13581         * ipa-icf.c (sem_function::hash_stmt): Likewise.
13582         * ira.c (ira_setup_alts): Add FALLTHRU.
13583         * lra-eliminations.c (lra_eliminate_regs_1): Adjust fall through
13584         comment.
13585         * lto-streamer-out.c (lto_output_tree_ref): Add FALLTHRU.
13586         * opts.c (common_handle_option): Likewise.
13587         * read-rtl.c (read_rtx_code): Likewise.
13588         * real.c (round_for_format): Likewise.
13589         * recog.c (asm_operand_ok): Likewise.
13590         * reginfo.c (reg_scan_mark_refs): Adjust fall through comment.
13591         * reload1.c (set_label_offsets): Likewise.
13592         (eliminate_regs_1): Likewise.
13593         (reload_reg_reaches_end_p): Likewise.
13594         * rtlanal.c (commutative_operand_precedence): Add FALLTHRU.
13595         (rtx_cost): Likewise.
13596         * sched-rgn.c (is_exception_free): Likewise.
13597         * simplify-rtx.c (simplify_rtx): Adjust fall through comment.
13598         * stor-layout.c (int_mode_for_mode): Likewise.
13599         * toplev.c (print_to_asm_out_file): Likewise.
13600         (print_to_stderr): Likewise.
13601         * tree-cfg.c (gimple_verify_flow_info): Likewise.
13602         * tree-chrec.c (chrec_fold_plus_1): Add FALLTHRU.
13603         (chrec_fold_multiply): Likewise.
13604         (evolution_function_is_invariant_rec_p): Likewise.
13605         (for_each_scev_op): Likewise.
13606         * tree-data-ref.c (siv_subscript_p): Likewise.
13607         (get_references_in_stmt): Likewise.
13608         * tree.c (find_placeholder_in_expr): Adjust fall through comment.
13609         (substitute_in_expr): Likewise.
13610         (type_cache_hasher::equal): Likewise.
13611         (walk_type_fields): Likewise.
13612         * var-tracking.c (adjust_mems): Add FALLTHRU.
13613         (set_dv_changed): Adjust fall through comment.
13614         * varasm.c (default_function_section): Add FALLTHRU.
13616 2016-08-12  Marek Polacek  <polacek@redhat.com>
13618         PR c/7652
13619         * tree-complex.c (expand_complex_division): Add missing break.
13621 2016-08-12  Richard Biener  <rguenther@suse.de>
13623         * passes.c (execute_todo): Do not push/pop TV_TODO.
13624         (execute_one_ipa_transform_pass): Move timevar push/pop TODO execution.
13625         (execute_one_pass): Likewise.
13626         * common.opt (ftime-report-details): New switch.
13627         * doc/invoke.texi (ftime-report-details): Document.
13628         * timevar.h (timer::print_row): Adjust signature.
13629         (timer::all_zero): New static helper.
13630         (timer::child_map_t): New typedef.
13631         (timer::time_var_def): Add children field.
13632         * timevar.c (timer::named_items::print): Adjust.
13633         (timer::~timer): Free timevar recorded children.
13634         (timer::pop_internal): When -ftime-report-details record
13635         time spent in sub-timevars.
13636         (timer::print_row): Adjust.
13637         (timer::print): Print sub-timevar stats, use all_zero.
13638         * timevar.def (TV_TODO): Remove.
13640 2016-08-12  Richard Biener  <rguenther@suse.de>
13642         PR tree-optimization/72851
13643         * tree-ssa-propagate.c: Include cfganal.h.  Rewrite block and stmt
13644         worklists to use bitmaps indexed in execution order.
13645         (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
13646         bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
13647         (cfg_blocks): Make a bitmap.
13648         (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
13649         New globals.
13650         (cfg_blocks_empty_p): Adjust.
13651         (cfg_blocks_add): Likewise.
13652         (cfg_blocks_get): Likewise.
13653         (add_ssa_edge): Likewise.
13654         (add_control_edge): Likewise.
13655         (simulate_stmt): Likewise.
13656         (process_ssa_edge_worklist): Likewise.
13657         (simulate_block): Likewise.
13658         (ssa_prop_init): Compute PRE order and stmt UIDs.
13659         (ssa_prop_fini): Adjust.
13660         (ssa_propagate): Adjust.
13662 2016-08-12  Richard Biener  <rguenther@suse.de>
13664         * tree-vrp.c (vrp_visit_phi_node): Allow a last iteration if
13665         the currently executable edges have fixed ranges.  Always
13666         go through update_value_range.
13668 2016-08-12  Alexandre Oliva  <aoliva@redhat.com>
13670         PR debug/63240
13671         * langhooks-def.h
13672         (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Const_tree-ify.
13673         (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Likewise.
13674         (LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Set default.
13675         (LANG_HOOKS_DECLS): Add it.
13676         * langhooks.h (struct lang_hooks_for_decls): Add
13677         function_decl_defaulted.  Const_tree-ify
13678         function_decl_explicit_p and function_decl_deleted_p.
13679         * dwarf2out.c (gen_subprogram_die): Add DW_AT_defaulted
13680         attribute.  Add DW_AT_deleted instead of DW_AT_GNU_deleted,
13681         also at strict DWARF v5.
13683         PR debug/55641
13684         * dwarf2out.c (decl_quals): Don't map TREE_READONLY to
13685         TYPE_QUAL_CONST in reference-typed decls.
13687         PR debug/49366
13688         * dwarf2out.c (loc_list_from_tree_1): Expand some CONSTRUCTORs
13689         in DW_OP_pieces, just enough to handle pointers to member
13690         functions.
13691         (gen_remaining_tmpl_value_param_die_attribute): Use a location
13692         expression on DWARFv5 if a constant value doesn't work.
13694 2016-08-11  David Malcolm  <dmalcolm@redhat.com>
13696         * selftest-run-tests.c (selftest::run_tests): Call selftest_c_tests.
13697         * selftest.c (selftest::test_assertions): New function.
13698         (selftest::selftest_c_tests): New function.
13699         * selftest.h (selftest::selftest_c_tests): New declaration.
13701 2016-08-11  Richard Biener  <rguenther@suse.de>
13702             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13704         PR rtl-optimization/72855
13705         * df-core.c (df_verify): Turn off DF_VERIFY_SCHEDULED at end.
13707 2016-08-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13709         PR target/72863
13710         * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
13711         (vsx_store_<mode>): Likewise.
13713 2015-08-11  H.J. Lu  <hongjiu.lu@intel.com>
13715         * config/i386/i386.c (timode_scalar_to_vector_candidate_p): Allow
13716         TImode CONST_WIDE_INT store.
13717         (timode_scalar_chain::convert_insn): Handle CONST_WIDE_INT store.
13719 2015-08-11  H.J. Lu  <hongjiu.lu@intel.com>
13721         * config/i386/i386.h (MOVE_MAX_PIECES): Use TImode in 64-bit
13722         mode if unaligned SSE load and store are optimal.
13724 2016-08-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13726         PR tree-optimization/71083
13727         * tree-predcom.c (ref_at_iteration): Correctly align the
13728         reference type.
13730 2016-08-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13732         * config/s390/s390-builtin-types.def: Add INT128 types.
13733         * config/s390/s390-builtins.def: Add INT128 variants for the add
13734         sub low-level builtins dealing with TImode.
13735         * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
13736         via subreg when expanding a builtin.
13737         * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
13738         UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
13739         Fix comment.
13740         * config/s390/vecintrin.h: Adjust builtin names accordingly.
13741         * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
13742         ("vec_addc<mode>", "vec_addc_u128"): Merge to
13743         "vacc<bhfgq>_<mode>".
13744         ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
13745         ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
13746         ("vec_subc<mode>", "vec_subc_u128"): Merge to
13747         "vscbi<bhfgq>_<mode>".
13748         ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
13749         ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
13751 2016-08-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13753         * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
13755 2016-08-11  Bin Cheng  <bin.cheng@arm.com>
13757         * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Delete
13758         unused declaration.
13759         (vcond<v_cmp_mixed><mode>): Ditto.
13760         (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
13762 2016-08-11  Bin Cheng  <bin.cheng@arm.com>
13764         * config/aarch64/aarch64-simd.md (vec_cmp<mode><v_cmp_result>): Init
13765         variable explicitly, also assert on it before use.
13767 2016-08-11  Richard Biener  <rguenther@suse.de>
13769         PR tree-optimization/72772
13770         * cfgloopmanip.c (create_preheader): Use split_edge if there
13771         is a single loop entry, avoiding degenerate PHIs.
13773 2016-08-11  Richard Biener  <rguenther@suse.de>
13775         * tree-ssa-threadbackward.c (pass_data_thread_jumps): Remove
13776         unconditional TODO_cleanup_cfg.
13777         (pass_thread_jumps::execute): Initialize loops, perform a CFG
13778         cleanup only if we threaded a jump.
13780 2016-08-11  Alan Modra  <amodra@gmail.com>
13782         PR target/71680
13783         * lra-constraints.c (simplify_operand_subreg): Allow subreg
13784         mode for mem when SLOW_UNALIGNED_ACCESS if inner mode is also
13785         slow.  Emit two reloads for slow mem case, first loading in
13786         fast innermode, then converting to required mode.
13788 2016-08-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>
13790         * config/rs6000/altivec.h (vec_extract_exp): New macro.
13791         (vec_extract_sig): New macro.
13792         (vec_insert_exp): New macro.
13793         (vec_test_data_class): New macro.
13794         (scalar_extract_exp): New macro.
13795         (scalar_extract_sig): New macro.
13796         (scalar_insert_exp): New macro.
13797         (scalar_test_data_class): New macro.
13798         (scalar_test_neg): New macro.
13799         (scalar_cmp_exp_gt): New macro.
13800         (scalar_cmp_exp_lt): New macro.
13801         (scalar_cmp_exp_eq): New macro.
13802         (scalar_cmp_exp_unordered): New macro.
13803         * config/rs6000/predicates.md (u7bit_cint_operand): New predicate
13804         to enforce constraint that operand is a 7-bit unsigned literal.
13805         * config/rs6000/rs6000-builtin.def (BU_P9V_64BIT_VSX_1): New macro
13806         for power9 built-ins.
13807         (BU_P9V_VSX_2): Likewise.
13808         (BU_P9V_64BIT_VSX_2): Likewise.
13809         (VSEEDP): Add scalar extract exponent support.
13810         (VSEESP): Add scalar extract signature support.
13811         (VSTDCNDP): Add scalar test negative support.
13812         (VSTDCNSP): Likewise.
13813         (VSIEDP): Add scalar insert exponent support.
13814         (VSCEDPGT): Add scalar compare exponent greater than support.
13815         (VSCEDPLT): Add scalar compare exponent less than support.
13816         (VSCEDPEQ): Add scalar compare exponent test-for-equality support.
13817         (VSCEDPUO): Add scalar compare exponent test-for-unordered support.
13818         (VSTDCDP): Add scalar test data class support.
13819         (VSTDCSP): Likewise.
13820         (VSEEDP): Add overload support for scalar extract exponent
13821         operation.
13822         (VSESDP): Add overload support for scalar extract signature
13823         operation.
13824         (VSTDCN): Add overload support for scalar test negative
13825         operation.
13826         (VSTDCNDP): Add overload support for scalar test negative
13827         operation.
13828         (VSTDCNSP): Add overload support for scalar test negative
13829         operation.
13830         (VSIEDP): Add overload support for scalar insert exponent
13831         operation.
13832         (VSTDC): Add overload support for scalar test data class
13833         operation.
13834         (VSTDCDP): Add overload support for scalar test data class
13835         operation.
13836         (VSTDCSP): Add overload support for scalar test data class
13837         opreation.
13838         (VSCEDPGT): Add overload support for scalar compare exponent
13839         greater than operation.
13840         (VSCEDPLT): Add overload support for scalar compare exponent
13841         less than operation.
13842         (VSCEDPEQ): Add overload support for scalar compare exponent
13843         test-for-equality operation.
13844         (VSCEDPUO): Add overload support for scalar compare exponent
13845         test-for-unordered operation.
13846         (VEEDP): Add vector extract exponent support.
13847         (VEESP): Likewise.
13848         (VESDP): Add vector extract significand support.
13849         (VESSP): Likewise.
13850         (VIEDP): Add vector insert exponent support.
13851         (VIESP): Likewise.
13852         (VTDCDP): Add vector test data class support.
13853         (VTDCSP): Likewise.
13854         (VES): Add overload support for vector extract significand operation.
13855         (VESDP): Likewise.
13856         (VESSP): Likewise
13857         (VEE): Add overload support for vector extract exponent operation.
13858         (VEEDP): Likewise.
13859         (VEESP): Likewise.
13860         (VTDC): Add overload support for vector test data class operation.
13861         (VTDCDP): Likewise.
13862         (VTDCSP): Likewise.
13863         (VIE): Add overload support for vector insert exponent operation.
13864         (VIEDP): Likewise.
13865         (VIESP): Likewise.
13866         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13867         overloaded binary floating point functions.
13868         (altivec_resolve_overloaded_builtin): Improve error messages to
13869         distinguish between functions not supported in the current
13870         compiler configuration and functions that were invoked with an
13871         invalid parameter combination, and include the built-in function
13872         name in both error messages.
13873         * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_name):
13874         New prototype.
13875         * config/rs6000/rs6000.c (rs6000_overloaded_builtin_name): New
13876         function.
13877         (rs6000_expand_binop_builtin): Add check to enforce that argument
13878         2 of the test data class operations is a 7-bit unsigned literal.
13879         (rs6000_invalid_builtin): Add code to issue an error message if a
13880         built-in function that requires the power9_vector and -m32
13881         command-line options is compiled without these options.
13882         * config/rs6000/vsx.md (UNSPEC_VSX_SXEXPDP): New value.
13883         (UNSPEC_VSX_SXSIGDP): New value.
13884         (UNSPEC_VSX_SXSIGPDP): New value.
13885         (UNSPEC_VSX_SIEXPDP): New value.
13886         (UNSPEC_VSX_SCMPEXPDP): New value.
13887         (UNSPEC_VSX_STSTDC): New value.
13888         (UNSPEC_VSX_VXEXP): New value.
13889         (UNSPEC_VSX_VXSIG): New value.
13890         (UNSPEC_VSX_VIEXP): New value.
13891         (UNSPEC_VSX_VTSTDC): New value.
13892         (xsxexpdp): New insn for scalar extract exponent.
13893         (xsxsigdp): New insn for scalar extract significand.
13894         (xsiexpdp): New insn for scalar insert exponent.
13895         (xscmpexpdp_<code>): New expansion for scalar compare exponents.
13896         (*xscmpexpdp): New insn for scalar compare exponents.
13897         (xststdc<Fvsx): New expansion for both single- and
13898         double-precision scalar test data class operations.
13899         (xststdcneg<Fvsx>): New expansion for both single- and
13900         double-precision scalar test for negative value operations.
13901         (*xststdc<Fvsx>): New insn for scalar test data class
13902         operation.
13903         (xvxexp<VSs>): New insn for single- and double-precision
13904         vector extract exponent operation.
13905         (xvxsig<VSs>): New insn for single- and double-precision
13906         vector extract significand operation.
13907         (xviexp<VSs>): New insn for single- and double-precision
13908         vector insert exponent operation.
13909         (xvtstdc<VSs>): New insn for single- and double-precision
13910         vector test data class operation.
13911         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
13912         built-in functions to represent the Power9 binary floating-point
13913         support instructions.
13915 2016-08-10  bin cheng  <bin.cheng@arm.com>
13917         * doc/sourcebuild.texi (@item vect_cond_mixed): New item.
13919 2016-08-10  Alan Lawrence  <alan.lawrence@arm.com>
13920             Renlin Li  <renlin.li@arm.com>
13921             Bin Cheng  <bin.cheng@arm.com>
13923         * config/aarch64/iterators.md (V_cmp_mixed, v_cmp_mixed): New.
13924         * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): Call
13925         gen_vcondv2div2di instead of gen_aarch64_vcond_internalv2div2di.
13926         (aarch64_vcond_internal<mode><mode>): Delete pattern.
13927         (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): Ditto.
13928         (vcond<v_cmp_result><mode>): Ditto.
13929         (vcond<mode><mode>): Re-implement using vec_cmp and vcond_mask.
13930         (vcondu<mode><mode>): Ditto.
13931         (vcond<v_cmp_mixed><mode>): New pattern.
13932         (vcondu<mode><v_cmp_mixed>): New pattern.
13933         (aarch64_cmtst<mode>): Revise comment using aarch64_vcond instead
13934         of aarch64_vcond_internal.
13936 2016-08-10  Alan Lawrence  <alan.lawrence@arm.com>
13937             Renlin Li  <renlin.li@arm.com>
13938             Bin Cheng  <bin.cheng@arm.com>
13940         * config/aarch64/aarch64-simd.md (vec_cmp<mode><mode>): New pattern.
13941         (vec_cmp<mode><v_cmp_result>): New pattern.
13942         (vec_cmpu<mode><mode>): New pattern.
13943         (vcond_mask_<mode><v_cmp_result>): New pattern.
13945 2016-08-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
13947         PR tree-optimization/71734
13948         * tree-ssa-loop-im.c (ref_indep_loop_p): Add new argument
13949         REF_LOOP, invoke ref_indep_loop_p_1.
13950         (outermost_indep_loop): Pass LOOP argumnet where REF was defined
13951         to ref_indep_loop_p.
13952         (ref_indep_loop_p_1): Fix commentary, add argument REF_LOOP,
13953         combine it with ref_indep_lopp_p_2, update SAFELEN if only REF
13954         is inside LOOP, do not cache dpendence value for loops with
13955         non-zero SAFELEN.
13956         (ref_indep_loop_p_2): Delete function.
13957         (can_sm_ref_p): Pass LOOP as additional argument to
13958         ref_indep_loop_p.
13960 2016-08-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
13962         PR target/72853
13963         * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
13964         being an offsettable address.
13966 2016-08-10  Martin Liska  <mliska@suse.cz>
13968         PR gcov-profile/58306
13969         * tree-profile.c (gimple_init_edge_profiler): Create conditionally
13970         atomic variants of profile update functions.
13972 2016-08-10  Martin Liska  <mliska@suse.cz>
13974         Cherry picked (and modified) from google-4_7 branch
13975         2012-12-26  Rong Xu  <xur@google.com>
13976         * common.opt (fprofile-update): Add new flag.
13977         * coretypes.h: Define enum profile_update.
13978         * doc/invoke.texi: Document -fprofile-update.
13979         * gcov-io.h: Declare GCOV_TYPE_ATOMIC_FETCH_ADD and
13980         GCOV_TYPE_ATOMIC_FETCH_ADD_FN.
13981         * tree-profile.c (gimple_init_edge_profiler): Generate
13982         also atomic profiler update.
13983         (gimple_gen_edge_profiler): Likewise.
13985 2016-08-10  David Malcolm  <dmalcolm@redhat.com>
13987         * toplev.c (finalize): Set aux_info_file, asm_out_file, and
13988         stack_usage_file to NULL after fclose calls.
13990 2016-08-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
13992         PR target/71873
13993         * reload.c (push_reload): Compute subreg_in_class for
13994         subregs of constants and plus expressions. Remove special
13995         handling of SYMBOL_REFs.
13997 2016-08-10  Alan Modra  <amodra@gmail.com>
13999         PR target/71680
14000         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return
14001         SImode for TARGET_E500_DOUBLE when given SImode.
14003 2016-08-09  David Wohlferd  <dw@LimeGreenSocks.com>
14005         * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
14006         unused variable __O.
14008 2016-08-09  Martin Liska  <mliska@suse.cz>
14010         * doc/gcov.texi: Change _gcov_dump to __gcov_dump and
14011         _gcov_reset to __gcov_reset.
14012         * doc/gcov-tool.texi: Fix typo.
14014 2016-08-09  Martin Liska  <mliska@suse.cz>
14016         * value-prof.c (gimple_divmod_values_to_profile): Do not
14017         instrument MOD histogram if a value is not a SSA name.
14019 2016-08-09  Martin Liska  <mliska@suse.cz>
14021         * value-prof.c (dump_histogram_value): Swap pow2 and non-pow2
14022         values.
14024 2016-08-09  Renlin Li  <renlin.li@arm.com>
14026         PR middle-end/64971
14027         * calls.c (prepare_call_address): Convert funexp to Pmode when
14028         necessary.
14029         * config/aarch64/aarch64.md (sibcall): Remove fix for PR 64971.
14030         (sibcall_value): Likewise.
14032 2016-08-09  Marek Polacek  <polacek@redhat.com>
14034         PR c/7652
14035         * cselib.c (cselib_expand_value_rtx_1): Add return.
14036         * gengtype.c (dbgprint_count_type_at): Likewise.
14037         * hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Likewise.
14038         * reg-stack.c (get_true_reg): Restructure to avoid fallthrough warning.
14040 2016-08-09  Martin Jambor  <mjambor@suse.cz>
14042         PR ipa/71981
14043         * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
14044         if instance is a MEM_REF.
14046 2016-08-09  Uros Bizjak  <ubizjak@gmail.com>
14048         PR target/72843
14049         * config/i386/i386.md (*movtf_internal): Use
14050         lra_in_progress || reload_completed instead of !can_create_pseudo_p
14051         in the insn constraint.
14052         (*movxf_internal): Ditto.
14053         (*movdf_internal): Ditto.
14054         (*movsf_internal): Ditto.
14056 2016-08-09  Bin Cheng  <bin.cheng@arm.com>
14058         PR tree-optimization/72772
14059         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
14060         for expanded base.
14062 2016-08-09  Bin Cheng  <bin.cheng@arm.com>
14064         PR tree-optimization/72772
14065         * tree-ssa-loop-niter.h (simplify_using_initial_conditions): Delete
14066         parameter STOP.
14067         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Delete
14068         parameter STOP and update calls.  Move expand_simple_operations
14069         function call from here...
14070         (simplify_using_initial_conditions): ...to here.  Delete parameter
14071         STOP.
14072         (tree_simplify_using_condition): Delete parameter STOP.
14073         * tree-scalar-evolution.c (simple_iv_with_niters): Update call to
14074         simplify_using_initial_conditions.
14076 2016-08-09  Matthew Fortune  <matthew.fortune@imgtec.com>
14078         PR c/65345
14079         * config/mips/mips.c (mips_atomic_assign_expand_fenv):
14080         Use create_tmp_var_raw instead of create_tmp_var.
14082 2016-08-09  Richard Biener  <rguenther@suse.de>
14084         * tree-ssa-threadbackward.c (profitable_jump_thread_path):
14085         Treat same SSA names related.
14087 2016-08-09  Jakub Jelinek  <jakub@redhat.com>
14089         PR tree-optimization/72824
14090         * tree-loop-distribution.c (const_with_all_bytes_same): Verify
14091         real_zerop is not negative.
14093 2016-08-09  Richard Biener  <rguenther@suse.de>
14095         PR tree-optimization/71802
14096         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Make sure to catch
14097         all merge opportunities with the predecessor.
14099 2016-08-09  Richard Biener  <rguenther@suse.de>
14101         PR ipa/68273
14102         * ipa-prop.c (ipa_modify_formal_parameters): Build
14103         parameter types with natural alignment also for the
14104         over-aligned case.
14106 2016-08-08  Andi Kleen  <ak@linux.intel.com>
14108         * tree-vrp.c (get_single_symbol): Always initialize inv and neg.
14110 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
14112         PR c/64955
14113         * langhooks-def.h (LANG_HOOKS_RUN_LANG_SELFTESTS): New default
14114         do-nothing langhook.
14115         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_RUN_LANG_SELFTESTS.
14116         * langhooks.h (struct lang_hooks): Add run_lang_selftests.
14117         * selftest-run-tests.c: Include "tree.h" and "langhooks.h".
14118         (selftest::run_tests): Call lang_hooks.run_lang_selftests.
14120 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
14122         PR bootstrap/72844
14123         * input.c: Ensure that HAVE_ICONV is defined.
14125 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
14127         PR middle-end/72781
14128         * omp-low.c (lower_lastprivate_clauses): Set TREE_NO_WARNING on the
14129         private vars for lastprivate and for linear iterator.
14131         PR middle-end/68762
14132         * omp-simd-clone.c: Include varasm.h.
14133         (simd_clone_create): Copy over DECL_COMDAT, DECL_WEAK, DECL_EXTERNAL,
14134         DECL_VISIBILITY, DECL_VISIBILITY_SPECIFIED, DECL_DLLIMPORT_P and for
14135         DECL_ONE_ONLY call make_decl_one_only.  Fix up spelling in comment and
14136         update function name.
14138 2016-07-29  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
14140         * config/avr/driver-avr.c (specfiles_doc_url): Remove.
14141         (avr_diagnose_devicespecs_error): Remove.
14142         (avr_devicespecs_file): Remove composing absolute path for specfile
14143         and its verbose info. Remove conditions to check specs-file,
14145 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
14147         PR rtl-optimization/72821
14148         * lra-spills.c (regno_in_use_p): Don't use BLOCK_FOR_INSN on barriers,
14149         just return false for them.
14151 2016-08-08  Alan Modra  <amodra@gmail.com>
14153         PR target/72771
14154         * config/rs6000/rs6000.c (toc_relative_expr_p): Allow (lo_sum (high))
14155         toc refs created during reload.  Update function comment.
14157 2016-08-08  Alan Modra  <amodra@gmail.com>
14159         PR target/72802
14160         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
14161         alternatives.  Put loads first, then stores, and reg/reg moves
14162         within same class later.  Delete attr length.
14164 2016-08-08  Alan Modra  <amodra@gmail.com>
14166         PR target/72802
14167         * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
14168         (mem_operand_ds_form): New predicate.
14169         * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
14170         * config/rs6000/constraints.md (wY): Use mem_operand_df_form.
14171         * config/rs6000/predicates.md (offsettable_mem_14bit_operand): Delete.
14172         * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
14173         (extendsfdf2_fpr): Replace o constraint with wY.
14175 2016-08-07  Jan Hubicka  <hubicka@ucw.cz>
14177         * tree-ssa-threadbackward.c: Include tree-inline.h
14178         (profitable_jump_thread_path): Use estimate_num_insns to estimate
14179         size of copied block; for cold paths reduce duplication.
14180         (find_jump_threads_backwards): Remove redundant tests.
14181         (pass_thread_jumps::gate): Enable for -Os.
14183 2016-08-07  Jakub Jelinek  <jakub@redhat.com>
14185         PR c/72816
14186         * stor-layout.c (layout_decl): Fix up formatting.
14187         (relayout_decl): Allow DECL to be FIELD_DECL.
14189 2016-08-07  Alan Modra  <amodra@gmail.com>
14191         * config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
14193 2016-08-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
14195         * data-streamer-in.c (streamer_read_wide_int): New.
14196         (streamer_read_widest_int): Renamed function.
14197         * data-streamer-out.c (streamer_write_wide_int): New
14198         (streamer_write_widest_int): Renamed function.
14199         * lto-streamer-in.c (streamer_read_wi): Renamed and moved to
14200         data-stream-in.c.
14201         (input_cfg): Call renamed function.
14202         * lto-streamer-out.c (streamer_write_wi): Renamed and moved to
14203         data-stream-out.c.
14204         (output_cfg): Call renamed function.
14205         * data-streamer.h: Add declarations.
14207 2016-08-08  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
14209         * tree-ssa-ccp.c (extend_mask): New param sgn.
14210         Remove ORing with wi::mask.
14211         (get_default_value): Adjust call to extend_mask to pass sign.
14212         (evaluate_stmt): Likewise.
14214 2016-08-06  Jakub Jelinek  <jakub@redhat.com>
14216         * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of
14217         INT64_MAX.
14219 2016-08-06  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
14221         * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable
14222         transform if operand's type is pointer to function or method.
14224 2016-08-05  Patrick Palka  <ppalka@gcc.gnu.org>
14226         PR tree-optimization/18046
14227         * tree-ssa-threadedge.c: Include cfganal.h.
14228         (simplify_control_statement_condition): If simplifying a
14229         GIMPLE_SWITCH, replace the index operand of the GIMPLE_SWITCH
14230         with the dominating ASSERT_EXPR before handing it off to VRP.
14231         Mention that a CASE_LABEL_EXPR may be returned.
14232         (thread_around_empty_blocks): Adjust to handle
14233         simplify_control_statement_condition() returning a
14234         CASE_LABEL_EXPR.
14235         (thread_through_normal_block): Likewise.
14236         * tree-vrp.c (simplify_stmt_for_jump_threading): Simplify
14237         a switch statement by trying to determine which case label
14238         will be taken.
14240 2016-08-05  Vladimir Makarov  <vmakarov@redhat.com>
14242         PR rtl-optimization/69847
14243         * lra-constraints.c (process_invariant_for_inheritance): Save
14244         pattern instead of src.
14245         (remove_inheritance_pseudos): Use the pattern.  Add assert.
14247 2016-08-05  David Malcolm  <dmalcolm@redhat.com>
14249         * input.c (string_concat::string_concat): New constructor.
14250         (string_concat_db::string_concat_db): New constructor.
14251         (string_concat_db::record_string_concatenation): New method.
14252         (string_concat_db::get_string_concatenation): New method.
14253         (string_concat_db::get_key_loc): New method.
14254         (class auto_cpp_string_vec): New class.
14255         (get_substring_ranges_for_loc): New function.
14256         (get_source_range_for_substring): New function.
14257         (get_num_source_ranges_for_substring): New function.
14258         (class selftest::lexer_test_options): New class.
14259         (struct selftest::lexer_test): New struct.
14260         (class selftest::ebcdic_execution_charset): New class.
14261         (selftest::ebcdic_execution_charset::s_singleton): New variable.
14262         (selftest::lexer_test::lexer_test): New constructor.
14263         (selftest::lexer_test::~lexer_test): New destructor.
14264         (selftest::lexer_test::get_token): New method.
14265         (selftest::assert_char_at_range): New function.
14266         (ASSERT_CHAR_AT_RANGE): New macro.
14267         (selftest::assert_num_substring_ranges): New function.
14268         (ASSERT_NUM_SUBSTRING_RANGES): New macro.
14269         (selftest::assert_has_no_substring_ranges): New function.
14270         (ASSERT_HAS_NO_SUBSTRING_RANGES): New macro.
14271         (selftest::test_lexer_string_locations_simple): New function.
14272         (selftest::test_lexer_string_locations_ebcdic): New function.
14273         (selftest::test_lexer_string_locations_hex): New function.
14274         (selftest::test_lexer_string_locations_oct): New function.
14275         (selftest::test_lexer_string_locations_letter_escape_1): New function.
14276         (selftest::test_lexer_string_locations_letter_escape_2): New function.
14277         (selftest::test_lexer_string_locations_ucn4): New function.
14278         (selftest::test_lexer_string_locations_ucn8): New function.
14279         (selftest::uint32_from_big_endian): New function.
14280         (selftest::test_lexer_string_locations_wide_string): New function.
14281         (selftest::uint16_from_big_endian): New function.
14282         (selftest::test_lexer_string_locations_string16): New function.
14283         (selftest::test_lexer_string_locations_string32): New function.
14284         (selftest::test_lexer_string_locations_u8): New function.
14285         (selftest::test_lexer_string_locations_utf8_source): New function.
14286         (selftest::test_lexer_string_locations_concatenation_1): New
14287         function.
14288         (selftest::test_lexer_string_locations_concatenation_2): New
14289         function.
14290         (selftest::test_lexer_string_locations_concatenation_3): New
14291         function.
14292         (selftest::test_lexer_string_locations_macro): New function.
14293         (selftest::test_lexer_string_locations_stringified_macro_argument):
14294         New function.
14295         (selftest::test_lexer_string_locations_non_string): New function.
14296         (selftest::test_lexer_string_locations_long_line): New function.
14297         (selftest::test_lexer_char_constants): New function.
14298         (selftest::input_c_tests): Call the new test functions once per
14299         case within the line_table test matrix.
14300         * input.h (struct string_concat): New struct.
14301         (struct location_hash): New struct.
14302         (class string_concat_db): New class.
14303         * substring-locations.h: New header.
14305 2016-08-05  Patrick Palka  <ppalka@gcc.gnu.org>
14307         PR tree-optimization/72810
14308         * tree-vrp.c (simplify_switch_using_ranges): Avoid changing
14309         the type of the case labels when truncating.
14311 2016-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
14313         PR Target/72819
14314         * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
14315         (aarch64_fp16_ptr_type_node): Likewise.
14316         * config/aarch64/aarch64-simd-builtins.c
14317         (aarch64_fp16_ptr_type_node): Define.
14318         (aarch64_init_fp16_types): New, refactored out of...
14319         (aarch64_init_builtins): ...here, update to call
14320         aarch64_init_fp16_types.
14321         * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
14322         HFmode.
14323         (aapcs_vfp_sub_candidate): Likewise.
14325 2016-08-05  Martin Liska  <mliska@suse.cz>
14326             Joshua Cranmer  <Pidgeot18@gmail.com>
14328         * gcov.c (line_t::has_block): New function.
14329         (enum loop_type): New enum.
14330         (handle_cycle): New function.
14331         (unblock): Likewise.
14332         (circuit): Likewise.
14333         (get_cycles_count): Likewise.
14334         (accumulate_line_counts): Use new loop detection algorithm.
14336 2016-08-05  Martin Liska  <mliska@suse.cz>
14338         * gcov.c (output_intermediate_file): Rename
14339         function_info::line_next to next_file_fn.
14340         (process_file): Likewise.
14341         (read_graph_file): Likewise.
14342         (accumulate_line_counts): Likewise.
14343         (output_lines): Likewise.
14345 2016-08-05  Richard Biener  <rguenther@suse.de>
14347         * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
14348         restriction on threading to a loop header.
14350 2016-08-05  Richard Biener  <rguenther@suse.de>
14352         * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
14353         * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
14354         adjust loop info accordingly.
14356 2016-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
14358         * tree-vrp.c (extract_range_basic): Check cfun->after_inlining
14359         before folding call to __builtin_constant_p with parameters to false.
14361 2016-08-05  Alan Modra  <amodra@gmail.com>
14363         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete
14364         code accidentally committed 2016-05-02 providing class when given
14365         NO_REGS.
14367 2016-08-04  Patrick Palka  <ppalka@gcc.gnu.org>
14369         * tree-vrp.c (simplify_switch_using_ranges): Try to truncate
14370         the case label ranges that partially overlap with OP's value
14371         range.
14373 2016-08-04  Uros Bizjak  <ubizjak@gmail.com>
14375         PR target/72805
14376         * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
14377         Cast builtin function result to __mmask16 instead of __mmask8.
14378         (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
14379         (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
14380         (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
14382 2016-08-04  David Malcolm  <dmalcolm@redhat.com>
14384         * selftest.h (ASSERT_TRUE): Reimplement in terms of...
14385         (ASSERT_TRUE_AT): New macro.
14386         (ASSERT_FALSE): Reimplement in terms of...
14387         (ASSERT_FALSE_AT): New macro.
14388         (ASSERT_STREQ_AT): Fix typo in comment.
14390 2016-08-04  Patrick Palka  <ppalka@gcc.gnu.org>
14392         * gimple.c (preprocess_case_label_vec_for_gimple): When the case
14393         labels are exhaustive, designate the label with the widest
14394         range to be the default label.
14396 2016-08-04  Andrew Pinski  <apinski@cavium.com>
14398         * config/aarch64/aarch64.c (thunderx_vector_cost): New variable.
14399         (thunderx_tunings): Use thunderx_vector_cost instead of
14400         generic_vector_cost.
14402 2016-08-04  Martin Liska  <mliska@suse.cz>
14404         * gcov.c (main): Fix GNU coding style.
14405         (output_intermediate_file): Likewise.
14406         (process_file): Likewise.
14407         (generate_results): Likewise.
14408         (release_structures): Likewise.
14409         (create_file_names): Likewise.
14410         (find_source): Likewise.
14411         (read_graph_file): Likewise.
14412         (find_exception_blocks): Likewise.
14413         (canonicalize_name): Likewise.
14414         (make_gcov_file_name): Likewise.
14415         (mangle_name): Likewise.
14416         (accumulate_line_counts): Likewise.
14417         (output_branch_count): Likewise.
14418         (read_line): Likewise.
14420 2016-08-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14422         PR rtl-optimization/71779
14423         * emit-rtl.c (set_reg_attrs_from_value): Only propagate REG_POINTER,
14424         if the value was sign-extended according to POINTERS_EXTEND_UNSIGNED
14425         or if it was truncated.
14427         PR rtl-optimization/70903
14428         * cse.c (cse_insn): If DEST is a paradoxical SUBREG, don't record DEST.
14430 2016-08-04  Kugan Vivekanandarajah  <kuganv@linaro.org>
14432         * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
14433         accessing SSA_NAME_PTR_INFO.
14435 2016-08-04  Georg-Johann Lay  <avr@gjlay.de>
14437         PR 70677
14438         * common/config/avr/avr-common.c (avr_option_optimization_table)
14439         [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
14441 2016-08-04  Georg-Johann Lay  <avr@gjlay.de>
14443         PR 55181
14444         * config/avr/avr.md: New pattern to work around do_store_flag
14445         generating shift instructions for bit extractions.
14447 2016-08-04  Kugan Vivekanandarajah  <kuganv@linaro.org>
14449         * tree-vrp.c (set_value_range): Use vrp_equiv_obstack with
14450         BITMAP_ALLOC.
14451         (add_equivalence): Likewise.
14452         (get_value_range): Allocate value range with vrp_value_range_pool.
14453         (vrp_initialize): Initialize vrp_equiv_obstack for equiv allocation.
14454         (vrp_finalize): Relase vrp_equiv_obstack and vrp_value_range_pool.
14456 2016-08-03  Peter Bergner  <bergner@vnet.ibm.com>
14458         * config/rs6000/rs6000.c (rs6000_option_override_internal): Make LRA
14459         the default for the rs6000 port.
14461 2016-08-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14463         PR middle-end/71876
14464         * calls.c (special_function_p): Remove special handling of
14465         "setjmp_syscall", "qsetjmp", "longjmp", "siglongjmp" and the
14466         prefix "__x".  Recognize "savectx", "vfork" and "getcontext" only
14467         without prefix.  Remove potentially unsafe ECF_LEAF and ECF_NORETURN.
14469 2016-08-03  Vladimir Makarov  <vmakarov@redhat.com>
14471         PR middle-end/72778
14472         * lra-spills.c (regno_in_use_p): Check bb and regno modification.
14473         Don't stop on regular insns.
14475 2016-08-03  Nathan Sidwell  <nathan@codesourcery.com>
14477         * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
14478         size to DImode boundary.
14479         (nvptx_propagate): Likewise.
14481 2016-08-03  Alan Modra  <amodra@gmail.com>
14483         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
14484         float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
14485         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
14486         from -mefficient-unaligned-vector.  Note that this affects fp too.
14488 2016-08-03  Alan Modra  <amodra@gmail.com>
14490         * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
14491         cost more.
14493 2016-08-03  Alan Modra  <amodra@gmail.com>
14495         * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
14496         to a reg.  Localize vars.
14498 2016-08-03  Alan Modra  <amodra@gmail.com>
14500         * config/rs6000/rs6000.opt: Remove negatives from help strings
14501         and comments.
14503 2016-08-03  Alan Modra  <amodra@gmail.com>
14505         * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
14506         Delete duplicated code.
14508 2016-08-02  Vladimir Makarov  <vmakarov@redhat.com>
14510         PR middle-end/72778
14511         * lra-spills.c (regno_in_use_p): New.
14512         (lra_final_code_change): Use it.
14514 2016-08-02  Vladimir Makarov  <vmakarov@redhat.com>
14516         PR rtl-optimization/69847
14517         * lra-int.h (struct lra-reg): Use restore_rtx instead of
14518         restore_regno.
14519         (lra_rtx_hash): New.
14520         * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
14521         of restore_regno.
14522         (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
14523         * lra-remat.c (rtx_hash): Rename and Move to lra.c.
14524         * lra-spills.c (lra_final_code_change): Don't delete insn when the
14525         next insn is USE with the same reg as the current insn source.
14526         * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
14527         of restore_regno.
14528         (lra_constraints_init): Call initiate_invariants.
14529         (lra_constraints_finish): Call finish_invariants.
14530         (struct invariant, invariant_t, invariant_ptr_t): New.
14531         (const_invariant_ptr_t, invariants, invariants_pool): New.
14532         (invariant_table, invariant_hash, invariant_eq_p): New.
14533         (insert_invariant, initiate_invariants, finish_invariants): New.
14534         (clear_invariants, invalid_invariant_regs): New.
14535         (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
14536         instead of restore_regno.
14537         (invariant_p, process_invariant_for_inheritance): New.
14538         (inherit_in_ebb): Implement invariant inheritance.
14539         (lra_inheritance): Initialize and finalize invalid_invariant_regs.
14540         (remove_inheritance_pseudos): Implement undoing invariant
14541         inheritance.
14542         (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
14543         instead of restore_regno.
14544         * lra-assigns.c (regno_live_length): New.
14545         (reload_pseudo_compare_func): Use regno_live_length.
14546         (assign_by_spills): Use restore_rtx instead of restore_regno.
14547         (lra_assign): Ditto.  Initiate regno_live_length.
14549 2016-02-08  James Greenhalgh  <james.greenhalgh@arm.com>
14551         * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
14552         __builtin_aarch64_fmindf.
14554 2016-08-02  Bin Cheng  <bin.cheng@arm.com>
14556         PR tree-optimization/34114
14557         * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
14558         information for more control IVs.
14560 2016-08-02  Bin Cheng  <bin.cheng@arm.com>
14562         PR tree-optimization/34114
14563         * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
14564         PLUS_EXPR case.  Handle SSA_NAME case.
14566 2016-08-02  Tamar Christina  <tamar.christina@arm.com>
14568         * config/aarch64/aarch64-simd-builtins.def
14569         (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
14570         (__builtin_aarch64_fmaxdf): Likewise.
14571         (__builtin_aarch64_smin_nandf): Likewise.
14572         (__builtin_aarch64_smax_nandf): Likewise.
14573         * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
14574         * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
14575         (<fmaxmin><mode>3): ...this.
14576         * config/aarch64/arm_neon.h (vmaxnm_f64): New.
14577         (vminnm_f64): Likewise.
14578         (vmin_f64): Likewise.
14579         (vmax_f64): Likewise.
14580         * config/aarch64/iterators.md (FMAXMIN): Merge with...
14581         (FMAXMIN_UNS): ...this.
14582         (fmaxmin): Merged with
14583         (fmaxmin_op): ...this...
14584         (maxmin_uns_op): ...in to this.
14586 2016-08-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
14588         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
14589         Add support for vec_extract on vector float, vector int, vector
14590         short, and vector char vector types.
14591         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
14592         vector float, vector int, vector short, and vector char
14593         optimizations on 64-bit ISA 2.07 systems for both constant and
14594         variable element numbers.
14595         (rs6000_split_vec_extract_var): Likewise.
14596         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
14597         Altivec registers on ISA 2.07 and above.
14598         (vsx_extract_v4sf): Delete alternative that hard coded element 0,
14599         which never was matched due to the split occuring before register
14600         allocation (and the code would not have worked on little endian
14601         systems if it did match).  Allow extracts to go to the Altivec
14602         registers if ISA 2.07 (power8).  Change from using "" around the
14603         C++ code to using {}'s.
14604         (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
14605         vec_extracts when the vector is in memory.
14606         (vsx_extract_v4sf_var): New insn to optimize vector float
14607         vec_extracts when the element number is variable on 64-bit ISA
14608         2.07 systems.
14609         (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
14610         for 64-bit ISA 2.07 as well as ISA 3.0.
14611         (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
14612         (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
14613         (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
14614         optimize vector int, vector short, and vector char vec_extracts
14615         when the vector is in memory.
14616         (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
14617         optimize vector int, vector short, and vector char vec_extracts
14618         when the element number is variable.
14620 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
14622         PR target/71948
14623         * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
14624         does not overlap with other symbol flags.
14626 2016-08-01  Wilco Dijkstra  <wdijkstr@arm.com>
14628         * config/aarch64/aarch64.h (aarch64_frame):
14629         Remove padding0 and hardfp_offset.  Add locals_offset,
14630         initial_adjust, callee_adjust, callee_offset and final_adjust.
14631         * config/aarch64/aarch64.c (aarch64_layout_frame):
14632         Remove unused padding0 and hardfp_offset initializations.
14633         Choose frame layout and set frame variables accordingly.
14634         Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
14635         (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
14636         (aarch64_pop_regs): Likewise.
14637         (aarch64_expand_prologue): Remove all decision code, just emit
14638         prolog according to frame variables.
14639         (aarch64_expand_epilogue): Remove all decision code, just emit
14640         epilog according to frame variables.
14641         (aarch64_initial_elimination_offset): Use offset to local/arg area.
14643 2015-08-01  H.J. Lu  <hongjiu.lu@intel.com>
14645         PR target/72748
14646         * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
14647         fix_debug_reg_uses after changing source register mode to
14648         V1TImode if source register is undefined.
14650 2015-08-01  Alan Hayward  <alan.hayward@arm.com>
14652         PR tree-optimization/71818
14653         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
14654         with non invariant evolutions
14656 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
14658         PR target/72767
14659         * config/avr/avr.md (length) [branch]: Correct insn length
14660         attribute for forward branches.
14662 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
14664         * doc/extend.texi (AVR Built-in Functions): Document
14665         __builtin_avr_nops.
14666         * config/avr/builtins.def (NOPS): New.
14667         * config/avr/avr.c (avr_expand_nops): New static function.
14668         (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
14670 2016-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14672         * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
14673         performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
14674         addresses.
14676 2016-08-01  Virendra Pathak  <virendra.pathak@broadcom.com>
14678         * config/aarch64/aarch64.c (vulcan_tunings): Update
14679         vulcan L1 cache_line_size.
14681 2016-07-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
14683         * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
14684         function that takes a vector memory address, a hard register, an
14685         element number and a temporary base register, and recreates an
14686         address that points to the appropriate element within the vector.
14687         * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
14688         (rs6000_split_vec_extract_var): Add support for the target of a
14689         vec_extract with variable element number being a scalar memory
14690         location.
14691         (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
14692         swappable.
14693         * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
14694         vsx_extract_<mode>_load insn with a new insn that optimizes
14695         storing either element to a memory location, using scratch
14696         registers to pick apart the vector and reconstruct the address.
14697         (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
14698         (vsx_extract_<mode>_store): Rework alternatives to more correctly
14699         support Altivec registers.  Add support for ISA 3.0 Altivec d-form
14700         store instruction.
14701         (vsx_extract_<mode>_var): Add support for extracting a variable
14702         element number from memory.
14704 2016-07-29  Georg-Johann Lay  <avr@gjlay.de>
14706         * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
14707         when testing for compares against constants of the form 0xabab.
14709 2016-07-29  Bin Cheng  <bin.cheng@arm.com>
14711         PR tree-optimization/57558
14712         * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
14713         function.
14714         (vect_loop_versioning): Support versioning with niter assumptions.
14715         * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
14716         (vect_get_loop_niters): New parameter.  Reimplement to support
14717         assumptions in loop niter info.
14718         (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
14719         (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
14720         (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
14721         Support loop versioning for niters.
14722         * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
14723         (vect_free_loop_info_assumptions): New function.
14724         (vectorize_loops): Free loop niter info for loops with flag
14725         LOOP_F_ASSUMPTIONS set if vectorization failed.
14726         * tree-vectorizer.h (struct _loop_vec_info): New field
14727         num_iters_assumptions.
14728         (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
14729         (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
14730         (LOOP_REQUIRES_VERSIONING): New macro.
14731         (vect_free_loop_info_assumptions): New decl.
14733 2016-07-29  Bin Cheng  <bin.cheng@arm.com>
14735         * cfgloop.h (struct loop): New field constraints.
14736         (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
14737         (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
14738         functions.
14739         * cfgloop.c (alloc_loop): Initialize new field.
14740         * cfgloopmanip.c (copy_loop_info): Copy constraints.
14741         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
14742         Adjust niter analysis wrto loop constraints.
14743         * doc/loop.texi (@node Number of iterations): Add description for loop
14744         constraints.
14746 2016-07-29  Marek Polacek  <polacek@redhat.com>
14748         PR c/7652
14749         * config/i386/i386.c (ix86_expand_args_builtin): Add break.
14750         (ix86_expand_round_builtin): Likewise.
14752 2016-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
14753             Georg-Johann Lay  <avr@gjlay.de>
14755         PR rtl-optimization/71976
14756         * combine.c (get_last_value): Return 0 if the argument for which
14757         the function is called has a wider mode than the recorded value.
14759 2016-07-29  Marek Polacek  <polacek@redhat.com>
14761         PR c/7652
14762         * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
14763         (altivec_expand_st_builtin): Likewise.
14765 2016-07-29  Georg-Johann Lay  <avr@gjlay.de>
14767         * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
14768         introduced in r238381.
14770 2016-07-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
14772         PR middle-end/68217
14773         * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
14774         & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
14776 2016-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
14778         * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
14779         New declaration.
14780         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
14781         Add support for vec_extract of vector double or vector long having
14782         a variable element number on 64-bit ISA 2.07 systems or newer.
14783         * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
14784         Likewise.
14785         (rs6000_split_vec_extract_var): New function to split a
14786         vec_extract built-in function with variable element number.
14787         (rtx_is_swappable_p): Variable vec_extracts and shifts are not
14788         swappable.
14789         * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
14790         (UNSPEC_VSX_EXTRACT): Likewise.
14791         (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
14792         direct move instructions to be generated on 64-bit ISA 2.07
14793         systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
14794         instruction.
14795         (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
14796         arguments for vec_extract variable element.
14797         (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
14798         vec_extract with variable element on V2DFmode and V2DImode
14799         vectors.
14800         * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
14801         -mupper-regs-df requirement, since it isn't needed.
14802         (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
14803         do direct moves on 64-bit systems, which allows optimization of
14804         vec_extract on 64-bit ISA 2.07 systems and newer.
14806 2016-07-28  Kristina Martsenko  <kristina.martsenko@arm.com>
14807 2016-07-28  Wilco Dijkstra  <wdijkstr@arm.com>
14809          * config/aarch64/aarch64.md
14810         (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
14811         statement and type.
14812         (<optab>qihi2_aarch64): Likewise, and split into two.
14813         (extendqihi2_aarch64): New.
14814         (zero_extendqihi2_aarch64): New.
14815         * config/aarch64/iterators.md (ldrxt): Remove.
14816         * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
14817         uxtb/uxth.
14819 2016-07-28  Kristina Martsenko  <kristina.martsenko@arm.com>
14821         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
14823 2016-07-28  Wilco Dijkstra  <wdijkstr@arm.com>
14825         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
14826         (aarch64_push_reg): New function to push 1 or 2 registers.
14827         (aarch64_pop_reg): New function to pop 1 or 2 registers.
14828         (aarch64_expand_prologue): Use aarch64_push_regs.
14829         (aarch64_expand_epilogue): Use aarch64_pop_regs.
14831 2016-07-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
14833         PR tree-optimization/71734
14834         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
14835         attribute instead of REF_LOOP and use it.
14836         (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
14837         set it for Loops having non-zero safelen attribute.
14838         (ref_indep_loop_p): Pass zero as initial value for safelen.
14840 2016-07-28  Ilya Enkovich  <ilya.enkovich@intel.com>
14842         PR middle-end/72657
14843         PR target/72683
14844         * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
14845         call using chkp_gimple_call_builtin_p.
14846         (chkp_copy_bounds_for_assign): Likewise.
14848 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14850         * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
14851         * config/arm/arm-protos.h (struct tune_params): Likewise.
14852         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
14853         (cortex_a9_sched_adjust_cost): Likewise.
14854         (fa726te_sched_adjust_cost): Likewise.
14855         (arm_adjust_cost): Likewise.
14856         * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
14857         * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
14858         * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
14859         * config/i386/i386.c (ix86_adjust_cost): Likewise.
14860         * config/ia64/ia64.c: Likewise.
14861         * config/m68k/m68k.c: Likewise.
14862         * config/mep/mep.c (mep_adjust_cost): Likewise.
14863         * config/microblaze/microblaze.c (microblaze_adjust_cost):
14864         * Likewise.
14865         * config/mips/mips.c (mips_adjust_cost): Likewise.
14866         * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
14867         * Likewise.
14868         * config/pa/pa.c (pa_adjust_cost): Likewise.
14869         * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
14870         (rs6000_debug_adjust_cost): Likewise.
14871         * config/sh/sh.c (sh_adjust_cost): Likewise.
14872         * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
14873         (hypersparc_adjust_cost): Likewise.
14874         (sparc_adjust_cost): Likewise.
14875         * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
14876         * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
14877         * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
14878         * Likewise.
14879         * config/visium/visium.c (visium_adjust_cost): Likewise.
14880         * doc/tm.texi: Regenerate.
14881         * haifa-sched.c (dep_cost_1): Adjust.
14882         * target.def: Merge adjust_cost and adjust_cost_2.
14884 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14886         * haifa-sched.c (add_to_speculative_block): Make twins a vector.
14888 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14890         * store-motion.c (struct st_expr): Make pattern_regs a vector.
14891         (extract_mentioned_regs): Append to a vector instead of
14892         returning a rtx_expr_list.
14893         (st_expr_entry): Adjust.
14894         (free_st_expr_entry): Likewise.
14895         (store_ops_ok): Likewise.
14896         (store_killed_in_insn): Likewise.
14897         (find_moveable_store): Likewise.
14899 2016-07-28  Martin Liska  <mliska@suse.cz>
14901         PR gcov-profile/68025
14902         * tree-profile.c (tree_profiling): Respect
14903         no_profile_instrument_function attribute.
14904         * doc/extend.texi: Document no_profile_instrument_function
14905         attribute.
14907 2016-07-28  Martin Liska  <mliska@suse.cz>
14909         PR rtl-optimization/70944
14910         * combine.c (make_compound_operation):
14911         Do not allow make_compound_operation for vector mode
14913 2016-07-28  Kugan Vivekanandarajah  <kuganv@linaro.org>
14915         PR middle-end/71994
14916         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
14917          before calling get_ops.
14919 2016-07-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14921         * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
14922         * tree.h (LOG2_BITS_PER_UNIT): ...to here.
14923         (BITS_PER_UNIT_LOG): Remove.
14924         (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
14925         * expr.c (expand_assignment): Likewise.
14926         * stor-layout.c (initialize_sizetypes): Likewise.
14928 2016-07-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
14930         * config/rs6000/vector.md (vec_extract<mode>): Change the calling
14931         signature of rs6000_expand_vector_extract so that the element
14932         number is a RTX instead of a constant integer.
14933         * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
14934         Likewise.
14935         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
14936         (altivec_expand_vec_ext_builtin): Likewise.
14937         * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
14938         * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
14939         MFVSRLD instruction.
14941 2016-07-27  David Malcolm  <dmalcolm@redhat.com>
14943         * input.c (get_pure_location): Move here from tree.c.
14944         (make_location): Likewise.  Add header comment.
14945         (selftest::test_accessing_ordinary_linemaps): Verify
14946         pure_location_p, make_location, get_location_from_adhoc_loc and
14947         get_range_from_loc.
14948         * input.h (get_pure_location): Move declaration here from tree.h.
14949         (get_finish): Likewise for inline function.
14950         (make_location): Likewise for declaration.
14951         * tree.c (get_pure_location): Move to input.c.
14952         (make_location): Likewise.
14953         * tree.h (get_pure_location): Move declaration to tree.h.
14954         (get_finish): Likewise for inline function.
14955         (make_location): Likewise for declaration.
14957 2016-07-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
14959         PR middle-end/71078
14960         * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
14962 2016-07-27  David Malcolm  <dmalcolm@redhat.com>
14964         * system.h (STATIC_ASSERT): Use static_assert if building
14965         with C++11 onwards.
14967 2016-07-27  Richard Biener  <rguenther@suse.de>
14969         PR tree-optimization/72517
14970         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
14971         Revert change to not compute read-read dependences.
14973 2016-07-27  Richard Biener  <rguenther@suse.de>
14975         * predict.c (set_even_probabilities): Make nedges unsigned.
14977 2016-07-27  Martin Liska  <mliska@suse.cz>
14979         * predict.c (set_even_probabilities): Handle unlikely edges.
14980         (combine_predictions_for_bb): Likewise.
14982 2016-07-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
14984         PR target/71869
14985         * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
14986         __float128 support when we don't have hardware support, so that
14987         the IEEE built-in functions like isgreater, first call __unordkf3
14988         to make sure neither operand is a NaN, and if both operands are
14989         ordered, do the normal comparison.
14991 2016-07-26  Patrick Palka  <ppalka@gcc.gnu.org>
14993         * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
14994         name.
14995         (extract_code_and_val_from_cond_with_ops): Verify that name is
14996         either cond_op0 or cond_op1.
14998 2016-07-26  Patrick Palka  <ppalka@gcc.gnu.org>
15000         PR tree-optimization/18046
15001         * genmodes.c (emit_mode_size_inline): Emit an assert that
15002         verifies that mode is a valid array index.
15003         (emit_mode_nuinits_inline): Likewise.
15004         (emit_mode_inner_inline): Likewise.
15005         (emit_mode_unit_size_inline): Likewise.
15006         (emit_mode_unit_precision_inline): Likewise.
15007         * tree-vrp.c: Include params.h.
15008         (find_switch_asserts): Register edge assertions for the default
15009         label which correspond to the anti-ranges of each case label.
15010         * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
15011         * doc/invoke.texi: Document it.
15013 2016-07-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15015         * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
15016         and unnecessary call to gimple_bb.
15018 2016-07-26  Richard Biener  <rguenther@suse.de>
15020         PR rtl-optimization/71984
15021         * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
15022         for VOIDmode.
15024 2016-07-26  Richard Biener  <rguenther@suse.de>
15026         PR middle-end/72517
15027         * expmed.c (extract_bit_field_1): Constrain the vector mode
15028         with element size matching the extraction mode size when
15029         choosing a better vector mode to do the extraction from.
15031 2016-07-26  Richard Biener  <rguenther@suse.de>
15032             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
15034         PR middle-end/70920
15035         * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
15036         pattern.
15038 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15040         * tree-ssa-structalias.c (struct scc_info): Change types of
15041         members to auto_sbitmap and auto_vec.
15042         (scc_info::scc_info): New constructor.
15043         (scc_info::~scc_info): New destructor.
15044         (init_scc_info): Remove.
15045         (free_scc_info): Remove.
15046         (find_indirect_cycles): Adjust.
15047         (perform_var_substitution): Likewise.
15048         (free_var_substitution_info): Likewise.
15050 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15052         * tree-outof-ssa.c (struct elim_graph): Change type of members
15053         to auto_vec and auto_sbitmap.
15054         (elim_graph::elim_graph): New constructor.
15055         (delete_elim_graph): Remove.
15056         (expand_phi_nodes): Adjust.
15058 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15060         * tree-outof-ssa.c (struct elim_graph): Remove typedef.
15061         (new_elim_graph): Adjust.
15062         (clear_elim_graph): Likewise.
15063         (delete_elim_graph): Likewise.
15064         (elim_graph_size): Likewise.
15065         (elim_graph_add_node): Likewise.
15066         (elim_graph_add_edge): Likewise.
15067         (elim_graph_remove_succ_edge): Likewise.
15068         (eliminate_name): Likewise.
15069         (eliminate_build): Likewise.
15070         (elim_forward): Likewise.
15071         (elim_unvisited_predecessor): Likewise.
15072         (elim_backward): Likewise.
15073         (elim_create): Likewise.
15074         (eliminate_phi): Likewise.
15075         (expand_phi_nodes): Likewise.
15077 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15079         * bt-load.c (compute_out): Use auto_sbitmap class.
15080         (link_btr_uses): Likewise.
15081         * cfganal.c (mark_dfs_back_edges): Likewise.
15082         (post_order_compute): Likewise.
15083         (inverted_post_order_compute): Likewise.
15084         (pre_and_rev_post_order_compute_fn): Likewise.
15085         (single_pred_before_succ_order): Likewise.
15086         * cfgexpand.c (pass_expand::execute): Likewise.
15087         * cfgloop.c (verify_loop_structure): Likewise.
15088         * cfgloopmanip.c (fix_bb_placements): Likewise.
15089         (remove_path): Likewise.
15090         (update_dominators_in_loop): Likewise.
15091         * cfgrtl.c (break_superblocks): Likewise.
15092         * ddg.c (check_sccs): Likewise.
15093         (create_ddg_all_sccs): Likewise.
15094         * df-core.c (df_worklist_dataflow): Likewise.
15095         * dse.c (dse_step3): Likewise.
15096         * except.c (eh_region_outermost): Likewise.
15097         * function.c (thread_prologue_and_epilogue_insns): Likewise.
15098         * gcse.c (prune_expressions): Likewise.
15099         (prune_insertions_deletions): Likewise.
15100         * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
15101         * graph.c (draw_cfg_nodes_no_loops): Likewise.
15102         * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
15103         * lcm.c (compute_earliest): Likewise.
15104         (compute_farthest): Likewise.
15105         * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
15106         (unroll_loop_runtime_iterations): Likewise.
15107         (unroll_loop_stupid): Likewise.
15108         * lower-subreg.c (decompose_multiword_subregs): Likewise.
15109         * lra-lives.c: Likewise.
15110         * lra.c (lra): Likewise.
15111         * modulo-sched.c (schedule_reg_moves): Likewise.
15112         (optimize_sc): Likewise.
15113         (get_sched_window): Likewise.
15114         (sms_schedule_by_order): Likewise.
15115         (check_nodes_order): Likewise.
15116         (order_nodes_of_sccs): Likewise.
15117         (order_nodes_in_scc): Likewise.
15118         * recog.c (split_all_insns): Likewise.
15119         * regcprop.c (pass_cprop_hardreg::execute): Likewise.
15120         * reload1.c (reload): Likewise.
15121         * sched-rgn.c (haifa_find_rgns): Likewise.
15122         (split_edges): Likewise.
15123         (compute_trg_info): Likewise.
15124         * sel-sched.c (init_seqno): Likewise.
15125         * store-motion.c (remove_reachable_equiv_notes): Likewise.
15126         * tree-into-ssa.c (update_ssa): Likewise.
15127         * tree-ssa-live.c (live_worklist): Likewise.
15128         * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
15129         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
15130         * Likewise.
15131         (try_peel_loop): Likewise.
15132         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
15133         * Likewise.
15134         * tree-ssa-pre.c (compute_antic): Likewise.
15135         * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
15136         * tree-stdarg.c (reachable_at_most_once): Likewise.
15137         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
15138         * var-tracking.c (vt_find_locations): Likewise.
15140 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15142         * sbitmap.h (auto_sbitmap): New class.
15144 2016-07-26  Alan Modra  <amodra@gmail.com>
15146         PR target/72103
15147         * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
15148         sri->t_icode.
15150 2016-07-25  David Malcolm  <dmalcolm@redhat.com>
15152         * input.c (selftest::temp_source_file::temp_source_file): Fix
15153         missing "%s" in fprintf.
15155 2016-07-25  John David Anglin  <danglin@gcc.gnu.org>
15157         PR middle-end/71732
15158         * cselib.c (cselib_process_insn): Invalidate argument slots for
15159         const/pure calls.
15161 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
15163         * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
15164         vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
15165         vmulxh_lane_f16, vmulxh_laneq_f16): New.
15167 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
15169         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
15170         * config/aarch64/aarch64.md (fma, fnma): Support HF.
15171         * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
15173 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
15175         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
15176         * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
15177         New.
15178         (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
15179         (add<mode>3): Likewise.
15180         (sub<mode>3): Likewise.
15181         (mul<mode>3): Likewise.
15182         (div<mode>3): Likewise.
15183         (*div<mode>3): Likewise.
15184         (<fmaxmin><mode>3): Extend to HF.
15185         * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
15186         (fabd<mode>3): Likewise.
15187         (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
15188         (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
15189         (aarch64_fmulx<mode>): Likewise.
15190         (aarch64_fac<optab><mode>): Likewise.
15191         (aarch64_frecps<mode>): Likewise.
15192         (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
15193         (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
15194         * config/aarch64/iterators.md (VHSDF_SDF): Delete.
15195         (VSDQ_HSDI): Support HI.
15196         (fcvt_target, FCVT_TARGET): Likewise.
15197         * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
15198         vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
15199         vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
15200         vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
15201         vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
15202         vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
15203         vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
15204         vrsqrtsh_f16): New.
15206 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
15208         * config.gcc (aarch64*-*-*): Install arm_fp16.h.
15209         * config/aarch64/aarch64-builtins.c (hi_UP): New.
15210         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
15211         * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
15212         mode.
15213         (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
15214         (aarch64_cm<optab><mode>): Likewise.
15215         * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
15216         (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
15217         (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
15218         (sqrt<mode>2): Likewise.
15219         (*sqrt<mode>2): Likewise.
15220         (abs<mode>2): Likewise.
15221         (<optab><mode>hf2): New pattern for HF mode.
15222         (<optab>hihf2): Likewise.
15223         * config/aarch64/arm_neon.h: Include arm_fp16.h.
15224         * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
15225         (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
15226         Support HF mode.
15227         * config/aarch64/arm_fp16.h: New file.
15228         (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
15229         vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
15230         vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
15231         vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
15232         vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
15233         vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
15234         vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
15235         vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
15236         vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
15237         vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
15238         vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
15239         vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
15240         vsqrth_f16): New.
15242 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
15244         * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
15245         reduc_smin_scal_): Use VDQIF_F16.
15246         (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
15247         * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
15248         Use VHSDF.
15249         (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
15250         * config/aarch64/iterators.md (VDQIF_F16): New.
15251         (vp): Support HF modes.
15252         * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
15253         vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
15255 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
15257         * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
15258         "*aarch64_mulx_elt_from_dup<mode>".
15259         (*aarch64_mul3_elt<mode>): Update schedule type.
15260         (*aarch64_mul3_elt_from_dup<mode>): Likewise.
15261         (*aarch64_fma4_elt_from_dup<mode>): Likewise.
15262         (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
15263         * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
15264         (f, fp): Support HF modes.
15265         * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
15266         vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
15267         vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
15268         vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
15269         vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
15270         vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
15272 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
15274         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
15275         * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
15276         modes.
15277         * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
15278         vfmsq_f16): New.
15280 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
15282         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
15283         * config/aarch64/aarch64-simd.md
15284         (aarch64_rsqrts<mode>): Extend to HF modes.
15285         (fabd<mode>3): Likewise.
15286         (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
15287         (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
15288         (aarch64_<maxmin_uns>p<mode>): Likewise.
15289         (<su><maxmin><mode>3): Likewise.
15290         (<maxmin_uns><mode>3): Likewise.
15291         (<fmaxmin><mode>3): Likewise.
15292         (aarch64_faddp<mode>): Likewise.
15293         (aarch64_fmulx<mode>): Likewise.
15294         (aarch64_frecps<mode>): Likewise.
15295         (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
15296         (add<mode>3): Extend to HF modes.
15297         (sub<mode>3): Likewise.
15298         (mul<mode>3): Likewise.
15299         (div<mode>3): Likewise.
15300         (*div<mode>3): Likewise.
15301         * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
15302         HF, V4HF and V8HF.
15303         * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
15304         * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
15305         vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
15306         vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
15307         vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
15308         vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
15309         vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
15310         vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
15311         vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
15312         vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
15313         vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
15314         vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
15315         vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
15316         vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
15318 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
15320         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
15321         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
15322         * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
15323         (neg<mode>2): Likewise.
15324         (abs<mode>2): Likewise.
15325         (<frint_pattern><mode>2): Likewise.
15326         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
15327         (<optab><VDQF:mode><fcvt_target>2): Likewise.
15328         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
15329         (ftrunc<VDQF:mode>2): Likewise.
15330         (<optab><fcvt_target><VDQF:mode>2): Likewise.
15331         (sqrt<mode>2): Likewise.
15332         (*sqrt<mode>2): Likewise.
15333         (aarch64_frecpe<mode>): Likewise.
15334         (aarch64_cm<optab><mode>): Likewise.
15335         * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
15336         HF, V4HF and V8HF.
15337         * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
15338         (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
15339         (stype): New.
15340         * config/aarch64/arm_neon.h (vdup_n_f16): New.
15341         (vdupq_n_f16): Likewise.
15342         (vld1_dup_f16): Use vdup_n_f16.
15343         (vld1q_dup_f16): Use vdupq_n_f16.
15344         (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
15345         vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
15346         vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
15347         vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
15348         vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
15349         vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
15350         vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
15351         vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
15352         vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
15353         vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
15354         vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
15355         vsqrt_f16, vsqrtq_f16): New.
15357 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
15359         * config/aarch64/aarch64-simd.md
15360         (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
15361         (aarch64_ext<mode>): Likewise.
15362         (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
15363         * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
15364         aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
15365         and V8HFmode.
15366         * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
15367         float16x8_t.
15368         (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
15369         __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
15370         vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
15371         vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
15372         vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
15373         vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
15374         vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
15375         New.
15376         (vmov_n_f16): Reimplement using vdup_n_f16.
15377         (vmovq_n_f16): Reimplement using vdupq_n_f16..
15379 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
15381         * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
15382         "frame_related_p".  Generate CFA annotation when it's necessary.
15383         (aarch64_expand_prologue): Use aarch64_add_constant.
15384         (aarch64_expand_epilogue): Likewise.
15385         (aarch64_output_mi_thunk): Pass "false" when calling
15386         aarch64_add_constant.
15388 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
15390         * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
15391         sequences.
15393 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
15395         * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
15396         Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
15397         (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
15398         (aarch64_build_constant): Delete.
15400 2016-07-25  Alexander Monakov  <amonakov@ispras.ru>
15402         Revert
15403         2016-07-20  Alexander Monakov  <amonakov@ispras.ru>
15405         * config/nvptx/nvptx.c (nvptx_option_override): Do not set
15406         flag_toplevel_reorder.
15408 2016-07-25  Richard Biener  <rguenther@suse.de>
15410         * cgraph.c (cgraph_node::verify_node): Compare against builtin
15411         by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
15412         * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
15413         * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
15414         (streamer_get_builtin_tree): Likewise.
15415         (streamer_write_builtin): Likewise.
15416         * lto-streamer.h (LTO_builtin_decl): Remove.
15417         * lto-streamer-in.c (lto_read_tree_1): Remove assert.
15418         (lto_input_scc): Remove LTO_builtin_decl handling.
15419         (lto_input_tree_1): Liekwise.
15420         * lto-streamer-out.c (lto_output_tree_1): Remove special
15421         handling of builtins.
15422         (DFS::DFS): Likewise.
15423         * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
15424         * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
15425         assert.
15426         (streamer_write_builtin): Remove.
15428 2016-07-25  Martin Liska  <mliska@suse.cz>
15430         * lto-cgraph.c (input_symtab): Don't call get_working_sets
15431         if flag_auto_profile is set to true.
15433 2016-07-25  Martin Liska  <mliska@suse.cz>
15435         PR gcov-profile/71868
15436         * cfgloopanal.c (expected_loop_iterations_unbounded): When we
15437         have a function with multiple latches, count them all.
15439 2016-07-25  Martin Liska  <mliska@suse.cz>
15441         * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
15443 2016-07-25  Martin Liska  <mliska@suse.cz>
15445         PR tree-optimization/71987
15446         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
15447         just for SSA_NAMEs. Fix GNU coding style.
15449 2016-07-25  Martin Liska  <mliska@suse.cz>
15451         PR gcov-profile/64874
15452         * gcov-io.h: Update command about file format.
15453         * gcov-iov.c (main): Adapt the numbering scheme.
15455 2016-07-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
15457         PR middle-end/66726
15458         * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
15459         whose result is used in PHI.
15460         (final_range_test_p): Likewise.
15461         (maybe_optimize_range_tests): Likewise.
15463 2016-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
15465         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15466         Reformat two multi-line strings.
15468 2016-07-22  Martin Sebor  <msebor@redhat.com>
15470         * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
15472 2016-07-22  Martin Sebor  <msebor@redhat.com>
15474         PR c/71560
15475         * doc/extend.texi (Compound Literals): Correct and clarify.
15476         (Cast to Union): Same.
15478 2016-07-22  Kelvin Nilsen  <kelvin@gcc.gnu.org>
15480         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
15481         comments to explain why certain error messages make mention of
15482         undocumented options.
15483         (rs6000_invalid_builtin): Change error messages to replace mention
15484         of undocumented options with mention of the -mcpu=power9 option
15485         that enables those undocumented options.
15486         * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
15487         (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
15488         definition of this macro to correct an existing error.
15489         * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
15490         mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
15491         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
15492         descriptions of built-in functions so that they depend on
15493         -mcpu=power9 instead of on the corresponding undocumented flags.
15494         * doc/invoke.texi (Option Summary):  Remove all mention of newly
15495         undocumented flags.
15496         (IBM RS/6000 and PowerPC Options): Likewise.
15497         * doc/md.texi (Constraints for Particuliar Machines): Remove all
15498         mention of newly undocumented flags.
15500 2016-07-22  Evgeny Stupachenko  <evstupac@gmail.com>
15502         * ipa-cp.c (determine_versionability): Do not create constprop clones,
15503         when target_clones attribute is set.
15505 2016-07-22  Bin Cheng  <bin.cheng@arm.com>
15507         * common.opt (funsafe-loop-optimizations): Mark ignore.
15508         * doc/invoke.texi (funsafe-loop-optimizations): Remove.
15509         * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
15510         related code.
15511         * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
15512         * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
15514 2016-07-22  Bin Cheng  <bin.cheng@arm.com>
15516         * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
15517         Parameter.
15518         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
15519         Parameter.
15520         (number_of_iterations_exit): Warn missed loop optimization for
15521         possible infinite loops.
15523 2016-07-22  Segher Boessenkool  <segher@kernel.crashing.org>
15525         PR target/71216
15526         * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
15527         when to emit a ".machine" pseudo-op.
15529 2016-07-22  Martin Liska  <mliska@suse.cz>
15531         PR gcov-profile/69028
15532         PR gcov-profile/62047
15533         * coverage.c (coverage_compute_lineno_checksum): Do not
15534         calculate checksum for fns w/o xloc.file.
15535         (coverage_compute_profile_id): Likewise.
15537 2016-07-22  Georg-Johann Lay  <avr@gjlay.de>
15539         * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
15540         (avr_secondary_reload): ...and implementation.
15541         (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
15542         * config/avr/avr.md (reload_in<mode>): Remove insns.
15543         (adjust_len) [lpm]: Remove insn attribute value.
15544         * config/avr/predicates.md (flash_operand): Remove insn predicate.
15546 2016-07-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15548         PR middle-end/71876
15549         * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
15550         attribute.
15551         * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
15552         * calls.c (special_function_p): Remove the special handling of the
15553         "__builtin_" prefix.
15555 2016-07-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15557         PR middle-end/71876
15558         * calls.c (gimple_maybe_alloca_call_p): New function.  Return true
15559         if STMT may be an alloca call.
15560         (gimple_alloca_call_p, alloca_call_p): Return only true for the
15561         builtin alloca call.
15562         * calls.h (gimple_maybe_alloca_call_p): New function.
15563         * tree-inline.c (inline_forbidden_p_stmt): Use
15564         gimple_maybe_alloca_call_p here.
15566 2016-07-21  David Malcolm  <dmalcolm@redhat.com>
15568         * spellcheck-tree.c (best_macro_match::best_macro_match):
15569         Explictly specify the template arguments when invoking the base
15570         class constructor, to help older C++ compilers.
15572 2016-07-21  Jakub Jelinek  <jakub@redhat.com>
15574         PR sanitizer/71953
15575         * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
15576         before builtin_decl_implicit.
15578 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
15580         * optabs.c (emit_condiitonal_move): Short circuit for identical
15581         sources.
15583 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
15585         * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
15586         max_seq_cost.  Removed fields: then_cost, else_cost, branch_cost.
15587         (noce_conversion_profitable_p): New.
15588         (noce_try_store_flag_constants): Use it.
15589         (noce_try_addcc): Likewise.
15590         (noce_try_store_flag_mask): Likewise.
15591         (noce_try_cmove): Likewise.
15592         (noce_try_cmove_arith): Likewise.
15593         (bb_valid_for_noce_process_p): Add to the cost parameter rather than
15594         overwriting it.
15595         (noce_convert_multiple_sets): Move cost model to here, from...
15596         (bb_ok_for_noce_convert_multiple_sets) ...here.
15597         (noce_process_if_block): Update calls for above changes.
15598         (noce_find_if_block): Record new noce_if_info parameters.
15600 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
15602         * target.def (max_noce_ifcvt_seq_cost): New.
15603         * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
15604         * doc/tm.texi: Regenerate.
15605         * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
15606         * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
15607         * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
15608         (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
15609         * doc/invoke.texi: Document new params.
15611 2016-07-21  Richard Biener  <rguenther@suse.de>
15613         PR tree-optimization/71947
15614         * tree-vrp.c (extract_range_from_assert): Singleton symbolic
15615         ranges have useful limit_vr information.
15617 2016-07-21  Richard Biener  <rguenther@suse.de>
15619         * function-tests.c (build_trivial_generic_function): Set
15620         BLOCK_SUPERCONTEXT of DECL_INITIAL.
15621         * omp-low.c (create_omp_child_function): Likewise.
15622         (grid_expand_target_grid_body): Likewise.
15623         * cgraphunit.c (init_lowered_empty_function): Likewise.
15624         (cgraph_node::expand_thunk): Likewise.
15625         * tree-parloops.c (create_loop_fn): Likewise.
15626         * ipa.c (cgraph_build_static_cdtor_1): Likewise.
15628 2016-07-21  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
15630         * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
15631         in comment.
15633 2016-07-21  Georg-Johann Lay  <avr@gjlay.de>
15635         * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
15636         (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
15637         (*insv.xor-extract, *insv.xor1-bit.0): New insns.
15638         (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
15639         values for insn attribute.
15640         * config/avr/avr.c (avr_out_insert_notbit): New function.
15641         (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
15642         ADJUST_LEN_INSV_NOTBIT_0/_7.
15643         * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
15645 2016-07-21  Bin Cheng  <bin.cheng@arm.com>
15647         * tree-chrec.c (convert_affine_scev): New parameter.  Pass new arg.
15648         (chrec_convert_1, chrec_convert): Ditto.
15649         * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
15650         * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
15651         * tree-vrp.c (adjust_range_with_scev): Ditto.
15652         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
15653         (scev_var_range_cant_overflow): New function.
15654         (scev_probably_wraps_p): New parameter.  Call above function.
15655         * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
15657 2016-07-21  Bin Cheng  <bin.cheng@arm.com>
15659         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
15660         by removing computation of may_be_zero.
15662 2016-07-21  Jakub Jelinek  <jakub@redhat.com>
15664         * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
15666 2016-07-21  Andrew Sutton  <andrew.n.sutton@gmail.com>
15668         Improving concepts performance and diagnostics.
15669         * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
15670         for constraint satisfaction and subsumption.
15671         * timevar.h (auto_timevar): New constructor that matches the push/pop
15672         pattern of usage in pt.c.
15674 2016-07-20  Uros Bizjak  <ubizjak@gmail.com>
15676         * hwint.h (HOST_WIDE_INT_0): New define.
15677         (HOST_WIDE_INT_0U): Ditto.
15678         * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
15679         * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
15680         * simplify-rtx.c: Ditto.
15681         * tree-object-size.c: Ditto.
15683 2016-07-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15685         * config/s390/s390.c (s390_encode_section_info): Remove mode size
15686         check.
15688 2016-07-20  Uros Bizjak  <ubizjak@gmail.com>
15690         * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
15691         * combine.c: Use HOST_WIDE_INT_M1U instead of
15692         ~(unsigned HOST_WIDE_INT) 0.
15693         * double-int.h: Ditto.
15694         * dse.c: Ditto.
15695         * dwarf2asm.c:Ditto.
15696         * expmed.c: Ditto.
15697         * genmodes.c: Ditto.
15698         * match.pd: Ditto.
15699         * read-rtl.c: Ditto.
15700         * tree-ssa-loop-ivopts.c: Ditto.
15701         * tree-ssa-loop-prefetch.c: Ditto.
15702         * tree-vect-generic.c: Ditto.
15703         * tree-vect-patterns.c: Ditto.
15704         * tree.c: Ditto.
15706 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
15708         * config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
15709         constant addresses outside [0,0xc0] into a register.
15710         (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn.  And handle
15711         cases where the base address register is unused after.
15712         (avr_out_movhi_r_mr_reg_disp_tiny): Same.
15713         (avr_out_movhi_mr_r_reg_disp_tiny): Same.
15714         (avr_out_store_psi_reg_disp_tiny): Same.
15716 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
15718         Implement attribute progmem on reduced Tiny cores by adding
15719         flash offset 0x4000 to respective symbols.
15721         PR target/71948
15722         * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
15723         documentation how it works on reduced Tiny cores.
15724         (AVR Named Address Spaces): No support for reduced Tiny.
15725         * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
15726         (avr_address_tiny_pm_p): New static function.
15727         (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
15728         if the address is in progmem.
15729         (avr_assemble_integer): Same.
15730         (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
15731         for symbol_ref in progmem.
15732         * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
15733         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
15734         magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
15736 2016-07-20  Patrick Palka  <ppalka@gcc.gnu.org>
15738         * configure.ac (thin_archive_support): New variable.  AC_SUBST it.
15739         * configure: Regenerate.
15740         * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
15741         (USE_THIN_ARCHIVES): New variable.
15742         (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
15743         this archive as a thin archive.
15745 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
15747         * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
15748         same location as last time, don't skip if we have fix-it hints.
15749         Clarify the skipping logic by converting it from one "if" clause
15750         to repeated "if" clauses.
15751         * spellcheck-tree.c: Include "cpplib.h".
15752         (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
15753         (best_macro_match::best_macro_match): New constructor.
15754         * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
15755         Move here from c/c-decl.c.
15756         (class best_macro_match): Move here from c/c-decl.c, converting
15757         from a typedef to a subclass, gaining a ctor.
15759 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
15761         * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
15762         * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
15763         define...
15764         (avr_addr_space_diagnose_usage): ...and implementation.
15765         (avr_addr_space_supported_p): New function.
15766         (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
15767         report bad address space usage if that space is supported.
15768         (avr_insert_attributes): Same.  No more complain about unsupported
15769         address spaces.
15770         * config/avr/avr-c.c (tm_p.h): Include it.
15771         (avr_cpu_cpp_builtins): Only define addr-space related built-in
15772         macro if avr_addr_space_supported_p.
15774 2016-07-20  Alexander Monakov  <amonakov@ispras.ru>
15776         * config/nvptx/nvptx.c (nvptx_option_override): Do not set
15777         flag_toplevel_reorder.
15779 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
15781         * gcc-rich-location.c
15782         (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
15783         a const char *.
15784         * gcc-rich-location.h
15785         (gcc_rich_location::add_fixit_misspelled_id): Likewise.
15787 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
15789         * target.def (addr_space): Add new diagnose_usage to hook vector.
15790         * targhooks.c (default_addr_space_diagnose_usage): Add default
15791         implementation and...
15792         * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
15793         * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
15794         is some address space, call targetm.addr_space.diagnose_usage.
15795         * doc/tm.texi.in (Named Address Spaces): Add anchor for
15796         TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
15797         * doc/tm.texi: Regenerate.
15799 2016-07-20  Martin Liska  <mliska@suse.cz>
15801         PR middle-end/71898
15802         * graphite-isl-ast-to-gimple.c (later_of_the_two):
15803         Properly handly PHI stmts.
15805 2016-07-20  Bin Cheng  <bin.cheng@arm.com>
15807         PR tree-optimization/71503
15808         PR tree-optimization/71683
15809         * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
15810         and break.
15812 2016-07-20  Martin Liska  <mliska@suse.cz>
15814         * doc/invoke.texi (-fipa-ra): Document when the option is
15815         disabled. Fix a typo.
15817 2016-07-20  Martin Liska  <mliska@suse.cz>
15819         * Makefile.in: Include fibonacci_heap.c
15820         * fibonacci_heap.c: New file.
15821         * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
15822         (fibonacci_heap::union_with): Fix deletion of the second heap.
15823         * selftest-run-tests.c (selftest::run_tests): Incorporate
15824         fibonacci heap tests.
15825         * selftest.h: Declare fibonacci_heap_c_tests.
15827 2016-07-20  Martin Liska  <mliska@suse.cz>
15829         * selftest-run-tests.c (selftest::run_tests): New function.
15830         * selftest.h (sreal_c_tests): Declare.
15831         * sreal.c (sreal_verify_basics): New function.
15832         (verify_aritmetics): Likewise.
15833         (sreal_verify_arithmetics): Likewise.
15834         (verify_shifting): Likewise.
15835         (sreal_verify_shifting): Likewise.
15836         (void sreal_c_tests): Likewise.
15838 2016-07-19  Jakub Jelinek  <jakub@redhat.com>
15840         PR rtl-optimization/71916
15841         * cfgrtl.c (contains_no_active_insn_p): Return false also for
15842         bb which have a single succ fake edge.
15844 2016-07-19  Aldy Hernandez  <aldyh@redhat.com>
15846         PR debug/71855
15847         * dwarf2out.c (gen_subprogram_die): Only call
15848         gen_unspecified_parameters_die while dumping early dwarf.
15850 2016-07-19  Jakub Jelinek  <jakub@redhat.com>
15852         PR middle-end/71874
15853         * gimple-fold.c (fold_builtin_memory_op): Use
15854         get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
15856 2016-07-19  Uros Bizjak  <ubizjak@gmail.com>
15858         * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
15859         HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
15860         HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
15861         HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
15862         * combine.c: Ditto.
15863         * cse.c: Ditto.
15864         * dojump.c: Ditto.
15865         * double-int.c: Ditto.
15866         * dse.c: Ditto.
15867         * dwarf2out.c: Ditto.
15868         * expmed.c: Ditto.
15869         * expr.c: Ditto.
15870         * fold-const.c: Ditto.
15871         * function.c: Ditto.
15872         * fwprop.c: Ditto.
15873         * genmodes.c: Ditto.
15874         * hwint.c: Ditto.
15875         * hwint.h: Ditto.
15876         * ifcvt.c: Ditto.
15877         * loop-doloop.c: Ditto.
15878         * loop-invariant.c: Ditto.
15879         * loop-iv.c: Ditto.
15880         * match.pd: Ditto.
15881         * optabs.c: Ditto.
15882         * real.c: Ditto.
15883         * reload.c: Ditto.
15884         * rtlanal.c: Ditto.
15885         * simplify-rtx.c: Ditto.
15886         * stor-layout.c: Ditto.
15887         * toplev.c: Ditto.
15888         * tree-ssa-loop-ivopts.c: Ditto.
15889         * tree-vect-generic.c: Ditto.
15890         * tree-vect-patterns.c: Ditto.
15891         * tree.c: Ditto.
15892         * tree.h: Ditto.
15893         * ubsan.c: Ditto.
15894         * varasm.c: Ditto.
15895         * wide-int-print.cc: Ditto.
15896         * wide-int.cc: Ditto.
15897         * wide-int.h: Ditto.
15899 2016-07-19  David Malcolm  <dmalcolm@redhat.com>
15901         * selftest.c (selftest::assert_streq): Handle NULL values of
15902         val_actual and val_expected.
15904 2016-07-19  Martin Jambor  <mjambor@suse.cz>
15906         PR fortran/71688
15907         * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
15908         rather than cgraph_create_node to get a call graph node.
15910 2016-07-19  Richard Biener  <rguenther@suse.de>
15912         * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
15913         handle all tcc_constant bases and valueize SSA names.
15914         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
15915         tcc_constant bases.
15917 2016-07-19  David Malcolm  <dmalcolm@redhat.com>
15919         * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
15920         the flags of the exit block and bb2, not just the entry block.
15922 2016-07-19  Richard Biener  <rguenther@suse.de>
15924         PR tree-optimization/71901
15925         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
15926         align member, group stuff with the bitfield.
15927         (vn_ref_op_align_unit): New inline.
15928         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
15929         record element alignment and operand 3 unchanged.
15930         (ao_ref_init_from_vn_reference): Adjust.
15931         (valueize_refs_1): Likewise.
15932         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
15934 2016-07-19  Richard Biener  <rguenther@suse.de>
15936         PR tree-optimization/71908
15937         * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
15938         symbolic constants in a more reliable way.
15940 2016-07-19  Ilya Enkovich  <ilya.enkovich@intel.com>
15942         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
15943         comment.
15944         (vect_update_inits_of_drs): Likewise.
15945         (vect_create_cond_for_alias_checks): Likewise.
15946         * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
15948 2016-07-19  Richard Biener  <rguenther@suse.de>
15950         PR lto/71907
15951         * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
15952         with an abstract origin that is not an inlined function outer
15953         scope add a self-reference as abstract origin.
15954         * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
15956 2016-07-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
15958         PR target/71493
15959         * config/rs6000/rs6000.c (rs6000_function_value): Fix
15960         unintentional System V.4 structure return breakage for structures
15961         with a single floating point element.
15963 2016-07-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
15965         PR tree-optimization/71734
15966         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
15967         contains REF, use it to check safelen, assume that safelen value
15968         must be greater 1, fix style.
15969         (ref_indep_loop_p_2): Add REF_LOOP argument.
15970         (ref_indep_loop_p): Pass LOOP as additional argument to
15971         ref_indep_loop_p_2.
15973 2016-07-18  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15975         * cfgexpand.c (expand_stack_vars): Implement synamic stack space
15976         allocation in the prologue.
15977         * explow.c (get_dynamic_stack_base): New function to return an address
15978         expression for the dynamic stack base.
15979         (get_dynamic_stack_size): New function to do the required dynamic stack
15980         space size calculations.
15981         (allocate_dynamic_stack_space): Use new functions.
15982         (align_dynamic_address): Move some code from
15983         allocate_dynamic_stack_space to new function.
15984         * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
15986 2016-07-18  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15988         * config/s390/s390.c (s390_encode_section_info): Always set
15989         notaligned marker if mode size is 0 or no MEM_ALIGN info could be
15990         found.
15992 2016-07-18  Richard Biener  <rguenther@suse.de>
15994         PR tree-optimization/71893
15995         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
15996         for sizetype cast added by array_ref_element_size.
15997         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
15999 2016-07-16  John David Anglin  <danglin@gcc.gnu.org>
16001         * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
16002         register parameters.  Remove code to initialize argument pointer
16003         on TARGET_64BIT.  Optimize call to _mcount when it can be reached
16004         using a pc-relative branch.  Cleanup conditional code.
16005         * config/pa/pa.md (call_mcount): New expander.
16006         (call_mcount_nonpic): New insn.
16007         (call_mcount_pic): New insn and split.
16008         (call_mcount_pic_post_reload): New insn.
16009         (call_mcount_64bit): New insn and split.
16010         (call_mcount_64bit_post_reload): New insn.
16012 2016-07-15  Georg-Johann Lay  <avr@gjlay.de>
16014         * config/avr/predicates.md (const_m255_to_m1_operand): New.
16015         * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
16016         * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
16017         (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
16018         (*usum_widenqihi3, *udiff_widenqihi3)
16019         (*addhi3_zero_extend.const): New combiner insns.
16020         (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
16021         just 1 bit is affected.
16022         * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
16023         (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
16025 2016-07-15  Cesar Philippidis  <cesar@codesourcery.com>
16027         * omp-low.c (lower_omp_target): Mark data clauses with
16028         GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
16029         zero-length subarrays.
16031 2016-07-15  Richard Biener  <rguenther@suse.de>
16033         PR tree-optimization/71881
16034         * tree-loop-distribution.c (destroy_loop): Remove blocks in
16035         reverse DOM order to make debug temp generation happy.
16037 2016-07-15  Richard Biener  <rguenther@suse.de>
16039         PR tree-optimization/71887
16040         * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
16041         verify it is not zero for division / modulo handling.
16042         (value_replacement): Adjust.
16044 2016-07-15  Virendra Pathak  <virendra.pathak@broadcom.com>
16045             Julian Brown  <julian@codesourcery.com>
16047         * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
16048         * config/aarch64/aarch64-cost-tables.h
16049         (vulcan_extra_costs): New variable.
16050         * config/aarch64/aarch64.c
16051         (vulcan_addrcost_table): Likewise.
16052         (vulcan_regmove_cost): Likewise.
16053         (vulcan_vector_cost): Likewise.
16054         (vulcan_branch_cost): Likewise.
16055         (vulcan_tunings): Likewise.
16057 2016-07-15  Alexander Monakov  <amonakov@ispras.ru>
16059         * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
16060         (output_in_order): Loop over undefined variables too.  Output them
16061         via assemble_undefined_decl.  Skip variables that correspond to hard
16062         registers or have value-exprs.
16063         * varpool.c (symbol_table::output_variables): Handle undefined
16064         variables together with defined ones.
16066 2016-07-15  Richard Biener  <rguenther@suse.de>
16068         * tree-ssa-pre.c (get_representative_for): Make sure to return
16069         the value number of SSA names.
16070         (phi_translate_1): get_representative_for cannot return NULL.
16071         (do_pre_regular_insertion): Remove redundant call to
16072         fully_constant_expression.
16073         (do_pre_partial_partial_insertion): Likewise.
16075 2016-07-15  Bin Cheng  <bin.cheng@arm.com>
16077         * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
16078         (derive_simple_iv_with_niters): New function.
16079         (simple_iv): Rewrite using simple_iv_with_niters.
16080         * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
16081         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
16082         function.
16083         (number_of_iterations_exit): Rewrite using above function.
16084         * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
16085         Decl.
16087 2016-07-15  Richard Biener  <rguenther@suse.de>
16089         * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
16090         vec_construct cost.
16092 2016-07-14  Jakub Jelinek  <jakub@redhat.com>
16094         PR tree-optimization/71872
16095         * tree-data-ref.c (get_references_in_stmt): Ignore references
16096         with is_gimple_constant get_base_address.
16098 2016-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16100         * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
16101         (TARGET_HAVE_LDACQD): New macro.
16102         * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
16103         than TARGET_HAVE_LDACQ.
16104         (arm_load_acquire_exclusivedi): Likewise.
16105         (arm_store_release_exclusivedi): Likewise.
16107 2016-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16109         PR rtl-optimization/71878
16110         * lra-constraints.c (match_reload): Pass information about other
16111         output operands.  Create new unique register value if matching input
16112         operand shares same register value as output operand being considered.
16113         (curr_insn_transform): Record output operands already processed.
16115 2016-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16117         PR target/65951
16118         PR tree-optimization/70923
16119         * tree-vect-patterns.c: Include mult-synthesis.h.
16120         (target_supports_mult_synth_alg): New function.
16121         (synth_lshift_by_additions): Likewise.
16122         (apply_binop_and_append_stmt): Likewise.
16123         (vect_synth_mult_by_constant): Likewise.
16124         (target_has_vecop_for_code): Likewise.
16125         (vect_recog_mult_pattern): Use above functions to synthesize vector
16126         multiplication by integer constants.
16128 2016-07-14  Alan Modra  <amodra@gmail.com>
16130         * config/rs6000/altivec.md (altivec_mov<mode>): Disparage
16131         gpr alternatives.  Correct '*' placement on Y,r alternative.
16132         Add '*' on operand 1 of r,r alternative.
16134 2016-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16136         * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
16137         * expmed.h: ... Here.
16139 2016-07-14  Jan Hubicka  <hubicka@ucw.cz>
16141         * gimple.h (stmt_can_terminate_bb_p): New function.
16142         * tree-cfg.c (need_fake_edge_p): Rename to ...
16143         (stmt_can_terminate_bb_p): ... this; return true if stmt can
16144         throw external; handle const and pure calls.
16145         * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
16147 2016-07-14  Richard Biener  <rguenther@suse.de>
16149         PR tree-optimization/71866
16150         * tree-ssa-pre.c (get_constant_for_value_id): Remove.
16151         (do_hoist_insertion): Avoid endless recursion when we
16152         didn't insert anything because we managed to simplify
16153         things down to a constant or SSA name.
16154         (fully_constant_expression): Re-write in terms of ...
16155         * tree-ssa-sccvn.h (vn_nary_simplify): ... this.  Declare.
16156         * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
16157         vn_nary_build_or_lookup_1.
16158         (vn_nary_build_or_lookup_1): Added flag and renamed from ...
16159         (vn_nary_build_or_lookup): ... this which now wraps it.
16161 2016-07-14  Alan Modra  <amodra@gmail.com>
16163         PR target/71733
16164         * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
16165         with p9_vector override before power9-dform override.
16167 2016-07-13  Andi Kleen  <ak@linux.intel.com>
16169         * value-prof.c (gimple_value_profile_transformations): Don't run
16170         when auto_profile is on.
16172 2016-07-13  Andi Kleen  <ak@linux.intel.com>
16174         * auto-profile.c (update_inlined_ind_target,
16175         afdo_indirect_call): Print information to dump file.
16177 2016-07-13  Andrew Burgess  <andrew.burgess@embecosm.com>
16179         * genrecog.c (special_predicate_operand_p): New function.
16180         (predicate_name): Move function.
16181         (validate_pattern): Don't warn about missing mode for all
16182         define_special_predicate predicates.
16184 2016-07-13  Bin Cheng  <bin.cheng@arm.com>
16186         * tree-vect-data-refs.c (vect_no_alias_p): New function.
16187         (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
16188         resolve alias checks which are known at compilation time.
16189         Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
16190         alias checks are resolved.  Move dump info for too many runtime
16191         alias checks to here...
16192         * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
16194 2016-07-13  Richard Biener  <rguenther@suse.de>
16196         PR tree-optimization/24574
16197         * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
16198         position and add shift, rotate, divison and modulo support
16199         for left zero.
16200         (value_replacement): Pass in argument position to absorbing_element_p.
16202 2016-07-13  Ilya Enkovich  <ilya.enkovich@intel.com>
16204         PR ipa/71633
16205         * ipa-inline-transform.c (inline_call): Support
16206         instrumented thunks.
16208 2016-07-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16210         * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
16211         (TARGET_IDIV): Set for all Thumb targets provided they have hardware
16212         divide feature.
16213         * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
16214         Baseline.  Make initial alternative TARGET_32BIT only.
16215         (udivsi3): Likewise.
16216         * config/arm/thumb1.md (thumb1_cbz): New define_insn.
16217         * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
16218         target.
16220 2016-07-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16222         * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
16223         * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
16224         availability with TARGET_HAVE_MOVT.
16225         (thumb_legitimate_constant_p): Strip the high part of a label_ref.
16226         (thumb1_rtx_costs): Also return 0 if setting a half word constant and
16227         MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
16228         UINTVAL.
16229         (thumb1_size_rtx_costs): Make set of half word constant also cost 1
16230         extra instruction if MOVW is available.  Use a cost variable
16231         incremented by COSTS_N_INSNS (1) when the condition match rather than
16232         returning an arithmetic expression based on COSTS_N_INSNS.  Make
16233         constant with bottom half word zero cost 2 instruction if MOVW is
16234         available.
16235         * config/arm/arm.md (define_attr "arch"): Add v8mb.
16236         (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
16237         target is ARMv8-M Baseline.
16238         (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
16239         (arm_movtas_ze): Likewise.
16240         * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
16241         alternative for constants satisfying j constraint.
16242         (thumb1_movsi_insn): Likewise.
16243         (movsi splitter for K alternative): Tighten condition to not trigger
16244         if movt is available and j constraint is satisfied.
16245         (Pe immediate splitter): Likewise.
16246         (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
16247         constant fitting in an halfword to use MOVW.
16248         * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
16249         effective target.
16251 2016-07-13  Richard Biener  <rguenther@suse.de>
16253         PR middle-end/71104
16254         * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
16255         gimplifying the LHS.  Make sure to gimplify a returning twice
16256         call LHS without using SSA names.
16258 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16260         * tree-data-ref.c (find_data_references_in_stmt): Remove
16261         unnecessary call to vec::release.
16262         (graphite_find_data_references_in_stmt): Likewise.
16263         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
16264         * tree-vect-stmts.c (vectorizable_condition): Likewise.
16266 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16268         * cfgexpand.c (expand_used_vars): Make the type of a local
16269         variable auto_vec.
16270         * genmatch.c (lower_for): Likewise.
16271         * haifa-sched.c (haifa_sched_init): Likewise.
16272         (add_to_speculative_block): Likewise.
16273         (create_check_block_twin): Likewise.
16274         * predict.c (handle_missing_profiles): Likewise.
16275         * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
16276         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
16277         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
16278         Likewise.
16279         (maybe_lower_iteration_bound): Likewise.
16280         * tree-ssa-sccvn.c (DFS): Likewise.
16281         * tree-stdarg.c (reachable_at_most_once): Likewise.
16282         * tree-vect-stmts.c (vectorizable_conversion): Likewise.
16283         (vectorizable_store): Likewise.
16285 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16287         * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
16288         (sccvn_dom_walker): make cond_stack an auto_vec.
16290 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16292         * ree.c (struct ext_state): Make type of members auto_vec.
16293         (find_and_remove_re): Adjust.
16295 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16297         * cfgexpand.c (struct stack_vars_data): Make type of fields
16298         auto_vec.
16299         (expand_used_vars): Adjust.
16301 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16303         * ipa.c (record_cdtor_fn): Adjust.
16304         (build_cdtor_fns): Likewise.
16305         (ipa_cdtor_merge): Make static_ctors and static_dtors local
16306         variables.
16308 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16310         * genextract.c (struct accum_extract): Add constructor and make
16311         members auto_vec.
16312         (gen_insn): Adjust.
16314 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16316         * tree.c (struct free_lang_data_d): Add constructor and change
16317         types of members to ones that automatically manage resources.
16318         (fld_worklist_push): Adjust.
16319         (find_decls_types): Likewise.
16320         (find_decls_types_in_eh_region): Likewise.
16321         (free_lang_data_in_cgraph): Stop manually creating and
16322         destroying members of free_lang_data_d.
16324 2016-07-13  Uros Bizjak  <ubizjak@gmail.com>
16326         PR rtl-optimization/68961
16327         * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
16328         peephole variant.  Use sse_reg_operand predicates.
16330 2016-07-12  Uros Bizjak  <ubizjak@gmail.com>
16332         * config/i386/predicates.md (x86_64_immediate_operand)
16333         <case CONST_INT>: Remove unneeded truncation to DImode.
16334         <case CONST>: Ditto.
16335         (x86_64_zext_immediate_operand) <case CONST>: Ditto.
16337 2016-07-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
16339         PR target/71805
16340         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
16341         The xxperm and xxpermr instructions require that the 2nd input
16342         operand overlap with the output operand, and not the 1st.
16343         (altivec_vperm_v8hiv16qi): Likewise.
16344         (altivec_vperm_<mode>_uns_internal): Likewise.
16345         (altivec_vpermr_<mode>_internal): Likewise.
16346         (vperm_v8hiv4si): Likewise.
16347         (vperm_v16qiv8hi): Likewise.
16349 2016-07-12  Nathan Sidwell  <nathan@acm.org>
16351         * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
16352         when -mno-pic-data-is-text-relative is in effect, by default.
16353         * doc/invoke.texi (mpic-data-is-text-relative): Document new
16354         behavior and clarify.
16356 2016-07-12  Martin Liska  <mliska@suse.cz>
16358         * params.def: Add avg-loop niter.
16359         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
16360         * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
16361         * doc/invoke.texi: Document the new parameter.
16363 2016-07-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16365         PR middle-end/71700
16366         * expr.c (store_constructor): Mask sign-extended bits when widening
16367         sub-word constructor element at the start of a word.
16369 2016-07-12  Martin Liska  <mliska@suse.cz>
16371         * Makefile.in: Append rule for params-options.h.
16372         * params-options.h: New file.
16374 2016-07-12  Martin Liska  <mliska@suse.cz>
16376         * ira-build.c (mark_loops_for_removal): Properly iterate
16377         loops.
16379 2016-07-12  Steven Bosscher  <steven@gcc.gnu.org>
16380             Richard Biener  <rguenther@suse.de>
16382         PR tree-optimization/23286
16383         PR tree-optimization/70159
16384         * doc/invoke.texi: Document -fcode-hoisting.
16385         * common.opt (fcode-hoisting): New flag.
16386         * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
16387         * tree-ssa-pre.c (pre_stats): Add hoist_insert.
16388         (do_regular_insertion): Rename to ...
16389         (do_pre_regular_insertion): ... this and amend general comments
16390         on insertion strathegy.
16391         (do_partial_partial_insertion): Rename to ...
16392         (do_pre_partial_partial_insertion): ... this.
16393         (do_hoist_insertion): New function.
16394         (insert_aux): Take flags on whether to do PRE and/or hoist insertion
16395         and call do_hoist_insertion properly.
16396         (insert): Adjust.
16397         (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
16398         (pass_pre::execute): Register hoist_insert stats.
16400 2016-07-12  Jakub Jelinek  <jakub@redhat.com>
16402         PR middle-end/71716
16403         * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
16404         for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
16405         is different from mode's bitsize.  Small cleanup.
16407 2016-07-12  Richard Biener  <rguenther@suse.de>
16409         PR rtl-optimization/68961
16410         * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
16411         to simplify to a non-constant.
16413 2016-07-11  Jakub Jelinek  <jakub@redhat.com>
16415         PR middle-end/71758
16416         * omp-low.c (expand_omp_target): Gimplify device.
16418         PR tree-optimization/71823
16419         * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
16420         to get vec_oprnds2 from op2.
16422 2016-07-11  Uros Bizjak  <ubizjak@gmail.com>
16424         * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
16425         Hoist common subexpressions.
16426         (x86_64_zext_immediate_operand) <case CONST>: Ditto.
16428 2016-07-11  Pat Haugen  <pthaugen@us.ibm.com>
16430         PR target/71800
16431         * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
16432         prevent generation of 'stxsiwx' on pre Power8 hardware.
16434 2016-07-11  David Malcolm  <dmalcolm@redhat.com>
16436         * input.c: Include cpplib.h.
16437         (selftest::temp_source_file): New class.
16438         (selftest::temp_source_file::temp_source_file): New ctor.
16439         (selftest::temp_source_file::~temp_source_file): New dtor.
16440         (selftest::should_have_column_data_p): New function.
16441         (selftest::test_should_have_column_data_p): New function.
16442         (selftest::temp_line_table): New class.
16443         (selftest::temp_line_table::temp_line_table): New ctor.
16444         (selftest::temp_line_table::~temp_line_table): New dtor.
16445         (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
16446         it to create a temp_line_table.
16447         (selftest::assert_loceq): Only verify LOCATION_COLUMN for
16448         locations that are known to have column data.
16449         (selftest::line_table_case): New struct.
16450         (selftest::test_reading_source_line): Move tempfile handling
16451         to class temp_source_file.
16452         (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
16453         (selftest::assert_token_loc_eq): New function.
16454         (ASSERT_TOKEN_LOC_EQ): New macro.
16455         (selftest::test_lexer): New function.
16456         (selftest::boundary_locations): New array.
16457         (selftest::input_c_tests): Call test_should_have_column_data_p.
16458         Loop over a test matrix of interesting values of location and
16459         default_range_bits, calling test_lexer on each case in the matrix.
16460         Move call to test_accessing_ordinary_linemaps into the matrix.
16461         * selftest.h (ASSERT_EQ): Reimplement in terms of...
16462         (ASSERT_EQ_AT): New macro.
16464 2016-07-11  H.J. Lu  <hongjiu.lu@intel.com>
16466         PR target/71801
16467         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
16468         Don't convert TImode in debug insn.
16470 2016-07-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16472         Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
16473         * tree-core.h (tree_base::nothrow_flag): Adjust comment.
16474         (tree_type_common::lang_flag_7): New.
16475         (tree_type_common::spare): Reduce size.
16476         * tree.h (TYPE_ALIGN_OK): Remove.
16477         (TYPE_LANG_FLAG_7): New.
16478         (get_inner_reference): Adjust header.
16479         * print-tree.c (print_node): Adjust.
16480         * expr.c (get_inner_reference): Remove parameter keep_aligning.
16481         (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
16482         calls to get_inner_reference.
16483         (expand_expr_real_1): Adjust call to get_inner_reference.  Remove
16484         handling of TYPE_ALIGN_OK.
16485         * builtins.c (get_object_alignment_2): Adjust call to
16486         get_inner_reference.  Remove handling of VIEW_CONVERT_EXPR.
16487         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
16488         TYPE_ALIGN_OK.
16489         * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
16490         * cfgexpand.c (expand_debug_expr): Likewise.
16491         * dbxout.c (dbxout_expand_expr): Likewise.
16492         * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
16493         loc_list_from_tree, fortran_common): Likewise.
16494         * fold-const.c (optimize_bit_field_compare,
16495         decode_field_reference, fold_unary_loc, fold_comparison,
16496         split_address_to_core_and_offset): Likewise.
16497         * gimple-laddress.c (execute): Likewise.
16498         * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
16499         * gimplify.c (gimplify_scan_omp_clauses): Likewise.
16500         * hsa-gen.c (gen_hsa_addr): Likewise.
16501         * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
16502         * tsan.c (instrument_expr): Likewise.
16503         * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
16504         * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
16505         * tree-affine.c (tree_to_aff_combination,
16506         get_inner_reference_aff): Adjust calls to get_inner_reference.
16507         * tree-data-ref.c (split_constant_offset_1,
16508         dr_analyze_innermost): Likewise.
16509         * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
16510         * tree-sra.c (ipa_sra_check_caller): Likewise.
16511         * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
16512         * tree-ssa-math-opts.c (find_bswap_or_nop_load,
16513         bswap_replace): Likewise.
16514         * tree-vect-data-refs.c (vect_check_gather,
16515         vect_analyze_data_refs): Likewise.
16516         * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
16517         * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
16518         TYPE_ALIGN_OK.
16520 2016-07-11  David Malcolm  <dmalcolm@redhat.com>
16522         * Makefile.in (selftest-valgrind): New phony target.
16523         * function-tests.c (selftest::build_cfg): Delete pass instances
16524         created by the test.
16525         (selftest::convert_to_ssa): Likewise.
16526         (selftest::test_expansion_to_rtl): Likewise.
16527         * tree-cfg.c (selftest::test_linear_chain): Release dominator
16528         vectors.
16529         (selftest::test_diamond): Likewise.
16531 2016-07-11  Richard Biener  <rguenther@suse.de>
16533         PR tree-optimization/71816
16534         * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
16535         than replacing all of its operands.
16537 2016-07-11  Alan Modra  <amodra@gmail.com>
16539         * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
16540         (ctr<mode>): Add unspec.
16541         (ctr<mode>_internal*): Likewise.
16543 2016-07-08  James Bowman  <james.bowman@ftdichip.com>
16545         * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
16546         * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
16548 2016-07-08  Vladimir Makarov  <vmakarov@redhat.com>
16550         PR rtl-optimization/71621
16551         * lra-constraints.c (process_alt_operands): Check combination of
16552         reg class and mode.
16554 2016-07-08  Jason Merrill  <jason@redhat.com>
16555             Richard Biener  <rguenther@suse.de>
16557         P0145: Refining Expression Order for C++.
16558         * gimplify.c (initial_rhs_predicate_for): New.
16559         (gimplfy_modify_expr): Gimplify RHS before LHS.
16561 2016-07-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16563         PR target/71297
16564         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16565         Allow standard error handling to take over when a wrong number
16566         of arguments is presented to __builtin_vec_ld () or
16567         __builtin_vec_st ().
16569 2016-07-08  Jiong Wang  <jiong.wang@arm.com>
16571         * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
16572         variants.
16573         (smin): Likewise.
16574         (fmax): New entry.
16575         (fmin): Likewise.
16576         * config/aarch64/arm_neon.h (vmaxnm_f32): Use
16577         __builtin_aarch64_fmaxv2sf.
16578         (vmaxnmq_f32): Likewise.
16579         (vmaxnmq_f64): Likewise.
16580         (vminnm_f32): Likewise.
16581         (vminnmq_f32): Likewise.
16582         (vminnmq_f64): Likewise.
16584 2016-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
16586         PR target/71806
16587         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
16588         enable -mfloat128-hardware by default.
16589         (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
16590         that IEEE 128-bit hardware support needs.
16591         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
16592         -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
16593         Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
16594         floating point requires.
16595         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
16596         -mfloat128 and -mfloat128-hardware changes.
16598 2016-07-08  Alan Hayward  <alan.hayward@arm.com>
16600         PR tree-optimization/71667
16601         * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
16603 2016-07-08  Martin Liska  <mliska@suse.cz>
16605         PR middle-end/71606
16606         * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
16607         folding produces SAVE_EXPRs, thus return false for the type.
16609 2016-07-07  Martin Liska  <mliska@suse.cz>
16611         * file-find.c (remove_prefix): New function.
16612         * file-find.h (remove_prefix): Declare the function.
16613         * gcc-ar.c (main): Skip a folder of the wrapper if
16614         a wrapped binary would point to the same file.
16616 2016-07-07  Jan Hubicka  <jh@suse.cz>
16618         * tree-scalar-evolution.c (iv_can_overflow_p): export.
16619         * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
16620         * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
16622 2016-07-07  Ilya Enkovich  <ilya.enkovich@intel.com>
16624         PR ipa/71624
16625         * ipa-inline-analysis.c (compute_inline_parameters): Set
16626         local.can_change_signature to false for intrumentation
16627         thunk callees.
16629 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16631         * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
16632         with TARGET_HAVE_MOVT.
16633         (TARGET_HAVE_MOVT): Define.
16634         * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
16635         availability with TARGET_HAVE_MOVT.
16636         * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
16637         availability.
16638         (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
16639         TARGET_THUMB2.
16640         (symbol_refs movsi splitter): Remove TARGET_32BIT check.
16641         (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
16642         * config/arm/constraints.md (define_constraint "j"): Use
16643         TARGET_HAVE_MOVT to check MOVT availability.
16645 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16647         * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
16649 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16651         * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
16652         (armv8-m.main): Likewise.
16653         (armv8-m.main+dsp): Likewise.
16654         * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
16655         (FL_FOR_ARCH8M_MAIN): Likewise.
16656         * config/arm/arm-tables.opt: Regenerate.
16657         * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
16658         armv8-m.main+dsp to BE8_LINK_SPEC.
16659         * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
16660         (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
16661         * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
16662         Baseline and Mainline.
16663         (arm_option_override_internal): Also disable arm_restrict_it when
16664         !arm_arch_notm.  Update comment for -munaligned-access to also cover
16665         ARMv8-M Baseline.
16666         (arm_file_start): Increase buffer size for printing architecture name.
16667         * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
16668         and armv8-m.main+dsp.
16669         (mno-unaligned-access): Clarify that this is disabled by default for
16670         ARMv8-M Baseline architectures as well.
16672 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16674         * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
16675         decide whether to prevent some libgcc routines being included for some
16676         multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
16677         link between this condition and the one in
16678         libgcc/config/arm/lib1func.S.
16680 2016-07-07  Richard Biener  <rguenther@suse.de>
16682         * tree-ssa-pre.c: Include alias.h.
16683         (compute_avail): If we have multiple VN_REFERENCEs with the
16684         same hashtable entry adjust that to make it a valid replacement
16685         for all of them with respect to alignment and aliasing
16686         when doing insertion.
16687         * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
16688         * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
16690 2016-07-06  Segher Boessenkool  <segher@kernel.crashing.org>
16692         PR target/70098
16693         PR target/71763
16694         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
16695         *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
16696         constraint.
16698 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16700         * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
16701         (adjust_mems): Adjust.
16702         (adjust_insn): Likewise.
16703         (prepare_call_arguments): Likewise.
16705 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16707         * gcse.c (struct ls_expr): Make stores field a vector.
16708         (ldst_entry): Adjust.
16709         (free_ldst_entry): Likewise.
16710         (print_ldst_list): Likewise.
16711         (compute_ld_motion_mems): Likewise.
16712         (update_ld_motion_stores): Likewise.
16714 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16716         * gcse.c (struct ls_expr): Remove loads field.
16717         (ldst_entry): Adjust.
16718         (free_ldst_entry): Likewise.
16719         (print_ldst_list): Likewise.
16720         (compute_ld_motion_mems): Likewise.
16722 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16724         * store-motion.c (struct st_expr): Make antic_stores a vector.
16725         (st_expr_entry): Adjust.
16726         (free_st_expr_entry): Likewise.
16727         (print_store_motion_mems): Likewise.
16728         (find_moveable_store): Likewise.
16729         (compute_store_table): Likewise.
16730         (remove_reachable_equiv_notes): Likewise.
16731         (replace_store_insn): Likewise.
16732         (build_store_vectors): Likewise.
16734 2016-07-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16736         * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
16737         cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
16739 2016-07-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
16741         PR tree-optimization/71518
16742         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
16743         misalign also for outer loops with negative step.
16745 2016-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
16747         * config/arm/cortex-a53.md: Use final_presence_set for in-order.
16748         (cortex_a53_shift): Add mov_shift.
16749         (cortex_a53_shift_reg): Add new reservation for register shifts.
16750         (cortex_a53_alu): Remove bfm.
16751         (cortex_a53_alu_shift): Add bfm, remove mov_shift.
16752         (cortex_a53_alu_extr): Add new reservation for EXTR.
16753         (bypasses): Improve bypass modelling.
16755 2016-07-06  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
16757         PR target/50739
16758         * config/avr/avr.c (avr_asm_select_section): Strip off
16759         SECTION_DECLARED from flags when calling get_section.
16761 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
16763         * tree-vectorizer.h (vect_memory_access_type): Add
16764         VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
16765         * tree-vect-stmts.c (compare_step_with_zero): New function.
16766         (perm_mask_for_reverse): Move further up file.
16767         (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
16768         step is negative.
16769         (get_negative_load_store_type): New function.
16770         (get_load_store_type): Call it.  Add an ncopies argument.
16771         (vectorizable_mask_load_store): Update call accordingly and
16772         remove tests for negative steps.
16773         (vectorizable_store, vectorizable_load): Likewise.  Handle new
16774         memory_access_types.
16776 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
16778         * tree-vectorizer.h (vect_memory_access_type): New enum.
16779         (_stmt_vec_info): Add a memory_access_type field.
16780         (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
16781         (vect_model_store_cost): Take an access type instead of a boolean.
16782         (vect_model_load_cost): Likewise.
16783         * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
16784         vect_model_store_cost and vect_model_load_cost.
16785         * tree-vect-stmts.c (vec_load_store_type): New enum.
16786         (vect_model_store_cost): Take an access type instead of a
16787         store_lanes_p boolean.  Simplify tests.
16788         (vect_model_load_cost): Likewise, but for load_lanes_p.
16789         (get_group_load_store_type, get_load_store_type): New functions.
16790         (vectorizable_store): Use get_load_store_type.  Record the access
16791         type in STMT_VINFO_MEMORY_ACCESS_TYPE.
16792         (vectorizable_load): Likewise.
16793         (vectorizable_mask_load_store): Likewise.  Replace is_store
16794         variable with vls_type.
16796 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
16798         * tree-vectorizer.h (vect_grouped_load_supported): Add a
16799         single_element_p parameter.
16800         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
16801         Check the PR65518 case here rather than in vectorizable_load.
16802         * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
16803         * tree-vect-stmts.c (vectorizable_load): Likewise.
16805 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
16807         * tree-vectorizer.h (gather_scatter_info): New structure.
16808         (vect_check_gather_scatter): Return a bool rather than a decl.
16809         Replace return-by-pointer arguments with a single
16810         gather_scatter_info *.
16811         * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
16812         (vect_analyze_data_refs): Update call accordingly.
16813         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
16814         (vectorizable_mask_load_store): Likewise.  Also record the
16815         offset dt and vectype in the gather_scatter_info.
16816         (vectorizable_store): Likewise.
16817         (vectorizable_load): Likewise.
16819 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
16821         * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
16822         strided groups, use the cost of N scalar accesses instead
16823         of ncopies vector accesses.
16824         (vect_model_load_cost): Likewise.
16826 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
16828         * tree-vect-stmts.c (vect_cost_group_size): Delete.
16829         (vect_model_store_cost): Avoid calling it.  Use first_stmt_p
16830         variable to indicate when once-per-group costs are being used.
16831         (vect_model_load_cost): Likewise.  Fix comment and misindented code.
16833 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
16835         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
16836         peeling-for-gaps condition.
16838 2016-07-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16840         * config/s390/s390.c (s390_expand_vec_init): Force initializer
16841         element to register if it doesn't match general_operand.
16843 2016-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
16844             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16846         * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
16847         prototype.
16848         * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
16849         * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
16850         (SIGNBIT): New mode iterator.
16851         (Fsignbit): New mode attribute.
16852         (signbit<mode>2): Change operand1 to match FLOAT128 instead of
16853         IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
16854         when direct moves are available.
16855         (signbit<mode>2_dm): New define_insn_and_split).
16856         (signbit<mode>2_dm2): New define_insn.
16858 2016-07-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16860         PR rtl-optimization/71594
16861         * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
16862         into subregs of appropriate mode before trying to emit a conditional
16863         move.
16865 2016-07-05  Jan Hubicka  <jh@suse.cz>
16867         * tree-scalar-evolution.c (iv_can_overflow_p): New function.
16868         (simple_iv): Use it.
16870 2016-07-05  Jan Hubicka  <jh@suse.cz>
16872         * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
16874 2016-07-05  Jiong Wang  <jiong.wang@arm.com>
16876         * lra-constraints.c (process_alt_operands): Don't add spilling cost for
16877         "offmemok".
16879 2016-07-05  Jan Hubicka  <jh@suse.cz>
16881         * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
16882         IV can overflow.
16884 2016-07-05  Richard Biener  <rguenther@suse.de>
16886         * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
16887         Handle empty else block.
16888         (is_feasible_trace): Likewise.
16889         (split_paths): Likewise.
16891 2016-07-05  Richard Biener  <rguenther@suse.de>
16893         * tree-loop-distribution.c (distribute_loop): Fix issue with
16894         the cost model loop.
16896 2016-07-05  Christophe Lyon  <christophe.lyon@linaro.org>
16898         * config/arm/neon-testgen.ml: Delete.
16899         * config/arm/neon.ml: Delete.
16901 2016-07-04  Jakub Jelinek  <jakub@redhat.com>
16903         PR c++/71739
16904         * tree.c (attribute_value_equal): Use get_attribute_name instead of
16905         directly using TREE_PURPOSE.
16907 2016-07-04  Jiong Wang  <jiong.wang@arm.com>
16909         * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
16910         * config/aarch64/aarch64_neon.h: Likewise.
16911         * config/aarch64/arm_neon.h: Likewise.
16912         * config/aarch64/atomics.md: Likewise.
16913         * config/aarch64/aarch64-simd-builtins.def: Likewise.
16914         * doc/invoke.texi: Likewise.
16916 2016-07-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
16918         * config/s390/s390.md: Add "z13" cpu_facility.
16919         ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
16920         * config/s390/predicates.md ("loc_operand"): New predicate for "load on
16921         condition" type instructions.
16923 2016-07-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
16924             Jeff Law  <law@redhat.com>
16926         * explow.c (allocate_dynamic_stack_space): Simplify knowing that
16927         MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
16929 2016-07-04  Yuri Rumyantsev  <ysrumyan@gmail.com>
16931         * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
16932         permutation for TARGET_AVX512F.
16933         (ix86_expand_vec_one_operand_perm_avx512): New function.
16934         (expand_vec_perm_1): Invoke introduced function.
16935         * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
16936         it may be not valid after vectorization.
16938 2016-07-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16940         PR target/63874
16941         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
16942         typo in comment.  Only force to memory if it is a weak
16943         external reference.
16945 2016-07-04  Matthew Wahab  <matthew.wahab@arm.com>
16946             Jiong Wang  <jiong.wang@arm.com>
16948         * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
16949         * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
16950         (AARCH64_FL_F16): New.
16951         (AARCH64_FL_FOR_ARCH8_2): New.
16952         (AARCH64_ISA_8_2): New.
16953         (AARCH64_ISA_F16): New.
16954         (TARGET_FP_F16INST): New.
16955         (TARGET_SIMD_F16INST): New.
16956         * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
16957         ("fp"): Disabling "fp" also disables "fp16".
16958         * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
16959         Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
16960         and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
16961         * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
16963 2016-07-04  Jan Beulich  <jbeulich@suse.com>
16965         * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
16967 2016-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
16969         PR target/71720
16970         * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
16971         the insns, use an insn form that does not adjust the offset on
16972         little endian systems.
16974 2016-07-01  Jan Beulich  <jbeulich@suse.com>
16976         * varasm.c (get_variable_section): Validate initializer in
16977         named .bss-like sections.
16979 2016-07-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
16981         * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
16982         Exchange the order of the second and third operands in the vpermr
16983         instruction tmeplate.
16985 2016-07-01  Peter Bergner  <bergner@vnet.ibm.com>
16987         PR target/71698
16988         * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
16989         Disallow TDmode values.
16991 2016-07-01  Alan Modra  <amodra@gmail.com>
16993         PR rtl-optimization/71709
16994         * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
16995         being set, not referenced.
16997 2016-07-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
16999         PR tree-optimization/70729
17000         * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
17001         of loop since it can be not valid after transformation.
17003 2016-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17005         * config/arm/arm.c (thumb_reload_in_hi): Delete.
17006         * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
17008 2016-07-01  Eric Botcazou  <ebotcazou@adacore.com>
17010         * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
17011         for NULL decl.
17013 2016-06-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
17015         PR target/71677
17016         * config/rs6000/constraints.md (wY constraint): New constraint to
17017         match the requirements for the LXSD and STXSD instructions.
17018         * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
17019         predicate to match the requirements for the LXSD and STXSD
17020         instructions.
17021         * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
17022         Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
17023         to make sure that the bottom 2 bits of offset are 0, the address
17024         form is offsettable, and no updating is done in the address mode.
17025         (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
17026         (movdi_internal32): Likewise
17027         (movdi_internal64): Likewise.
17029 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
17031         PR tree-optimization/71707
17032         * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
17033         strinfo even for ADDR_EXPR ptr.
17035 2016-06-30  Kelvin Nilsen  <kelvin@gcc.gnu.org>
17037         * config/rs6000/altivec.md (darn_32): Change the condition to
17038         TARGET_P9_MISC instead of TARGET_MODULO.
17039         (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
17040         condition expression.
17041         (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
17042         condition expression.
17043         * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
17044         (DFP_TEST): New code iterator.
17045         (dfptstsfi_<code>_mode>): New define_expand.
17046         (*dfp_sgnfcnc_<mode>): New define_insn.
17047         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
17048         definition next to BU_P9_MISC_1 definition and change the MASK
17049         value to RS6000_BTM_P9_MISC.
17050         (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
17051         (BU_P9_64BIT_MISC_0): Likewise.
17052         (BU_P9_DFP_MISC_0): New macro definition.
17053         (BU_P9_DFP_MISC_1): New macro definition.
17054         (BU_P9_DFP_MISC_2): New macro definition.
17055         (BU_P9_DFP_OVERLOAD_1): New macro definition.
17056         (BU_P9_DFP_OVERLOAD_2): New macro definition.
17057         (BU_P9_DFP_OVERLOAD_3): New macro definition.
17058         (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
17059         (TSTSFI_LT_TD): Likewise.
17060         (TSTSFI_EQ_DD): Likewise.
17061         (TSTSFI_EQ_TD): Likewise.
17062         (TSTSFI_GT_DD): Likewise.
17063         (TSTSFI_GT_TD): Likewise.
17064         (TSTSFI_OV_DD): Likewise.
17065         (TSTSFI_OV_TD): Likewise.
17066         (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
17067         (TSTSFI_LT_DD): Likewise.
17068         (TSTSFI_LT_TD): Likewise.
17069         (TSTSFI_EQ): Likewise.
17070         (TSTSFI_EQ_DD): Likewise.
17071         (TSTSFI_EQ_TD): Likewise.
17072         (TSTSFI_GT): Likewise.
17073         (TSTSFI_GT_DD): Likewise.
17074         (TSTSFI_GT_TD): Likewise.
17075         (TSTSFI_OV): Likewise.
17076         (TSTSFI_OV_DD): Likewise.
17077         (TSTSFI_OV_TD): Likewise.
17078         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17079         overloaded test significance functions.
17080         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
17081         OPTION_MASK_P9_MISC into the representation of this mask.
17082         (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
17083         of this mask.
17084         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
17085         RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
17086         non-zero.
17087         (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
17088         argument is a 6-bit unsigned literal value if the icode argument
17089         represents a DFP test significance built-in call.
17090         (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
17091         flag used independently and in combination with the
17092         RS6000_BTM_64BIT flag.
17093         (rs6000_opt_masks): Add entry for power9-misc command-line option.
17094         (rs6000_builtin_mask_names): Add entry for power9-misc
17095         command-line option.
17096         * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
17097         HAVE_AS_POWER9 is not a defined macro.  Define MASK_P9_MISC and
17098         RS6000_BTM_P9_MISC macros.
17099         * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
17100         option and change the description of the -mpower9-vector option to
17101         enable only vector instructions, removing its erroneously claimed
17102         support for scalar instructions.
17103         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
17104         the ISA 3.0 digital floating point test significance built-in
17105         functions.
17107 2016-06-30  Wilco Dijkstra  <wdijkstr@arm.com>
17109         * config/aarch64/aarch64.c (cortexa35_tunings):
17110         Enable AES fusion.  Use cortexa57_branch_cost.
17111         (cortexa53_tunings): Use cortexa57_branch_cost.
17112         (cortexa72_tunings): Use cortexa57_branch_cost.
17113         Use AUTOPREFETCHER_WEAK.
17114         (cortexa73_tunings): Use cortexa57_branch_cost.
17116 2016-06-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17117             James Greenhalgh  <james.greenhalgh@arm.com>
17119         * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
17120         vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
17121         vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
17122         vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
17123         (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
17124         vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
17125         vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
17126         vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
17127         vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
17128         vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
17129         vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
17130         vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
17131         vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
17132         New intrinsics.
17134 2016-06-30  James Greenhalgh  <james.greenhalgh@arm.com>
17135             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17137         * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
17138         New define_insn.
17139         (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
17141 2016-06-30  David Malcolm  <dmalcolm@redhat.com>
17143         PR driver/71651
17144         * gcc.c (driver::build_option_suggestions): Pass "option" to
17145         add_misspelling_candidates.
17146         * opts-common.c (add_misspelling_candidates): Add "option" param;
17147         use it to avoid adding negated forms for options marked with
17148         RejectNegative.
17149         * opts.h (add_misspelling_candidates): Add "option" param.
17151 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
17153         PR middle-end/71693
17154         * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
17155         TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
17156         first when permuting bitwise operation with rotate.  Cast
17157         TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
17159 2016-06-29  David Malcolm  <dmalcolm@redhat.com>
17161         * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
17162         for misspelled param names.
17163         * params.c: Include spellcheck.h.
17164         (find_param_fuzzy): New function.
17165         * params.h (find_param_fuzzy): New prototype.
17166         * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
17167         * spellcheck.h (struct edit_distance_traits<const char *>):
17168         ...here.
17170 2016-06-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
17172         * config/rs6000/predicates.md (const_0_to_7_operand): New
17173         predicate, recognize 0..7.
17174         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
17175         support for doing extracts from V16QImode, V8HImode, V4SImode
17176         under ISA 3.0.
17177         * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
17178         vector extract support.
17179         (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
17180         for ISA 3.0 vector extract.
17181         (VSX_EX): Constraints to use for ISA 3.0 vector extract.
17182         (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
17183         extracts of a constant element number from small integer vectors
17184         on 64-bit ISA 3.0 systems.
17185         (vsx_extract_<mode>_di): Likewise.
17186         * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
17187         say when we can do ISA 3.0 vector extracts.
17188         * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
17189         registers, using the stxsiwx instruction.
17191 2016-06-29  Jim Wilson  <jim.wilson@linaro.org>
17193         * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
17194         * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
17195         qdf24xx_regmove_cost, qdf24xx_tunings): New.
17196         * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
17197         * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
17198         * config/arm/arm.c (arm_qdf24xx_tune): New.
17200 2016-06-29  Wilco Dijkstra  <wdijkstr@arm.com>
17202         * config/aarch64/aarch64.c (cortexa53_tunings):
17203         Increase loop alignment to 8.  Set function alignment to 16.
17204         (cortexa35_tunings): Likewise.
17205         (cortexa57_tunings): Increase loop alignment to 8.
17206         (cortexa72_tunings): Likewise.
17207         (cortexa73_tunings): Likewise.
17209 2016-06-29  Matthew Wahab  <matthew.wahab@arm.com>
17211         * doc/sourcebuild.texi (Effective-Target keywords): Add entries
17212         for arm_fp16_ok and arm_fp16_hw.
17213         (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
17214         arm_fp16_alternative.
17216 2016-06-29  Ilya Enkovich  <ilya.enkovich@intel.com>
17218         PR tree-optimization/71655
17219         * tree-vect-stmts.c (vectorizable_comparison): Swap definition
17220         types when swapping operands.
17222 2016-06-29  Martin Liska  <mliska@suse.cz>
17224         PR middle-end/71585
17225         * common.opt (flag_stack_protect): Mark the flag as optimization flag.
17226         * ipa-inline-transform.c (inline_call): Remove unnecessary call
17227         of build_optimization_node.
17229 2016-06-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
17231         PR tree-optimization/70729
17232         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
17233         independent in loops having positive safelen value.
17234         * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
17235         it may be not valid after vectorization.
17237 2016-06-29  Jakub Jelinek  <jakub@redhat.com>
17239         PR tree-optimization/71625
17240         * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument.  Assume list
17241         is sorted by ascending list->offset.  If PTR is non-NULL and there is
17242         previous strinfo, call get_stridx_plus_constant.
17243         (get_stridx): Pass exp as second argument to get_addr_stridx.
17244         (addr_stridxptr): Add missing list = list->next, so that there can be
17245         more than one entries in the list.  Bump limit from 16 to 32.  Ensure
17246         the list is sorted by ascending list->offset.
17247         (get_stridx_plus_constant): Adjust so that it can be also called with
17248         ADDR_EXPR instead of SSA_NAME as PTR.
17249         (handle_char_store): Pass NULL_TREE as second argument to
17250         get_addr_stridx.
17252 2016-06-29  Richard Biener  <rguenther@suse.de>
17254         PR rtl-optimization/68961
17255         * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
17257 2016-06-29  Richard Biener  <rguenther@suse.de>
17259         PR middle-end/71002
17260         * alias.c (component_uses_parent_alias_set_from): Handle
17261         type punning through union accesses by using the union alias set.
17262         * gimple.c (gimple_get_alias_set): Remove union type punning case.
17264 2016-07-29  Richard Biener  <rguenther@suse.de>
17266         * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
17267         precision not matching mode precision.
17269 2016-06-28  John David Anglin  <danglin@gcc.gnu.org>
17271         * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
17272         pa_output_arg_descriptor.
17273         (call_val_symref_64bit_post_reload): Likewise.
17274         (call_val_powf_64bit_post_reload): Likewise.
17275         (sibcall_internal_symref_64bit): Likewise.
17276         (sibcall_value_internal_symref_64bit): Likewise.
17278 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
17280         PR middle-end/71626
17281         * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
17282         a constant, force its SUBREG_REG into memory or register instead
17283         of whole op1.
17285 2016-06-28  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
17287         PR target/58655
17288         * config/avr/avr.opt (-mfract-convert-truncate): Update description.
17289         * doc/invoke.texi (AVR Options): Document it.
17291 2016-06-28  Walter Lee  <walt@tilera.com>
17293         * config/tilegx/linux.h: Do not include arch/icache.h
17294         (CLEAR_INSN_CACHE): Provide inlined definition directly.
17295         * config/tilepro/linux.h: Do not include arch/icache.h
17296         (CLEAR_INSN_CACHE): Provide inlined definition directly.
17298 2016-06-28  Wilco Dijkstra  <wdijkstr@arm.com>
17300         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
17301         for big-endian BIT_FIELD_REF.
17303 2016-06-28  Pat Haugen  <pthaugen@us.ibm.com>
17305         * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
17306         ('size' attribute): Add '128'.
17307         Include power9.md.
17308         (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
17309         *movdi_internal64, *movdf_update1): Set size attribute to '64'.
17310         (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
17311         copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
17312         *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
17313         extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
17314         *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
17315         *trunc<mode>df2_odd): Set size attribute to '128'.
17316         (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
17317         * config/rs6000/power6.md (power6-fp): Include dfp type.
17318         * config/rs6000/power7.md (power7-fp): Likewise.
17319         * config/rs6000/power8.md (power8-fp): Likewise.
17320         * config/rs6000/power9.md: New file.
17321         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
17322         * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
17323         *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
17324         htmsimple.
17325         * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
17326         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
17327         divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
17328         ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
17329         dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
17330         dfp_dscri_<mode>): Change type attribute to dfp.
17331         * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
17332         attribute to vecsimple.
17333         * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
17334         and prefetch streams.
17335         (rs6000_option_override_internal): Remove temporary code setting
17336         tuning to power8.  Don't set rs6000_sched_groups for power9.
17337         (last_scheduled_insn): Change to rtx_insn *.
17338         (divide_cnt, vec_load_pendulum): New variables.
17339         (rs6000_adjust_cost): Add Power9 to test for store->load separation.
17340         (rs6000_issue_rate): Set issue rate for Power9.
17341         (is_power9_pairable_vec_type): New.
17342         (power9_sched_reorder2): New.
17343         (rs6000_sched_reorder2): Call new function for Power9 specific
17344         reordering.
17345         (insn_must_be_first_in_group): Remove Power9.
17346         (insn_must_be_last_in_group): Likewise.
17347         (force_new_group): Likewise.
17348         (rs6000_sched_init): Fix initialization of last_scheduled_insn.
17349         Initialize divide_cnt/vec_load_pendulum.
17350         (_rs6000_sched_context, rs6000_init_sched_context,
17351         rs6000_set_sched_context): Handle context save/restore of new
17352         variables.
17354 2016-06-28  Richard Biener  <rguenther@suse.de>
17356         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
17357         Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
17358         COMPONENT_REF operand.
17359         (nonoverlapping_component_refs_p): Likewise.
17360         * stor-layout.c (start_bitfield_representative): Mark
17361         DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
17363 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
17365         * Makefile.in: Don't cat ../stage_current if it does not exist.
17367         * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
17368         last argument is a bit-field.
17370         PR rtl-optimization/71673
17371         * internal-fn.c (expand_arith_overflow_result_store): Use
17372         OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
17373         expand_simple_binop.
17375         PR middle-end/66867
17376         * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
17377         expand_ifn_atomic_compare_exchange): New functions.
17378         * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
17379         * tree.h (build_call_expr_internal_loc): Rename to ...
17380         (build_call_expr_internal_loc_array): ... this.  Fix up type of
17381         last argument.
17382         * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
17383         * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
17384         ATOMIC_COMPARE_EXCHANGE result.
17385         * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
17386         * gimple-fold.h (optimize_atomic_compare_exchange_p,
17387         fold_builtin_atomic_compare_exchange): New prototypes.
17388         * gimple-fold.c (optimize_atomic_compare_exchange_p,
17389         fold_builtin_atomic_compare_exchange): New functions..
17390         * tree-ssa.c (execute_update_addresses_taken): If
17391         optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
17392         of call when finding addressable vars, and if such var becomes
17393         non-addressable, call fold_builtin_atomic_compare_exchange.
17395 2016-06-27  Segher Boessenkool  <segher@kernel.crashing.org>
17397         PR target/71670
17398         * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
17399         gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
17401 2016-06-27  Pat Haugen  <pthaugen@us.ibm.com>
17403         * config/rs6000/rs6000.md ('type' attribute): Add
17404         veclogical,veccmpfx,vecexts,vecmove insn types.
17405         (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
17406         copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
17407         p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
17408         (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
17409         *nabs<mode>2_hw): Change type to vecmove.
17410         (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
17411         *boolcc<mode>3_internal, *eqv<mode>3_internal,
17412         *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
17413         *ieee_128bit_vsx_abs<mode>2_internal,
17414         *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
17415         *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
17416         *ieee128_mtvsrd_32bit): Change type to veclogical.
17417         (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
17418         *movdi_internal32, *movdi_internal64): Update insn types.
17419         * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
17420         vsx_extract_<mode>): Change type to veclogical.
17421         (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
17422         (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
17423         *vsx_sign_extend_si_v2di): Change type to vecexts.
17424         * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
17425         type to veclogical.
17426         (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
17427         *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
17428         *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
17429         (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
17430         * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
17431         negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
17432         * config/rs6000/40x.md (ppc405-float): Add fpsimple.
17433         * config/rs6000/440.md (ppc440-fp): Add fpsimple.
17434         * config/rs6000/476.md (ppc476-fp): Add fpsimple.
17435         * config/rs6000/601.md (ppc601-fp): Add fpsimple.
17436         * config/rs6000/603.md (ppc603-fp): Add fpsimple.
17437         * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
17438         * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
17439         (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
17440         * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
17441         (ppc7450-vecsimple): Add veclogical, vecmove.
17442         (ppc7450-veccmp): Add veccmpfx.
17443         * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
17444         vecmove.
17445         (ppc8540_vector_compare): Add veccmpfx.
17446         * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
17447         * config/rs6000/cell.md (cell-fp): Add fpsimple.
17448         (cell-vecsimple): Add veclogical, vecmove.
17449         (cell-veccmp): Add veccmpfx.
17450         * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
17451         * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
17452         veccmpfx.
17453         * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
17454         * config/rs6000/power4.md (power4-fp): Add fpsimple.
17455         (power4-vecsimple): Add veclogical, vecmove.
17456         (power4-veccmp): Add veccmpfx.
17457         * config/rs6000/power5.md (power5-fp): Add fpsimple.
17458         * config/rs6000/power6.md (power6-fp): Add fpsimple.
17459         (power6-vecsimple): Add veclogical, vecmove.
17460         (power6-veccmp): Add veccmpfx.
17461         * config/rs6000/power7.md (power7-fp): Add fpsimple.
17462         (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
17463         * config/rs6000/power8.md (power8-fp): Add fpsimple.
17464         (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
17465         * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
17466         * config/rs6000/titan.md (titan_fp): Add fpsimple.
17467         * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
17468         fpsimple.
17469         * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
17471 2016-06-27  Peter Bergner  <bergner@vnet.ibm.com>
17473         PR target/71656
17474         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
17475         OPTION_MASK_P9_DFORM_VECTOR.
17476         * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
17477         disable -mpower9-dform-vector when using reload.
17478         (quad_address_p): Remove 'gpr_p' argument and all associated code.
17479         New 'strict' argument.  Update all callers.  Add strict addressing
17480         support.
17481         (rs6000_legitimate_offset_address_p): Remove call to
17482         virtual_stack_registers_memory_p.
17483         (rs6000_legitimize_reload_address): Add quad address support.
17484         (rs6000_legitimate_address_p): Move call to quad_address_p above
17485         call to virtual_stack_registers_memory_p.  Adjust quad_address_p args
17486         to account for new strict usage.
17487         (rs6000_output_move_128bit): Adjust quad_address_p args to account
17488         for new strict usage.
17489         * config/rs6000/predicates.md (quad_memory_operand): Likewise.
17491 2016-06-26  Uros Bizjak  <ubizjak@gmail.com>
17493         PR target/70902
17494         PR target/71453
17495         PR target/71555
17496         PR target/71596
17497         PR target/71657
17498         * config/i386/i386.c (ix86_spill_class): Disable condition to
17499         always return NO_REGS.
17501 2016-06-26  Jan Hubicka  <hubicka@ucw.cz>
17503         * predict.c: Include gimple-pretty-print.h
17504         (predicted_by_loop_heuristics_p): Check also
17505         PRED_LOOP_EXIT_WITH_RECURSION
17506         (predict_loops): Find self recursive calls and use special purpose
17507         predictors for them; dump log about decisions.
17508         (pass_profile::execute): Dump info about #of iterations.
17509         * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
17510         (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
17512 2016-06-26  John David Anglin  <danglin@gcc.gnu.org>
17514         * config/pa/pa.c (pa_output_indirect_call): Rework to combine
17515         output_asm_insn calls and shorten long lines.  Output .CALL
17516         argument descriptor using pa_output_arg_descriptor.  Add various
17517         inline $$dyncall and other optimizations.
17518         (pa_attr_length_indirect_call): Adjust ordering and lengths.
17520 2016-06-25  Jakub Jelinek  <jakub@redhat.com>
17522         PR tree-optimization/71643
17523         * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
17524         EH preds.
17526         * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
17527         leak a bitmap if dep_bb is NULL.
17529         PR tree-optimization/71631
17530         * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
17531         to rewrite_expr_tree even if negate_result, move new_lhs var
17532         declaration and initialization earlier, for powi_result set afterwards
17533         new_lhs to lhs.  For negate_result, use new_lhs instead of tmp
17534         if new_lhs != lhs, and don't shadow gsi var.
17536 2016-06-24  Jan Hubicka  <hubicka@ucw.cz>
17538         * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
17539         Add in_loop parameter.
17540         (predict_loops): Add loop guard heuristics.
17541         * predict.def (PRED_LOOP_GUARD): New heuristics.
17543 2016-06-24  Jan Hubicka  <hubicka@ucw.cz>
17545         * predict.c: Include ipa-utils.h
17546         (tree_bb_level_prediction): Predict recursive calls.
17547         (tree_estimate_probability_bb): Skip inexpensive calls for call
17548         predictor.
17549         * predict.def (PRED_RECURSIVE_CALL): New.
17551 2016-06-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17553         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
17554         (BU_FLOAT128_1): Likewise.
17555         (FABSQ): Likewise.
17556         (COPYSIGNQ): Likewise.
17557         (RS6000_BUILTIN_NANQ): Likewise.
17558         (RS6000_BUILTIN_NANSQ): Likewise.
17559         (RS6000_BUILTIN_INFQ): Likewise.
17560         (RS6000_BUILTIN_HUGE_VALQ): Likewise.
17561         * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
17562         (TARGET_FOLD_BUILTIN): New #define.
17563         (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
17564         (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
17565         (rs6000_fold_builtin): New target hook implementation, handling
17566         folding of 128-bit NaNs and infinities.
17567         (rs6000_init_builtins): Initialize const_str_type_node; ensure all
17568         entries are filled in to avoid problems during bootstrap
17569         self-test; define builtins for 128-bit NaNs and infinities.
17570         (rs6000_opt_mask): Add entry for float128.
17571         * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
17572         (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
17573         (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
17574         (const_str_type_node): New #define.
17575         * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
17576         to a define_expand that dispatches to either copysign<mode>3_soft
17577         or copysign<mode>3_hard.
17578         (copysign<mode>3_hard): Rename from copysign<mode>3.
17579         (copysign<mode>3_soft): New define_insn.
17580         * doc/extend.texi: Document new builtins.
17582 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
17584         * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
17585         PRIu64 instead of lu.
17587 2016-06-24  Eric Botcazou  <ebotcazou@adacore.com>
17589         PR debug/71642
17590         * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
17591         copy the type name.
17593 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
17595         PR tree-optimization/71647
17596         * omp-low.c (lower_rec_input_clauses): Convert
17597         omp_clause_aligned_alignment (c) to size_type_node for the
17598         last argument of __builtin_assume_aligned.
17600 2016-06-24  H.J. Lu  <hongjiu.lu@intel.com>
17602         * configure.ac (calling ___tls_get_addr via GOT): New
17603         assembler/linker check.
17604         (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New.  Defined to 1 if 32-bit
17605         assembler and linker supports calling ___tls_get_addr via GOT.
17606         Otherise, defined to 0.
17607         * config.in: Regenerated.
17608         * configure: Likewise.
17609         * config/i386/constraints.md (Yb): New constraint.
17610         * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
17611         (REG_CLASS_NAMES): Likewise.
17612         (REG_CLASS_CONTENTS): Likewise.
17613         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
17614         the b constraint with the Yb constraint.  Call ___tls_get_addr
17615         via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
17616         is 1.
17617         (*tls_local_dynamic_base_32_gnu): Likewise.
17618         (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
17619         GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
17620         (*tls_local_dynamic_base_64_<mode>): Likewise.
17622 2016-06-24  Martin Liska  <mliska@suse.cz>
17624         * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
17625         * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
17626         few functions.
17627         * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
17628         argument to true if the expected number of iterations is
17629         loop-based.
17631 2016-06-24  Uros Bizjak  <ubizjak@gmail.com>
17633         * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
17634         assemble for 32bit target.
17635         (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
17636         and $ld_ix86_gld_32_opt to link for 32bit target.
17637         (HAVE_AS_IX86_TLSLDMPLT): Ditto.
17638         * configure: Regenerate.
17640 2016-06-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17642         * config/arm/arm.c (int_log2): Delete definition and prototype.
17643         (shift_op): Use exact_log2 instead of int_log2.
17644         (vfp3_const_double_for_fract_bits): Likewise.
17646 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
17648         * internal-fn.c (expand_arith_set_overflow): New function.
17649         (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
17650         Use it.
17651         (expand_arith_overflow_result_store): Likewise.  Handle precision
17652         smaller than mode precision.
17653         * tree-vrp.c (extract_range_basic): For imag part, handle
17654         properly signed 1-bit precision result.
17655         * doc/extend.texi (__builtin_add_overflow): Document that last
17656         argument can't be pointer to enumerated or boolean type.
17657         (__builtin_add_overflow_p): Document that last argument can't
17658         have enumerated or boolean type.
17660 2016-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
17661             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17663         * config/rs6000/predicates.md (splat_input_operand): Rework.
17664         Don't allow constants, since the insns that use this predicate
17665         don't support constants.  Constants are handled by other insns
17666         that are created via combine.  During and after register
17667         allocation, only allow indexed or indirect addresses, and not
17668         general addresses.  Only allow modes supported by the hardware.
17669         * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
17670         comment.  Move check for using VSPLTIS<x> to a common location,
17671         instead of doing it in two different places.
17673 2016-06-23  Jocelyn Mayer  <l_indien@magic.fr>
17675         * config/i386/driver-i386.c (host_detect_local_cpu): Set
17676         PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
17677         <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
17678         signature_CENTAUR_ebx.
17680 2016-06-23  H.J. Lu  <hongjiu.lu@intel.com>
17682         PR target/66232
17683         PR target/67400
17684         * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
17685         (as_ix86_gas_32_opt): This.
17686         (ld_ix86_tls_ldm_opt): Renamed to ...
17687         (ld_ix86_gld_32_opt): This.
17688         (R_386_TLS_LDM reloc): Updated.
17689         (R_386_GOT32X reloc): New assembler/linker check.
17690         (HAVE_AS_IX86_GOT32X): New.  Defined to 1 if 32-bit assembler and
17691         linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT".  Otherise,
17692         defined to 0.
17693         * config.in: Regenerated.
17694         * configure: Likewise.
17695         * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
17696         true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
17697         (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
17698         if ix86_force_load_from_GOT_p returns true.
17699         (ix86_print_operand_address_as): Also support UNSPEC_GOT if
17700         ix86_force_load_from_GOT_p returns true.
17701         (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
17702         the external function address via the GOT slot.
17703         (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
17704         HAVE_AS_IX86_GOT32X before returning false.
17705         (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
17706         32-bit mode if ix86_nopic_noplt_attribute_p returns true.
17708 2016-06-23  Eric Botcazou  <ebotcazou@adacore.com>
17710         * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
17712 2016-06-23  Andi Kleen  <ak@linux.intel.com>
17714         * Makefile.in: Regenerate.
17715         * doc/install.texi: Document autoprofiledbootstrap.
17717 2016-06-23  Andi Kleen  <ak@linux.intel.com>
17719         * config/i386/gcc-auto-profile: New file.
17721 2016-06-23  Martin Liska  <mliska@suse.cz>
17723         PR middle-end/71619
17724         * predict.c (predict_loops): Revert the hunk that was removed
17725         in r237103.
17727 2016-06-23  Jakub Sejdak  <jakub.sejdak@phoesys.com>
17729         * config.gcc: Add support for arm*-*-phoenix* targets.
17730         * config/arm/t-phoenix: New.
17731         * config/phoenix.h: New.
17733 2016-06-23  Uros Bizjak  <ubizjak@gmail.com>
17734             H.J. Lu  <hongjiu.lu@intel.com>
17736         PR target/67400
17737         * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
17738         * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
17739         (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
17740         ix86_force_load_from_GOT_p returns true.
17741         (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
17742         ix86_force_load_from_GOT_p returns true.
17743         (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
17744         ix86_force_load_from_GOT_p returns true.
17745         (ix86_expand_move): Load the external function address via the
17746         GOT slot if ix86_force_load_from_GOT_p returns true.
17747         * config/i386/predicates.md (x86_64_immediate_operand): Return
17748         false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
17749         (x86_64_zext_immediate_operand): Ditto.
17751 2016-06-22  Uros Bizjak  <ubizjak@gmail.com>
17753         * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
17755 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
17757         PR c/70339
17758         * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
17759         * diagnostic.c (pedwarn_at_rich_loc): New function.
17760         * spellcheck.h (best_match::best_match): Add a
17761         "best_distance_so_far" optional parameter.
17762         (best_match::set_best_so_far): New method.
17763         (best_match::get_best_distance): New accessor.
17764         (best_match::get_best_candidate_length): New accessor.
17766 2016-06-22  Nick Clifton  <nickc@redhat.com>
17768         * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
17769         place of GET_MODE_CLASS() == MODE_INT, so that partial integer
17770         modes are accepted as well.
17771         (ucompare_loc_descriptor): Likewise.
17772         (minmax_loc_descriptor): Likewise.
17773         (clz_loc_descriptor): Likewise.
17774         (popcount_loc_descriptor): Likewise.
17775         (bswap_loc_descriptor): Likewise.
17776         (rotate_loc_descriptor): Likewise.
17777         (mem_loc_descriptor): Likewise.
17778         (loc_descriptor): Likewise.
17780 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
17782         * common.opt (fdiagnostics-parseable-fixits): New option.
17783         * diagnostic.c: Include "selftest.h".
17784         (print_escaped_string): New function.
17785         (print_parseable_fixits): New function.
17786         (diagnostic_report_diagnostic): Call print_parseable_fixits.
17787         (selftest::assert_print_escaped_string): New function.
17788         (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
17789         (selftest::test_print_escaped_string): New function.
17790         (selftest::test_print_parseable_fixits_none): New function.
17791         (selftest::test_print_parseable_fixits_insert): New function.
17792         (selftest::test_print_parseable_fixits_remove): New function.
17793         (selftest::test_print_parseable_fixits_replace): New function.
17794         (selftest::diagnostic_c_tests): New function.
17795         * diagnostic.h (struct diagnostic_context): Add field
17796         "parseable_fixits_p".
17797         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
17798         -fdiagnostics-parseable-fixits.
17799         (-fdiagnostics-parseable-fixits): New option.
17800         * opts.c (common_handle_option): Handle
17801         -fdiagnostics-parseable-fixits.
17802         * selftest-run-tests.c (selftest::run_tests): Call
17803         selftest::diagnostic_c_tests.
17804         * selftest.h (selftest::diagnostic_c_tests): New prototype.
17806 2016-06-22  Ilya Enkovich  <ilya.enkovich@intel.com>
17808         PR tree-optimization/71488
17809         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
17810         comparison of boolean vectors.
17811         * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
17812         of boolean vectors using bitwise operations.
17814 2016-06-22  Andreas Schwab  <schwab@suse.de>
17816         * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
17817         Remove declaration.
17819 2016-06-22  Eric Botcazou  <ebotcazou@adacore.com>
17821         * function.c (assign_parm_setup_reg): Prevent sharing in another case.
17823 2016-06-22  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17825         * config/i386/i386.c (print_reg): Emit an error message on attempt to
17826         print FLAGS_REG.
17828 2016-06-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17830         * config/arm/arm.c (arm_cortex_a73_tune): New struct.
17831         * config/arm/arm-cores.def (cortex-a73): New entry.
17832         (cortex-a73.cortex-a35): Likewise.
17833         (cortex-a73.cortex-a53): Likewise.
17834         * config/arm/arm-tables.opt: Regenerate.
17835         * config/arm/arm-tune.md: Likewise.
17836         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
17837         mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
17838         * config/arm/t-aprofile: Handle mcpu=cortex-a73,
17839         mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
17840         * doc/invoke.texi (ARM Options): Document cortex-a73,
17841         cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
17843 2016-06-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17845         * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
17846         * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
17847         (cortex-a73.cortex-a35): Likewise.
17848         (cortex-a73.cortex-a53): Likewise.
17849         * config/aarch64/aarch64-tune.md: Regenerate.
17850         * doc/invoke.texi (AArch64 Options): Document cortex-a73,
17851         cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
17852         -mcpu and -mtune.
17854 2016-06-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17856         * configure.ac (gcc_cv_as_compress_debug): Remove
17857         --compress-debug-sections as extra as switch.
17858         Handle gas --compress-debug-sections=type.
17859         (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
17860         Handle gld --compress-debug-sections=type.
17861         * configure: Regenerate.
17863 2016-06-21  Andrew Burgess  <andrew.burgess@embecosm.com>
17865         * bb-reorder.c (pass_partition_blocks::gate): Update comment.
17867 2016-06-21  John David Anglin  <danglin@gcc.gnu.org>
17869         * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
17870         (do_rewrite): likewise.
17872 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17874         * common/config/mep/mep-common.c: Remove.
17875         * config.gcc: Remove mep-* support.
17876         * config/mep/constraints.md: Remove.
17877         * config/mep/default.h: Remove.
17878         * config/mep/intrinsics.h: Remove.
17879         * config/mep/intrinsics.md: Remove.
17880         * config/mep/ivc2-template.h: Remove.
17881         * config/mep/mep-c5.cpu: Remove.
17882         * config/mep/mep-core.cpu: Remove.
17883         * config/mep/mep-default.cpu: Remove.
17884         * config/mep/mep-ext-cop.cpu: Remove.
17885         * config/mep/mep-intrin.h: Remove.
17886         * config/mep/mep-ivc2.cpu: Remove.
17887         * config/mep/mep-pragma.c: Remove.
17888         * config/mep/mep-protos.h: Remove.
17889         * config/mep/mep.c: Remove.
17890         * config/mep/mep.cpu: Remove.
17891         * config/mep/mep.h: Remove.
17892         * config/mep/mep.md: Remove.
17893         * config/mep/mep.opt: Remove.
17894         * config/mep/predicates.md: Remove.
17895         * config/mep/t-mep: Remove.
17896         * doc/install.texi: Remove mep-* documentation.
17897         * doc/md.texi: Likewise.
17899 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17901         * config.gcc: Remove support for avr-rtems.
17902         * config/avr/gen-avr-mmcu-specs.c: Likewise.
17903         * config/avr/rtems.h: Remove.
17904         * config/avr/t-rtems: Remove.
17906 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17908         * config.gcc: Remove m32r-rtems support.
17909         * config/m32r/rtems.h: Remove.
17911 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17913         * config.gcc: Remove h8300-rtems support.
17914         * config/h8300/rtems.h: Remove.
17915         * config/h8300/t-rtems: Remove.
17917 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17919         * config.gcc: Remove support for knetbsd.
17920         * configure.ac: Likewise.
17921         * config/i386/knetbsd-gnu.h: Remove.  * config/i386/knetbsd-gnu64.h: Remove.
17922         * config/knetbsd-gnu.h: Remove.
17923         * configure: Regenerate.
17925 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17927         * config.gcc: Remove support for openbsd 2 and 3.
17928         * config/openbsd-oldgas.h: Remove.
17930 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17932         * config.gcc: Remove interix support.
17933         * config/i386/i386-interix.h: Remove.
17934         * config/i386/interix.opt: Remove.
17935         * config/i386/t-interix: Remove.
17936         * configure: Regenerate.
17937         * configure.ac: Remove interix support.
17938         * doc/install.texi: Remove interix documentation.
17940 2016-06-21  Kelvin Nilsen  <kelvin@gcc.gnu.org>
17942         * config/rs6000/rs6000.h: Add conditional preprocessing directives
17943         to disable Power9-specific compiler features if HAVE_AS_POWER9 is
17944         not defined.
17946 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
17948         * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
17949         they are both PLACEHOLDER_EXPRs.
17951 2016-06-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
17953         * stor-layout.c (layout_type): Move setting complex MODE to
17954         layout_type, instead of setting it ahead of time by the caller.
17955         * tree.c (build_complex_type): Likewise.
17957 2016-06-21  Martin Liska  <mliska@suse.cz>
17959         * predict.c (force_edge_cold): Replace imposisble with
17960         impossible.
17962 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
17964         * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
17965         * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
17967 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
17969         * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
17971 2016-06-21  H.J. Lu  <hongjiu.lu@intel.com>
17972             Ilya Enkovich  <ilya.enkovich@intel.com>
17974         PR target/71549
17975         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
17976         New member function to convert V1TImode register to SUBREG
17977         TImode in debug insn.
17978         (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
17979         after changing register mode to V1TImode.
17981 2016-06-21  Virendra Pathak  <virendra.pathak@broadcom.com>
17983         * config/aarch64/aarch64-cores.def (vulcan): New core.
17984         * config/aarch64/aarch64-tune.md: Regenerate.
17985         * doc/invoke.texi: Document vulcan as an available option.
17987 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
17989         * cse.c (canon_asm_operands): New function extracted from...
17990         (canonicalize_insn): ...here.  Call it to canonicalize an ASM_OPERANDS
17991         either standalone or member of a PARALLEL.
17993 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
17995         PR target/30417
17996         * config/avr/gen-avr-mmcu-specs.c (print_mcu):
17997         [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
17998         [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
18000 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
18002         PR target/71103
18003         * config/avr/avr.md (movqi): Only handle loading subreg:qi of
18004         constant addresses if can_create_pseudo_p.
18006 2016-06-21  Jakub Jelinek  <jakub@redhat.com>
18008         PR tree-optimization/71588
18009         * tree-ssa-strlen.c (valid_builtin_call): New function.
18010         (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
18011         it.
18013 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
18015         PR middle-end/71581
18016         * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
18017         see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
18018         for conversion of scalar user var to complex type and use the
18019         underlying SSA_NAME_VAR in that case.  If EXPR is still NULL,
18020         punt.
18022         PR rtl-optimization/71591
18023         * toplev.c (toplev::run_self_tests): If no_backend, complain and
18024         don't run any tests.
18026 2016-06-20  Hans-Peter Nilsson  <hp@axis.com>
18028         PR target/71571
18029         * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
18030         delay-slot "nop" for PIC with CRIS v32.  Also add missing leading
18031         space for PIC with non-v32 and the common non-PIC "jump".
18033 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
18035         PR target/71559
18036         * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
18037         returned values and add UN*/LTGT/*ORDERED cases with values matching
18038         D operand modifier on vcmp for AVX.
18040 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
18042         * config/aarch64/aarch64.opt
18043         (mpc-relative-literal-loads): Rename internal option name.
18044         * config/aarch64/aarch64.c
18045         (aarch64_nopcrelative_literal_loads): Rename to
18046         aarch64_pcrelative_literal_loads.
18047         (aarch64_expand_mov_immediate): Likewise.
18048         (aarch64_secondary_reload): Likewise.
18049         (aarch64_can_use_per_function_literal_pools_p): Likewise.
18050         (aarch64_override_options_after_change_1): Rename and simplify logic.
18051         (aarch64_classify_symbol): Merge large model checks into switch,
18052         remove pc-relative load check.
18054 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
18056         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
18057         costs relative to the cost of a register move.
18059 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
18061         * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
18062         (vcvt_n_f64_u64): Likewise.
18063         (vcvt_n_s64_f64): Likewise.
18064         (vcvt_n_u64_f64): Likewise.
18065         (vcvt_f64_s64): Likewise.
18066         (vrecpe_f64): Likewise.
18067         (vcvt_f64_u64): Likewise.
18068         (vrecps_f64): Likewise.
18070 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
18072         * config/aarch64/aarch64.md
18073         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
18074         iterators.
18075         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise.  Correct
18076         attributes.
18077         * config/aarch64/aarch64-builtins.c
18078         (aarch64_types_binop_uss_qualifiers): Delete.
18079         (TYPES_BINOP_USS): Likewise.
18080         (aarch64_types_binop_sus_qualifiers): Likewise.
18081         (TYPES_BINOP_SUS): Likewise.
18082         (aarch64_types_fcvt_from_unsigned_qualifiers): New.
18083         (TYPES_FCVTIMM_SUS): Likewise.
18084         * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
18085         rather than BINOP.
18086         (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
18087         (fcvtzs): Use SHIFTIMM rather than BINOP.
18088         (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
18090 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
18092         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
18093         costs relative to the cost of a register move.
18095 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
18097         * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
18098         Allow scalar/single vector modes to be tieable.
18100 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
18102         * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
18104 2016-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18106         * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
18107         "alignement".
18108         * tree.h (TYPE_ALIGN): Likewise.
18110 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
18112         PR target/71103
18113         * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
18115 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
18117         * config/avr/avr.c (avr_print_operand): Fix "format not a string
18118         literal" build warnings.
18119         (avr_print_operand_address): Dito.
18121 2016-06-19  David Edelsohn  <dje.gcc@gmail.com>
18123         PR target/71375
18124         * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
18125         * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
18127 2016-06-18  John David Anglin  <danglin@gcc.gnu.org>
18129         * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
18131 2016-06-18  Eric Botcazou  <ebotcazou@adacore.com>
18133         PR bootstrap/71435
18134         * reload1.c (reload): Pass 0 to finish_spills when called because
18135         update_eliminables_and_spill returns true and remove did_spill.
18136         (finish_spills): Adjust comment and document GLOBAL parameter.
18138 2016-06-17  DJ Delorie  <dj@redhat.com>
18140         PR target/71338
18141         * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
18142         * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
18143         (umulqihi3_virt): Likewise.
18144         * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
18145         (umulqihi3_real): Likewise.
18147 2016-06-17  Martin Liska  <mliska@suse.cz>
18149         * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
18151 2016-06-17  Martin Liska  <mliska@suse.cz>
18153         * predict.def: PRED_LOOP_EXIT from 92 to 85.
18155 2016-06-17  James Greenhalgh  <james.greenhalgh@arm.com>
18157         * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
18158         __FAST_MATH__.
18159         (vaddq_f32): Likewise.
18160         (vmul_f32): Likewise.
18161         (vmulq_f32): Likewise.
18162         (vsub_f32): Likewise.
18163         (vsubq_f32): Likewise.
18165 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
18167         PR tree-optimization/71347
18168         * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
18169         cost for all uses in group.
18171 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
18173         * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
18174         insert gimple seq if it's not empty.
18176 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
18178         * tree-vectorizer.h (struct dr_with_seg_len): Remove class
18179         member OFFSET.
18180         * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
18181         rather than OFFSET.
18182         (comp_dr_with_seg_len_pair): Ditto.
18183         (vect_prune_runtime_alias_test_list): Ditto.  Also Canonicalize
18184         struct dr_with_seg_len_pair against DR_OFFSET.
18185         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
18186         DR_OFFSET directly.
18188 2016-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18190         * config/aarch64/geniterators.sh: Handle parenthesised conditions.
18192 2016-06-16  John David Anglin  <danglin@gcc.gnu.org>
18194         * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
18195         (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
18196         (pa_output_millicode_call): Likewise.
18197         (pa_output_call): Likewise.
18198         (pa_output_indirect_call): Likewise.
18199         (pa_asm_output_mi_thunk): Likewise.
18201 2016-06-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
18203         * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
18205 2016-06-16  Martin Liska  <mliska@suse.cz>
18207         * predict.c (combine_predictions_for_insn): When we find a first
18208         match predictor, we should consider just predictors with
18209         PRED_FLAG_FIRST_MATCH.  Print either first match (if any) or
18210         DS theory predictor.
18211         (combine_predictions_for_bb): Likewise.
18213 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
18215         * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
18216         with base of reference to struct.
18218 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
18220         * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
18222 2016-06-16  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
18224         PR target/71151
18225         * config/avr/avr.c (avr_asm_init_sections): Remove setup of
18226         progmem_swtable_section.
18227         (progmem_swtable_section): Remove.
18228         (avr_asm_function_rodata_section): Remove.
18229         (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
18230         * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
18232 2016-06-16  Jocelyn Mayer  <l_indien@magic.fr>
18234         * config/i386/driver-i386.c (host_detect_local_cpu): Set
18235         PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
18236         <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
18237         signature_CENTAUR_ebx.
18238         * config/i386/i386.c (ix86_option_override_internal): Add
18239         definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
18240         nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
18241         * doc/invoke.texi (x86 Options): Document new VIA -march entries.
18243 2016-06-16  Martin Liska  <mliska@suse.cz>
18245         * predict.def: Add fortran loop preheader predictor.
18246         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
18247         fold IFN_BUILTIN_EXPECT with a known constant argument.
18249 2016-06-16  Martin Liska  <mliska@suse.cz>
18251         * predict.def: Add 'Fortran' to display text of all
18252         PRED_FORTRAN_* predictors.
18254 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
18256         PR target/71242
18257         * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
18258         [IA64_BUILTIN_NANSQ]: Ditto.
18259         (ia64_fold_builtin): New function.
18260         (TARGET_FOLD_BUILTIN): New define.
18261         (ia64_init_builtins) Declare const_string_type node.
18262         Add __builtin_nanq and __builtin_nansq builtin functions.
18263         (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
18265 2016-06-16  Nick Clifton  <nickc@redhat.com>
18267         * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
18268         MSP430_HWMULT_ prefix to enum values.
18269         (msp430_regions): Add MSP430_REGION_ prefix to enum values.
18270         * config/msp430/msp430.c: Update use of enum values.
18271         * config/msp430/msp430.md: Likewise.
18272         * config/msp430/msp430.opt: Likewise.
18274 2016-06-16  Jan Hubicka  <hubicka@ucw.cz>
18276         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
18277         of comparsions in the last iteration.
18279 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
18280             Joern Rennecke  <joern.rennecke@embecosm.com>
18282         * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
18283         addresses.
18284         (arc_needs_pcl_p): Add GOTOFFPC.
18285         (arc_legitimate_pic_addr_p): Likewise.
18286         (arc_output_pic_addr_const): Likewise.
18287         (arc_legitimize_pic_address): Generate a pc-relative address using
18288         GOTOFFPC.
18289         (arc_output_libcall): Use @pcl syntax.
18290         (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
18291         * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
18292         (*movsi_insn): Use @pcl syntax.
18293         (doloop_begin_i): Likewise.
18295 2016-06-16  Martin Liska  <mliska@suse.cz>
18297         * predict.def: Define a new predictor.
18299 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
18301         * config/arc/arc.opt (mtp-regno): Update text.
18303 2016-06-16  Renlin Li  <renlin.li@arm.com>
18305         * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
18307 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
18309         PR target/71554
18310         * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
18311         (setcc + and peephole2): Likewise.
18313         PR rtl-optimization/71532
18314         * cse.c (cse_insn): For const/pure calls, invalidate argument passing
18315         memory slots.
18317 2016-06-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
18319         * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
18320         DImode constants with XXSPLTIB in vector registers.
18321         (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
18322         vsx_extract_<mode>_internal{1,2} into a single insn that handles
18323         direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
18324         extraction of the element at the top of the register as a scalar
18325         value.
18326         (vsx_extract_<mode>_internal1): Likewise.
18327         (vsx_extract_<mode>_internal2): Likewise.
18328         * config/rs6000/constraints.md (wi constraint): Remove a comment
18329         about DImode not being allowed in Altivec registers.
18330         (wB constraint): New constraint for constants that can be
18331         generated in Altivec registers with VSPLTISW/VUPKHSW.
18332         * config/rs6000/predicates.md (xxspltib_constant_split): Update
18333         comments.
18334         (xxspltib_constant_nosplit): Likewise.
18335         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
18336         support for -mupper-regs-di to enable DImode to go into Altivec
18337         registers.
18338         (POWERPC_MASKS): Likewise.
18339         (power7 cpu): Likewise.
18340         * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
18341         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
18342         for DImode being allowed in Altivec registers.  Update wi/wj
18343         constraints.  Set scalar_in_vmx_p flag.
18344         (rs6000_option_override_internal): Add checks for -mupper-regs-di.
18345         (xxspltib_constant_p): Allow CONST_INT's with VOIDmode.  Don't
18346         return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
18347         (rs6000_opt_masks): Add -mupper-regs-di.
18348         * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
18349         direct move to use wi and not wj.
18350         (lfiwzx): Likewise.
18351         (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
18352         alternative.
18353         (floatunssi<mode>2_lfiwzx_mem): Likewise.
18354         (fix_trunc<mode>di2_fctidz): Change second alternative to allow
18355         any VSX register, instead of just Altivec registers, to allow
18356         either operand to be an Altivec register or both.
18357         (fixuns_trunc<mode>di2_fctiduz): Likewise.
18358         (movdi_internal32): Add support for -mupper-regs-di.  Add support
18359         to load constants via XXSPLTIB or VSPLTISW.  Add spacing to allow
18360         the alternatives and attributes to be lined up to be easier to
18361         read.
18362         (movdi_internal64): Likewise.
18363         (64-bit DImode splitters): Change predicates to only split loading
18364         up GPR registers.  Add splits for using XXSPLTIB or VSPLTISW to
18365         load constants in ISA 3.0 or ISA 2.07 respectively.
18366         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
18367         -mupper-regs-di.  Update -mupper-regs-df and -mupper-regs-sf to
18368         mention -mcpu=power9 sets these options.
18369         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
18370         wB constraint.
18372 2016-06-15  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
18374         PR target/67353
18375         * config/avr/avr.c (avr_set_current_function): Warn misspelled
18376         interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
18377         * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
18378         by default to warn misspelled interrupt/ signal handler.
18379         * doc/invoke.texi (AVR Options): Document it. Update description
18380         for -nodevicelib option.
18382 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18384         * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
18385         up parentheses.  Use GET_MODE_UNIT_BITSIZE.
18386         (aarch64_<sur>shll2_n<mode>): Likewise.
18388 2016-06-15  Ilya Enkovich  <ilya.enkovich@intel.com>
18390         PR middle-end/71529
18391         * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
18392         DECL_CONTEXT for copied arguments.
18394 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
18396         PR tree-optimization/71483
18397         * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
18398         for slp
18400 2016-06-15  Martin Liska  <mliska@suse.cz>
18402         * predict.c (tree_predict_by_opcode): Call predict_edge_def
18403         instead of predict_edge w/o a probability.
18405 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
18407         PR tree-optimization/71439
18408         * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
18409         live PHIs.
18411 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18413         * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
18414         register subregs in SET_SRC.
18416 2016-06-15  Richard Biener  <rguenther@suse.de>
18418         * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
18419         store restrictions.
18421 2016-06-15  Richard Biener  <rguenther@suse.de>
18423         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
18424         not consider dependences between accesses that belong to the
18425         same group.
18426         (vect_analyze_data_ref_dependences): Do not analyze read-read
18427         or self-dependences.
18429 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
18431         * spellcheck-tree.c: Include spellcheck-tree.h rather than
18432         spellcheck.h.
18433         (find_closest_identifier): Reimplement in terms of
18434         best_match<tree,tree>.
18435         * spellcheck-tree.h: New file.
18436         * spellcheck.c (struct edit_distance_traits<const char *>): New
18437         struct.
18438         (find_closest_string): Reimplement in terms of
18439         best_match<const char *, const char *>.
18440         * spellcheck.h (levenshtein_distance): Move prototype of tree-based
18441         overload to spellcheck-tree.h.
18442         (find_closest_identifier): Likewise.
18443         (struct edit_distance_traits<T>): New template.
18444         (class best_match): New class.
18446 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
18448         * selftest-run-tests.c (selftest::run_tests): Call
18449         selftest::spellcheck_tree_c_tests.
18450         * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
18451         * spellcheck-tree.c: Include selftest.h and stringpool.h.
18452         (selftest::test_find_closest_identifier): New function.
18453         (selftest::spellcheck_tree_c_tests): New function.
18454         * spellcheck.c (selftest::test_find_closest_string): Verify that
18455         the order of the vec does not affect the results for this case.
18456         (selftest::test_data): New array.
18457         (selftest::test_metric_conditions): New function.
18458         (selftest::spellcheck_c_tests): Add a test of case-comparison.
18459         Call selftest::test_metric_conditions.
18461 2016-06-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18463         * config/rs6000/rs6000-builtin.def (commentary): Typo.
18464         (BU_P9_MISC_1): Likewise.
18465         (BU_P9_64BIT_MISC_0): Likewise.
18466         (BU_P9_MISC_0): Likewise.
18468 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
18470         * gcc-rich-location.c
18471         (gcc_rich_location::add_fixit_misspelled_id): New method.
18472         * gcc-rich-location.h
18473         (gcc_rich_location::add_fixit_misspelled_id): Add decl.
18475 2016-06-14  Andreas Tobler  <andreast@gcc.gnu.org>
18477         * config/arm/freebsd.h: Only enable unaligned access for armv6 on
18478         FreeBSD 11 and above.
18480 2016-06-14  Uros Bizjak  <ubizjak@gmail.com>
18482         * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
18484 2016-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18486         * expmed.h: Close parenthesis in "at your option" in copyright
18487         boilerplate.
18488         * lower-subreg.h: Likewise.
18490 2016-06-14  Richard Biener  <rguenther@suse.de>
18492         PR middle-end/71526
18493         * genmatch.c (expr::gen_transform): Use in_type for comparisons
18494         if available.
18496 2015-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18498         * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
18499         New function.
18500         (aarch64_rtx_costs): Use it.  Rewrite CONST_INT_P (op1) case to handle
18501         mask+shift version.
18502         * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
18503         New prototype.
18504         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
18505         matching condition with aarch64_mask_and_shift_for_ubfiz_p.
18507 2016-06-14  Richard Biener  <rguenther@suse.de>
18509         PR tree-optimization/71522
18510         * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
18511         copying into float copying.
18513 2016-06-14  Jakub Jelinek  <jakub@redhat.com>
18515         PR tree-optimization/71520
18516         * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
18517         (replace_block_by): Move user labels from bb1 to bb2.
18519 2016-06-14  Richard Biener  <rguenther@suse.de>
18521         PR middle-end/71310
18522         PR bootstrap/71510
18523         * expr.h (get_bit_range): Declare.
18524         * expr.c (get_bit_range): Export.
18525         * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
18526         word_mode again to constrain the bitfield access.
18528 2016-06-14  Richard Biener  <rguenther@suse.de>
18530         PR tree-optimization/71521
18531         * tree-vrp.c (extract_range_from_binary_expr_1): Guard
18532         division int_const_binop against zero divisor.
18534 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
18536         * config/i386/i386.md (signbittf2): New expander.
18537         * config/i386/sse.md (ptesttf2): New insn pattern.
18539 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
18541         PR bootstrap/71481
18542         * input.c (selftest::test_reading_source_line): Avoid reading from
18543         __FILE__ by creating a tempfile with known content and reading
18544         from that instead.
18546 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
18548         * pretty-print.c (assert_pp_format_colored): Skip the test if
18549         GCC_COLORS is set.
18550         (test_pp_format): Remove comment about GCC_COLORS.
18552 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
18554         * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
18555         * pretty-print.c (assert_pp_format_va): Add location param and use
18556         it with ASSERT_STREQ_AT.
18557         (assert_pp_format): Add location param and pass it to
18558         assert_pp_format_va.
18559         (assert_pp_format_colored): Likewise.
18560         (ASSERT_PP_FORMAT_1): New.
18561         (ASSERT_PP_FORMAT_2): New.
18562         (ASSERT_PP_FORMAT_3): New.
18563         (test_pp_format): Provide SELFTEST_LOCATION throughout, either
18564         explicitly, or implicitly via the above macros.
18565         * selftest.c (selftest::pass): Use a selftest::location rather
18566         than file and line.
18567         (selftest::fail): Likewise.  Print the function name.
18568         (selftest::fail_formatted): Likewise.
18569         (selftest::assert_streq): Use a selftest::location rather than
18570         file and line.
18571         * selftest.h (selftest::location): New struct.
18572         (SELFTEST_LOCATION): New macro.
18573         (selftest::pass): Accept a const location & rather than file
18574         and line.
18575         (selftest::fail): Likewise.
18576         (selftest::fail_formatted): Likewise.
18577         (selftest::assert_streq): Likewise.
18578         (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
18579         (ASSERT_FALSE): Likewise.
18580         (ASSERT_EQ): Likewise.
18581         (ASSERT_NE): Likewise.
18582         (ASSERT_STREQ): Likewise.
18583         (ASSERT_PRED1): Likewise.
18584         (ASSERT_STREQ_AT): New macro.
18586 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
18588         * selftest.c (selftest::fail_formatted): New function.
18589         (selftest::assert_streq): New function.
18590         * selftest.h (selftests::fail_formatted): New decl.
18591         (selftest::assert_streq): New decl.
18592         (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
18594 2016-06-13  Jeff Law  <law@redhat.com>
18596         PR tree-optimization/71403
18597         * tree-ssa-threadbackward.c
18598         (convert_and_register_jump_thread_path): No longer accept reference
18599         to path.  Do not pop items off the path anymore.
18600         (fsm_find_control_statement_thread_paths): Do not allow threading
18601         to a deeper loop nest.  Pop the last item off the path here rather
18602         than in convert_and_register_jump_thread_path.
18604 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
18605             Wilco Dijkstra  <Wilco.Dijkstra@arm.com>
18607         [AArch64] Emit division using the Newton series
18609         * config/aarch64/aarch64-protos.h
18610         (cpu_approx_modes): Add new member "division".
18611         (aarch64_emit_approx_div): Declare new function.
18612         * config/aarch64/aarch64.c
18613         (generic_approx_modes): New member "division".
18614         (exynosm1_approx_modes): Likewise.
18615         (xgene1_approx_modes): Likewise.
18616         (aarch64_emit_approx_div): Define new function.
18617         * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
18618         * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
18619         * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
18620         * doc/invoke.texi (-mlow-precision-div): Describe new option.
18622 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
18623             Wilco Dijkstra  <wilco.dijkstra@arm.com>
18625         [AArch64] Emit square root using the Newton series
18627         * config/aarch64/aarch64-protos.h
18628         (aarch64_emit_approx_rsqrt): Replace with new function
18629         "aarch64_emit_approx_sqrt".
18630         (cpu_approx_modes): New member "sqrt".
18631         * config/aarch64/aarch64.c
18632         (generic_approx_modes): New member "sqrt".
18633         (exynosm1_approx_modes): Likewise.
18634         (xgene1_approx_modes): Likewise.
18635         (aarch64_emit_approx_rsqrt): Replace with new function
18636         "aarch64_emit_approx_sqrt".
18637         (aarch64_override_options_after_change_1): Handle new option.
18638         * config/aarch64/aarch64-simd.md
18639         (rsqrt<mode>2): Use new function instead.
18640         (sqrt<mode>2): New expansion and insn definitions.
18641         * config/aarch64/aarch64.md: Likewise.
18642         * config/aarch64/aarch64.opt
18643         (mlow-precision-sqrt): Add new option description.
18644         * doc/invoke.texi (mlow-precision-sqrt): Likewise.
18646 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
18648         [AArch64] Add more choices for the reciprocal square root approximation
18650         Allow a target to prefer such operation depending on the operation mode.
18652         * config/aarch64/aarch64-protos.h
18653         (AARCH64_APPROX_MODE): New macro.
18654         (AARCH64_APPROX_{NONE,ALL}): Likewise.
18655         (cpu_approx_modes): New structure.
18656         (tune_params): New member "approx_modes".
18657         * config/aarch64/aarch64-tuning-flags.def
18658         (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
18659         * config/aarch64/aarch64.c
18660         (generic_approx_modes): New core "cpu_approx_modes" structure.
18661         (exynosm1_approx_modes): Likewise.
18662         (xgene1_approx_modes): Likewise.
18663         (generic_tunings): New member "approx_modes".
18664         (cortexa35_tunings): Likewise.
18665         (cortexa53_tunings): Likewise.
18666         (cortexa57_tunings): Likewise.
18667         (cortexa72_tunings): Likewise.
18668         (exynosm1_tunings): Likewise.
18669         (thunderx_tunings): Likewise.
18670         (xgene1_tunings): Likewise.
18671         (use_rsqrt_p): New argument for the mode and use new member from
18672         "tune_params".
18673         (aarch64_builtin_reciprocal): Devise mode from builtin.
18674         (aarch64_optab_supported_p): New argument for the mode.
18675         * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
18677 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
18679         * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
18680         RS6000_BTM_MODULO flag into the set of flags that are considered
18681         to be part of the common configuration.
18683 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
18685         * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
18686         difference unsigned.
18687         (vec_absdb): New macro for vector absolute difference unsigned
18688         byte.
18689         (vec_absdh): New macro for vector absolute difference unsigned
18690         half-word.
18691         (vec_absdw): New macro for vector absolute difference unsigned word.
18692         * config/rs6000/altivec.md (UNSPEC_VADU): New value.
18693         (vadu<mode>3): New insn.
18694         (*p9_vadu<mode>3): New insn.
18695         * config/rs6000/rs6000-builtin.def (vadub): New built-in
18696         definition.
18697         (vaduh): New built-in definition.
18698         (vaduw): New built-in definition.
18699         (vadu): New overloaded built-in definition.
18700         (vadub): New overloaded built-in definition.
18701         (vaduh): New overloaded built-in definition.
18702         (vaduw): New overloaded built-in definition.
18703         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
18704         overloaded vector absolute difference unsigned functions.
18705         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
18706         the ISA 3.0 vector absolute difference unsigned built-in functions.
18708 2016-06-13  Eric Botcazou  <ebotcazou@adacore.com>
18710         * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
18711         update shared_lookup_references only once after changing operands.
18713 2016-06-13  Thomas Schwinge  <thomas@codesourcery.com>
18715         PR middle-end/71373
18716         * tree-nested.c (convert_nonlocal_omp_clauses)
18717         (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
18719         * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
18720         * tree.def (CASE_LABEL_EXPR): Likewise.
18722 2016-06-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18724         PR bootstrap/71481
18725         * input.c (test_builtins): Fix an assertion.
18727 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
18729         * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
18730         (paritysi2): Ditto.
18731         (isinfxf2): Ditto.
18732         (isinf<mode>2): Ditto.
18734 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
18736         * ggc-tests.c (test_finalization): Only test need_finalization_p
18737         for GCC_VERSION >= 4003.
18739 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18741         * config/s390/vecintrin.h: Fix file description in comment.
18743 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18745         * config/s390/s390-builtin-types.def: Change builtin type naming
18746         scheme to match builtin-types.def.
18748 2016-06-13  Marc Glisse  <marc.glisse@inria.fr>
18750         * fold-const.c (optimize_minmax_comparison): Remove.
18751         (fold_comparison): Remove call to the above.
18752         * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
18753         New transformations.
18755 2016-06-13  Alan Hayward  <alan.hayward@arm.com>
18757         PR tree-optimization/71416
18758         * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
18759         multiple entries
18761 2016-06-13  Martin Liska  <mliska@suse.cz>
18763         * predict.c (enum predictor_reason): Prefix enum with REASON_.
18764         (combine_predictions_for_insn): Likewise.
18765         (prune_predictions_for_bb): Likewise.
18766         (combine_predictions_for_bb): Likewise.
18768 2016-06-13  Richard Biener  <rguenther@suse.de>
18770         PR tree-optimization/71505
18771         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
18772         assert match comment.
18774 2016-06-13  Marek Polacek  <polacek@redhat.com>
18776         PR middle-end/71476
18777         * gimplify.c (maybe_warn_switch_unreachable): Factored out of
18778         gimplify_switch_expr.
18779         (warn_switch_unreachable_r): New function.
18781 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18783         PR target/71379
18784         * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
18785         one.
18787 2016-06-13  Richard Biener  <rguenther@suse.de>
18789         PR middle-end/64516
18790         * fold-const.c (fold_unary_loc): Preserve alignment when
18791         folding a VIEW_CONVERT_EXPR into a MEM_REF.
18793 2016-06-13  Martin Liska  <mliska@suse.cz>
18795         PR sanitizer/71458
18796         * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
18797         w/ -fsanitize=bounds.
18799 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
18801         * config/i386/i386.c (ix86_init_builtins): Calculate
18802         FLOAT128_FTYPE_CONST_STRING function type only once.
18803         * doc/extend.texi (x86 Built-in Functions): Update text, __float128
18804         built-in functions are available for x86-32 and x86-64 targets.
18806 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
18808         PR target/71241
18809         * config/i386/i386.i386-builtin-types.def (CONST_STRING):
18810         New primitive type.
18811         (FLOAT128_FTYPE_CONST_STRING): New function type.
18812         * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
18813         [IX86_BUILTIN_NANSQ]: Ditto.
18814         (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
18815         (ix86_init_builtin_types): Declare const_string_type_node.
18816         (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
18817         builtin functions.
18818         (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
18819         * doc/extend.texi (x86 Built-in Functions): Document
18820         __builtin_nanq and __builtin_nansq.
18822 2016-06-11  Jiong Wang  <jiong.wang@arm.com>
18824         PR target/71061
18825         * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
18826         * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
18827         length for pop patterns.
18828         (arm_attr_length_push_multi): Update comments.
18829         * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
18830         attribute.
18831         (*pop_multiple_with_writeback_and_return): Likewise.
18832         (*pop_multiple_with_return): Likewise.
18834 2016-06-11  Segher Boessenkool  <segher@kernel.crashing.org>
18836         PR middle-end/71310
18837         * fold-const.c (optimize_bit_field_compare): Don't try to use
18838         word_mode unconditionally for reading the bit field, look at
18839         DECL_BIT_FIELD_REPRESENTATIVE instead.
18841 2016-06-11  Kugan Vivekanandarajah  <kuganv@linaro.org>
18843         PR middle-end/71478
18844         * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
18845         vector integer type.
18847 2016-06-10  Jakub Jelinek  <jakub@redhat.com>
18849         PR middle-end/71494
18850         * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
18851         without LABEL_DECL, set *handled_ops_p to false instead of true.
18853 2016-06-10  Martin Sebor  <msebor@redhat.com>
18855         PR c/71392
18856         * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
18857         (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
18858         * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
18859         them.
18860         (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
18861         (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
18862         (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
18863         (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
18864         (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
18865         (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
18866         (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
18867         (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
18869 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18871         * config/arm/arm.h (pool_vector_label,
18872         return_used_this_function): Remove.
18874 2016-06-10  Jeff Law  <law@redhat.com>
18876         PR tree-optimization/71335
18877         * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
18878         zero length paths here.
18879         (convert_and_register_jump_thread_path): Remove hacks related to
18880         duplicated blocks in the jump thread path.
18881         (fsm_find_control_statement_thread_paths): Avoid putting the same
18882         block on the thread path twice, but ensure the thread path is
18883         unchanged from the caller's point of view.
18885 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
18887         * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
18888         * predict.def (PRED_LOOP_BRANCH): Remove.
18890 2016-06-10  David Malcolm  <dmalcolm@redhat.com>
18892         * Makefile.in (OBJS): Add ggc-tests.o.
18893         (GTFILES): Add ggc-tests.c.
18894         * ggc-tests.c: New file.
18895         * selftest-run-tests.c (selftest::run_tests): Call
18896         selftest::ggc_tests_c_tests.
18897         * selftest.h (selftest::ggc_tests_c_tests): New prototype.
18899 2016-06-10  Alexander Monakov  <amonakov@ispras.ru>
18901         * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
18903 2016-06-10  Maxim Ostapenko  <m.ostapenko@samsung.com>
18905         PR sanitizer/71480
18906         * varasm.c (place_block_symbol): Adjust alignment for asan protected
18907         STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
18909 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
18911         * profile.c: Include cfgloop.h.
18912         (branch_prob): Compute estimated number of iterations.
18913         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
18914         recompute estimate number of iterations from profile.
18916 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18918         PR inline-asm/68843
18919         * reg-stack.c (check_asm_stack_operands): Explicit input arguments
18920         must be grouped on top of stack.  Don't force early clobber
18921         on ordinary reg outputs.
18923 2016-06-10  Richard Biener  <rguenther@suse.de>
18925         * targhooks.c (default_builtin_vectorization_cost): Adjust
18926         vec_construct cost.
18928 2016-06-10  Richard Biener  <rguenther@suse.de>
18930         * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
18931         to fold the RHS to a constant if possible.
18933 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
18935         PR middle-end/71373
18936         * tree-nested.c (convert_nonlocal_omp_clauses)
18937         (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
18938         OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
18939         OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
18941         * gimplify.c (gimplify_adjust_omp_clauses): Discard
18942         OMP_CLAUSE_TILE.
18943         * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
18945         * omp-low.c (scan_sharing_clauses): Don't expect
18946         OMP_CLAUSE__CACHE_.
18948 2016-06-10  Alan Hayward  <alan.hayward@arm.com>
18950         PR tree-optimization/71407
18951         PR tree-optimization/71416
18952         * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
18953         BIT_FIELD_REF type.
18955 2016-06-10  Richard Biener  <rguenther@suse.de>
18957         PR middle-end/71477
18958         * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
18960 2016-06-09  Eric Botcazou  <ebotcazou@adacore.com>
18962         * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
18964 2016-06-09  Vladimir Makarov  <vmakarov@redhat.com>
18965             Jiong Wang  <jiong.wang@arm.com>
18967         PR rtl-optimization/70751
18968         * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
18969         spilled into memory.
18971 2016-06-09  Jonathan Yong  <10walls@gmail.com>
18973         Revert:
18974         2015-09-21  Jonathan Yong  <10walls@gmail.com>
18976         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
18977         sysroot/usr/lib/32api for additional win32 libraries,
18978         fixes failing Cygwin bootstrapping.
18980 2016-06-09  Marcin Baczyński  <marbacz@gmail.com>
18982         * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
18983         Delete.
18985 2016-06-09  David Malcolm  <dmalcolm@redhat.com>
18987         PR bootstrap/71471
18988         * pretty-print.c (pp_indent): Specify that %p is printed in a
18989         host-dependent manner.
18990         (test_pp_format): Remove the test for %p.
18992 2016-06-09  Maciej W. Rozycki  <macro@imgtec.com>
18994         * config/mips/mips.c (mips_output_jump): Fix formatting.
18996 2016-06-09  Richard Biener  <rguenther@suse.de>
18998         PR tree-optimization/71462
18999         * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
19000         removed blocks.
19002 2016-06-09  Martin Liska  <mliska@suse.cz>
19004         * predict.c (dump_prediction): Add new argument.
19005         (enum predictor_reason): New enum.
19006         (struct predictor_hash): New struct.
19007         (predictor_hash::hash): New function.
19008         (predictor_hash::equal): Likewise.
19009         (not_removed_prediction_p): New function.
19010         (prune_predictions_for_bb): Likewise.
19011         (combine_predictions_for_bb): Prune predictions.
19013 2016-06-09  Martin Liska  <mliska@suse.cz>
19015         * predict.c (filter_predictions): New function.
19016         (remove_predictions_associated_with_edge): Use the filter
19017         function.
19018         (equal_edge_p): New function.
19020 2016-06-09  Stefan Bruens  <stefan.bruens@rwth-aachen.de>
19022         * doc/invoke.texi (ARM Options): Use lexicographical ordering.
19023         Correct usage of @samp vs @option, add @samp where appropriate.
19024         Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
19025         Add armv6s-m and document it, as it is no official ARM name.
19027 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19029         * ifcvt.c (struct noce_if_info): Add transform_name field.
19030         (noce_try_move): Set if_info->transform_name to the function name.
19031         (noce_try_ifelse_collapse): Likewise.
19032         (noce_try_store_flag): Likewise.
19033         (noce_try_inverse_constants): Likewise.
19034         (noce_try_store_flag_constants): Likewise.
19035         (noce_try_addcc): Likewise.
19036         (noce_try_store_flag_mask): Likewise.
19037         (noce_try_cmove): Likewise.
19038         (noce_try_cmove_arith): Likewise.
19039         (noce_try_minmax): Likewise.
19040         (noce_try_abs): Likewise.
19041         (noce_try_sign_mask): Likewise.
19042         (noce_try_bitop): Likewise.
19043         (noce_convert_multiple_sets): Likewise.
19044         (noce_process_if_block): Print if_info->transform_name to
19045         dump_file if transformation succeeded.
19047 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19049         * config/arm/cortex-a57.md (cortex_a57_alu):
19050         Handle csel type.
19052 2016-06-08  Martin Sebor  <msebor@redhat.com>
19053             Jakub Jelinek  <jakub@redhat.com>
19055         PR c++/70507
19056         PR c/68120
19057         * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
19058         BUILT_IN_MUL_OVERFLOW_P): New builtins.
19059         * builtins.c: Include gimple-fold.h.
19060         (fold_builtin_arith_overflow): Handle
19061         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
19062         (fold_builtin_3): Likewise.
19063         * doc/extend.texi (Integer Overflow Builtins): Document
19064         __builtin_{add,sub,mul}_overflow_p.
19066 2016-06-08  Jose E. Marchesi  <jose.marchesi@oracle.com>
19068         * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
19069         SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
19071 2016-06-08  Alan Lawrence  <alan.lawrence@arm.com>
19073         * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
19074         Rewrite, looking one level down for records and arrays.
19076 2016-06-08  David Malcolm  <dmalcolm@redhat.com>
19078         * pretty-print.c: Include "selftest.h".
19079         (pp_format): Fix comment.
19080         (identifier_to_locale): Likewise.
19081         (selftest::test_basic_printing): New function.
19082         (selftest::assert_pp_format): New function.
19083         (selftest::test_pp_format): New function.
19084         (selftest::pretty_print_c_tests): New function.
19085         * selftest-run-tests.c (selftest::run_tests): Call
19086         selftest::pretty_print_c_tests.
19087         * selftest.h (pretty_print_c_tests): New declaration.
19089 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
19091         * invoke.texi (max-loop-headers-insns): Document.
19092         * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
19093         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
19094         (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
19096 2016-06-08  Richard Biener  <rguenther@suse.de>
19098         * tree-vect-stmts.c (vectorizable_load): Remove restrictions
19099         on strided SLP loads and fall back to scalar loads in case
19100         we can't chunk them.
19102 2016-06-08  Richard Biener  <rguenther@suse.de>
19104         PR tree-optimization/71452
19105         * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
19106         type used for the SSA rewrite has enough precision to cover
19107         the dynamic type of the location.
19109 2016-06-08  Jakub Jelinek  <jakub@redhat.com>
19110             Richard Biener  <rguenther@suse.de>
19112         PR c++/71448
19113         * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
19114         the same as DECL_P (base0) for indirect_base0.  Use equality_code
19115         in one further place.
19117 2016-06-08  Richard Sandiford  <richard.sandiford@arm.com>
19119         * expmed.c (store_bit_field_1): Do not restrict a multiword op0
19120         to one word if the field is known to overlap other words.
19121         (extract_bit_field_1): Likewise.
19122         (store_split_bit_field): Remove compensating code.
19123         (extract_split_bit_field): Likewise.
19125 2016-06-08  Bernd Schmidt  <bschmidt@redhat.com>
19127         PR debug/71432
19128         PR ada/71413
19129         * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
19131 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
19133         * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
19134         VDQF.
19135         * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
19136         (arch64_addpv4sf): Delete.
19137         (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
19138         "gen_aarch64_addpv4sf".
19139         * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly.  Use
19140         builtin.
19141         (vpadds_f32): Likewise.
19142         (vpaddq_f32): Likewise.
19143         (vpaddq_f64): Likewise.
19145 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
19147         * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
19148         VALLF.
19149         * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
19150         to VALLF.  Rename to "fabd<mode>3".
19151         "*fabd_scalar<mode>3): Delete.
19152         * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
19153         Use builtin.
19154         (vabdd_f64): Likewise.
19155         (vabd_f32): Likewise.
19156         (vabd_f64): Likewise.
19157         (vabdq_f32): Likewise.
19158         (vabdq_f64): Likewise.
19160 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
19162         * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
19163         VALLF.
19164         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
19165         "aarch64_rsqrts<mode>".
19166         * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
19167         * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly.  Use
19168         builtin.
19169         (vrsqrtsd_f64): Likewise.
19170         (vrsqrts_f32): Likewise.
19171         (vrsqrts_f64): Likewise.
19172         (vrsqrtsq_f32): Likewise.
19173         (vrsqrtsq_f64): Likewise.
19175 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
19177         * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
19178         VALLF.
19179         * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
19180         "aarch64_rsqrte<mode>".
19181         * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
19182         * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly.  Use
19183         builtin.
19184         (vrsqrted_f64): Likewise.
19185         (vrsqrte_f32): Likewise.
19186         (vrsqrte_f64): Likewise.
19187         (vrsqrteq_f32): Likewise.
19188         (vrsqrteq_f64): Likewise.
19190 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
19192         * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
19193         (ucvtf): Likewise.
19194         (fcvtzs): Likewise.
19195         (fcvtzu): Likewise.
19196         * config/aarch64/aarch64-simd.md
19197         (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
19198         (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
19199         * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
19200         Use builtin.
19201         (vcvt_n_f32_u32): Likewise.
19202         (vcvt_n_s32_f32): Likewise.
19203         (vcvt_n_u32_f32): Likewise.
19204         (vcvtq_n_f32_s32): Likewise.
19205         (vcvtq_n_f32_u32): Likewise.
19206         (vcvtq_n_f64_s64): Likewise.
19207         (vcvtq_n_f64_u64): Likewise.
19208         (vcvtq_n_s32_f32): Likewise.
19209         (vcvtq_n_s64_f64): Likewise.
19210         (vcvtq_n_u32_f32): Likewise.
19211         (vcvtq_n_u64_f64): Likewise.
19212         * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
19213         (VSDQ_SDI): Likewise.
19214         (fcvt_target): Support V4DI, V4SI and V2SI.
19215         (FCVT_TARGET): Likewise.
19217 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
19219         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
19220         (TYPES_BINOP_SUS): Likewise.
19221         (aarch64_simd_builtin_data): Update include file name.
19222         (aarch64_builtins): Likewise.
19223         * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
19224         for conversion between scalar float-point and fixed-point.
19225         (ucvtf): Likewise.
19226         (fcvtzs): Likewise.
19227         (fcvtzu): Likewise.
19228         * config/aarch64/aarch64.md
19229         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
19230         pattern for conversion between scalar float to fixed-pointer.
19231         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
19232         (UNSPEC_FCVTZS): New UNSPEC enumeration.
19233         (UNSPEC_FCVTZU): Likewise.
19234         (UNSPEC_SCVTF): Likewise.
19235         (UNSPEC_UCVTF): Likewise.
19236         * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
19237         Use builtin.
19238         (vcvtd_n_f64_u64): Likewise.
19239         (vcvtd_n_s64_f64): Likewise.
19240         (vcvtd_n_u64_f64): Likewise.
19241         (vcvtd_n_f32_s32): Likewise.
19242         (vcvts_n_f32_u32): Likewise.
19243         (vcvtd_n_s32_f32): Likewise.
19244         (vcvts_n_u32_f32): Likewise.
19245         * config/aarch64/iterators.md (fcvt_target): Support integer to float
19246         mapping.
19247         (FCVT_TARGET): Likewise.
19248         (FCVT_FIXED2F): New iterator.
19249         (FCVT_F2FIXED): Likewise.
19250         (fcvt_fixed_insn): New define_int_attr.
19252 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
19254         * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
19255         some statements was removed.
19257 2016-06-08  Alan Hayward  <alan.hayward@arm.com>
19259         * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
19260         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
19261         (vect_can_advance_ivs_p): likewise.
19262         (vect_update_ivs_after_vectorizer): likewise.
19263         * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
19264         (vect_analyze_scalar_cycles_1): likewise.
19265         (vect_analyze_loop_operations): likewise.
19266         (report_vect_op): likewise.
19267         (vect_is_slp_reduction): likewise.
19268         (vect_is_simple_reduction): likewise.
19269         (get_initial_def_for_induction): likewise.
19270         (vect_transform_loop): likewise.
19271         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
19272         (vect_recog_sad_pattern): likewise.
19273         (vect_recog_widen_sum_pattern): likewise.
19274         (vect_recog_widening_pattern): likewise.
19275         (vect_recog_divmod_pattern): likewise.
19276         * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
19277         (vect_analyze_slp_instance): likewise.
19278         (vect_transform_slp_perm_load): likewise.
19279         (vect_schedule_slp_instance): likewise.
19281 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
19283         * predict.c (predict_iv_comparison): Mention that heuristics is broken.
19284         (return_prediction): PRED_CONST_RETURN predict return as not taken.
19285         * predict.def (PRED_CONTINUE): Change hitrate 50->67
19286         (PRED_LOOP_BRANCH): Document predictor as broken.
19287         (PRED_LOOP_EXIT): Change hitrate 91->92.
19288         (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
19289         (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
19290         (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
19291         (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
19292         (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
19293         (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
19294         (PRED_CALL): Chane hitrate 71->67.
19295         (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
19296         (PRED_GOTO): Document as unused right now.
19297         (PRED_CONST_RETURN): Change hitrate 67->69
19298         (PRED_NEGATIVE_RETURN): Change hitrate 96->98
19299         (PRED_NULL_RETURN): Change hitrate 91->90.
19300         (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
19301         (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
19302         (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
19304 2016-06-07  Bill Seurer  <seurer@linux.vnet.ibm.com>
19306         * config/rs6000/altivec.h: Add __builtin_vec_mul.
19307         * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
19308         special case Altivec builtin.
19309         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
19310         VSX_BUILTIN_VEC_MUL (replaced with special case code).
19311         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
19312         code for ALTIVEC_BUILTIN_VEC_MUL.
19313         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
19314         for __builtin_vec_mul.
19316 2016-06-07  Peter Bergner  <bergner@vnet.ibm.com>
19318         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
19319         -mno-htm.
19321 2016-06-07  David Malcolm  <dmalcolm@redhat.com>
19323         * spellcheck.c (selftest::test_find_closest_string): New function.
19324         (spellcheck_c_tests): Call the above.
19326 2016-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19328         * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
19330 2016-06-07  Jakub Jelinek  <jakub@redhat.com>
19332         * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
19333         Yv=Yv,C alternatives.
19335 2016-06-07  Richard Biener  <rguenther@suse.de>
19337         PR c/61564
19338         * common.opt (ffast-math): Make Optimization.
19340 2016-06-07  Simon Dardis  <simon.dardis@imgtec.com>
19341             Prachi Godbole  <prachi.godbole@imgtec.com>
19343         * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
19344         `fabs' and `fneg' type attributes.
19345         (p5600_fpu_fabs): Add `fmove' to the comment.
19347 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
19349         * gimple.c: Include builtins.h
19350         (gimple_inexpensive_call_p): New function.
19351         * gimple.h (gimple_inexpensive_call_p): Declare.
19352         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
19353         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
19354         fix formatting.
19356 2016-06-07  Paolo Carlini  <paolo.carlini@oracle.com>
19358         * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
19359         (inform, inform_at_rich_loc, inform_n, warning, warning_at,
19360         warning_at_rich_loc, warning_n, pedwarn, permerror,
19361         permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
19362         sorry, fatal_error, internal_error, internal_error_no_backtrace):
19363         Use the above.
19365 2016-06-07  Richard Biener  <rguenther@suse.de>
19367         PR tree-optimization/71428
19368         * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
19369         BIT_FIELD_REF op vs. load.
19371 2016-06-07  Richard Biener  <rguenther@suse.de>
19373         PR middle-end/71423
19374         * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
19375         for signed ops.
19377 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
19379         * config/pa/pa.md (call): Generate indirect long calls to non-local
19380         functions on TARGET_64BIT.
19381         (call_value): Likewise.
19383 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
19385         * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
19386         pattern and subsequent splitters.
19387         (call_val_reg_64bit_post_reload): Likewise.
19389 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
19391         PR middle-end/71408
19392         * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
19393         propagate_op_to_single_use.
19395 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
19397         PR middle-end/71281
19398         * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
19400 2016-06-07  Uros Bizjak  <ubizjak@gmail.com>
19402         * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
19403         (enum x86_dirflag_state): New enum.
19404         (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
19405         (machine_function): Remove needs_cld.
19406         (ix86_current_function_needs_cld): Remove.
19407         * config/i386/i386.c (ix86_set_func_type): Set
19408         ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
19409         (ix86_expand_prologue): Do not emit CLD here.
19410         (ix86_dirflag_mode_needed): New function.
19411         (ix86_dirflag_mode_entry): Ditto.
19412         (ix86_mode_needed): Handle X86_DIRFLAG entity.
19413         (ix86_mode_after): Ditto.
19414         (ix86_mode_entry): Ditto.
19415         (ix86_mode_exit): Ditto.
19416         (ix86_emit_mode_set): Ditto.
19417         * config/i386/i386.md (strmov_singleop): Set
19418         ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
19419         Do not set ix86_current_function_needs_cld.
19420         (rep_mov): Ditto.
19421         (strset_singleop): Ditto.
19422         (rep_stos): Ditto.
19423         (cmpstrnqi_nz_1): Ditto.
19424         (cmpstrnqi_1): Ditto.
19425         (strlenqi_1): Ditto.
19427 2016-06-06  Jakub Jelinek  <jakub@redhat.com>
19429         PR tree-optimization/71259
19430         * tree-vect-slp.c (vect_get_constant_vectors): For
19431         VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
19432         one for constant op, and use COND_EXPR for non-constant.
19434 2016-06-06  David Malcolm  <dmalcolm@redhat.com>
19436         * Makefile.in (OBJS): Add function-tests.o,
19437         hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
19438         selftest-run-tests.o.
19439         (OBJS-libcommon): Add selftest.o.
19440         (OBJS-libcommon-target): Add selftest.o.
19441         (all.internal): Add "selftest".
19442         (all.cross): Likewise.
19443         (selftest): New phony target.
19444         (s-selftest): New target.
19445         (selftest-gdb): New phony target.
19446         (COLLECT2_OBJS): Add selftest.o.
19447         * bitmap.c: Include "selftest.h".
19448         (selftest::test_gc_alloc): New function.
19449         (selftest::test_set_range): New function.
19450         (selftest::test_clear_bit_in_middle): New function.
19451         (selftest::test_copying): New function.
19452         (selftest::test_bitmap_single_bit_set_p): New function.
19453         (selftest::bitmap_c_tests): New function.
19454         * common.opt (fself-test): New.
19455         * diagnostic-show-locus.c: Include "selftest.h".
19456         (make_range): New function.
19457         (test_range_contains_point_for_single_point): New function.
19458         (test_range_contains_point_for_single_line): New function.
19459         (test_range_contains_point_for_multiple_lines): New function.
19460         (assert_eq): New function.
19461         (test_get_line_width_without_trailing_whitespace): New function.
19462         (selftest::diagnostic_show_locus_c_tests): New function.
19463         * et-forest.c: Include "selftest.h".
19464         (selftest::test_single_node): New function.
19465         (selftest::test_simple_tree): New function.
19466         (selftest::test_disconnected_nodes): New function.
19467         (selftest::et_forest_c_tests): New function.
19468         * fold-const.c: Include "selftest.h".
19469         (selftest::assert_binop_folds_to_const): New function.
19470         (selftest::assert_binop_folds_to_nonlvalue): New function.
19471         (selftest::test_arithmetic_folding): New function.
19472         (selftest::fold_const_c_tests): New function.
19473         * function-tests.c: New file.
19474         * gimple.c: Include "selftest.h".
19475         Include "gimple-pretty-print.h".
19476         (selftest::verify_gimple_pp): New function.
19477         (selftest::test_assign_single): New function.
19478         (selftest::test_assign_binop): New function.
19479         (selftest::test_nop_stmt): New function.
19480         (selftest::test_return_stmt): New function.
19481         (selftest::test_return_without_value): New function.
19482         (selftest::gimple_c_tests): New function.
19483         * hash-map-tests.c: New file.
19484         * hash-set-tests.c: New file.
19485         * input.c: Include "selftest.h".
19486         (selftest::assert_loceq): New function.
19487         (selftest::test_accessing_ordinary_linemaps): New function.
19488         (selftest::test_unknown_location): New function.
19489         (selftest::test_builtins): New function.
19490         (selftest::test_reading_source_line): New function.
19491         (selftest::input_c_tests): New function.
19492         * rtl-tests.c: New file.
19493         * selftest-run-tests.c: New file.
19494         * selftest.c: New file.
19495         * selftest.h: New file.
19496         * spellcheck.c: Include "selftest.h".
19497         (selftest::levenshtein_distance_unit_test_oneway): New function,
19498         adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
19499         (selftest::levenshtein_distance_unit_test): Likewise.
19500         (selftest::spellcheck_c_tests): Likewise.
19501         * toplev.c: Include selftest.h.
19502         (toplev::run_self_tests): New.
19503         (toplev::main): Handle -fself-test.
19504         * toplev.h (toplev::run_self_tests): New.
19505         * tree.c: Include "selftest.h".
19506         (selftest::test_integer_constants): New function.
19507         (selftest::test_identifiers): New function.
19508         (selftest::test_labels): New function.
19509         (selftest::tree_c_tests): New function.
19510         * tree-cfg.c: Include "selftest.h".
19511         (selftest::push_fndecl): New function.
19512         (selftest::test_linear_chain): New function.
19513         (selftest::test_diamond): New function.
19514         (selftest::test_fully_connected): New function.
19515         (selftest::tree_cfg_c_tests): New function.
19516         * vec.c: Include "selftest.h".
19517         (selftest::safe_push_range): New function.
19518         (selftest::test_quick_push): New function.
19519         (selftest::test_safe_push): New function.
19520         (selftest::test_truncate): New function.
19521         (selftest::test_safe_grow_cleared): New function.
19522         (selftest::test_pop): New function.
19523         (selftest::test_safe_insert): New function.
19524         (selftest::test_ordered_remove): New function.
19525         (selftest::test_unordered_remove): New function.
19526         (selftest::test_block_remove): New function.
19527         (selftest::reverse_cmp): New function.
19528         (selftest::test_qsort): New function.
19529         (selftest::vec_c_tests): New function.c.
19530         * wide-int.cc: Include selftest.h and wide-int-print.h.
19531         (selftest::from_int <wide_int>): New function.
19532         (selftest::from_int <offset_int>): New function.
19533         (selftest::from_int <widest_int>): New function.
19534         (selftest::assert_deceq): New function.
19535         (selftest::assert_hexeq): New function.
19536         (selftest::test_printing <VALUE_TYPE>): New function template.
19537         (selftest::test_ops <VALUE_TYPE>): New function template.
19538         (selftest::test_comparisons <VALUE_TYPE>): New function template.
19539         (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
19540         template.
19541         (selftest::wide_int_cc_tests): New function.
19543 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19545         PR middle-end/37780
19546         * ifcvt.c (noce_try_ifelse_collapse): New function.
19547         Declare prototype.
19548         (noce_process_if_block): Call noce_try_ifelse_collapse.
19549         * simplify-rtx.c (simplify_cond_clz_ctz): New function.
19550         (simplify_ternary_operation): Use the above to simplify
19551         conditional CLZ/CTZ expressions.
19553 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19555         PR middle-end/37780
19556         * config/aarch64/aarch64.md (ctz<mode>2): Convert to
19557         define_insn_and_split.
19559 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19561         PR middle-end/37780
19562         * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
19564 2016-06-06  Bernd Edlinger  <bernd.edlinger@hotmail.de>
19566         PR c/24414
19567         * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
19568         Implicitly clobber memory for basic asm with non-empty assembler
19569         string.  Use targetm.md_asm_adjust also here.
19570         * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
19571         * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
19572         * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
19573         non-empty assembler string.
19574         * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
19575         * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
19576         (decode_asm_operands): Handle basic asm in PARALLEL block.
19577         (extract_insn): Handle basic asm in PARALLEL block.
19578         * doc/extend.texi: Mention new behavior of basic asm.
19579         * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
19580         * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
19581         branch_needs_nop_p): Use asm_noperands.
19583 2016-06-06  Jose E. Marchesi  <jose.marchesi@oracle.com>
19585         * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
19586         Include the M7 SPARC DFA scheduler.
19587         New attribute v3pipe.
19588         Annotate insns with v3pipe where appropriate.
19589         Define cpu_feature vis4.
19590         Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
19591         Add (V8QI "8") to vbits.
19592         Add insns {add,sub}v8qi3
19593         Add insns ss{add,sub}v8qi3
19594         Add insns us{add,sub}{v8qi,v4hi}3
19595         Add insns {min,max}{v8qi,v4hi,v2si}3
19596         Add insns {minu,maxu}{v8qi,v4hi,v2si}3
19597         Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
19598         * config/sparc/niagara4.md: Add a comment explaining the
19599         discrepancy between the documented latenty numbers and the
19600         implemented ones.
19601         * config/sparc/niagara7.md: New file.
19602         * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
19603         supports SPARC5 and VIS 4.0 instructions.
19604         * configure: Regenerate.
19605         * config.in: Likewise.
19606         * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
19607         * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
19608         TARGET_CPU_niagara7.
19609         (ASM_CPU64_DEFAULT_SPEC): Likewise.
19610         (CPP_CPU_SPEC): Handle niagara7.
19611         (ASM_CPU_SPEC): Likewise.
19612         * config/sparc/sparc-opts.h (processor_type): Add
19613         PROCESSOR_NIAGARA7.
19614         (mvis4): New option.
19615         * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
19616         (AS_NIAGARA7_FLAG): Define.
19617         (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
19618         (CPP_CPU64_DEFAULT_SPEC): Likewise.
19619         (CPP_CPU_SPEC): Handle niagara7.
19620         (ASM_CPU_SPEC): Likewise.
19621         * config/sparc/sparc.c (niagara7_costs): Define.
19622         (sparc_option_override): Handle niagara7 and adjust cache-related
19623         parameters with better values for niagara cpus.  Also support VIS4.
19624         (sparc32_initialize_trampoline): Likewise.
19625         (sparc_use_sched_lookahead): Likewise.
19626         (sparc_issue_rate): Likewise.
19627         (sparc_register_move_cost): Likewise.
19628         (dump_target_flag_bits): Support VIS4.
19629         (sparc_vis_init_builtins): Likewise.
19630         (sparc_builtins): Likewise.
19631         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
19632         VIS4 4.0.
19633         * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
19634         UltraSparc M7.
19635         * config/sparc/sparc.opt (sparc_processor_type): New value
19636         niagara7.
19637         * config/sparc/visintrin.h (__attribute__): Prototypes for the
19638         VIS4 builtins.
19639         * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
19640         -mvis4.
19641         * doc/extend.texi (SPARC VIS Built-in Functions): Document the
19642         VIS4 builtins.
19644 2016-06-06  Jonathan Wakely  <jwakely@redhat.com>
19646         * doc/sourcebuild.texi (Directives): Remove extra closing braces.
19648 2016-06-06  Richard Biener  <rguenther@suse.de>
19650         PR tree-optimization/71398
19651         * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
19652         remove edges.
19654 2016-06-05  James Bowman  <james.bowman@ftdichip.com>
19656         * config/ft32/ft32.c (ft32_setup_incoming_varargs,
19657         ft32_expand_prolog, ft32_expand_epilogue):
19658         Handle pretend_args.
19659         * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
19660         * config/ft32/ft32.md: Add pretend_returner.
19662 2016-06-06  Uros Bizjak  <ubizjak@gmail.com>
19664         PR target/71389
19665         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
19666         Copy op1 RTX to avoid invalid sharing.
19667         (ix86_expand_vector_move_misalign): Ditto.
19669 2016-06-05  John David Anglin  <danglin@gcc.gnu.org>
19671         * expr.c (move_by_pieces_d::generate): Mark mode parameter with
19672         ATTRIBUTE_UNUSED.
19674 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
19676         * predict.c (predicted_by_loop_heuristics_p): New function.
19677         (predict_iv_comparison): Use it.
19678         (predict_loops): Walk from innermost loops; do not predict edges
19679         leaving multiple loops multiple times; implement
19680         PRED_LOOP_ITERATIONS_MAX heuristics.
19681         * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
19683 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
19685         * cfg.c (check_bb_profile): Do not report mismatched profiles when
19686         only edges out of BB are EH edges.
19688 2016-06-04  Martin Sebor  <msebor@redhat.com>
19689             Marcin Baczyński  <marbacz@gmail.com>
19691         PR c/48116
19692         * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
19693         a void expression in a void function.
19695 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
19697         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
19698         aux; dump reasons of decisions.
19699         (should_duplicate_loop_header_p): Likewise.
19700         (do_while_loop_p): Likewise.
19701         (ch_base::copy_headers): Dump asi num insns duplicated.
19703 2016-06-04  Jakub Jelinek  <jakub@redhat.com>
19705         PR tree-optimization/71405
19706         * tree-ssa.c (execute_update_addresses_taken): For clobber with
19707         incompatible type, build a new clobber with the right type instead
19708         of building a VIEW_CONVERT_EXPR around it.
19710 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
19712         PR tree-optimization/52171
19713         * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
19714         by_pieces_ninsns instead of move_by_pieces_ninsns.
19716 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
19718         * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
19719         for reg+reg addressing mode.
19721 2016-06-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19723         * rs6000-c.c (c/c-tree.h): Add #include.
19724         (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
19725         in C++ when found in the base position of vec_ld or vec_st.
19727 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
19729         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
19730         use of profile unless profile status is PROFILE_READ.
19731         * profile.c (compute_branch_probabilities): Set profile status
19732         only after reporting predictor hitrates.
19734 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
19736         PR target/71276
19737         PR target/71277
19738         * common.opt (ffp-int-builtin-inexact): New option.
19739         * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
19740         * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
19741         (ceil@var{m}2): Document dependence on this option.
19742         * ipa-inline-transform.c (inline_call): Handle
19743         flag_fp_int_builtin_inexact.
19744         * ipa-inline.c (can_inline_edge_p): Likewise.
19745         * config/i386/i386.md (rintxf2): Do not test
19746         flag_unsafe_math_optimizations.
19747         (rint<mode>2_frndint): New define_insn.
19748         (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
19749         or !flag_trapping_math for SSE.  Just use gen_rint<mode>2_frndint
19750         for 387 instead of extending and truncating.
19751         (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
19752         !flag_trapping_math instead of flag_unsafe_math_optimizations.
19753         Change to frndint<mode>2_<rounding>.
19754         (frndintxf2_<rounding>_i387): Likewise.  Change to
19755         frndint<mode>2_<rounding>_i387.
19756         (<rounding_insn>xf2): Likewise.
19757         (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
19758         !flag_trapping_math instead of flag_unsafe_math_optimizations for
19759         x87.  Test TARGET_ROUND || !flag_trapping_math ||
19760         flag_fp_int_builtin_inexact instead of !flag_trapping_math for
19761         SSE.  Use ROUND_NO_EXC in constant operand of
19762         gen_sse4_1_round<mode>2.  Just use gen_frndint<mode>2_<rounding>
19763         for 387 instead of extending and truncating.
19765 2016-06-03  H.J. Lu  <hongjiu.lu@intel.com>
19766             Julia Koval  <julia.koval@intel.com>
19768         PR target/66960
19769         PR target/67630
19770         PR target/67634
19771         PR target/67841
19772         PR target/68037
19773         PR target/68618
19774         PR target/68661
19775         PR target/69575
19776         PR target/69596
19777         PR target/69734
19778         * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
19779         * config/i386/i386.c (ix86_conditional_register_usage): Preserve
19780         all registers, except for function return registers if there are
19781         no caller-saved registers.
19782         (ix86_set_func_type): New function.
19783         (ix86_set_current_function): Call ix86_set_func_type to set
19784         no_caller_saved_registers and func_type.  Call reinit_regs if
19785         caller-saved registers are changed.  Don't allow MPX, SSE, MMX
19786         nor x87 instructions in interrupt handler nor function with
19787         no_caller_saved_registers attribute.
19788         (ix86_function_ok_for_sibcall): Return false if there are no
19789         caller-saved registers.
19790         (type_natural_mode): Don't warn ABI change for MMX in interrupt
19791         handler.
19792         (ix86_function_arg_advance): Skip for callee in interrupt handler.
19793         (ix86_function_arg): Return special arguments in interrupt handler.
19794         (ix86_promote_function_mode): Promote pointer to word_mode only
19795         for normal functions.
19796         (ix86_can_use_return_insn_p): Don't use `ret' instruction in
19797         interrupt handler.
19798         (ix86_epilogue_uses): New function.
19799         (ix86_hard_regno_scratch_ok): Likewise.
19800         (ix86_save_reg): Preserve all registers in interrupt handler
19801         after reload.  Preserve all registers, except for function return
19802         registers, if there are no caller-saved registers after reload.
19803         (find_drap_reg): Always use callee-saved register if there are
19804         no caller-saved registers.
19805         (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
19806         for interrupt handler.
19807         (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
19808         Emit cld instruction if stringops are used in interrupt handler
19809         or interrupt handler isn't a leaf function.
19810         (ix86_expand_epilogue): Generate interrupt return for interrupt
19811         handler and pop the 'ERROR_CODE' off the stack before interrupt
19812         return in exception handler.
19813         (ix86_expand_call): Disallow calling interrupt handler directly.
19814         If there are no caller-saved registers, mark all registers that
19815         are clobbered by the call which returns as clobbered.
19816         (ix86_handle_no_caller_saved_registers_attribute): New function.
19817         (ix86_handle_interrupt_attribute): Likewise.
19818         (ix86_attribute_table): Add interrupt and no_caller_saved_registers
19819         attributes.
19820         (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
19821         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
19822         accumulation in interrupt function if stack may be realigned to
19823         avoid DRAP.
19824         (EPILOGUE_USES): New.
19825         (function_type): New enum.
19826         (machine_function): Add func_type and no_caller_saved_registers.
19827         * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
19828         (interrupt_return): New pattern.
19829         * doc/extend.texi: Document x86 interrupt and
19830         no_caller_saved_registers attributes.
19832 2016-06-03  Bernd Schmidt  <bschmidt@redhat.com>
19834         PR tree-optimization/52171
19835         * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
19836         (expand_builtin_memcmp): New arg RESULT_EQ.  All callers changed.
19837         Look for constant strings.  Move some code to emit_block_cmp_hints
19838         and use it.
19839         * builtins.def (BUILT_IN_MEMCMP_EQ): New.
19840         * defaults.h (COMPARE_MAX_PIECES): New macro.
19841         * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
19842         (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
19843         (clear_by_pieces_1): Don't declare.  Move definition before use.
19844         (can_do_by_pieces): New static function.
19845         (can_move_by_pieces): Use it.  Return bool.
19846         (by_pieces_ninsns): Renamed from move_by_pieces_ninsns.  New arg
19847         OP.  All callers changed.  Handle COMPARE_BY_PIECES.
19848         (class pieces_addr); New.
19849         (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
19850         pieces_addr::adjust, pieces_addr::increment_address,
19851         pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
19852         functions for it.
19853         (class op_by_pieces_d): New.
19854         (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
19855         functions for it.
19856         (class move_by_pieces_d, class compare_by_pieces_d,
19857         class store_by_pieces_d): New subclasses of op_by_pieces_d.
19858         (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
19859         move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
19860         store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
19861         compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
19862         compare_by_pieces_d::finish_mode): New member functions.
19863         (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
19864         functions.
19865         (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
19866         (emit_block_cmp_hints): New function.
19867         (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
19868         use the newly defined classes.
19869         * expr.h (by_pieces_constfn): New typedef.
19870         (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
19871         (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
19872         (move_by_pieces_ninsns): Don't declare.
19873         (can_move_by_pieces): Change return value to bool.
19874         * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
19875         (compare_by_pieces_branch_ratio): New hook.
19876         * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
19877         (by_pieces_ninsns): Declare.
19878         * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
19879         COMPARE_BY_PIECES.
19880         (default_compare_by_pieces_branch_ratio): New function.
19881         * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
19882         * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
19883         * doc/tm.texi: Regenerate.
19884         * tree-ssa-strlen.c: Include "builtins.h".
19885         (handle_builtin_memcmp): New static function.
19886         (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
19887         * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
19889 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
19891         * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
19892         relevant stmts which are simple and invariant.
19893         * tree-vect-loop.c (vectorizable_live_operation): Check relevance
19894         instead of simple and invariant
19896 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
19898         * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
19899         (vectorizable_reduction): Check for new relevant state.
19900         (vectorizable_live_operation): vectorize live stmts using
19901         BIT_FIELD_REF.  Remove special case for gimple assigns stmts.
19902         * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
19903         (vect_stmt_relevant_p): Check for stmts which are only used live.
19904         (process_use): Use of a stmt does not inherit it's live value.
19905         (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
19906         (vect_analyze_stmt): Check for new relevant state.
19907         * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
19908         outside the loop, but not inside it.
19910 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
19912         * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
19913         * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
19914         (vect_get_vec_def_for_operand): Split out code.
19916 2016-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
19918         * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
19920 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
19922         * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
19924 2016-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19926         * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
19928 2016-06-03  Jakub Jelinek  <jakub@redhat.com>
19930         PR middle-end/71387
19931         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
19932         to noreturn e->callee->decl that has void return type and void
19933         arguments, adjust gimple_call_fntype and remove lhs even if it had
19934         previously addressable type.
19936 2016-06-02  Jeff Law  <law@redhat.com>
19938         PR tree-optimization/71328
19939         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
19940         error when checking for a jump back onto the copied path.
19942 2016-06-02  David Malcolm  <dmalcolm@redhat.com>
19944         * config/microblaze/microblaze.c (get_branch_target): Add return
19945         NULL_RTX for the non-CALL_P case.
19946         (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
19947         (insert_wic): Remove unused local "j".
19949 2016-06-02  Martin Liska  <mliska@suse.cz>
19951         * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
19953 2016-06-02  H.J. Lu  <hongjiu.lu@intel.com>
19954             Julia Koval  <julia.koval@intel.com>
19956         * function.c (assign_parm_setup_stack): Force source into a
19957         register if needed.
19958         * target.def (function_incoming_arg): Update documentation to
19959         allow arbitrary address computation based on hard register.
19960         * doc/tm.texi: Regenerated.
19962 2016-06-02  Martin Liska  <mliska@suse.cz>
19964         * predict.c (combine_predictions_for_bb): Fix first match in
19965         cases where a first predictor contains more than one occurence
19966         in list of predictors.  Take the best value in such case.
19968 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19970         PR rtl-optimization/71295
19971         * rtlanal.c (subreg_get_info): If taking a subreg at the requested
19972         offset would go over the size of the inner mode reject it.
19974 2016-06-02  Jakub Jelinek  <jakub@redhat.com>
19976         * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
19977         x=x,x and v=v,m instead of x=x,m.
19979         * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
19980         alternative.  Change x=x,x alternative to v=Yv,Yv and x=rm,C
19981         alternative to v=rm,C.
19983         * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
19984         alternative.  Change x=xm,C alternative to v=vm,C, x=x,x alternative
19985         to v=Yv,Yv and x=x,m to v=v,m.  Use maybe_evex prefix attribute
19986         instead of vex for the last two above mentioned alternatives.
19988 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19990         PR target/70830
19991         * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
19993 2016-06-02  Segher Boessenkool  <segher@kernel.crashing.org>
19995         * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
19997 2016-06-01  David Malcolm  <dmalcolm@redhat.com>
19999         * config/rl78/rl78.c (rl78_expand_prologue): Convert local
20000         from int to unsigned.
20002 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
20004         * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
20005         alternatives, eliminating preferred register class.  Add support
20006         for the MTVSRDD instruction in ISA 3.0.
20007         (vsx_splat_v4si_internal): Use splat_input_operand instead of
20008         reg_or_indexed_operand.
20009         (vsx_splat_v4sf_internal): Likewise.
20011 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
20013         PR target/71186
20014         * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
20015         for loading up all 0's or all 1's.
20017 2016-06-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20019         * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
20021 2016-06-01  Eduard Sanou  <dhole@openmailbox.org>
20023         * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
20024         extension.
20025         * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
20026         * gcc.c (set_source_date_epoch_envvar): New function, sets
20027         the SOURCE_DATE_EPOCH environment variable to the current time.
20029 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
20031         * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
20032         the factor for live Phi nodes.
20034 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
20036         * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
20037         * tree-parloops.c (parallelize_loops): likewise.
20038         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
20039         tree_unswitch_outer_loop): likewise.
20041 2016-06-01  Jakub Jelinek  <jakub@redhat.com>
20043         PR middle-end/71371
20044         * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
20045         around creation of the temporary.
20047 2016-06-01  Richard Biener  <rguenther@suse.de>
20049         PR tree-optimization/71366
20050         * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
20051         (unloop_loops): Move removing edges here ...
20052         (try_unroll_loop_completely): ... from here.
20053         (try_peel_loop): ... and here.
20054         (tree_unroll_loops_completely_1): Track parent loops via
20055         bitmap of header BBs.
20056         (tree_unroll_loops_completely): Adjust for that.
20058 2016-06-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
20060         * config/rs6000/altivec.h (vec_slv): New macro.
20061         (vec_srv): New macro.
20062         * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
20063         (UNSPEC_VSRV): New value.
20064         (vslv): New insn.
20065         (vsrv): New insn.
20066         * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
20067         (vsrv): New builtin definition.
20068         * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
20069         define argument types for new builtin.
20070         (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
20071         new builtin.
20072         * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
20073         functions.
20075 2016-06-01  Uros Bizjak  <ubizjak@gmail.com>
20076             Jocelyn Mayer  <l_indien@magic.fr>
20078         PR target/67310
20079         * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
20080         detect processor family for signature_CENTAUR_ebx.
20081         <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
20082         signature_CENTAUR_ebx.
20083         <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
20084         <default>: Pass x86-64 for has_longmode.
20086 2016-06-01  Nathan Sidwell  <nathan@acm.org>
20088         * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
20089         undefined weak.
20091 2016-06-01  Richard Biener  <rguenther@suse.de>
20093         PR tree-optimization/71261
20094         * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
20095         of stmts successfully put in the bool pattern.  Remove
20096         single-use restriction.
20097         (adjust_bool_pattern_cast): Add cast at the use site via the
20098         pattern def sequence.
20099         (adjust_bool_pattern): Remove recursion, maintain a hash-map
20100         of patterned defs.  Use the pattern def seqence instead of
20101         multiple independent patterns.
20102         (sort_after_uid): New qsort compare function.
20103         (adjust_bool_stmts): New function to process stmts in the bool
20104         pattern in IL order.
20105         (vect_recog_bool_pattern): Adjust.
20106         * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
20107         (ifcvt_walk_pattern_tree): Likewise.
20108         (stmt_is_root_of_bool_pattern): Likewise.
20109         (ifcvt_repair_bool_pattern): Likewise.
20110         (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
20112 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
20114         * loop-unroll.c (decide_unroll_constant_iterations,
20115         decide_unroll_runtime_iterations, decide_unroll_stupid): Use
20116         likely upper bounds.
20117         * loop-iv.c (find_simple_exit): Dump likely upper bounds.
20119 2016-06-01  Thomas Schwinge  <thomas@codesourcery.com>
20121         * tree-core.h (enum omp_clause_code): Remove
20122         OMP_CLAUSE_DEVICE_RESIDENT.  Adjust all users.
20124 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20126         * config/arm/sync.md (arm_store_exclusive<mode>):
20127         Use 'H' output modifier on operands[2] rather than creating a new
20128         entry in out-of-bounds memory of the operands array.
20129         (arm_store_release_exclusivedi): Likewise.
20131 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20133         * config/arm/arm.c (arm_fusion_enabled_p): New function.
20134         * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
20135         * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
20136         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
20138 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
20140         * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
20141         into account live statements for mask producers.
20143 2016-06-01  Richard Biener  <rguenther@suse.de>
20145         PR tree-optimization/71311
20146         * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
20147         restrict to non-INTEGER_CST @0.
20149 2016-06-01  Richard Biener  <rguenther@suse.de>
20151         * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
20152         (relational patterns): Use :c to avoid pattern duplications.
20154 2016-06-01  Richard Biener  <rguenther@suse.de>
20156         * genmatch.c (comparison_code_p): New predicate.
20157         (swap_tree_comparison): New function.
20158         (commutate): Add for_vec parameter to append new for entries.
20159         Support commutating relational operators by swapping it alongside
20160         operands.
20161         (lower_commutative): Adjust.
20162         (dt_simplify::gen): Do not pass artificial operators to gen
20163         functions.
20164         (decision_tree::gen): Do not add artificial operators as parameters.
20165         (parser::parse_expr): Verify operator commutativity when :c is
20166         applied.  Allow :C to override this.
20167         * match.pd: Adjust patterns to use :C instead of :c where required.
20169 2016-06-01  Patrick Palka  <ppalka@gcc.gnu.org>
20171         PR tree-optimization/71077
20172         * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
20173         the combining step, use boolean_false_node and boolean_true_node
20174         as the designated false/true return values.
20176 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
20178         * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
20179         * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
20180         (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
20181         PRED_LOOP_EXIT.
20183 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
20185         * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
20186         of flags impliying the register renaming.
20187         * toplev.c (process_options): Do not imply flag_rename_registers with
20188         loop peeling.
20190 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
20192         * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
20193         default implementation.
20195 2016-05-31  Nathan Sidwell  <nathan@acm.org>
20197         * dwarf2out.c (cur_line_info_table): Add GTY marker.
20199 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
20201         * config/sh/constraints.md (b): Remove constraint.
20202         * config/sh/predicates.md (arith_reg_operand): Remove
20203         TARGET_REGISTER_P.
20204         * config/sh/sh-modes.def (PDI): Remove.
20205         * config/sh/sh.c (sh_target_reg_class,
20206         sh_optimize_target_register_callee_saved): Remove functions.
20207         (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
20208         (sh_expand_epilogue): Update comment.
20209         (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
20210         sh_secondary_reload): Remove TARGET_REGS related code.
20211         * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
20212         TARGET_REGISTER_P): Remove macros.
20213         (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
20214         * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
20215         TR1_REG, TR2_REG): Remove constants.
20216         * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
20218 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
20220         * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
20221         define_expand patterns.
20222         (adddi3_compact): Rename to adddi3.
20223         (subdi3_compact): Rename to subdi3.
20224         (*negdi2): Rename to negdi2.
20225         (*abs<mode>2): Rename to abs<mode>2.
20227 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
20229         * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
20230         (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
20231         (atomic_sub_fetchsi): ... this new pattern.
20232         (mvtc): Add CC_REG clobber.
20234 2016-05-31  Marek Polacek  <polacek@redhat.com>
20236         * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
20238 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20240         * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
20241         aarch64_fusion_enabled_p to check for fusion capabilities.
20243 2016-05-31  Richard Biener  <rguenther@suse.de>
20245         PR tree-optimization/71352
20246         * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
20247         minus one and a negate.
20249 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20251         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
20252         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
20253         Delete prototype.
20254         * config/aarch64/iterators.md (insn_count): Add descriptive comment.
20255         * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
20256         Remove use of aarch64_simd_attr_length_move, set length attribute
20257         directly.
20258         (*aarch64_be_movoi): Likewise.
20259         (*aarch64_be_movci): Likewise.
20260         (*aarch64_be_movxi): Likewise.
20262 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
20264         * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
20265         It no longer does that.
20266         * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
20268 2016-05-31  Wladimir J. van der Laan  <laanwj@gmail.com>
20270         * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
20271         attribute __unused__.
20273 2016-05-31  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20275         * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
20276         * config/arm/arm.c (arm_arch_thumb1): Define.
20277         (arm_option_override): Initialize arm_arch_thumb1.
20278         * config/arm/arm.h (arm_arch_thumb1): Declare.
20279         (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
20280         support Thumb-1 ISA.
20282 2016-05-31  Kirill Yukhin  <kirill.yukhin@intel.com>
20284         PR target/71346
20285         * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
20286         `Yv' for scalar operand.
20288 2016-05-31  Tom de Vries  <tom@codesourcery.com>
20290         PR tree-optimization/69068
20291         * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
20292         phis with more than two args.
20294 2016-05-30  Andreas Tobler  <andreast@gcc.gnu.org>
20296         * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
20297         armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
20298         target.
20300 2016-05-30  Jose E. Marchesi  <jose.marchesi@oracle.com>
20302         * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
20303         tune_64.
20304         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
20305         support on SPARC.
20306         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
20307         cpu_32, cpu_64, tune_32 and tune_64.
20308         * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
20310 2016-05-30  Uros Bizjak  <ubizjak@gmail.com>
20312         * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
20314 2016-05-30  Andi Kleen  <ak@linux.intel.com>
20316         * auto-profile.c (read_profile): Replace asserts with errors
20317         when file does not exist.
20318         * gcov-io.c (gcov_read_words): Dito.
20320 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
20322         * tree-cfg.c (print_loop): Print likely upper bounds.
20324 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
20326         * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
20327         * opts.c (default_options): Enable peel loops at -O3.
20328         * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
20329         (try_peel_loop): Do not re-peel already peeled loops;
20330         use likely upper bounds; fix profile updating.
20331         (pass_complete_unroll::execute): Initialize peeled_loops.
20333 2016-05-30  Martin Liska  <mliska@suse.cz>
20335         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
20336         computed costs by frequency of BB they belong to.
20337         (get_scaled_computation_cost_at): New function.
20339 2016-05-30  Alexander Monakov  <amonakov@ispras.ru>
20340             Marc Glisse  <marc.glisse@inria.fr>
20342         PR tree-optimization/71289
20343         * match.pd (-1 / B < A, A > -1 / B): New transformations.
20345 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
20347         * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
20349 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
20351         * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
20352         for peeled copies; avoid underflow when updating estimates; correctly
20353         scale loop profile.
20355 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
20357         * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
20358         r236875. Corrected oe3 to oe2 as obvious.
20360 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
20362         PR middle-end/71269
20363         PR middle-end/71252
20364         * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
20365         that inserted stmt will not dominate stmts that defines its operand.
20366         (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
20367         (rewrite_expr_tree_parallel): Likewise.
20369 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
20371         PR middle-end/71252
20372         * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
20373         all fields including stmt_to_insert are swapped.
20375 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
20377         * predict.h (force_edge_cold): Declare.
20378         * predict.c (force_edge_cold): New function.
20379         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
20380         updating.
20381         (canonicalize_loop_induction_variables): Fix formating.
20383 2016-05-30  Eric Botcazou  <ebotcazou@adacore.com>
20385         * config/visium/visium.c (visium_split_double_add): Minor tweaks.
20386         (visium_expand_copysign): Use gen_int_mode directly.
20387         (visium_compute_frame_size): Minor tweaks.
20389 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
20391         * tree-vect-loop.c (vect_analyze_loop_2): Use
20392         likely_max_stmt_executions_int.
20394 2016-05-30  Tom de Vries  <tom@codesourcery.com>
20396         PR tree-optimization/69067
20397         * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
20399 2016-05-29  Uros Bizjak  <ubizjak@gmail.com>
20401         PR target/71245
20402         * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
20403         New peepholes to remove unneeded fild/fistp pairs.
20404         (define_peephole2 atomic_loaddi_fpu): Ditto.
20406 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
20408         * predict.c (maybe_hot_frequency_p): Avoid division.
20410 2016-05-28  Gerald Pfeifer  <gerald@pfeifer.com>
20412         * doc/install.texi: Use https for shop.fsf.org.
20414 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
20416         * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
20417         likely_max_stmt_executions_int.
20419 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
20421         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
20422         likely_max_stmt_executions_int.
20424 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
20426         * profile.c (compute_branch_probabilities): Do not report hitrates
20427         here.
20428         (branch_prob): Report hitrates here.
20429         * predict.c (gimple_predict_edge): Do not assert profile status;
20430         fix formatting issues.
20432 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
20434         * predict.c (edge_predicted_by_p): New function.
20435         (predict_paths_for_bb): Do not put multiple predictions of the same type
20436         on one edge.
20438 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
20440         * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
20441         commit.
20443 2016-05-28  Alan Modra  <amodra@gmail.com>
20445         * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
20447 2016-05-28  Alan Modra  <amodra@gmail.com>
20449         PR rtl-optimization/71275
20450         * ira.c (ira): Free dominance info.
20452 2016-05-27  Gerald Pfeifer  <gerald@pfeifer.com>
20454         * doc/sourcebuild.texi: New address for upstream Go repository.
20456 2016-05-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20458         * config/arm/arm.h (TARGET_ARM_V6M): Remove.
20459         (TARGET_ARM_V7M): Likewise.
20461 2016-05-26  Jeff Law  <law@redhat.com>
20463         * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
20464         (thread_across_edge): Remove calls to find_jump_threads_backwards.
20465         * passes.def: Add jump threading passes before DOM/VRP.
20466         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
20467         argument to a basic block from an edge.  Remove tests which are
20468         handled elsewhere.
20469         (pass_data_thread_jumps, class pass_thread_jumps): New.
20470         (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
20471         (make_pass_thread_jumps): Likewise.
20472         * tree-pass.h (make_pass_thread_jumps): Declare.
20474 2016-05-27  Eric Botcazou  <ebotcazou@adacore.com>
20476         * config/visium/visium-protos.h (split_double_move): Rename into...
20477         (visium_split_double_move): ...this.
20478         (visium_split_double_add): Declare.
20479         * config/visium/visium.c (split_double_move): Rename into...
20480         (visium_split_double_move): ...this.
20481         (visium_split_double_add): New function.
20482         (visium_expand_copysign): Renumber operands for consistency.
20483         * config/visium/visium.md (DImode move splitter): Adjust to renaming.
20484         (DFmode move splitter): Likewise.
20485         (*addi3_insn): Split by means of visium_split_double_add.
20486         (*adddi3_insn_flags): Delete.
20487         (*plus_plus_sltu<subst_arith>): New insn.
20488         (*subdi3_insn): Split by means of visium_split_double_add.
20489         (subdi3_insn_flags): Delete.
20490         (*minus_minus_sltu<subst_arith>): New insn.
20491         (*negdi2_insn): Split by means of visium_split_double_add.
20492         (*negdi2_insn_flags): Delete.
20494 2016-05-27  Ulrich Weigand  <uweigand@de.ibm.com>
20496         * configure.ac: Treat a --with-headers option without argument
20497         the same as the default (i.e. consult sys-include directory).
20498         * configure: Regenerate.
20500 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20502         * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
20503         * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
20504         prototype.
20505         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
20506         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
20508 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
20510         PR target/63596
20511         * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
20512         tree-stdarg analysis results.
20513         (aarch64_setup_incoming_varargs): Likewise.
20515 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
20517         * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
20518         va_list_gpr_counter_field and va_list_fpr_counter_field.
20520 2016-05-27  Wilco Dijkstra  <wdijkstr@arm.com>
20522         PR67609
20523         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
20524         * config/aarch64/aarch64.c
20525         (aarch64_cannot_change_mode_class): Remove function.
20526         * config/aarch64/aarch64-protos.h
20527         (aarch64_cannot_change_mode_class): Remove.
20529 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
20531         * cfgloop.c (record_niter_bound): Record likely upper bounds.
20532         (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
20533         get_likely_max_loop_iterations_int): New.
20534         * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
20535         any_likely_upper_bound.
20536         (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
20537         Declare.
20538         * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
20539         * loop-unroll.c (unroll_loop_constant_iterations): Update likely
20540         upper bound.
20541         (unroll_loop_constant_iterations): Likewise.
20542         (unroll_loop_runtime_iterations): Likewise.
20543         * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
20544         * lto-streamer-out.c (output_cfg): Likewise.
20545         * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
20546         bounds.
20547         (canonicalize_loop_induction_variables): Dump likely upper bounds.
20548         * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
20549         (likely_max_loop_iterations): New.
20550         (likely_max_loop_iterations_int): New.
20551         (likely_max_stmt_executions): New.
20552         * tree-ssa-loop-niter.h (likely_max_loop_iterations,
20553         likely_max_loop_iterations_int, likely_max_stmt_executions_int,
20554         likely_max_stmt_executions): Declare.
20556 2016-05-27  Marek Polacek  <polacek@redhat.com>
20558         PR middle-end/71308
20559         * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
20561 2016-05-27  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20563         * config/s390/s390.md (2x risbg splitters): Use
20564         reg_overlap_mentioned_p instead of rtx_equal_p.
20566 2016-05-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
20568         * combine.c (make_compound_operation): Take known zero bits into
20569         account when checking for possible zero_extend.
20571 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20573         * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
20574         Use const_int_operand for operand 2 predicate.  Simplify expand code
20575         as a result.
20577 2016-05-27  Ilya Enkovich  <ilya.enkovich@intel.com>
20579         PR middle-end/71279
20580         * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
20581         into comparison.
20583 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20585         * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
20586         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
20587         that returns CC_SESWPmode and CC_ZESWPmode.
20588         (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
20589         and CC_SESWPmode.
20590         (aarch64_rtx_costs): Likewise.
20592 2016-05-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
20594         * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
20595         for ISA 3.0 min/max support.
20596         (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
20597         conditional move support.
20598         (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
20599         rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
20600         available.
20601         * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
20602         conditional moves where the comparison type is different from move
20603         type.
20604         (fp_minmax): New code iterator for smin/smax.
20605         (minmax): New code attributes for min/max.
20606         (SMINMAX): Likewise.
20607         (smax<mode>3): Combine min, max insns into one insn using the
20608         fp_minmax code iterator.  Add support for ISA 3.0 min/max
20609         instructions that don't need -ffast-math.
20610         (s<minmax><mode>3): Likewise.
20611         (smax<mode>3_vsx): Likewise.
20612         (smin<mode>3): Likewise.
20613         (s<minmax><mode>3_vsx): Likewise.
20614         (smin<mode>3_vsx): Likewise.
20615         (pre-VSX min/max splitters): Likewise.
20616         (s<minmax><mode>3_fpr): Likewise.
20617         (movsfcc): Rewrite floating point conditional moves to combine
20618         SFmode/DFmode into a single insn.
20619         (mov<mode>cc): Likewise.
20620         (movdfcc): Likewise.
20621         (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
20622         SFDF2 iterators to handle all combinations.
20623         (fseldfsf4): Likewise.
20624         (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
20625         (fseldfdf4): Likewise.
20626         (fselsfdf4): Likewise.
20627         (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
20628         comparison instructions that set a 0/-1 mask, and use it for
20629         floating point conditional move via XXSEL.
20630         (fpmask<mode>): Likewise.
20631         (xxsel<mode>): Likewise.
20632         * config/rs6000/predicates.md (min_max_operator): Delete, no
20633         longer used.
20634         (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
20635         instructions that generate a 0/-1 mask for use with XXSEL.
20636         * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
20637         say whether floating point min/max is available, either through
20638         FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
20639         (TARGET_MINMAX_DF): Likewise.
20641 2016-05-27  Alan Modra  <amodra@gmail.com>
20643         PR rtl-optimization/71275
20644         * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
20645         for update_equiv_regs and combine_and_move_insns.
20647 2016-05-26  Uros Bizjak  <ubizjak@gmail.com>
20649         * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
20650         if_then_else or cond RTXes to calculate attribute value.
20651         * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
20652         <attr "length_immediate>: Ditto.
20653         (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
20654         * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
20655         (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
20656         <attr "type">: Ditto.
20657         <attr "prefix_data16">: Ditto.
20658         <attr "prefix_extra">: Ditto.
20659         <attr "length_immediate">: Ditto.
20660         <attr "prefix">: Ditto.
20661         (vec_set<mode>_0) <attr "isa">: Ditto.
20662         <attr "prefix_extra">: Ditto.
20663         <attr "length_immediate">: Ditto.
20664         <attr "prefix">: Ditto.
20665         (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
20666         (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
20667         (sse2_storelpd) <attr "prefix_data16">: Ditto.
20668         (sse2_loadhpd) <attr "prefix_data16">: Ditto.
20669         (sse2_loadlpd) <attr "prefix_data16">: Ditto.
20670         <attr "length_immediate">: Ditto.
20671         <attr "prefix">: Ditto.
20672         (sse2_movsd) <attr "length_immediate">: Ditto.
20673         <attr "prefix">: Ditto.
20674         (vec_concatv2df)  <attr "isa">: Ditto.
20675         <attr "prefix">: Ditto.
20676         (*vec_extractv4si) <attr "prefix_extra">: Ditto.
20677         (*vec_extractv2di_1) <attr "isa">: Ditto.
20678         <attr "type">: Ditto.
20679         <attr "length_immediate">: Ditto.
20680         <attr "prefix_rex">: Ditto.
20681         <attr "prefix_extra">: Ditto.
20682         (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
20683         <attr "prefix_extra">: Ditto.
20684         <attr "length_immediate">: Ditto.
20685         (vec_concatv2di) <attr "isa">: Ditto.
20686         <attr "prefix_extra">: Ditto.
20687         <attr "length_immediate">: Ditto.
20688         <attr "prefix">: Ditto.
20690 2016-05-26  Martin Liska  <mliska@suse.cz>
20692         * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
20693         function.
20694         (operator+): Likewise.
20695         (operator-): Likewise.
20696         (comp_cost::operator+=): Likewise.
20697         (comp_cost::operator-=): Likewise.
20698         (comp_cost::operator/=): Likewise.
20699         (comp_cost::operator*=): Likewise.
20700         (operator<): Likewise.
20701         (operator==): Likewise.
20702         (operator<=): Likewise.
20703         (new_cost): Remove.
20704         (infinite_cost_p): Likewise.
20705         (add_costs): Likewise.
20706         (sub_costs): Likewise.
20707         (compare_costs): Likewise.
20708         (set_group_iv_cost): Use the newly introduced functions.
20709         (get_address_cost): Likewise.
20710         (get_shiftadd_cost): Likewise.
20711         (force_expr_to_var_cost): Likewise.
20712         (split_address_cost): Likewise.
20713         (ptr_difference_cost): Likewise.
20714         (difference_cost): Likewise.
20715         (get_computation_cost_at): Likewise.
20716         (determine_group_iv_cost_generic): Likewise.
20717         (determine_group_iv_cost_address): Likewise.
20718         (determine_group_iv_cost_cond): Likewise.
20719         (autoinc_possible_for_pair): Likewise.
20720         (determine_group_iv_costs): Likewise.
20721         (cheaper_cost_pair): Likewise.
20722         (iv_ca_recount_cost): Likewise.
20723         (iv_ca_set_no_cp): Likewise.
20724         (iv_ca_set_cp): Likewise.
20725         (iv_ca_cost): Likewise.
20726         (iv_ca_new): Likewise.
20727         (iv_ca_dump): Likewise.
20728         (iv_ca_narrow): Likewise.
20729         (iv_ca_prune): Likewise.
20730         (iv_ca_replace): Likewise.
20731         (try_add_cand_for): Likewise.
20732         (try_improve_iv_set): Likewise.
20733         (find_optimal_iv_set): Likewise.
20735 2016-05-26  Richard Sandiford  <richard.sandiford@arm.com>
20737         * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
20738         that internal functions will clobber all caller-saved registers.
20740 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
20742         * config/aarch64/aarch64.c (aarch64_case_values_threshold):
20743         Return a better case_values_threshold when optimizing.
20745 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
20747         * config/aarch64/aarch64-simd.md (aarch64_combinez):
20748         Add ? to integer variant.
20749         (aarch64_combinez_be): Likewise.
20751 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
20753         * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
20754         instead of x constraint.
20755         (vcvtps2ph256<mask_name>): Likewise.
20757         * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
20758         alternative.  Formatting fix.
20760         * config/i386/sse.md
20761         (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
20762         to ...
20763         (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
20764         (*avx_vperm_broadcast_v4sf): Use v constraint instead of x.  Use
20765         maybe_evex prefix instead of vex.
20766         (*avx_vperm_broadcast_<mode>): Use v constraint instead of x.  Handle
20767         EXT_REX_SSE_REG_P (op0) case in the splitter.
20769 2016-05-25  Jeff Law  <law@redhat.com>
20771         PR tree-optimization/71272
20772         * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
20773         Update comments.  Add test for empty path.
20775 2016-05-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
20777         * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
20778         * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
20779         special case builtin.
20780         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
20781         code for ALTIVEC_BUILTIN_VEC_CMPNE.
20782         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
20783         for __builtin_vec_cmpne.
20785 2016-05-25  Eric Botcazou  <ebotcazou@adacore.com>
20787         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
20788         redundant test and bail out if the type of the new operand is not
20789         a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
20791 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
20793         * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
20794         (x_ix86_target_flags_explicit): Remove.
20795         * config/i386/i386.c (ix86_function_specific_save): Do not copy
20796         x_ix86_target_flags_explicit.
20797         (ix86_function_specific_restore): Ditto.
20799 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
20800             H.J. Lu  <hongjiu.lu@intel.com>
20802         PR target/70738
20803         * common/config/i386/i386-common.c
20804         (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
20805         (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
20806         MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
20807         * config/i386/i386.opt (ix86_target_flags): Add new Variable.
20808         (-mgeneral-regs-only): Add new option.
20809         * config/i386/i386.c (ix86_option_override_internal): Don't enable
20810         x87 instructions if only general registers are allowed.
20811         (ix86_target_string): Add ix86_flags argument. Handle additional
20812         flags options through ix86_flags argument.  Update all callers.
20813         * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
20815 2016-05-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20817         PR rtl-optimization/66940
20818         * ifcvt.c (noce_get_alt_condition): Check that incrementing or
20819         decrementing desired_val will not overflow before performing these
20820         operations.
20822 2016-05-25  Ilya Verbin  <ilya.verbin@intel.com>
20824         * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
20825         V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
20826         * config/i386/i386.c (enum ix86_builtins): Add
20827         IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
20828         IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
20829         IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
20830         IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
20831         IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
20832         IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
20833         (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
20834         __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
20835         __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
20836         __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
20837         __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
20838         __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
20839         Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
20840         __builtin_ia32_cvtps2dq512_mask.
20841         (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
20842         V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
20843         (ix86_builtin_vectorized_function): Handle builtins mentioned above.
20844         * config/i386/sse.md
20845         (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
20846         Rename to ...
20847         (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
20848         (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
20849         to ...
20850         (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
20851         (avx512f_vec_pack_sfix_v8df): New define_expand.
20852         (avx512f_roundpd512): Rename to ...
20853         (avx512f_round<castmode>512): ... this.  Change iterator.
20854         (avx512f_roundps512_sfix): New define_expand.
20855         (round<mode>2_sfix): Change iterator.
20857 2016-05-25  Nick Clifton  <nickc@redhat.com>
20859         * config/msp430/msp430.c (msp430_attr): Produce an error if a
20860         static interrupt handler is detected.
20861         * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
20862         default linker script.
20863         * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
20864         the low part of a symbolic pointer.
20866 2016-05-25  Richard Biener  <rguenther@suse.de>
20868         PR tree-optimization/71261
20869         * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
20870         interesting stmt instead of immediate uses when looking
20871         for the use operand to replace.
20873 2016-05-25  Martin Liska  <mliska@suse.cz>
20875         * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
20877 2016-05-25  Richard Biener  <rguenther@suse.de>
20879         PR tree-optimization/71264
20880         * tree-vect-stmts.c (vect_init_vector): Properly deal with
20881         vector type val.
20883 2016-05-25  Martin Liska  <mliska@suse.cz>
20885         PR tree-optimization/71239
20886         * tree.c (array_at_struct_end_p): Do not call operand_equal_p
20887         if DECL_SIZE is NULL.
20889 2016-05-25  Richard Biener  <rguenther@suse.de>
20891         * timevar.def (TV_TREE_LOOP_IFCVT): Add.
20892         * tree-if-conv.c (pass_data_if_conversion): Use it.
20894 2016-05-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
20896         * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
20897         * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
20898         * varpool.c (varpool_node::get_availability): Likewise.
20900 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
20902         * config/rs6000/altivec.md (VNEG iterator): New iterator for
20903         VNEGW/VNEGD instructions.
20904         (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
20905         (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
20906         support for ISA 3.0 VNEGW/VNEGD instructions.
20908 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
20910         * gimplify.c (omp_notice_variable): Use zero-length arrays for data
20911         pointers inside OACC_DATA regions.
20912         (gimplify_scan_omp_clauses): Prune firstprivate clause associated
20913         with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
20914         (gimplify_adjust_omp_clauses): Fix typo in comment.
20916 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
20918         * config/rs6000/altivec.md (VParity): New mode iterator for vector
20919         parity built-in functions.
20920         (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
20921         zeros.
20922         (p9v_parity<mode>2): Likewise.
20923         * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
20924         parity.
20925         (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
20926         (parity<mode>2): ISA 3.0 expander for vector parity.
20927         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
20928         power9 built-ins.
20929         (BU_P9_64BIT_MISC_0): Likewise.
20930         (BU_P9_MISC_0): Likewise.
20931         (BU_P9V_AV_1): Likewise.
20932         (BU_P9V_AV_2): Likewise.
20933         (BU_P9V_AV_3): Likewise.
20934         (BU_P9V_AV_P): Likewise.
20935         (BU_P9V_VSX_1): Likewise.
20936         (BU_P9V_OVERLOAD_1): Likewise.
20937         (BU_P9V_OVERLOAD_2): Likewise.
20938         (BU_P9V_OVERLOAD_3): Likewise.
20939         (VCTZB): Add vector count trailing zeros support.
20940         (VCTZH): Likewise.
20941         (VCTZW): Likewise.
20942         (VCTZD): Likewise.
20943         (VPRTYBD): Add vector parity support.
20944         (VPRTYBQ): Likewise.
20945         (VPRTYBW): Likewise.
20946         (VCTZ): Add overloaded vector count trailing zeros support.
20947         (VPRTYB): Add overloaded vector parity support.
20948         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
20949         overloaded vector count trailing zeros and parity instructions.
20950         * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
20951         vector parity support.
20952         * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
20953         trailing zeros support.
20954         (vec_cntlz): Likewise.
20955         (vec_vctzb): Likewise.
20956         (vec_vctzd): Likewise.
20957         (vec_vctzh): Likewise.
20958         (vec_vctzw): Likewise.
20959         (vec_vprtyb): Add ISA 3.0 vector parity support.
20960         (vec_vprtybd): Likewise.
20961         (vec_vprtybw): Likewise.
20962         (vec_vprtybq): Likewise.
20963         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
20964         the ISA 3.0 vector count trailing zeros and vector parity built-in
20965         functions.
20967 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
20969         * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
20970         when there is stmt_to_insert.
20972 2016-05-24  Martin Sebor  <msebor@redhat.com>
20974         PR c++/71147
20975         * tree.h (complete_or_array_type_p): New inline function.
20977 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
20979         * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
20980         * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
20981         rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
20983         * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
20984         Limit 1st alternative to noavx isa, split 2nd alternative into one
20985         noavx and one avx alternative, use *x and Bm in the former and
20986         x and m in the latter.
20988         * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
20989         of sse4 for the first alternative, drop %v from the template
20990         and d operand modifier.  Split second alternative into one sse4_noavx
20991         and one avx alternative, use *x instead of *v in the former and v
20992         instead of *v in the latter.
20993         (*sse4_1_extractps): Use noavx isa instead of * for the first
20994         alternative, drop %v from the template.  Split second alternative into
20995         one noavx and one avx alternative, use *x instead of *v in the
20996         former and v instead of *v in the latter.
20997         (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
20998         with noavx and the last one with avx.
20999         (sse4_1_phminposuw): Guard first alternative with noavx isa,
21000         split the second one into one noavx and one avx alternative,
21001         use *x and Bm in the former and x and m in the latter one.
21002         (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
21003         alternatives.
21005         * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
21006         first two alternatives to noavx, use *x instead of *v in the second
21007         one, add avx alternative without *.
21008         (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
21009         sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
21010         sse4_1_<code>v2siv2di2<mask_name>): Likewise.
21012 2016-05-24  Jeff Law  <law@redhat.com>
21014         * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
21015         New function, extracted from...
21016         (fsm_find_control_statement_thread_paths): Here.  Use the new function.
21017         Allow simple copies and constant initializations in the SSA chain.
21019 2016-05-24  Marek Polacek  <polacek@redhat.com>
21021         PR c/71249
21022         * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
21023         scope.
21025 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
21027         PR c++/71257
21028         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
21029         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
21030         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.  Add
21031         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
21032         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
21034 2016-05-24  Richard Biener  <rguenther@suse.de>
21036         PR tree-optimization/71240
21037         * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
21038         has integral type.
21040 2016-05-24  Richard Biener  <rguenther@suse.de>
21042         PR tree-optimization/71230
21043         * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
21045 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
21047         * tree-vectorizer.h (vectorizable_comparison): Delete.
21048         * tree-vect-loop.c (vectorizable_reduction): Remove redundant
21049         PURE_SLP_STMT check.
21050         * tree-vect-stmts.c (vectorizable_call): Likewise.
21051         (vectorizable_simd_clone_call): Likewise.
21052         (vectorizable_conversion): Likewise.
21053         (vectorizable_assignment): Likewise.
21054         (vectorizable_shift): Likewise.
21055         (vectorizable_operation): Likewise.
21056         (vectorizable_load): Likewise.
21057         (vectorizable_condition): Likewise.
21058         (vectorizable_store): Likewise.  Assert that we don't have
21059         hybrid SLP.
21060         (vectorizable_comparison): Make static.  Remove redundant
21061         PURE_SLP_STMT check.
21062         (vect_transform_stmt): Assert that we always have an slp_node
21063         if PURE_SLP_STMT.
21065 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21067         * config/arm/neon.md (ashldi3_neon):  Replace comparison of INTVAL of
21068         operands[2] against 1 with comparison against CONST1_RTX.
21069         (<shift>di3_neon): Likewise.
21070         * config/arm/predicates.md (const0_operand): Replace with comparison
21071         against CONST0_RTX.
21073 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21075         * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
21076         operands[2] against 1 with comparison against CONST1_RTX.
21077         (ashrdi3): Likewise.
21078         (lshrdi3): Likewise.
21079         (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
21080         UINTVAL.
21081         (ashrsi3): Likewise.
21082         (lshrsi3): Likewise.
21083         (rotrsi3): Likewise.
21084         (define_split above *compareqi_eq0): Likewise.
21085         (define_split above "prologue"): Likewise.
21086         * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
21087         * config/arm/predicates.md (shift_operator): Likewise.
21088         (shift_nomul_operator): Likewise.
21089         (sat_shift_operator): Likewise.
21090         (thumb1_cmp_operand): Likewise.
21091         (const_neon_scalar_shift_amount_operand): Replace manual range
21092         check with IN_RANGE.
21093         * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
21094         Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
21096 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21098         * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
21099         with HOST_WIDE_INT_1.
21100         (insv): Likewise.
21101         * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
21102         1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
21103         (arm_canonicalize_comparison): Likewise.
21104         (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
21105         HOST_WIDE_INT_1.
21106         (thumb1_size_rtx_costs): Likewise.
21107         (vfp_const_double_index): Replace cast of 1 to unsigned
21108         HOST_WIDE_INT with HOST_WIDE_INT_1U.
21109         (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
21110         HOST_WIDE_INT_1.
21111         (arm_asan_shadow_offset): Replace cast of 1 to unsigned
21112         HOST_WIDE_INT with HOST_WIDE_INT_1U.
21113         * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
21114         HOST_WIDE_INT with HOST_WIDE_INT_1.
21116 2016-05-24  Marek Polacek  <polacek@redhat.com>
21118         * tree-cfg.h (should_remove_lhs_p): New predicate.
21119         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
21120         * gimplify.c (gimplify_modify_expr): Likewise.
21121         * tree-cfg.c (verify_gimple_call): Likewise.
21122         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
21123         * gimple-fold.c: Include "tree-cfg.h".
21124         (gimple_fold_call): Use should_remove_lhs_p.
21126 2016-05-24  Richard Biener  <rguenther@suse.de>
21128         PR tree-optimization/71253
21129         * cfganal.h (control_dependences): Make robust against edge
21130         and BB removal.
21131         (control_dependences::control_dependences): Remove edge_list argument.
21132         (control_dependences::get_edge): Remove.
21133         (control_dependences::get_edge_src): Add.
21134         (control_dependences::get_edge_dest): Likewise.
21135         (control_dependences::m_el): Make a vector of edge src/dest index.
21136         * cfganal.c (control_dependences::find_control_dependence): Adjust.
21137         (control_dependences::control_dependences): Likewise.
21138         (control_dependences::~control_dependence): Likewise.
21139         (control_dependences::get_edge): Remove.
21140         (control_dependences::get_edge_src): Add.
21141         (control_dependences::get_edge_dest): Likewise.
21142         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
21143         get_edge_src.
21144         (perform_tree_ssa_dce): Adjust.
21145         * tree-loop-distribution.c (create_edge_for_control_dependence): Use
21146         get_edge_src.
21147         (pass_loop_distribution::execute): Adjust.  Do loop destroying
21148         conditional on changed.
21150 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21152         PR target/69857
21153         * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
21154         return.  Reindent transformation comment and mention the ARM state
21155         behavior.
21157 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
21159         PR middle-end/71252
21160         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
21161         after build_and_add_sum creates new use stmt.
21163 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
21165         * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
21166         load_lanes/grouped_load classification comes first.  Don't check
21167         whether the vectorization factor is a multiple of the group size
21168         for load_lanes.
21170 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
21172         * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
21173         GROUP_GAP for single-element interleaving.
21174         * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
21175         variable.
21177 2016-05-24  Richard Biener  <rguenther@suse.de>
21179         PR middle-end/70434
21180         PR c/69504
21181         * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
21182         bases which are accessed with non-invariant indices.
21183         * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
21184         constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
21186 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
21188         PR middle-end/71170
21189         * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
21190         (add_to_ops_vec): Add stmt_to_insert.
21191         (add_repeat_to_ops_vec): Init stmt_to_insert.
21192         (insert_stmt_before_use): New.
21193         (transform_add_to_multiply): Remove mult_stmt insertion and add it
21194         to ops vector.
21195         (get_ops): Init stmt_to_insert.
21196         (maybe_optimize_range_tests): Likewise.
21197         (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
21198         (rewrite_expr_tree_parallel): Likewise.
21199         (reassociate_bb): Likewise.
21201 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
21203         PR target/71201
21204         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
21205         ISA 3.0 xxperm fusion alternative.
21206         (altivec_vperm_v8hiv16qi): Likewise.
21207         (altivec_vperm_<mode>_uns_internal): Likewise.
21208         (vperm_v8hiv4si): Likewise.
21209         (vperm_v16qiv8hi): Likewise.
21211 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
21212             Kelvin Nilsen  <kelvin@gcc.gnu.org>
21214         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
21215         vpermr/xxpermr on ISA 3.0.
21216         (altivec_expand_vec_perm_le): Likewise.
21217         * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
21218         (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
21219         ISA 3.0.
21221 2016-05-23  Uros Bizjak  <ubizjak@gmail.com>
21223         * config/i386/i386.h (IS_STACK_MODE): Enable for
21224         TARGET_MIX_SSE_I387.  Rewrite using X87_FLOAT_MODE_P and
21225         SSE_FLOAT_MODE_P macros.
21226         * config/i386/i386.c (ix86_preferred_reload_class): Use
21227         IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
21228         Cleanup regclass processing for CONST_DOUBLE_P.
21229         (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
21230         (ix86_rtx_costs): Remove redundant TARGET_80387 check
21231         with IS_STACK_MODE macro.
21232         * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
21233         with TARGET_SSE2.
21234         (*movdf_internal): Use IS_STACK_MODE macro.
21235         (*movsf_internal): Ditto.
21237 2016-05-23  Marc Glisse  <marc.glisse@inria.fr>
21239         * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
21240         ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
21242 2016-05-23  Jeff Law  <law@redhat.com>
21244         * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
21245         extracted from ...
21246         (fsm_find_control_statement_thread_paths): Call it.
21248 2016-05-23  Martin Jambor  <mjambor@suse.cz>
21250         PR ipa/71234
21251         * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
21252         from_global_constant if t is not NULL.
21254 2016-05-23  Marek Polacek  <polacek@redhat.com>
21256         PR c/49859
21257         * common.opt (Wswitch-unreachable): New option.
21258         * doc/invoke.texi: Document -Wswitch-unreachable.
21259         * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
21260         warning.
21262 2016-05-23  Bin Cheng  <bin.cheng@arm.com>
21264         * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
21265         TMR_INDEX is non-NULL.
21267 2016-05-23  Richard Biener  <rguenther@suse.de>
21269         PR tree-optimization/71230
21270         * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
21271         (try_special_add_to_ops): ... here.  Always test for single-use.
21273 2016-05-23  Martin Jambor  <mjambor@suse.cz>
21275         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
21276         default block if a PHI node in the original one would be resized.
21278 2016-05-23  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
21280         PR tree-optimization/58135
21281         * tree-vect-slp.c: When group size is not multiple
21282         of vector size, allow splitting of store group at
21283         vector boundary.
21285 2016-05-23  Christophe Lyon  <christophe.lyon@linaro.org>
21287         * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
21289 2016-05-22  Jakub Jelinek  <jakub@redhat.com>
21291         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
21292         vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
21293         condition.  For !TARGET_AVX512DQ, emit 32x4 instruction instead
21294         of 64x2.
21296         * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
21297         vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
21298         v constraint instead of x and vinserti32x4 insn.
21300         * config/i386/sse.md (i128vldq): New mode iterator.
21301         (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
21302         avx512dq and avx512vl alternatives.
21304         * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
21305         constraint, use maybe_evex prefix instead of vex.
21306         (vec_dupv4sf): Use v constraint instead of x for output
21307         operand except for noavx alternative, use Yv constraint
21308         instead of x for input.  Use maybe_evex prefix instead of vex.
21309         (*vec_dupv4si): Likewise.
21310         (*vec_dupv2di): Likewise.
21312 2016-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
21314         PR middle-end/40921
21315         * tree-ssa-reassoc.c (try_special_add_to_ops): New.
21316         (linearize_expr_tree): Call try_special_add_to_ops.
21317         (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
21319 2016-05-21  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
21321         * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
21322         to computed stack_usage.
21324 2016-05-21  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
21326         PR target/71103
21327         * config/avr/avr.md (define_expand "mov<mode>"): If the source
21328         operand is subreg (symbol_ref) then move the symbol ref to register.
21330 2016-05-21  Jan Hubicka  <hubicka@ucw.cz>
21332         * tree.c (array_at_struct_end_p): Look through MEM_REF.
21334 2016-05-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
21336         PR middle-end/71179
21337         * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
21338         VECTOR type.
21340 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
21342         * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
21343         ranges by calling get_single_symbol and tidy up.  Look more closely
21344         into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
21346 2016-05-20  Jeff Law  <law@redhat.com>
21348         * bitmap.c (bitmap_find_bit): Remove useless test.
21350 2016-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
21352         * function.c (thread_prologue_and_epilogue_insns): Commit the
21353         insertion of the epilogue.
21355 2016-05-20  Martin Jambor  <mjambor@suse.cz>
21357         PR tree-optimization/70884
21358         * tree-sra.c (initialize_constant_pool_replacements): Do not check
21359         should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
21360         (sort_and_splice_var_accesses): Do not consider multiple scalar reads
21361         of constant pool data as a reason for scalarization.
21363 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
21365         * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
21366         for naked functions.
21367         (thumb1_expand_prologue): Likewise.
21369 2016-05-20  Nathan Sidwell  <nathan@acm.org>
21371         * config/nvptx/nptx.c (nvptx_option_override): Only set
21372         flag_toplevel_reorder, if not explicitly specified.  Set
21373         flag_no_common, unless explicitly specified.
21375 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
21377         * calls.c (can_implement_as_sibling_call_p): Mark param
21378         reg_parm_stack_space with ATTRIBUTE_UNUSED.
21380 2016-05-20  Uros Bizjak  <ubizjak@gmail.com>
21382         * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
21383         Use IS_STACK_MODE when calculating cost of standard 80387 constants.
21384         Fallthru to CONST_VECTOR case to calculate cost of standard SSE
21385         constants.
21386         <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
21387         (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
21388         and CASE_CONST_ANY.
21390 2016-05-20  Cesar Philippidis  <cesar@codesourcery.com>
21392         * config/nvptx/nvptx.md (sincossf3): New pattern.
21394 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
21396         * calls.c (maybe_complain_about_tail_call): New function.
21397         (initialize_argument_information): Call
21398         maybe_complain_about_tail_call when clearing *may_tailcall.
21399         (can_implement_as_sibling_call_p): Call
21400         maybe_complain_about_tail_call when returning false.
21401         (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
21402         ensure try_tail_call is set.  Call maybe_complain_about_tail_call
21403         if tail-call optimization fails.
21404         * cfgexpand.c (expand_call_stmt): Initialize
21405         CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
21406         * gimple-pretty-print.c (dump_gimple_call): Dump
21407         gimple_call_must_tail_p.
21408         * gimple.c (gimple_build_call_from_tree): Call
21409         gimple_call_set_must_tail with the value of
21410         CALL_EXPR_MUST_TAIL_CALL.
21411         * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
21412         (gimple_call_set_must_tail): New function.
21413         (gimple_call_must_tail_p): New function.
21414         * print-tree.c (print_node): Update printing of TREE_STATIC
21415         to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
21416         * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
21417         trailing comment listing applicable flags.
21418         * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
21420 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
21422         * calls.c (expand_call): Move "Rest of purposes for tail call
21423         optimizations to fail" to...
21424         (can_implement_as_sibling_call_p): ...this new function, and
21425         split into multiple "if" statements.
21427 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
21429         * cfgloop.h (expected_loop_iterations_unbounded,
21430         expected_loop_iterations): Unconstify.
21431         * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
21432         profile with known upper bound; return 3 when profile is absent.
21433         (expected_loop_iterations): Update.
21435 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
21437         * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
21438         and get_max_loop_iterations_int.
21440 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
21442         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
21443         realistic upper bounds here.
21445 2016-05-20  Jakub Jelinek  <jakub@redhat.com>
21447         PR c++/71210
21448         * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
21449         calls if the LHS is variable length or has addressable type.
21450         If targets[0]->decl is a noreturn call with void return type and
21451         zero arguments, adjust fntype and remove lhs in that case.
21453 2016-05-20  Marc Glisse  <marc.glisse@inria.fr>
21455         PR tree-optimization/71079
21456         PR tree-optimization/71206
21457         * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
21459 2016-05-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
21461         * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
21462         (get_vec_alignment_for_array_decl): Likewise.
21463         (get_vec_alignment_for_record_decl): Likewise.
21464         (increase_alignment::execute): Move code to find alignment to
21465         get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
21466         (type_align_map): New hash_map.
21468 2016-05-20  Richard Guenther  <rguenther@suse.de>
21470         PR tree-optimization/29756
21471         * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
21472         * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
21473         * fold-const.c (operand_equal_p): Likewise.
21474         (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
21475         * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
21476         * tree-inline.c (estimate_operator_cost): Likewise.
21477         * tree-pretty-print.c (dump_generic_node): Likewise.
21478         * tree-ssa-operands.c (get_expr_operands): Likewise.
21479         * cfgexpand.c (expand_debug_expr): Likewise.
21480         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
21481         * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
21482         * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
21483         * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
21484         vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
21485         (execute_update_addresses_taken): Do it.
21487 2016-05-20  Richard Biener  <rguenther@suse.de>
21489         PR tree-optimization/71185
21490         * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
21491         register operations.
21493 2016-05-20  Richard Biener  <rguenther@suse.de>
21495         * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
21496         gimple_seq_add_seq_without_update.
21497         (release_bb_predicate): Assert we have no operands to free.
21498         (if_convertible_loop_p_1): Calculate post dominators later.
21499         Do not free BB predicates here.
21500         (combine_blocks): Do not recompute BB predicates.
21501         (version_loop_for_if_conversion): Save BB predicates around
21502         loop versioning.
21504 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
21506         * function.c (make_epilogue_seq): Remove epilogue_end parameter.
21507         (thread_prologue_and_epilogue_insns): Remove bb_flags.  Restructure
21508         code.  Ignore sibcalls on EDGE_IGNORE edges.
21509         * shrink-wrap.c (handle_simple_exit): New function.  Set EDGE_IGNORE
21510         on edges for sibcalls that run without prologue.  The rest of the
21511         function is combined from...
21512         (fix_fake_fallthrough_edge): ... this, and ...
21513         (try_shrink_wrapping): ... a part of this.  Remove the bb_with
21514         function argument, make it a local variable.
21516 2016-05-19  Sandra Loosemore  <sandra@codesourcery.com>
21518         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
21519         --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
21520         for 32-bit mode and SEH for 64-bit.
21521         * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
21522         TARGET_64BIT_DEFAULT.
21524 2016-05-19  Ryan Burn  <contact@rnburn.com>
21526         * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
21527         * gengtype.c (open_base_files): Add cilk.h to ifiles.
21529 2016-05-19  Uros Bizjak  <ubizjak@gmail.com>
21531         * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
21532         force pending loads from memory.
21534 2016-05-19  Kelvin Nilsen  <kelvin@gcc.gnu.org>
21536         * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
21537         (UNSPEC_DARN_32): New unspec constant.
21538         (UNSPEC_DARN_RAW): New unspec constant.
21539         (darn_32): New instruction.
21540         (darn_raw): New instruction.
21541         (darn): New instruction.
21542         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
21543         support and documentation for this macro.
21544         (BU_P9_MISC_1): New macro definition.
21545         (BU_P9_64BIT_MISC_0): New macro definition.
21546         (BU_P9_MISC_0): New macro definition.
21547         (darn_32): New builtin definition.
21548         (darn_raw): New builtin definition.
21549         (darn): New builtin definition.
21550         * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
21551         RS6000_BUILTIN_0 directives to surround each occurrence of
21552         #include "rs6000-builtin.def".
21553         (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
21554         RS6000_BTM_64BIT flags to the returned mask, depending on
21555         configuration.
21556         (def_builtin): Correct an error in the assignments made to the
21557         debugging variable attr_string.
21558         (rs6000_expand_builtin): Add support for no-operand built-in
21559         functions.
21560         (builtin_function_type): Remove fatal_error assertion that is no
21561         longer valid.
21562         (rs6000_common_init_builtins): Add support for no-operand built-in
21563         functions.
21564         * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
21565         definition.
21566         (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
21567         definition.
21568         (RS6000_BTM_64BIT): New macro definition.
21569         * doc/extend.texi: Document __builtin_darn (void),
21570         __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
21571         functions.
21573 2016-05-19  Jan Hubicka  <hubicka@ucw.cz>
21575         * tree-vect-loop.c (vect_analyze_loop_2): Use also
21576         max_loop_iterations_int.
21578 2016-05-19  Marek Polacek  <polacek@redhat.com>
21580         PR tree-optimization/71031
21581         * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
21582         condition and adjust the code a bit.
21584 2016-05-19  Martin Liska  <mliska@suse.cz>
21586         * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
21587         auto_vec instead of vec.
21589 2016-05-19  Martin Liska  <mliska@suse.cz>
21591         * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
21593 2016-05-19  Martin Liska  <mliska@suse.cz>
21595         * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
21597 2016-05-19  Martin Liska  <mliska@suse.cz>
21599         * ipa-pure-const.c (set_function_state): Remove an existing
21600         funct_state.
21601         (remove_node_data): Do not free it as it's released
21602         in set_function_state.
21604 2016-05-19  Martin Liska  <mliska@suse.cz>
21606         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
21607         bitmap.
21609 2016-05-19  Martin Liska  <mliska@suse.cz>
21611         * omp-simd-clone.c (simd_clone_adjust): Release vector.
21613 2016-05-19  Martin Liska  <mliska@suse.cz>
21615         * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
21616         an auto_vec instead of re-creating it.
21618 2016-05-19  Martin Liska  <mliska@suse.cz>
21620         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
21621         auto_vec instead of vec.
21623 2016-05-19  Martin Liska  <mliska@suse.cz>
21625         * lto-section-in.c (lto_get_section_data): Call
21626         lto_check_version with additional argument.
21627         * lto-streamer.c (lto_check_version): Add new argument.
21628         * lto-streamer.h (lto_check_version): Likewise.
21630 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21632         * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
21633         Don't add cost of inner memory when handling sign-extended loads.
21635 2016-05-19  Ilya Enkovich  <ilya.enkovich@intel.com>
21637         PR rtl-optimization/71148
21638         * cse.c (cse_main): Free dominance info.
21639         (rest_of_handle_cse): Don't free dominance info.
21640         (rest_of_handle_cse2): Likewise.
21641         (rest_of_handle_cse_after_global_opts): Likewise.
21643 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21645         PR target/71056
21646         * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
21647         NULL_TREE early if NEON is not available.  Remove now redundant check
21648         in ARM_CHECK_BUILTIN_MODE.
21650 2016-05-19  Maxim Ostapenko  <m.ostapenko@samsung.com>
21652         PR sanitizer/64354
21653         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
21654         builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
21655         * doc/cpp.texi: Document new macros.
21657 2016-05-19  Bin Cheng  <bin.cheng@arm.com>
21659         PR tree-optimization/69848
21660         * tree-vect-loop.c (vectorizable_reduction): Don't factor
21661         comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
21663 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
21665         * function.c (thread_prologue_and_epilogue_insn): Move the
21666         "goto epilogue_done" one block later.
21668 2016-05-19  Richard Biener  <rguenther@suse.de>
21670         PR tree-optimization/70729
21671         * passes.def: Move LIM pass before PRE.  Remove no longer
21672         required copyprop and move first DCE out of the loop pipeline.
21674 2016-05-18  David Malcolm  <dmalcolm@redhat.com>
21676         PR driver/69265
21677         * Makefile.in (GCC_OBJS): Move spellcheck.o to...
21678         (OBJS-libcommon-target): ...here.
21679         * opts-common.c: Include spellcheck.h.
21680         (cmdline_handle_error): Build a vec of valid options and use it
21681         to suggest provide hints for misspelled arguments.
21683 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
21685         PR c++/71100
21686         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
21687         lhs if it has TREE_ADDRESSABLE type.
21689 2016-05-18  Uros Bizjak  <ubizjak@gmail.com>
21691         PR target/71145
21692         * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
21693         (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
21695 2016-05-18  Martin Jambor  <mjambor@suse.cz>
21697         PR ipa/69708
21698         * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
21699         input for NOP_EXPR pass-through functions.
21700         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
21701         aggregate global constant VAR_DECLs in constant jump functions.
21703 2016-05-18  Martin Jambor  <mjambor@suse.cz>
21705         PR ipa/69708
21706         * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
21707         from TREE_READONLY parameters.
21709 2016-05-18  Martin Jambor  <mjambor@suse.cz>
21711         PR ipa/69708
21712         * cgraph.h (cgraph_indirect_call_info): New field
21713         guaranteed_unmodified.
21714         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
21715         to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
21716         appropriate.
21717         * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
21718         pass the parameter value to ipa_find_agg_cst_for_param.
21719         * ipa-prop.c (ipa_load_from_parm_agg): New parameter
21720         guaranteed_unmodified, store AA results there instead of bailing out
21721         if present.
21722         (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
21723         (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
21724         (find_constructor_constant_at_offset): New function.
21725         (ipa_find_agg_cst_from_init): Likewise.
21726         (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
21727         static initializers of contants, report back through a new paameter
21728         from_global_constant if that was the case.
21729         (try_make_edge_direct_simple_call): Also pass parameter value to
21730         ipa_find_agg_cst_for_param, check guaranteed_unmodified when
21731         appropriate.
21732         (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
21733         (ipa_read_indirect_edge_info): Likewise.
21734         * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
21735         (ipa_load_from_parm_agg): Likewise.
21737 2016-05-18  Jiong Wang  <jiong.wang@arm.com>
21739         PR rtl-optimization/71150
21740         * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
21741         check.
21743 2016-05-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
21745         PR target/70915
21746         * config/rs6000/constraints.md (wE constraint): New constraint
21747         for a vector constant that can be loaded with XXSPLTIB.
21748         (wM constraint): New constraint for a vector constant of a 1's.
21749         (wS constraint): New constraint for a vector constant that can be
21750         loaded with XXSPLTIB and a vector sign extend instruction.
21751         * config/rs6000/predicates.md (xxspltib_constant_split): New
21752         predicates for wE/wS constraints.
21753         (xxspltib_constant_nosplit): Likewise.
21754         (easy_vector_constant): Add support for constants that can be
21755         loaded via XXSPLTIB.
21756         (all_ones_constant): New predicate for vector constant with all
21757         1's set.
21758         (splat_input_operand): Add support for ISA 3.0 word splat operations.
21759         * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
21760         return if a constant can be loaded with the ISA 3.0 XXSPLTIB
21761         instruction and possibly with a sign extension.
21762         (output_vec_const_move): Add support for XXSPLTIB. If we are
21763         loading up 0/-1 into Altivec registers, prefer using VSPLTISW
21764         instead of XXLXOR/XXLORC.
21765         (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
21766         operations.
21767         (rs6000_legitimize_reload_address): Likewise.
21768         (rs6000_output_move_128bit): Use output_vec_const_move to emit
21769         constants.
21770         * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
21771         combine VSX_M and VSX_M2 into one iterator.
21772         (VSX_M2): Likewise.
21773         (VSINT_84): New iterators for loading constants with XXSPLTIB.
21774         (VSINT_842): Likewise.
21775         (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
21776         (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
21777         XXSPLTIB instruction.
21778         (xxspltib_<mode>_nosplit): Likewise.
21779         (xxspltib_<mode>_split): New insn to load up constants with
21780         XXSPLTIB and a sign extend instruction.
21781         (vsx_mov<mode>): Replace single move that handled all vector types
21782         with separate 32-bit and 64-bit moves.  Combine the movti_<bit>
21783         moves (when -mvsx-timode is in effect) into the main vector
21784         moves.  Eliminate separate moves for <VSr> <VSa>, where the
21785         preferred register class (<VSr>) is listed first, and the
21786         secondary register class (<VSa>) is listed second with a '?' to
21787         discourage use.  Prefer loading 0/-1 in any VSX register for ISA
21788         3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
21789         that if the register was involved in a slow operation, the
21790         clear/set operation does not wait for the slow operation to
21791         finish.  Adjust the length attributes for 32-bit mode.  Use
21792         rs6000_output_move_128bit and drop the use of the string
21793         instructions for 32-bit movti when -mvsx-timode is in effect.  Use
21794         spacing so that the alternatives and attributes don't generate
21795         long lines, and put things in columns, so that it is easier to
21796         match up the operands and attributes with the insn alternatives.
21797         (vsx_mov<mode>_64bit): Likewise.
21798         (vsx_mov<mode>_32bit): Likewise.
21799         (vsx_movti_64bit): Fold movti into normal vector moves.
21800         (vsx_movti_32bit): Likewise.
21801         (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
21802         splat instructions.
21803         (vsx_splat_v4si_internal): Likewise.
21804         (vsx_splat_v4sf_internal): Likewise.
21805         (vector fusion peepholes): Use VSX_M instead of VSX_M2.
21806         (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
21807         extend vector elements.
21808         (vsx_sign_extend_hi_<mode>): Likewise.
21809         (vsx_sign_extend_si_v2di): Likewise.
21810         * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
21811         declaration.
21812         * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
21813         constraints.  Add trailing period to wL documentation.
21815 2016-05-18  Richard Sandiford  <richard.sandiford@arm.com>
21817         PR middle-end/71020
21818         * tree-dfa.h (replace_abnormal_ssa_names): Declare.
21819         * tree-dfa.c (replace_abnormal_ssa_names): New function.
21820         * tree-call-cdce.c: Include tree-dfa.h.
21821         (can_guard_call_p): New function, extracted from...
21822         (can_use_internal_fn): ...here.
21823         (shrink_wrap_one_built_in_call_with_conds): Remove failure path
21824         and return void.
21825         (shrink_wrap_one_built_in_call): Likewise.
21826         (use_internal_fn): Likewise.
21827         (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
21828         and return void.  Call replace_abnormal_ssa_names.
21829         (pass_call_cdce::execute): Check can_guard_call_p during the
21830         initial walk.  Assume shrink_wrap_conditional_dead_built_in_calls
21831         will always change something.
21833 2016-05-18  Martin Jambor  <mjambor@suse.cz>
21835         PR ipa/70646
21836         * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
21837         if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
21839 2016-05-18  Martin Jambor  <mjambor@suse.cz>
21841         PR ipa/70646
21842         * ipa-inline.h (condition): New field size.
21843         * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
21844         for comaprison and store it into the new condition.
21845         (evaluate_conditions_for_known_args): Use condition size to check
21846         access sizes for all but CHANGED conditions.
21847         (unmodified_parm_1): New parameter size_p, store access size into it.
21848         (unmodified_parm): Likewise.
21849         (unmodified_parm_or_parm_agg_item): Likewise.
21850         (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
21851         (set_cond_stmt_execution_predicate): Extract access sizes and store
21852         them to conditions.
21853         (set_switch_stmt_execution_predicate): Likewise.
21854         (will_be_nonconstant_expr_predicate): Likewise.
21855         (will_be_nonconstant_predicate): Likewise.
21856         (inline_read_section): Stream condition size.
21857         (inline_write_summary): Likewise.
21859 2016-05-18  Richard Biener  <rguenther@suse.de>
21861         * tree-ssa-loop-im.c (determine_max_movement): Properly add
21862         condition cost to PHI cost instead of total_cost.
21864 2016-05-18  Martin Liska  <mliska@suse.cz>
21866         PR fortran/70856
21867         * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
21868         merged variables.
21870 2016-05-18  Richard Biener  <rguenther@suse.de>
21872         * lto-streamer.h (LTO_major_version): Bump to 6.
21874 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
21876         * function.c (make_split_prologue_seq, make_prologue_seq,
21877         make_epilogue_seq): New functions, factored out from...
21878         (thread_prologue_and_epilogue_insns): Here.
21880 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
21882         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
21883         cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
21884         of before.  Add a comment.
21886 2016-05-18  Bin Cheng  <bin.cheng@arm.com>
21888         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
21889         expression pointer, not pointer to the pointer.
21891 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
21893         * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
21894         (avx2_pbroadcast<mode>): Add another alternative with v instead
21895         of x constraints in it, using <pbroadcast_evex_isa> isa.
21896         (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
21898         * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
21899         constraint x instead of v in second alternative, add avx512bw
21900         alternative.
21902         * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
21903         constraint x instead of v in second alternative, add avx512bw
21904         alternative.
21906         * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
21907         constraint x instead of v in second alternative, add avx512bw
21908         alternative.
21910         * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
21911         avx512bw alternative.
21913 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
21915         * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
21916         array to 128 chars.
21917         (define_insn "*andnottf3"): Ditto.
21918         (define_insn "*<code><mode>3"/any_logic): Ditto.
21919         (define_insn "*<code>tf3"/any_logic): Ditto.
21920         (define_insn "sse2_storehpd"): Use Yv constraint for scalar
21921         operand to block AVX-512VL insn variant emit when it is not enabled.
21923 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
21925         * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
21926         constraint fot SF mode.
21928 2016-05-18  Petr Murzin  <petr.murzin@intel.com>
21929             Kirill Yukhin  <kirill.yukhin@intel.com>
21931         * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
21932         modifiers.
21933         (define_insn "rsqrt14<mode>"): Ditto.
21934         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
21935         (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
21936         (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
21937         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
21938         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
21939         Ditto.
21940         (define_insn "*avx512f_gatherdi<mode>"): Ditto.
21941         (define_insn "*avx512f_scatterdi<mode>"): Ditto.
21942         * config/i386/i386.c (ix86_print_operand): Expand check for size
21943         override codes for Intel syntax.
21945 2016-05-18  Richard Biener  <rguenther@suse.de>
21947         PR tree-optimization/71168
21948         * tree-loop-distribution.c (distribute_loop): Move *destroy_p
21949         initialization earlier.
21951 2016-05-18  James Greenhalgh  <james.greenhalgh@arm.com>
21953         * config/aarch64/aarch64-simd.md
21954         (aarch64_reduc_plus_internal<mode>): Rename to...
21955         (reduc_plus_scal): ...This, and remove previous implementation.
21957 2016-05-18  Richard Biener  <rguenther@suse.de>
21959         * passes.def: Put late dse and cd_dce in canonical order.
21961 2016-05-17  Jan Hubicka  <hubicka@ucw.cz>
21963         * ipa-inline-transform.c (preserve_function_body_p): Look for
21964         first non-thunk clone.
21965         (save_function_body): Save into first non-thunk.
21966         * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
21967         up call stmt id.
21968         (lto_output_node): Inline thunks don't need body in every
21969         partition.
21970         * lto-streamer-in.c: Do not fixup thunk clones.
21971         * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
21972         thunks.
21973         * tree-inline.c (copy_bb): Be prepared for target node to be new after
21974         folding suceeds.
21976 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
21978         PR middle-end/63586
21979         * tree-ssa-reassoc.c (transform_add_to_multiply): New.
21980         (reassociate_bb): Call transform_add_to_multiply.
21982 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
21984         * config/aarch64/aarch64.c (all_extensions): Removed unused
21985         static variable.
21987 2016-05-17  Nathan Sidwell  <nathan@acm.org>
21989         * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
21990         (TARGET_FUNCTION_ARG_BOUNDARY): Override.
21992 2016-05-17  Mikhail Maltsev  <maltsevm@gmail.com>
21994         PR tree-optimization/54579
21995         PR middle-end/55299
21996         * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
21998 2016-05-17  Marek Polacek  <polacek@redhat.com>
22000         PR ipa/71146
22001         * tree-inline.c (expand_call_inline): Call
22002         maybe_remove_unused_call_args.
22004 2016-05-17  Jim Wilson  <jim.wilson@linaro.org>
22006         * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
22007         * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
22008         * doc/md.texi (fmin@var{m}3): Likewise.
22010 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
22012         * match.pd (X & C): New transformation.
22014 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
22016         * match.pd (~X & Y): New transformation.
22018 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
22020         * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
22021         information for new SSA_NAME.
22022         (simplify_conversion_using_ranges): Get range through get_range_info
22023         instead of get_value_range.
22025 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
22027         * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
22028         Remove inline assembly.
22029         (vmvn_s16): Likewise.
22030         (vmvn_s32): Likewise.
22031         (vmvn_u8): Likewise.
22032         (vmvn_u16): Likewise.
22033         (vmvn_u32): Likewise.
22034         (vmvnq_s8): Likewise.
22035         (vmvnq_s16): Likewise.
22036         (vmvnq_s32): Likewise.
22037         (vmvnq_u8): Likewise.
22038         (vmvnq_u16): Likewise.
22039         (vmvnq_u32): Likewise.
22040         (vmvn_p8): Likewise.
22041         (vmvnq_p16): Likewise.
22043 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
22045         * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
22046         Use builtin.
22047         (vmul_n_s16): Likewise.
22048         (vmul_n_s32): Likewise.
22049         (vmul_n_u16): Likewise.
22050         (vmul_n_u32): Likewise.
22051         (vmulq_n_f32): Likewise.
22052         (vmulq_n_f64): Likewise.
22053         (vmulq_n_s16): Likewise.
22054         (vmulq_n_s32): Likewise.
22055         (vmulq_n_u16): Likewise.
22056         (vmulq_n_u32): Likewise.
22058 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
22060         * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
22061         to all supported modes.  Rename to "*aarch64_mul3_elt_from_dup".
22063 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
22065         * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
22066         to *aarch64_fma4_elt_from_dup<mode>.
22067         (*aarch64_fnma4_elt_to_128df): Rename to
22068         *aarch64_fnma4_elt_from_dup<mode>.
22069         * config/aarch64/arm_neon.h (vfma_n_f64): New.
22070         (vfms_n_f32): Likewise.
22071         (vfms_n_f64): Likewise.
22072         (vfmsq_n_f32): Likewise.
22073         (vfmsq_n_f64): Likewise.
22075 2016-05-17  Gerald Pfeifer  <gerald@pfeifer.com>
22077         * wide-int.h: Change fixed_wide_int_storage from class to struct.
22079 2016-05-17  Richard Biener  <rguenther@suse.de>
22081         PR tree-optimization/71132
22082         * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
22083         Only add control dependences for blocks in the loop.
22084         (build_rdg): Adjust.
22085         (generate_code_for_partition): Return whether loop should
22086         be destroyed and delay that.
22087         (distribute_loop): Likewise.
22088         (pass_loop_distribution::execute): Record loops to be destroyed
22089         and perform delayed destroying of loops.
22091 2016-05-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22093         PR target/70809
22094         * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
22096 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
22098         * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
22100 2016-05-17  Ilya Enkovich  <ilya.enkovich@intel.com>
22102         PR target/71114
22103         * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
22104         insertion point for instructions generated by validize_mem.
22106 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
22108         * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
22109         in brackets.
22111 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
22113         * config/aarch64/aarch64.c
22114         (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
22115         rather than a macro.
22117 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
22119         * doc/invoke.texi (AArch64 Options): Various updates.
22121 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
22123         * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
22124         into instrumentation thunks.
22125         * cif-code.def (CIF_CHKP): New.
22127 2016-05-16  Uros Bizjak  <ubizjak@gmail.com>
22129         * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
22131 2016-05-16  Martin Jambor  <mjambor@suse.cz>
22133         * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
22134         (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
22136 2016-05-16  Marek Polacek  <polacek@redhat.com>
22138         * gimple.c (maybe_remove_unused_call_args): Fix typos in the
22139         commentary.
22141 2016-05-16  Martin Jambor  <mjambor@suse.cz>
22143         PR hsa/70857
22144         * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
22145         the outlined kernel function.
22147 2016-05-16  Robert Suchanek  <robert.suchanek@imgtec.com>
22149         * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
22150         (ISA_HAS_DLSA): Ditto.
22152 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
22154         * config/mips/m5100.md (m51_int_load): Update the latency to 2.
22156 2016-05-16  Nathan Sidwell  <nathan@acm.org>
22158         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
22159         (nvptx_name_replacement): Restore.  Add comment.
22160         (write_fn_proto, write_fn_proto_from_insn,
22161         nvptx_output_call_insn): Restore
22162         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
22164 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
22166         * config/aarch64/aarch64.md
22167         (add<mode>3_compareC_cconly_imm): Remove use of %w.
22168         (add<mode>3_compareC_imm): Likewise.
22169         (<optab>si3_uxtw): Split into register and immediate variants.
22170         (andsi3_compare0_uxtw): Likewise.
22171         (and<mode>3_compare0): Likewise.
22172         (and<mode>3nr_compare0): Likewise.
22173         (stack_protect_test_<mode>): Don't use %x for memory operands.
22175 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
22177         * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
22179 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
22181         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
22182         Split integer shifts into shift_reg and bfm.
22183         (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
22184         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
22185         (ror<mode>3_insn): Likewise.
22186         (<optab>si3_insn_uxtw): Likewise.
22187         (<optab><mode>3_insn): Change to rotate_imm.
22188         (extr<mode>5_insn_alt): Likewise.
22189         (extrsi5_insn_uxtw): Likewise.
22190         (extrsi5_insn_uxtw_alt): Likewise.
22192 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
22194         * doc/tm.texi: Regenerate.
22195         * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
22196         (TARGET_INVALID_RETURN_TYPE): Remove.
22197         * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
22198         TARGET_INVALID_RETURN_TYPE.
22199         * target.def (invalid_parameter_type): Remove.
22200         (invalid_return_type): Remove.
22202 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
22204         * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
22205         on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
22206         calls from thunk.
22207         * ipa-inline-transform.c (inline_call): When inlining into thunk produce
22208         gimple body.
22209         (preserve_function_body_p): No need to preserve function body
22210         * cif-codes.def (CIF_THUNK): Remove.
22211         * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
22213 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
22215         * tree-inline.c (expand_call_inline): recurse after inlining thunk.
22217 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
22219         * tree.c (free_lang_data_in_decl): Also set target/optimization flags
22220         for thunks.
22222 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
22224         * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
22225         (inline_small_functions): Do not look for function symbol when
22226         resetting caches.
22228 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
22230         * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
22231         of inline thunks
22233 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
22234             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22235             Jiong Wang  <jiong.wang@arm.com>
22237         * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
22238         for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
22239         Define __ARM_FP16_ARGS when appropriate.
22240         * config/arm/arm.c (arm_invalid_parameter_type): Remove
22241         declaration.
22242         (arm_invalid_return_type): Likewise.
22243         (TARGET_INVALID_PARAMETER_TYPE): Remove.
22244         (TARGET_INVALID_RETURN_TYPE): Remove.
22245         (aapcs_vfp_sub_candidate): Allow HFmode.
22246         (aapcs_vfp_allocate): Add comment.  Support HFmode.
22247         (aapcs_vfp_allocate_return_reg): Likewise.
22248         (struct aapcs_cp_arg_layout): Slightly reword comments for
22249         is_return_candidate and allocate_return_reg.
22250         (output_mov_vfp): Update assert.
22251         (arm_hard_regno_mode_ok): Remove comment, update HF-mode
22252         condition.
22253         (arm_invalid_parameter_type): Remove.
22254         (amr_invalid_return_type): Remove.
22255         * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
22256         * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
22257         * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
22259 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
22261         * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
22262         * config/aarch64/arch64-protos.h
22263         (aarch64_legitimize_reload_address): Remove.
22264         * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
22265         Remove.
22267 2016-05-16  Eric Botcazou  <ebotcazou@adacore.com>
22269         * configure.ac: Add ACX_NONCANONICAL_HOST.
22270         * configure: Regenerate.
22271         * Makefile.in: Set host_noncanonical.
22273 2016-05-14  Uros Bizjak  <ubizjak@gmail.com>
22275         PR target/71097
22276         * config/i386/i386.md (*movtf_internal): Before register allocation,
22277         do not allow FP constants for CM_MEDIUM memory model, allow only
22278         standard FP constants for CM_LARGE and CM_LARGE_PIC models.
22279         (*movxf_internal): Ditto.
22280         (*movdf_internal): Ditto.
22281         (*movsf_internal): Ditto.
22283 2016-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
22285         PR rtl-optimization/67483
22286         * combine.c (make_compound_operation): Don't call extract_left_shift
22287         with negative shift amounts.
22289 2016-05-13  Jakub Jelinek  <jakub@redhat.com>
22291         PR bootstrap/71071
22292         * fold-const.c (fold_checksum_tree): Allow modification
22293         of TYPE_ALIAS_SET during folding.
22295         * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
22296         ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
22297         (ix86_split_to_parts): Likewise.  Fix up formatting.
22299 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
22301         * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
22302         unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
22303         printf format.
22305 2016-05-13  Nathan Sidwell  <nathan@acm.org>
22307         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
22308         (nvptx_name_replacement): Delete.
22309         (write_fn_proto, write_fn_proto_from_insn,
22310         nvptx_output_call_insn): Remove nvptx_name_replacement call.
22311         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
22312         * langhooks.c (add_builtin_funcction_common): Call
22313         targetm.mangle_decl_assembler_name.
22315         * config/nvptx/nvptx.c (write_fn_proto): Handle
22316         BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
22318 2016-05-13  Martin Liska  <mliska@suse.cz>
22320         * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
22321         and PRIu64 in printf format.
22323 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22325         * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
22326         comment.
22328 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22330         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
22331         Change --param max-completely-peeled-times to
22332         --param max-completely-peel-times in dump file printing.
22334 2016-05-13  Richard Biener  <rguenther@suse.de>
22336         PR tree-optimization/42587
22337         * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
22338         (find_bswap_or_nop_1): Likewise.
22339         (bswap_replace): Likewise.
22341 2016-05-13  Martin Liska  <mliska@suse.cz>
22343         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
22344         Initialize a variable with default value.
22346 2016-05-13  Martin Liska  <mliska@suse.cz>
22348         * doc/invoke.texi: Enhance explanation of error recovery
22349         of sanitizers.
22351 2016-05-13  Martin Liska  <mliska@suse.cz>
22353         * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
22354         (struct cost_pair): Change inv_expr_id (int) to inv_expr
22355         (iv_inv_expr_ent *).
22356         (struct iv_inv_expr_ent): Comment struct fields.
22357         (sort_iv_inv_expr_ent): New function.
22358         (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
22359         (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
22360         a hash_map between iv_inv_expr_ent and number of usages.
22361         (niter_for_exit): Fix coding style.
22362         (tree_ssa_iv_optimize_init): Use renamed variable.
22363         (determine_base_object): Fix coding style.
22364         (alloc_iv): Likewise.
22365         (find_interesting_uses_outside): Likewise.
22366         (add_candidate_1): Likewise.
22367         (add_standard_iv_candidates): Likewise.
22368         (set_group_iv_cost): Replace inv_expr_id with inv_expr.
22369         (prepare_decl_rtl): Fix coding style.
22370         (get_address_cost): Likewise.
22371         (get_shiftadd_cost): Likewise.
22372         (force_expr_to_var_cost): Likewise.
22373         (compare_aff_trees): Likewise.
22374         (get_expr_id): Restructure the function.
22375         (get_loop_invariant_expr_id): Renamed to
22376         get_loop_invariant_expr.
22377         (get_computation_cost_at): Replace usage of inv_expr_id with
22378         inv_expr.
22379         (get_computation_cost): Likewise.
22380         (determine_group_iv_cost_generic): Likewise.
22381         (determine_group_iv_cost_address): Likewise.
22382         (iv_period): Fix coding style.
22383         (iv_elimination_compare_lt): Likewise.
22384         (may_eliminate_iv): Likewise.
22385         (determine_group_iv_cost_cond):  Replace usage of inv_expr_id with
22386         inv_expr.
22387         (determine_group_iv_costs): Dump invariant expressions.
22388         (iv_ca_recount_cost): Use the newly added hash_map.
22389         (iv_ca_set_remove_invariants): Fix coding style.
22390         (iv_ca_set_add_invariants): Fix coding style.
22391         (iv_ca_set_no_cp): Utilize the newly added hash_map for used
22392         invariants.
22393         (iv_ca_set_cp): Likewise.
22394         (iv_ca_new): Initialize the newly added hash_map and remove
22395         initialization of fields.
22396         (iv_ca_free): Delete the hash_map.
22397         (iv_ca_dump): Dump invariant expressions.
22398         (iv_ca_extend): Fix coding style.
22399         (try_add_cand_for): Likewise.
22400         (create_new_ivs): Dump information about # of avg iterations and
22401         # of used invariant expressions.
22402         (rewrite_use_compare): Fix coding style.
22403         (free_loop_data): Set default value for max_inv_expr_id.
22405 2016-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
22407         * cse.c (rest_of_handle_cse): Use cleanup_cfg
22408         returned value cse_cfg_altered computation.
22409         (rest_of_handle_cse2): Likewise.
22410         (rest_of_handle_cse_after_global_opts): Likewise.
22412 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22414         PR target/53440
22415         * config/arm/arm.c (arm32_output_mi_thunk): New.
22416         (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
22417         to split Thumb1 vs TARGET_32BIT functionality.
22418         (arm_thumb1_mi_thunk): New.
22420 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22422         * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
22423         to true.
22425 2016-05-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22427         PR target/71080
22428         * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
22430 2016-05-13  Eric Botcazou  <ebotcazou@adacore.com>
22432         * builtins.c (expand_builtin_memcmp): Do not emit the call here.
22433         (expand_builtin_trap): Emit a regular call.
22434         (set_builtin_user_assembler_name): Remove obsolete cases.
22435         * dse.c (scan_insn): Adjust.
22436         * except.c: Include calls.h.
22437         (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
22438         emit a regular call to setjmp.
22439         * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
22440         (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
22441         (emit_block_move_via_libcall): Delete.
22442         (block_move_fn): Delete.
22443         (init_block_move_fn): Likewise.
22444         (emit_block_move_libcall_fn): Likewise.
22445         (emit_block_op_via_libcall): New function.
22446         (set_storage_via_libcall): Tidy up and use memset builtin.
22447         (block_clear_fn): Delete.
22448         (init_block_clear_fn): Likewise.
22449         (clear_storage_libcall_fn): Likewise.
22450         (expand_assignment): Call emit_block_move_via_libcall.
22451         Do not include gt-expr.h.
22452         * expr.h (emit_block_op_via_libcall): Declare.
22453         (emit_block_copy_via_libcall): New inline function.
22454         (emit_block_move_via_libcall): Likewise.
22455         (emit_block_comp_via_libcall): Likewise.
22456         (block_clear_fn): Delete.
22457         (init_block_move_fn): Likewise.
22458         (init_block_clear_fn): Likewise.
22459         (emit_block_move_via_libcall): Likewise.
22460         (set_storage_via_libcall): Add default parameter value.
22461         * libfuncs.h (enum libfunc_index): Remove obsolete values.
22462         (abort_libfunc): Delete.
22463         (memcpy_libfunc): Likewise.
22464         (memmove_libfunc): Likewise.
22465         (memcmp_libfunc): Likewise.
22466         (memset_libfunc): Likewise.
22467         (setbits_libfunc): Likewise.
22468         (setjmp_libfunc): Likewise.
22469         (longjmp_libfunc): Likewise.
22470         (profile_function_entry_libfunc): Likewise.
22471         (profile_function_exit_libfunc): Likewise.
22472         (gcov_flush_libfunc): Likewise.
22473         * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
22474         and DECL_VISIBILITY on the declaration.
22475         (init_optabs): Do not initialize obsolete libfuncs.
22476         * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
22477         * tree-core.h (ECF_RET1): Define.
22478         (ECF_TM_PURE): Adjust.
22479         (ECF_TM_BUILTIN): Likewise.
22480         * tree.c (set_call_expr_flags): Deal with ECF_RET1.
22481         (build_common_builtin_nodes): Initialize abort builtin.
22482         Add ECF_RET1 on memcpy, memmove and memset builtins.
22483         Pass final flags for alloca and alloca_with_align builtins.
22484         * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
22485         obsolete builtins.
22486         * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
22487         * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
22488         set_storage_via_libcall and call emit_block_copy_via_libcall.
22490 2016-05-12  Uros Bizjak  <ubizjak@gmail.com>
22492         * config/i386/i386.md (*call_got_x32): Change operand 0 to
22493         DImode before it is passed to ix86_output_call_operand.
22494         (*call_value_got_x32): Ditto for operand 1.
22496 2016-05-12  Jiong Wang  <jiong.wang@arm.com>
22498         PR rtl-optimization/70904
22499         * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
22500         reload for wide mode.
22502 2016-05-12  Marek Polacek  <polacek@redhat.com>
22504         PR c/70756
22505         * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
22506         * langhooks.c (lhd_incomplete_type_error): Add location parameter.
22507         * langhooks.h (incomplete_type_error): Likewise.
22508         * tree.c (size_in_bytes_loc): Renamed from size_in_bytes.  Add location
22509         parameter, pass it down to incomplete_type_error.
22510         * tree.h (size_in_bytes): New inline overload.
22511         (size_in_bytes_loc): Renamed from size_in_bytes.
22513 2016-05-12  Richard Biener  <rguenther@suse.de>
22515         PR tree-optimization/71059
22516         * tree-ssa-pre.c (phi_translate_1): Fully fold translated
22517         nary before looking up or entering the expression into the VN
22518         hashes.
22519         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
22520         Make sure to re-use NARYs without result as inserted by
22521         phi-translation.
22523 2016-05-12  Richard Biener  <rguenther@suse.de>
22525         PR tree-optimization/71062
22526         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
22527         field.
22528         * tree-ssa-structalias.c (set_uids_in_ptset): Set
22529         vars_contains_restrict if the var is a restrict tag.
22530         * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
22531         do not disambiguate pointers against it.
22532         (dump_points_to_solution): Re-structure and adjust for new
22533         vars_contains_restrict flag.
22534         * gimple-pretty-print.c (pp_points_to_solution): Likewise.
22536 2016-05-12  Martin Liska  <mliska@suse.cz>
22538         * doc/invoke.texi: Explain connection between
22539         -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
22541 2016-05-12  Ilya Enkovich  <ilya.enkovich@intel.com>
22543         PR tree-optimization/71006
22544         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
22545         consider COND_EXPR as a mask producer.
22547 2016-05-12  Marek Polacek  <polacek@redhat.com>
22549         PR driver/71063
22550         * opts.c (common_handle_option): Detect missing argument for --help^.
22552 2016-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22554         PR target/70830
22555         * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
22556         when popping the PC and within an interrupt handler routine.
22557         Add missing tab to output of "ldmfd".
22558         (output_return_instruction): Output LDMFD with SP update rather
22559         than POP when returning from interrupt handler.
22561 2016-05-12  Jakub Jelinek  <jakub@redhat.com>
22563         * config/i386/i386.md (isa): Add x64_avx512dq, enable if
22564         TARGET_64BIT && TARGET_AVX512DQ.
22565         * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
22566         (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
22567         (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
22568         *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
22569         (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
22570         (*vec_extractv4si_zext): Add avx512dq alternative.
22571         (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
22572         use v instead of x constraint in other alternatives where possible.
22574         * config/i386/sse.md (sse2_loadld): Use v instead of x
22575         constraint in alternatives 0,1,4.
22577         * config/i386/sse.md (pinsr_evex_isa): New mode attr.
22578         (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
22579         v constraints instead of x and <pinsr_evex_isa> isa attribute.
22581         PR target/71019
22582         * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
22583         <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
22584         is not emitted unless TARGET_AVX512BW.
22585         (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
22586         Likewise.  For TARGET_AVX512BW, use "=v" constraint instead of "=x"
22587         for the result operand.
22589         * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
22590         constraint instead of x in avx alternatives.  Use maybe_evex instead
22591         of vex prefix.
22593         * config/i386/constraints.md (Yv): New constraint.
22594         * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
22595         TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
22596         * config/i386/i386.md (avx512fvecmode): New mode attr.
22597         (*pushtf): Use v constraint instead of x.
22598         (*movtf_internal): Likewise.  For TARGET_AVX512VL and
22599         xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
22600         (*absneg<mode>2): Use Yv constraint instead of x constraint.
22601         (*absnegtf2_sse): Likewise.
22602         (copysign<mode>3_const, copysign<mode>3_var): Likewise.
22603         * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
22604         avx512f alternatives.
22605         (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
22607 2016-05-12  Richard Biener  <rguenther@suse.de>
22609         PR tree-optimization/71060
22610         * tree-data-ref.c (initialize_data_dependence_relation): Do not
22611         require exact match of DR_BASE_OBJECT but only matching address and
22612         type.
22614 2016-05-12  Richard Biener  <rguenther@suse.de>
22616         PR tree-optimization/70986
22617         * cfganal.c: Include cfgloop.h.
22618         (dfs_find_deadend): Prefer to take edges exiting loops.
22620 2016-05-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22622         * gcc.target/powerpc/pr70963.c: Require at least power8 at both
22623         compile and run time.
22625 2016-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
22627         PR c/43651
22628         * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
22630 2016-05-11  Uros Bizjak  <ubizjak@gmail.com>
22632         * config/i386/i386.c (legitimize_pic_address): Use
22633         copy_to_suggested_reg instead of gen_movsi.
22635 2016-05-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
22637         * config/rs6000/predicates.md (quad_memory_operand): Move most of
22638         the code into quad_address_p and call it to share code with
22639         vsx_quad_dform_memory_operand.
22640         (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
22641         d-form support.
22642         * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
22643         bit instead of being a separate word.  Split -mpower9-dform into
22644         two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
22645         * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
22646         for the register class supporting 128-bit quad word memory offsets.
22647         (mode_supports_vsx_dform_quad): Helper function to return if the
22648         register class uses quad word memory offsets.
22649         (rs6000_debug_addr_mask): Add support for quad word memory offsets.
22650         (rs6000_debug_reg_global): Always print if we are using LRA or not.
22651         (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
22652         instructions are enabled, set up the appropriate addr_masks for
22653         128-bit types.
22654         (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
22655         -mpower9-dform-scalar, instead of -mpower9-dform.
22656         (rs6000_option_override_internal): Split -mpower9-dform into two
22657         switches, -mpower9-dform-scalar and -mpower9-dform-vector.  The
22658         -mpower9-dform switch sets or clears both.  If we are not using
22659         the LRA register allocator, do not enable -mpower9-dform-vector by
22660         default.  If we are using LRA, enable -mpower9-dform-vector and
22661         -mvsx-timode if it is appropriate.  Issue a warning if either
22662         -mpower9-dform-vector or -mvsx-timode are explicitly used without
22663         enabling LRA.
22664         (quad_address_offset_p): New helper function to return if the
22665         offset is legal for quad word memory instructions.
22666         (quad_address_p): New function to determin if GPR or vector
22667         register quad word memory addresses are legal.
22668         (mem_operand_gpr): Validate quad word address offsets.
22669         (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
22670         d-form (register + offset) instructions.
22671         (offsettable_ok_by_alignment): Likewise.
22672         (rs6000_legitimate_offset_address_p): Likewise.
22673         (legitimate_lo_sum_address_p): Likewise.
22674         (rs6000_legitimize_address): Likewise.
22675         (rs6000_legitimize_reload_address): Add more debug statements for
22676         -mdebug=addr.
22677         (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
22678         d-form instructions.
22679         (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
22680         d-form instructions.  Distinguish different cases in debug
22681         output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
22682         d-form instructions.
22683         (rs6000_preferred_reload_class): Likewise.
22684         (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
22685         instructions.  If ISA 3.0 is available, generate lxvx/stxvx instead
22686         of the ISA 2.06 indexed memory instructions.
22687         (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
22688         use them to save/restore the saved vector registers instead of
22689         using Altivec instructions.
22690         (rs6000_emit_epilogue): Likewise.
22691         (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
22692         (rs6000_opt_masks): Split -mpower9-dform into
22693         -mpower9-dform-scalar and -mpower9-dform-vector.
22694         (rs6000_print_options_internal): Print -mno-<switch> if <switch>
22695         was not selected.
22696         * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
22697         ISA 3.0 vector indexed memory instructions, and fold the code into
22698         the normal mov<mode> patterns.
22699         (p9_vecstore_<mode>): Likewise.
22700         (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
22701         instructions.
22702         (vsx_movti_64bit): Likewise.
22703         (vsx_movti_32bit): Likewise.
22704         * config/rs6000/constraints.md (wO constraint): New constraint for
22705         ISA 3.0 vector d-form support.
22706         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
22707         -mpower9-dform-scalar instead of -mpower9-dform.  Add note not to
22708         include -mpower9-dform-vector until we switch over to LRA.
22709         (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
22710         switches, -mpower9-dform-scalar and -mpower9-dform-vector.
22711         * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
22712         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
22713         for -mpower9-dform and -mlra.
22714         * doc/md.texi (wO constraint): Document wO constraint.
22716 2016-05-11  Alexander Monakov  <amonakov@ispras.ru>
22718         * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
22719         'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
22720         * genautomata.c (output_internal_insn_code_evaluation): Simplify.
22721         Move handling of non-insn arguments inline into the sole user:
22722         (output_trans_func): ...here.
22723         (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
22724         in emitted function prototype.
22725         (output_internal_insn_latency_func): Ditto.  Simplify.
22726         (output_internal_maximal_insn_latency_func): Ditto.  Delete
22727         always-unused argument.
22728         (output_insn_latency_func): Ditto.
22729         (output_maximal_insn_latency_func): Ditto.
22731 2016-05-11  Richard Biener  <rguenther@suse.de>
22733         PR tree-optimization/71055
22734         * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
22735         sth with precision not equal to access size verify we don't chop
22736         off bits.
22738 2016-05-11  Richard Biener  <rguenther@suse.de>
22740         PR debug/71057
22741         * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
22742         (dwarf2out_finish): Move retry_incomplete_types call ...
22743         (dwarf2out_early_finish): ... here.
22745 2016-05-11  Richard Biener  <rguenther@suse.de>
22747         PR middle-end/71002
22748         * alias.c (reference_alias_ptr_type): Preserve alias-set zero
22749         if the langhook insists on it.
22750         * fold-const.c (make_bit_field_ref): Add arg for the original
22751         reference and preserve its alias-set.
22752         (decode_field_reference): Take exp by reference and adjust it
22753         to the original memory reference.
22754         (optimize_bit_field_compare): Adjust callers.
22755         (fold_truth_andor_1): Likewise.
22756         * gimplify.c (gimplify_expr): Adjust in-SSA form test.
22758 2016-05-11  Ilya Enkovich  <ilya.enkovich@intel.com>
22760         PR middle-end/70807
22761         * cfgrtl.h (delete_insn_and_edges): Now return bool.
22762         * cfgrtl.c (delete_insn_and_edges): Likewise.
22763         * config/i386/i386.c (convert_scalars_to_vector): Remove
22764         redundant code.
22765         * cse.c (cse_insn): Compute cse_cfg_altered.
22766         (delete_trivially_dead_insns): Likewise.
22767         (cse_cc_succs): Likewise.
22768         (rest_of_handle_cse): Free dominance info if required.
22769         (rest_of_handle_cse2): Likewise.
22770         (rest_of_handle_cse_after_global_opts): Likewise.
22772 2016-05-11  Alan Modra  <amodra@gmail.com>
22774         * config/rs6000/rs6000.c (is_complex_IBM_long_double,
22775         abi_v4_pass_in_fpr): New functions.
22776         (rs6000_function_arg_boundary): Exclude complex IBM long double
22777         from 64-bit alignment when ABI_V4.
22778         (rs6000_function_arg, rs6000_function_arg_advance_1,
22779         rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
22781 2016-05-10  Segher Boessenkool  <segher@kernel.crashing.org>
22783         PR rtl-optimization/71028
22784         * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
22785         jump with just a return in the fallthrough block if the branch
22786         block contains just a return as well.
22788 2016-05-10  Marc Glisse  <marc.glisse@inria.fr>
22790         * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
22791         * match.pd ((X & Y) ^ Y): ... this.
22792         ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
22793         | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
22795 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
22797         * read-md.c (require_char_ws): New function.
22798         (read_string): Simplify using require_char_ws.
22799         (handle_constants): Likewise.
22800         (handle_enum): Likewise.
22801         (handle_file): Likewise.
22802         * read-md.h (require_char_ws): New declaration.
22803         * read-rtl.c (read_conditions): Simplify using require_char_ws.
22804         (read_mapping): Likewise.
22805         (read_rtx_code): Likewise.
22806         (read_nested_rtx): Likewise.
22808 2016-05-10  James Norris  <jnorris@codesourcery.com>
22810         * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
22811         if offloading is enabled and -fopenacc or -fopenmp is specified.
22812         (CRTOFFLOADEND): Likewise.
22813         (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
22814         (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
22816 2016-05-10  Uros Bizjak  <ubizjak@gmail.com>
22818         * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
22819         gotoff_operand code paths.  Use copy_to_suggested_regs and
22820         expand_simple_binop where appropriate.  Cleanup.
22822 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
22824         PR target/70799
22825         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
22826         integer constants.
22827         (dimode_scalar_chain::vector_const_cost): New.
22828         (dimode_scalar_chain::compute_convert_gain): Handle constants.
22829         (dimode_scalar_chain::convert_op): Likewise.
22830         (dimode_scalar_chain::convert_insn): Likewise.
22832 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
22834         * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
22835         unary operation, not a binary one.
22837 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
22839         PR middle-end/70877
22840         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
22841         calls with type casted fndecl.
22843 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
22845         PR tree-optimization/70786
22846         * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
22847         * calls.c (initialize_argument_information): Bind bounds
22848         with corresponding args passed by reference.
22850 2016-05-10  Jakub Jelinek  <jakub@redhat.com>
22852         PR target/70927
22853         * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
22854         *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
22855         use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
22856         accordingly.
22858 2016-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22860         PR target/70963
22861         * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
22862         code for a zero scale factor.
22863         (vsx_xvcvdpuxds_scale): Likewise.
22865 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
22867         * diagnostic-show-locus.c (layout::layout): Call show_ruler
22868         if show_ruler_p was set on the context.
22869         (layout::show_ruler): New method.
22870         * diagnostic.h (struct diagnostic_context): Add field
22871         "show_ruler_p".
22873 2016-05-10  Richard Biener  <rguenther@suse.de>
22875         PR tree-optimization/71039
22876         * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
22877         (chk_uses): New function.
22878         (propagate_with_phi): Verify we can safely replicate the lhs of an
22879         aggregate assignment on all incoming edges.
22881 2016-05-10  Oleg Endo  <olegendo@gcc.gnu.org>
22883         * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
22884         Forward declare.
22885         (rx_atomic_sequence): New class.
22886         * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
22887         (is_interrupt_func, is_fast_interrupt_func): Make non-static and
22888         non-inline.
22889         (rx_atomic_sequence::rx_atomic_sequence,
22890         rx_atomic_sequence::~rx_atomic_sequence): New functions.
22891         * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
22892         CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
22893         CTRLREG_INTB): New constants.
22894         (FETCHOP): New code iterator.
22895         (fethcop_name, fetchop_name2): New iterator code attributes.
22896         (QIHI): New mode iterator.
22897         (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
22898         atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
22899         atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
22901 2016-05-10  Martin Liska  <mliska@suse.cz>
22903         * tree-inline.c (remap_dependence_clique): Do not remap
22904         debugging statements.
22906 2016-05-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22908         * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
22909         ("*fixuns_truncdfdi2_z13")
22910         ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
22911         ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
22912         ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
22914 2016-05-10  Richard Biener  <rguenther@suse.de>
22916         PR tree-optimization/70497
22917         PR tree-optimization/28367
22918         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
22919         split out from ...
22920         (visit_reference_op_load): ... here.
22921         (vn_reference_lookup_3): Use it to handle subreg-like accesses
22922         with simplified BIT_FIELD_REFs.
22923         * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
22924         * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
22925         correctly.
22927 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
22929         * dwarf2out.c (add_abstract_origin_attribute): Adjust
22930         documentation comment.  For BLOCK nodes, add a
22931         DW_AT_abstract_origin attribute that points to the DIE generated
22932         for the origin BLOCK.
22933         (gen_lexical_block_die): Call add_abstract_origin_attribute for
22934         blocks from inlined functions.
22936 2016-05-10  Alan Modra  <amodra@gmail.com>
22938         PR target/70947
22939         * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
22940         regrename modifying insns saving lr before __morestack call.
22941         * config/rs6000/rs6000.md (split_stack_return): Similarly for
22942         insns restoring lr after __morestack call.
22944 2016-05-09  Jakub Jelinek  <jakub@redhat.com>
22946         * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
22947         lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
22948         expanders.
22949         * config/i386/sse.md (vec_interleave_high<mode>,
22950         vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
22951         <avx512>_vpermt2var<mode>3_maskz): Likewise.
22953 2016-05-04  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
22955         * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
22956         function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
22957         parallel reassociation for power8 and forward.
22959 2016-05-09  Uros Bizjak  <ubizjak@gmail.com>
22961         * config/i386/i386.md (absneg splitters with general regs): Use
22962         general_reg_operand predicate.
22963         (btsq peephole2): Use x86_64_immediate_operand to check if new
22964         value is suitable for immediate operand.  Generate emitted insn
22965         using RTL expressions.
22966         (btcq peephole2): Ditto.
22967         (btrq peephole2): Ditto.  Generate correct immediate operand
22968         for AND masking.
22970 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
22972         * cfgexpand.c (expand_debug_expr): Fix address offset for negative
22973         bitpos.
22975 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
22977         * tree-affine.c (wide_int_constant_multiple_p): Add missing
22978         pointer dereference.
22980 2016-05-09  Richard Biener  <rguenther@suse.de>
22982         PR tree-optimization/70985
22983         * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
22984         op0 isn't a gimple register.
22986 2016-05-09  Prachi Godbole  <prachi.godbole@imgtec.com>
22988         * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
22989         (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
22990         (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
22991         (i6400_fpu_mult): New cpu units.
22992         (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
22993         (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
22994         (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
22995         (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
22996         (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
22997         (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
22998         (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
22999         (i6400_msa_long_float4, i6400_msa_long_float5)
23000         (i6400_msa_long_float8, i6400_msa_fdiv_df)
23001         (i6400_msa_fdiv_sf): New reservations.
23002         * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
23003         (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
23004         (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
23005         (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
23006         (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
23007         (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
23008         (msa_short_cmp, msa_short_float2, msa_short_logic3)
23009         (msa_short_store4, msa_long_load, msa_short_store)
23010         (msa_long_logic, msa_long_float2, msa_long_float4)
23011         (msa_long_float5, msa_long_float8, msa_long_mult)
23012         (msa_long_fdiv, msa_long_div): New reservations.
23014 2016-05-09  Robert Suchanek  <robert.suchanek@imgtec.com>
23015             Sameera Deshpande  <sameera.deshpande@imgtec.com>
23016             Matthew Fortune  <matthew.fortune@imgtec.com>
23017             Graham Stott  <graham.stott@imgtec.com>
23018             Chao-ying Fu  <chao-ying.fu@imgtec.com>
23020         * config.gcc: Add MSA header file for mips*-*-* target.
23021         * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
23022         (Ubv8i, Urv8):  New constraints.
23023         * config/mips/mips-ftypes.def: Add function types for MSA
23024         builtins.
23025         * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
23026         (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
23027         * config/mips/mips-msa.md: New file.
23028         * config/mips/mips-protos.h
23029         (mips_split_128bit_const_insns): New prototype.
23030         (mips_msa_idiv_insns): Likewise.
23031         (mips_split_128bit_move): Likewise.
23032         (mips_split_128bit_move_p): Likewise.
23033         (mips_split_msa_copy_d): Likewise.
23034         (mips_split_msa_insert_d): Likewise.
23035         (mips_split_msa_fill_d): Likewise.
23036         (mips_expand_msa_branch): Likewise.
23037         (mips_const_vector_same_val_p): Likewise.
23038         (mips_const_vector_same_bytes_p): Likewise.
23039         (mips_const_vector_same_int_p): Likewise.
23040         (mips_const_vector_shuffle_set_p): Likewise.
23041         (mips_const_vector_bitimm_set_p): Likewise.
23042         (mips_const_vector_bitimm_clr_p): Likewise.
23043         (mips_msa_vec_parallel_const_half): Likewise.
23044         (mips_msa_output_division): Likewise.
23045         (mips_ldst_scaled_shift): Likewise.
23046         (mips_expand_vec_cond_expr): Likewise.
23047         * config/mips/mips.c (enum mips_builtin_type): Add
23048         MIPS_BUILTIN_MSA_TEST_BRANCH.
23049         (mips_gen_const_int_vector_shuffle): New prototype.
23050         (mips_const_vector_bitimm_set_p): New function.
23051         (mips_const_vector_bitimm_clr_p): Likewise.
23052         (mips_const_vector_same_val_p): Likewise.
23053         (mips_const_vector_same_bytes_p): Likewise.
23054         (mips_const_vector_same_int_p): Likewise.
23055         (mips_const_vector_shuffle_set_p): Likewise.
23056         (mips_symbol_insns): Forbid loading symbols via immediate for
23057         MSA.
23058         (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
23059         stores.
23060         (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
23061         MSA.
23062         (mips_lx_address_p): Add support load indexed address for MSA.
23063         (mips_address_insns): Add calculation of instructions needed for
23064         stores and loads for MSA.
23065         (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR.  Handle
23066         CONST_VECTOR for MSA and let it fall through.
23067         (mips_ldst_scaled_shift): New function.
23068         (mips_subword_at_byte): Likewise.
23069         (mips_msa_idiv_insns): Likewise.
23070         (mips_legitimize_move): Validate MSA moves.
23071         (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases.  Add
23072         calculation of costs for MSA division.
23073         (mips_split_move_p): Check if MSA moves need splitting.
23074         (mips_split_move): Split MSA moves if necessary.
23075         (mips_split_128bit_move_p): New function.
23076         (mips_split_128bit_move): Likewise.
23077         (mips_split_msa_copy_d): Likewise.
23078         (mips_split_msa_insert_d): Likewise.
23079         (mips_split_msa_fill_d): Likewise.
23080         (mips_output_move): Handle MSA moves.
23081         (mips_expand_msa_branch): New function.
23082         (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
23083         Reinstate 'y' modifier.
23084         (mips_file_start): Add MSA .gnu_attribute.
23085         (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
23086         FPRs.
23087         (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
23088         (mips_class_max_nregs): Add register size for MSA supported mode.
23089         (mips_cannot_change_mode_class): Allow conversion between MSA
23090         vector modes and TImode.
23091         (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
23092         instruction.
23093         (mips_secondary_reload_class): Force MSA loads/stores via memory.
23094         (mips_preferred_simd_mode): Add preffered modes for MSA.
23095         (mips_vector_mode_supported_p): Add MSA supported modes.
23096         (mips_autovectorize_vector_sizes): New function.
23097         (mips_msa_output_division): Likewise.
23098         (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
23099         (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
23100         (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
23101         (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
23102         (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
23103         (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
23104         (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
23105         (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
23106         (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
23107         (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
23108         (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
23109         (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
23110         (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
23111         (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
23112         (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
23113         (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
23114         (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
23115         (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
23116         (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
23117         (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
23118         (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
23119         (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
23120         (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
23121         (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
23122         (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
23123         (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
23124         (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
23125         (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
23126         (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
23127         (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
23128         (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
23129         (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
23130         (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
23131         (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
23132         (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
23133         (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
23134         (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
23135         (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
23136         (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
23137         (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
23138         (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
23139         (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
23140         (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
23141         (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
23142         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
23143         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
23144         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
23145         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
23146         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
23147         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
23148         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
23149         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
23150         (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
23151         (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
23152         (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
23153         (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
23154         (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
23155         (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
23156         (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
23157         (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
23158         (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
23159         (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
23160         (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
23161         (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
23162         (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
23163         (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
23164         (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
23165         (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
23166         (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
23167         (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
23168         (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
23169         (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
23170         (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
23171         (CODE_FOR_msa_ldi_d): New code_aliasing macros.
23172         (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
23173         slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
23174         srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
23175         srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
23176         srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
23177         srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
23178         bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
23179         bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
23180         bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
23181         binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
23182         binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
23183         binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
23184         addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
23185         subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
23186         max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
23187         max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
23188         maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
23189         mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
23190         mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
23191         min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
23192         ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
23193         clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
23194         clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
23195         clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
23196         clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
23197         clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
23198         st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
23199         sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
23200         adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
23201         adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
23202         ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
23203         aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
23204         aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
23205         subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
23206         subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
23207         subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
23208         asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
23209         maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
23210         msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
23211         div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
23212         hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
23213         hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
23214         mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
23215         dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
23216         dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
23217         dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
23218         sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
23219         splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
23220         pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
23221         ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
23222         ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
23223         ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
23224         ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
23225         bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
23226         fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
23227         pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
23228         nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
23229         copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
23230         insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
23231         bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
23232         fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
23233         fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
23234         fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
23235         fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
23236         fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
23237         fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
23238         fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
23239         fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
23240         fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
23241         fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
23242         mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
23243         msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
23244         fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
23245         flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
23246         ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
23247         ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
23248         ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
23249         move_v builtins.
23250         (mips_get_builtin_decl_index): New array.
23251         (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
23252         (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
23253         (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
23254         (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
23255         (mips_init_builtins): Initialize mips_get_builtin_decl_index
23256         array.
23257         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
23258         hook.
23259         (mips_expand_builtin_insn): Prepare operands for
23260         CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
23261         CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
23262         CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
23263         CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
23264         CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
23265         CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
23266         CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
23267         CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
23268         CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
23269         CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
23270         CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
23271         CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
23272         CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
23273         CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
23274         CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
23275         CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
23276         CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
23277         CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
23278         CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
23279         CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
23280         CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
23281         CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
23282         CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
23283         CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
23284         CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
23285         CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
23286         CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
23287         CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
23288         CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
23289         CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
23290         CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
23291         CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
23292         CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
23293         CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
23294         CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
23295         CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
23296         CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
23297         CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
23298         CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
23299         CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
23300         CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
23301         (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
23302         (mips_set_compression_mode): Disallow MSA with MIPS16 code.
23303         (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
23304         These are set implicitly and an error is reported if overridden.
23305         (mips_expand_builtin_msa_test_branch): New function.
23306         (mips_expand_msa_shuffle): Likewise.
23307         (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
23308         (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
23309         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
23310         (mips_expand_vec_unpack): Add support for MSA.
23311         (mips_expand_vector_init): Likewise.
23312         (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
23313         instead of const0_rtx.
23314         (mips_msa_vec_parallel_const_half): New function.
23315         (mips_gen_const_int_vector): Likewise.
23316         (mips_gen_const_int_vector_shuffle): Likewise.
23317         (mips_expand_msa_cmp): Likewise.
23318         (mips_expand_vec_cond_expr): Likewise.
23319         * config/mips/mips.h
23320         (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
23321         (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
23322         specified.
23323         (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
23324         (ISA_HAS_MSA): New macro.
23325         (UNITS_PER_MSA_REG): Likewise.
23326         (BITS_PER_MSA_REG): Likewise.
23327         (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
23328         (MSA_REG_FIRST): New macro.
23329         (MSA_REG_LAST): Likewise.
23330         (MSA_REG_NUM): Likewise.
23331         (MSA_REG_P): Likewise.
23332         (MSA_REG_RTX_P): Likewise.
23333         (MSA_SUPPORTED_MODE_P): Likewise.
23334         (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
23335         (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
23336         * config/mips/mips.md: Include mips-msa.md.
23337         (alu_type): Add simd_add.
23338         (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
23339         (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
23340         simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
23341         simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
23342         simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
23343         simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
23344         simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
23345         simd_move, simd_load, simd_store.  Choose "multi" for moves
23346         for "qword_mode".
23347         (qword_mode): New attribute.
23348         (insn_count): Add instruction count for quad moves.
23349         Increase the count for MIPS SIMD division.
23350         (UNITMODE): Add UNITMODEs for vector types.
23351         (addsub): New code iterator.
23352         * config/mips/mips.opt (mmsa): New option.
23353         * config/mips/msa.h: New file.
23354         * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
23355         specified.
23356         * config/mips/mti-linux.h: Likewise.
23357         * config/mips/predicates.md
23358         (const_msa_branch_operand): New constraint.
23359         (const_uimm3_operand): Likewise.
23360         (const_uimm4_operand): Likewise.
23361         (const_uimm5_operand): Likewise.
23362         (const_uimm8_operand): Likewise.
23363         (const_imm5_operand): Likewise.
23364         (aq10b_operand): Likewise.
23365         (aq10h_operand): Likewise.
23366         (aq10w_operand): Likewise.
23367         (aq10d_operand): Likewise.
23368         (const_m1_operand): Likewise.
23369         (reg_or_m1_operand): Likewise.
23370         (const_exp_2_operand): Likewise.
23371         (const_exp_4_operand): Likewise.
23372         (const_exp_8_operand): Likewise.
23373         (const_exp_16_operand): Likewise.
23374         (const_vector_same_val_operand): Likewise.
23375         (const_vector_same_simm5_operand): Likewise.
23376         (const_vector_same_uimm5_operand): Likewise.
23377         (const_vector_same_uimm6_operand): Likewise.
23378         (const_vector_same_uimm8_operand): Likewise.
23379         (par_const_vector_shf_set_operand): Likewise.
23380         (reg_or_vector_same_val_operand): Likewise.
23381         (reg_or_vector_same_simm5_operand): Likewise.
23382         (reg_or_vector_same_uimm6_operand): Likewise.
23383         * doc/extend.texi (MIPS SIMD Architecture Functions): New
23384         section.
23385         * doc/invoke.texi (-mmsa): Document new option.
23387 2016-05-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23389         * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
23390         * configure: Regenerate.
23391         * config.in: Regenerate.
23392         * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
23393         on -fvtable-verify.
23394         * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
23395         (ENDFILE_VTV_SPEC): Define.
23397 2016-05-09  Kaushik Phatak  <kaushik.phatak@kpit.com>
23399         * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
23400         registers in all interrupt handlers if necessary.
23401         (rl78_option_override): Add warning.
23402         (MUST_SAVE_MDUC_REGISTERS): New macro.
23403         (rl78_expand_epilogue): Restore the MDUC registers if necessary.
23404         * config/rl78/rl78.c (check_mduc_usage): New function.
23405         (mduc_regs): New structure to hold MDUC register data.
23406         * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
23407         (mulsi3_g13): Add is_g13_muldiv_insn attribute.
23408         (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
23409         (mulhi3_g13): Add is_g13_muldiv_insn attribute.
23410         * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
23411         * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
23413 2016-05-09  Bin Cheng  <bin.cheng@arm.com>
23415         * tree-if-conv.c (tree-ssa-loop.h): Include header file.
23416         (tree-ssa-loop-niter.h): Ditto.
23417         (idx_within_array_bound, ref_within_array_bound): New functions.
23418         (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
23419         Factor out check on writable base object to ...
23420         (base_object_writable): ... here.
23422 2016-05-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23424         * config/arm/arm.md (probe_stack): Add modes to set source
23425         and destination.
23427 2016-05-09  Bernd Schmidt  <bschmidt@redhat.com>
23429         * regrename.c (base_reg_class_for_rename): New static function.
23430         (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
23432 2016-05-08  Jan Hubicka  <hubicka@ucw.cz>
23434         * cgraph.c (thunk_adjust): Export.
23435         * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
23436         * cgraphunit.c (thunk_adjust): Export.
23437         (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
23438         thunks.
23439         * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
23440         inlinable.
23441         * tree-inline.c (expand_call_inline): Expand thunks inline.
23443 2016-05-08  Uros Bizjak  <ubizjak@gmail.com>
23445         PR target/70998
23446         * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
23447         (*sse2_vd_cvtss2sd): Ditto.
23448         * config/i386/i386.md
23449         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
23450         Generate *sse2_vd_cvtsd2ss pattern.
23451         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
23452         Generate *sse2_vd_cvtss2sd pattern.
23454 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
23456         * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
23457         * config/sh/sh.c (get_sh_arg_class): ... this new function.  Update its
23458         users.
23460 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
23462         * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
23463         * config/sh/sh.c: Define and declare variables on first use throughout
23464         the file.
23465         (current_function_interrupt): Change to bool type.
23466         (frame_insn): Rename to emit_frame_insn and update users.
23467         (push_regs): Use bool for 'interrupt_handler' argument.
23468         (save_schedule_s): Remove.
23469         (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
23470         (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
23471         targetm.asm_out.unaligned_op.di.
23472         (gen_far_branch): Remove redundant forward declaration.
23473         (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
23474         MAX_TEMPS, save_schedule_ssave_schedule): Remove.
23475         (sh_set_return_address, sh_function_ok_for_sibcall,
23476         scavenge_reg): Update comments.
23477         (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
23478         (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
23479         (sh_attr_renesas_p): Remove unnecessary parentheses.
23480         (branch_dest): Simplify.
23481         * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
23482         Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
23483         (CUMULATIVE_ARGS): Change macro to typedef.
23484         (current_function_interrupt): Change to bool type.
23485         (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
23486         Surround with __cplusplus ifdef.
23487         (sh_compare_op0, sh_compare_op1): Remove.
23488         (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
23490 2016-05-07  Jim Wilson  <jim.wilson@linaro.org>
23492         * config/arm/arm.md (arch): Add neon.
23493         (arch_enabled): Return yes for arch neon when TARGET_NEON.
23494         * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3.  Add
23495         neon_move as type for alt 3.  Add arch attr enabling alt 3 for neon.
23496         Emit vmov.i64 for alt 3.  Renumber alternatives 3 to 8.  Adjust
23497         attributes for alt renumbering.  Mark alt 3 as non-predicable.
23498         (thumb2_movdf_vfp): Likewise.
23500 2016-05-07  Uros Bizjak  <ubizjak@gmail.com>
23502         * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
23503         to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
23504         (*andqi_1): Add preferred_for_speed attribute to disparage
23505         alternative 2 for TARGET_PARTIAL_REG_STALL targets.
23506         (*<code>qi_1): Ditto.
23507         (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
23508         alternative 1 for TARGET_PARTIAL_REG_STALL targets.
23509         (*ashlqi3_1): Ditto.
23510         (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
23511         Add preferred_for_size attribute to disparage alternative 0 and
23512         preferred_for_speed attribute to disparage alternative 1 for
23513         TARGET_PARTIAL_REG_STALL targets.
23515 2016-05-07  Tom de Vries  <tom@codesourcery.com>
23517         PR tree-optimization/70956
23518         * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
23519         def.
23521 2016-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
23523         * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
23524         * config/sh/sh.c (sh_cbranch_distance): Implement it.
23525         * config/sh/sh.md (branch_zero): Remove define_attr.
23526         (define_delay): Disable delay slot if branch distance is one insn.
23528 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
23530         * config/i386/i386.md (LEAMODE): New mode attribute.
23531         (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
23532         (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
23533         and LEAMODE mode attribute.  Use VOIDmode const_0_to_3_operand as
23534         operand 2 predicate.
23535         (*lea<mode>_general_2): Use VOIDmode for const248_operand.
23536         (*lea<mode>_general_3): Ditto.
23537         (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
23539 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
23541         * genmddump.c (main): Convert argv from char ** to const char **.
23543 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
23545         * coretypes.h (OVERRIDE): New macro.
23546         (FINAL): New macro.
23548 2016-05-06  Eric Botcazou  <ebotcazou@adacore.com>
23550         * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
23551         allow coalescing if the types are compatible.
23553 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
23555         * pass_manager.h (pass_manager::register_pass_name): New method.
23556         (pass_manager::get_pass_by_name): New method.
23557         (pass_manager::create_pass_tab): New method.
23558         (pass_manager::m_name_to_pass_map): New field.
23559         * passes.c (name_to_pass_map): Delete global in favor of field
23560         "m_name_to_pass_map" of pass_manager.
23561         (register_pass_name): Rename from a function to...
23562         (pass_manager::register_pass_name): ...this method, updating
23563         for renaming of global "name_to_pass_map" to field
23564         "m_name_to_pass_map".
23565         (create_pass_tab): Rename from a function to...
23566         (pass_manager::create_pass_tab): ...this method, updating
23567         for renaming of global "name_to_pass_map" to field.
23568         (get_pass_by_name): Rename from a function to...
23569         (pass_manager::get_pass_by_name): ...this method.
23570         (enable_disable_pass): Convert use of get_pass_by_name to
23571         a method call, locating the pass_manager singleton.
23573 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
23575         * genattr-common.c (main): Convert argv from char ** to const char **.
23576         * genattr.c (main): Likewise.
23577         * genattrtab.c (main): Likewise.
23578         * genautomata.c (initiate_automaton_gen): Likewise.
23579         (main): Likewise.
23580         * gencodes.c (main): Likewise.
23581         * genconditions.c (main): Likewise.
23582         * genconfig.c (main): Likewise.
23583         * genconstants.c (main): Likewise.
23584         * genemit.c (main): Likewise.
23585         * genenums.c (main): Likewise.
23586         * genextract.c (main): Likewise.
23587         * genflags.c (main): Likewise.
23588         * genmddeps.c (main): Likewise.
23589         * genopinit.c (main): Likewise.
23590         * genoutput.c (main): Likewise.
23591         * genpeep.c (main): Likewise.
23592         * genpreds.c (main): Likewise.
23593         * genrecog.c (main): Likewise.
23594         * gensupport.c (init_rtx_reader_args_cb): Likewise.
23595         (init_rtx_reader_args): Likewise.
23596         * gensupport.h (init_rtx_reader_args_cb): Likewise.
23597         (init_rtx_reader_args): Likewise.
23598         * gentarget-def.c (main): Likewise.
23599         * read-md.c (read_md_files): Likewise.
23600         * read-md.h (read_md_files): Likewise.
23602 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
23604         * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
23605         instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
23606         * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
23607         Remove unused predicate.
23608         (register_and_not_fp_reg_operand): Ditto.
23610 2016-05-06  Martin Liska  <mliska@suse.cz>
23612         * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
23613         instead of vec as the vector is local to the function.
23615 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
23617         * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
23618         avx512bw alternative.
23620         * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
23621         before the ashr<mode>3 pattern.
23623         * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
23624         v instead of x in vex or maybe_vex alternatives, use
23625         maybe_evex instead of vex in prefix.
23627         * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
23628         *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
23629         vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
23630         in vex or maybe_vex alternatives, use maybe_evex instead of vex
23631         in prefix.
23633         * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
23634         v instead of x in vex or maybe_vex alternatives, use
23635         maybe_evex instead of vex in prefix.
23637         * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
23638         sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
23639         sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
23640         sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
23641         alternatives, use maybe_evex instead of vex in prefix.
23643         * config/i386/sse.md (vec_interleave_lowv4sf,
23644         *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
23645         v instead of x in vex or maybe_vex alternatives, use
23646         maybe_evex instead of vex in prefix.
23648         * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
23649         v instead of x in vex or maybe_vex alternatives, use
23650         maybe_evex instead of vex in prefix.
23652         * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
23653         v constraint instead of x.
23655 2016-05-06  Nathan Sidwell  <nathan@codesourcery.com>
23657         * gimple.c (gimple_call_same_target_p): Unique functions are eq.
23658         * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
23659         equality first.
23661 2016-05-06  Richard Biener  <rguenther@suse.de>
23663         PR tree-optimization/70948
23664         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
23665         Properly clobber all fields of va_list for __builtin_va_start.
23667 2016-05-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
23669         PR debug/70935
23670         * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
23671         loop latch destination.
23673 2016-05-06  Martin Liska  <mliska@suse.cz>
23675         * tree-ssa-uninit.c: Apply manual changes
23676         to the GNU coding style.
23677         (prune_uninit_phi_opnds): Rename from
23678         prune_uninit_phi_opnds_in_unrealizable_paths.
23680 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
23682         * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
23683         mspace): Remove deprecated options.
23684         * doc/invoke.texi (SH options): Remove -mspace.
23686 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
23688         * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
23690 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
23692         * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
23693         corresponding combine split pattern.
23695 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
23697         PR target/58219
23698         * config/sh/predicates.md (long_displacement_mem_operand): New.
23699         * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
23700         Add movi20, movi20s alternatives.  Adjust length attribute for
23701         alternatives.
23702         (movsi_ie): Allow for any FPU.  Adjust length attribute for
23703         alternatives.
23704         (movsi_i_lowpart): Add movi20, movi20s alternatives.  Adjust length
23705         attribute for alternatives.
23706         (*mov<mode>): Use long_displacement_mem_operand for length attribute.
23707         (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
23708         length attribute for alternatives.
23710 2016-05-06  Richard Biener  <rguenther@suse.de>
23712         PR tree-optimization/70960
23713         * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
23715 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
23717         PR target/52933
23718         * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
23719         * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
23721 2016-05-06  Marek Polacek  <polacek@redhat.com>
23723         PR sanitizer/70875
23724         * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
23726 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
23728         PR target/54089
23729         * config/sh/sh.md (*rotcr): Add another variant.
23731 2016-05-06  Richard Biener  <rguenther@suse.de>
23733         PR middle-end/70931
23734         * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
23736 2016-05-06  Richard Biener  <rguenther@suse.de>
23738         PR middle-end/70941
23739         * fold-const.c (split_tree): Always convert to the original type
23740         before negating.
23742 2016-05-06  Richard Biener  <rguenther@suse.de>
23744         * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
23745         (fwprop_addr): Likewise.
23747 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
23749         PR target/70873
23750         * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
23751         New prototype.
23752         * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
23753         * config/i386/i386.md (push mem splitter): Use find_constant_src in
23754         the splitter condition.
23755         (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
23756         the splitter condition.
23757         (FP float_extend load splitter): Ditto.
23759 2016-05-05  Uros Bizjak  <ubizjak@gmail.com>
23761         * config/i386/i386.md (peehole2 patterns): Change true_regnum
23762         to REGNO in all peephole2 patterns.
23763         (post-reload splitters): Change true_regnum to REGNO in
23764         post-reload splitters.
23765         (zero_extend splitters): Use general_reg_operand and
23766         nonimmediate_gr_operand predicates.
23768 2016-05-05  Jakub Jelinek  <jakub@redhat.com>
23770         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
23771         v constraint instead of x.
23773 2016-05-05  Alan Modra  <amodra@gmail.com>
23775         PR target/68662
23776         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
23777         set OPTION_MASK_RELOCATABLE when flag_pic == 2.  Set
23778         TARGET_NO_FP_IN_TOC for -mrelocatable.
23779         (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
23780         TARGET_RELOCATABLE test.
23781         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
23782         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
23783         * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
23784         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
23785         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
23786         * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
23787         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
23788         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
23789         * config/rs6000/predicates.md (easy_fp_constant): Likewise.
23790         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
23791         Likewise.
23792         (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
23793         (rs6000_stack_info): Likewise.
23794         (rs6000_elf_asm_out_constructor): Likewise.
23795         (rs6000_elf_asm_out_destructor): Likewise.
23796         (rs6000_elf_declare_function_name): Likewise.
23797         * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
23798         * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
23799         Don't define.
23801 2016-05-05  Alan Modra  <amodra@gmail.com>
23803         * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
23805 2016-05-05  Alan Modra  <amodra@gmail.com>
23807         * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
23808         out-of-line gpr restore for one or two regs if that would add
23809         a save of lr.
23811 2016-05-04  Uros Bizjak  <ubizjak@gmail.com>
23813         PR target/70873
23814         * config/i386/i386.md
23815         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
23816         Change to post-epilogue_completed late splitter.  Use sse_reg_operand
23817         as operand 0 predicate.
23818         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
23819         Ditto.
23820         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
23821         Ditto.  Emit the pattern using RTX.
23823         (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
23824         Use sse_reg_opreand as operand 0 predicate.  Do not use true_regnum in
23825         the post-reload splitter.  Use lowpart_subreg instead of gen_rtx_REG.
23826         (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
23827         Ditto.
23828         (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
23829         sse_reg_operand as operand 0 predicate.
23831         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
23832         Use sse_reg_opreand as operand 0 predicate.  Use lowpart_subreg
23833         instead of gen_rtx_REG.
23834         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
23835         Ditto.
23837 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
23839         * function.c (emit_use_return_register_into_block): Delete.
23840         (gen_return_pattern): Delete.
23841         (emit_return_into_block): Delete.
23842         (active_insn_between): Delete.
23843         (convert_jumps_to_returns): Delete.
23844         (emit_return_for_exit): Delete.
23845         (thread_prologue_and_epilogue_insns): Delete all code dealing with
23846         simple_return for shrink-wrapped blocks.
23847         * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
23848         end of blocks that need one.
23849         (get_unconverted_simple_return): Delete.
23850         (convert_to_simple_return): Delete.
23851         * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
23852         (convert_to_simple_return): Ditto.
23854 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
23856         * cfgcleanup.c (bb_is_just_return): New function.
23857         (try_optimize_cfg): Simplify jumps to return, branches to return,
23858         and branches around return.
23860 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
23862         * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
23863         branch to a return.
23865 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
23867         PR c++/70906
23868         PR c++/70933
23869         * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
23870         * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
23871         assert flags & OEP_HASH_CHECK, instead of asserting it
23872         never happens.  Handle TARGET_EXPR.
23873         * fold-const.c (operand_equal_p): For hash verification,
23874         or in OEP_HASH_CHECK into flags.
23876 2016-05-04  Eric Botcazou  <ebotcazou@adacore.com>
23878         * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
23879         comment.
23880         (compute_samebase_partition_bases): Fix typo.
23882 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
23884         * config/i386/sse.md (vec_interleave_highv8sf,
23885         vec_interleave_lowv8sf, vec_interleave_highv4df,
23886         vec_interleave_lowv4df): Remove constraints from expanders.
23888         * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
23890 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
23892         * tree-inline.c (expand_call_inline): Fix path dealing with
23893         making lhs of call statement undefined.
23895 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
23897         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
23898         Check availability on NODE, too.
23899         * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
23900         (cgraph_node::call_for_symbol_and_aliases): Likewise.
23901         (varpool_node::call_for_symbol_and_aliase): Likewise.
23902         * ipa-pure-const.c (add_new_function): Analyze all bodies.
23903         (propagate_pure_const): Propagate across interposable functions, too.
23904         (skip_function_for_local_pure_const): Do not skip interposable bodies
23905         with aliases.
23906         (pass_local_pure_const::execute): Update.
23908 2016-05-04  Marek Polacek  <polacek@redhat.com>
23910         * doc/invoke.texi: Document -Wdangling-else.
23912 2016-05-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
23914         * config.gcc: Error out when conflicting multilib is detected.  Do not
23915         loop over multilibs since no combination is legal.
23917 2016-05-04  Alan Modra  <amodra@gmail.com>
23919         * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
23920         * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
23921         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
23922         Align .toc.
23924 2016-05-04  Matthew Fortune  <matthew.fortune@imgtec.com>
23926         * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
23927         Clean up p5600 comments.
23929 2016-05-04  Richard Biener  <rguenther@suse.de>
23931         * match.pd: Add BIT_FIELD_REF canonicalizations and vector
23932         constructor simplifications.
23933         * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
23935 2016-05-04  Oleg Endo  <olegendo@gcc.gnu.org>
23937         * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
23938         * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
23939         result.set_rtx is null instead of aborting.
23940         * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
23941         Always enable.
23942         (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
23943         * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
23944         *mov<mode>_store_postinc): New patterns.
23946 2016-05-04  Marc Glisse  <marc.glisse@inria.fr>
23948         * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR.  Mark
23949         as commutative.  Check both conversions are NOP.
23950         ((A & B) OP (C & B)): Remove.
23952 2016-05-04  Alan Modra  <amodra@gmail.com>
23954         * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
23956 2016-05-04  Alan Modra  <amodra@gmail.com>
23958         PR target/70866
23959         * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
23960         when cr2,3,4 are all fixed regs.
23962 2016-05-04  Bernd Schmidt  <bschmidt@redhat.com>
23964         PR rtl-optimization/57193
23965         * opts.c (default_options_table): Revert OPT_frename_registers change.
23966         * doc/invoke.texi (-frename-registers, -O2): Likewise.
23968 2016-05-03  Martin Sebor  <msebor@redhat.com>
23970         PR c++/66561
23971         * builtins.c (fold_builtin_FILE): New function.
23972         (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
23973         (fold_builtin_0): Call them.
23974         * gimplify.c (gimplify_call_expr): Remove the handling of
23975         BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
23977         PR c++/66561
23978         * doc/extend.texi (Other Builtins): Update __builtin_FILE,
23979         __builtin_FUNCTION, and __builtin_LINE to reflect they yield
23980         constants.
23982         PR c++/66639
23983         * doc/extend.texi (Function Names as Strings): Update __func__,
23984         __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
23985         constants.
23987 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
23988             Richard Biener  <rguenther@suse.de>
23990         PR tree-optimization/70916
23991         * tree-if-conv.c: Include cfganal.h.
23992         (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
23993         and remove_fake_exit_edges around the optimization pass.
23995 2016-05-03  Jan Hubicka  <hubicka@ucw.cz>
23997         * cgraph.c (symbol_table::create_edge): Set inline_failed.
23998         (cgraph_edge::make_direct): Likewise.
23999         (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
24000         * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
24001         * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
24002         (CIF_THUNK): New code.
24003         * ipa-inline-analysis.c (initialize_inline_failed): Preserve
24004         CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
24005         (compute_inline_parameters): Set inline_failed for thunks.
24006         (inline_analyze_function): Cleanup.
24007         * ipa-inline.c (can_inline_edge_p): Do not deal with
24008         call_stmt_cannot_inline_p.
24009         (can_early_inline_edge_p): Likewise.
24010         (early_inliner): Initialize inline_failed.
24011         * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
24013 2016-05-03  Uros Bizjak  <ubizjak@gmail.com>
24015         * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
24016         from nonimm_ssenomem_operand.
24017         (nonimm_ssenomem_operand): New predicate.
24018         * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
24019         as operand 0 predicate.
24020         (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
24021         Disable unsupported alternatives using "enabled" attribute.
24022         Use register_ssemem_operand as operand 0 predicate.
24023         (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
24025 2016-05-03  Marek Polacek  <polacek@redhat.com>
24027         PR c/70859
24028         * input.c (expansion_point_location): New function.
24029         * input.h (expansion_point_location): Declare.
24031 2016-05-03  Pierre-Marie de Rodat  <derodat@adacore.com>
24033         * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
24034         occurence with frame_offset_ ones.
24036 2016-05-03  Alan Modra  <amodra@gmail.com>
24038         PR rtl-optimization/70890
24039         * ira.c (combine_and_move_insns): When moving def_insn, remove
24040         equivs on use_insn.
24042 2016-05-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>
24044         * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
24045         ("*r<noxa>sbg_<mode>_srl"): New define_insns.
24046         ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
24047         ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
24049 2016-05-03  Alan Modra  <amodra@gmail.com>
24051         * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
24052         for SAVE_MULTIPLE/STORE_MULTIPLE.
24054 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
24056         * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
24057         *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
24059 2016-05-03  Richard Biener  <rguenther@suse.de>
24061         * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
24062         default true.
24063         (gimplify_arg): Likewise.
24064         * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
24065         re-writing the result to a decl if required.
24066         (internal_get_tmp_var): Add allow_ssa parameter
24067         and override into_ssa with it.
24068         (get_formal_tmp_var): Adjust.
24069         (get_initialized_tmp_var): Add allow_ssa parameter.
24070         (gimplify_arg): Add allow_ssa parameter and avoid generating
24071         SSA names for the result false.
24072         (gimplify_call_expr): If the call may return twice do not
24073         gimplify parameters into SSA.
24074         (prepare_gimple_addressable): Do not allow an SSA name as temporary.
24075         (gimplify_modify_expr): Adjust assert.  For noreturn calls
24076         with a SSA name LHS adjust its def.
24077         (gimplify_save_expr): Do not allow an SSA name as save-expr result.
24078         (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
24079         (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
24080         (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
24081         an SSA name.  Likewise for OMP_CLAUSE_REDUCTION operands.
24082         (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL.  Likewise
24083         for OMP_FOR_COND,  OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
24084         (optimize_target_teams): Do not allow SSA names for clause operands.
24085         (gimplify_expr): Likewise for where we mark the result addressable.
24086         * passes.def (pass_init_datastructures): Remove.
24087         * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
24088         (rewrite_stmt): Likewise.
24089         * tree-inline.c (initialize_cfun): Properly transfer SSA state.
24090         (replace_locals_op): Replace SSA names.
24091         (copy_gimple_seq_and_replace_locals): Init src_cfun.
24092         * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
24093         * cgraph.c (release_function_body): Free CFG annotations only
24094         when we have a CFG.  Simplify.
24095         * gimple-fold.c (gimplify_and_update_call_from_tree): Use
24096         force_gimple_operand instead of get_initialized_tmp_var.
24097         * tree-pass.h (make_pass_init_datastructures): Remove.
24098         * tree-ssa.c (execute_init_datastructures): Remove.
24099         (pass_data_init_datastructures): Likewise.
24100         (class pass_init_datastructures): Likewise.
24101         (make_pass_init_datastructures): Likewise.
24102         * omp-low.c (create_omp_child_function): Init SSA data structures.
24103         (grid_expand_target_grid_body): Likewise.
24104         * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
24105         name before adding it to names_to_release.
24106         (remove_bb): Always release SSA defs.
24107         * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
24108         before dereferencing it.
24109         * cgraphunit.c (init_lowered_empty_function): Always
24110         int SSA data structures.
24111         * tree-ssanames.c (release_defs): Remove assert that we are in
24112         SSA form.
24113         * trans-mem.c (diagnose_tm_1): Handle SSA name function.
24115 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
24116             Uros Bizjak  <ubizjak@gmail.com>
24118         PR rtl-optimization/70467
24119         * config/i386/predicates.md (x86_64_hilo_int_operand,
24120         x86_64_hilo_general_operand): New predicates.
24121         * config/i386/constraints.md (Wd): New constraint.
24122         * config/i386/i386.md (mode attr di): Use Wd instead of e.
24123         (general_hilo_operand): New mode attr.
24124         (add<mode>3, sub<mode>3): Use <general_hilo_operand>
24125         instead of <general_operand>.
24126         (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
24127         x86_64_hilo_general_operand instead of <general_operand>.
24129 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
24131         PR tree-optimization/70916
24132         * tree-if-conv.c (constant_or_ssa_name): Removed.
24133         (fold_build_cond_expr): Use is_gimple_val instead of
24134         constant_or_ssa_name.
24136         PR tree-optimization/70916
24137         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
24138         if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
24140         PR target/49244
24141         * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
24142         (optimize_atomic_bit_test_and): New function.
24143         (pass_fold_builtins::execute): Use it.
24144         * optabs.def (atomic_bit_test_and_set_optab,
24145         atomic_bit_test_and_complement_optab,
24146         atomic_bit_test_and_reset_optab): New optabs.
24147         * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
24148         ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
24149         * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
24150         * builtins.c (expand_ifn_atomic_bit_test_and): New function.
24151         * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
24152         expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
24153         expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
24154         * doc/md.texi (atomic_bit_test_and_set@var{mode},
24155         atomic_bit_test_and_complement@var{mode},
24156         atomic_bit_test_and_reset@var{mode}): Document.
24157         * config/i386/sync.md (atomic_bit_test_and_set<mode>,
24158         atomic_bit_test_and_complement<mode>,
24159         atomic_bit_test_and_reset<mode>): New expanders.
24160         (atomic_bit_test_and_set<mode>_1,
24161         atomic_bit_test_and_complement<mode>_1,
24162         atomic_bit_test_and_reset<mode>_1): New insns.
24164 2016-05-03  Richard Sandiford  <richard.sandiford@arm.com>
24166         PR rtl-optimization/70687
24167         * combine.c (change_zero_ext): Check for scalar modes.  Use wide_int
24168         instead of unsigned HOST_WIDE_INT.
24170 2016-05-03  Bernd Schmidt  <bschmidt@redhat.com>
24172         PR rtl-optimization/44281
24173         * hard-reg-set.h (struct target_hard_regs): New field
24174         x_fixed_nonglobal_reg_set.
24175         (fixed_nonglobal_reg_set): New macro.
24176         * reginfo.c (init_reg_sets_1): Initialize it.
24177         * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
24178         of fixed_reg_set.
24179         * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
24181 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
24183         PR tree-optimization/56541
24184         * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
24185         * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
24186         * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
24187         (any_complicated_phi): new static variable.
24188         (aggressive_if_conv): delete.
24189         (if_convertible_phi_p): support phis with more than two arguments.
24190         (if_convertible_bb_p): remvoe check on aggressive_if_conv and
24191         critical pred edges.
24192         (ifcvt_split_critical_edges): support phis with more than two
24193         arguments by checking new parameter.  only split critical edges
24194         if needed.
24195         (tree_if_conversion): handle simd pragma marked loop using new
24196         local variable aggressive_if_conv.  check any_complicated_phi.
24198 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
24200         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
24201         before using it.
24203 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
24205         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
24206         cbase.
24208 2016-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
24210         * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
24211         (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
24212         define_insn_and_split.
24213         (mulsi3_i): New define_insn_and_split.
24214         (mulsi3_call): Convert to define_insn.
24215         (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
24216         Remove constraints.
24218 2016-05-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
24220         * machmode.h (mode_complex): Add support to give the complex mode
24221         for a given mode.
24222         (GET_MODE_COMPLEX_MODE): Likewise.
24223         * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
24224         stored by build_complex_type and gfc_build_complex_type instead of
24225         trying to figure out the appropriate mode based on the size. Raise
24226         an assertion error, if the type was not set.
24227         * genmodes.c (struct mode_data): Add field for the complex type of
24228         the given type.
24229         (blank_mode): Likewise.
24230         (make_complex_modes): Remember the complex mode created in the
24231         base type.
24232         (emit_mode_complex): Write out the mode_complex array to map a
24233         type mode to the complex version.
24234         (emit_insn_modes_c): Likewise.
24235         * tree.c (build_complex_type): Set the complex type to use before
24236         calling layout_type.
24237         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
24238         support for __float128 complex datatypes.
24239         (rs6000_hard_regno_mode_ok): Likewise.
24240         (rs6000_setup_reg_addr_masks): Likewise.
24241         (rs6000_complex_function_value): Likewise.
24242         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
24243         __float128 and __ibm128 complex.
24244         (FLOAT128_IBM_P): Likewise.
24245         (ALTIVEC_ARG_MAX_RETURN): Likewise.
24246         * doc/extend.texi (Additional Floating Types): Document that
24247         -mfloat128 must be used to enable __float128.  Document complex
24248         __float128 and __ibm128 support.
24250 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
24252         PR target/49244
24253         * gimple.c (gimple_builtin_call_types_compatible_p): Allow
24254         char/short arguments promoted to int because of promote_prototypes.
24256 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
24258         * config/i386/predicates.md (register_ssemem_operand): New predicate.
24259         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
24260         *cmpi<FPCMP:unord><MODEF:mode>_mixed and
24261         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.  Disable unsupported
24262         alternatives using "enabled" attribute.  Use register_ssemem_operand
24263         as operand 1 predicate.
24264         (*cmpi<unord>xf_i387): Split XFmode pattern from
24265         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
24266         (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
24267         *absneg<mode>2_i387.  Disable unsupported alternatives using
24268         "enabled" attribute.
24269         (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
24271 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
24273         * omp-low.c (lower_oacc_head_tail): Assert there is at least one
24274         marker.
24275         (oacc_loop_process): Check mask for loop termination.
24277 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
24279         * cif-code.def (CIF_THUNK): Add.
24280         * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
24281         accidental change.
24283 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
24285         * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
24286         (dump_inline_summary): Dump it.
24287         (fp_expression_p): New predicate.
24288         (estimate_function_body_sizes): Use it.
24289         (inline_merge_summary): Merge fp_expressions.
24290         (inline_read_section): Read fp_expressions.
24291         (inline_write_summary): Write fp_expressions.
24292         * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
24293         codegen boundary if either caller or callee is !fp_expressions.
24294         * ipa-inline.h (inline_summary): Add fp_expressions.
24295         * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
24296         to fp_expressions be sure the fp generation flags are updated.
24298 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
24300         PR rtl-optimization/70467
24301         * cse.c (cse_insn): Handle no-op MEM moves after folding.
24303         PR rtl-optimization/70467
24304         * ipa-pure-const.c (check_call): Handle internal calls even in
24305         ipa mode like in local mode.
24307 2016-05-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
24309         * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
24311 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
24313         * match.pd (X u< X, X u> X): New transformations.
24315 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
24317         * flag-types.h (enum warn_strict_overflow_code): Move ...
24318         * coretypes.h: ... here.
24319         * fold-const.h (fold_overflow_warning): Declare.
24320         * fold-const.c (fold_overflow_warning): Make non-static.
24321         (fold_comparison): Move the transformation of X +- C1 CMP C2
24322         into X CMP C2 -+ C1 ...
24323         * match.pd: ... here.
24324         * gimple-fold.c (fold_stmt_1): Protect with
24325         fold_defer_overflow_warnings.
24327 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
24329         * omp-low.c (struct oacc_loop): Add 'inner' field.
24330         (new_oacc_loop_raw): Initialize it to zero.
24331         (oacc_loop_fixed_partitions): Initialize it.
24332         (oacc_loop_auto_partitions): Partition outermost loop to outermost
24333         available partitioning.
24335 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
24337         * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
24338         register_operand.
24339         (umulsidi3): Likewise.
24340         (indirect_jump): Fix jump instruction assembly patterns.
24342 2016-05-02  Thomas Schwinge  <thomas@codesourcery.com>
24344         PR target/70860
24345         * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
24346         (nvptx_function_value): Assert non-NULL cfun.
24348 2016-05-02  Eric Botcazou  <ebotcazou@adacore.com>
24350         PR rtl-optimization/70886
24351         * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
24353         * cselib.h (rtx_equal_for_cselib_1): Declare.
24354         (rtx_equal_for_cselib_p: New inline function.
24355         * cselib.c (rtx_equal_for_cselib_p): Delete.
24356         (rtx_equal_for_cselib_1): Make public.
24358 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
24360         * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
24361         (register_mixssei387nonimm_operand): Remove predicate.
24362         * config/i386/i386.md (*fop_<mode>_comm): Merge from
24363         *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387.  Disable unsupported
24364         alternatives using "enabled" attribute.  Also check X87_ENABLE_ARITH
24365         for TARGET_MIX_SSE_I387 alternatives.
24366         (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
24367         Disable unsupported alternatives using "enabled" attribute.  Use
24368         nonimm_ssenomem_operand as operand 1 predicate.  Also check
24369         X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
24371 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
24373         * tree.c (cst_and_fits_in_hwi): Simplify.
24375 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
24377         * tree.h (wi::to_wide): New function.
24378         * expr.c (expand_expr_real_1): Use wi::to_wide.
24379         * fold-const.c (int_const_binop_1): Likewise.
24380         (extract_muldiv_1): Likewise.
24382 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
24384         * wide-int.h: Update offset_int and widest_int documentation.
24385         (WI_SIGNED_SHIFT_RESULT): New macro.
24386         (wi::binary_shift): Define signed_shift_result_type for
24387         shifts on offset_int- and widest_int-like types.
24388         (generic_wide_int): Support <<= and >>= if << and >> are supported.
24389         * tree.h (int_bit_position): Use shift operators instead of wi::
24390          shifts.
24391         * alias.c (adjust_offset_for_component_ref): Likewise.
24392         * expr.c (get_inner_reference): Likewise.
24393         * fold-const.c (fold_comparison): Likewise.
24394         * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
24395         * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
24396         * tree-dfa.c (get_ref_base_and_extent): Likewise.
24397         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
24398         (stmt_kills_ref_p): Likewise.
24399         * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
24400         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
24401         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
24402         (ao_ref_init_from_vn_reference): Likewise.
24404 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
24406         * wide-int.h: Update offset_int and widest_int documentation.
24407         (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
24408         (wi::binary_traits): Allow ordered comparisons between offset_int and
24409         offset_int, between widest_int and widest_int, and between either
24410         of these types and basic C types.
24411         (operator <, <=, >, >=): Define for the same combinations.
24412         * tree.h (tree_int_cst_lt): Use comparison operators instead
24413         of wi:: comparisons.
24414         (tree_int_cst_le): Likewise.
24415         * gimple-fold.c (fold_array_ctor_reference): Likewise.
24416         (fold_nonarray_ctor_reference): Likewise.
24417         * gimple-ssa-strength-reduction.c (record_increment): Likewise.
24418         * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
24419         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
24420         * tree-sra.c (completely_scalarize): Likewise.
24421         * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
24422         * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
24423         * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
24424         (check_for_binary_op_overflow): Likewise.
24425         (search_for_addr_array): Likewise.
24426         * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
24428 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
24430         * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
24431         (arc_save_restore): Likewise.
24432         (arc_dwarf_register_span): Likewise.
24433         (arc_output_pic_addr_const): Initialize suffix variable.
24435 2016-05-02  Martin Liska  <mliska@suse.cz>
24437         * symbol-summary.h (function_summary::function_summary):
24438         Remove checking assert for all cgraph nodes.
24439         (function_summary::get): Check summary_uid.
24440         (symtab_insertion): Check summary_uid.
24442 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
24444         * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
24445         * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
24446         bmaskn instruction.
24447         (arc_dwarf_register_span): Remove enum keyword.
24448         (compact_memory_operand_p): New function.
24449         * config/arc/arc.h (reg_class): Add code density register classes.
24450         (REG_CLASS_NAMES): Likewise.
24451         (REG_CLASS_CONTENTS): Likewise.
24452         * config/arc/arc.md (*movqi_insn): Add code density instructions.
24453         (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
24454         (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
24455         (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
24456         * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
24457         constraints.
24458         (h, Rcd, Rsd, Rzd): New register constraints.
24459         (T): Use compact_memory_operand_p function.
24460         * config/arc/predicates.md (compact_load_memory_operand): Remove.
24462 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
24464         * config/sh/sh.md (*negnegt, *movtt): Remove.
24466 2016-05-02  Marek Polacek  <polacek@redhat.com>
24467             Tom de Vries  <tom@codesourcery.com>
24469         PR tree-optimization/70700
24470         * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
24471         bigger than FIRST_REF_NODE.
24473 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
24475         PR target/52898
24476         * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
24477         TARGET_CMPEQDI_T.
24478         (prepare_cbranch_operands): Don't use scratch register.  Assume that
24479         function is used when pseudos can be created.
24480         (expand_cbranchdi4): Likewise.  Remove unused TARGET_CMPEQDI_T paths.
24481         * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
24482         (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
24483         define_expand.  Allow it only when pseudos can be created.
24484         * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
24486 2016-05-01  Uros Bizjak  <ubizjak@gmail.com>
24488         * config/i386/constraints.md (BC): Only allow -1 operands.
24489         * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
24490         Add "enabled" attribute.  Update XI mode attribute calculation.
24491         * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
24492         (*movoi_internal_avx): Update XI mode attribute calculation.
24493         (*movti_internal): Ditto.
24495 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
24497         * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
24498         cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
24500 2016-05-01  Eric Botcazou  <ebotcazou@adacore.com>
24502         * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
24503         statement on instruction code.  Remove trailing spaces.
24504         (altivec_expand_stv_builtin): Likewise.
24506 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
24508         * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
24509         (TARGET_FPU_DOUBLE): Simplify.
24510         (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
24511         'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
24512         * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
24513         with 'TARGET_FPU_DOUBLE'.
24514         * config/sh/sh.md: Likewise.
24516 2016-05-01  Yoshinori Sato  <ysato@users.sourceforge.jp>
24518         * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
24519         SH_DIV_STR_FOR_SIZE): Remove.
24520         * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
24521         SH_DIV_STR_FOR_SIZE): Remove.
24523 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
24525         * config/sh/predicates.md (any_register_operand, zero_extend_operand,
24526         logical_reg_operand): Delete.
24527         (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
24528         arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
24529         logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
24530         match_operand and match_test.
24531         (sh_const_vec, sh_1el_vec): Remove redundant checks.  Declare local
24532         variables on their first use.  Return bool values.
24533         * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
24534         * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
24535         arith_reg_operand for input operand.  Remove empty constraints.
24536         (xorsi3): Delete.
24537         (*xorsi3_compact): Rename to xorsi3.
24538         (zero_extend<mode>si2): Use arith_reg_operand for input operand.
24539         (*zero_extend<mode>si2_disp_mem): Update comment.
24540         (mov_nop): Delete.
24542 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
24544         * config/sh/t-sh: Remove SH5 support.
24545         * config.gcc: Likewise.
24546         * configure: Likewise.
24548 2016-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24550         * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
24552 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
24554         * config/sh/sh.c (register_sh_passes, sh_option_override,
24555         sh_print_operand, prepare_move_operands,
24556         sh_can_follow_jump): Remove TARGET_SH1 checks.
24557         * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
24558         PROMOTE_MODE): Likewise.
24559         * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
24560         movdi): Likewise.
24562 2016-04-30  Alan Modra  <amodra@gmail.com>
24564         * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
24565         restoring when fixed_reg_p, but allow out-of-line or stmw save.
24566         Check for user regs later to avoid unnecessary looping over regs.
24567         Merge user reg check with non-saved reg check.  Don't force
24568         inline VR restore when static chain used.
24569         (rs6000_frame_related): Omit eh_frame info for user regs when
24570         saving.
24571         (fixed_regs_p): Delete.
24573 2016-04-30  Alan Modra  <amodra@gmail.com>
24575         * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
24576         (SAVE_STRATEGY, REST_STRATEGY): ..this.  Renumber and sort enum.
24577         Update all uses.
24579 2016-04-30  Alan Modra  <amodra@gmail.com>
24581         PR target/69645
24582         * config/rs6000/rs6000.c (fixed_reg_p): New function.
24583         (fixed_regs_p): Rename from global_regs_p.  Call fixed_reg_p.
24584         Update all uses.
24586 2016-04-30  Alan Modra  <amodra@gmail.com>
24588         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
24589         Remove redundant PIC_OFFSET_TABLE_REGNUM test.  Replace with
24590         flag_pic test for Darwin.
24592 2016-04-30  Alan Modra  <amodra@gmail.com>
24594         * regs.h (struct reg_info_t): Delete freq_calls_crossed and
24595         throw_calls_crossed.
24596         (REG_FREQ_CALLS_CROSSED): Delete.
24597         (REG_N_THROWING_CALLS_CROSSED): Delete.
24598         * regstat.c (regstat_bb_compute_ri): Don't calculate
24599         REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
24600         (dump_reg_info): Don't print call cross frequency.
24601         * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
24602         and REG_N_THROWING_CALLS_CROSSED.
24604 2016-04-30  Alan Modra  <amodra@gmail.com>
24606         * regs.h (struct reg_info_t): Delete live_length.
24607         (REG_LIVE_LENGTH): Delete macro.
24608         * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
24609         local_live, local_processed and local_live_last_luid params.
24610         Replace bb_index param with bb.  Don't set REG_LIVE_LENGTH.
24611         Formatting fixes.
24612         (regstat_compute_ri): Adjust for above.  Don't set
24613         REG_LIVE_LENGTH.
24614         (dump_reg_info): Don't print live length.
24615         * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
24616         with test of setjmp_crosses.  Don't set REG_LIVE_LENGTH.
24617         Localize loop_depth var.
24619 2016-04-30  Alan Modra  <amodra@gmail.com>
24621         * ira.c (enum valid_equiv): New.
24622         (validate_equiv_mem): Return enum.
24623         (update_equiv_mem): Create replacement in more cases.
24624         (add_store_equivs): Update validate_equiv_mem call.
24626 2016-04-30  Alan Modra  <amodra@gmail.com>
24628         * ira.c (combine_and_move_insns): Rather than scanning insns,
24629         use DF infrastucture to find use and def insns.
24631 2016-04-30  Alan Modra  <amodra@gmail.com>
24633         ira.c (combine_and_move_insns): Move invariant conditions..
24634         (ira.c): ..to here.  Call combine_and_move_insns before
24635         add_store_equivs.  Call grow_reg_equivs later.  Allocate
24636         req_equiv later using max_reg_num() rather than global max_regno.
24637         (contains_replace_regs): Delete.
24638         (add_store_equivs): Remove contains_replace_regs test.
24640 2016-04-30  Alan Modra  <amodra@gmail.com>
24642         * ira.c (struct equiv_mem_data): New.
24643         (equiv_mem, equiv_mem_modified): Delete static vars.
24644         (validate_equiv_mem_from_store): Use "data" param to communicate..
24645         (validate_equiv_mem): ..from here.
24647 2016-04-30  Alan Modra  <amodra@gmail.com>
24649         * ira.c (add_store_equivs, combine_and_move_insns): New functions,
24650         split out from..
24651         (update_reg_equivs): ..here.  Move allocation and freeing of
24652         reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
24653         end_alias_analysis to..
24654         (ira): ..here.
24656 2016-04-30  Alan Modra  <amodra@gmail.com>
24658         * ira.c (pdx_subregs): Delete.
24659         (struct equivalence): Add pdx_subregs field.
24660         (set_paradoxical_subreg): Remove pdx_subregs param.  Update
24661         pdx_subregs access.
24662         (update_equiv_regs): Don't create or free pdx_subregs.  Update
24663         pdx_subregs access.
24665 2016-04-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24667         * config/rs6000/altivec.h: Change definitions of vec_xl and
24668         vec_xst.
24669         * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
24670         (LD_ELEMREV_V2DI): New.
24671         (LD_ELEMREV_V4SF): New.
24672         (LD_ELEMREV_V4SI): New.
24673         (LD_ELEMREV_V8HI): New.
24674         (LD_ELEMREV_V16QI): New.
24675         (ST_ELEMREV_V2DF): New.
24676         (ST_ELEMREV_V2DI): New.
24677         (ST_ELEMREV_V4SF): New.
24678         (ST_ELEMREV_V4SI): New.
24679         (ST_ELEMREV_V8HI): New.
24680         (ST_ELEMREV_V16QI): New.
24681         (XL): New.
24682         (XST): New.
24683         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
24684         descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
24685         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
24686         TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
24687         (altivec_expand_builtin): Add handling for
24688         VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
24689         (rs6000_invalid_builtin): Add error-checking for
24690         RS6000_BTM_P9_VECTOR.
24691         (altivec_init_builtins): Define builtins used to implement vec_xl
24692         and vec_xst.
24693         (rs6000_builtin_mask_names): Define power9-vector.
24694         * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
24695         (RS6000_BTM_P9_VECTOR): Define.
24696         (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
24697         * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
24698         (vsx_ld_elemrev_v2df): Likewise.
24699         (vsx_ld_elemrev_v4sf): Likewise.
24700         (vsx_ld_elemrev_v4si): Likewise.
24701         (vsx_ld_elemrev_v8hi): Likewise.
24702         (vsx_ld_elemrev_v16qi): Likewise.
24703         (vsx_st_elemrev_v2df): Likewise.
24704         (vsx_st_elemrev_v2di): Likewise.
24705         (vsx_st_elemrev_v4sf): Likewise.
24706         (vsx_st_elemrev_v4si): Likewise.
24707         (vsx_st_elemrev_v8hi): Likewise.
24708         (vsx_st_elemrev_v16qi): Likewise.
24709         * doc/extend.texi: Add prototypes for vec_xl and vec_xst.  Correct
24710         grammar.
24712 2016-04-29  Patrick Palka  <ppalka@gcc.gnu.org>
24714         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
24715         out into ...
24716         (simplify_control_stmt_condition_1): ... here.  Recurse into
24717         BIT_AND_EXPRs and BIT_IOR_EXPRs.
24719 2016-04-29  David Edelsohn  <dje.gcc@gmail.com>
24721         PR target/69810
24722         * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
24723         (zero_extendqi<mode>2_dot): Revert earlier conversion from
24724         define_insn_and_split to define_insn.
24725         (zero_extendqi<mode>2_dot2): Same.
24726         (extendqi<mode>2_dot): Same.
24727         (extendqi<mode>2_dot2): Same.
24729 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
24731         * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
24732         (probe_stack): New expander.
24733         (probe_stack_<mode>): New insn pattern.
24735 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
24737         * config/i386/i386.md
24738         (operations with memory inputs setting flags peephole2):
24739         Remove uneeded REG_P checks.  Cleanup pattern generation.
24741 2016-04-29  Ilya Enkovich  <ilya.enkovich@intel.com>
24743         * tree-vect-loop.c (vect_transform_loop): Fix
24744         nb_iterations_upper_bound computation for vectorized loop.
24746 2016-04-29  Marek Polacek  <polacek@redhat.com>
24747             Jakub Jelinek  <jakub@redhat.com>
24749         PR sanitizer/70342
24750         * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
24751         TARGET_EXPR_SLOT as a base.
24753 2016-04-29  Andrew Burgess  <andrew.burgess@embecosm.com>
24755         * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
24756         with 'rCm2' constraints to limit possible immediate size.
24757         (*load_zeroextendqisi_update): Likewise.
24758         (*load_signextendqisi_update): Likewise.
24759         (*loadhi_update): Likewise.
24760         (*load_zeroextendhisi_update): Likewise.
24761         (*load_signextendhisi_update): Likewise.
24762         (*loadsi_update): Likewise.
24763         (*loadsf_update): Likewise.
24765 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
24767         * config/i386/predicates.md (constm1_operand): Fix comparison.
24769 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
24771         * testsuite/gcc.target/arc/ieee_eq.c: New test.
24773 2016-04-29  Oleg Endo  <olegendo@gcc.gnu.org>
24775         * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
24776         remaining SH5 related settings.
24777         * config/sh/sh-protos.h (shmedia_cleanup_truncate,
24778         shmedia_prepare_call_address): Delete.
24779         * config/sh/sh.c (sh_print_operand, output_stack_adjust,
24780         DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
24781         * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
24782         UNSUPPORTED_SH2A): Remove m5 checks.
24783         (sh_divide_strategy_e): Remove SH5 division strategies.
24784         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
24785         * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
24787 2016-04-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
24789         * config/s390/s390.c (s390_rtx_costs): Update documentation.
24791 2016-04-29  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24793         * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
24794         * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
24795         Change lder to ldr.
24796         * config/s390/vector.md ("mov<mode>"): Likewise.
24798 2016-04-29  Ulrich Weigand  <uweigand@de.ibm.com>
24800         * config/s390/constraints.md ("U", "W"): Invoke
24801         s390_mem_constraint with "ZR" and "ZT".
24802         * config/s390/s390.c (s390_check_qrst_address): Reject invalid
24803         addresses when using LRA.  Accept also short displacements for S
24804         and T constraints.  Do not check for long displacement target for
24805         S and T constraints.
24806         (s390_mem_constraint): Remove handling of U and W constraints.
24807         * config/s390/s390.md (various patterns): Remove the short
24808         displacement constraints (Q and R) if a long displacement
24809         constraint is present.  Add longdisp as required CPU capability.
24810         * config/s390/vector.md: Likewise.
24811         * config/s390/vx-builtins.md: Likewise.
24813 2016-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
24815         PR target/60040
24816         * reload1.c (reload): Call finish_spills before
24817         restarting reload loop. Skip select_reload_regs
24818         if update_eliminables_and_spill returns true.
24820 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
24822         * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
24823         * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
24824         (umulhisi3_imm): Update predicates and constraint letters.
24825         (umulhisi3_reg): Declare instruction as commutative.
24826         * config/arc/constraints.md (J12, J16): New constraints.
24827         * config/arc/predicates.md (short_unsigned_const_operand): New
24828         predicate.
24829         (arc_short_operand): Likewise.
24830         * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
24832 2016-04-29  Richard Biener  <rguenther@suse.de>
24834         PR tree-optimization/13962
24835         PR tree-optimization/65686
24836         * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
24837         * tree-ssa-alias.c (ptrs_compare_unequal): New function
24838         using PTA to compare pointers.
24839         * match.pd: Add pattern for pointer equality compare simplification
24840         using ptrs_compare_unequal.
24842 2016-04-29  Richard Biener  <rguenther@suse.de>
24844         * stor-layout.c (layout_type): Do not build a pointer-to-element
24845         type for arrays.
24847 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
24849         * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
24850         Use SWI mode iterator.  Use general_reg_operand predicate.
24851         (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
24852         peephole to MMX and SSE part.  Use mmx_reg_operand and sse_reg_operand
24853         predicates.
24855 2016-04-29  Jakub Jelinek  <jakub@redhat.com>
24857         PR middle-end/70843
24858         * fold-const.c (operand_equal_p): Don't verify hash value equality
24859         if arg0 == arg1.
24860         * tree.c (inchash::add_expr): Handle STATEMENT_LIST.  Ignore BLOCK
24861         and OMP_CLAUSE.
24863 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
24865         PR target/70858
24866         * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
24867         to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
24868         (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
24869         __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
24870         __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
24872 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
24874         * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
24875         to info.  Don't initialize separate fields to 0.  Clean up
24876         formatting a bit.
24878 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
24880         * config/i386/i386.md (peephole2s for operations with memory inputs):
24881         Use SWI mode iterator.
24882         (peephole2s for operations with memory outputs): Ditto.
24883         Do not check for stack checking probe.
24885         (probe_stack): Remove expander.
24887 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
24888             Andrew Burgess  <andrew.burgess@embecosm.com>
24890         * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
24891         operands as 32-bits.
24893 2016-04-28  Jason Merrill  <jason@redhat.com>
24895         * gdbinit.in: Skip line-map.h.
24897 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
24898             Andrew Burgess  <andrew.burgess@embecosm.com>
24900         * config/arc/arc.c (arc_conditional_register_usage): Take
24901         TARGET_RRQ_CLASS into account.
24902         (arc_print_operand): Support printing 'p' and 's' operands.
24903         * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
24904         as 0.
24905         (TARGET_RRQ_CLASS): Define.
24906         (IS_POWEROF2_OR_0_P): Define.
24907         * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
24908         alternatives.
24909         (*tst_movb): New define_insn.
24910         (*tst): Avoid recognition if it could prevent '*tst_movb'
24911         combination; replace c/CnL with c/Chs alternative.
24912         (*tst_bitfield_tst): New define_insn.
24913         (*tst_bitfield_asr): New define_insn.
24914         (*tst_bitfield): New define_insn.
24915         (andsi3_i): Add Rrq variant.
24916         (extzv): New define_expand.
24917         (insv): New define_expand.
24918         (*insv_i): New define_insn.
24919         (*movb): New define_insn.
24920         (*movb_signed): New define_insn.
24921         (*movb_high): New define_insn.
24922         (*movb_high_signed): New define_insn.
24923         (*movb_high_signed + 1): New define_split pattern.
24924         (*mrgb): New define_insn.
24925         (*mrgb + 1): New define_peephole2 pattern.
24926         (*mrgb + 2): New define_peephole2 pattern.
24927         * config/arc/arc.opt (mbitops): New option for nps400, uses
24928         TARGET_NPS_BITOPS_DEFAULT.
24929         * config/arc/constraints.md (q): Make register class conditional.
24930         (Rrq): New register constraint.
24931         (Chs): New constraint.
24932         (Clo): New constraint.
24933         (Chi): New constraint.
24934         (Cbf): New constraint.
24935         (Cbn): New constraint.
24936         (C18): New constraint.
24937         (Cbi): New constraint.
24939 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
24941         * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
24942         dst->popcount.
24943         (bitmap_intersection_of_preds): Ditto.
24944         (bitmap_union_of_succs): Ditto.
24945         (bitmap_union_of_preds): Ditto.
24946         * sbitmap.c (do_popcount): Delete.
24947         (BITMAP_DEBUGGING): Delete.
24948         (sbitmap_verify_popcount): Delete.
24949         (sbitmap_alloc): Don't initialize the popcount field.
24950         (sbitmap_alloc_with_popcount): Delete.
24951         (sbitmap_resize): Don't resize the popcount array.
24952         (sbitmap_vector_alloc): Don't initialize the popcount field.
24953         (bitmap_copy): Don't copy the popcount array.
24954         (bitmap_clear): Don't clear the popcount array.
24955         (bitmap_clear): Delete the popcount array handling.
24956         (bitmap_ior_and_compl): Delete the popcount assert.
24957         (bitmap_not): Ditto.
24958         (bitmap_and_compl): Ditto.
24959         (bitmap_and): Delete the popcount array handling.
24960         (bitmap_xor): Ditto.
24961         (bitmap_ior): Ditto.
24962         (bitmap_or_and): Delete the popcount assert.
24963         (bitmap_and_or): Ditto.
24964         (popcount_table): Delete.
24965         (sbitmap_elt_popcount): Delete.
24966         * sbitmap.h (simple_bitmap_def): Delete the popcount field.
24967         (bitmap_set_bit): Delete the popcount assert.
24968         (bitmap_clear_bit): Ditto.
24969         (sbitmap_free): Don't free the popcount array.
24970         (sbitmap_alloc_with_popcount): Delete declaration.
24971         (sbitmap_popcount): Ditto.
24973 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
24974             Andrew Burgess  <andrew.burgess@embecosm.com>
24976         * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
24977         (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
24978         * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
24979         (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
24980         * config/arc/arc.opt (mcmem): New option.
24981         * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
24982         supply length for r/m alternative.
24983         (*extendqisi2_ac): Likewise.
24984         (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
24985         r/Uex alternative.
24986         (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
24987         (movhi_insn): Likewise.
24988         (movsi_insn): Add r/Ucm,Ucm/w alternatives.
24989         (*zero_extendqihi2_i): Add r/Ucm alternative.
24990         (*zero_extendqisi2_ac): Likewise.
24991         (*zero_extendhisi2_i): Likewise.
24992         * config/arc/constraints.md (Uex): New memory constraint.
24993         (Ucm): New define_constraint.
24994         * config/arc/predicates.md (long_immediate_loadstore_operand):
24995         Return 0 for MEM with cmem_address address.
24996         (cmem_address_0): New predicates.
24997         (cmem_address_1): Likewise.
24998         (cmem_address_2): Likewise.
24999         (cmem_address): Likewise.
25001 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
25003         * config/rs6000/rs6000.c (machine_function): Rename
25004         insn_chain_scanned_p to spe_insn_chain_scanned_p.
25005         (rs6000_stack_info): Adjust.
25007 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
25008             Andrew Burgess  <andrew.burgess@embecosm.com>
25010         * config/arc/constraints.md (Usd): Convert to define_constraint.
25011         (Us<): Likewise.
25012         (Us>): Likewise.
25014 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
25016         PR target/70821
25017         * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
25018         Add new peephole2 where the first insn is *mov<mode>_or instead of
25019         *mov<mode>_internal.
25021 2016-04-28  Segher Boesssenkool  <segher@kernel.crashing.org>
25023         * tracer.c (bb_seen): Make static.
25025 2016-04-28  Andrew Burgess  <andrew.burgess@embecosm.com>
25027         * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
25028         support, setup defaults.
25029         * config/arc/arc-opts.h (enum processor_type): Add NPS400.
25030         * config/arc/arc.c (arc_init): Add NPS400 support.
25031         * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
25032         (TARGET_ARC700): NPS400 is also an ARC700.
25033         * config/arc/arc.opt: Add NPS400 options to -mcpu=.
25035 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
25037         PR target/70668
25038         * config/nds32/nds32.md (casesi): Don't access the operands array
25039         out of bounds.
25041 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
25043         * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
25044         (or $-1,reg peephole2): Ditto.
25045         (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
25047 2016-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
25049         * doc/extend.texi (Common Function Attributes) [optimize]:
25050         Discourage use of the optimize attribute.
25052 2016-04-28  Bill Seurer  <seurer@linux.vnet.ibm.com>
25054         * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
25055         special case builtin.
25056         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
25057         ALTIVEC_BUILTIN_VEC_ADDE.
25058         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
25059         support for ALTIVEC_BUILTIN_VEC_ADDE.
25060         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
25061         for __builtin_vec_adde.
25063 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
25065         * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
25066         * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
25068 2016-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25070         PR testsuite/70595
25071         * doc/sourcebuild.texi (Effective-Target Keywords, Other
25072         attributes): Document cilkplus_runtime.
25074 2016-04-28  Martin Jambor  <mjambor@suse.cz>
25076         * tree-cfg.c (verify_expr): Verify that local declarations belong to
25077         this function.  Call verify_expr on MEM_REFs and bases of other
25078         handled_components.
25080 2016-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25082         * internal-fn.c (expand_arith_overflow): Convert preprocessor check
25083         for WORD_REGISTER_OPERATIONS to runtime check.
25085 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
25087         * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
25089 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
25091         * config/arc/arc.c (arc_process_double_reg_moves): Fix for
25092         big-endian compilation.
25093         * config/arc/arc.md (addf3): Likewise.
25094         (subdf3): Likewise.
25095         (muldf3): Likewise.
25097 2016-04-28  Richard Biener  <rguenther@suse.de>
25099         PR tree-optimization/70840
25100         * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
25101         Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
25102         Mark x * pow(x,c) -> pow(x,c+1) commutative.
25103         Add powi(x,y) * powi(z,y) -> powi(x*z,y).
25105 2015-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25107         * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
25108         and explain why in a comment.
25110 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
25112         * config/arc/arc.md (cpu_facility): Add fpx variant.
25113         (subdf3): Prohibit use reverse sub when assist operations option
25114         is enabled.
25115         * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
25116         instructions only when FPX is enabled.
25117         * testsuite/gcc.target/arc/trsub.c: New test.
25119 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
25121         * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
25122         mult_operator when calculating "type" attribute.
25123         (*fop_<mode>_1_i387): Ditto.
25124         (*fop_xf_1_i387): Ditto.
25125         (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
25126         Use std::swap to swap operands.  Use RTL expressions to generate
25127         converted pattern.
25129 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
25130             Joern Rennecke  <joern.rennecke@embecosm.com>
25132         * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
25133         declaration.
25134         (emit_pic_move): Remove.
25135         (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
25136         * config/arc/arc.c (emit_pic_move): Removed.
25137         (TARGET_HAVE_TLS): Define.
25138         (arc_conditional_register_usage): Test for arc_tp_regno.
25139         (arc_print_operand, arc_print_operand_address): Handle TLS
25140         unspecs.
25141         (arc_needs_pcl_p): New function.
25142         (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
25143         (arc_legitimate_pic_addr_p): Handle TLS unspecs.
25144         (arc_raw_symbolic_reference_mentioned_p): Likewise.
25145         (arc_get_tp, arc_emit_call_tls_get_addr): New function.
25146         (arc_legitimize_tls_address): Likewise.
25147         (DTPOFF_ZERO_SYM): Define.
25148         (arc_legitimize_pic_address): Make it static, handle TLS cases.
25149         (arc_output_pic_addr_const): Print TLS unspecs.
25150         (prepare_pic_move): New function, replaces emit_pic_move.
25151         (arc_legitimate_constant_p): Handle TLS unspecs.
25152         (arc_legitimate_address_p): Likewise.
25153         (arc_rewrite_small_data_p): Use assert for TLS constants.
25154         (prepare_move_operands): Use prepare_pic_move.
25155         (arc_legitimize_address): Legitimize tls addresses.
25156         (arc_epilogue_uses): Check for arc_tp_regno.
25157         (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
25158         * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
25159         Define.
25160         [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
25161         Likewise.
25162         [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
25163         %(arc_tls_extra_start_spec).
25164         (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
25165         (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
25166         (EH_USES): Define.
25167         (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
25168         * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
25169         (UNSPEC_TLS_OFF): Add.
25170         (R10_REG): Define.
25171         (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
25172         (get_thread_pointersi): New patterns.
25173         * config/arc/arc.opt (mtp-regno): New option.
25174         * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
25175         (move_dest_operand): Likewise.
25176         * configure: Regenerate.
25177         * configure.ac: Add arc*-*-* case to test for tls.
25178         * doc/invoke.texi (ARC options): Document mtp-regno.
25180 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
25182         * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
25183         the new ARC HS SIMD instructions.
25184         (arc_preferred_simd_mode): New function.
25185         (arc_autovectorize_vector_sizes): Likewise.
25186         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
25187         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
25188         (arc_init_reg_tables): Accept new ARC HS SIMD modes.
25189         (arc_init_builtins): Add new SIMD builtin types.
25190         (arc_split_move): Handle 64 bit vector moves.
25191         * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
25192         (TARGET_PLUS_QMACW): Define.
25193         * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
25194         (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
25195         (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
25196         (VSUBADD4H): New builtins.
25197         * config/arc/simdext.md: Add new ARC HS SIMD instructions.
25198         * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
25200 2016-04-28  Eduard Sanou  <dhole@openmailbox.org>
25201             Matthias Klose  <doko@debian.org>
25203         * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
25205 2016-04-28  Richard Biener  <rguenther@suse.de>
25207         PR middle-end/70777
25208         * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
25209         canonicalization.
25211 2016-04-28  Oleg Endo  <olegendo@gcc.gnu.org>
25213         * common/config/sh/sh-common.c: Remove SH5 support.
25214         * config/sh/constraints.md: Likewise.
25215         * config/sh/config/sh/elf.h: Likewise.
25216         * config/sh/linux.h: Likewise.
25217         * config/sh/netbsd-elf.h: Likewise.
25218         * config/sh/predicates.md: Likewise.
25219         * config/sh/sh-c.c: Likewise.
25220         * config/sh/sh-protos.h: Likewise.
25221         * config/sh/sh.c: Likewise.
25222         * config/sh/sh.h: Likewise.
25223         * config/sh/sh.md: Likewise.
25224         * config/sh/sh.opt: Likewise.
25225         * config/sh/sync.md: Likewise.
25226         * config/sh/sh64.h: Delete.
25227         * config/sh/shmedia.h: Likewise.
25228         * config/sh/shmedia.md: Likewise.
25229         * config/sh/sshmedia.h: Likewise.
25230         * config/sh/t-netbsd-sh5-64: Likewise.
25231         * config/sh/t-sh64: Likewise.
25232         * config/sh/ushmedia.h: Likewise.
25234 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
25236         * config/i386/i386.md (sign_extend to memory peephole2s): Use
25237         general_reg_operand instead of register_operand predicate.
25239 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
25241         * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
25243 2016-04-27  Marc Glisse  <marc.glisse@inria.fr>
25245         * match.pd (A - B > A, A + B < A): New transformations.
25247 2016-04-27  Patrick Palka  <ppalka@gcc.gnu.org>
25249         * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
25250         which defaults to true.  Emit an outer pair of parentheses only if
25251         EMIT_PARENS.  When continuing a chain of && or || (or & or |),
25252         don't emit parentheses for the right-hand operand.
25254 2016-04-27  Jeff Law  <law@redhat.com>
25256         * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
25258 2016-04-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25260         * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
25261         (altivec_lvx_<mode>_internal): Document.
25262         (altivec_lvx_<mode>_2op): New define_insn.
25263         (altivec_lvx_<mode>_1op): Likewise.
25264         (altivec_lvx_<mode>_2op_si): Likewise.
25265         (altivec_lvx_<mode>_1op_si): Likewise.
25266         (altivec_stvx_<mode>): Remove.
25267         (altivec_stvx_<mode>_internal): Document.
25268         (altivec_stvx_<mode>_2op): New define_insn.
25269         (altivec_stvx_<mode>_1op): Likewise.
25270         (altivec_stvx_<mode>_2op_si): Likewise.
25271         (altivec_stvx_<mode>_1op_si): Likewise.
25272         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
25273         Expand vec_ld and vec_st during parsing.
25274         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
25275         changes.
25276         (altivec_expand_stvx_be): Likewise.
25277         (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
25278         address-masking behavior in RTL.
25279         (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
25280         address-masking behavior in RTL.
25281         (altivec_expand_builtin): Change builtin code arguments for calls
25282         to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
25283         (insn_is_swappable_p): Avoid incorrect swap optimization in the
25284         presence of lvx/stvx patterns.
25285         (alignment_with_canonical_addr): New function.
25286         (alignment_mask): Likewise.
25287         (find_alignment_op): Likewise.
25288         (recombine_lvx_pattern): Likewise.
25289         (recombine_stvx_pattern): Likewise.
25290         (recombine_lvx_stvx_patterns): Likewise.
25291         (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
25292         stvx patterns from expand.
25293         * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
25294         expansions.
25295         (vector_altivec_store_<mode>): Likewise.
25297 2016-04-26  Evandro Menezes  <e.menezes@samsung.com>
25299         * config/aarch64/aarch64.md
25300         (*movhf_aarch64): Add "movi %0, #0" to zero up register and
25301         remove the "fp" attributes.
25302         (*movsf_aarch64): Add "movi %0, #0" to zero up register and
25303         add the "simd" attributes.
25304         (*movdf_aarch64): Likewise.
25305         (*movtf_aarch64): Remove the "fp" attributes.
25306         * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
25307         * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
25309 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
25311         * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
25312         rtx to rtx_code_label *.
25313         * rtl.h (maybe_set_first_label_num): Likewise.
25315 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
25317         * df-core.c (df_add_problem): Make the problem param be const.
25318         (df_remove_problem): Make local "problem" be const.
25319         * df-problems.c (problem_RD): Make const.
25320         (problem_LR): Likewise.
25321         (problem_LIVE): Likewise.
25322         (problem_MIR): Likewise.
25323         (problem_CHAIN): Likewise.
25324         (problem_WORD_LR): Likewise.
25325         (problem_NOTE): Likewise.
25326         (problem_MD): Likewise.
25327         * df-scan.c (problem_SCAN): Likewise.
25328         * df.h (struct df_problem): Make field "dependent_problem" be
25329         const.
25330         (struct dataflow): Likewise for field "problem".
25331         (df_add_problem): Make param const.
25333 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
25335         * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
25336         inter-unit moves to/from vector registers are enabled.  Do not disable
25337         for TARGET_MMX.
25339 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
25341         * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
25342         DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
25343         #define to...
25344         (enum df_problem_id): ...this new enum.
25345         (struct df_problem): Convert field "id" from "int" to
25346         enum df_problem_id.
25348 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
25350         * rtl.def: Update comment for "things in the instruction chain" to
25351         reflect the removal of the leading "i" field for INSN_UID in
25352         r210360.  Fix bogus apostrophe.
25354 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
25356         * config/i386/i386.md
25357         (lea arith with mem operand + setcc peephole2): Set operator mode.
25359 2016-04-27  H.J. Lu  <hongjiu.lu@intel.com>
25361         PR target/70155
25362         * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
25363         (dimode_scalar_to_vector_candidate_p): This.
25364         (timode_scalar_to_vector_candidate_p): New function.
25365         (scalar_to_vector_candidate_p): Likewise.
25366         (timode_check_non_convertible_regs): Likewise.
25367         (timode_remove_non_convertible_regs): Likewise.
25368         (remove_non_convertible_regs): Likewise.
25369         (remove_non_convertible_regs): Renamed to ...
25370         (dimode_remove_non_convertible_regs): This.
25371         (scalar_chain::~scalar_chain): Make it virtual.
25372         (scalar_chain::compute_convert_gain): Make it pure virtual.
25373         (scalar_chain::mark_dual_mode_def): Likewise.
25374         (scalar_chain::convert_insn): Likewise.
25375         (scalar_chain::convert_registers): Likewise.
25376         (scalar_chain::add_to_queue): Make it protected.
25377         (scalar_chain::emit_conversion_insns): Likewise.
25378         (scalar_chain::replace_with_subreg): Likewise.
25379         (scalar_chain::replace_with_subreg_in_insn): Likewise.
25380         (scalar_chain::convert_op): Likewise.
25381         (scalar_chain::convert_reg): Likewise.
25382         (scalar_chain::make_vector_copies): Likewise.
25383         (scalar_chain::convert_registers): New pure virtual function.
25384         (class dimode_scalar_chain): New class.
25385         (class timode_scalar_chain): Likewise.
25386         (scalar_chain::mark_dual_mode_def): Renamed to ...
25387         (dimode_scalar_chain::mark_dual_mode_def): This.
25388         (timode_scalar_chain::mark_dual_mode_def): New function.
25389         (timode_scalar_chain::convert_insn): Likewise.
25390         (dimode_scalar_chain::convert_registers): Likewise.
25391         (scalar_chain::compute_convert_gain): Renamed to ...
25392         (dimode_scalar_chain::compute_convert_gain): This.
25393         (scalar_chain::replace_with_subreg): Renamed to ...
25394         (dimode_scalar_chain::replace_with_subreg): This.
25395         (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
25396         (dimode_scalar_chain::replace_with_subreg_in_insn): This.
25397         (scalar_chain::make_vector_copies): Renamed to ...
25398         (dimode_scalar_chain::make_vector_copies): This.
25399         (scalar_chain::convert_reg): Renamed to ...
25400         (dimode_scalar_chain::convert_reg ): This.
25401         (scalar_chain::convert_op): Renamed to ...
25402         (dimode_scalar_chain::convert_op): This.
25403         (scalar_chain::convert_insn): Renamed to ...
25404         (dimode_scalar_chain::convert_insn): This.
25405         (scalar_chain::convert): Call convert_registers.
25406         (convert_scalars_to_vector): Change to scalar_chain pointer to
25407         use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
25408         in 32-bit mode.  Delete scalar_chain pointer.  Call
25409         free_dominance_info in 64-bit mode.
25410         (pass_stv::gate): Remove TARGET_64BIT check.
25411         (ix86_option_override): Put the 64-bit STV pass before the CSE
25412         pass.
25414 2016-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
25416         * dwarf2out.h (struct dw_loc_descr_node): Remove the
25417         dw_loc_frame_offset field.
25418         * dwarf2out.c (new_loc_descr): Likewise.
25419         (resolve_args_picking_1): Turn the VISITED hash set into a
25420         FRAME_OFFSET hash map. Use it to associate a frame offset to
25421         visited nodes. Remove uses of the CHECKING_P macro.
25422         (resolve_args_picking): Update call to resolve_args_picking_1.
25424 2016-04-27  Martin Liska  <mliska@suse.cz>
25426         * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
25427         (free_loop_data): Release vuses of groups.
25429 2016-04-27  Bin Cheng  <bin.cheng@arm.com>
25431         * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
25432         instead of redundant use_id and boolean have_use_for.
25433         (struct iv_use): Change sub_id into group_id.  Remove field next.
25434         Move fields: related_cands, n_map_members, cost_map and selected
25435         to ...
25436         (struct iv_group): ... here.  New structure.
25437         (struct iv_common_cand): Use structure declaration directly.
25438         (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
25439         (MAX_CONSIDERED_USES): Rename macro to ...
25440         (MAX_CONSIDERED_GROUPS): ... here.
25441         (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
25442         (dump_iv, dump_use, dump_cand): Refactor format of dump information.
25443         (dump_uses): Rename to ...
25444         (dump_groups): ... here.  Update all uses.
25445         (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
25446         (find_induction_variables): Refactor format of dump information.
25447         (record_sub_use): Delete.
25448         (record_use): Update all uses.
25449         (record_group): New function.
25450         (record_group_use, find_interesting_uses_op): Call above functions.
25451         Update all uses.
25452         (find_interesting_uses_cond): Ditto.
25453         (group_compare_offset): New function.
25454         (split_all_small_groups): Rename to ...
25455         (split_small_address_groups_p): ... here.  Update all uses.
25456         (split_address_groups):  Update all uses.
25457         (find_interesting_uses): Refactor format of dump information.
25458         (add_candidate_1): Update all uses.  Remove redundant check on iv,
25459         base and step.
25460         (add_candidate, record_common_cand): Remove redundant assert.
25461         (add_iv_candidate_for_biv): Update use.
25462         (add_iv_candidate_derived_from_uses): Update all uses.
25463         (add_iv_candidate_for_groups, record_important_candidates): Ditto.
25464         (alloc_use_cost_map): Ditto.
25465         (set_use_iv_cost, get_use_iv_cost): Rename to ...
25466         (set_group_iv_cost, get_group_iv_cost): ... here.  Update all uses.
25467         (determine_use_iv_cost_generic): Ditto.
25468         (determine_group_iv_cost_generic): Ditto.
25469         (determine_use_iv_cost_address): Ditto.
25470         (determine_group_iv_cost_address): Ditto.
25471         (determine_use_iv_cost_condition): Ditto.
25472         (determine_group_iv_cost_cond): Ditto.
25473         (determine_use_iv_cost): Ditto.
25474         (determine_group_iv_cost): Ditto.
25475         (set_autoinc_for_original_candidates): Update all uses.
25476         (find_iv_candidates): Update all uses.  Refactor dump information.
25477         (determine_use_iv_costs): Ditto.
25478         (determine_iv_costs): Ditto.
25479         (iv_ca_cand_for_use): Rename to ...
25480         (iv_ca_cand_for_group): ... here.  Update all uses.
25481         (iv_ca_add_use, iv_ca_add_group): Ditto.
25482         (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
25483         (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
25484         (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
25485         (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
25486         (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
25487         (create_new_iv, adjust_iv_update_pos): Ditto.
25488         (rewrite_use_address): Delete.
25489         (rewrite_use_address_1): Rename to ...
25490         (rewrite_use_address): ... here.
25491         (rewrite_use_compare): Update all uses.
25492         (rewrite_use): Delete.
25493         (rewrite_uses): Rename to ...
25494         (rewrite_groups): ... here.  Update all uses.
25495         (remove_unused_ivs, free_loop_data): Update all uses.
25496         (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
25498 2016-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25500         * rtlanal.c (nonzero_bits1): Convert preprocessor check
25501         for WORD_REGISTER_OPERATIONS to runtime check.
25503 2016-04-27  Richard Biener  <rguenther@suse.de>
25505         PR ipa/70760
25506         * tree-ssa-structalias.c (find_func_aliases_for_call): Use
25507         aggregate_value_p to determine if a function result is
25508         returned by reference.
25509         (ipa_pta_execute): Functions having their address taken are
25510         not automatically nonlocal.
25512 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
25514         PR sanitizer/70683
25515         * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
25516         * fold-const.c (operand_equal_p): If flag_checking and
25517         OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
25518         and if it returns non-zero, assert iterative_hash_expr on both
25519         args is the same.
25521 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
25523         * doc/invoke.texi (-frename-registers): Also enabled at -Os.
25525 2016-04-27  Nick Clifton  <nickc@redhat.com>
25527         PR middle-end/49889
25528         * varasm.c (merge_weak): Generate an error if an attempt is made
25529         to convert a non-weak static function into a weak, public function.
25531 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
25533         * params.def (MAX_PARTITION_SIZE): New param.
25534         * doc/invoke.texi: Document lto-max-partition.
25536 2016-04-27  Richard Biener  <rguenther@suse.de>
25538         PR ipa/70785
25539         * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
25540         function cummulating used_from_other_partition, externally_visible
25541         and force_output from aliases.
25542         (refered_from_nonlocal_var): Likewise.
25543         (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
25544         node flags properly.
25546 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
25548         * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
25549         (-Wmemset-elt-size): New item.
25551 2016-04-27  Eric Botcazou  <ebotcazou@adacore.com>
25553         PR ada/70759
25554         * stor-layout.h (internal_reference_types): Delete.
25555         * stor-layout.c (reference_types_internal): Likewise.
25556         (internal_reference_types): Likewise.
25557         (layout_type) <REFERENCE_TYPE>: Adjust.
25559 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
25561         PR sanitizer/70683
25562         * tree.h (inchash::add_expr): Add FLAGS argument.
25563         * tree.c (inchash::add_expr): Likewise.  If not OEP_ADDRESS_OF,
25564         use STRIP_NOPS first.  For INTEGER_CST assert not OEP_ADDRESS_OF.
25565         For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
25566         Formatting fix.  Adjust recursive calls.  For tcc_comparison,
25567         if swap_tree_comparison (code) is smaller than code, hash that
25568         and arguments in the other order.  Hash CONVERT_EXPR the same
25569         as NOP_EXPR.  For OEP_ADDRESS_OF hash MEM_REF with 0 offset
25570         of ADDR_EXPR of decl as the decl itself.  Add or remove
25571         OEP_ADDRESS_OF from recursive flags as needed.  For
25572         FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
25573         operands commutatively and only the third one normally.
25574         For internal CALL_EXPR hash in CALL_EXPR_IFN.
25576 2016-04-27  Sebastian Huber  <sebastian.huber@embedded-brains.de>
25578         * config/rtems.h (LIB_SPEC): Add -latomic.
25580 2016-04-27  Joel Sherrill  <joel@rtems.org>
25582         * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
25583         xilink.ld and flags not relevant to RTEMS.
25585 2016-04-26  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
25587         * toplev.c (backend_init_target): Avoid calling init_reload when using
25588         LRA.
25590 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
25592         * reorg.c (try_merge_delay_insns): Declare i and j inside the
25593         for loops rather than one for the whole function.
25595 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
25597         * match.pd (X + CST CMP X): New transformation.
25599 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
25601         * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
25602         * fold-const.c (fold_binary_loc): Remove 2 transformations
25603         superseded by match.pd.
25604         * match.pd (x+x -> x*2): Generalize to integers.
25606 2016-04-26  Bernd Schmidt  <bschmidt@redhat.com>
25608         * config/i386/i386.md (operation on memory peephole): Duplicate an
25609         existing peephole and adapt it to match lea rather than an operation
25610         that clobbers CC.
25612         PR rtl-optimization/57193
25613         * opts.c (default_options_table): Add OPT_frename_registers at -O2
25614         and above.
25615         * doc/invoke.texi (-frename-registers, -O2): Update documentation.
25617 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
25619         * tree-if-conv.c (any_pred_load_store): New static variable.
25620         (if_convertible_gimple_assign_stmt_p): Remove parameter.  Use
25621         any_pred_load_store instead of and_mask_load_store.
25622         (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
25623         (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
25624         (combine_blocks, tree_if_conversion): Ditto.
25626 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
25628         PR tree-optimization/70771
25629         PR tree-optimization/70775
25630         * tree-if-conv.c (if_convertible_phi_p): Remove check on special
25631         virtual PHI nodes.  Delete parameter.
25632         (if_convertible_loop_p_1): Delete argument to above function.
25633         (predicate_all_scalar_phis): Delete code handling single-argument
25634         PHIs.
25635         (tree_if_conversion): Mark and update virtual SSA.
25637 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25639         PR target/61821
25640         * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
25641         (x86_elf_aligned_common): Rename to ...
25642         (x86_elf_aligned_decl_common): ... this.
25643         Add decl arg.  Switch to .lbss for largecomm object.  Use
25644         LARGECOMM_SECTION_ASM_OP.
25645         * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
25646         renaming.
25647         * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
25648         (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
25649         Pass new decl arg.
25650         * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
25651         [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
25653 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25655         PR target/59407
25656         * config/i386/i386.c (SECTION_LARGE): Define.
25657         (x86_64_elf_select_section): Set it for large data/bss sections.
25658         Only clear SECTION_WRITE for .lrodata.
25659         (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
25660         data/bss sections.
25661         * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
25662         * varasm.c (default_elf_asm_named_section): Grow flagchars.
25663         [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
25664         SECTION_MACH_DEP.
25665         * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
25666         * doc/tm.texi: Regenerate.
25668 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
25670         PR bootstrap/70704
25671         * configure.ac (--enable-checking): Document extra flag, for
25672         non-release builds default to --enable-checking=yes,extra.
25673         If misc checking and extra checking, define CHECKING_P to 2 instead
25674         of 1.
25675         * common.opt (fchecking=): Add.
25676         * doc/invoke.texi (-fchecking=): Document.
25677         * doc/install.texi: Document --enable-checking changes.
25678         * configure: Regenerated.
25679         * config.in: Regenerated.
25681 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
25683         * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
25684         attribute instead of which_alternative.
25685         * config/i386/sse.md (*mov<mode>_internal): Ditto.
25686         Use EXT_REX_SSE_REG_P where appropriate.
25688 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
25690         * config/i386/predicates.md (const0_operand): Do not match
25691         const_wide_int code.
25692         (const1_operand): Ditto.
25694 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
25696         * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
25697         for SSE constm1 operands and TARGET_AVX512VL.
25698         (*movti_internal): Ditto.
25699         (*mov<mode>_or): Use constm1_operand predicate.
25700         * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
25701         for SSE vector_all_ones operands and TARGET_AVX512VL.
25702         * config/i386/predicates.md (constm1_operand): New predicate.
25703         * config/i386/i386.c (standard_sse_constant_opcode): Simplify
25704         emission of constant -1 load.
25706 2016-04-25  Jason Merrill  <jason@redhat.com>
25708         * gdbinit.in: Skip is-a.h.
25710         * attribs.c (register_scoped_attributes): Fix logic.
25711         * attribs.h: Declare register_scoped_attributes.
25713 2016-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25715         * config/rs6000/rs6000-builtin.def: Correct pasto error for
25716         stxvd2x and stxvw4x built-in functions.
25718 2016-04-25  DJ Delorie  <dj@redhat.com>
25720         * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
25721         (ashrhi3): Likewise.
25722         (lshrhi3): Likewise.
25724 2016-04-25  Richard Biener  <rguenther@suse.de>
25726         PR tree-optimization/70780
25727         * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
25728         wasn't visited yet.
25729         (compute_antic): Mark blocks with abnormal preds as visited as
25730         they have a final empty antic-in solution already.
25732 2016-04-25  Michael Collison  <michael.collison@linaro.org>
25734         * ChangeLog(2016-04-25): Fix ChangeLog formatting.
25736 2016-04-25  Michael Collison  <michael.collison@linaro.org>
25738         * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
25739         mode is VQI to improve mixed mode vectorization.
25740         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
25741         define_insn to match low half of signed vaddw.
25742         * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
25743         define_insn to match high half of signed vaddw.
25744         * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
25745         define_insn to match low half of unsigned vaddw.
25746         * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
25747         define_insn to match high half of unsigned vaddw.
25748         * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
25749         (arm_simd_check_vect_par_cnst_half_p): Likewise.
25750         * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
25751         for new function.
25752         (arm_simd_check_vect_par_cnst_half_p): Likewise.
25753         * config/arm/predicates.md (vect_par_constant_high): Support
25754         big endian and simplify by calling
25755         arm_simd_check_vect_par_cnst_half
25756         (vect_par_constant_low): Likewise.
25758 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
25760         * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
25761         predicate for operand 2.
25763 2016-04-24  Uros Bizjak  <ubizjak@gmail.com>
25764             H.J. Lu  <hongjiu.lu@intel.com>
25766         * config/i386/i386-protos.h (standard_sse_constant_p): Add
25767         machine_mode argument.
25768         * config/i386/i386.c (standard_sse_constant_p): Return 2 for
25769         constm1_rtx operands.  For VOIDmode constants, get mode from
25770         pred_mode.  Check mode size if the mode is supported by ABI.
25771         (standard_sse_constant_opcode): Do not use standard_constant_p.
25772         Strictly check ABI support for all-ones operands.
25773         (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
25774         immediates. Update calls to standard_sse_constant_p.
25775         (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
25776         (ix86_rtx_costs): Ditto.
25777         * config/i386/i386.md (*movxi_internal_avx512f): Use
25778         nonimmediate_or_sse_const_operand instead of vector_move_operand.
25779         Use (v,BC) alternative instead of (v,C). Use register_operand
25780         checks instead of MEM_P.
25781         (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
25782         of vector_move_operand.  Add (v,BC) alternative and corresponding avx2
25783         isa attribute.  Use register_operand checks instead of MEM_P.
25784         (*movti_internal): Use nonimmediate_or_sse_const_operand for
25785         TARGET_SSE.  Improve TARGET_SSE insn constraint.  Add (v,BC)
25786         alternative and corresponding sse2 isa attribute.
25787         (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
25788         to standard_sse_constant_p.
25789         (FP constant splitters): Ditto.
25790         * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
25791         (C): Ditto.
25792         * config/i386/predicates.md (constm1_operand): Remove.
25793         (nonimmediate_or_sse_const_operand): Rewrite using RTX.
25794         * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
25795         vector_all_ones_operand instead of constm1_operand.
25797 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25799         * print-rtl.c (print_rtx_insn_vec): New function.
25800         * print-rtl.h: New prototype.
25801         * store-motion.c (struct st_expr): Make avail_stores a vector.
25802         (st_expr_entry): Adjust.
25803         (free_st_expr_entry): Likewise.
25804         (print_store_motion_mems): Likewise.
25805         (find_moveable_store): Likewise.
25806         (compute_store_table): Likewise.
25807         (delete_store): Likewise.
25808         (build_store_vectors): Likewise.
25810 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25812         * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
25814 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25816         * vec.h (vec_safe_contains): New function.
25817         (vec::contains): Likewise.
25818         (vec::begin): Likewise.
25819         (vec::end): Likewise.
25821 2016-04-23  Jakub Jelinek  <jakub@redhat.com>
25823         PR sanitizer/70712
25824         * cfgexpand.c (expand_stack_vars): Fix typo.
25826 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
25828         * system.h (list, map, set, vector): Include conditionally.
25829         * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
25830         * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
25831         * ipa-icf.c (INCLUDE_LIST): Define.
25832         * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
25833         * config/sh/sh.c (INCLUDE_VECTOR): Define.
25834         * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
25835         (INCLUDE_LIST, INCLUDE_VECTOR): Define.
25836         * cp/logic.cc (INCLUDE_LIST): Define.
25837         * fortran/trans-common.c (INCLUDE_MAP): Define.
25839 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
25841         * auto-profile.c: Remove <string.h> include.
25842         * ipa-icf-gimple.c: Remove <list> include.
25843         * diagnostic.c: Remove <new> include.
25844         * genmatch.c: Likewise.
25845         * pretty-print.c: Likewise.
25846         * toplev.c: Likewise
25847         * c/c-objc-common.c: Likewise.
25848         * cp/error.c: Likewise.
25849         * fortran/error.c: Likewise.
25851 2016-04-22  Richard Biener  <rguenther@suse.de>
25853         * lto-streamer-in.c (input_ssa_names): Do not allocate
25854         GIMPLE_NOP for all SSA names.
25855         * lto-streamer-out.c (output_ssa_names): Do not output
25856         SSA names that should have been released.
25858 2016-04-22  Richard Biener  <rguenther@suse.de>
25860         PR tree-optimization/70740
25861         * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
25862         VDEF.
25864 2016-04-21  H.J. Lu  <hongjiu.lu@intel.com>
25866         PR target/70750
25867         * config/i386/predicates.md (call_insn_operand): Replace
25868         sibcall_memory_operand with memory_operand.
25870 2016-04-21  Patrick Palka  <ppalka@gcc.gnu.org>
25872         * tree-vrp.c (register_edge_assert_for_2): Remove redundant
25873         has_single_use() tests.
25874         (register_edge_assert_for_1): Likewise.
25875         (find_assert_locations_1): Check the liveness bitmap instead of
25876         checking has_single_use().
25878 2016-04-21  Kirill Yukhin  <kirill.yukhin@intel.com>
25880         PR target/70728
25881         * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
25882         Extract AVX-512BW constraint from AVX.
25884 2016-04-21  Richard Biener  <rguenther@suse.de>
25886         PR tree-optimization/70725
25887         * tree-if-conv.c (if_convertible_phi_p): Adjust guard
25888         for phi_convertible_by_degenerating_args.
25889         (predicate_all_scalar_phis): Handle single-argument PHIs.
25891 2016-04-21  Richard Biener  <rguenther@suse.de>
25893         PR middle-end/70747
25894         * fold-const.c (fold_comparison): Return properly typed
25895         constant boolean.
25897 2016-04-21  Bin Cheng  <bin.cheng@arm.com>
25899         PR tree-optimization/70715
25900         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
25901         after expanding BASE using expand_simple_operations.
25903 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
25905         * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
25906         New transformations.
25908 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
25910         * match.pd (min(int_max, x), max(int_min, x)): New transformations.
25912 2016-04-20  Jan Hubicka  <jh@suse.cz>
25914         * ipa-inline.c (can_inline_edge_p): Pass caller info to
25915         ultiimate_alias_target.
25916         (update_callee_keys): Likewise.
25917         (lookup_recursive_calls): Likewise.
25918         (speculation_useful_p): Likewise.
25920 2016-04-20  Jan Hubicka  <jh@suse.cz>
25922         PR ipa/70018
25923         * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
25924         (set_nothrow_flag_1): ... this; handle interposition correctly;
25925         recurse on aliases and thunks.
25926         (cgraph_node::set_nothrow_flag): New.
25927         * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
25928         functions compiled with non-call exceptions that binds to current
25929         def.
25930         (propagate_nothrow): Be safe WRT interposition.
25931         * cgraph.h (set_nothrow_flag): Update prototype.
25933 2016-04-18  Jan Hubicka  <jh@suse.cz>
25935         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
25936         max_loop_iterations_int.
25937         (tree_unswitch_outer_loop): Likewise.
25939 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
25941         PR tree-optimization/69489
25942         * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
25943         (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
25944         Revise dump message.
25945         (if_convertible_bb_p): Remove check on edge count of basic block's
25946         predecessors.
25948 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
25950         PR tree-optimization/56625
25951         PR tree-optimization/69489
25952         * tree-data-ref.h (DR_INNERMOST): New macro.
25953         * tree-if-conv.c (innermost_loop_behavior_hash): New class for
25954         hashing struct innermost_loop_behavior.
25955         (ref_DR_map): Remove.
25956         (innermost_DR_map): New map.
25957         (baseref_DR_map): Revise comment.
25958         (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
25959         to innermost_DR_map accroding to its innermost loop behavior.
25960         (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
25961         to its innermost loop behavior.
25962         (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
25963         Add initialization for innermost_DR_map.  Record memory reference
25964         in DR_BASE_ADDRESS if the reference is compound one or it doesn't
25965         have innermost loop behavior.
25966         (if_convertible_loop_p): Remove release for ref_DR_map.  Release
25967         innermost_DR_map.
25969 2016-04-20  Uros Bizjak  <ubizjak@gmail.com>
25971         * config/i386/i386.md (*lea<mode>_general_1): Rename from
25972         *lea_general_1.  Use explicit SWI12 mode interator.
25973         (*lea<mode>_general_2): Rename from *lea_general_2.
25974         Use explicit SWI12 mode interator.
25975         (*lea<mode>_general_3): Rename from *lea_general_3.
25976         Use explicit SWI12 mode interator.
25977         (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
25978         Use explicit SWI12 mode interator.
25979         (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
25980         Use explicit SWI48 mode interator.
25982 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
25984         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
25985         Short-cut unaligned load and store cases.  Handle all integer
25986         vector modes.
25987         (ix86_expand_vector_move_misalign): Short-cut unaligned load
25988         and store cases.  Call ix86_avx256_split_vector_move_misalign
25989         directly without checking mode class.
25991 2016-04-20  Andrew Pinski  <apinski@cavium.com>
25992             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25994         PR target/64971
25995         * config/aarch64/aarch64.md (sibcall): Force call
25996         address to be DImode for ILP32.
25997         (sibcall_value): Likewise.
25999 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
26001         * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
26003 2016-04-20  Richard Biener  <rguenther@suse.de>
26005         * gimple-match.h (maybe_build_generic_op): Adjust prototype.
26006         * gimple-match-head.c (maybe_build_generic_op): Pass all ops
26007         by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
26008         (maybe_push_res_to_seq): Adjust.
26009         * gimple-fold.c (maybe_build_generic_op): Likewise.
26011 2016-04-20  Marek Polacek  <polacek@redhat.com>
26013         * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
26014         rather than true.
26016 2016-04-20  Ilya Enkovich  <ilya.enkovich@intel.com>
26018         * config/i386/sse.md (vec_unpacks_lo_hi): Always
26019         use kmovw to support AVX512F target.
26021 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
26023         * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
26025 2016-04-20  Marek Polacek  <polacek@redhat.com>
26027         PR tree-optimization/70725
26028         * tree-if-conv.c (is_false_predicate): New function.
26029         (predicate_mem_writes): Use it.
26031 2016-04-20  Richard Biener  <rguenther@suse.de>
26033         PR tree-optimization/70726
26034         * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
26035         shift amounts from a pattern stmt operand.
26037 2016-04-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
26039         PR target/70674
26040         * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
26041         stack_restore_from_fpr pattern when restoring r15.
26042         (s390_optimize_prologue): Strip away the memory barrier in the
26043         parallel when trying to get rid of restore insns.
26044         * config/s390/s390.md ("stack_restore_from_fpr"): New insn
26045         definition for loading the stack pointer from an FPR.  Compared to
26046         the normal move insn this pattern includes a full memory barrier.
26048 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
26050         PR middle-end/70680
26051         * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
26052         implicitly linear or lastprivate iterator on the outer context.
26054 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
26056         * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
26057         alignment check.
26058         * config/i386/i386.md (ssememalign): Removed.
26059         * config/i386/sse.md: Remove ssememalign attribute from patterns.
26061 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
26063         PR target/69201
26064         * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
26065         const short * to __builtin_ia32_loaddquhi512_mask.
26066         (_mm512_maskz_loadu_epi16): Likewise.
26067         (_mm512_mask_storeu_epi16): Pass short * to
26068         __builtin_ia32_storedquhi512_mask.
26069         (_mm512_mask_loadu_epi8): Pass const char * to
26070         __builtin_ia32_loaddquqi512_mask.
26071         (_mm512_maskz_loadu_epi8): Likewise.
26072         (_mm512_mask_storeu_epi8): Pass char * to
26073         __builtin_ia32_storedquqi512_mask.
26074         * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
26075         const double * to __builtin_ia32_loadupd512_mask.
26076         (_mm512_mask_loadu_pd): Likewise.
26077         (_mm512_maskz_loadu_pd): Likewise.
26078         (_mm512_storeu_pd): Pass double * to
26079         __builtin_ia32_storeupd512_mask.
26080         (_mm512_mask_storeu_pd): Likewise.
26081         (_mm512_loadu_ps): Pass const float * to
26082         __builtin_ia32_loadups512_mask.
26083         (_mm512_mask_loadu_ps): Likewise.
26084         (_mm512_maskz_loadu_ps): Likewise.
26085         (_mm512_storeu_ps): Pass float * to
26086         __builtin_ia32_storeups512_mask.
26087         (_mm512_mask_storeu_ps): Likewise.
26088         (_mm512_mask_loadu_epi64): Pass const long long * to
26089         __builtin_ia32_loaddqudi512_mask.
26090         (_mm512_maskz_loadu_epi64): Likewise.
26091         (_mm512_mask_storeu_epi64): Pass long long *
26092         to __builtin_ia32_storedqudi512_mask.
26093         (_mm512_loadu_si512): Pass const int * to
26094         __builtin_ia32_loaddqusi512_mask.
26095         (_mm512_mask_loadu_epi32): Likewise.
26096         (_mm512_maskz_loadu_epi32): Likewise.
26097         (_mm512_storeu_si512): Pass int * to
26098         __builtin_ia32_storedqusi512_mask.
26099         (_mm512_mask_storeu_epi32): Likewise.
26100         * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
26101         char * to __builtin_ia32_storedquqi256_mask.
26102         (_mm_mask_storeu_epi8): Likewise.
26103         (_mm256_mask_loadu_epi16): Pass const short * to
26104         __builtin_ia32_loaddquhi256_mask.
26105         (_mm256_maskz_loadu_epi16): Likewise.
26106         (_mm_mask_loadu_epi16): Pass const short * to
26107         __builtin_ia32_loaddquhi128_mask.
26108         (_mm_maskz_loadu_epi16): Likewise.
26109         (_mm256_mask_loadu_epi8): Pass const char * to
26110         __builtin_ia32_loaddquqi256_mask.
26111         (_mm256_maskz_loadu_epi8): Likewise.
26112         (_mm_mask_loadu_epi8): Pass const char * to
26113         __builtin_ia32_loaddquqi128_mask.
26114         (_mm_maskz_loadu_epi8): Likewise.
26115         (_mm256_mask_storeu_epi16): Pass short * to.
26116         __builtin_ia32_storedquhi256_mask.
26117         (_mm_mask_storeu_epi16): Pass short * to.
26118         __builtin_ia32_storedquhi128_mask.
26119         * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
26120         const double * to __builtin_ia32_loadupd256_mask.
26121         (_mm256_maskz_loadu_pd): Likewise.
26122         (_mm_mask_loadu_pd): Pass onst double * to
26123         __builtin_ia32_loadupd128_mask.
26124         (_mm_maskz_loadu_pd): Likewise.
26125         (_mm256_mask_storeu_pd): Pass double * to
26126         __builtin_ia32_storeupd256_mask.
26127         (_mm_mask_storeu_pd): Pass double * to
26128         __builtin_ia32_storeupd128_mask.
26129         (_mm256_mask_loadu_ps): Pass const float * to
26130         __builtin_ia32_loadups256_mask.
26131         (_mm256_maskz_loadu_ps): Likewise.
26132         (_mm_mask_loadu_ps): Pass const float * to
26133         __builtin_ia32_loadups128_mask.
26134         (_mm_maskz_loadu_ps): Likewise.
26135         (_mm256_mask_storeu_ps): Pass float * to
26136         __builtin_ia32_storeups256_mask.
26137         (_mm_mask_storeu_ps): ass float * to
26138         __builtin_ia32_storeups128_mask.
26139         (_mm256_mask_loadu_epi64): Pass const long long * to
26140         __builtin_ia32_loaddqudi256_mask.
26141         (_mm256_maskz_loadu_epi64): Likewise.
26142         (_mm_mask_loadu_epi64): Pass const long long * to
26143         __builtin_ia32_loaddqudi128_mask.
26144         (_mm_maskz_loadu_epi64): Likewise.
26145         (_mm256_mask_storeu_epi64): Pass long long * to
26146         __builtin_ia32_storedqudi256_mask.
26147         (_mm_mask_storeu_epi64): Pass long long * to
26148         __builtin_ia32_storedqudi128_mask.
26149         (_mm256_mask_loadu_epi32): Pass const int * to
26150         __builtin_ia32_loaddqusi256_mask.
26151         (_mm256_maskz_loadu_epi32): Likewise.
26152         (_mm_mask_loadu_epi32): Pass const int * to
26153         __builtin_ia32_loaddqusi128_mask.
26154         (_mm_maskz_loadu_epi32): Likewise.
26155         (_mm256_mask_storeu_epi32): Pass int * to
26156         __builtin_ia32_storedqusi256_mask.
26157         (_mm_mask_storeu_epi32): Pass int * to
26158         __builtin_ia32_storedqusi128_mask.
26159         * config/i386/i386-builtin-types.def (PCSHORT): New.
26160         (PINT64): Likewise.
26161         (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
26162         (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
26163         (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
26164         (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
26165         (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
26166         (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
26167         (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
26168         (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
26169         (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
26170         (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
26171         (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
26172         (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
26173         (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
26174         (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
26175         (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
26176         (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
26177         (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
26178         (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
26179         (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
26180         (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
26181         (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
26182         (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
26183         (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
26184         (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
26185         (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
26186         (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
26187         (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
26188         (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
26189         (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
26190         (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
26191         (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
26192         (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
26193         (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
26194         (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
26195         (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
26196         (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
26197         (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
26198         (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
26199         (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
26200         (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
26201         (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
26202         (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
26203         (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
26204         (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
26205         (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
26206         (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
26207         (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
26208         (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
26209         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
26210         use UNSPEC_STOREU.
26211         (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
26212         (ix86_avx256_split_vector_move_misalign): Don't use unaligned
26213         load nor store.
26214         (ix86_expand_vector_move_misalign): Likewise.
26215         (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
26216         to scalar function prototype for unaligned load/store builtins.
26217         (ix86_expand_special_args_builtin): Updated.
26218         * config/i386/sse.md (UNSPEC_LOADU): Removed.
26219         (UNSPEC_STOREU): Likewise.
26220         (VI_ULOADSTORE_BW_AVX512VL): Likewise.
26221         (VI_ULOADSTORE_F_AVX512VL): Likewise.
26222         (ssescalarsize): Handle V4TI, V2TI and V1TI.
26223         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
26224         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
26225         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
26226         (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
26227         (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
26228         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
26229         (sse2_avx_avx512f>_storedqu<mode>): Likewise.
26230         (<avx512>_storedqu<mode>_mask): Likewise.
26231         (*sse4_2_pcmpestr_unaligned): Likewise.
26232         (*sse4_2_pcmpistr_unaligned): Likewise.
26233         (*mov<mode>_internal): Renamed to ...
26234         (mov<mode>_internal): This.  Remove check of AVX and IAMCU on
26235         misaligned operand.  Replace vmovdqu64 with vmovdqu<ssescalarsize>.
26236         (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
26237         (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
26239 2016-04-19  Richard Biener  <rguenther@suse.de>
26241         PR tree-optimization/70171
26242         * tree-ssa-phiprop.c: Include stor-layout.h.
26243         (phiprop_insert_phi): Handle the aggregate copy case.
26244         (propagate_with_phi): Likewise.
26246 2016-04-19  Uros Bizjak  <ubizjak@gmail.com>
26248         * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
26249         instead of simplify_gen_subreg (... , 0).
26250         (ix86_delegitimize_address): Ditto.
26251         (ix86_split_divmod): Ditto.
26252         (ix86_split_copysign_const): Ditto.
26253         (ix86_split_copysign_var): Ditto.
26254         (ix86_expand_args_builtin): Ditto.
26255         (ix86_expand_round_builtin): Ditto.
26256         (ix86_expand_special_args_builtin): Ditto.
26257         * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
26258         (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
26259         (udivmodqi4): Ditto.
26260         (absneg splitters): Ditto.
26261         (*jcc_bt<mode>_1): Ditto.
26263 2016-04-19  Richard Biener  <rguenther@suse.de>
26265         PR tree-optimization/70724
26266         * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
26267         restoring out from ...
26268         (free_scc_vn): ... here.
26269         * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
26270         * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
26271         tail merging.
26272         (pass_fre::execute): Restore SSA info.
26274 2016-04-19  Richard Biener  <rguenther@suse.de>
26276         * gimple-walk.h (struct walk_stmt_info): Add stmt member.
26277         * gimple-walk.c (walk_gimple_op): Initialize it.
26278         (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
26279         * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
26280         remapping SSA names of defs.
26281         (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
26282         adjustment.
26284 2016-04-18  Vladimir Makarov  <vmakarov@redhat.com>
26286         PR middle-end/70689
26287         * lra-constraints.c (equiv_substition_p): New.
26288         (process_alt_operands): Use it.
26289         (swap_operands): Swap it.
26290         (curr_insn_transform): Update it.
26292 2016-04-18  Michael Matz  <matz@suse.de>
26294         * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
26295         (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
26296         * tree-core.h (tree_type_common.align): Use bit-field.
26297         (tree_type_common.spare): New.
26298         (tree_decl_common.off_align): Make smaller.
26299         (tree_decl_common.align): Use bit-field.
26301         * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
26302         * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
26303         (scan_sharing_clauses): Ditto.
26304         (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
26305         (omp_finish_file): Ditto.
26306         * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
26307         (layout_decl): Ditto.
26308         (relayout_decl): Ditto.
26309         (finalize_record_size): Use SET_TYPE_ALIGN.
26310         (finalize_type_size): Ditto.
26311         (finish_builtin_struct): Ditto.
26312         (layout_type): Ditto.
26313         (initialize_sizetypes): Ditto.
26314         * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
26315         * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
26316         (lookup_field_for_decl): Use SET_DECL_ALIGN.
26317         (get_chain_field): Ditto.
26318         (get_trampoline_type): Ditto.
26319         (get_nl_goto_field): Ditto.
26320         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
26321         SET_DECL_ALIGN.
26322         (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
26323         * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
26324         * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
26325         (build_qualified_type): Use SET_TYPE_ALIGN.
26326         (build_aligned_type, build_range_type_1): Ditto.
26327         (build_atomic_base): Ditto.
26328         (build_common_tree_nodes): Ditto.
26329         * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
26330         (expand_one_stack_var_at): Ditto.
26331         * coverage.c (build_var): Use SET_DECL_ALIGN.
26332         * except.c (init_eh): Ditto.
26333         * function.c (assign_parm_setup_block): Ditto.
26334         * symtab.c (increase_alignment_1): Ditto.
26335         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
26336         * tree-vect-stmts.c (ensure_base_align): Ditto.
26337         * varasm.c (align_variable): Ditto.
26338         (assemble_variable): Ditto.
26339         (build_constant_desc): Ditto.
26340         (output_constant_def_contents): Ditto.
26342         * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
26343         * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
26344         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
26345         * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
26346         * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
26348 2016-04-18  H.J. Lu  <hongjiu.lu@intel.com>
26350         PR target/70708
26351         * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
26352         replace %vmovsd with "%vmovq".
26353         (vec_concatv2df): Likewise.
26355 2016-04-18  Uros Bizjak  <ubizjak@gmail.com>
26357         * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
26358         (*vec_extractv2si_0): Ditto.
26359         * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
26360         (zero_extended_scalar_load_operand splitters): Ditto.
26361         (vec_extract splitters): Ditto.
26362         (*vec_extractv4si_0_zext): Ditto.
26363         (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
26364         and lowpart_subreg.
26365         (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
26366         (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
26367         (*sse4_1_extractps): Use lowpart_subreg.
26368         * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
26370 2016-04-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26372         * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
26373         gld requirements.
26374         (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
26375         Mention Solaris 11 packaging changes.
26376         Update gas and gld requirements.
26377         Remove reference to pre-Solaris 10 bug.
26378         (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
26379         systems and bugs.
26380         (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
26381         with cc.
26383 2016-04-17  Jan Hubicka  <jh@suse.cz>
26385         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
26386         max_loop_iterations_int.
26388 2016-04-18  Richard Biener  <rguenther@suse.de>
26390         PR tree-optimization/43434
26391         * tree-ssa-structalias.c (struct vls_data): New.
26392         (visit_loadstore): Handle all pointer-based accesses.
26393         (compute_dependence_clique): Compute a bitmap of restrict tags
26394         assigned bases and pass it to visit_loadstore.
26396 2016-04-18  Matthew Wahab  <matthew.wahab@arm.com>
26398         PR target/70711
26399         * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
26400         armv8.1-a and armv8.1-a+crc.
26402 2016-04-18  Richard Biener  <rguenther@suse.de>
26404         PR tree-optimization/70701
26405         * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
26406         references after translating through a memcpy.
26408 2016-04-18  Richard Biener  <rguenther@suse.de>
26410         * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
26411         (compute_antic): ... here.  For partial antic use regular
26412         postorder and scrap iteration.
26413         (compute_partial_antic_aux): Remove unused return value.
26414         (init_pre): Do not allocate postorder.
26415         (fini_pre): Do not free postorder.
26417 2016-04-18  Richard Biener  <rguenther@suse.de>
26419         PR middle-end/37870
26420         * expmed.c (extract_bit_field_1): Remove broken case
26421         using a wider MODE_INT mode.
26423 2016-04-18  Segher Boessenkool  <segher@kernel.crashing.org>
26425         * has-brig.c (lendian16): Don't try to use __builtin_bswap16
26426         unless compiling with at least GCC-4.8.
26428 2016-04-17  Jan Hubicka  <jh@suse.cz>
26430         PR bootstrap/70706
26431         * graphite.c (graphite_finalize): Update call to
26432         tree_estimate_probability.
26433         * predict.h (tree_estimate_probability): Update prototype.
26435 2016-04-17  Jan Hubicka  <jh@suse.cz>
26437         * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
26438         (tree_estimate_probability): Likewise.
26439         (pass_profile::execute): Update.
26440         (report_predictor_hitrates): New function.
26441         * profile.c (compute_branch_probabilities): Use it.
26442         * predict.h (report_predictor_hitrates): Declare.
26444 2016-04-17  Jan Hubicka  <jh@suse.cz>
26446         PR ipa/70018
26447         * cgraph.h (cgraph_node::set_const_flag,
26448         cgraph_node::set_pure_flag): Update prototype to return bool;
26449         update comment.
26450         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
26451         of interposable symbol are interposable, too.
26452         (cgraph_set_const_flag_1): Rename to ...
26453         (set_const_flag_1): ... this one; change to self recursive function
26454         instead of call_for_symbol_thunks_and_aliases. Handle correctly
26455         clearnig the flag in all variants and also virtual thunks of const
26456         functions are pure; track if any change was done.
26457         (cgraph_node::set_const_flag): Update.
26458         (struct set_pure_flag_info): New struct.
26459         (cgraph_set_pure_flag_1): Rename to ...
26460         (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
26461         rather than pointer encoded flags; track if any changes was done;
26462         handle correctly clearning flag and setting flag of aliases already
26463         declared const.
26464         (cgraph_node::set_pure_flag): Update.
26465         (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
26467 2016-04-17  Tom de Vries  <tom@codesourcery.com>
26469         PR other/70433
26470         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
26471         backslash in label.
26473 2016-04-17  Tom de Vries  <tom@codesourcery.com>
26475         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
26476         '{}<> ' as escape-for-record.
26478 2016-04-17  Tom de Vries  <tom@codesourcery.com>
26480         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
26481         structure.
26483 2016-04-17  Tom de Vries  <tom@codesourcery.com>
26485         PR other/70185
26486         * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
26487         * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
26488         * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
26489         * passes.c (finish_optimization_passes): Only call
26490         finish_graph_dump_file if dfi->graph_dump_initialized.
26491         (execute_function_dump, pass_init_dump_file): Use
26492         dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
26494 2016-04-17  Tom de Vries  <tom@codesourcery.com>
26496         PR tree-optimization/70256
26497         * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
26498         (debug_varmap): New function.
26500 2016-04-17  Tom de Vries  <tom@codesourcery.com>
26502         PR other/70183
26503         * passes.c (pass_manager::register_pass): Propagate pflags.
26505 2016-04-17  Tom de Vries  <tom@codesourcery.com>
26507         PR other/68875
26508         * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
26509         * passes.c (pass_manager::pass_manager): Declare and init p_start in
26510         INSERT_PASSES_AFTER.  Add pass parameter to TERMINATE_PASS_LIST, and
26511         check if it's equal to p_start.
26512         * passes.def: Add arguments to TERMINATE_PASS_LISTs.
26514 2016-04-15  Jan Hubicka  <jh@suse.cz>
26516         PR ipa/70018
26517         * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
26518         function does not bind to current def.
26519         * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
26520         handle conservatively calls to functions that does not need to bind
26521         to current def.
26522         (check_call): Update call of worse_state.
26523         (ignore_edge_for_nothrow): Update.
26524         (ignore_edge_for_pure_const): Likewise.
26525         (propagate_pure_const): Update calls to worse_state.
26526         (skip_function_for_local_pure_const): Reformat comments.
26528 2016-04-15  Jan Hubicka  <jh@suse.cz>
26530         PR ipa/70018
26531         * cgraph.c (cgraph_node::get_availability): Add REF parameter.
26532         (cgraph_node::function_symbol): Likewise.
26533         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
26534         * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
26535         (symtab_node::ultimate_alias_target): Add REF parameter.
26536         (symtab_node::binds_to_current_def_p): Declare.
26537         (symtab_node;:ultimate_alias_target_1): Add REF parameter.
26538         (cgraph_node::function_symbol): Likewise.
26539         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
26540         (cgraph_node::get_availability): Likewise.
26541         (cgraph_edge::binds_to_current_def_p): New inline function.
26542         (varpool_node::get_availability): Add REF parameter.
26543         (varpool_node::ultimate_alias_target): Likewise.
26544         * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
26545         (symtab_node::binds_to_current_def_p): Likewise.
26546         * varpool.c (varpool_node::get_availability): Likewise.
26548 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
26550         PR target/70662
26551         * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
26552         Fix mode size check.
26554 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
26556         * BASE-VER: Set to 7.0.0.
26558 2016-04-15  Alexander Monakov  <amonakov@ispras.ru>
26560         * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
26562 2016-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26564         * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
26565         architecture revisions.
26567 2016-04-15  Bernd Schmidt  <bschmidt@redhat.com>
26569         * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
26570         * config/i386/i386.c (ix86_using_red_zone): No longer static.
26571         * config/i386/i386.md (stack decrement to push peepholes): Guard
26572         with !x86_using_red_zone ().
26574 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
26576         PR c++/70675
26577         * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
26578         to dump_generic_node.
26579         (NIY): Pass also flags to do_niy.
26581 2016-04-15  Thomas Schwinge  <thomas@codesourcery.com>
26583         * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
26584         (simd_clone_vector_of_formal_parm_types)
26585         (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
26586         (simd_clone_mangle, simd_clone_create)
26587         (simd_clone_adjust_return_type, create_tmp_simd_array)
26588         (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
26589         (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
26590         (ipa_simd_modify_function_body, simd_clone_linear_addend)
26591         (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
26592         (pass_data_omp_simd_clone, class pass_omp_simd_clone)
26593         (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
26594         * omp-simd-clone.c: ... this new file.
26595         (simd_clone_vector_of_formal_parm_types): Make it static.
26596         * Makefile.in (OBJS): Add omp-simd-clone.o.
26598 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
26600         PR target/70662
26601         * config/i386/sse.md: Use proper memory operand modifiers.
26604 2016-04-15  Richard Biener  <rguenther@suse.de>
26605         Alan Modra  <amodra@gmail.com>
26607         PR tree-optimization/70130
26608         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
26609         when alignment stays not the same and no not use the realign
26610         scheme then.
26612 2016-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
26614         PR target/70669
26615         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
26616         direct move handlers for KFmode. Change TFmode handlers test from
26617         FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
26619 2016-04-14  Jakub Jelinek  <jakub@redhat.com>
26621         PR c++/70594
26622         * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
26623         * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
26624         (inlined_polymorphic_ctor_dtor_block_p): Use it.
26625         * tree-ssa-live.c (remove_unused_scope_block_p): When
26626         in_ctor_dtor_block, avoid discarding not just BLOCKs with
26627         BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
26628         block_ultimate_origin is FUNCTION_DECL.
26629         (remove_unused_locals): If current_function_decl is
26630         polymorphic_ctor_dtor_p, pass initial true to
26631         remove_unused_scope_block_p' is_ctor_dtor_block.
26633 2016-04-14  Martin Sebor  <msebor@redhat.com>
26635         PR c++/69517
26636         PR c++/70019
26637         PR c++/70588
26638         * doc/extend.texi (Variable Length): Revert.
26640 2016-04-14  Marek Polacek  <polacek@redhat.com>
26641             Jan Hubicka  <hubicka@ucw.cz>
26643         PR c++/70029
26644         * tree.c (verify_type): Disable the canonical type of main variant
26645         check.
26647 2016-04-14  Jason Merrill  <jason@redhat.com>
26649         * cfgexpand.c, expr.c: Revert previous change.
26651 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
26653         PR middle-end/70643
26654         * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
26655         when building a mem ref for the incoming reduction variable.
26657 2016-04-14  Richard Biener  <rguenther@suse.de>
26659         PR tree-optimization/70614
26660         * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
26661         loop if the evolution dropped to chrec_dont_know.
26662         (interpret_condition_phi): Likewise.
26664 2016-04-14  Richard Biener  <rguenther@suse.de>
26666         PR tree-optimization/70623
26667         * tree-ssa-pre.c (changed_blocks): Make global ...
26668         (compute_antic): ... local here.  Move and fix worklist
26669         handling here.  Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
26670         (compute_antic_aux): Add dumping for MAX assumed succs.  Remove
26671         worklist handling, dump when ANTIC_IN changed.
26672         (compute_partial_antic_aux): Remove worklist handling.
26673         (init_pre): Do not compute post dominators.  Add a comment about
26674         the CFG order chosen.
26675         (fini_pre): Do not free post dominators.
26677 2016-04-13  Martin Sebor  <msebor@redhat.com>
26679         PR c++/69517
26680         PR c++/70019
26681         PR c++/70588
26682         * doc/extend.texi (Variable Length): Document C++ specifics.
26684 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
26686         PR c++/70641
26687         * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
26688         on all recursive call stmts.  Return TODO_cleanup_cfg if any dead
26689         eh edges have been purged.
26691         PR c++/70594
26692         * tree-sra.c (create_access_replacement,
26693         get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
26694         gets fancy name.
26695         * tree-pretty-print.c (dump_fancy_name): New function.
26696         (dump_decl_name, dump_generic_node): Use it.
26698 2016-04-13  Jason Merrill  <jason@redhat.com>
26700         * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
26701         * expr.c (expand_expr_real_1): Likewise.
26703 2016-04-13  Ilya Enkovich  <ilya.enkovich@intel.com>
26705         * config/i386/i386.md (kunpckhi): Swap operands.
26706         (kunpcksi): Likewise.
26707         (kunpckdi): Likewise.
26708         * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
26709         (vec_pack_trunc_<mode>): Likewise.
26711 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
26713         PR debug/70628
26714         * explow.c (convert_memory_address_addr_space_1): Formatting fix.
26716         PR middle-end/70633
26717         * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
26718         gimplification turns some element into non-constant.
26720         PR debug/70628
26721         * rtl.h (convert_memory_address_addr_space_1): New prototype.
26722         * explow.c (convert_memory_address_addr_space_1): No longer static,
26723         add NO_EMIT argument and don't call convert_modes if true, pass
26724         it down recursively, remove break after return.
26725         (convert_memory_address_addr_space): Adjust caller.
26726         * simplify-rtx.c (simplify_unary_operation_1): Call
26727         convert_memory_address_addr_space_1 instead of convert_memory_address,
26728         if it returns NULL, don't simplify.
26730 2016-04-12  Eric Botcazou  <ebotcazou@adacore.com>
26732         PR target/70630
26733         * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
26735 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
26737         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
26738         Bump the upper SIMDLEN limits, so that if the return type or
26739         characteristic type if the return type is void can be passed in
26740         all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
26741         allowed.
26743 2016-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
26745         PR target/70640
26746         * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
26747         Do not use "=" constraint on an input constraint.
26748         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
26749         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
26750         (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
26751         generates (neg (abs ...)) instead of (abs ...).
26753 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
26755         PR rtl-optimization/70596
26756         * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
26757         just invalidate LRA data and reset them.  Adjust dump wording.
26759 2016-04-12  Martin Liska  <mliska@suse.cz>
26761         Revert
26762         2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
26764         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
26765         estimates here.
26766         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
26767         max_loop_iterations_int.
26768         (tree_unswitch_outer_loop): Likewise.
26769         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
26770         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
26772 2016-04-12  Tom de Vries  <tom@codesourcery.com>
26774         PR tree-optimization/68756
26775         * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
26776         instead of new_name.
26778 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
26780         PR tree-optimization/70602
26781         * tree-sra.c (generate_subtree_copies): Don't write anything into
26782         constant pool decls.
26784         * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
26785         regardless whether there are depend clauses or not.
26787 2016-04-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
26789         PR target/70381
26790         * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
26791         target attribute and pragma from changing the -mfloat128
26792         and -mfloat128-hardware options.
26794         * doc/extend.texi (Additional Floating Types): Document PowerPC
26795         __float128 restrictions.
26797 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
26799         PR target/70133
26800         * config/aarch64/driver-aarch64.c
26801         (aarch64_get_extension_string_for_isa_flags): New.
26802         (arch_extension): Rename to...
26803         (aarch64_arch_extension): ...This.
26804         (ext_to_feat_string): Rename to...
26805         (aarch64_extensions): ...This.
26806         (aarch64_core_data): Keep track of architecture extension flags.
26807         (cpu_data): Rename to...
26808         (aarch64_cpu_data): ...This.
26809         (aarch64_arch_driver_info): Keep track of architecture extension
26810         flags.
26811         (get_arch_name_from_id): Rename to...
26812         (get_arch_from_id): ...This, change return type.
26813         (host_detect_local_cpu): Update and reformat for renames, handle
26814         extensions through common infrastructure.
26816 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
26818         PR target/70133
26819         * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
26820         track of a canonical flag name.
26821         (all_extensions): Likewise.
26822         (arch_to_arch_name): Also track extension flags enabled by the arch.
26823         (all_architectures): Likewise.
26824         (aarch64_parse_extension): Move to here.
26825         (aarch64_get_extension_string_for_isa_flags): Take a new argument,
26826         rework.
26827         (aarch64_rewrite_selected_cpu): Update for above change.
26828         * config/aarch64/aarch64-option-extensions.def: Rework the way flags
26829         are handled, such that the single explicit value enabled by an
26830         extension is kept seperate from the implicit values it also enables.
26831         * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
26832         to here.
26833         (aarch64_parse_extension): New.
26834         * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
26835         here to config/aarch64/aarch64-protos.h.
26836         (aarch64_parse_extension): Move from here to
26837         common/config/aarch64/aarch64-common.c.
26838         (aarch64_option_print): Update.
26839         (aarch64_declare_function_name): Likewise.
26840         (aarch64_start_file): Likewise.
26841         * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
26842         the canonical flag for extensions.
26843         * config.gcc (aarch64*-*-*): Extend regex for capturing extension
26844         flags.
26846 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
26848         * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
26849         AARCH64_FL_CRC.
26851 2016-04-09  Tom de Vries  <tom@codesourcery.com>
26853         PR tree-optimization/68953
26854         * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
26855         first to last subscript.
26857 2016-04-09  Jakub Jelinek  <jakub@redhat.com>
26859         PR tree-optimization/70586
26860         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
26861         for any calls.
26863 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
26865         PR lto/70289
26866         PR ipa/70348
26867         PR tree-optimization/70373
26868         PR middle-end/70533
26869         PR middle-end/70534
26870         PR middle-end/70535
26871         * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
26872         clauses for acc parallel reductions as necessary.  Error on those
26873         that are private.
26874         * omp-low.c (scan_sharing_clauses): Don't install variables which
26875         are used in acc parallel reductions.
26876         (lower_rec_input_clauses): Remove dead code.
26877         (lower_oacc_reductions): Add support for reference reductions.
26878         (lower_reduction_clauses): Remove dead code.
26879         (lower_omp_target): Don't remap variables appearing in acc parallel
26880         reductions.
26881         * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
26883 2016-04-08  Jakub Jelinek  <jakub@redhat.com>
26885         PR middle-end/70593
26886         * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
26887         with multiple SSA_NAME defs, force the outputs other than first
26888         to be live before calling live_track_process_def on each output.
26890         PR rtl-optimization/70574
26891         * fwprop.c (forward_propagate_and_simplify): Don't add
26892         REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
26893         (try_fwprop_subst): Don't add REG_EQUAL note if there are any
26894         paradoxical subregs within *loc.
26896 2016-04-08  Thomas Schwinge  <thomas@codesourcery.com>
26898         * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
26899         -ftree-parallelize-loops={0,1}.
26900         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
26901         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
26902         * config/ia64/hpux.h (LIB_SPEC): Likewise.
26903         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
26904         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
26906 2016-04-08  Maxim Ostapenko  <m.ostapenko@samsung.com>
26908         PR sanitizer/70541
26909         * asan.c (instrument_derefs): If we get unknown location, extract it
26910         with EXPR_LOCATION.
26911         (maybe_instrument_call): Instrument gimple_call's arguments if needed.
26913 2016-04-08  Tom de Vries  <tom@codesourcery.com>
26915         * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
26916         implicit firstprivate clause.
26918 2016-04-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26920         PR target/70566
26921         * config/arm/thumb2.md (tst + branch-> lsls + branch
26922         peephole below *orsi_not_shiftsi_si): Require that condition
26923         register is dead after the peephole.
26924         (second peephole after the above): Likewise.
26926 2016-04-08  Alan Modra  <amodra@gmail.com>
26928         PR target/70117
26929         * builtins.c (fold_builtin_classify): For IBM extended precision,
26930         look at just the high-order double to test for NaN.
26931         (fold_builtin_interclass_mathfn): Similarly for Inf.  For isnormal
26932         test just the high double for Inf but both doubles for subnormal
26933         limit.
26935 2016-04-07  Jakub Jelinek  <jakub@redhat.com>
26937         * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
26938         * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
26939         node->simdclone->mask_mode != VOIDmode masks.
26940         (simd_clone_adjust_argument_types): Likewise.  Move sc var definition
26941         earlier, use it instead of node->simdclone.
26942         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
26943         Set clonei->mask_mode.
26945 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
26947         PR c/70436
26948         * parser.c (cp_parser_iteration_statement): New parameter IF_P.
26949         Pass it through to cp_parser_already_scoped_statement.
26950         (cp_parser_already_scoped_statement): New parameter IF_P.  Pass
26951         it through to cp_parser_statement.
26952         (cp_parser_statement): Pass IF_P through to
26953         cp_parser_iteration_statement.
26954         (cp_parser_pragma): Adjust call to
26955         cp_parser_iteration_statement.
26957 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
26959         PR c/70436
26960         * gimplify.c (gimplify_omp_ordered): Add explicit braces to
26961         resolve a future -Wparentheses warning.
26962         * omp-low.c (scan_sharing_clauses): Likewise.
26963         * tree-parloops.c (eliminate_local_variables): Likewise.
26965 2016-04-06  Vladimir Makarov  <vmakarov@redhat.com>
26967         PR rtl-optimization/70398
26968         * lra-constraints.c (process_address_1): Check zero scale and code
26969         for reloading with zero scale.
26971 2016-04-06  Uros Bizjak  <ubizjak@gmail.com>
26973         * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
26974         (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
26976 2016-04-06  Jakub Jelinek  <jakub@redhat.com>
26978         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
26979         Add support for AVX512F clones, include them by default for
26980         exported OpenMP declare simd functions.  For AVX2 allow simdlen 32
26981         and use it if charasteric type is 8-bit, for AVX512F allow simdlen
26982         up to 128.
26984         PR middle-end/70550
26985         * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
26986         * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
26987         firstprivate clauses.
26988         * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
26989         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
26990         (lower_omp_target): Set TREE_NO_WARNING for
26991         non-addressable possibly uninitialized vars which are copied into
26992         addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
26994 2016-04-05  John David Anglin  <danglin@gcc.gnu.org>
26996         * config/pa/predicates.md (integer_store_memory_operand): Accept
26997         REG+D operands with a large offset when reload_in_progress is true.
26998         (floating_point_store_memory_operand): Likewise.
27000 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
27002         PR c++/70336
27003         * match.pd (nested int casts): Limit to GIMPLE.
27005 2016-04-05  Jan Hubicka  <hubicka@ucw.cz>
27007         PR ipa/66223
27008         * ipa-devirt.c (maybe_record_node): Fix comment; use
27009         SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
27011 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
27013         PR rtl-optimization/70542
27014         * ree.c (add_removable_extension): For VECTOR_MODE_P punt
27015         if there are any uses other than insn or debug insns.
27017 2016-04-05  Marc Glisse  <marc.glisse@inria.fr>
27018             Jakub Jelinek  <jakub@redhat.com>
27020         PR tree-optimization/70509
27021         * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
27022         Shift HOST_WIDE_INT_1U instead of 1.
27024 2016-04-05  Zdenek Sojka  <zsojka@seznam.cz>
27026         PR tree-optimization/70509
27027         * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
27028         of the vector base type for index.
27030 2016-04-05  Uros Bizjak  <ubizjak@gmail.com>
27032         PR target/70510
27033         * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
27035 2016-04-05  Richard Biener  <rguenther@suse.de>
27037         PR tree-optimization/70526
27038         * tree-sra.c (build_ref_for_offset): Use prev_base to
27039         extract the alias pointer type.
27041 2016-04-05  Richard Biener  <rguenther@suse.de>
27043         * dse.c (struct store_info): Remove alias_set member.
27044         (struct read_info_type): Likewise.
27045         (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
27046         spill_deleted, clear_alias_set_lookup): Remove.
27047         (get_group_info): Remove dead base == NULL_RTX case.
27048         (dse_step0): Remove initialization of removed variables.
27049         (delete_dead_store_insn): Reomve alias set dumping.
27050         (free_read_records): Remove alias_set handling.
27051         (canon_address): Remove alias_set_out parameter.
27052         (record_store): Remove spill_alias_set, it's always zero.
27053         (check_mem_read_rtx): Likewise.
27054         (dse_step2): Rename from ...
27055         (dse_step2_nospill): ... this.  Adjust.
27056         (scan_stores): Rename from ...
27057         (scan_stores_nospill): ... this.
27058         (scan_reads): Rename from ...
27059         (scan_reads_nospill): ... this.
27060         (scan_stores_spill, scan_reads_spill): Remove.
27061         (dse_step3_scan): Remove for_spills argument which is always false.
27062         (dse_step3): Likewise.
27063         (dse_step5): Rename from ...
27064         (dse_step5_nospill): ... this.  Remove alias_set handling.
27065         (rest_of_handle_dse): Adjust.
27067 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
27069         PR target/70525
27070         * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
27071         Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
27072         V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
27073         (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
27075 2016-04-05  Richard Biener  <rguenther@suse.de>
27077         PR middle-end/70499
27078         * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
27079         non-register type temporaries into SSA.
27081 2016-04-04  Jan Hubicka  <hubicka@ucw.cz>
27083         PR ipa/66223
27084         * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
27085         calls when sanitizing.
27086         (possible_polymorphic_call_target_p): Fix formatting.
27088 2016-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27089             Jakub Jelinek  <jakub@redhat.com>
27091         PR middle-end/70457
27092         * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
27093         to ensure a call statement is compatible with a built-in's
27094         prototype.
27095         * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
27096         Likewise.
27098 2016-04-04  Richard Biener  <rguenther@suse.de>
27100         PR rtl-optimization/70484
27101         * rtl.h (canon_output_dependence): Declare.
27102         * alias.c (canon_output_dependence): New function.
27103         * dse.c (record_store): Use canon_output_dependence rather
27104         than canon_true_dependence.
27106 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
27108         PR ipa/68881
27109         * cgraph.h (symtab_node::copy_visibility_from): New function.
27110         * symtab.c (symtab_node::copy_visibility_from): New function.
27111         * ipa-visibility.c (optimize_weakref): New function.
27112         (function_and_variable_visibility): Use it.
27114 2016-04-04  Martin Liska  <mliska@suse.cz>
27116         PR hsa/70402
27117         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
27118         value that is really in range handled by SBR instruction.
27119         * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
27120         * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
27121         * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
27123 2016-04-03  Oleg Endo  <olegendo@gcc.gnu.org>
27125         PR target/70416
27126         PR target/67391
27127         * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
27128         set, but not for SP_REG operands.
27130 2016-04-02  Martin Sebor  <msebor@redhat.com>
27132         PR c++/67376
27133         * fold-const.c (maybe_nonzero_address): New function.
27134         (fold_comparison): Call it.  Fold equality and relational
27135         expressions involving null pointers.
27136         (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
27138 2016-03-31  Evandro Menezes  <e.menezes@samsung.com>
27140         Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
27141         the "Y" constraint (scalar FP 0.0 immediate).
27143         * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
27144         Add the "const_double" to the list of operand constraints.
27146 2016-04-01  Jakub Jelinek  <jakub@redhat.com>
27148         PR rtl-optimization/70467
27149         * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
27150         If low word of the last operand is 0, just emit addition/subtraction
27151         for the high word.
27153 2016-04-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
27155         PR target/70404
27156         * config/s390/s390.c (s390_expand_insv): Check for everything
27157         constant instead of just VOIDmode stuff.
27159 2016-04-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27161         PR target/70496
27162         * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
27164 2016-04-01  Nathan Sidwell  <nathan@acm.org>
27166         * tree.def (TRY_CATCH_EXPR): Correct documentation.
27168 2016-03-31  Vladimir Makarov  <vmakarov@redhat.com>
27170         PR rtl-optimization/70461
27171         * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
27172         is necessary.
27174 2016-03-31  Martin Liska  <mliska@suse.cz>
27176         PR hsa/70399
27177         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
27178         a tree value or an immediate integer value to a buffer
27179         that is eventually copied to a BRIG section.
27180         (emit_immediate_operand): Call the function here.
27181         * hsa-dump.c (dump_hsa_immed): Remove checking assert.
27182         * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
27183         of class' fields that are removed.
27184         (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
27185         * hsa.h (class hsa_op_immed): Remove m_brig_repr and
27186         m_brig_repr_size fields.
27188 2016-03-31  Martin Liska  <mliska@suse.cz>
27190         PR hsa/70391
27191         * hsa-gen.c (hsa_function_representation::update_dominance): New
27192         function.
27193         (convert_addr_to_flat_segment): Likewise.
27194         (gen_hsa_memory_set): New alignment argument.
27195         (gen_hsa_ctor_assignment): Likewise.
27196         (gen_hsa_insns_for_single_assignment): Provide alignment
27197         to gen_hsa_ctor_assignment.
27198         (gen_hsa_insns_for_direct_call): Add new argument.
27199         (expand_lhs_of_string_op): New function.
27200         (expand_string_operation_builtin): Likewise.
27201         (expand_memory_copy): New function.
27202         (expand_memory_set): New function.
27203         (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
27204         (convert_switch_statements): Change signature.
27205         (generate_hsa): Use a return value of the function.
27206         (pass_gen_hsail::execute): Do not call
27207         convert_switch_statements here.
27208         * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
27209         * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
27210         (hsa_function_representation::update_dominance): New function.
27212 2016-03-31  Martin Liska  <mliska@suse.cz>
27214         PR hsa/70391
27215         * hsa-brig.c (emit_directive_variable): Emit alignment
27216         according to hsa_symbol::m_align.
27217         * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
27218         (dump_hsa_symbol): Dump alignment of HSA symbols.
27219         * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
27220         (gen_hsa_addr_with_align): New function.
27221         (hsa_bitmemref_alignment): Use newly added function.
27222         (gen_hsa_insns_for_load): Likewise.
27223         (gen_hsa_insns_for_store): Likewise.
27224         (gen_hsa_memory_copy): New argument added.
27225         (gen_hsa_insns_for_single_assignment): Respect
27226         alignment for assignments processed via gen_hsa_memory_copy.
27227         (gen_hsa_insns_for_direct_call): Likewise.
27228         (gen_hsa_insns_for_return): Likewise.
27229         (gen_function_def_parameters): Set default alignment.
27230         * hsa.c (hsa_object_alignment): New function.
27231         (hsa_byte_alignment): Pasted function.
27232         * hsa.h (hsa_symbol::m_align): New field.
27234 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
27236         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
27237         scratch field for goto case.
27239 2016-03-31  James Greenhalgh  <james.greenhalgh@arm.com>
27241         * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
27243 2016-03-31  Ilya Enkovich  <enkovich.gnu@gmail.com>
27245         PR target/70442
27246         * config/i386/i386.c (scalar_chain::convert_op): Fix description.
27247         (scalar_chain::convert_insn): Call convert_op for reg
27248         moves to handle undefined registers.
27250 2016-03-31  Nathan Sidwell  <nathan@acm.org>
27252         PR c++/70393
27253         * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
27254         Assert we don't want to move backwards.
27256 2016-03-31  Kirill Yukhin  <kirill.yukhin@intel.com>
27258         PR target/70453
27259         * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
27261 2016-03-31  Jakub Jelinek  <jakub@redhat.com>
27263         PR rtl-optimization/70460
27264         * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
27265         with operand from REG_LABEL_OPERAND, instead substitute
27266         SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
27267         Don't do anything for REG_NON_LOCAL_GOTO jumps.
27269 2016-03-31  Martin Liska  <mliska@suse.cz>
27271         * passes.c (execute_one_pass): Do not call
27272         todo_after for a discarded function.
27274 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
27276         * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
27277         (no_cost, infinite_cost): Initialize the new field.
27278         (get_computation_cost_at): Record setup cost.
27279         (determine_use_iv_cost_address): Skip cost computation for sub
27280         uses if we can estimate it without losing accuracy.
27282 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
27284         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
27285         estimates here.
27286         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
27287         max_loop_iterations_int.
27288         (tree_unswitch_outer_loop): Likewise.
27289         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
27290         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
27292 2016-03-30  Richard Biener  <rguenther@suse.de>
27294         PR middle-end/70450
27295         * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
27297 2016-03-30  Jakub Jelinek  <jakub@redhat.com>
27299         PR target/70421
27300         * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
27301         in gen_blendm expander.
27303 2016-03-30  Nick Clifton  <nickc@redhat.com>
27305         PR target/62254
27306         * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
27307         case where we are already provided with an SImode SUBREG.
27309 2016-03-30  H.J. Lu  <hongjiu.lu@intel.com>
27311         PR target/70439
27312         * config/i386/i386.c (ix86_expand_epilogue): Properly check
27313         conflict between DRAP register and __builtin_eh_return.
27315 2016-03-30  Michael Matz  <matz@suse.de>
27316             Richard Biener  <rguenther@suse.de>
27318         PR ipa/12392
27319         * ipa-polymorphic-call.c (struct type_change_info): Change
27320         speculative to an unsigned allowing to limit the work we do.
27321         (csftc_abort_walking_p): New inline function..
27322         (check_stmt_for_type_change): Limit the number of may-defs
27323         skipped for speculative devirtualization to
27324         max-speculative-devirt-maydefs.
27325         * params.def (max-speculative-devirt-maydefs): New param.
27326         * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
27328 2016-03-30  Mike Stump  <mrs@gcc.gnu.org>
27330         PR target/63890
27331         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
27332         and TARGET_MACHO.
27334 2016-03-30  Patrick Palka  <ppalka@gcc.gnu.org>
27336         PR tree-optimization/59124
27337         * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
27338         where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
27340 2016-03-29  Jeff Law  <law@redhat.com>
27342         * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
27344 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
27346         * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
27347         to HOST_WIDE_INT.
27349 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
27351         * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
27352         * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
27353         gcrt0.o if linking dynamically.
27355 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
27357         PR ipa/70283
27358         * ipa-devirt.c (methods_equal_p): New function.
27359         (compare_virtual_tables): Use it.
27360         * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
27361         * cgraphclones.c (clone_function_name_1): Use
27362         symbol_table::symbol_suffix_separator.
27363         * coverage.c (build_var): Likewise.
27364         * symtab.c (symbol_table::symbol_suffix_separator): New.
27366 2016-03-29  Jakub Jelinek  <jakub@redhat.com>
27368         PR rtl-optimization/70429
27369         * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
27370         (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
27371         mode != result_mode.
27373         PR c++/70353
27374         * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
27376         PR tree-optimization/70405
27377         * ssa-iterators.h (num_imm_uses): Add missing braces.
27379 2016-03-29  Vladimir Makarov  <vmakarov@redhat.com>
27381         PR rtl-optimization/68695
27382         * ira-color.c (allocno_copy_cost_saving): New.
27383         (improve_allocation): Use it.
27385 2016-03-29  Richard Henderson  <rth@redhat.com>
27387         PR middle-end/70355
27388         * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
27390 2016-03-29  Richard Biener  <rguenther@suse.de>
27392         PR middle-end/70424
27393         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
27394         use alignment returned by get_pointer_alignment_1 if it is
27395         bigger than BITS_PER_UNIT.
27396         * builtins.c (get_pointer_alignment_1): Do not return true
27397         for alignment extracted from SSA info.
27399 2016-03-28  James Bowman  <james.bowman@ftdichip.com>
27401         * config/ft32/ft32.opt (mnodiv): New.
27402         * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
27403         * doc/invoke.texi (FT32 Options -mnodiv): New.
27405 2016-03-28  Kirill Yukhin  <kirill.yukhin@intel.com>
27407         PR target/70406
27408         * config/i386/i386.md (define_split, andn): Fix modes.
27410 2016-03-26  Richard Biener  <rguenther@suse.de>
27411             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
27413         PR ipa/70366
27414         * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
27415         instead of
27416         TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
27417         as 2nd argument to cl_optimization_restore().
27419 2016-03-25  Richard Henderson  <rth@redhat.com>
27421         PR target/70120
27422         * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
27423         * config/aarch64/aarch64-protos.h: Declare it.
27424         * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
27426 2016-03-25  Alan Modra  <amodra@gmail.com>
27428         PR target/70052
27429         * config/rs6000/constraints.md (j): Simplify.
27430         * config/rs6000/predicates.md (easy_fp_constant): Exclude
27431         decimal float 0.D.
27432         * config/rs6000/rs6000.md (zero_fp): New mode_attr.
27433         (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
27434          mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
27435         in all constraint alternatives.
27436         (movtd_64bit_nodm): Delete "j" constraint alternative.
27438 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
27440         * tree-ssa-propagate.c: Enhance docs for
27441         SSA_PROP_NOT_INTERESTING.
27443 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
27445         * doc/extend.texi: Fix typo in documentation to pure attribute.
27447 2016-03-24  John David Anglin  <danglin@gcc.gnu.org>
27449         PR target/70319
27450         * config/pa/pa.md (bswapdi2): Use a scratch register.
27452 2016-03-24  Richard Henderson  <rth@redhat.com>
27454         PR middle-end/69845
27455         * fold-const.c (extract_muldiv_1): Correct test for multiplication
27456         overflow.
27458 2016-03-24  Uros Bizjak  <ubizjak@gmail.com>
27460         * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
27461         using ix86_expand_binary_operator instead of gen_andsi3.
27463 2016-03-24  Richard Biener  <rguenther@suse.de>
27465         PR tree-optimization/70396
27466         * tree-vect-stmts.c (vectorizable_comparison): Use
27467         get_vectype_for_scalar_type.
27469 2016-03-24  Richard Biener  <rguenther@suse.de>
27471         PR middle-end/70370
27472         * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
27473         with register bases.
27475 2016-03-24  Richard Biener  <rguenther@suse.de>
27477         PR tree-optimization/70372
27478         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
27479         build_all_ones_cst to also handle vector types correctly.
27481 2016-03-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
27483         PR target/70381
27484         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
27485         -mfloat128 here.
27487 2016-03-23  Marek Polacek  <polacek@redhat.com>
27489         PR c++/69884
27490         * doc/invoke.texi: Document -Wignored-attributes.
27492 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
27494         PR tree-optimization/69042
27495         * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
27496         parameter from 30 to 40.
27498 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
27500         PR tree-optimization/69042
27501         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
27502         for use with constant offset stripped in base.
27504 2016-03-23  Richard Biener  <rguenther@suse.de>
27506         PR middle-end/70251
27507         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
27508         mode compatibility check.
27509         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
27511 2016-03-23  Jeff Law  <law@redhat.com>
27513         PR tree-optimization/64058
27514         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
27515         CONFLICT_COUNT.
27516         (struct ssa_conflicts): Move up earlier in the file.
27517         (conflicts_, var_map_): New static variables.
27518         (initialize_conflict_count): New function to initialize the
27519         CONFLICT_COUNT field for each conflict pair.
27520         (compare_pairs): Lazily initialize the conflict count and use it
27521         as the first tie-breaker.
27522         (sort_coalesce_list): Add new arguments conflicts, map.  Initialize
27523         and wipe conflicts_ and map_ around the call to qsort.  Remove
27524         special case for 2 coalesce pairs.
27525         * bitmap.c (bitmap_count_unique_bits): New function.
27526         (bitmap_count_bits_in_word): New function, extracted from
27527         bitmap_count_bits.
27528         (bitmap_count_bits): Use bitmap_count_bits_in_word.
27529         * bitmap.h (bitmap_count_unique_bits): Declare it.
27531 2016-03-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
27533         PR target/69917
27534         * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
27535         transparent alias chain for decl assembler name.
27536         * config/sol2.c (solaris_assemble_visibility): Likewise.
27538 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27540         * config/arm/arm1020e.md (1020call_op): Reduce reservation
27541         duration.
27542         (v10_fdivs): Likewise.
27543         (v10_fdivd): Likewise.
27545 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27547         PR driver/70132
27548         * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
27549         to not call fclose twice on file.
27551 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
27553         PR tree-optimization/70354
27554         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
27555         oprnd0 is wider than oprnd1 and there is a cast from the wider
27556         type to oprnd1, mask it with the mask of the narrower type.
27558         PR target/70321
27559         * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
27560         Optimize TARGET_STV splitters, if high or low word of last argument
27561         is 0 or -1.
27563 2016-03-22  Jeff Law  <law@redhat.com>
27565         PR target/70232
27566         tree-ssa-threadbackward.c
27567         (fsm_find_control_statement_thread_paths): Correctly distinguish
27568         between old style jump threads vs FSM jump threads.
27570 2016-03-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
27572         PR target/70302
27573         * config/i386/i386.c (scalar_chain::convert_op): Support
27574         uninitialized register usage case.
27576 2016-03-22  Richard Biener  <rguenther@suse.de>
27578         PR middle-end/70251
27579         * genmatch.c (gen_transform): Adjust last parameter to a three-state
27580         int...
27581         (capture::gen_transform): ... to change behavior when substituting
27582         a condition into cond or not-cond expr context.
27583         (dt_simplify::gen_1): Adjust.
27584         * gimple-match-head.c: Include gimplify.h for unshare_expr.
27585         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
27586         last change and instead change to
27587         A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
27588         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
27590 2016-03-22  Anthony Green  <green@moxielogic.com>
27592         * config/moxie/moxiebox.h (CC1_SPEC): Define.  Fix endianness
27593         issue for moxiebox targets.
27594         (CC1PLUS_SPEC): Ditto.
27596 2016-03-22  Richard Biener  <rguenther@suse.de>
27598         PR middle-end/70333
27599         * fold-const.c (extract_muldiv_1): Properly perform multiplication
27600         in the wide type.
27602 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
27604         * config/i386/i386.c (def_builtin): Remove duplicated functionality.
27606 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
27608         PR target/70325
27609         * config/i386/i386.c (def_builtin): Handle
27610         OPTION_MASK_ISA_AVX512VL to be and-ed with other
27611         bits.
27612         (const struct builtin_description bdesc_special_args[]):
27613         Remove duplicate ISA bits.
27615 2016-03-22  Jakub Jelinek  <jakub@redhat.com>
27617         PR target/70329
27618         * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
27619         d.perm[i] for i >= d.nelt.  If not full_interleave, compute d.perm[i]
27620         in a way that works also for AVX512BW.
27622         PR target/70300
27623         * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
27624         instead of source if operands[1] is xmm16 and above and
27625         !TARGET_AVX512VL.  Use avx512f_vec_dupv16sf_1 instead of
27626         vec_interleave_lowv4sf if we need to unpack xmm16 and above.
27628         PR c++/70295
27629         * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
27630         on assign if (*from_p) is a comparison, set it to
27631         TREE_NO_WARNING (*from_p).
27633 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
27635         PR middle-end/70326
27636         * lra.c (restore_scratches): Ignore deleted insns.
27638 2016-03-21  Marc Glisse  <marc.glisse@inria.fr>
27639             Jakub Jelinek  <jakub@redhat.com>
27641         PR tree-optimization/70317
27642         * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
27643         to HONOR_NANS.
27645 2016-03-21  Uros Bizjak  <ubizjak@gmail.com>
27647         PR target/70327
27648         * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
27649         of ix86_expand_move.
27650         (movoi): Ditto.
27651         (movti): Use general_operand for operand 1 predicate.
27653 2016-03-21  Martin Liska  <mliska@suse.cz>
27655         * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
27656         insns.
27657         (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
27659 2016-03-21  Martin Liska  <mliska@suse.cz>
27661         PR ipa/70306
27662         * ipa-icf.c (sem_function::parse): Skip static
27663         constructors and destructors.
27665 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
27667         PR target/70296
27668         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
27669         function-like macro, peek following token(s) if it is followed
27670         by CPP_OPEN_PAREN token with optional padding in between, and
27671         if not, don't treat it like a macro.
27673 2016-03-21  Thomas Schwinge  <thomas@codesourcery.com>
27674             Alexander Monakov  <amonakov@ispras.ru>
27676         * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
27677         for the stabs debug format.
27679 2016-03-21  Richard Biener  <rguenther@suse.de>
27681         PR tree-optimization/70310
27682         * tree-vect-generic.c (expand_vector_condition): Fold the built
27683         condition.
27685 2016-03-21  Kirill Yukhin  <kirill.yukhin@intel.com>
27687         PR target/70293
27688         * config/i386/sse.md (define_insn "*vec_dup<mode>"/AVX2):
27689         Block third alternative for AVX-512VL target,
27691 2016-03-21  Martin Liska  <mliska@suse.cz>
27693         PR hsa/70234
27694         * hsa-brig.c (emit_function_directives): Mark unemitted
27695         global variables for emission.
27696         * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
27697         (get_symbol_for_decl): Likewise.
27698         * hsa.h (struct hsa_symbol): New flag.
27700 2016-03-21  Richard Biener  <rguenther@suse.de>
27702         PR tree-optimization/70288
27703         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
27704         we do not estimate unsimplified all-constant conditionals or
27705         switches as optimized away.
27707 2016-03-21  Andrey Belevantsev  <abel@ispras.ru>
27709         PR rtl-optimization/69102
27710         * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
27711         when we have a readonly dependency context.
27713 2016-03-18  Jeff Law  <law@redhat.com>
27715         PR rtl-optimization/70263
27716         * ira.c (memref_used_between_p): Assert we found END in the insn chain.
27717         (update_equiv_regs): When trying to move a store to after the insn
27718         that sets the source of the store, make sure the store occurs after
27719         the insn that sets the source of the store.  When successful note
27720         the REG_EQUIV note created in the dump file.
27722 2016-03-16  David Wohlferd  <dw@LimeGreenSocks.com>
27723             Bernd Schmidt  <bschmidt@redhat.com>
27725         * doc/extend.texi: Document more potential problems with basic asms.
27727 2016-03-18  Bernd Schmidt  <bschmidt@redhat.com>
27729         PR rtl-optimization/70278
27730         * lra-constraints.c (split_reg): Handle the case where biggest_mode is
27731         VOIDmode.
27733 2016-03-18  Jason Merrill  <jason@redhat.com>
27735         * calls.c (load_register_parameters): Fix zero size sibcall logic.
27737 2016-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
27739         * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
27740         values to 128b regs.
27742 2016-03-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
27744         PR tree-optimization/70252
27745         * tree-vect-stmts.c (supportable_widening_operation): Check resulting
27746         boolean vector has a proper number of elements.
27747         (supportable_narrowing_operation): Likewise.
27749 2016-03-18  Tom de Vries  <tom@codesourcery.com>
27751         PR ipa/70269
27752         * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
27754 2016-03-18  Jakub Jelinek  <jakub@redhat.com>
27756         * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
27757         instead of replace_rtx for DEBUG_INSNs.
27759 2016-03-18  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
27761         * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
27762         load type reservations.
27764 2016-03-17  John David Anglin  <danglin@gcc.gnu.org>
27766         PR target/70188
27767         * config/pa/constraints.md: Revert 2015-02-13 change.  Use
27768         define_constraint for "Q" and "T" constraints.
27770 2016-03-17  Evandro Menezes  <e.menezes@samsung.com>
27772         Tweak the pipeline model for Exynos M1
27774         * config/aarch64/aarch64.c (exynosm1_tunings):  Enable weak prefetching
27775         model.
27777 2016-03-17  David Malcolm  <dmalcolm@redhat.com>
27779         PR c/70264
27780         * diagnostic-show-locus.c (compatible_locations_p): Handle the case
27781         where one or both locations aren't within a line_map.
27783 2016-03-17  H.J. Lu  <hongjiu.lu@intel.com>
27785         PR driver/70192
27786         * opts.c (finish_options): Don't set flag_pie to the default if
27787         -fpic, -fPIC, -fno-pic or -fno-PIC is used.  Set flag_pic to 0
27788         if it is -1.
27790 2016-03-17  Joern Rennecke  <joern.rennecke@embecosm.com>
27792         * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
27793         true as ALL_REGS argument to replace_rtx.
27795 2016-03-17  Richard Biener  <rguenther@suse.de>
27797         PR debug/70271
27798         * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
27799         last.
27801 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
27803         PR target/70245
27804         * rtl.h (replace_rtx): Add ALL_REGS argument.
27805         * rtlanal.c (replace_rtx): Likewise.  If true, use REGNO
27806         equality and assert mode is the same, instead of just rtx pointer
27807         equality.
27808         * config/i386/i386.md (mov + arithmetics with load peephole): Pass
27809         true as ALL_REGS argument to replace_rtx.
27811 2016-03-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
27813         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
27814         for boolean vector with vector mode only.
27815         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
27817 2016-03-17  Nick Clifton  <nickc@redhat.com>
27819         PR target/70162
27820         * config/rx/rx.c (rx_print_integer): Print negative constants in
27821         decimal.
27823 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
27825         PR target/70261
27826         * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
27828 2016-03-16  Richard Henderson  <rth@redhat.com>
27829             Richard Biener  <rguenth@suse.de>
27831         PR middle-end/70240
27832         PR middle-end/68215
27833         PR tree-opt/68714
27834         * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
27835         first operand as is_gimple_condexpr.
27837         PR middle-end/70240
27838         PR middle-end/68215
27839         Revert r231575
27840         2015-12-11  Eric Botcazou  <ebotcazou@adacore.com>
27841         * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
27842         Do not gimplify the result.
27843         (do_unop): Adjust call to tree_vec_extract.
27844         (do_binop): Likewise.
27845         (do_compare): Likewise.
27846         (do_plus_minus): Likewise.
27847         (do_negate): Likewise.
27848         (expand_vector_condition): Likewise.
27849         (do_cond): Likewise.
27851 2016-03-16  Richard Henderson  <rth@redhat.com>
27853         PR target/70048
27854         * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
27855         (aarch64_classify_address): Use it.
27856         (aarch64_legitimize_address): Force all subexpressions of PLUS
27857         into registers.  Simplify as (sfp+const)+reg or (reg+reg)+const.
27859 2016-03-16  Jakub Jelinek  <jakub@redhat.com>
27860             Richard Biener  <rguenth@suse.de>
27862         PR target/70245
27863         * rtlanal.c (replace_rtx): For REG, if from is a REG,
27864         return to even if only REGNO is equal, and assert
27865         mode is the same.
27867 2016-03-11  Jeff Law  <law@redhat.com>
27869         PR rtl-optimization/70224
27870         * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
27872 2016-03-16  Richard Henderson  <rth@redhat.com>
27874         PR middle-end/70199
27875         * function.h (struct function): Add has_forced_label_in_static.
27876         * gimplify.c (force_labels_r): Set it.
27877         * lto-streamer-in.c (input_struct_function_base): Read it.
27878         * lto-streamer-out.c (output_struct_function_base): Write it.
27879         * tree-inline.c (has_label_address_in_static_1): Remove.
27880         (copy_forbidden): Remove fndecl parameter; test
27881         has_forced_label_in_static.
27882         (inline_forbidden_p): Update call to copy_forbidden.
27883         (tree_versionable_function_p): Likewise.
27884         * ipa-chkp.c (chkp_instrumentable_p): Likewise.
27885         (chkp_versioning): Likewise.
27886         * tree-inline.h (copy_forbidden): Update decl.
27888 2016-03-16  Marek Polacek  <polacek@redhat.com>
27890         PR c/70093
27891         * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
27892         function being thunked if the result type doesn't have fixed size.
27893         * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
27894         doesn't have fixed size.
27896 2016-03-16  Bin Cheng  <bin.cheng@arm.com>
27898         * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
27899         reporting malformed loop nest.
27901 2016-03-16  Tom de Vries  <tom@codesourcery.com>
27903         PR lto/70187
27904         * ipa-devirt.c (possible_polymorphic_call_targets): Move
27905         nodes.length () == 1 test to before first nodes[0] access.
27907 2016-03-16  Tom de Vries  <tom@codesourcery.com>
27909         PR tree-optimization/68715
27910         * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
27911         single_pred_p test.
27913 2016-03-16  Tom de Vries  <tom@codesourcery.com>
27915         PR tree-optimization/68809
27916         * graphite-scop-detection.c (same_close_phi_node): Test if result types
27917         are the same.
27919 2016-03-16  Carlos O'Donell  <carlos@redhat.com>
27920             Sandra Loosemore  <sandra@codesourcery.com>
27922         * doc/extend.texi (Common Function Attributes): Describe ifunc impact
27923         on leaf attribute. Mention ELF interposition problems.
27925 2016-03-16  Alan Modra  <amodra@gmail.com>
27927         PR rtl-optimization/69195
27928         PR rtl-optimization/47992
27929         * ira.c (indirect_jump_optimize): Ignore artificial defs.
27930         Add comments.
27932 2016-03-15  Eric Botcazou  <ebotcazou@adacore.com>
27934         PR bootstrap/69513
27935         * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
27937 2016-03-15  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
27939         * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
27941 2016-03-15  Jakub Jelinek  <jakub@redhat.com>
27943         PR rtl-optimization/70222
27944         * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
27945         optimization if mode is different from result_mode, queue up masking
27946         of the result in outer_op.  Formatting fix.
27948         PR middle-end/70239
27949         * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
27950         of safe_grow.
27952 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
27954         PR rtl-optimization/69032
27955         * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
27956         looping backwards over basic block insns.
27958 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
27960         PR target/66660
27961         * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
27962         to non-speculative when propagating trap bits.
27964 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
27966         PR rtl-optimization/63384
27967         * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
27968         DEBUG_INSN_P insns.
27970 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
27972         PR target/64411
27973         * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
27974         factored out from ...
27975         (sched_analyze_insn): ... here.
27976         * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
27977         * sel-sched-ir.c (setup_id_implicit_regs): New function, use
27978         get_implicit_reg_pending_clobbers in it.
27979         (setup_id_reg_sets): Use setup_id_implicit_regs.
27980         (deps_init_id): Ditto.
27982 2016-03-15  Tom de Vries  <tom@codesourcery.com>
27984         PR ipa/70161
27985         * cgraph.c (cgraph_node::get_body): Save, reset and restore
27986         dump_file_name.
27987         * passes.c (execute_one_ipa_transform_pass): Add missing argument to
27988         execute_function_dump.
27989         (execute_one_pass): Don't dump function if it will be dumped after ipa
27990         transform.
27992 2016-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
27994         * genrecog.c (match_pattern_2): If pred is NULL don't call
27995         safe_predicate_mode on it.
27997 2016-03-14  Jakub Jelinek  <jakub@redhat.com>
27999         PR middle-end/70219
28000         * lra-constraints.c (delete_move_and_clobber): Change assertion
28001         to also allow dregno == 0.
28003 2016-03-14  Richard Henderson  <rth@redhat.com>
28005         PR tree-opt/68714
28006         * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
28007         (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
28008         (reassociate_bb): Use optimize_vec_cond_expr; avoid
28009         optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
28010         on vectors.
28012 2016-03-14  Bernd Schmidt  <bschmidt@redhat.com>
28014         PR target/70083
28015         * lra-lives.c (process_bb_lives): Also update biggest mode for hard
28016         regs.
28017         (lra_create_live_ranges_1): initialize hard register biggest_mode to
28018         VOIDmode.
28019         * lra-constraints.c (split_reg): For hard regs, try to find the
28020         biggest single-register mode used in the function.
28022 2016-03-14  Richard Biener  <rguenther@suse.de>
28024         PR tree-optimization/56365
28025         * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
28026         constants to compare against.
28028 2016-03-14  Segher Boessenkool  <segher@kernel.crashing.org>
28030         PR target/70098
28031         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
28032         *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
28033         (define_split for the GPR case): Use int_reg_operand instead of
28034         gpc_reg_operand for the output.
28036 2016-03-14  Tom de Vries  <tom@codesourcery.com>
28038         PR tree-optimization/70045
28039         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
28040         create_empty_if_region_on_edge argument.
28042 2016-03-13  Eric Botcazou  <ebotcazou@adacore.com>
28044         * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
28045         (STACK_CHECK_PROTECT): Likewise.
28046         * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
28047         (STACK_CHECK_PROTECT): Likewise.
28048         * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
28049         (STACK_CHECK_PROTECT): Likewise.
28050         * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
28051         * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
28052         (STACK_CHECK_PROTECT): Likewise.
28054 2016-03-12  Andrey Belevantsev  <abel@ispras.ru>
28056         PR rtl-optimization/69307
28057         * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
28058         registers in modes that span more than one register.
28060 2016-03-12  Vladimir Makarov  <vmakarov@redhat.com>
28062         PR target/69614
28063         * lra-constraints.c (delete_move_and_clobber): New.
28064         (remove_inheritance_pseudos): Use it.
28066 2016-03-12  Eric Botcazou  <ebotcazou@adacore.com>
28068         PR ada/70017
28069         * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
28070         the libcall is LCT_THROW.
28071         * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
28072         for the checking routine.
28074 2016-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
28076         PR target/70131
28077         * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
28078         optimization if we have direct move.
28079         (roundu32<mode>2_fprs): Likewise.
28081 2016-03-11  Bernd Schmidt  <bschmidt@redhat.com>
28083         PR target/70123
28084         * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
28085         be rematerialized.
28086         (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
28087         Arguments swapped.  All callers changed.  Take reg_renumber into
28088         account, and Calculate and compare register ranges for hard regs.
28090 2016-03-11  Jeff Law  <law@redhat.com>
28092         PR tree-optimization/70190
28093         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
28094         Handle cases where we can not extract the taken edge, even though we
28095         found a constant value.
28097         PR tree-optimization/64058
28098         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
28099         (num_coalesce_pairs): Move up earlier in file.
28100         (find_coalesce_pair): Initialize the INDEX field for each pair
28101         discovered.
28102         (compare_pairs): No longer sort on the elements in each pair.
28103         Instead break ties with the index of the coalesce pair.
28105 2016-03-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28107         PR target/70002
28108         * config/aarch64/aarch64-protos.h
28109         (aarch64_save_restore_target_globals): New prototype.
28110         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
28111         Call the above when popping pragma.
28112         * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
28113         New function.
28114         (aarch64_set_current_function): Rewrite using the above.
28116 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
28118         PR tree-optimization/70177
28119         * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
28120         (extract_ops_from_tree): ... this.  In the 2 argument
28121         overload remove _1 suffix.
28122         * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
28123         (extract_ops_from_tree): ... this.
28124         * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
28125         Adjust callers.
28126         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
28127         * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
28128         extract_ops_from_tree instead of 2 operand one.
28130 2016-03-11  Alan Lawrence  <alan.lawrence@arm.com>
28132         PR tree-optimization/70013
28133         * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
28134         for constant-pool entries.
28136 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
28138         PR rtl-optimization/70174
28139         * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
28140         followed by gen_lowpart on force_reg instead of just gen_lowpart.
28142         PR tree-optimization/70169
28143         * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
28144         LABEL_DECL like VAR_DECL.  Emit nothing instead of gcc_unreachable
28145         for unknown codes.
28147 2016-03-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
28148             Jakub Jelinek  <jakub@redhat.com>
28150         PR target/70160
28151         * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
28152         of uninitialized values.
28154 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
28156         * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
28157         define_expand.
28158         ("*trunctddd2"): New pattern definition.
28159         ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
28160         TD->DD truncation.
28162 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
28164         * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
28165         definitions for BFP and DFP rounding modes.
28166         ("fixuns_truncdddi2", "fixuns_trunctddi2")
28167         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
28168         ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
28169         ("fix_trunctf<mode>2"): Use the new constants instead of magic
28170         numbers.
28172 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
28174         * config/s390/constraints.md: Adjust comment.
28175         ("Y"): Adjust comment.  Rename s390_decompose_shift_count to
28176         s390_decompose_addrstyle_without_index.
28177         * config/s390/predicates.md (shift_count_or_setmem_operand):
28178         Rename to setmem_operand.
28179         * config/s390/s390-protos.h
28180         (s390_decompose_shift_count): Rename to
28181         s390_decompose_addrstyle_without_index.
28182         * config/s390/s390.c (s390_decompose_shift_count)
28183         (s390_mem_constraint, print_shift_count_operand)
28184         (print_operand_address, print_operand): Rename
28185         s390_decompose_shift_count to
28186         s390_decompose_addrstyle_without_index and rename
28187         print_shift_count_operand to print_addrstyle_operand troughout the
28188         file.
28189         * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
28190         ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
28191         Rename shift_count_or_setmem_operand to setmem_operand.
28192         * config/s390/vx-builtins.md ("vec_insert<mode>")
28193         ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
28194         nonmemory_operand.
28196 2016-03-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28198         PR target/70168
28199         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
28200         Handle overlapping retval and newval.
28202 2016-03-10  Nick Clifton  <nickc@redhat.com>
28204         PR target/7044
28205         * config/aarch64/aarch64.c
28206         (aarch64_override_options_after_change_1): When forcing
28207         flag_omit_frame_pointer to be true, use a special value that can
28208         be detected if this function is called again, thus preventing
28209         flag_omit_leaf_frame_pointer from being forced to be false.
28211 2016-03-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28213         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
28214         Set x_flag_omit_leaf_frame_pointer when handling
28215         -momit-leaf-frame-pointer.
28217 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
28219         PR lto/69589
28220         * cgraph.c (cgraph_node::dump): Dump split_part and
28221         indirect_call_target.
28222         * cgraph.h (cgraph_node): Add indirect_call_target flag.
28223         * ipa.c (has_addr_references_p): Cleanup.
28224         (is_indirect_call_target_p): New.
28225         (walk_polymorphic_call_targets): Do not mark virtuals that may be
28226         called indirectly as local.
28227         (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
28229 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
28231         PR ipa/69630
28232         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
28233         on cxa_pure_virtual.
28235 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
28237         PR lto/69589
28238         * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
28240 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
28242         PR lto/69589
28243         * tree.c (need_assembler_name_p): Only record main variant type names.
28245 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
28247         PR target/70113.
28248         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
28249         Always define to 0 or 1.
28250         (TARGET_FIX_ERR_A53_843419): New macro.
28251         * config/aarch64/aarch64-elf-raw.h
28252         (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
28253         * config/aarch64/aarch64-linux.h: Likewise.
28254         * config/aarch64/aarch64.c
28255         (aarch64_override_options_after_change_1): Do not default
28256         aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
28257         843419 is on.
28258         (aarch64_attributes): Handle fix-cortex-a53-843419.
28259         (aarch64_can_inline_p): Likewise.
28260         * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
28262 2016-03-10  Alan Lawrence  <alan.lawrence@arm.com>
28263             Jakub Jelinek  <jakub@redhat.com>
28265         * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
28266         * tree.c (array_at_struct_end_p): Do not limit to size of decl for
28267         DECL_COMMONS if flag_unconstrained_commons is set.
28268         * tree-dfa.c (get_ref_base_and_extent): Likewise.
28269         * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
28270         (funconstrained-commons): Document.
28272 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
28274         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
28275         aarch64-fusion-pairs.def and aarch64-tuning-flags.def
28277 2016-03-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
28279         * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
28280         has a proper number of elements.
28282 2016-03-10  Alan Modra  <amodra@gmail.com>
28284         PR rtl-optimization/69195
28285         PR rtl-optimization/47992
28286         * ira.c (recorded_label_ref): Delete.
28287         (update_equiv_regs): Return void.
28288         (indirect_jump_optimize): New function.
28289         (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
28290         before regstat_compute_ri.  Don't rebuild_jump_labels here.
28291         Delete update_regstat.
28293 2016-03-10  Richard Biener  <rguenther@suse.de>
28295         PR tree-optimization/70128
28296         * tree-ssa-structalias.c (set_uids_in_ptset): Set
28297         vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
28299 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
28301         PR tree-optimization/70152
28302         * tree-sra.c (replace_removed_params_ssa_names): Copy over
28303         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
28305         PR target/70086
28306         * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
28307         instead of gen_sse2_loadlpd.
28308         * config/i386/sse.md (*vec_concatv2df): Rename to...
28309         (vec_concatv2df): ... this.
28311         PR tree-optimization/70127
28312         * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
28314 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
28316         PR c/68473
28317         PR c++/70105
28318         * diagnostic-show-locus.c (compatible_locations_p): New function.
28319         (layout::layout): Sanitize ranges using compatible_locations_p.
28321 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
28323         PR c/68473
28324         PR c++/70105
28325         * diagnostic-show-locus.c (layout_range::layout_range): Replace
28326         location_range param with three const expanded_locations * and a
28327         bool.
28328         (layout::layout): Replace call to
28329         rich_location::lazily_expand_location with get_expanded_location.
28330         Extract the range and perform location expansion here, passing
28331         the results to the layout_range ctor.
28332         * diagnostic.c (source_range::debug): Delete.
28333         * diagnostic.h (diagnostic_expand_location): Reimplement in terms
28334         of rich_location::get_expanded_location.
28335         * gcc-rich-location.c (get_range_for_expr): Delete.
28336         (gcc_rich_location::add_expr): Reimplement to avoid the
28337         rich_location::add_range overload that took a location_range,
28338         passing a location_t instead.
28340 2016-03-09  Richard Biener  <rguenther@suse.de>
28341         Jakub Jelinek  <jakub@redhat.com>
28343         PR tree-optimization/70138
28344         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
28345         Also skip vect_double_reduction_def.
28347 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
28349         PR target/70049
28350         * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
28351         if the operand is "m".
28353 2016-03-09  Nathan Sidwell  <nathan@acm.org>
28355         * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
28357 2016-03-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
28359         * config/i386/i386.c (processor_target_table): Fix cost table
28360         intialization order for znver1.
28362 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
28364         * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
28365         - becuase -> because.
28366         * ipa-reference.c (ignore_module_statics): Likewise.
28367         * cgraph.c (cgraph_node::get_body): Likewise.
28368         * ipa-inline.c (early_inliner): Likewise.
28369         * ipa-devirt.c (types_same_for_odr): Likewise.
28370         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
28371         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
28373 2016-03-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28375         * tree-ssa-math-opts.c: Fix typo in comment.
28377 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
28379         PR target/70110
28380         * config/i386/i386.c (scalar_chain::make_vector_copies,
28381         scalar_chain::convert_reg): Call end_sequence in between
28382         get_insns and emit_conversion_insns rather than after both
28383         calls.
28385 2016-03-07  Uros Bizjak  <ubizjak@gmail.com>
28387         PR target/70064
28388         * config/i386/i386.h (machine_function): Add
28389         pc_thunk_call_expanded flag.
28390         (ix86_pc_thunk_call_expanded): New define.
28391         * config/i386/i386.md (set_got, set_got_labelled): New expanders.
28392         (*set_got): Rename insn pattern from set_got.
28393         (*set_got_labelled): Rename inst pattern from set_got_labelled.
28394         * config/i386/i386.c (ix86_compute_frame_layout): Use
28395         ix86_pc_thunk_call_expanded to prevent red-zone.
28397 2016-03-07  Martin Jambor  <mjambor@suse.cz>
28399         * hsa.h (hsa_get_ctor_statements): Declare.
28400         (hsa_get_dtor_statements): Likewise.
28401         (hsa_get_kernel_dispatch_type): Likewise.
28402         * hsa.c (hsa_get_ctor_statements): New function.
28403         (hsa_get_dtor_statements): Likewise.
28404         (hsa_get_kernel_dispatch_type): Likewise.
28405         * hsa-brig.c (hsa_cdtor_statements): Removed.
28406         (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
28407         hsa_get_dtor_statements.
28408         * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
28409         (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
28411 2016-03-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
28413         * config/arm/arm-cores.def (cortex-r8): New.
28414         * config/arm/arm-tables.opt (cortex-r8): Regenerate.
28415         * config/arm/arm-tune.md: Likewise.
28416         * doc/invoke.texi: Add cortex-r8 to list of cpu values.
28418 2016-03-07  Martin Sebor  <msebor@redhat.com>
28420         PR rtl-optimization/19705
28421         * doc/invoke.texi (Options That Control Optimization): Clarify
28422         -fno-branch-count-reg.
28424 2016-02-26  Richard Biener  <rguenther@suse.de>
28425             Jeff Law  <law@redhat.com>
28427         PR tree-optimization/69740
28428         * cfghooks.c (remove_edge): Request loop fixups if we delete
28429         an edge that might turn an irreducible loop into a natural
28430         loop.
28431         * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
28432         Move after definition of loops_state_clear.
28434 2016-03-07  Bin Cheng  <bin.cheng@arm.com>
28436         PR rtl-optimization/69052
28437         * rtlanal.c (commutative_operand_precedence): Set higher precedence
28438         to CONST_WIDE_INT.
28440 2016-03-07  Tom de Vries  <tom@codesourcery.com>
28442         PR tree-optimization/70116
28443         * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
28444         is_tm_ending stmts and ubsan/asan internal functions.
28445         (find_duplicate): Use it.  Don't test is_tm_ending here.
28447 2016-03-07  Richard Biener  <rguenther@suse.de>
28449         PR tree-optimization/70115
28450         * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
28451         (propagate_constants_for_unrolling): Use replace_uses_by.
28453 2016-03-07  Nathan Sidwell  <nathan@codesourcery.com>
28455         PR middle-end/69916
28456         * omp-low.c (struct oacc_loop): Add ifns.
28457         (new_oacc_loop_raw): Initialize it.
28458         (finish_oacc_loop): Clear mask & flags if no ifns.
28459         (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
28460         (oacc_loop_xform_loop): Add ifns arg & adjust.
28461         (oacc_loop_process): Adjust oacc_loop_xform_loop call.
28463 2016-03-07  Richard Henderson  <rth@redhat.com>
28465         PR rtl-opt/70061
28466         * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
28467         (insert_value_copy_on_edge): Likewise.
28469 2016-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28471         * config/arm/arm_neon.h: Show error if using with soft-float ABI.
28473 2016-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28475         PR target/62281
28476         * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
28478 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
28480         * config/i386/i386.c (znver1_cost): Fix Multiply cost.
28482 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
28484         Fix sseimul type attribute.
28485         * config/i386/znver1.md
28486         (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
28487         znver1_sseimul_avx256_load) : Fix the type attribute.
28488         (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
28489         pipe usage and latency.
28491 2016-03-05  Jakub Jelinek  <jakub@redhat.com>
28493         PR c++/70084
28494         * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
28495         of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
28496         to the right type.
28498 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
28500         PR c/69973
28501         * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
28503         PR rtl-optimization/69941
28504         * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
28505         the reg share its mode.
28507 2016-03-04  Jeff Law  <law@redhat.com>
28509         PR tree-optimization/69196
28510         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
28511         If the both SSA_NAMEs are anonymous, then consider them unassociated
28512         and include the PHI in the statement count.
28514 2016-03-05  Tom de Vries  <tom@codesourcery.com>
28516         * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
28517         construct in oacc routine.  Check for oacc region in oacc routine.
28519 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
28521         PR target/70062
28522         * config/i386/i386.c (decide_alg): Add RECUR argument.  Revert
28523         2016-02-22 changes, instead don't recurse if RECUR is already true.
28524         Don't change *dynamic_check if RECUR.  Adjust recursive caller
28525         to pass true to the new argument.
28526         (ix86_expand_set_or_movmem): Adjust decide_alg caller.
28528         PR target/70059
28529         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
28530         <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
28531         fixes.
28532         (vec_set_hi_<mode><mask_name>): Likewise.  Swap VEC_CONCAT operands.
28534 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
28536         PR rtl-optimization/57676
28537         * lra-assigns.c (lra_assign): Guard test for maximum iterations
28538         with flag_checking.
28540 2016-03-04  Ilya Enkovich  <enkovich.gnu@gmail.com>
28542         * tree-vect-patterns.c (search_type_for_mask): Handle
28543         comparison of booleans.
28545 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
28547         * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
28548         Fix @xref usage.
28550         PR debug/69947
28551         * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
28552         all other ops that have dw_val_class_die_ref operands,
28553         and DW_OP_GNU_entry_value.
28555 2016-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28557         PR rtl-optimization/69904
28558         * config/arm/arm.c (arm_cannot_copy_insn_p):
28559         Return true for load-exclusive instructions.
28561 2016-03-03  Jakub Jelinek  <jakub@redhat.com>
28563         PR target/70021
28564         * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
28565         argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
28566         the pattern no matter if it is used just by non-pattern, pattern
28567         or mix thereof.
28568         (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
28569         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
28570         oprnd1 def_stmt is in pattern, don't look through it.
28572 2016-03-03  Marek Polacek  <polacek@redhat.com>
28574         PR middle-end/70050
28575         * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
28577 2016-03-03  Martin Liska  <mliska@suse.cz>
28579         PR tree-optimization/70043
28580         * tree-vect-loop.c (optimize_mask_stores): Move iterator to
28581         previous statement if we see a debug statement.
28583 2016-03-03  Richard Biener  <rguenther@suse.de>
28585         PR tree-optimization/55936
28586         * tree-vrp.c (compare_name_with_value): Add use_equiv_p
28587         parameter and guard unsafe equivalence use.
28588         (vrp_evaluate_conditional_warnv_with_ops): Always use
28589         safe equivalences but not via the quadratic compare_names
28590         helper.
28592 2016-03-03  Michael Collison  <michael.collison@linaro.org>
28594         PR target/70014
28595         * config/arm/arm.md (*subsi3_carryin_const): Change predicate
28596         for operand 1 to s_register_operand. Change predicate for operand
28597         2 to arm_not_immediate_operand.
28599 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
28601         * doc/tm.texi: Regenerated.
28603 2016-03-02  Richard Henderson  <rth@redhat.com>
28605         PR rtl-opt/67145
28606         * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
28607         simplification when all args are positive non-fixed registers.
28609 2016-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
28611         * target.def (lra_p): Specify that new ports should use LRA.
28613 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
28615         PR libgomp/69555
28616         * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
28617         gimplify_type_sizes the type they refer to.
28618         (omp_notice_variable): Handle reference vars to VLAs.
28619         * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
28620         reference to VLA decls in the second pass instead of first pass.
28622 2016-03-02  Tom de Vries  <tom@codesourcery.com>
28624         PR tree-optimization/68659
28625         * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
28626         new_expr == NULL_TREE.
28627         (get_new_name): Handle ADDR_EXPR.
28629 2016-03-02  Bin Cheng  <bin.cheng@arm.com>
28631         PR rtl-optimization/69052
28632         * loop-invariant.c (canonicalize_address): New function.
28633         (inv_can_prop_to_addr_use): Check validity of address expression
28634         which is canonicalized by above function.
28636 2016-03-02  Alan Modra  <amodra@gmail.com>
28638         PR ipa/69990
28639         * ipa-icf.c (sem_variable::merge): Do not merge an alias with
28640         larger alignment.
28642 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
28644         PR target/70028
28645         * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
28646         (*movhi_internal): Put mask moves from and to memory separately
28647         from moves from/to GPRs.
28649 2016-03-02  Richard Biener  <rguenther@suse.de>
28651         * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
28652         GENERIC expressions in GIMPLE.
28654 2016-03-02  Richard Biener  <rguenther@suse.de>
28656         * config/i386/i386.c (type_natural_mode): Fix typo.
28658 2016-03-02  Nick Clifton  <nickc@redhat.com>
28660         * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
28662 2016-03-02  Richard Biener  <rguenther@suse.de>
28663             Uros Bizjak  <ubizjak@gmail.com>
28665         PR target/67278
28666         * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
28668 2016-03-02  Richard Biener  <rguenther@suse.de>
28670         PR middle-end/67278
28671         * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
28673 2016-03-02  Marek Polacek  <polacek@redhat.com>
28675         PR c/67854
28676         * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
28677         "is promoted to" warning.
28679 2016-03-01  DJ Delorie  <dj@redhat.com>
28681         * config.gcc: Deprecate mep-*.
28683 2016-03-01  Vladimir Makarov  <vmakarov@redhat.com>
28685         PR middle-end/70025
28686         * lra-constraints.c (regno_val_use_in): New.
28687         (match_reload): Use it instead of regno_use_in.
28689 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
28691         PR rtl-optimization/70007
28692         * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
28693         references present in REG_EQUAL notes attached to non-SET patterns.
28695 2016-03-01  Jeff Law  <law@redhat.com>
28697         PR tree-optimization/69196
28698         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
28699         Appropriately clamp the number of statements to copy when the
28700         thread path does not traverse a loop backedge.
28702         PR tree-optimization/69196
28703         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
28704         Do count some PHIs in the thread path against the insn count.  Decrease
28705         final statement count by one as the control statement in the last
28706         block will get removed.  Remove special cased code for handling PHIs
28707         in the last block.
28709 2016-03-01  Uros Bizjak  <ubizjak@gmail.com>
28711         PR target/70027
28712         * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
28713         asm dialect alternatives to explicit GOTPCREL calls.
28715 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
28717         PR ada/70017
28718         * ira.c (do_reload): Issue warning for generic stack checking here...
28719         * reload1.c (reload): ...instead of here and streamline it.
28721 2016-03-01  Nick Clifton  <nickc@redhat.com>
28723         * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
28725 2016-03-01  Richard Biener  <rguenther@suse.de>
28727         PR tree-optimization/69983
28728         * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
28729         types and fall back to operand_equal_p.
28731 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
28733         Revert
28734         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
28736         * config/s390/constraints.md ("jm8"): New constraint.
28737         * config/s390/predicates.md ("const_int_8bitset_operand"): New
28738         predicate.
28739         * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
28740         into ...
28741         ("*setmem_long<setmem_and>"): New pattern.
28742         ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
28743         into ...
28744         ("*setmem_long_31z<setmem_and>"): New pattern.
28745         * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
28746         New substitution rules with the required attributes.
28749 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
28751         Revert
28752         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
28754         * gensupport.c (process_substs_on_one_elem): Split loop to
28755         complete mark_operands_used_in_match_dup on all expressions in the
28756         vector first.
28757         (adjust_operands_numbers): Inline into process_substs_on_one_elem
28758         and remove function.
28760 2016-03-01  Richard Biener  <rguenther@suse.de>
28762         PR middle-end/70022
28763         * fold-const.c (fold_indirect_ref_1): Fix range checking for
28764         vector BIT_FIELD_REF extract.
28766 2016-03-01  Richard Biener  <rguenther@suse.de>
28768         PR tree-optimization/69994
28769         * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
28771 2016-03-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
28773         PR tree-optimization/69956
28774         * tree-vect-stmts.c (supportable_widening_operation): Support
28775         multi-step conversion of boolean vectors.
28776         (supportable_narrowing_operation): Likewise.
28778 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
28780         * config/s390/s390.c (s390_decompose_address): Don't accept SImode
28781         anymore.
28783 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
28785         * config/s390/subst.md (DSI_VI): New mode iterator.
28786         ("addr_style_op_subst"): Use DSI_VI instead of DSI.
28787         * config/s390/vector.md ("vec_set<mode>"): Move expander before
28788         the insn definition.
28789         ("*vec_set<mode>"): Change predicate and add alternative to
28790         support only either register or const_int operands as element
28791         selector.
28792         ("*vec_set<mode>_plus"): New pattern to support reg + const_int
28793         operands.
28794         ("vec_extract<mode>"): New expander.
28795         ("*vec_extract<mode>"): New insn definition supporting reg and
28796         const_int element selectors.
28797         ("*vec_extract<mode>_plus"): New insn definition supporting
28798         reg+const_int element selectors.
28799         ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
28800         following expander+insn definition.
28801         ("<vec_shifts_name><mode>3"): New expander.
28802         ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
28804 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
28806         * config/s390/s390.md ("*tabort_1"): Change predicate to
28807         nonmemory_operand.  Add a second alternative to cover
28808         register as well as const int operands.
28809         ("*tabort_1_plus"): New pattern definition.
28811 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
28813         * config/s390/s390.md ("*ashrdi3_cc_31")
28814         ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
28815         ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
28816         Merge insn definitions into ...
28817         ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
28818         New pattern definition.
28819         ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
28820         ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
28821         ("*ashr<mode>3_and"): Merge insn definitions into ...
28822         ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
28823         New pattern definition.
28824         * config/s390/subst.md ("addr_style_op_cc_subst")
28825         ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
28826         substitutions patterns plus attributes.
28827         Add ashiftrt to SUBST iterator.
28829 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
28831         * config/s390/s390.md ("<shift><mode>3"): Change predicate of
28832         op2 to nonmemory_operand.
28833         ("*<shift>di3_31", "*<shift>di3_31_and"):
28834         Merge into single pattern definition ...
28835         ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
28836         ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
28837         pattern definition ...
28838         ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
28839         * config/s390/subst.md: Add ashift and lshiftrt to SUBST
28840         iterator.
28842 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
28844         * config/s390/predicates.md (const_int_6bitset_operand): New
28845         predicate.
28846         * config/s390/s390.md: Include subst.md.
28847         ("rotl<mode>3"): New expander.
28848         ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
28849         ...
28850         ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
28851         * config/s390/subst.md: New file.
28853 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
28855         * config/s390/s390.md ("op_type", "atype", "length" attributes):
28856         Remove RRR type.  It doesn't really exist.
28857         ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
28858         attributes.
28859         ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
28860         ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
28861         ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
28862         ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
28863         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
28864         ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
28865         `enabled' attribute.
28867 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
28869         * gensupport.c (process_substs_on_one_elem): Split loop to
28870         complete mark_operands_used_in_match_dup on all expressions in the
28871         vector first.
28872         (adjust_operands_numbers): Inline into process_substs_on_one_elem
28873         and remove function.
28875 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
28877         PR target/69706
28878         * config/sparc/sparc.c (NWORDS_UP): Rename to...
28879         (CEIL_NWORDS): ...this.  Use CEIL macro.
28880         (compute_fp_layout): Adjust to above renaming.
28881         (function_arg_union_value): Likewise.
28882         (sparc_arg_partial_bytes): Likewise.
28883         (sparc_function_arg_advance): Likewise.
28885 2016-02-29  Jeff Law  <law@redhat.com>
28887         PR tree-optimization/70005
28888         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
28889         where an object with a boolean range is compared against a value
28890         outside [0..1].
28892         PR tree-optimization/69999
28893         * gimple-ssa-split-paths.c (split_paths): When duplicating a block
28894         with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
28895         loop cleanups.
28897 2016-02-29  Richard Biener  <rguenther@suse.de>
28899         PR tree-optimization/69994
28900         * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
28901         (get_unary_op): Look through nop conversions.
28902         (ops_equal_values_p): New function, look for equality diregarding
28903         nop conversions.
28904         (eliminate_plus_minus_pair): Use ops_equal_values_p
28905         (repropagate_negates): Do not use get_unary_op here.
28907 2016-02-29  Martin Liska  <mliska@suse.cz>
28909         * system.h: Poison ENABLE_CHECKING macro.
28911 2016-02-29  Martin Liska  <mliska@suse.cz>
28913         * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
28914         is presented in dump flags.
28915         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
28916         (hsa_regalloc): Likewise.
28918 2016-02-19  Richard Biener  <rguenther@suse.de>
28920         PR tree-optimization/69980
28921         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
28922         permutation of those we need to keep.
28924 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
28926         PR target/69706
28927         * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
28928         (NWORDS_UP): ...this
28929         (init_cumulative_args): Minor tweaks.
28930         (sparc_promote_function_mode): Likewise.
28931         (scan_record_type): Delete.
28932         (traverse_record_type): New function template.
28933         (classify_data_t): New structure type.
28934         (classify_registers): New inline function.
28935         (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
28936         exhausted.  Instantiate traverse_record_type on classify_registers and
28937         deal with the case of a structure passed in slot #15 with no FP field
28938         in the first word.
28939         (assign_data_t): New structure type.
28940         (compute_int_layout): New static function.
28941         (compute_fp_layout): Likewise.
28942         (count_registers): New inline function.
28943         (assign_int_registers): New static function.
28944         (assign_fp_registers): Likewise.
28945         (assign_registers): New inline function.
28946         (function_arg_record_value_1): Delete.
28947         (function_arg_record_value_2): Likewise.
28948         (function_arg_record_value_3): Likewise.
28949         (function_arg_record_value): Adjust to above changes.  Instantiate
28950         traverse_record_type on count_registers to first count the number of
28951         registers to be used and then on assign_registers to assign them.
28952         (function_arg_union_value): Adjust to above renaming.
28953         (sparc_function_arg_1); Minor tweaks.  Remove commented out code.
28954         (sparc_arg_partial_bytes): Adjust to above renaming.  Deal with the
28955         case of a structure passed in slot #15
28956         (sparc_function_arg_advance): Likewise.
28957         (function_arg_padding): Minor tweak.
28959 2016-02-29  Richard Biener  <rguenther@suse.de>
28961         PR tree-optimization/69720
28962         * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
28963         the adjustment_def path for possibly vectorized defs.
28964         (vect_create_epilog_for_reduction): Handle vectorized initial
28965         defs properly.
28967 2016-02-28  Eric Botcazou  <ebotcazou@adacore.com>
28969         * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
28971 2016-02-27  Jeff Law  <law@redhat.com>
28973         Revert
28974         2016-02-26  Richard Biener  <rguenther@suse.de>
28975                     Jeff Law  <law@redhat.com>
28977         PR tree-optimization/69740
28978         * cfghooks.c (remove_edge): Request loop fixups if we delete
28979         an edge that might turn an irreducible loop into a natural
28980         loop.
28982 2016-02-27  Jakub Jelinek  <jakub@redhat.com>
28984         PR rtl-optimization/69896
28985         * tree-vect-generic.c (get_compute_type): Avoid single element
28986         vector types.
28988 2016-02-26  Evandro Menezes  <e.menezes@samsung.com>
28990         Rename the AArch64 tuning option and related functions to enable the
28991         Newton series for the reciprocal square root to reflect its
28992         approximative characteristic.
28994         * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
28995         function to "aarch64_emit_approx_rsqrt".
28996         * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
28997         AARCH64_EXTRA_TUNE_APPROX_RSQRT.
28998         * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
28999         (xgene1_tunings): Likewise.
29000         (use_rsqrt_p): Likewise.
29001         (aarch64_emit_swrsqrt): Use new function name.
29002         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
29003         * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
29004         text explaining this option.
29005         * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
29007 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
29009         PR target/69969
29010         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
29011         complain about -mallow-movmisalign without -mvsx if
29012         TARGET_ALLOW_MOVMISALIGN was not set explicitly.
29014 2016-02-26  Joel Sherrill  <joel@rtems.org>
29016         * config.gcc: Add x86_64-*-rtems*.
29017         * config/i386/rtems-64.h: New file.
29019 2016-02-26  Joel Sherrill  <joel@rtems.org>
29021         * config.gcc: Add aarch64-*-rtems*.
29022         * config/aarch64/rtems.h: New file.
29024 2016-02-26  Segher Boessenkool  <segher@kernel.crashing.org>
29026         PR target/69946
29027         * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
29028         shift amount using %h.  Add comment.
29030 2016-02-26  Richard Biener  <rguenther@suse.de>
29031             Jeff Law  <law@redhat.com>
29033         PR tree-optimization/69740
29034         * cfghooks.c (remove_edge): Request loop fixups if we delete
29035         an edge that might turn an irreducible loop into a natural
29036         loop.
29038 2016-02-26  Martin Jambor  <mjambor@suse.cz>
29040         PR middle-end/69920
29041         * tree-sra.c (sra_modify_assign): Do not remove loads of
29042         uninitialized aggregates to SSA_NAMEs.
29044 2016-02-26  Richard Henderson  <rth@redhat.com>
29046         PR target/69709
29047         * config/s390/s390.md (risbg and risbgn splitters): Allocate new
29048         pseudo in case the target rtx matches the source of the left
29049         shift.
29051 2016-02-26  Martin Jambor  <mjambor@suse.cz>
29053         PR hsa/69568
29054         * hsa.h (hsa_type_packed_p): Declare.
29055         * hsa.c (hsa_type_packed_p): New function.
29056         * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
29057         loads.
29058         (gen_hsa_insns_for_store): Use hsa_type_packed_p.
29059         * hsa-brig.c (emit_basic_insn): Likewise.
29061 2016-02-26  Martin Jambor  <mjambor@suse.cz>
29063         pr hsa/69674
29064         * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
29065         pointers.
29066         (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
29068 2016-02-26  Martin Jambor  <mjambor@suse.cz>
29070         * hsa.h (is_a_helper): New overload for hsa_op_immed for
29071         hsa_op_with_type operands.
29072         (hsa_unsigned_type_for_type): Declare.
29073         * hsa.c (hsa_unsigned_type_for_type): New function.
29074         * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
29075         (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
29076         the finalizer.  Do not emit extra move.
29078 2016-02-26  Martin Jambor  <mjambor@suse.cz>
29080         * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
29081         atomic operations in private segment.
29083 2016-02-26  Martin Jambor  <mjambor@suse.cz>
29085         * omp-low.c (grid_find_ungridifiable_statement): Store problematic
29086         statements to wi->info.  Also disallow omp simd constructs.
29087         (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
29088         for not gridifying.  Dump special string for omp_for.
29090 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29092         PR target/69245
29093         * config/aarch64/aarch64.c (aarch64_set_current_function):
29094         Save/restore target globals when switching to
29095         target_option_default_node.
29097 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29099         PR target/69613
29100         * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
29101         Return 0 if !SHIFT_COUNT_TRUNCATED.
29103 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
29104             Eric Botcazou  <ebotcazou@adacore.com>
29106         PR rtl-optimization/69891
29107         * dse.c (scan_insn): If we can't figure out memset arguments
29108         or they are non-constant, call clear_rhs_from_active_local_stores.
29110 2016-02-26  Martin Liska  <mliska@suse.cz>
29112         * doc/extend.texi: Mention clog10, clog10f an clog10l
29113         in Builtins section.
29115 2016-02-26  Martin Liska  <mliska@suse.cz>
29117         * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
29118         CHECKING_P.
29119         (resolve_args_picking_1): Likewise.
29120         * dwarf2out.h (struct GTY): Likewise.
29122 2016-02-26  Martin Liska  <mliska@suse.cz>
29124         * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
29125         with flag_checking.
29126         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
29128 2016-02-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
29129             Martin Liska  <mliska@suse.cz>
29131         * doc/install.texi: Mention --enable-valgrind-annotations.
29133 2016-02-26  Richard Biener  <rguenther@suse.de>
29135         PR tree-optimization/69551
29136         * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
29137         looking through aliases adjust DECL_PT_UID to refer to the
29138         ultimate alias target.
29140 2016-02-25  Martin Liska  <mliska@suse.cz>
29142         PR middle-end/69919
29143         * alloc-pool.c (after_memory_report): New variable.
29144         * alloc-pool.h (base_pool_allocator ::release): Do not use
29145         the infrastructure if after_memory_report.
29146         * toplev.c (toplev::main): Mark after memory report.
29148 2016-02-25  Richard Biener  <rguenther@suse.de>
29150         PR tree-optimization/48795
29151         * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
29153 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
29155         PR driver/68463
29156         * config/gnu-user.h (CRTOFFLOADBEGIN): Define.  Add crtoffloadbegin.o if
29157         offloading is enabled and -fopenacc or -fopenmp is specified.
29158         (CRTOFFLOADEND): Likewise.
29159         (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
29160         (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
29161         * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
29162         (offload_objects_file_name): New static var.
29163         (tool_cleanup): Remove offload_objects_file_name file.
29164         (find_offloadbeginend): Replace with ...
29165         (find_crtoffloadtable): ... this.
29166         (run_gcc): Remove offload_argc and offload_argv.
29167         Get offload_objects_file_name from -foffload-objects=... option.
29168         Read names of object files with offload from this file, pass them to
29169         compile_images_for_offload_targets.  Don't call find_offloadbeginend and
29170         don't pass offloadbegin and offloadend to the linker.  Don't pass
29171         offload non-LTO files to the linker, because now they're not claimed.
29173 2016-02-25  Jan Hubicka  <hubicka@ucw.cz>
29175         PR ipa/69630
29176         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
29177         on builtin_unreachable.
29179 2016-02-25  Jakub Jelinek  <jakub@redhat.com>
29181         PR rtl-optimization/69896
29182         * regcprop.c: Include cfgrtl.h.
29183         (copyprop_hardreg_forward_1): If noop_p insn uses narrower
29184         than remembered mode, either delete it (if noop_move_p), or
29185         treat like copy_p but not noop_p instruction.
29187 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
29189         PR debug/69705
29190         * dwarf2out.c (gen_variable_die): Work around buggy LTO
29191         - allow NULL decl for Fortran DW_TAG_common_block variables.
29193 2016-02-24  Jason Merrill  <jason@redhat.com>
29195         * common.opt (flifetime-dse): Add -flifetime-dse=1.
29197 2016-02-24  Richard Biener  <rguenther@suse.de>
29198             Jakub Jelinek  <jakub@redhat.com>
29200         PR middle-end/69760
29201         * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
29202         conditionally executed ops to well-defined overflow behavior.
29204 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
29206         PR middle-end/69915
29207         * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
29208         elements.
29210 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29212         PR rtl-optimization/69886
29213         * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
29214         argument.  Use it when checking validity of set instructions.
29215         (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
29216         (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
29217         callsite.
29218         * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
29219         * store-motion.c (find_moveable_store): Update
29220         can_assign_to_reg_without_clobbers_p callsite.
29222 2016-02-24  Richard Biener  <rguenther@suse.de>
29224         PR middle-end/68963
29225         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
29226         bogus check.
29227         (record_nonwrapping_iv): Do not fall back to the low/high bound
29228         for non-constant IV bases if the stmt is not always executed.
29230 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29232         * config/arm/arm-cores.def (cortex-a32): New entry.
29233         * config/arm/arm-tables.opt: Regenerate.
29234         * config/arm/arm-tune.md: Regenerate.
29235         * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
29236         * config/arm/t-aprofile: Handle mcpu=cortex-a32.
29237         * doc/invoke.texi (ARM Options): Document cortex-a32 as value
29238         for -mcpu and -mtune.
29240 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29242         PR target/69875
29243         * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
29244         * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
29245         * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
29246         (atomic_loaddi_1): Delete.
29247         (atomic_loaddi): Rewrite expander using the above changes.
29249 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
29251         PR c/69918
29252         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
29253         2 to 3.
29255 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
29256             Richard Biener  <rguenth@suse.de>
29258         PR middle-end/69909
29259         * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
29260         set_mem_attributes if tem is SSA_NAME which got expanded
29261         as a MEM.
29263 2016-02-24  Richard Biener  <rguenther@suse.de>
29265         PR tree-optimization/69907
29266         * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
29267         end of permutations for BB vectorization.
29269 2016-02-24  Christian Bruel  <christian.bruel@st.com>
29271         * config/arm/arm-c.c (arm_option_override): Initialize
29272         target_option_current_node.
29273         * config/arm/arm.c (arm_pragma_target_parse): Replace
29274         build_target_option_node call by target_option_current_node.
29275         Set target_option_current_node.
29276         Fix comments.
29278 2016-02-23  David Edelsohn  <dje.gcc@gmail.com>
29280         PR target/69810
29281         * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
29282         define_insn_and_split to define_insn.
29283         (zero_extendqi<mode>2_dot2): Same.
29284         (extendqi<mode>2_dot): Same.
29285         (extendqi<mode>2_dot2): Same.
29287 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
29289         * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
29290         and add bypass for AES{D,E} and AESMC pairs.
29291         * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
29292         and AESMC pairs.
29294 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
29296         * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
29297         series for reciprocal square root in Exynos M1.
29299 2016-02-23  Martin Sebor  <msebor@redhat.com>
29301         PR c/69759
29302         * doc/extend.texi (Other Builtins): Document __builtin_alloca and
29303         __builtin_alloca_with_align.
29305 2016-02-23  Richard Henderson  <rth@redhat.com>
29307         * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
29308         (ix86_register_pragmas): Remove __seg_tls.
29309         * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
29310         * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
29311         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
29312         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
29313         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
29314         * doc/extend.texi (__seg_tls): Remove item.
29316 2016-02-23  Richard Biener  <rguenther@suse.de>
29318         * alloc-pool.h (struct allocation_object): Make id member
29319         conditional on CHECKING_P again.
29320         (get_instance): Adjust.
29321         (base_pool_allocator): Likewise.
29323 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
29325         * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
29326         (parallelize_loops): In OpenACC kernels mode, set n_threads to
29327         zero.
29328         (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
29329         flag_openacc.
29330         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
29332 2016-02-23  Richard Biener  <rguenther@suse.de>
29334         * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
29335         * bitmap.h (struct bitmap_usage): Likewise.
29336         (bitmap_move): Declare.
29337         * bitmap.c (register_overhead): Take size_t argument.
29338         (bitmap_move): New function.
29339         * df-problems.c (df_rd_transfer_function): Use bitmap_move
29340         to properly account overhead.
29341         * tree.c (free_node): Use tree_size.
29343 2016-02-23  Jakub Jelinek  <jakub@redhat.com>
29345         PR c++/69902
29346         * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
29347         when inverting comparison.
29349         PR c/69900
29350         * common.opt (Wunreachable-code): Add Warning flag.
29352 2016-02-23  Mark Wielaard  <mjw@redhat.com>
29353             Jakub Jelinek  <jakub@redhat.com>
29355         PR c/69911
29356         * cgraphunit.c (check_global_declaration): Check main_input_filename
29357         and DECL_SOURCE_FILE are not NULL.
29359 2016-02-23  Martin Jambor  <mjambor@suse.cz>
29361         PR tree-optimization/69666
29362         * tree-sra.c (sra_modify_assign): Do not attempt to create
29363         default_def replacements for unscalarizable regions.
29365 2016-02-20  Mark Wielaard  <mjw@redhat.com>
29367         PR c/28901
29368         * cgraphunit.c (check_global_declaration): Check level of
29369         warn_unused_const_variable and main_input_filename.
29370         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
29371         (-Wunused-variable): For C implies -Wunused-const-variable=1.
29372         (-Wunused-const-variable): Explain levels 1 and 2.
29374 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
29376         PR target/69888
29377         * config/i386/i386.c (decide_alg): Ensure we don't recurse with
29378         identical arguments.  Formatting and spelling fixes.
29380         PR target/69885
29381         * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
29382         be specified.
29384         PR target/69894
29385         PR target/69895
29386         * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
29387         and m68k-devices.def.
29388         * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
29389         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
29391 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
29393         * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
29394         and HImode registers.
29396 2016-02-22  Richard Biener  <rguenther@suse.de>
29398         PR tree-optimization/69882
29399         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
29400         preserve permutations present because of gaps.
29401         (vect_supported_load_permutation_p): Always continue checking
29402         permutations after vect_attempt_slp_rearrange_stmts.
29404 2016-02-22  Bin Cheng  <bin.cheng@arm.com>
29406         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
29407         min_profitable_estimate, rather than min_profitable_iters.
29409 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
29411         PR target/69885
29412         * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
29413         SImode for last match_operand.
29415 2016-02-22  Martin Liska  <mliska@suse.cz>
29417         * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
29418         return bitsize - 1 as the return value.
29420 2016-02-22  Oleg Endo  <olegendo@gcc.gnu.org>
29422         PR target/69806
29423         PR target/54089
29424         * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
29425         Handle negative shift counts.
29426         * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
29427         force_reg on the shift constant.
29428         (lshrsi3): Likewise.  Expand into lshrsi3_n* instead of lshrsi3_d.
29429         (lshrsi3_d): Handle negative shift counts.
29431 2016-02-22  Richard Biener  <rguenther@suse.de>
29432             Tom de Vries  <tom@codesourcery.com>
29434         * graph.c: Include dumpfile.h.
29435         (print_graph_cfg): Split into three overloads.
29436         * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
29438 2016-02-22  Tom de Vries  <tom@codesourcery.com>
29440         * gdbhooks.py (class DumpFn): Add and instantiate, adding command
29441         dump-fn.
29443 2016-02-22  Richard Biener  <rguenther@suse.de>
29445         PR ipa/37448
29446         * ipa-inline-transform.c (inline_call): When not updating
29447         overall summaries adjust self size by the growth estimate.
29448         * ipa-inline.c (inline_to_all_callers_1): Add to the callers
29449         hash-set, do not update overall summaries here.  Renamed from ...
29450         (inline_to_all_callers): ... this which is now wrapping the
29451         above and performing delayed overall summary update.
29452         (early_inline_small_functions): Delay updating of the overall
29453         summary.
29455 2016-02-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
29457         * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
29458         variable.
29460 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
29462         PR driver/69805
29463         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
29464         :%* in %:gt() argument.
29465         (greater_than_spec_func): Adjust for expecting only numbers,
29466         if there are more than two numbers, compare the last two.
29468 2016-02-19  Jonathan Wakely  <jwakely@redhat.com>
29470         * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
29471         -Wnarrowing with -std.
29473 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
29475         PR c++/69851
29476         * expr.c (store_field): Don't use bit-field path if exp is
29477         COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
29478         different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
29479         and the assignment can be performed by bitwise copy.  Formatting
29480         fix.
29482         PR middle-end/69838
29483         * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
29484         call copy_reg_eh_region_note_forward on before and/or after sequences
29485         and remove note from insn if it no longer can throw.
29487         PR target/69820
29488         * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
29489         if TARGET_AVX512BW.
29491 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
29493         * config/s390/vector.md: Add missing commutative operand markers
29494         to the patterns which qualify for one.
29495         * config/s390/vx-builtins.md: Likewise.
29497 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
29499         * config/s390/vector.md (VI, VI_QHS): Add single element vector
29500         types to mode iterators.
29501         (vec_double): ... and mode attribute.
29502         * config/s390/vx-builtins.md (non_vec_int): Likewise.
29504 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
29506         * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
29507         Change the predicate of op2 from nonimmediate to general and let
29508         reload fix it if necessary.
29510 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
29512         * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
29514 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
29516         * config/s390/s390.c (s390_expand_vcond): Use the compare operand
29517         mode.
29519 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
29521         * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
29522         * config/s390/s390.c (s390_expand_vec_movstr): New function.
29523         * config/s390/s390.md ("movstr<P:mode>"): Call
29524         s390_expand_vec_movstr.
29526 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
29528         * config/s390/s390.md: Add missing output modifier for operand 1
29529         to print it as address properly.
29531 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
29533         * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
29534         * config/s390/2964.md: New file.
29535         * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
29536         of insn grouping attributes depending on the CPU level.
29537         (s390_get_unit_mask): New function.
29538         (s390_sched_score): Remove the OOO from the scheduling macros.
29539         Add loop to calculate a score for the instruction mix.
29540         (s390_sched_reorder): Likewise plus improve debug output.
29541         (s390_sched_variable_issue): Rename macros as above.  Calculate
29542         the unit distances after actually scheduling an insn.  Improve
29543         debug output.
29544         (s390_sched_init): Clear last_scheduled_unit_distance array.
29545         * config/s390/s390.md: Include 2964.md.
29547 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
29549         PR target/69671
29550         * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
29551         *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
29552         *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
29553         *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
29554         *avx512f_<code>v8div16qi2_mask_1): New insns.
29556 2016-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
29558         PR target/68404
29559         * config/rs6000/predicates.md (fusion_gpr_addis): Revert
29560         2016-02-09 change.
29562         * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
29563         earlyclobber from target.  Use wF constraint for fused memory
29564         address.
29565         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
29567 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
29568             Martin Liska  <mliska@suse.cz>
29570         PR sanitizer/69863
29571         * cfgexpand.c (asan_sanitize_stack_p): New function.
29572         (partition_stack_vars): Use the function.
29573         (expand_stack_vars): Likewise.
29574         (defer_stack_allocation): Likewise.
29575         (expand_used_vars): Likewise.
29577 2016-02-18  Richard Biener  <rguenther@suse.de>
29579         PR middle-end/69553
29580         * fold-const.c (operand_equal_p): Properly compare offsets for
29581         IMAGPART_EXPR and ARRAY_REF.
29583 2016-02-18  Nick Clifton  <nickc@redhat.com>
29585         PR target/62254
29586         PR target/69610
29587         * config/arm/arm.c (arm_option_override_internal): Disable
29588         interworking if the target does not support thumb instructions.
29589         (arm_reload_in_hi): Handle the case where a register to register
29590         move needs reloading because there is no simple pattern to handle
29591         it.
29592         (arm_reload_out_hi): Likewise.
29594 2016-02-18  Richard Biener  <rguenther@suse.de>
29596         PR middle-end/69854
29597         * match.pd: Don't use fold_binary or fold_unary for folding
29598         constants.
29600 2016-02-17  Jakub Jelinek  <jakub@redhat.com>
29602         PR c++/69850
29603         * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
29604         on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
29605         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
29606         warn on gimple_no_warning_p statements.
29608 2016-02-17  Jonathan Wakely  <jwakely@redhat.com>
29610         * doc/extend.texi (C++ Attributes): Correct description of
29611         warn_unused type attribute.
29613 2016-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29615         * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
29616         correct instruction.
29618 2016-02-17  Richard Biener  <rguenther@suse.de>
29620         PR rtl-optimization/69609
29621         * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
29622         (find_traces_1_round): When ending a trace update cached priority
29623         of successors.
29624         (bb_to_key): Use cached priority when available.
29625         (copy_bb): Initialize cached priority.
29626         (reorder_basic_blocks_software_trace_cache): Likewise.
29628 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29630         PR target/69161
29631         * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
29632         New predicate.
29633         (aarch64_comparison_operator): Break overly long line into two.
29634         (aarch64_comparison_operation): Likewise.
29635         * config/aarch64/aarch64.md (cstorecc4): Use
29636         aarch64_comparison_operator_mode instead of
29637         aarch64_comparison_operator.
29638         (cstore<mode>4): Likewise.
29639         (aarch64_cstore<mode>): Likewise.
29640         (*cstoresi_insn_uxtw): Likewise.
29641         (cstore<mode>_neg): Likewise.
29642         (*cstoresi_neg_uxtw): Likewise.
29644 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29646         PR target/69161
29647         * config/arm/predicates.md (arm_comparison_operator_mode):
29648         New predicate.
29649         * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
29650         instead of arm_comparison_operator.
29651         (*mov_negscc): Likewise.
29652         (*mov_notscc): Likewise.
29653         * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
29654         (*thumb2_mov_negscc): Likewise.
29655         (*thumb2_mov_negscc_strict_it): Likewise.
29656         (*thumb2_mov_notscc): Likewise.
29657         (*thumb2_mov_notscc_strict_it): Likewise.
29659 2016-02-17  Wilco Dijkstra  <wdijkstr@arm.com>
29661         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
29662         Add missing return.
29664 2016-02-17  Eric Botcazou  <ebotcazou@adacore.com>
29666         * config/visium/visium.c (machine_libfunc_index): New enum.
29667         (machine_libfuncs): New structure.
29668         (visium_libfuncs): New static variable.
29669         (TARGET_INIT_LIBFUNCS): Define to...
29670         (visium_init_libfuncs): ...this.  New function.
29671         (expand_block_move_4): Use the appropriate libfunc.
29672         (expand_block_move_2): Likewise.
29673         (expand_block_move_1): Likewise.
29674         (expand_block_set_4): Likewise.
29675         (expand_block_set_2): Likewise.
29676         (expand_block_set_1): Likewise.
29677         (visium_trampoline_init): Likewise.
29679 2016-02-17  Nick Clifton  <nickc@redhat.com>
29681         * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
29682         TI's devices.csv file as of March 2016.
29684 2016-02-16  Kelvin Nilsen  <kelvin@gcc.gnu.org>
29686         PR Target/48344
29687         * opts-global.c (handle_common_deferred_options): Introduce and
29688         initialize two global variables to remember command-line options
29689         specifying a stack-limiting register.
29690         * opts.h: Add extern declarations of the two new global variables.
29691         * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
29692         variable based on the values of the two new global variables.
29694 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
29696         PR c/69835
29697         * common.opt (Wnonnull-compare): New warning.
29698         * doc/invoke.texi (-Wnonnull): Remove text about comparison
29699         of arguments against NULL.
29700         (-Wnonnull-compare): Document.
29701         * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
29702         * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
29703         * passes.def (pass_warn_nonnull_compare): Add.
29704         * gimple-ssa-nonnull-compare.c: New file.
29706 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
29708         * config/aarch64/aarch64.c (cortexa57_tunings): Remove
29709         AARCH64_EXTRA_TUNE_RECIP_SQRT.
29711 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
29713         * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
29714         reciprocal sqrt for -mlow-precision-recip-sqrt.
29716 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
29717             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29719         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
29720         always use lane loads to construct non-constant vectors.
29722 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
29724         * config/aarch64/aarch64.md
29725         (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
29726         constraints for operand 3.
29727         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
29729 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
29730             Richard Biener  <rguenther@suse.de>
29732         PR tree-optimization/69820
29733         * tree-vect-patterns.c (type_conversion_p): Return false if
29734         *orig_type is unsigned single precision or boolean.
29735         (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
29736         Formatting fix.
29738 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
29740         PR rtl-optimization/69764
29741         PR rtl-optimization/69771
29742         * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
29743         op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
29745 2016-02-16  Richard Biener  <rguenther@suse.de>
29747         PR tree-optimization/69776
29748         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
29749         sets from caller.
29750         (indirect_refs_may_alias_p): Likewise.
29751         (refs_may_alias_p_1): Pass alias sets as from ao_ref.
29752         * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
29753         according to tbaa_p.
29754         * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
29755         (optimize_stmt): For redundant store discovery do not allow tbaa.
29757 2016-02-16  Bernd Schmidt  <bschmidt@redhat.com>
29759         PR tree-optimization/69714
29760         * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
29761         Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
29763 2016-02-16  Claudiu Zissulescu  <claziss@synopsys.com>
29765         * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
29766         * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
29767         (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
29768         * config/arc/arc.c (arc_init): Check FPU options.
29769         (get_arc_condition_code): Handle new CC_FPU* modes.
29770         (arc_select_cc_mode): Likewise.
29771         (arc_conditional_register_usage): Allow 64 bit datum into even-odd
29772         register pair only. Allow access for ARCv2 accumulator.
29773         (gen_compare_reg): Whenever we have FPU support use FPU compare
29774         instructions.
29775         (arc_reorg): Don't generate brcc insns when FPU compare
29776         instructions are involved.
29777         * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
29778         (TARGET_OPTFPE): Add condition when ARC EM can use optimized
29779         floating point emulation.
29780         (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
29781         (REVERSE_CONDITION): Add new CC_FPU* modes.
29782         (TARGET_FP_SP_BASE): Define.
29783         (TARGET_FP_DP_BASE): Likewise.
29784         (TARGET_FP_SP_FUSED): Likewise.
29785         (TARGET_FP_DP_FUSED): Likewise.
29786         (TARGET_FP_SP_CONV): Likewise.
29787         (TARGET_FP_DP_CONV): Likewise.
29788         (TARGET_FP_SP_SQRT): Likewise.
29789         (TARGET_FP_DP_SQRT): Likewise.
29790         (TARGET_FP_DP_AX): Likewise.
29791         * config/arc/arc.md (ARCV2_ACC): New constant.
29792         (type): New fpu type attribute.
29793         (SDF): Conditional iterator.
29794         (cstore<mode>, cbranch<mode>): Change expand condition.
29795         (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
29796         handles FPU/FPX cases as well.
29797         * config/arc/arc.opt (mfpu): New option.
29798         * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
29799         Renamed.
29800         (adddf3, muldf3, subdf3): Removed.
29801         * config/arc/predicates.md (proper_comparison_operator): Recognize
29802         CC_FPU* modes.
29803         * config/arc/fpu.md: New file.
29804         * doc/invoke.texi (ARC Options): Document mfpu option.
29806 2016-02-16  Richard Biener  <rguenther@suse.de>
29808         PR rtl-optimization/69291
29809         * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
29810         noce_operand_ok check.
29812 2016-02-16  Tom de Vries  <tom@codesourcery.com>
29814         PR lto/67709
29815         * omp-low.c (simd_clone_create): Remove call to
29816         symtab->call_cgraph_insertion_hooks.
29818 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
29820         PR tree-optimization/69802
29821         * tree-ssa-reassoc.c (update_range_test): If op is
29822         SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
29823         op == 1 test of precision 1 integral op, otherwise handle
29824         that case as op itself.  Fix up formatting.
29825         (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
29826         up formatting.
29828 2016-02-16  Richard Biener  <rguenther@suse.de>
29830         PR tree-optimization/69586
29831         * tree-vrp.c (register_edge_assert_for_2): Handle all integral
29832         types for conversion sources.
29834 2016-02-16  Richard Biener  <rguenther@suse.de>
29836         PR middle-end/69801
29837         * fold-const.c (operand_equal_p): For COND_EXPR zero operand
29838         mask OEP_ADDRESS_OF.
29840 2016-02-16  Alan Modra  <amodra@gmail.com>
29842         PR target/68973
29843         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
29844         (p8_mtvsrd_df, p8_mtvsrd_sf): New.
29845         (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
29846         (p8_mtvsrwz): New.
29847         (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
29848         (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
29849         (p8_fmrgow_<mode>): Likewise.
29850         (reload_vsx_from_gpr<mode>): Make clobber IF.  Adjust for above
29851         changes.
29852         (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
29853         (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
29854         to use movdi_internal64.  Remove op0_di.
29855         * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
29857 2016-02-15  Evandro Menezes  <e.menezes@samsung.com>
29859         Add support for the FCCMP insn types
29861         * config/aarch64/aarch64.md (fccmp): Change insn type.
29862         (fccmpe): Likewise.
29863         * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
29864         * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
29865         * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
29866         * config/arm/xgene1.md (xgene1_fcmp): Likewise.
29867         * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
29868         * config/arm/types.md (fccmps): Add new insn type.
29869         (fccmpd): Likewise.
29871 2016-02-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
29873         * alias.c (get_alias_set): Fix a typo in comment.
29875 2016-02-15  Richard Biener  <rguenther@suse.de>
29877         PR tree-optimization/69595
29878         * match.pd: Complete range test simplification to true.
29880 2016-02-15  Bernd Schmidt  <bschmidt@redhat.com>
29882         PR rtl-optimization/69648
29883         * lra-constraints.c (update_ebb_live_info): Don't remove sets of
29884         pic_offset_table_rtx.
29886         PR rtl-optimization/69752
29887         * ira.c (update_equiv_regs): When looking for more than a single SET,
29888         also take other side effects into account.
29890 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
29892         * config/s390/s390.c (s390_function_profiler): Add a new sequence
29893         for z900+ CPUs in 31-bit mode.
29895 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
29897         * common/config/s390/s390-common.c (s390_supports_split_stack):
29898         New function.
29899         (TARGET_SUPPORTS_SPLIT_STACK): New macro.
29900         * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
29901         * config/s390/s390.c (struct machine_function): New field
29902         split_stack_varargs_pointer.
29903         (s390_register_info): Mark r12 as clobbered if it'll be used as temp
29904         in s390_emit_prologue.
29905         (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
29906         vararg pointer.
29907         (morestack_ref): New global.
29908         (SPLIT_STACK_AVAILABLE): New macro.
29909         (s390_expand_split_stack_prologue): New function.
29910         (s390_live_on_entry): New function.
29911         (s390_va_start): Use split-stack vararg pointer if appropriate.
29912         (s390_asm_file_end): Emit the split-stack note sections.
29913         (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
29914         * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
29915         (UNSPECV_SPLIT_STACK_CALL): New unspec.
29916         (UNSPECV_SPLIT_STACK_DATA): New unspec.
29917         (split_stack_prologue): New expand.
29918         (split_stack_space_check): New expand.
29919         (split_stack_data): New insn.
29920         (split_stack_call): New expand.
29921         (split_stack_call_*): New insn.
29922         (split_stack_cond_call): New expand.
29923         (split_stack_cond_call_*): New insn.
29925 2016-02-15  Richard Biener  <rguenther@suse.de>
29927         PR tree-optimization/69783
29928         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
29929         Add trivially correct cases.
29931 2016-02-15  Tom de Vries  <tom@codesourcery.com>
29933         PR lto/69655
29934         * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
29935         do_force_output.
29936         * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
29938 2016-02-15  Richard Biener  <rguenther@suse.de>
29940         PR tree-optimization/69776
29941         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
29942         * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
29943         indicate whether we can use TBAA to disambiguate against stores.
29944         Use alias-set zero if not.
29945         (visit_reference_op_store): Do not use TBAA when looking up
29946         redundant stores.
29947         * tree-ssa-pre.c (compute_avail): Use TBAA here.
29948         (eliminate_dom_walker::before_dom_children): But not when looking
29949         up redundant stores.
29951 2016-02-14  John David Anglin  <danglin@gcc.gnu.org>
29953         * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
29955 2016-02-14  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
29957         *  config/i386/znver1.md
29958         (znver1_pop, znver1_pop_mem,
29959         znver1_load_imov_double_store,
29960         znver1_load_imov_direct_store,
29961         znver1_load_imov_direct_load,
29962         znver1_load_imov_double_load): Add new.
29963         (znver1_insn, znver1_insn_load): Add icmov type.
29964         (znver1_sseavx_fma,
29965         znver1_sseavx_fma_load,
29966         znver1_avx256_fma,
29967         znver1_avx256_fma_load): Fix pipe usage.
29969 2016-02-14  Alan Modra  <amodra@gmail.com>
29971         PR target/68973
29972         * reload.c (find_reloads_address_1): For pre/post-inc/dec
29973         with an invalid hard reg, reload just the reg not the entire
29974         pre/post-inc/dec address expression.
29976 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
29978         PR target/67260
29979         * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
29980         fixed R1_REG scratch reg.
29981         (sibcall_value_pcrel_fdpic): Likewise.
29983 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
29985         PR target/67636
29986         PR target/64345
29987         * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
29989 2016-02-12  Walter Lee  <walt@tilera.com>
29991         * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
29992         * config/tilegx/t-tilegx: Likewise.
29994 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
29996         PR other/69554
29997         * diagnostic-show-locus.c (struct line_span): New struct.
29998         (layout::get_first_line): Delete.
29999         (layout::get_last_line): Delete.
30000         (layout::get_num_line_spans): New member function.
30001         (layout::get_line_span): Likewise.
30002         (layout::print_heading_for_line_span_index_p): Likewise.
30003         (layout::get_expanded_location): Likewise.
30004         (layout::calculate_line_spans): Likewise.
30005         (layout::m_first_line): Delete.
30006         (layout::m_last_line): Delete.
30007         (layout::m_line_spans): New field.
30008         (layout::layout): Update comment.  Replace m_first_line and
30009         m_last_line with m_line_spans, replacing their initialization
30010         with a call to calculate_line_spans.
30011         (diagnostic_show_locus): When printing source lines and
30012         annotations, rather than looping over a single span
30013         of lines, instead loop over each line_span within
30014         the layout, with an inner loop over the lines within them.
30015         Call the context's start_span callback when changing line spans.
30016         * diagnostic.c (diagnostic_initialize): Initialize start_span.
30017         (diagnostic_build_prefix): Break out the building of the location
30018         part of the string into...
30019         (diagnostic_get_location_text): ...this new function, rewriting
30020         it from nested ternary expressions to a sequence of "if"
30021         statements.
30022         (default_diagnostic_start_span_fn): New function.
30023         * diagnostic.h (diagnostic_start_span_fn): New typedef.
30024         (diagnostic_context::start_span): New field.
30025         (default_diagnostic_start_span_fn): New prototype.
30027 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
30029         PR driver/69779
30030         * gcc.c (driver::finalize): Fix cleanup of "specs".
30032 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
30034         PR driver/69265
30035         PR driver/69453
30036         * gcc.c (driver::driver): Initialize m_option_suggestions.
30037         (driver::~driver): Clean up m_option_suggestions.
30038         (suggest_option): Convert to...
30039         (driver::suggest_option): ...this, and split out into
30040         driver::build_option_suggestions and find_closest_string.
30041         (driver::build_option_suggestions): New function, from
30042         first half of suggest_option.  Special-case
30043         OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
30044         the sanitizer_opts array.  For options of enum types, add the
30045         various enum values to the candidate strings.
30046         (driver::handle_unrecognized_options): Remove "const".
30047         * gcc.h (driver::handle_unrecognized_options): Likewise.
30048         (driver::build_option_suggestions): New decl.
30049         (driver::suggest_option): New decl.
30050         (driver::m_option_suggestions): New field.
30051         * opts-common.c (add_misspelling_candidates): New function.
30052         * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
30053         and make non-static.
30054         * opts.h (sanitizer_opts): New array decl.
30055         (add_misspelling_candidates): New function decl.
30056         * spellcheck.c (find_closest_string): New function.
30057         * spellcheck.h (find_closest_string): New function decl.
30059 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
30061         PR rtl-optimization/69764
30062         PR rtl-optimization/69771
30063         * optabs.c (expand_binop_directly): For shift_optab_p, force
30064         convert_modes with VOIDmode if xop1 has VOIDmode.
30066 2016-02-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
30068         PR target/69729
30069         * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
30070         to correctly determine instrumentation thunks.
30072 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
30074         PR ipa/69241
30075         * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
30076         type by reference, force lhs on the call.
30078         PR ipa/68672
30079         * ipa-split.c (split_function): Don't compute/use main_part_return_p.
30080         Compute retval and retbnd early in all cases if split_part_return_p
30081         and return_bb is not EXIT.  Remove all clobber stmts and reset
30082         all debug stmts that refer to SSA_NAMEs defined in split part,
30083         except if it is retval, in that case replace the old retval with the
30084         lhs of the call to the split part.
30086 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
30088         revert:
30089         2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
30091         PR middle-end/66726
30092         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
30093         whose result is used in PHI.
30094         (maybe_optimize_range_tests): Likewise.
30095         (final_range_test_p): Likweise.
30097 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
30099         PR middle-end/66726
30100         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
30101         whose result is used in PHI.
30102         (maybe_optimize_range_tests): Likewise.
30103         (final_range_test_p): Likweise.
30105 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
30107         * cgraph.c: Spelling fixes - behaviour -> behavior and
30108         neighbour -> neighbor.
30109         * target.def: Likewise.
30110         * sel-sched.c: Likewise.
30111         * config/mips/mips.c: Likewise.
30112         * config/arc/arc.md: Likewise.
30113         * config/arm/cortex-a57.md: Likewise.
30114         * config/arm/arm.c: Likewise.
30115         * config/arm/neon.md: Likewise.
30116         * config/arm/arm-c.c: Likewise.
30117         * config/vms/vms-c.c: Likewise.
30118         * config/s390/s390.c: Likewise.
30119         * config/i386/znver1.md: Likewise.
30120         * config/i386/i386.c: Likewise.
30121         * config/ia64/hpux-unix2003.h: Likewise.
30122         * config/msp430/msp430.md: Likewise.
30123         * config/rx/rx.c: Likewise.
30124         * config/rx/rx.md: Likewise.
30125         * config/aarch64/aarch64-simd.md: Likewise.
30126         * config/aarch64/aarch64.c: Likewise.
30127         * config/nvptx/nvptx.c: Likewise.
30128         * config/bfin/bfin.c: Likewise.
30129         * config/cris/cris.opt: Likewise.
30130         * config/rs6000/rs6000.c: Likewise.
30131         * target.h: Likewise.
30132         * spellcheck.c: Likewise.
30133         * ira-build.c: Likewise.
30134         * tree-inline.c: Likewise.
30135         * builtins.c: Likewise.
30136         * lra-constraints.c: Likewise.
30137         * explow.c: Likewise.
30138         * hwint.h: Likewise.
30139         * targhooks.c: Likewise.
30140         * tree-vect-data-refs.c: Likewise.
30141         * expr.c: Likewise.
30142         * doc/tm.texi: Likewise.
30143         * doc/extend.texi: Likewise.
30144         * doc/install.texi: Likewise.
30145         * doc/md.texi: Likewise.
30146         * tree-ssa-tail-merge.c: Likewise.
30147         * sched-int.h: Likewise.
30148         * match.pd: Likewise.
30149         * sched-ebb.c: Likewise.
30150         * target.def (omit_struct_return_reg): Likewise.
30151         * gimple-ssa-isolate-paths.c: Likewise.
30152         (find_implicit_erroneous_behaviour): Renamed to...
30153         (find_implicit_erroneous_behavior): ... this.
30154         (find_explicit_erroneous_behaviour): Renamed to...
30155         (find_explicit_erroneous_behavior): ... this.
30156         (gimple_ssa_isolate_erroneous_paths): Adjust caller.
30158 2016-02-11  Segher Boessenkool  <segher@kernel.crashing.org>
30160         PR rtl-optimization/64682
30161         PR rtl-optimization/69567
30162         PR rtl-optimization/69737
30163         * combine.c (distribute_notes) <REG_DEAD>: If the register is set
30164         in I2 as well, just lose it.
30166 2016-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30168         * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
30169         New variable.
30170         (aarch64_last_printed_tune_string): Likewise.
30171         (aarch64_declare_function_name): Only output .arch assembler
30172         directive if it will be different from the previously output
30173         directive.  Same for .tune comment but only if -dA is set.
30174         (aarch64_start_file): New function.
30175         (TARGET_ASM_FILE_START): Define.
30177 2016-02-11  David Malcolm  <dmalcolm@redhat.com>
30179         PR plugins/69758
30180         * Makefile.in (PLUGIN_HEADERS): Add params.list.
30182 2016-02-11  Jakub Jelinek  <jakub@redhat.com>
30184         PR target/65313
30185         * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
30186         -Wmaybe-uninitialized warning.
30188 2016-02-11  Oleg Endo  <olegendo@gcc.gnu.org>
30190         PR target/69713
30191         * config/sh/sh.md (casesi_worker_0): Add T_REG use.
30193 2016-02-11  Richard Biener  <rguenther@suse.de>
30195         PR rtl-optimization/69291
30196         * ifcvt.c (noce_try_store_flag_constants): Do not allow
30197         subexpressions affected by changing the result.
30199 2016-02-10  Vladimir Makarov  <vmakarov@redhat.com>
30201         PR target/69148
30202         * lra-constraints.c (curr_insn_transform): Find in/out operands
30203         for secondary memory moves.  Update dups.
30205 2016-02-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
30207         PR tree-optimization/69652
30208         * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
30209         to nested loop, did source re-formatting, skip debug statements,
30210         add check on statement with volatile operand, remove dead scalar
30211         statements.
30213 2016-02-10  Jakub Jelinek  <jakub@redhat.com>
30214             Patrick Palka  <ppalka@gcc.gnu.org>
30216         PR ipa/69241
30217         PR c++/69649
30218         * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
30219         calls if the return type is TREE_ADDRESSABLE.
30220         * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
30221         * ipa-split.c (split_function): Fix doubled "we" in comment.
30222         Use void return type for the split part even if
30223         !split_point->split_part_set_retval.
30225 2016-02-10  Bin Cheng  <bin.cheng@arm.com>
30227         PR tree-optimization/68021
30228         * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
30229         when computing the value of biv cand by itself.
30231 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
30233         * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
30234         (cortexa57_tunings): Likewise.
30235         (cortexa72_tunings): Likewise.
30236         (arch_macro_fusion_pair_p): Add support for AES fusion.
30237         * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
30238         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
30239         Allow virtual registers before reload so early scheduling works.
30240         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
30241         correct latency and pipeline.
30242         (cortex_a57_crypto_complex): Likewise.
30243         (cortex_a57_crypto_xor): Likewise.
30244         (define_bypass): Add AES bypass.
30246 2016-02-10  Richard Biener  <rguenther@suse.de>
30248         PR tree-optimization/69726
30249         * passes.def: Add DCE pass before late uninit.
30250         * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
30251         really fixup if-conversions job.
30253 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
30255         * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
30256         (arm_cortex_a57_tune): Likewise.
30257         (aarch_macro_fusion_pair_p): Add support for AES fusion.
30258         * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
30260 2016-02-10  Eric Botcazou  <ebotcazou@adacore.com>
30262         * timevar.def (TV_PHASE_DBGINFO): Delete.
30263         (TV_PHASE_CHECK_DBGINFO): Likewise.
30264         * varpool.c (varpool_node::assemble_decl): Do not change timevar.
30266 2016-02-10  Richard Biener  <rguenther@suse.de>
30268         PR tree-optimization/69719
30269         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
30270         Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
30272 2016-02-09  Andrew Pinski  <apinski@cavium.com>
30274         PR tree-opt/69282
30275         * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
30276         get_vcond_mask_icode returns false.
30278 2016-02-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
30280         PR target/68404
30281         * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
30282         an ADDIS that adds a pointer to a large constant that sets the
30283         upper16 bits with a load operation.
30285 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
30287         PR target/68532
30288         * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
30289         order.
30290         * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
30291         endian.
30292         (vzipq_s16): Likewise.
30293         (vzipq_s32): Likewise.
30294         (vzipq_f32): Likewise.
30295         (vzipq_u8): Likewise.
30296         (vzipq_u16): Likewise.
30297         (vzipq_u32): Likewise.
30298         (vzipq_p8): Likewise.
30299         (vzipq_p16): Likewise.
30301 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
30303         PR target/68532
30304         * config/arm/arm.c (neon_endian_lane_map): New function.
30305         (neon_vector_pair_endian_lane_map): New function.
30306         (arm_evpc_neon_vuzp): Allow for big endian lane order.
30307         * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
30308         endian.
30309         (vuzpq_s16): Likewise.
30310         (vuzpq_s32): Likewise.
30311         (vuzpq_f32): Likewise.
30312         (vuzpq_u8): Likewise.
30313         (vuzpq_u16): Likewise.
30314         (vuzpq_u32): Likewise.
30315         (vuzpq_p8): Likewise.
30316         (vuzpq_p16): Likewise.
30318 2016-02-11  Alexandre Oliva  <aoliva@redhat.com>
30320         PR target/69634
30321         * regstat.c (regstat_bb_compute_calls_crossed): Disregard
30322         debug insns.
30324 2016-02-09  Uros Bizjak  <ubizjak@gmail.com>
30326         * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
30327         truncate const_int operand 1 to QImode.
30329 2016-02-09  Eric Botcazou  <ebotcazou@adacore.com>
30331         * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
30332         corresponding to an abnormal edge.
30334 2016-02-09  Tom de Vries  <tom@codesourcery.com>
30336         PR tree-optimization/69599
30337         * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
30338         function.
30339         (find_func_aliases_for_builtin_call, find_func_clobbers)
30340         (ipa_pta_execute):  Handle case that foo and foo._0 are not in same lto
30341         partition.
30343 2016-02-09  Richard Biener  <rguenther@suse.de>
30345         PR tree-optimization/69715
30346         * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
30347         LHS on calls as non-rewritable.
30349 2016-02-09  Tom de Vries  <tom@codesourcery.com>
30351         PR lto/69707
30352         * lto-wrapper.c (append_diag_options): New function.
30353         (compile_offload_image): Call append_diag_options.
30355 2016-02-08  Sandra Loosemore  <sandra@codesourcery.com>
30357         PR other/69722
30358         * doc/extend.texi (Flag Output Operands): Correct sectioning.
30359         Minor copy-edit to fix verb tenses.
30361 2016-02-08  Jakub Jelinek  <jakub@redhat.com>
30363         PR tree-optimization/69209
30364         * ipa-split.c (split_function): If split part is not
30365         returning retval, retval has gimple type but is not
30366         gimple value, force it into a SSA_NAME first.
30368 2016-02-08  Nicklas Bo Jensen  <nbjensen@gmail.com>
30370         * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
30371         outdated section.
30373 2016-02-08  Jason Merrill  <jason@redhat.com>
30375         PR c++/69631
30376         * convert.c (convert_to_integer_1): Check dofold on truncation
30377         distribution.
30378         (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
30379         (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
30380         Rename from *_nofold.
30381         * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
30382         (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
30384 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
30386         PR target/60410
30387         * tree.c (build_common_tree_nodes): Remove short_double argument.
30388         All callers changed.
30389         * tree.h (build_common_tree_nodes): Adjust declaration.
30390         * doc/invoke.texi (-fshort-double): Remove documentation.
30391         * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
30392         MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
30393         * lto-wrapper.c (merge_and_complain, append_compiler_options)
30394         (append_linker_options): Don't handle OPT_fshort_double.
30396         PR rtl-optimization/68730
30397         * lra-remat.c (insn_to_cand_activation): New static variable.
30398         (lra_remat): Allocate and free it.
30399         (create_cand): New arg activation. Initialize a field in
30400         insn_to_cand_activation if it is nonnull.
30401         (create_cands): Pass the activation insn to create_cand when making
30402         a candidate involving an output reload.  Reorganize code a little.
30403         (do_remat): Keep track of active status of candidates in a separate
30404         bitmap.
30406 2016-02-08  Richard Biener  <rguenther@suse.de>
30408         PR tree-optimization/69719
30409         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
30410         Properly use absolute of the difference of the two offsets to
30411         compare or adjust the segment length.
30413 2016-02-08  Richard Biener  <rguenther@suse.de>
30414             Jeff Law  <law@redhat.com>
30416         PR target/68273
30417         * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
30418         types for anonymous SSA names.
30420 2016-02-08   Richard Biener  <rguenther@suse.de>
30422         PR rtl-optimization/69274
30423         * ira.c (ira_setup_alts): Do not change recog_data.operand order.
30425 2016-02-08  Jeff Law  <law@redhat.com>
30427         PR tree-optimization/65917
30428         * tree-ssa-dom.c (record_temporary_equivalences): Record both
30429         equivalences from if (x == y) style conditionals.
30430         (loop_depth_of_name): Remove.
30431         (record_equality): Remove loop depth check.
30432         * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
30433         (const_and_copies::record_const_or_copy_raw): New member function.
30434         * tree-ssa-scopedtables.c
30435         (const_and_copies::record_const_or_copy_raw): New, factored out of
30436         (const_and_copies::record_const_or_copy): Call new member function.
30438 2016-02-05  Jeff Law  <law@redhat.com>
30440         PR tree-optimization/68541
30441         * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
30442         (count_stmts_in_block): New function.
30443         (poor_ifcvt_candidate_code): Likewise.
30444         (is_feasible_trace): Add some heuristics to determine when path
30445         splitting is profitable.
30446         (find_block_to_duplicate_for_splitting_paths): Make sure the graph
30447         is a diamond with a single exit.
30449 2016-02-05  Martin Sebor  <msebor@redhat.com>
30451         PR c++/69662
30452         * doc/invoke.texi: Update -Wplacement-new to take an optional
30453         argument.
30455 2016-02-06  Richard Henderson  <rth@redhat.com>
30457         PR c/69643
30458         * tree.c (tree_nop_conversion_p): Do not strip casts into or
30459         out of non-standard address spaces.
30461 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
30463         PR rtl-optimization/69691
30464         * lra-eliminations.c (move_plus_up): Don't add the addend twice.
30466 2016-02-05  Pat Haugen  <pthaugen@us.ibm.com>
30468         * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
30469         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
30470         (*ieee128_mfvsrd_64bit): Likewise.
30471         (*ieee128_mfvsrd_32bit): Likewise.
30473 2016-02-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
30475         PR target/69369
30476         Revert r232560:
30477         2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
30479         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
30480         instrumented_version.
30482 2016-01-05  Jeremy Bennett  <jeremy.bennett@embecosm.com>
30484         * doc/invoke.texi (Optimize Options): In table of --param options
30485         rename second occurrence of tracer-min-branch-ratio to
30486         tracer-min-branch-probability, rename
30487         tracer-min-branch-ratio-feedback to
30488         tracer-min-branch-probability-feedback and clarify description,
30489         rename sched-spec-state-edge-prob-cutoff to
30490         sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
30491         to selsched-insns-to-rename, rename lto-minpartition to
30492         lto-min-partition, delete reorder-blocks-duplicate and
30493         reorder-blocks-duplicate-feedback.
30495 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
30497         * config/s390/s390.c (s390_register_info_set_ranges): Remove
30498         superfluous loops.
30500 2016-02-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
30502         * doc/extend.texi: S/390: Correct some typos.
30504 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
30506         * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
30508 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
30510         PR target/69625
30511         * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
30512         (s390_register_info_gprtofpr): Use new macros above.
30513         (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
30514         its name.
30515         (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
30516         its name.  Adjust restore and save gpr ranges.
30517         (s390_register_info_set_ranges): New function.
30518         (s390_register_info): Use new macros above.  Call
30519         s390_register_info_set_ranges.
30520         (s390_optimize_register_info): Likewise.
30521         (s390_hard_regno_rename_ok): Use new macros.
30522         (s390_hard_regno_scratch_ok): Likewise.
30523         (s390_emit_epilogue): Likewise.
30524         (s390_can_use_return_insn): Likewise.
30525         (s390_optimize_prologue): Likewise.
30526         * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
30528 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
30530         PR bootstrap/69677
30531         * config/i386/i386.c (convert_scalars_to_vector): Readd stack
30532         alignment fixes.
30533         (ix86_option_override_internal): Disable TARGET_STV even for
30534         -m{incoming,preferred}-stack-boundary=3.
30536 2016-02-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30538         * config.gcc: Mark deprecated rtems targets as obsolete.
30540 2016-02-04  Segher Boessenkool  <segher@kernel.crashing.org>
30542         PR rtl-optimization/64682
30543         PR rtl-optimization/69567
30544         * combine.c (distribute_notes) <REG_DEAD>: Place the death note
30545         before I2 only if the register is both used and set in I2.
30547 2016-02-04  DJ Delorie  <dj@redhat.com>
30549         * config/msp430/msp430.c (msp430_start_function): Add function type.
30551 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
30553         PR fortran/69368
30554         * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
30556 2016-02-04  Uros Bizjak  <ubizjak@gmail.com>
30558         PR rtl-optimization/69577
30559         Revert:
30560         2015-10-29  Richard Henderson  <rth@redhat.com>
30562         PR target/68124
30563         PR rtl-opt/67609
30564         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
30565         sse check to the exact conditions of PR 67609.
30567 2016-02-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
30569         PR target/69667
30570         * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
30571         instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
30572         not allowed into the traditional Altivec registers.
30573         (movtd_64bit_nodm): Likewise.
30574         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
30576 2016-02-04  David Malcolm  <dmalcolm@redhat.com>
30578         * config/aarch64/cortex-a57-fma-steering.c
30579         (aarch64_register_fma_steering): Remove "static" from arguments
30580         to register_pass.
30582 2016-02-04  Wilco Dijkstra  <wdijkstr@arm.com>
30584         PR target/69619
30585         * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
30586         twice when complex.
30588 2016-02-04  Mike Frysinger  <vapier@gentoo.org>
30590         * doc/invoke.texi: Delete -mno-fma4.
30592 2016-02-04  Richard Sandiford  <richard.sandiford@arm.com>
30594         PR rtl-optimization/69577
30595         * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
30596         (find_subregs_of_mode): Update accordingly.  Iterate over partial
30597         definitions.
30599 2016-02-04  Alan Lawrence  <alan.lawrence@arm.com>
30601         * config/arm/arm-protos.h (neon_reinterpret): Remove.
30602         * config/arm/arm.c (neon_reinterpret): Remove.
30603         * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
30604         vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
30605         vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
30606         vreinterpretti): Remove.
30607         * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
30608         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
30609         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
30610         neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
30611         neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
30612         neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
30613         * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
30614         vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
30615         vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
30616         vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
30617         vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
30618         vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
30619         vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
30620         vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
30621         vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
30622         vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
30623         vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
30624         vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
30625         vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
30626         vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
30627         vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
30628         vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
30629         vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
30630         vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
30631         vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
30632         vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
30633         vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
30634         vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
30635         vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
30636         vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
30637         vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
30638         vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
30639         vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
30640         vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
30641         vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
30642         vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
30643         vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
30644         vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
30645         vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
30646         vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
30647         vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
30648         vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
30649         vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
30650         vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
30651         vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
30652         vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
30653         vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
30654         vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
30655         vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
30656         vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
30657         vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
30658         vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
30659         vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
30660         vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
30661         vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
30662         vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
30663         vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
30664         vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
30665         vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
30666         vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
30667         vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
30668         vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
30669         vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
30670         vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
30671         vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
30672         vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
30673         vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
30674         vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
30675         vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
30676         vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
30677         vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
30678         vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
30679         vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
30680         vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
30681         vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
30682         vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
30683         vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
30684         vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
30685         vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
30686         vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
30687         vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
30688         vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
30689         vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
30690         vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
30691         vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
30692         vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
30693         vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
30694         vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
30695         vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
30696         vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
30697         vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
30698         vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
30699         vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
30700         vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
30701         vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
30702         vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
30703         vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
30704         vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
30705         vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
30706         vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
30707         vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
30708         vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
30709         vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
30711 2016-02-04  Martin Liska  <mliska@suse.cz>
30713         PR sanitizer/69276
30714         * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
30715         that are gimple_store_p.
30716         (maybe_instrument_call): Likewise.
30718 2016-02-04  Bin Cheng  <bin.cheng@arm.com>
30720         * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
30721         register scaling out of memory reference and comment why.
30723 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30725         PR target/65932
30726         PR target/67714
30727         * cse.c (cse_insn): Pass NULL to fold_rtx when initially
30728         folding the source of a SET.
30730 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30732         PR target/65932
30733         PR target/67714
30734         * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
30735         the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
30737 2016-02-04  Jim Wilson  <jim.wilson@linaro.org>
30739         PR target/65932
30740         PR target/67714
30741         * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
30742         HImode.
30744 2016-02-04  Christian Bruel  <christian.bruel@st.com>
30746         * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
30747         * config/arm/arm.c (arm_set_current_function): Likewise.
30749 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
30750             Ilya Enkovich  <enkovich.gnu@gmail.com>
30751             H.J. Lu  <hongjiu.lu@intel.com>
30753         PR target/69454
30754         * config/i386/i386.c (convert_scalars_to_vector): Remove
30755         stack alignment fixes.
30756         (ix86_option_override_internal): Disable TARGET_STV if stack
30757         might not be aligned enough.
30758         (ix86_minimum_alignment): Assert that TARGET_STV is false.
30760 2016-02-04  Victoria Stepanyan  <victoria.stepanyan@amd.com>
30762         * config/i386/x86-tune.def: Disable default prefetching
30763         for -march=znver1.
30765 2016-02-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
30766             Vladimir Makarov  <vmakarov@redhat.com>
30768         PR target/69461
30769         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
30770         in validating fused toc addresses.
30772 2016-02-03  Jakub Jelinek  <jakub@redhat.com>
30774         PR c/69627
30775         * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
30776         range->m_caret fields if range->m_show_caret_p is false.
30778         PR target/69644
30779         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
30780         Force oldval into register if it does not satisfy reg_or_short_operand
30781         predicate.  Fix up formatting.
30783 2016-02-03  Vladimir Makarov  <vmakarov@redhat.com>
30784             Alexandre Oliva  <aoliva@redhat.com>
30786         PR target/69461
30787         * lra-constraints.c (simplify_operand_subreg): Check additionally
30788         address validity after potential reloading.
30789         (process_address_1): Check insns validity.  In case of failure do
30790         nothing.
30792 2016-02-03  Kirill Yukhin  <kirill.yukhin@intel.com>
30794         PR target/69118
30795         * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
30796         Fix target.
30798 2016-02-02  Jakub Jelinek  <jakub@redhat.com>
30800         * wide-int.cc (canonize_uhwi): New function.
30801         (wi::divmod_internal): Use it.
30803 2016-02-02  James Norris  <jnorris@codesourcery.com>
30805         * gimplify.c (omp_notice_variable): Add usage check.
30807 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
30809         * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
30810         like LE, GE, LT, GT when emitting relational operator.
30812 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
30814         * ira-costs.c (find_costs_and_classes): Add extra argument.
30815         * target.def (ira_change_pseudo_allocno_class): Add parameter.
30816         * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
30817         * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
30818         * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
30819         Add best_class parameter, and return it if not ALL_REGS.
30820         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
30821         Add parameter.
30822         * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
30823         Update target hook.
30825 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
30827         * config/aarch64/aarch64.c
30828         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
30829         (aarch64_ira_change_pseudo_allocno_class): New function.
30831 2016-02-02  Uros Bizjak  <ubizjak@gmail.com>
30833         PR target/67032
30834         * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
30836 2016-02-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
30838         * config/avr/avr.c (avr_option_override): Set
30839         PARAM_ALLOW_STORE_DATA_RACES to 1.
30841 2016-02-02  Richard Biener  <rguenther@suse.de>
30843         PR tree-optimization/69595
30844         * match.pd: Add range test simplifications to true/false.
30846 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
30848         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
30849         * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
30850         instead.
30852 2016-02-02  Richard Biener  <rguenther@suse.de>
30854         PR tree-optimization/69606
30855         * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
30856         info on the result before moving a stmt.
30858 2016-02-02  Yuri Rumyantsev  <ysrumyan@gmail.com>
30860         PR middle-end/68542
30861         * config/i386/i386.c (ix86_expand_branch): Add support for conditional
30862         branch with vector comparison.
30863         * config/i386/sse.md (VI48_AVX): New mode iterator.
30864         (define_expand "cbranch<mode>4): Add support for conditional branch
30865         with vector comparison.
30866         * tree-vect-loop.c (optimize_mask_stores): New function.
30867         * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
30868         has_mask_store field of vect_info.
30869         * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
30870         vectorized loops having masked stores after vec_info destroy.
30871         * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
30872         correspondent macros.
30873         (optimize_mask_stores): Add prototype.
30875 2016-02-02  Alan Modra  <amodra@gmail.com>
30877         PR target/69548
30878         * config/rs6000/predicates.md (quad_int_reg_operand): Don't
30879         allow subregs.
30881 2016-02-02  Alan Modra  <amodra@gmail.com>
30883         PR target/68662
30884         * config/rs6000/rs6000.c (need_toc_init): New var, set it
30885         whenever toc_label_name used.
30886         (rs6000_file_start): Don't set up toc section here,
30887         (rs6000_output_function_epilogue): do so here instead,
30888         (rs6000_xcoff_file_start): and here.
30889         * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
30890         (load_toc_aix_di): Likewise.
30892 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
30894         PR rtl-optimization/69592
30895         * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
30896         (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
30897         (num_sign_bit_copies_binary_arith_p): New inline function.
30898         (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
30900 2016-02-01  Jeff Law  <law@redhat.com>
30902         PR tree-optimization/69580
30903         * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
30904         * tree-ssa-threadbackward.c
30905         (fsm_find_control_statement_thread_paths): Do not try to walk
30906         through large PHI nodes.
30908 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
30910         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
30911         when count is incremented above limit, don't analyze further
30912         insns afterwards.
30914         * omp-low.c (oacc_parse_default_dims): Avoid
30915         -Wsign-compare warning, make sure value fits into int
30916         rather than just unsigned int.
30918 2016-02-01  Bin Cheng  <bin.cheng@arm.com>
30920         PR tree-optimization/67921
30921         * fold-const.c (split_tree): New parameters.  Convert pointer
30922         type variable part to proper type before negating.
30923         (fold_binary_loc): Pass new arguments to split_tree.
30925 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
30927         * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
30928         (nvptx_goacc_validate_dims): Extend to handle global defaults.
30929         * target.def (OACC_VALIDATE_DIMS): Extend documentation.
30930         * doc/tm.texti: Rebuilt.
30931         * doc/invoke.texi (fopenacc-dim): Document.
30932         * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
30933         (append_compiler_options): Likewise.
30934         * omp-low.c (oacc_default_dims, oacc_min_dims): New.
30935         (oacc_parse_default_dims): New.
30936         (oacc_validate_dims): Add USED arg.  Select non-unity default when
30937         possible.
30938         (oacc_loop_fixed_partitions): Return mask of used partitions.
30939         (oacc_loop_auto_partitions): Emit dump info.
30940         (oacc_loop_partition): Return mask of used partitions.
30941         (execute_oacc_device_lower): Parse default dimension arg.  Adjust
30942         loop partitioning and validation calls.
30944 2016-02-01  Richard Biener  <rguenther@suse.de>
30946         PR middle-end/69556
30947         * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
30949 2016-02-01  Richard Biener  <rguenther@suse.de>
30951         PR tree-optimization/69574
30952         * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
30953         of asserting return chrec_dont_know.
30955 2016-02-01  Martin Liska  <mliska@suse.cz>
30957         * mem-stats-traits.h: Add copyright header.
30958         * mem-stats.h: Likewise.
30960 2016-02-01  Richard Biener  <rguenther@suse.de>
30962         PR tree-optimization/69579
30963         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
30964         Do not propagate through abnormal PHI results.
30966 2016-02-01  Eric Botcazou  <ebotcazou@adacore.com>
30968         * postreload.c (reload_cse_simplify): Remove dead code.
30970 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
30972         PR rtl-optimization/69570
30973         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
30974         if there is more than one set, not if there is a single set.
30976 2016-02-01  Richard Henderson  <rth@redhat.com>
30978         PR rtl-opt/69535
30979         * combine.c (make_compound_operation): When looking through a
30980         subreg, make sure to re-extend to the width of the outer mode.
30982 2016-01-30  Jakub Jelinek  <jakub@redhat.com>
30984         PR tree-optimization/69546
30985         * wide-int.cc (wi::divmod_internal): For unsigned division
30986         where both operands fit into uhwi, if o1 is 1 and o0 has
30987         msb set, if divident_prec is larger than bits per hwi,
30988         clear another quotient word and return 2 instead of 1.
30989         Similarly for remainder with msb in HWI set, if dividend_prec
30990         is larger than bits per hwi.
30992 2016-01-29  Martin Jambor  <mjambor@suse.cz>
30994         * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
30995         Use short lowercase names.
30996         (get_memory_order): Mask with MEMMODEL_BASE_MASK.  Support
30997         MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
30998         acq_rel one.  Protect warning agains segfaults if
30999         get_memory_order_name returns NULL.
31000         (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
31001         with release semantics.  Do not warn if get_memory_order already did.
31002         (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
31003         semantics.  Fix check for relaxed or acquire semantics.  Do not warn
31004         if get_memory_order already did.
31006 2016-01-29  Sebastian Pop  <s.pop@samsung.com>
31008         * doc/install.texi: Document that isl-0.16 is supported.
31010 2016-01-29  Vladimir Makarov  <vmakarov@redhat.com>
31012         PR target/69299
31013         * config/i386/constraints.md (Bm): Describe as special memory
31014         constraint.
31015         * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
31016         * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
31017         * genpreds.c (struct constraint_data): Add is_special_memory.
31018         (have_special_memory_constraints, special_memory_start): New
31019         static vars.
31020         (special_memory_end): Ditto.
31021         (add_constraint): Add new arg is_special_memory.  Add code to
31022         process its true value.  Update have_special_memory_constraints.
31023         (process_define_constraint): Pass the new arg.
31024         (process_define_register_constraint): Ditto.
31025         (choose_enum_order): Process special memory.
31026         (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
31027         function insn_extra_special_memory_constraint.
31028         (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
31029         * gensupport.c (process_rtx): Process
31030         DEFINE_SPECIAL_MEMORY_CONSTRAINT.
31031         * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
31032         * ira-lives.c (single_reg_class): Use
31033         insn_extra_special_memory_constraint.
31034         * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
31035         * lra-constraints.c (process_alt_operands): Ditto.
31036         (curr_insn_transform): Use insn_extra_special_memory_constraint.
31037         * recog.c (asm_operand_ok, preprocess_constraints): Process
31038         CT_SPECIAL_MEMORY.
31039         * reload.c (find_reloads): Ditto.
31040         * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
31041         * stmt.c (parse_input_constraint): Use
31042         insn_extra_special_memory_constraint.
31044 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
31046         PR target/69530
31047         * lra-splill.c (lra_final_code_change): Revert r229087 by
31048         removing all sub-registers.
31050 2016-01-29  Steve Ellcey  <sellcey@imgtec.com>
31052         PR target/65604
31053         * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
31055 2016-01-29  Jakub Jelinek  <jakub@redhat.com>
31057         PR target/69551
31058         * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
31059         SSE1, copy target into the temporary reg first before recursing
31060         on it.
31062 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
31064         * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
31065         with vm.
31067 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
31069         * ginclude/stdarg.h: Test __cplusplus instead of
31070         __GXX_EXPERIMENTAL_CXX0X__.
31072 2016-01-29  Richard Biener  <rguenther@suse.de>
31074         PR tree-optimization/69547
31075         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
31076         Do not mark clobbers necessary.
31077         (mark_all_reaching_defs_necessary_1): Likewise.
31079 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
31081         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
31082         declaration name with %qs and print it in both error messages.
31083         Also fix indentation.
31085 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
31087         PR other/69006
31088         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
31089         trailing blank line from error message.
31091 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
31093         PR c++/69462
31094         * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
31095         for C++-11.
31097 2016-01-29  Richard Biener  <rguenther@suse.de>
31099         PR middle-end/69537
31100         * match.pd: Allow all integral types when simplifying a
31101         widening or sign-changing conversion.
31103 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
31105         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
31106         back to setting codegen_error to fail codegen.
31108 2016-01-28  Uros Bizjak  <ubizjak@gmail.com>
31110         PR target/69459
31111         * config/i386/constraints.md (C): Only accept constant zero operand.
31112         (BC): New constraint.
31113         * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
31114         instead of C constraint.
31115         * doc/md.texi (Machine Constraints): Update description
31116         of C constraint.
31118 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
31120         PR target/68400
31121         * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
31123 2016-01-28  Jakub Jelinek  <jakub@redhat.com>
31125         PR middle-end/69542
31126         * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
31127         non-debug insns.
31129 2016-01-28  Pat Haugen  <pthaugen@us.ibm.com>
31131         * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
31132         branches if using guessed profile.
31134 2016-01-28  H.J. Lu  <hongjiu.lu@intel.com>
31136         * graphite-optimize-isl.c (optimize_isl): Fix dump.
31138 2016-01-28  Richard Henderson  <rth@redhat.com>
31140         PR target/69305
31141         * config/aarch64/aarch64-modes.def (CC_Cmode): New
31142         * config/aarch64/aarch64-protos.h: Update.
31143         * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
31144         (aarch64_select_cc_mode): Add check for use of CC_Cmode.
31145         (aarch64_get_condition_code_1): Handle CC_Cmode.
31146         * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
31147         (*add<mode>3_compareC_cconly_imm): New.
31148         (*add<mode>3_compareC_cconly): New.
31149         (*add<mode>3_compareC_imm): New.
31150         (add<mode>3_compareC): New.
31151         (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
31152         to be first.  Use aarch64_carry_operation.
31153         (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
31154         (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
31155         (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
31156         (subti3): Use subdi3_compare1.
31157         (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
31158         (sub<mode>3_compare1): New.
31159         (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
31160         (*sub<mode>3_carryin): Use aarch64_borrow_operation.
31161         (*subsi3_carryin_uxtw): Likewise.
31162         (*ngc<mode>, *ngcsi_uxtw): Likewise.
31163         (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
31164         * config/aarch64/iterators.md (DWI): New.
31165         * config/aarch64/predicates.md (aarch64_carry_operation): New.
31166         (aarch64_borrow_operation): New.
31168 2016-01-28  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
31170         * graphite-optimize-isl.c (optimize_isl): Print a different debug
31171         message when isl does not return a valid schedule.
31173 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
31175         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
31176         Remove comments from class declarations: they are already in the code
31177         close by the defs.
31179 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
31181         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
31182         codegen_error_p.
31183         (ternary_op_to_tree): Same.
31184         (unary_op_to_tree): Same.
31185         (nary_op_to_tree): Same.
31186         (gcc_expression_from_isl_expr_op): Same.
31187         (gcc_expression_from_isl_expression): Same.
31188         (graphite_create_new_loop): Same.
31189         (graphite_create_new_loop_guard): Same.
31190         (build_iv_mapping): Same.
31191         (graphite_create_new_guard): Same.
31192         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
31193         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
31195 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
31197         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
31198         instead of setting codegen_error to fail codegen.
31200 2016-01-28  Jason Merrill  <jason@redhat.com>
31202         * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
31204 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
31206         * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
31207         Remove CONST_INT_P check in CCMP cost calculation.
31209 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
31211         * config/aarch64/aarch64.c (generic_vector_cost):
31212         Set vec_permute_cost.
31213         (cortexa57_vector_cost): Likewise.
31214         (exynosm1_vector_cost): Likewise.
31215         (xgene1_vector_cost): Likewise.
31216         (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
31217         * config/aarch64/aarch64-protos.h (cpu_vector_cost):
31218         Add vec_permute_cost entry.
31220 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
31222         * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
31223         immediate as %1.
31224         (add<mode>3_compare0): Likewise.
31225         (addsi3_compare0_uxtw): Likewise.
31226         (add<mode>3nr_compare0): Likewise.
31227         (compare_neg<mode>): Likewise.
31228         (<optab><mode>3): Likewise.
31230 2016-01-28  Ilya Enkovich  <enkovich.gnu@gmail.com>
31232         * tree-vect-stmts.c (vectorizable_comparison): Add
31233         NULL check for vectype.
31235 2016-01-28  Richard Biener  <rguenther@suse.de>
31237         PR tree-optimization/69466
31238         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
31239         Account for PHIs we couldn't duplicate.
31241 2016-01-28  Martin Liska  <mliska@suse.cz>
31243         PR pch/68758
31244         * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
31245         instead of ENABLE_VALGRIND_CHECKING.
31247 2016-01-27  Richard Henderson  <rth@redhat.com>
31249         PR rtl-opt/69447
31250         * lra-remat.c (subreg_regs): New.
31251         (dump_candidates_and_remat_bb_data): Dump it.
31252         (operand_to_remat): Reject if operand in subreg_regs.
31253         (set_bb_regs): Collect subreg_regs.
31254         (lra_remat): Init and free subreg_regs.  Compute
31255         calculate_local_reg_remat_bb_data before create_cands.
31257 2016-01-27  H.J. Lu  <hongjiu.lu@intel.com>
31259         PR target/68986
31260         * config/i386/i386.c (ix86_update_stack_boundary): Don't
31261         change stack_alignment_needed for __tls_get_addr call.
31263 2016-01-27  Segher Boessenkool  <segher@kernel.crashing.org>
31265         * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
31267 2016-01-27  Jeff Law  <law@redhat.com>
31269         PR tree-optimization/68398
31270         PR tree-optimization/69196
31271         * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
31272         (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
31273         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
31274         Only count PHIs in the last block in the path.  The others will
31275         const/copy propagate away.  Add heuristic to allow more irreducible
31276         subloops to be created when it is likely profitable to do so.
31278         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
31279         Fix typo in comment.  Use gsi_after_labels and remove the GIMPLE_LABEL
31280         check from within the loop.  Use gsi_next_nondebug rather than gsi_next.
31282 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
31284         PR lto/69254
31285         * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
31286         END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
31287         * asan.c (DEF_BUILTIN_STUB): Temporarily define.
31288         * tree-streamer-in.c: Include asan.h.
31289         (streamer_get_builtin_tree): For builtins in sanitizer
31290         range call initialize_sanitizer_builtins and retry.
31292 2016-01-27  Ian Lance Taylor  <iant@google.com>
31294         * common.opt (fkeep-gc-roots-live): New undocumented option.
31295         * tree-ssa-loop-ivopts.c (add_candidate_1): If
31296         -fkeep-gc-roots-live, skip pointers.
31297         (add_iv_candidate_for_biv): Handle add_candidate_1 returning
31298         NULL.
31300 2016-01-27  Uros Bizjak  <ubizjak@gmail.com>
31302         PR target/69512
31303         * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
31304         (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
31306 2016-01-27  Thomas Klausner  <wiz@NetBSD.org>
31308         PR target/68380
31309         * configure.ac: NetBSD provides SSP in its C library.
31310         * configure: Updated.
31312 2016-01-27  Richard Biener  <rguenther@suse.de>
31314         PR tree-optimization/69166
31315         * tree-vect-loop.c (vect_is_simple_reduction): Always check
31316         reduction code for commutativity / associativity.
31318 2016-01-27  Martin Jambor  <mjambor@suse.cz>
31320         PR tree-optimization/69355
31321         * tree-sra.c (analyze_access_subtree): Correct hole detection when
31322         total_scalarization fails.
31324 2016-01-27  David Edelsohn  <dje.gcc@gmail.com>
31326         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
31327         power9.
31329 2016-01-27  Christian Bruel  <christian.bruel@st.com>
31331         PR target/69245
31332         * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
31333         Move arm_reset_previous_fndecl and set_target_option_current_node in
31334         the conditional part.  Call save_restore_target_globals.
31335         * config/arm/arm.c (arm_set_current_function):
31336         Refactor to better support #pragma target and attribute mix.
31337         Call save_restore_target_globals.
31338         * config/arm/arm-protos.h (save_restore_target_globals): New function.
31340 2016-01-27  Martin Liska  <mliska@suse.cz>
31342         * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
31343         reference for an HSA kernel and its host function.
31345 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
31347         PR tree-optimization/69399
31348         * wide-int.h (wi::lrshift): For larger precisions, only
31349         use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
31351 2016-01-27  Claudiu Zissulescu  <claziss@synopsys.com>
31353         * config/arc/predicates.md (proper_comparison_operator): Reject
31354         constant-constant comparison.
31356 2016-01-26  Tom de Vries  <tom@codesourcery.com>
31358         PR tree-optimization/69110
31359         * tree-data-ref.c (initialize_data_dependence_relation): Handle
31360         DR_NUM_DIMENSIONS == 0.
31362 2016-01-26  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
31363             Sebastian Pop  <s.pop@samsung.com>
31365         * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
31366         isl_ast_op_cond and isl_ast_op_select.
31367         (gcc_expression_from_isl_expr_op): Same.
31369 2016-01-26  Jason Merrill  <jason@redhat.com>
31371         PR c++/68782
31372         * tree.c (recompute_constructor_flags): Split out from
31373         build_constructor.
31374         (verify_constructor_flags): New.
31375         * tree.h: Declare them.
31377 2016-01-26  Iain Buclaw  <ibuclaw@gdcproject.org>
31379         PR rtl-optimization/69217
31380         * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
31381         are no TYPE_FIELDS set for the record type.
31383 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
31385         PR target/68662
31386         * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
31387         toc_label_name unconditionally.
31388         (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
31389         SYMBOL_REF string.  Use toc_label_name instead of constructing
31390         LCTOC1.
31391         (rs6000_elf_declare_function_name): Use toc_label_name instead of
31392         constructing LCTOC1.
31394 2016-01-26  Martin Sebor  <msebor@redhat.com>
31396         PR other/69477
31397         * doc/extend.texi (Common Type Attributes): Move text that talks about
31398         attribute packed from attribute aligned to the section discussing
31399         the former attribute for clarity.
31401 2016-01-26  Richard Henderson  <rth@redhat.com>
31403         PR middle-end/60908
31404         * trans-mem.c (tm_region_init): Mark entry block as visited.
31406 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
31408         PR other/69006
31409         * diagnostic-show-locus.c (layout::print_source_line): Replace
31410         call to pp_newline with call to layout::print_newline.
31411         (layout::print_annotation_line): Likewise.
31412         (layout::move_to_column): Likewise.
31413         (layout::print_any_fixits): After printing any fixits, print a
31414         trailing newline, if necessary.
31415         (layout::print_newline): New method, resetting any colorization
31416         before a newline.
31417         (diagnostic_show_locus): Move the pp_newline to before the
31418         early bailout.  Remove dummy block enclosing the layout instance.
31419         * diagnostic.c (default_diagnostic_finalizer): Replace invocation
31420         of pp_newline_and_flush with pp_flush.
31421         (diagnostic_append_note): Delete use of pp_newline.
31422         (diagnostic_append_note_at_rich_loc): Delete.
31423         * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
31424         * pretty-print.h (output_buffer_append_r): Reset buff->line_length
31425         when newline characters are added to the buffer.
31427 2016-01-26  Michael Matz  <matz@suse.de>
31429         * configure.ac (ac_cv_std_swap_in_utility): New test.
31430         * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
31431         * configure: Regenerate.
31432         * config.in: Regenerate.
31434 2016-01-26  Claudiu Zissulescu  <claziss@synopsys.com>
31436         * config/arc/arc.md (cstoresi4): Force operand into register.
31437         (arcset<code>): Fix predicate.
31438         (arcsetltu): Likewise.
31439         (arcsetgeu): Likewise.
31440         (arcsethi): Likewise.
31441         (arcsetls): Likewise.
31443 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
31445         PR tree-optimization/69483
31446         * gimple-fold.c (canonicalize_constructor_val): Return NULL
31447         if base has error_mark_node type.
31449 2016-01-26  Christophe Lyon  <christophe.lyon@linaro.org>
31451         PR target/68620
31452         * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
31453         * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
31454         New helper macros.
31455         (vget_lane_f16): Handle big-endian.
31456         (vgetq_lane_f16): Likewise.
31457         (vset_lane_f16): Likewise.
31458         (vsetq_lane_f16): Likewise.
31459         * config/arm/iterators.md (VQXMOV): Add V8HF.
31460         (VDQ): Add V4HF and V8HF.
31461         (V_reg): Handle V4HF and V8HF.
31462         (Is_float_mode): Likewise.
31463         * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
31464         neon_vdup_nv8hf): New patterns.
31465         (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
31466         Use VD_LANE iterator.
31467         (neon_vld1_dup<mode>): Use VQ2 iterator.
31469 2016-01-26  Nathan Sidwell  <nathan@acm.org>
31471         * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
31472         (set_oacc_fn_attrib): Add IS_KERNEL arg.
31473         * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
31474         (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
31475         (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
31476         (oacc_validate_dims): Add LEVEL arg, don't return level.
31477         (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
31478         oacc_validate_dims.
31479         (execute_oacc_device_lower): Adjust, add more dump output.
31480         * tree-ssa-loop.c (gate_oacc_kernels): Use
31481         oacc_fn_attrib_kernels_p.
31482         * tree-parloops.c (create_parallel_loop): Adjust
31483         set_oacc_fn_attrib call.
31485 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
31487         PR lto/69254
31488         * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
31489         (append_compiler_options): Handle -fcilkplus.
31490         (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
31492 2016-01-26  Nick Clifton  <nickc@redhat.com>
31494         PR target/66655
31495         * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
31496         been marked as DECL_ONE_ONLY but we do not the means to make it
31497         so, then do not allow it to bind locally.
31499 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
31501         PR lto/69254
31502         * opts.h (parse_sanitizer_options): New prototype.
31503         * opts.c (sanitizer_opts): New array.
31504         (parse_sanitizer_options): New function.
31505         (common_handle_option): Use parse_sanitizer_options.
31507 2016-01-26  H.J. Lu  <hongjiu.lu@intel.com>
31509         PR target/68986
31510         * config/i386/i386.c (ix86_compute_frame_layout): Move stack
31511         alignment adjustment to ...
31512         (ix86_update_stack_boundary): Here.  Don't over-align stack for
31513         __tls_get_addr.
31514         (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
31515         if __tls_get_addr is called.
31517 2016-01-26  Christian Bruel  <christian.bruel@st.com>
31519         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
31521 2016-01-26  Eric Botcazou  <ebotcazou@adacore.com>
31523         * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
31525 2016-01-26  Richard Biener  <rguenther@suse.de>
31527         PR middle-end/69467
31528         * match.pd: Guard X * CST CMP 0 pattern with single_use.
31530 2016-01-26  Richard Biener  <rguenther@suse.de>
31532         PR tree-optimization/69452
31533         * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
31534         (move_computations_dom_walker::before_dom_children): Rename
31535         to ...
31536         (move_computations_worker): This.
31537         (move_computations): Perform an RPO rather than a DOM walk.
31539 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
31541         PR target/69442
31542         * combine.c (combine_instructions): For REG_EQUAL note with
31543         SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
31544         to the underlying register.
31545         * doc/rtl.texi (REG_EQUAL): Document the behavior of
31546         REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
31548 2016-01-26  Roger Ferrer Ibáñez  <rofirrim@gmail.com>
31550         PR target/67896
31551         * config/aarch64/aarch64-builtins.c
31552         (aarch64_init_simd_builtin_types): Do not set structural
31553         equality to __Poly{8,16,64,128}_t types.
31555 2016-01-26  Richard Sandiford  <richard.sandiford@arm.com>
31557         PR tree-optimization/69400
31558         * wide-int.cc (wi_pack): Take the precision as argument and
31559         perform canonicalization here rather than in the callers.
31560         Use the main loop to handle all full-width HWIs.  Add a
31561         zero HWI if in_len isn't a full result.
31562         (wi::divmod_internal): Update accordingly.
31563         (wi::mul_internal): Likewise.  Simplify.
31565 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
31566             Sebastian Pop  <s.pop@samsung.com>
31568         * graphite-poly.c (apply_poly_transforms): Simplify.
31569         (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
31570         (print_isl_map): Same.
31571         (print_isl_union_map): Same.
31572         (print_isl_schedule): New.
31573         (debug_isl_schedule): New.
31574         * graphite-dependences.c (scop_get_reads): Do not call
31575         isl_union_map_add_map that is undocumented isl functionality.
31576         (scop_get_must_writes): Same.
31577         (scop_get_may_writes): Same.
31578         (scop_get_original_schedule): Remove.
31579         (scop_get_dependences): Do not call isl_union_map_compute_flow that
31580         is deprecated in isl 0.15.  Instead, use isl_union_access_* interface.
31581         (compute_deps): Remove.
31582         * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
31583         (debug_schedule_ast): New.
31584         (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
31585         set_separate_option.
31586         (graphite_regenerate_ast_isl): Add dump.
31587         (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
31588         from scop->transformed_schedule.
31589         (graphite_regenerate_ast_isl): Add more dump.
31590         * graphite-optimize-isl.c (optimize_isl): Set
31591         scop->transformed_schedule.  Check whether schedules are equal.
31592         (apply_poly_transforms): Move here.
31593         * graphite-poly.c (apply_poly_transforms): ... from here.
31594         (free_poly_bb): Static.
31595         (free_scop): Static.
31596         (pbb_number_of_iterations_at_time): Remove.
31597         (print_isl_ast): New.
31598         (debug_isl_ast): New.
31599         (debug_scop_pbb): New.
31600         * graphite-scop-detection.c (print_edge): Move.
31601         (print_sese): Move.
31602         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
31603         (build_scop_scattering): Remove.
31604         (create_pw_aff_from_tree): Assert instead of bailing out.
31605         (add_condition_to_pbb): Remove unused code, do not fail.
31606         (add_conditions_to_domain): Same.
31607         (add_conditions_to_constraints): Remove.
31608         (build_scop_context): New.
31609         (add_iter_domain_dimension): New.
31610         (build_iteration_domains): Initialize pbb->iterators.
31611         Call add_conditions_to_domain.
31612         (nested_in): New.
31613         (loop_at): New.
31614         (index_outermost_in_loop): New.
31615         (index_pbb_in_loop): New.
31616         (outermost_pbb_in): New.
31617         (add_in_sequence): New.
31618         (add_outer_projection): New.
31619         (outer_projection_mupa): New.
31620         (add_loop_schedule): New.
31621         (build_schedule_pbb): New.
31622         (build_schedule_loop): New.
31623         (embed_in_surrounding_loops): New.
31624         (build_schedule_loop_nest): New.
31625         (build_original_schedule): New.
31626         (build_poly_scop): Call build_original_schedule.
31627         * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
31628         (free_poly_dr): Remove.
31629         (struct poly_bb): Add iterators.  Remove schedule, transformed, saved.
31630         (free_poly_bb): Remove.
31631         (debug_loop_vec): Remove.
31632         (print_isl_ast): Declare.
31633         (debug_isl_ast): Declare.
31634         (scop_do_interchange): Remove.
31635         (scop_do_strip_mine): Remove.
31636         (scop_do_block): Remove.
31637         (flatten_all_loops): Remove.
31638         (optimize_isl): Remove.
31639         (pbb_number_of_iterations_at_time): Remove.
31640         (debug_scop_pbb): Declare.
31641         (print_schedule_ast): Declare.
31642         (debug_schedule_ast): Declare.
31643         (struct scop): Remove schedule.  Add original_schedule,
31644         transformed_schedule.
31645         (free_gimple_poly_bb): Remove.
31646         (print_generated_program): Remove.
31647         (debug_generated_program): Remove.
31648         (unify_scattering_dimensions): Remove.
31649         * sese.c (print_edge): ... here.
31650         (print_sese): ... here.
31651         (debug_edge): ... here.
31652         (debug_sese): ... here.
31653         * sese.h (print_edge): Declare.
31654         (print_sese): Declare.
31655         (dump_edge): Declare.
31656         (dump_sese): Declare.
31658 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
31659             Sebastian Pop  <s.pop@samsung.com>
31661         * Makefile.in: Set ISLVER in site.exp.
31663 2016-01-25  Jakub Jelinek  <jakub@redhat.com>
31665         * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
31666         DECL_VALUE_EXPR of new_var even for the non-array case.  Look
31667         through DECL_VALUE_EXPR for expansion.
31669 2016-01-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
31671         * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
31672         the frame info after reload completed.
31674 2016-01-25  Jeff Law  <law@redhat.com>
31676         PR tree-optimization/69196
31677         PR tree-optimization/68398
31678         * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
31679         tree-ssa-threadupdate.c.
31680         (determine_bb_domination_status): Prototype
31681         * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
31682         (determine_bb_domination_status): No longer static.
31683         (valid_jump_thread_path): Remove code to detect characteristics
31684         of the jump thread path not associated with correctness.
31685         * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
31686         Correct test for thread path length.  Count PHIs for real operands as
31687         statements that need to be copied.  Do not count ASSERT_EXPRs.
31688         Look at all the blocks in the thread path.  Compute and selectively
31689         filter thread paths based on threading through the latch, threading
31690         a multiway branch or crossing a multiway branch.
31692 2016-01-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31694         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled):  Add
31695         decl with __attribute__ ((unused)) annotation.
31697 2016-01-25  Ilya Enkovich  <enkovich.gnu@gmail.com>
31699         PR target/69421
31700         * tree-vect-stmts.c (vectorizable_condition): Check vectype
31701         of operands is compatible with a statement vectype.
31703 2016-01-25  Eric Botcazou  <ebotcazou@adacore.com>
31705         * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
31706         improve wording for mixed storage order support.
31708 2016-01-25  Bilyan Borisov  <bilyan.borisov@arm.com>
31710         * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
31711         (vcvt_u64_f64): Likewise.
31712         (vcvta_s64_f64): Likewise.
31713         (vcvta_u64_f64): Likewise.
31714         (vcvtm_s64_f64): Likewise.
31715         (vcvtm_u64_f64): Likewise.
31716         (vcvtn_s64_f64): Likewise.
31717         (vcvtn_u64_f64): Likewise.
31718         (vcvtp_s64_f64): Likewise.
31719         (vcvtp_u64_f64): Likewise.
31721 2016-01-25  Claudiu Zissulescu  <claziss@synopsys.com>
31723         * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
31724         (arc_init): Check validity mll64 option.
31725         (arc_save_restore): Use double load/store instruction.
31726         (arc_expand_movmem): Likewise.
31727         (arc_split_move): Don't split if we have double load/store
31728         instructions. Returns a boolean.
31729         (arc_process_double_reg_moves): Change function to return boolean
31730         instead of a sequence of instructions.
31731         (arc_dwarf_register_span): New function.
31732         * config/arc/arc-protos.h (arc_split_move): Change prototype.
31733         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
31734         * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
31735         (*movdf_insn): Likewise.
31736         * config/arc/arc.opt (mll64): New option.
31737         * config/arc/predicates.md (even_register_operand): New predicate.
31738         * doc/invoke.texi (ARC Options): Add mll64 documentation.
31740 2016-01-25  Richard Biener  <rguenther@suse.de>
31742         PR lto/69393
31743         * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
31744         * tree-streamer-out.c (pack_ts_base_value_fields): Stream
31745         DECL_NAMELESS.
31746         * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
31748 2016-01-25  Richard Biener  <rguenther@suse.de>
31750         PR tree-optimization/69376
31751         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
31752         flag.
31753         (VN_INFO_ANTI_RANGE_P): New inline.
31754         (VN_INFO_RANGE_TYPE): Likewise.
31755         * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
31756         SSA_NAME_ANTI_RANGE_P.
31757         (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
31758         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
31759         Properly query VN_INFO_RANGE_TYPE.
31761 2016-01-25  Nick Clifton  <nickc@redhat.com>
31763         PR target/66655
31764         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
31766 2016-01-23  Tom de Vries  <tom@codesourcery.com>
31768         PR tree-optimization/69426
31769         * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
31770         removed clobber.
31772 2016-01-23  Jakub Jelinek  <jakub@redhat.com>
31774         * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
31775         "the the" with "the" in the comments.
31776         * ipa-devirt.c (build_type_inheritance_graph,
31777         update_type_inheritance_graph): Likewise.
31778         * tree.c (build_function_type_list_1): Likewise.
31779         * cfgloopmanip.c (scale_loop_profile): Likewise.
31780         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
31781         * gimple-ssa-split-paths.c
31782         (find_block_to_duplicate_for_splitting_paths): Likewise.
31783         * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
31784         * expr.c (convert_move): Likewise.
31785         * var-tracking.c (vt_stack_adjustments): Likewise.
31786         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
31787         * tree-vrp.c (test_for_singularity): Likewise.
31789         * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
31790         directly instead of building a temporary tree.
31792         PR bootstrap/69434
31793         * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
31794         remove <algorithm> include.
31796 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
31798         PR target/69432
31799         * config/i386/i386.c: Include dojump.h.
31800         (expand_small_movmem_or_setmem,
31801         expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
31802         fixes.
31803         (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
31804         if dynamic_check != -1.
31806 2016-01-21  Jeff Law  <law@redhat.com>
31808         PR middle-end/69347
31809         * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
31810         record_temporary_equivalences.  Rewritten to avoid unnecessary calls
31811         into dominated_by_p.
31812         (cprop_into_successor_phis): Avoid unnecessary tests.
31814 2016-01-22  Richard Henderson  <rth@redhat.com>
31816         PR target/69416
31817         * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
31818         (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
31820 2016-01-22  Michael Matz  <matz@suse.de>
31822         * system.h (string, algorithm): Include only conditionally.
31823         (new): Include always under C++.
31824         * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
31825         * final.c (toplevel): Ditto.
31826         * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
31827         * genconditions.c (write_header): Make gencondmd.c define
31828         INCLUDE_STRING.
31829         * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
31831         * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
31832         * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
31834 2016-01-22  Christian Bruel  <christian.bruel@st.com>
31836         PR target/68674
31837         * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
31839 2016-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31841         PR target/69403
31842         * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
31843         define_insn_and_split.  Ensure operands[1] and operands[0] do not
31844         get assigned the same register.
31846 2016-01-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
31848         * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
31850 2016-01-22  Christian Bruel  <christian.bruel@st.com>
31852         * config/arm/arm-c.c (arm_pragma_target_parse):
31853         Remove warn_builtin_macro_redefined overwrite.
31855 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
31857         * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
31858         flag_non_call_exceptions compatibility.
31860 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
31862         PR debug/66668
31863         * dwarf2out.c (add_child_die_after): New function.
31864         (dwarf_qual_info_t): New type.
31865         (dwarf_qual_info): New variable.
31866         (qualified_die_p): New function.
31867         (modified_type_die): For -fdebug-types-section, ensure
31868         canonical order of qualifiers.  Put qualified DIEs adjacent
31869         to the corresponding non-qualified type DIE and search there
31870         for existing qualified DIEs.
31872 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
31874         * doc/extend.texi (scalar_storage_order type attribute): Document
31875         restriction on type punning and aliasing, and remove future tense.
31877 2016-01-21  Roman Zhuykov  <zhroma@ispras.ru>
31879         PR target/69252
31880         * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
31881         first stage.
31883 2016-01-21  Jeff Law  <law@redhat.com>
31885         PR middle-end/69347
31886         * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
31887         useless call to record_temporary_equivalences.
31888         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
31889         allocate 10 slots in the bb_path vector and let it grow as needed.
31890         (fsm_find_control_statement_thread_paths): Similarly for the next_path
31891         vector.
31893 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
31895         * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
31896         Detangle.
31897         * configure: Regenerate.
31899 2016-01-21  Pat Haugen  <pthaugen@us.ibm.com>
31901         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
31902         * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
31904 2016-01-21  Bernd Schmidt  <bschmidt@redhat.com>
31906         PR middle-end/66178
31907         * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
31908         drop EXPAND_INITIALIZER.
31909         * rtl.h (contains_symbolic_reference_p): Declare.
31910         * rtlanal.c (contains_symbolic_reference_p): New function.
31911         * simplify-rtx.c (simplify_binary_operation_1): Don't turn
31912         a subtraction into a NOT if symbolic constants are involved.
31914 2016-01-21  Anton Blanchard  <anton@samba.org>
31915             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31917         PR target/63354
31918         * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
31919         #define.
31920         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
31921         function.
31923 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
31925         * config/microblaze/microblaze.c
31926         (get_branch_target): New.
31927         (insert_wic_for_ilb_runout): New.
31928         (insert_wic): New.
31929         (microblaze_machine_dependent_reorg): New.
31930         (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
31931         * config/microblaze/microblaze.md
31932         (UNSPEC_IPREFETCH): Define.
31933         (iprefetch): New pattern
31934         * config/microblaze/microblaze.opt
31935         (mxl-prefetch): New flag.
31937 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
31939         * config/microblaze/microblaze.h
31940         (FIXED_REGISTERS): Update in macro.
31941         (CALL_USED_REGISTERS): Update in macro.
31943 2016-01-21  Yuri Rumyantsev  <ysrumyan@gmail.com>
31945         PR rtl-optimization/68920
31946         * ifcvt.c (cond_move_process_if_block): Limit number of conditional
31947         moves.
31949 2016-01-21  Vladimir Makarov  <vmakarov@redhat.com>
31951         PR rtl-optimization/68990
31952         * lra-coalesce.c (lra_coalesce): Invalidate value for the result
31953         pseudo instead of inheritance ones.
31955 2016-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
31956             Nick Clifton  <nickc@redhat.com>
31958         PR target/69129
31959         PR target/69012
31960         * config/mips/mips.c (mips_compute_frame_info): Initialise
31961         args_size and hard_frame_pointer_offset fields of the frame
31962         structure before calling mips_global_pointer.
31964 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
31966         * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
31967         label reference.
31968         * configure: Regenerate.
31970 2016-01-21  Richard Biener  <rguenther@suse.de>
31972         * graphite-optimize-isl.c (get_schedule_map): Fix typo.
31974 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
31976         * config/s390/s390.c (s390_asm_declare_function_size): Add code
31977         to actually emit the .size directive.
31979 2016-01-21   Stefan Sørensen  <stefan.sorensen@spectralink.com>
31980              Jakub Jelinek  <jakub@redhat.com>
31982         PR target/69187
31983         PR target/65624
31984         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
31985         args array size by one to avoid buffer overflow.
31987 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
31989         * config/s390/s390.md (pool_section_start): Use switch_to_section
31990         to select proper read-only data section instead of hardcoding
31991         .rodata.
31992         (pool_section_end): Use switch_to_section to match the above.
31994 2016-01-21  Richard Biener  <rguenther@suse.de>
31996         PR tree-optimization/69378
31997         * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
31998         (set_ssa_val_to): Use it for dominance checks taking into
31999         account not executable edges.
32001 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
32003         PR c++/69355
32004         * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
32005         for bitsize instead of GET_MODE_PRECISION (mode).
32007 2016-01-20  Martin Sebor  <msebor@redhat.com>
32009         PR c/52291
32010         * extend.texi (__sync Builtins): Clarify the semantics of
32011         __sync_fetch_and_OP built-ins on pointers.
32012         (__atomic Builtins): Same.
32014 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
32015             Sebastian Pop  <s.pop@samsung.com>
32017         * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
32018         (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
32019         (is_valid_rename): Same.
32020         (translate_isl_ast_to_gimple::get_rename): Same.
32021         (translate_isl_ast_to_gimple::rename_all_uses): Same.
32022         (translate_isl_ast_to_gimple::rename_uses): Same.
32023         (get_new_name): Check for close_phi nodes.
32024         (copy_loop_phi_args): Use phi_node_kind.
32025         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
32026         (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
32028 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
32029             Sebastian Pop  <s.pop@samsung.com>
32031         Revert commit r229783.
32032         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
32033         Remove use of parameter_rename_map.
32034         (copy_def): Remove.
32035         (copy_internal_parameters): Remove.
32036         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
32037         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
32038         (free_sese_info): Do not free parameter_rename_map.
32039         (set_rename): Do not use parameter_rename_map.
32040         (rename_uses): Update call to set_rename.
32041         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
32042         * sese.h (parameter_rename_map_t): Remove.
32043         (struct sese_info_t): Remove field parameter_rename_map.
32045 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
32046             Sebastian Pop  <s.pop@samsung.com>
32048         * graphite-isl-ast-to-gimple.c: Fix comment.
32049         * graphite-scop-detection.c (defined_in_loop_p): New.
32050         (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
32051         names defined in loop.
32053 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
32054             Sebastian Pop  <s.pop@samsung.com>
32056         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
32057         Discard unstructured if-then-else regions.
32059 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
32060             Sebastian Pop  <s.pop@samsung.com>
32062         * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
32063         (cleanup_loop_iter_dom): Remove.
32064         (build_loop_iteration_domains): Remove.
32065         (build_scop_context): Remove.
32066         (build_scop_iteration_domain): Remove.
32067         (add_loop_constraints): New.
32068         (build_iteration_domains): New.
32069         (build_poly_scop): Call build_iteration_domains.
32071 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
32072             Sebastian Pop  <s.pop@samsung.com>
32074         * graphite-scop-detection.c
32075         (scop_detection::harmful_loop_in_region): Free dom and loops.
32076         (scop_detection::loop_body_is_valid_scop): Free bbs.
32078 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
32079             Sebastian Pop  <s.pop@samsung.com>
32081         * graphite-scop-detection.c (record_loop_in_sese): New.
32082         (gather_bbs::before_dom_children): Call record_loop_in_sese.
32083         (build_scops): Remove call to build_sese_loop_nests.
32084         * sese.c (sese_record_loop): Remove.
32085         (build_sese_loop_nests): Remove.
32086         (new_sese_info): Remove region->loops.
32087         (free_sese_info): Same.
32088         * sese.h (sese_contains_loop): Same.
32089         (build_sese_loop_nests): Remove.
32090         (sese_contains_loop): Remove.
32092 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
32093             Sebastian Pop  <s.pop@samsung.com>
32095         * graphite-scop-detection.c (loop_is_valid_scop): Renamed
32096         loop_is_valid_in_scop.
32097         (scop_detection::harmful_stmt_in_region): Renamed
32098         harmful_loop_in_region.
32099         Call loop_is_valid_in_scop.
32101 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
32102             Sebastian Pop  <s.pop@samsung.com>
32104         * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
32105         isl_ast_node_mark.
32107 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
32108             Sebastian Pop  <s.pop@samsung.com>
32110         * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
32111         * graphite.h (struct poly_bb): Remove field is_reduction.
32112         (PBB_IS_REDUCTION): Remove.
32114 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
32115             Sebastian Pop  <s.pop@samsung.com>
32117         * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
32118         (add_pdr_constraints): Same.
32119         (scop_get_reads): Same.
32120         (scop_get_must_writes): Same.
32121         (scop_get_may_writes): Same.
32122         (scop_get_original_schedule): Same.
32123         (extend_schedule): Same.
32124         (apply_schedule_on_deps): Same.
32125         (carries_deps): Same.
32126         (compute_deps): Same.
32127         (scop_get_dependences): Same.
32128         * graphite-isl-ast-to-gimple.c
32129         (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
32130         * graphite-optimize-isl.c (get_schedule_for_band): Same.
32131         (get_schedule_for_band_list): Same.
32132         (get_schedule_map): Same.
32133         (apply_schedule_map_to_scop): Same.
32134         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
32135         (build_loop_iteration_domains): Same.
32136         (add_condition_to_pbb): Same.
32137         (add_param_constraints): Same.
32138         (pdr_add_memory_accesses): Same.
32139         (pdr_add_data_dimensions): Same.
32141 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
32143         * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
32144         requirements.
32146 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
32148         * common.opt (feliminate-dwarf2-dups): Replace references to
32149         "DWARF 2" with just "DWARF".
32150         * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
32151         * doc/extend.texi: Likewise.
32152         * doc/cpp.texi: Likewise.
32153         * doc/invoke.texi: Likewise.
32154         (Option Summary): Add -gdwarf to list of Debugging Options.
32155         (Debugging Options): Document -gdwarf.
32156         * doc/contrib.texi: Spell "DWARF" like that.
32158 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
32160         * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
32161         warning.  Fix up formatting.
32163         PR middle-end/67653
32164         * gimplify.c (gimplify_asm_expr): Warn if it is too late to
32165         attempt to mark memory input operand addressable and
32166         call prepare_gimple_addressable in that case.  Don't adjust
32167         input_location for diagnostics, use error_at instead.
32169 2016-01-20  Peter Bergner  <bergner@vnet.ibm.com>
32171         * config/rs6000/ppc-auxv.h: New file.
32172         * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
32173         (cpu_is): Likewise.
32174         (cpu_supports): Likewise.
32175         * config/rs6000/rs6000.c: include "ppc-auxv.h".
32176         (cpu_is_info): New variable.
32177         (cpu_supports_info): Likewise.
32178         (tcb_verification_symbol): Likewise.
32179         (cpu_builtin_p): Likewise.
32180         (cpu_expand_builtin): New function.
32181         (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
32182         (rs6000_init_builtins): Likewise.
32183         (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
32184         * config/rs6000/rs6000.h (TLS_REGNUM): New define.
32185         * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
32186         * configure: Regenerate.
32187         * config.in: Likewise.
32188         * doc/extend.texi (PowerPC Built-in Functions): Document
32189         __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
32191 2016-01-20  David Edelsohn  <dje.gcc@gmail.com>
32193         PR target/68609
32194         * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
32195         domain check.
32196         * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
32197         for V4SFmode.
32199 2016-01-20  Richard Henderson  <rth@redhat.com>
32201         PR bootstrap/69343
32202         PR bootstrap/69339
32203         PR tree-opt/68964
32204         Revert:
32205         * tree.c (tm_define_builtin): New.
32206         (find_tm_vector_type): New.
32207         (build_tm_vector_builtins): New.
32208         (build_common_builtin_nodes): Call it.
32210 2016-01-20  Christophe Lyon  <christophe.lyon@linaro.org>
32212         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
32213         (arm_fp_ok): Likewise.
32214         (arm_fp): Likewise.
32215         (arm_crypto): Likewise.
32217 2016-01-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
32218             Richard Biener  <rguenther@suse.de>
32220         PR tree-optimization/69328
32221         * tree-vect-stmts.c (vect_is_simple_cond): Check compared
32222         vectors have same number of elements.
32223         (vectorizable_condition): Fix masked version recognition.
32225 2016-01-20  Richard Biener  <rguenther@suse.de>
32227         PR tree-optimization/69345
32228         * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
32229         (VN_INFO_PTR_INFO): Likewise.
32230         * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
32231         info when it is equal between non-dominating SSA names.
32232         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
32233         Make sure to look at original SSA infos.
32235 2016-01-20  Jeff Law  <law@redhat.com>
32237         PR target/25114
32238         * config/m68k/predicates.md (pow2_m1_operand): New predicate
32239         extracted from ...
32240         (reg_or_pow2_m1_operand): Call pow2_m1_operand.
32241         (pc_or_label_operand): New predicate.
32242         * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
32243         tests for small integers that are 2^n - 1.
32245 2016-01-20  Jonathan Wakely  <jwakely@redhat.com>
32247         * doc/invoke.texi (Options Summary): Add '.' after @xref.
32249 2016-01-19  Jeff Law  <law@redhat.com>
32251         PR middle-end/69347
32252         * tree-ssa-threadbackwards.c
32253         (fsm_find_control_statement_thread_paths): Do not try to lookup
32254         FSM paths for SSA_NAMEs appearing in abnormal PHIs.
32256 2016-01-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
32258         * doc/lto.texi: Remove text that says only Gold has linker plugin
32259         support.
32261 2016-01-19  Eric Botcazou  <ebotcazou@adacore.com>
32263         * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
32264         (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
32265         the DIE accordingly.
32266         (modified_type_die): Add REVERSE parameter and pass it recursively,
32267         as well as to base_type_die.  Adjust presence check accordingly.
32268         (base_type_for_mode): Adjust call to modified_type_die.
32269         (add_type_attribute): Add REVERSE parameter and pass it to
32270         modified_type_die.
32271         (generic_parameter_die): Adjust call to add_type_attribute.
32272         (add_scalar_info): Likewise.
32273         (add_subscript_info): Likewise.
32274         (gen_array_type_die): Likewise.
32275         (gen_descr_array_type_die): Likewise.
32276         (gen_entry_point_die): Likewise.
32277         (gen_enumeration_type_die): Likewise.
32278         (gen_formal_parameter_die): Likewise.
32279         (gen_subprogram_die): Likewise.
32280         (gen_variable_die ): Likewise.
32281         (gen_const_die): Likewise.
32282         (gen_field_die): Likewise.
32283         (gen_pointer_type_die): Likewise.
32284         (gen_reference_type_die): Likewise.
32285         (gen_ptr_to_mbr_type_die): Likewise.
32286         (gen_inheritance_die): Likewise.
32287         (gen_subroutine_type_die): Likewise.
32288         (gen_typedef_die): Likewise.
32289         (force_type_die): Adjust call to modified_type_die.
32291 2016-01-19  Sandra Loosemore  <sandra@codesourcery.com>
32293         * doc/standards.texi: Copy-editing for grammar, markup, and sentence
32294         flow throughout the file.  Fix broken link to Objective-C 2.0
32295         documentation.
32296         * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
32297         errors.
32299 2016-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
32301         * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
32303 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
32305         PR ipa/66223
32306         * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
32307         (maybe_record_node): Record cxa_pure_virtual as the only possible
32308         target if there are not ohter candidates.
32309         (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
32311 2016-01-19  Richard Biener  <rguenther@suse.de>
32313         * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
32314         (get_memory_order): Likewise.
32316 2016-01-19  Kirill Yukhin  <kirill.yukhin@intel.com>
32318         * tree-vect-stmts.c (vectorizable_store): Check
32319         rhs vectype.
32321 2016-01-19  David Malcolm  <dmalcolm@redhat.com>
32323         PR jit/68446
32324         * gcc.c (driver::decode_argv): Add call to
32325         init_opts_obstack before init_options_struct.
32326         * opts.c (init_opts_obstack): Remove idempotency.
32327         (init_options_struct): Replace call to init_opts_obstack
32328         with a gcc_assert to verify that it has already been called.
32329         * toplev.c (toplev::main): Add call to init_opts_obstack before
32330         calls to init_options_struct.
32331         (toplev::finalize): Move cleanup of opts_obstack next to
32332         cleanup of save_decoded_options, clearing the latter, and
32333         save_decoded_options_count.
32335 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32337         PR target/69135
32338         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
32339         attribute to unconditional.  Remove %? from output template.
32341 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
32342             Jiong Wang  <jiong.wang@arm.com>
32344         * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
32345         generated from different expand order.
32347 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
32349         * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
32350         Add support for CCMP costing.
32352 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
32354         * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
32355         * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
32356         (fccmpe<mode>): Likewise.
32357         (fcmp): Rename to fcmp and globalize pattern.
32358         (fcmpe): Likewise.
32359         * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
32360         (aarch64_gen_ccmp_next): Add FP support.
32362 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
32364         * target.def (gen_ccmp_first): Update documentation.
32365         (gen_ccmp_next): Likewise.
32366         * doc/tm.texi (gen_ccmp_first): Update documentation.
32367         (gen_ccmp_next): Likewise.
32368         * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
32369         expand_ccmp_expr_1.  Improve comments.
32370         * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
32371         (ccmp_ior<mode>): Remove pattern.
32372         (cmp<mode>): Remove expand.
32373         (cmp): Globalize pattern.
32374         (cstorecc4): Use cc_register.
32375         (mov<mode>cc): Remove ccmp_cc_register check.
32376         * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
32377         Simplify after removal of CC_DNE/* modes.
32378         (aarch64_ccmp_mode_to_code): Remove.
32379         (aarch64_print_operand): Remove 'K' case.  Merge 'm' and 'M' cases.
32380         In 'k' case use integer as condition.
32381         (aarch64_nzcv_codes): Remove inverted cases.
32382         (aarch64_code_to_ccmode): Remove.
32383         (aarch64_gen_ccmp_first): Use cmp pattern directly.  Return the correct
32384         comparison with CC register to be used in folowing CCMP/branch/CSEL.
32385         (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
32386         pattern.  Return the comparison with CC register.  Invert conditions
32387         when bitcode is OR.
32388         * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
32389         * config/aarch64/predicates.md (ccmp_cc_register): Remove.
32391 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
32393         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
32394         instrumented_version.
32396 2016-01-19  Richard Biener  <rguenther@suse.de>
32398         PR tree-optimization/69336
32399         * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
32400         handled components with get_ref_base_and_extent.
32401         (equal_mem_array_ref_p): Adjust.
32403 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
32405         PR debug/65779
32406         * shrink-wrap.c: Include valtrack.h.
32407         (move_insn_for_shrink_wrap): Add DEBUG argument.  If
32408         MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
32409         in between insn and where it will be moved to.  Call
32410         dead_debug_insert_temp.
32411         (prepare_shrink_wrap): Adjust caller.  Call dead_debug_local_init
32412         first and dead_debug_local_finish at the end.
32413         For uses and defs bitmap, handle all regs in between REGNO and
32414         END_REGNO, not just the first one.
32416 2016-01-19  Richard Biener  <rguenther@suse.de>
32418         PR tree-optimization/69352
32419         * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
32420         (equal_mem_array_ref_p): Constrain size and max size properly.
32421         Compare the reverse flag.
32423 2016-01-19  Bernd Schmidt  <bschmidt@redhat.com>
32425         * ira.c (ira): Update regstat data if we deleted insns.
32427 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
32429         PR rtl-optimization/68955
32430         PR rtl-optimization/64557
32431         * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
32432         here.  Fix up formatting.
32433         * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
32435 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
32437         PR lto/69133
32438         * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
32439         assume that the node has body.
32440         * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
32441         check.
32443 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
32445         * lto-streamer-out.c (lto_output): Do not stream instrumentation
32446         thunks.
32448 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
32450         * symtab.c (symtab_node::asm_name): Do not call printable name directly.
32451         (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
32453 2016-01-19  Martin Jambor  <mjambor@suse.cz>
32454             Martin Liska  <mliska@suse.cz>
32455             Michael Matz  <matz@suse.de>
32457         * Makefile.in (OBJS): Add new source files.
32458         (GTFILES): Add hsa.c.
32459         * common.opt (disable_hsa): New variable.
32460         (-Whsa): New warning.
32461         * config.in (ENABLE_HSA): New.
32462         * configure.ac: Treat hsa differently from other accelerators.
32463         (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
32464         $enable_offloading.
32465         (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
32466         * doc/install.texi (Configuration): Document --with-hsa-runtime,
32467         --with-hsa-runtime-include, --with-hsa-runtime-lib and
32468         --with-hsa-kmt-lib.
32469         * doc/invoke.texi (-Whsa): Document.
32470         (hsa-gen-debug-stores): Likewise.
32471         * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
32472         to invoke offload compiler for hsa acclerator.
32473         * opts.c (common_handle_option): Determine whether HSA offloading
32474         should be performed.
32475         * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
32476         * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
32477         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
32478         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
32479         * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
32480         * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
32481         GF_OMP_FOR_KIND_GRID_LOOP.
32482         (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
32483         (pp_gimple_stmt_1): Likewise.
32484         * gimple-walk.c (walk_gimple_stmt): Likewise.
32485         * gimple.c (gimple_build_omp_grid_body): New function.
32486         (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
32487         * gimple.def (GIMPLE_OMP_GRID_BODY): New.
32488         * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
32489         GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
32490         GF_OMP_TEAMS_GRID_PHONY.
32491         (gimple_statement_omp_single_layout): Updated comments.
32492         (gimple_build_omp_grid_body): New function.
32493         (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
32494         (gimple_omp_for_grid_phony): New function.
32495         (gimple_omp_for_set_grid_phony): Likewise.
32496         (gimple_omp_parallel_grid_phony): Likewise.
32497         (gimple_omp_parallel_set_grid_phony): Likewise.
32498         (gimple_omp_teams_grid_phony): Likewise.
32499         (gimple_omp_teams_set_grid_phony): Likewise.
32500         (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
32501         * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
32502         (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
32503         (BUILT_IN_GOMP_TARGET): Updated type.
32504         * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
32505         (adjust_for_condition): New function.
32506         (get_omp_for_step_from_incr): Likewise.
32507         (extract_omp_for_data): Moved parts to adjust_for_condition and
32508         get_omp_for_step_from_incr.
32509         (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
32510         (fixup_child_record_type): Bail out if receiver_decl is NULL.
32511         (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
32512         (scan_omp_parallel): Do not create child functions for phony
32513         constructs.
32514         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
32515         (scan_omp_1_op): Checking assert we are not remapping to
32516         ERROR_MARK.  Also also handle GIMPLE_OMP_GRID_BODY.
32517         (parallel_needs_hsa_kernel_p): New function.
32518         (expand_parallel_call): Register apprpriate parallel child
32519         functions as HSA kernels.
32520         (grid_launch_attributes_trees): New type.
32521         (grid_attr_trees): New variable.
32522         (grid_create_kernel_launch_attr_types): New function.
32523         (grid_insert_store_range_dim): Likewise.
32524         (grid_get_kernel_launch_attributes): Likewise.
32525         (get_target_argument_identifier_1): Likewise.
32526         (get_target_argument_identifier): Likewise.
32527         (get_target_argument_value): Likewise.
32528         (push_target_argument_according_to_value): Likewise.
32529         (get_target_arguments): Likewise.
32530         (expand_omp_target): Call get_target_arguments instead of looking
32531         up for teams and thread limit.
32532         (grid_expand_omp_for_loop): New function.
32533         (grid_arg_decl_map): New type.
32534         (grid_remap_kernel_arg_accesses): New function.
32535         (grid_expand_target_kernel_body): New function.
32536         (expand_omp): Call it.
32537         (lower_omp_for): Do not emit phony constructs.
32538         (lower_omp_taskreg): Do not emit phony constructs but create for them
32539         a temporary variable receiver_decl.
32540         (lower_omp_taskreg): Do not emit phony constructs.
32541         (lower_omp_teams): Likewise.
32542         (lower_omp_grid_body): New function.
32543         (lower_omp_1): Call it.
32544         (grid_reg_assignment_to_local_var_p): New function.
32545         (grid_seq_only_contains_local_assignments): Likewise.
32546         (grid_find_single_omp_among_assignments_1): Likewise.
32547         (grid_find_single_omp_among_assignments): Likewise.
32548         (grid_find_ungridifiable_statement): Likewise.
32549         (grid_target_follows_gridifiable_pattern): Likewise.
32550         (grid_remap_prebody_decls): Likewise.
32551         (grid_copy_leading_local_assignments): Likewise.
32552         (grid_process_kernel_body_copy): Likewise.
32553         (grid_attempt_target_gridification): Likewise.
32554         (grid_gridify_all_targets_stmt): Likewise.
32555         (grid_gridify_all_targets): Likewise.
32556         (execute_lower_omp): Call grid_gridify_all_targets.
32557         (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
32558         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
32559         (tree_omp_clause): Added union field dimension.
32560         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
32561         * tree.c (omp_clause_num_ops): Added number of arguments of
32562         OMP_CLAUSE__GRIDDIM_.
32563         (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
32564         (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
32565         * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
32566         (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
32567         (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
32568         (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
32569         * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
32570         * tree-pass.h (make_pass_gen_hsail): Declare.
32571         (make_pass_ipa_hsa): Likewise.
32572         * ipa-hsa.c: New file.
32573         * lto-section-in.c (lto_section_name): Add hsa section name.
32574         * lto-streamer.h (lto_section_type): Add hsa section.
32575         * timevar.def (TV_IPA_HSA): New.
32576         * hsa-brig-format.h: New file.
32577         * hsa-brig.c: New file.
32578         * hsa-dump.c: Likewise.
32579         * hsa-gen.c: Likewise.
32580         * hsa.c: Likewise.
32581         * hsa.h: Likewise.
32582         * toplev.c (compile_file): Call hsa_output_brig.
32583         * hsa-regalloc.c: New file.
32585 2016-01-18  Jeff Law  <law@redhat.com>
32587         PR tree-optimization/69320
32588         * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
32589         ranged object, do nothing if the RHS constant is not [0..1].
32590         (optimize_stmt): Comparing a boolean ranged object against a
32591         constant outside [0..1] results in a compile-time constant.
32593         * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
32594         test.
32596 2016-01-18  Sandra Loosemore  <sandra@codesourcery.com>
32598         * doc/invoke.texi (Invoking GCC): Add new section to menu.
32599         (Option Summary): Update to reflect new section and moved options.
32600         (C++ Dialect Options): Move -fstats to new section.
32601         (Debugging Options): Move all dump, statistics, and other GCC
32602         developer options to new section.  Rewrite section introduction
32603         and re-order remaining options to put the more basic ones first.
32604         (Optimization Options): Move -fira-verbose and -flto-report* to
32605         new section.
32606         (Developer Options): New section incorporating moved options.
32607         * doc/cppopts.texi (-dM): Update cross-reference.
32609 2016-01-18  Richard Henderson  <rth@redhat.com>
32611         PR target/69176
32612         * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
32613         operands to pseudo only if CSE is expected.  Split long immediate
32614         operands only after reload, and for the stack pointer.
32615         (*add<GPI>3_pluslong): Remove.
32616         (*addsi3_aarch64, *adddi3_aarch64): Merge into...
32617         (*add<GPI>3_aarch64): ... here.  Add r/rk/Upl alternative.
32618         (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
32619         (*add<GPI>3 peepholes): New.
32620         (*add<GPI>3 splitters): New.
32621         * config/aarch64/constraints.md (Upl): New.
32622         * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
32624 2016-01-18  Richard Biener  <rguenther@suse.de>
32626         PR tree-optimization/69297
32627         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
32628         stmt at most once.
32629         (vect_bb_vectorization_profitable_p): Clear visited flag again.
32631 2016-01-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
32633         PR middle-end/68542
32634         * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
32635         of mixind vector and scalar types.
32636         (fold_relational_const): Add handling of vector
32637         comparison with boolean result.
32638         * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
32639         comparison of vector operands with boolean result for EQ/NE only.
32640         (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
32641         (verify_gimple_cond): Likewise.
32642         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
32643         valid type of VAL.
32645 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
32647         * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
32648         !TARGET_OCTEON.
32650 2016-01-18  Richard Biener  <rguenther@suse.de>
32652         PR middle-end/69308
32653         * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
32655 2016-01-18  Tom de Vries  <tom@codesourcery.com>
32657         * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
32659 2016-01-18  Tom de Vries  <tom@codesourcery.com>
32661         * omp-low.c (set_oacc_fn_attrib): Make extern.
32662         * omp-low.h (set_oacc_fn_attrib): Declare.
32663         * tree-parloops.c (struct reduction_info): Add reduc_addr field.
32664         (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
32665         (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
32666         Add and handle function parameter oacc_kernels_p.
32667         (find_reduc_addr, get_omp_data_i_param): New function.
32668         (ref_conflicts_with_region, oacc_entry_exit_ok_1)
32669         (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
32670         (parallelize_loops): Add and handle function parameter oacc_kernels_p.
32671         Calculate dominance info.  Skip loops that are not in a kernels region
32672         in oacc_kernels_p mode.  Skip inner loops of parallelized loops.
32673         (pass_parallelize_loops::execute): Call parallelize_loops with
32674         oacc_kernels_p argument.
32675         (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
32676         New member function.
32677         (pass_parallelize_loops::bool oacc_kernels_p): New member var.
32678         * passes.def: Add argument to pass_parallelize_loops instantation.
32680 2016-01-18  Tom de Vries  <tom@codesourcery.com>
32682         * tree-parloops.c (pass_parallelize_loops::execute): Allow
32683         pass_parallelize_loops to be run outside the loop pipeline.
32685 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
32687         * tree-scalar-evolution.c (follow_copies_to_constant): New.
32688         (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
32690 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
32692         PR target/63679
32693         * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
32694         using get_ref_base_and_extent.
32695         (equal_mem_array_ref_p): New.
32696         (hashable_expr_equal_p): Add call to previous.
32698 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
32700         PR target/63679
32701         * tree-sra.c (disqualified_constants, constant_decl_p): New.
32702         (sra_initialize): Allocate disqualified_constants.
32703         (sra_deinitialize): Free disqualified_constants.
32704         (disqualify_candidate): Update disqualified_constants when appropriate.
32705         (create_access): Scan for constant-pool entries as we go along.
32706         (scalarizable_type_p): Add check against type_contains_placeholder_p.
32707         (maybe_add_sra_candidate): Allow constant-pool entries.
32708         (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
32709         (initialize_constant_pool_replacements): New.
32710         (sra_modify_assign): Avoid mangling assignments created by previous,
32711         and don't generate writes into constant pool.
32712         (sra_modify_function_body): Call initialize_constant_pool_replacements.
32714 2016-01-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
32716         * config/i386/i386.c (scalar_to_vector_candidate_p): Support
32717         andnot instruction.
32718         (scalar_chain::convert_op): Likewise.
32719         * config/i386/i386.md (*andndi3_doubleword): New.
32721 2016-01-18  Richard Biener  <rguenther@suse.de>
32723         PR tree-optimization/69170
32724         * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
32725         building a vector from scalar results of a pattern stmt.
32727 2016-01-18  Jakub Jelinek  <jakub@redhat.com>
32729         * haifa-sched.c (autopref_multipass_init): Work around
32730         -Wmaybe-uninitialized warning.
32732 2016-01-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
32734         * config/arm/arm.c (thumb1_reorg): Check that the comparison is
32735         against the constant 0.
32737 2016-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32739         PR tree-optimization/68799
32740         * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
32741         look up phi candidates in the statement-candidate map.
32742         (phi_add_costs): Likewise.
32743         (record_phi_increments): Likewise.
32744         (phi_incr_cost): Likewise.
32745         (ncd_with_phi): Likewise.
32746         (all_phi_incrs_profitable): Likewise.
32748 2016-01-17  Jakub Jelinek  <jakub@redhat.com>
32750         * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
32751         -Wmaybe-uninitialized warning.
32753 2016-01-16  Sandra Loosemore  <sandra@codesourcery.com>
32755         * doc/invoke.texi (Invoking GCC): Add new section to menu.
32756         (Option Summary): Update to reflect new section and moved options.
32757         (C++ Dialect Options): Move -fvtable-verify and related options.
32758         (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
32759         and profiling-related options.
32760         (Optimization Options): Move profile generation options and
32761         -fstack-protector and related options.
32762         (Instrumentation Options): New section incorporating moved options.
32763         (Code Generation Options): Move -finstrument-functions and
32764         related options, -fstack-check, -fstack-limit*, and -fbounds-check.
32766 2016-01-16  Tom de Vries  <tom@codesourcery.com>
32768         * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
32770 2016-01-16  Tom de Vries  <tom@codesourcery.com>
32772         * omp-low.c (expand_omp_atomic_fetch_op):  Release defs of update stmt.
32774 2016-01-16  Richard Sandiford  <richard.sandiford@arm.com>
32776         * hash-table.h (hash_table::empty): Turn into an inline wrapper
32777         that checks whether the table is already empty.  Rename the
32778         original implementation to...
32779         (hash_table::empty_slot): ...this new private function.
32781 2016-01-15  David Malcolm  <dmalcolm@redhat.com>
32783         PR diagnostic/68899
32784         * diagnostic-show-locus.c (layout::print_source_line): Move x
32785         offset of line until after call to
32786         get_line_width_without_trailing_whitespace.
32788 2016-01-15  Jeff Law  <law@redhat.com>
32790         PR tree-optimization/69270
32791         * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
32792         tree-ssa-dom.c.  Improve test for [0..1] ranve from VRP.
32793         * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
32794         * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
32795         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
32796         ssa_name_has_boolean_range and constant_boolean_node.
32798 2016-01-15  Vladimir Makarov  <vmakarov@redhat.com>
32800         PR rtl-optimization/69030
32801         * lra-spills.c (remove_pseudos): Check nrefs and make the function
32802         returning bool.
32803         (spill_pseudos): Delete debug insn for dead pseudo.
32804         (lra_spill): Initiate spill_hard_reg and slots memory separately.
32806 2016-01-15  Jiong Wang  <jiong.wang@arm.com>
32808         * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
32809         New.
32810         (TYPES_UNOPUS): Likewise.
32811         * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
32812         builtin type, from UNOP to UNOPUS.
32813         (lbtruncuv4sf): Likewise.
32814         (lbtruncuv2df): Likewise.
32815         (lrounduv2sf): Likewise.
32816         (lrounduv4sf): Likewise.
32817         (lrounduv2df): Likewise.
32818         (lroundusf): Likewise.
32819         (lroundusf): Likewise.
32820         (lceiluv2sf): Likewise.
32821         (lceiluv4sf): Likewise.
32822         (lceiluv2df): Likewise.
32823         (lceilusf): Likewise.
32824         (lceiludf): Likewise.
32825         (lflooruv2sf): Likewise.
32826         (lflooruv4sf): Likewise.
32827         (lflooruv2df): Likewise.
32828         (lfloorusf): Likewise.
32829         (lfloorudf): Likewise.
32830         (lfrintnuv2sf): Likewise.
32831         (lfrintnuv4sf): Likewise.
32832         (lfrintnuv2df): Likewise.
32833         (lfrintnusf): Likewise.
32834         (lfrintnudf): Likewise.
32835         * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
32836         conversion.
32837         (vcvtq_u32_f32): Likewise.
32838         (vcvtq_u64_f64): Likewise.
32839         (vcvta_u32_f32): Likewise.
32840         (vcvtaq_u32_f32): Likewise.
32841         (vcvtaq_u64_f64): Likewise.
32842         (vcvtm_u32_f32): Likewise.
32843         (vcvtmq_u32_f32): Likewise.
32844         (vcvtmq_u64_f64): Likewise.
32845         (vcvtn_u32_f32): Likwise.
32846         (vcvtnq_u32_f32): Likewise.
32847         (vcvtnq_u64_f64): Likewise.
32848         (vcvtp_u32_f32): Likewise.
32849         (vcvtpq_u32_f32): Likewise.
32850         (vcvtpq_u64_f64): Likewise.
32851         (vcvtmd_u64_f64): Likewise.
32852         (vcvtms_u32_f32): Likewise.
32853         (vcvtad_u64_f64): Likewise.
32854         (vcvtas_u32_f32): Likewise.
32855         (vcvtnd_u64_f64): Likewise.
32856         (vcvtns_u32_f32): Likewise.
32857         (vcvtpd_u64_f64): Likewise.
32858         (vcvtps_u32_f32): Likewise.
32860 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32862         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
32863         CSEL of zero_extended registers.
32865 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32867         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
32868         Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
32870 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32872         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
32873         false when argument string is not found in the attributes table
32874         at all.
32876 2016-01-15  David Edelsohn  <dje.gcc@gmail.com>
32878         PR target/68609
32879         * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
32880         (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
32881         * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
32882         precision estimate.
32884 2016-01-15  Richard Biener  <rguenther@suse.de>
32886         PR tree-optimization/66856
32887         * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
32888         * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
32889         (vect_create_new_slp_node): Increment stmt reference count.
32890         (vect_get_and_check_slp_defs): Make sure stmts are nor already in
32891         an SLP tree before swapping operands.
32892         (vect_build_slp_tree): Likewise.
32893         (destroy_bb_vec_info): Free stmt info after SLP instances.
32894         * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
32895         * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
32896         (STMT_VINFO_NUM_SLP_USES): New macro.
32898 2016-01-15  Richard Biener  <rguenther@suse.de>
32900         PR debug/69137
32901         * dwarf2out.c (add_linkage_name_raw): New function split out from ...
32902         (add_linkage_name): ... here.
32903         (gen_typedef_die): Use add_linkage_name_raw instead of
32904         add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
32905         if necessary.
32907 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
32909         * gimplify.c (oacc_default_clause): Decode reference and pointer
32910         types for both kernels and parallel regions.
32912 2016-01-15  Richard Sandiford  <richard.sandiford@arm.com>
32914         PR middle-end/69246
32915         * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
32917 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
32919         * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
32920         (convert_scalars_to_vector): Likewise.
32922 2016-01-15  Jonathan Wakely  <jwakely@redhat.com>
32924         * doc/extend.texi (Type Traits): Fix grammar.
32926 2016-01-15  Martin Jambor  <mjambor@suse.cz>
32928         * tree-inline.c (remap_decl): Use existing dclarations if
32929         remapping a type and prevent_decl_creation_for_types.
32930         (replace_locals_stmt): Do an initial remapping of non-VLA typed
32931         decls first.  Do real remapping with
32932         prevent_decl_creation_for_types set.
32933         * tree-inline.h (copy_body_data): New field
32934         prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
32935         padding.
32937 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
32939         * config/s390/s390.opt (mmvcle): More verbose help text.
32941 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
32943         * config/s390/s390.opt: Add period to -mzvector option text.
32945 2016-01-15  Richard Biener  <rguenther@suse.de>
32947         PR tree-optimization/68961
32948         * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
32949         of invariants in stores again.
32951 2016-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
32953         * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
32955 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
32957         * config/i386/i386.c (ix86_expand_branch): Don't split
32958         DI mode xor instruction to SI mode.
32960 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
32962         PR ipa/68148
32963         * ipa-icf.c (sem_function::merge): Virtual functions may become
32964         reachable even if they address is not taken and there are no
32965         idrect calls.
32967 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
32969         * lto-streamer-out.c (subtract_estimated_size): New function.
32970         (get_symbol_initial_value): Use it.
32972 2016-01-15  Christian Bruel  <christian.bruel@st.com>
32974         PR target/65837
32975         * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
32976         (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
32977         (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
32978         use add_builtin_function_ext_scope instead of add_builtin_function.
32979         (neon_set_p, neon_crypto_set_p): Remove.
32980         (arm_init_builtins): Always call arm_init_neon_builtins and
32981         arm_init_crypto_builtins.
32982         (arm_expand_builtin): Check that builtins are allowed for the arch.
32983         * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
32984         * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
32985         arm_init_neon_builtins call.
32987 2016-01-15  Richard Biener  <rguenther@suse.de>
32989         PR tree-optimization/69117
32990         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
32991         * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
32992         of the leader conservatively.
32993         (free_scc_vn): Restore original SSA name infos.
32995 2016-01-14  Jeff Law  <law@redhat.com>
32997         PR tree-optimization/69270
32998         * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
32999         single bit of precision, verify it's also unsigned.
33000         (record_edge_info): Use constant_boolean_node rather than fold_convert
33001         to convert boolean_true/boolean_false to the right type.
33003 2016-01-14  Richard Henderson  <rth@redhat.com>
33005         PR rtl-opt/69014
33006         * loop-doloop.c (record_reg_sets): New.
33007         (doloop_optimize): Reject the transform if the sequence
33008         clobbers registers live at the end of the loop block.
33009         (doloop_optimize_loops): Enable df_live if needed.
33011 2016-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
33013         * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
33014         * config/rs6000/rs6000.c: Likewise.
33015         * config/rs6000/rs6000.h: Likewise.
33016         * config/rs6000/rs6000.md: Likewise.
33017         * doc/extend.texi: Likewsie.
33019 2016-01-14  Jeff Law  <law@redhat.com>
33021         * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
33022         typo.
33024 2016-01-14  Richard Henderson  <rth@redhat.com>
33026         PR c/69272
33027         PR tree-opt/68964
33028         * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
33029         * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
33030         instead of builtin_decl_declared_p to test for declaration.
33032 2016-01-14  Nicklas Bo Jensen  <nbjensen@gmail.com>
33034         * doc/loop.texi (Loop Analysis and Representation): Document
33035         loop_depth function.
33037 2016-01-14  Tom de Vries  <tom@codesourcery.com>
33039         PR tree-optimization/68773
33040         * omp-low.c (expand_omp_target): Don't set force_output.
33041         * varpool.c (varpool_node::get_create): Same.
33042         * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
33043         offload_funcs with force_output.
33045 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
33047         PR debug/69244
33048         * lra-eliminations.c (move_plus_up): Don't change anything if either
33049         the outer or inner subreg mode is not MODE_INT.
33050         * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
33051         integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
33053 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
33055         * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
33056         reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
33057         reduc_uplus_@var{m}): Remove.
33058         * expr.c (expand_expr_real_2): Remove expansion path for
33059         reduc_[us](min|max|plus) optabs.
33060         * optabs-tree.c (scalar_reduc_to_vector): Remove.
33061         * optabs-tree.h (scalar_reduc_to_vector): Remove.
33062         * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
33063         reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
33064         * tree-vect-loop.c (vectorizable_reduction): Remove test for
33065         reduc_[us](min|max|plus) optabs.
33067 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
33069         * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
33070         (reduc_plus_scal_v2sf): New.
33071         (reduc_smax_v2sf): Rename to...
33072         (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
33073         (reduc_smin_v2sf): Rename to...
33074         (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
33076 2016-01-14  Jan Hubicka  <hubicka@ucw.cz>
33078         * alias.c (compare_base_symbol_refs): New function.
33079         (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
33080         it.
33082 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
33084         PR middle-end/68146
33085         PR tree-optimization/69155
33086         * tree-complex.c: Include cfganal.h.
33087         (phis_to_revisit): New variable.
33088         (extract_component): Add phiarg_p argument.  Assert that returned
33089         SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
33090         (update_phi_components): Partly rewrite to use loop over real/imag
33091         components instead of code duplication.  If extract_component returns
33092         SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
33093         create_tmp_reg into the PHI node instead, and mention the phi triplet
33094         in phis_to_revisit.
33095         (tree_lower_complex): Walk bbs in rpo order.  Adjust phis recorded
33096         in phis_to_revisit at the end.
33098 2016-01-14  Richard Biener  <rguenther@suse.de>
33100         PR tree-optimization/68060
33101         * tree-vect-loop.c (vect_is_simple_reduction): Check the
33102         outer loop reduction is only used in the inner loop before
33103         detecting a double reduction.
33105 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
33107         PR target/68269
33108         * combine.c (expand_field_assignment): Punt if compute_mode is
33109         unsupported scalar mode.
33111 2016-01-14  Richard Biener  <rguenther@suse.de>
33113         PR tree-optimization/66856
33114         * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
33115         SLP node only if it built successfully.
33116         (vect_analyze_slp_instance): Adjust.
33118 2016-01-14  Jeff Law  <law@redhat.com>
33120         PR tree-optimization/69270
33121         * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
33122         (record_edge_info): Use it.  Convert boolean_{true,false}_node
33123         to the type of op0.
33125 2016-01-13  Jan Hubicka  <hubicka@ucw.cz>
33127         PR ipa/66487
33128         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
33129         use block_ultimate_origin
33130         (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
33132 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
33134         * doc/invoke.texi (Submodel Options): Rename section to
33135         "Machine-Dependent Options" to better reflect its content.
33136         Rewrite introductory text to remove archaic CPU names.
33137         Update references.
33139 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
33141         * doc/invoke.texi (Code Gen Options): Move section up in file,
33142         before target-specific options.  Update menu and option summary
33143         to reflect the new section ordering.
33145 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
33147         * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
33148         (C++ Dialect Options): Add cross-reference to -std option.
33149         * doc/standards.texi (C++ Language): Document C++14 support.
33151 2016-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
33153         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
33154         for pack/unpack functions for __ibm128.
33155         (PACK_IF): Likewise.
33156         (UNPACK_IF): Likewise.
33158         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
33159         support for __ibm128 pack/unpack functions.
33160         (rs6000_invalid_builtin): Likewise.
33161         (rs6000_init_builtins): Likewise.
33162         (rs6000_opt_masks): Likewise.
33164         * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
33165         (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
33166         functions
33167         (RS6000_BTM_COMMON): Likewise.
33169         * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
33170         (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
33171         disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
33172         128-bit floating point.  Add support for the double values to be
33173         in Altivec registers for TF/IF packing and unpacking, but restrict
33174         TD packing sub-fields to be FPR registers.  Don't allow overlapped
33175         register support for packing.  Allow pack inputs to be memory
33176         locations.  Don't build generator functions for unpack<mode>_dm
33177         and unpack<mode>_nodm.
33178         (unpack<mode>_dm): Likewise.
33179         (unpack<mode>_nodm): Likewise.
33180         (pack<mode>): Likewise.
33182         * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
33183         built-in functions to pack/unpack explicit __ibm128 values.
33184         (__builtin_unpack_ibm128): Likewise.
33186         * doc/extend.texi (PowerPC Built-in Functions): Document
33187         __builtin_pack_ibm128 and __builtin_unpack_ibm128.
33189 2016-01-13  Bernd Schmidt  <bschmidt@redhat.com>
33191         PR c/66208
33192         * c-common.c (check_function_nonnull): Remove unnecessary declaration.
33193         Add new arg loc and pass it down as context.
33194         (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
33195         to the location to use for the warning.
33196         (check_function_arguments): New arg loc.  All callers changed.  Pass
33197         it to check_function_nonnull.
33198         * c-common.h (check_function_arguments): Adjust declaration.
33200 2016-01-13  Jakub Jelinek  <jakub@redhat.com>
33202         PR tree-optimization/69156
33203         * gimple.c (validate_type): Removed.
33204         (gimple_builtin_call_types_compatible_p): Use
33205         useless_type_conversion_p instead of validate_type.
33206         * value-prof.c (gimple_stringop_fixed_value): Fold
33207         icall_size to correct type.
33209 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
33211         * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
33212         effects.
33214 2016-01-13  Richard Henderson  <rth@redhat.com>
33216         PR tree-opt/68964
33217         * target.def (builtin_tm_load, builtin_tm_store): Remove.
33218         * config/i386/i386.c (ix86_builtin_tm_load): Remove.
33219         (ix86_builtin_tm_store): Remove.
33220         (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
33221         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
33222         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
33223         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
33224         * doc/tm.texi: Rebuild.
33226         * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
33227         (BUILT_IN_TM_MEMCPY_RTWN): New.
33228         * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
33229         fallback from vector to integer helpers.
33230         (build_tm_load): Handle vector types directly, instead of
33231         via target hook.
33232         (build_tm_store): Likewise.
33233         (expand_assign_tm): Prepare for register types not handled by
33234         the above.  Copy them to memory and use memcpy.
33235         * tree.c (tm_define_builtin): New.
33236         (find_tm_vector_type): New.
33237         (build_tm_vector_builtins): New.
33238         (build_common_builtin_nodes): Call it.
33240 2016-01-13  Uros Bizjak  <ubizjak@gmail.com>
33242         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
33243         TARGET_SSE_MATH without TARGET_SSE2.  Rewrite.
33245 2016-01-13  Tom de Vries  <tom@codesourcery.com>
33247         PR tree-optimization/69169
33248         * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
33249         handled_struct_type param.
33250         (create_variable_info_for, intra_create_variable_infos): Call
33251         create_variable_info_for_1 with extra arg.
33253 2016-01-13  Yvan Roux  <yvan.roux@linaro.org>
33255         * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
33256         and "armv8.1-a+crc" entries.
33258 2016-01-13  Alexander Fomin  <alexander.fomin@intel.com>
33260         PR target/69228
33261         * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
33262         Change first operand predicate from register_or_constm1_operand
33263         to register_operand.
33264         (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
33265         (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
33266         (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
33267         (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
33268         (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
33269         (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
33270         (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
33271         * config/i386/i386.c (ix86_expand_builtin): Remove first operand
33272         comparison with constm1_rtx from vec_prefetch_gen part.
33274 2016-01-13  Richard Biener  <rguenther@suse.de>
33276         PR tree-optimization/69013
33277         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
33278         Exchange assert for a test.
33280 2016-01-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
33282         PR target/69247
33283         * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
33285 2016-01-13  Richard Biener  <rguenther@suse.de>
33287         PR tree-optimization/69242
33288         * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
33289         assert with a check.
33291 2016-01-13  Richard Biener  <rguenther@suse.de>
33293         PR tree-optimization/69186
33294         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
33295         Properly guard vect_update_misalignment_for_peel call.
33297 2016-01-12  Jeff Law  <law@redhat.com>
33299         PR tree-optimization/pr67755
33300         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
33301         "need_profile_correction".
33302         (thread_block_1): Initialize new field to false by default.  If we
33303         have multiple thread paths through a common joiner to different
33304         final targets, then set new field to true.
33305         (compute_path_counts): Only do count adjustment when it's really
33306         needed.
33308 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
33310         * doc/invoke.texi (Spec Files): Move section down in file, past
33311         all command-line option descriptions.
33313 2016-01-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33315         PR middle-end/54809
33316         * doc/gty.texi: Remove documentation of mark_hook.
33317         * gengtype.c (struct write_types_data): Remove code to support
33318         mark_hook attribute.
33319         (walk_type): Likewise.
33320         (write_func_for_structure): Likewise.
33322 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
33324         * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
33325         Directory Options, and -specs= to Overall Options.
33326         (Overall Options): Adjust similarly.  Reorder to group related
33327         options together.  Make -specs= cross-reference the spec file details.
33328         (Directory Options): Adjust similarly.
33330 2016-01-12  Jeff Law  <law@redhat.com>
33332         * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
33334 2016-01-12  Olivier Hainque  <hainque@adacore.com>
33336         * gcc.c (spec_undefvar_allowed): New global.
33337         (process_command): Set to true when running for --version or --help,
33338         alone or together.
33339         (getenv_spec_function): When the variable is not defined, use the
33340         variable name as the variable value if we're allowed not to issue
33341         a fatal error.
33343 2016-01-12  Bin Cheng  <bin.cheng@arm.com>
33345         PR tree-optimization/68911
33346         * tree-vrp.c (adjust_range_with_scev): Check overflow in range
33347         information computed for expression "init + nit * step".
33349 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
33351         * doc/invoke.texi (Invoking GCC): Copy-edit.  Incorporate information
33352         about name of GCC executable.  Remove deleted node from menu.
33353         (Directory Options) <-B>: Remove cross-reference to deleted node.
33354         (Target Options): Delete section.
33356 2016-01-12  Christian Bruel  <christian.bruel@st.com>
33358         PR target/69180
33359         * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
33360         for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
33362 2016-01-12  Jakub Jelinek  <jakub@redhat.com>
33364         PR target/69198
33365         * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
33366         aligned_mem is properly set for AVX512-VL floating point masked
33367         stores.
33369         PR target/69175
33370         * ifcvt.c (cond_exec_process_if_block): When removing the last
33371         insn from then_bb, remove also any possible barriers that follow it.
33373 2016-01-12  H.J. Lu  <hongjiu.lu@intel.com>
33375         PR target/68456
33376         PR target/69226
33377         * config/i386/iamcu.h (SIZE_TYPE): New macro.
33378         (PTRDIFF_TYPE): Likewise.
33379         (WCHAR_TYPE): Likewise.
33380         (WCHAR_TYPE_SIZE): Likewise.
33381         (STDINT_LONG32): Likewise.
33383 2016-01-12  Richard Biener  <rguenther@suse.de>
33385         PR tree-optimization/69053
33386         * tree-vect-loop.c (get_initial_def_for_reduction): Properly
33387         convert initial value for cond reductions.
33389 2016-01-12  Richard Biener  <rguenther@suse.de>
33391         PR tree-optimization/69007
33392         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
33393         widen_sum after dot_prod and sad.
33395 2016-01-12  Richard Biener  <rguenther@suse.de>
33397         PR tree-optimization/69168
33398         * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
33399         pattern stmt SLP type.
33400         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
33401         end up unused so cope with that case.
33403 2016-01-12  Richard Biener  <rguenther@suse.de>
33405         PR tree-optimization/69157
33406         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
33407         stmts def type only during analyze phase.
33408         (vectorizable_call): Likewise.
33409         (vectorizable_simd_clone_call): Likewise.
33410         (vectorizable_conversion): Likewise.
33411         (vectorizable_assignment): Likewise.
33412         (vectorizable_shift): Likewise.
33413         (vectorizable_operation): Likewise.
33414         (vectorizable_store): Likewise.
33415         (vectorizable_load): Likewise.
33417 2016-01-12  Richard Biener  <rguenther@suse.de>
33419         PR tree-optimization/69174
33420         * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
33421         space.
33422         (vectorizable_load): Properly compute the number of loads needed
33423         for permuted strided SLP loads and do not spuriously assign
33424         to SLP_TREE_VEC_STMTS.
33426 2016-01-12  Andris Pavenis  <andris.pavenis@iki.fi>
33428         * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
33429         (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
33430         (MD_EXEC_PREFIX): Remove.
33431         (MD_STARTFILE_PREFIX) Removee.
33432         (FILE_NAME_ABSOLUTE_P): Remove.
33433         (CPP_SPEC): Do not read macros from sys/version.h.
33434         (LINK_COMMAND_SPEC): Remove.
33435         (LOCAL_INCLUDE_DIR): Remove.
33436         (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
33437         (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
33438         (POST_LINK_SPEC): Define to invoke stubify after linker
33439         (LIBSTDCXX): Remove define
33440         (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
33441         (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
33442         (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
33443         (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
33444         (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
33445         (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
33446         (i386_djgpp_asm_named_section): Add propotype of new procedure
33448         * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
33449         (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
33450         (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
33451         in config/i386/djgpp.h).
33452         (STANDARD_STARTFILE_PREFIX_2): Define identical to
33453         STANDARD_STARTFILE_PREFIX_1.
33454         (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
33455         (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
33456         installation errors.
33457         (MAX_OFILE_ALIGNMENT): Define to 128.
33458         (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
33460         * config/i386/djgpp.c: New file. Add implementation of
33461         i386_djgpp_asm_named_section.
33463         * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
33465         * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
33466         Add rule for building djgpp.o.
33468 2016-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33470         * config/rs6000/rs6000.c (v2df_reduction_p): New function.
33471         (rtx_is_swappable_p): Reductions are swappable.
33472         (insn_is_swappable_p): V2DF reductions are swappable.
33474 2016-01-11  John David Anglin  <danglin@gcc.gnu.org>
33476         * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
33477         reloads for other unsupported memory operands.
33479 2016-01-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
33480             Jim Wilson  <jim.wilson@linaro.org>
33482         PR target/69194
33483         * config/arm/arm-builtins.c (arm_expand_neon_args): Call
33484         copy_to_mode_reg instead of force_reg.
33486 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
33488         PR target/69225
33489         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
33490         TARGET_80387 is true.
33492 2016-01-11  Jakub Jelinek  <jakub@redhat.com>
33494         PR target/69071
33495         * lra-eliminations.c (move_plus_up): Only move plus up
33496         if subreg of the constant can be simplified into constant
33497         and use the simplified subreg of the constant instead of
33498         the original constant.
33500         * fold-const.c (fold_convertible_p): Don't return true
33501         for conversion of VECTOR_TYPE to same sized integral type.
33502         (fold_convert_loc): Fix up formatting.  Fold conversion of
33503         VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
33504         instead of NOP_EXPR.
33506         PR tree-optimization/69214
33507         * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
33508         innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
33509         Formatting fix.
33511         PR tree-optimization/69207
33512         * tree-vect-slp.c (vect_get_constant_vectors): For
33513         VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
33514         fold_convertible_p to vector_type's element type, and always
33515         use VCE for non-VECTOR_BOOLEAN_TYPE_P.
33517 2016-01-11  Richard Biener  <rguenther@suse.de>
33519         PR tree-optimization/69173
33520         * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
33521         fixup the cycle if all stmts are in a pattern.
33523 2016-01-11  Uros Bizjak  <ubizjak@gmail.com>
33525         PR middle-end/68999
33526         * alias.c (base_alias_check): Move check for addresses with
33527         alignment ANDs before the call for compare_base_decls.
33528         (memrefs_conflict_p): Return -1 for different decls
33529         that went through alignment adjustments.
33531 2016-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33533         PR rtl-optimization/68796
33534         * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
33535         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
33536         and QImode comparisons against zero with CC_NZmode.
33537         * config/aarch64/iterators.md (short_mask): New mode_attr.
33539 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
33541         * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
33542         (<avx512>_store<mode>_mask): Likewise.
33544 2016-01-11  Bernd Schmidt  <bschmidt@redhat.com>
33545             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33547         PR rtl-optimization/68841
33548         * ifcvt.c (struct noce_if_info): Add orig_x field.
33549         (bbs_ok_for_cmove_arith): Add to_rename parameter.
33550         Don't record conflicts on to_rename if it's present.
33551         Allow memory destinations in sets.
33552         (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
33553         blocks, passing orig_x to the checks.
33554         (noce_process_if_block): Set if_info->orig_x appropriately.
33556 2016-01-11  Tom de Vries  <tom@codesourcery.com>
33558         PR tree-optimization/69069
33559         * tree-parloops.c (create_parallel_loop): Add missing phi args.
33561 2016-01-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
33563         PR rtl-optimization/68920
33564         * config/i386/i386.c (ix86_option_override_internal): Restrict number
33565         of conditional moves for  RTL if-conversion to 1 for
33566         TARGET_ONE_IF_CONV_INSN.
33567         * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
33568         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
33569         * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
33570         parameter to restirct number of conditional moves for
33571         RTL if-conversion.
33572         * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
33573         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
33574         conditionl moves.
33576 2016-01-11  Alexandre Oliva  <aoliva@redhat.com>
33578         PR bootstrap/69123
33579         * var-tracking.c (drop_overlapping_mem_locs): Operate on all
33580         onepart vars.  Fix typo in comment.  Fix reversed condition in
33581         unshare test.
33582         (dataflow_set_remove_mem_locs): Operate on all onepart vars.
33584         PR bootstrap/69123
33585         * var-tracking.c (dump_onepart_variable_differences): New.
33586         (dataflow_set_different): If a detailed dump is requested,
33587         delay early returns and dump differences between onepart
33588         variables present before and after, and added variables.
33590 2016-01-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
33592         PR target/69010
33593         * expr.c (expand_expr_real_1): For boolean vector constants
33594         with a scalar mode use const_scalar_mask_from_tree.
33595         (const_scalar_mask_from_tree): New.
33596         * optabs.c (expand_vec_cond_mask_expr): Use mask mode
33597         assigned to a mask type to handle constants.
33599 2016-01-11  Martin Jambor  <mjambor@suse.cz>
33601         PR ipa/69044
33602         * ipa-cp.c (estimate_local_effects): Do not clone for removal of
33603         useless parameters if we cannot change function signature.
33605 2016-01-11  Martin Jambor  <mjambor@suse.cz>
33607         PR ipa/66616
33608         * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
33609         flag.
33611 2016-01-11  Tom de Vries  <tom@codesourcery.com>
33613         PR tree-optimization/69109
33614         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
33615         latch with phi.
33617 2016-01-11  Tom de Vries  <tom@codesourcery.com>
33619         PR tree-optimization/69108
33620         * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
33621         res is not used in a phi.
33623 2016-01-11  Yury Gribov  <y.gribov@samsung.com>
33625         PR 67425
33626         * common.opt (frandom-seed): Fix parameter name.
33627         * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
33629 2016-01-11  Tom de Vries  <tom@codesourcery.com>
33631         PR tree-optimization/69058
33632         * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
33633         not supported.
33635 2016-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
33637         * config/arc/arc.opt (mdiv-rem): Add period to the end.
33638         (mcode-density): Likewise.
33640 2016-01-10  Tom de Vries  <tom@codesourcery.com>
33642         PR tree-optimization/69062
33643         * tree-parloops.c (loop_has_phi_with_address_arg): New function.
33644         (parallelize_loops): Don't paralelize loop that has phi with address
33645         arg.
33647 2016-01-10  Tom de Vries  <tom@codesourcery.com>
33649         PR tree-optimization/69039
33650         * tree-parloops.c (try_create_reduction_list): Only allow single exit
33651         phi for reduction.
33653 2016-01-09  John David Anglin  <danglin@gcc.gnu.org>
33655         PR middle-end/68743
33656         * match.pd: Require target has function_c99_misc before doing
33657         truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
33659 2016-01-09  Gerald Pfeifer  <gerald@pfeifer.com>
33661         * configure.ac (isl_options_set_schedule_serialize_sccs): Also
33662         use GMPINC.
33663         * configure: Regenerate.
33665 2016-01-09  Jakub Jelinek  <jakub@redhat.com>
33667         PR middle-end/50865
33668         PR tree-optimization/69097
33669         * fold-const.h (expr_not_equal_to): New prototype.
33670         * fold-const.c: Include stringpool.h and tree-ssanames.h.
33671         (expr_not_equal_to): New function.
33672         * match.pd (X % -Y is the same as X % Y): Don't optimize
33673         unless X is known not to be equal to minimum or Y is known
33674         not to be equal to -1.
33675         * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
33676         fold TRUNC_MOD_EXPR if the second argument is not a power of two.
33677         (simplify_stmt_using_ranges): Adjust caller.
33678         (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
33679         substitute_and_fold.
33681 2016-01-09  Jan Hubicka  <hubicka@ucw.cz>
33683         * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
33684         w/o DECL_NAME.
33686 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
33688         PR tree-optimization/69167
33689         * gimple-fold.c (replace_stmt_with_simplification): Also punt if
33690         new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
33691         ops[0] comparison.
33692         * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
33694 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
33695             Richard Biener  <rguenther@suse.de>
33697         PR tree-optimization/68707
33698         * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
33699         instances that can be handled via vect_load_lanes.
33701 2016-01-08  Uros Bizjak  <ubizjak@gmail.com>
33703         * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
33704         if we can't determine address equivalence.
33705         * alias.c (compare_base_decl): Update for changed return value of
33706         symtab_node::equal_address_to.
33708 2016-01-08  Jason Merrill  <jason@redhat.com>
33710         PR c++/68983
33711         PR c++/67557
33712         * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
33713         * expr.c (store_field): Not here.
33714         * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
33715         call with TREE_ADDRESSABLE type.
33716         * tree-cfg.c (verify_gimple_call): Adjust.
33718 2016-01-08  Olivier Hainque  <hainque@adacore.com>
33720         * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
33721         libc_internal.
33723 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
33725         * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
33726         (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
33727         (reduc_smin_v2sf): Rename to...
33728         (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
33729         (reduc_splus_v2sf): Rename to...
33730         (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
33732 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
33734         PR tree-optimization/69162
33735         * gimplify.c (gimplify_va_arg_expr): Encode original type of
33736         valist argument in another argument.
33737         (gimplify_modify_expr): Adjust for the above change.  Cleanup.
33738         * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
33739         to determine the va_list type, build a MEM_REF instead of
33740         build_fold_indirect_ref.
33742         PR tree-optimization/69172
33743         * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
33744         gimple_build.
33746 2016-01-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
33748         PR tree-optimization/67781
33749         * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
33750         and cmpnop in two steps: first the ones not accessed in original
33751         gimple expression in a endian independent way and then the ones not
33752         accessed in the final result in an endian-specific way.
33754 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
33756         PR tree-optimization/69083
33757         * tree-vect-slp.c (vect_get_constant_vectors): For
33758         VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
33759         element type.  If op is fold_convertible_p to vector_type's element
33760         type, use NOP_EXPR instead of VCE.
33762 2016-01-08  Segher Boessenkool  <segher@kernel.crashing.org>
33764         PR rtl-optimization/67778
33765         PR rtl-optimization/68634
33766         PR rtl-optimization/68909
33767         * shrink-wrap.c (try_shrink_wrapping): Add comment.  Don't pop
33768         block from the stack until done with it.  Remove a superfluous
33769         bitmap set.  Remove a superfluous bitmap test.
33771 2016-01-07  Martin Sebor  <msebor@redhat.com>
33773         PR c/68966
33774         * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
33775         constraint on the type of arguments.
33777 2016-01-07  Andreas Tobler  <andreast@gcc.gnu.org>
33779         * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
33780         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
33781         unaligned_access on the gcc_options set.
33782         * config/arm/arm.c (arm_option_override_internal): Use
33783         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
33785 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
33787         PR target/69140
33788         * config/i386/i386.c (ix86_frame_pointer_required): Enable
33789         frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
33791 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
33793         Revert
33794         2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
33796         PR target/69140
33797         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
33798         depending on frame_pointer_needed before remaining integer and SSE
33799         registers are saved.
33801 2016-01-07  Sandra Loosemore  <sandra@codesourcery.com>
33803         PR 1078
33804         * doc/extend.texi (Nvidia PDX Function Attributes): New section.
33806 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
33808         PR target/69171
33809         * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
33810         Use the "xBm" constraint.
33811         (float<sseintvecmodelower><mode>2<mask_name><round_name):
33812         Likewise.
33813         (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
33814         (sse_cvtsi2ssq<round_name>): Likewise.
33815         (sse_cvtss2si<round_name>): Likewise.
33816         (sse_cvtss2siq<round_name>): Likewise.
33817         (sse2_cvtsi2sdq<round_name>): Likewise.
33818         (sse2_cvtsd2si<round_name>): Likewise.
33819         (sse2_cvtsd2siq<round_name>): Likewise.
33820         * config/i386/subst.md (round_nimm_scalar_predicate): New
33821         predicate.
33823 2015-12-15  Bernd Schmidt  <bschmidt@redhat.com>
33825         PR middle-end/67639
33826         * varasm.c (make_decl_rtl): Mark invalid register vars as
33827         DECL_EXTERNAL.
33829         PR rtl-optimization/66206
33830         * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
33831         All callers changed.
33833 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
33835         PR tree-optimization/69141
33836         * tree-ssa-pre.c: Include langhooks.h.
33837         (eliminate_dom_walker::before_dom_children): Use
33838         lang_hooks.decl_printable_name instead of
33839         cgraph_node::get ()->name ().
33841         PR middle-end/68960
33842         * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
33843         it and DECL_ALIGN too.
33845 2016-01-06  Robert Suchanek  <robert.suchanek@imgtec.com>
33847         * config/mips/mips-ftypes.def: Sort to lexicographical order.
33849 2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
33851         PR target/69140
33852         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
33853         depending on frame_pointer_needed before remaining integer and SSE
33854         registers are saved.
33856 2015-01-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33858         * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
33859         mode iterator with VSX_M2.
33860         (*p9_vecstore_<mode>): Likewise.
33861         (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
33862         (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
33863         (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
33864         (define_split for VSX_LE128 stores): Likewise.
33865         (define_peephole2 for TImode LE swaps): Likewise.
33866         (define_split for VSX_LE128 post-reload stores): Likewise.
33868 2016-01-06  Marek Polacek  <polacek@redhat.com>
33870         PR sanitizer/69099
33871         * convert.c (convert_to_integer_1): Adjust call to
33872         ubsan_instrument_float_cast.  Use NULL_TREE instead of NULL.
33873         * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter.  Use
33874         EXPR instead of ARG.
33875         * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
33877 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
33879         PR 1078
33880         * doc/extend.texi (RL78 Variable Attributes): New section.
33882 2016-01-05  Marek Polacek  <polacek@redhat.com>
33884         PR c/69104
33885         * builtins.c (get_memmodel): Use expansion point location rather than
33886         the input location.  Call warning_at rather than warning.
33887         (expand_builtin_atomic_compare_exchange): Likewise.
33888         (expand_builtin_atomic_load): Likewise.
33889         (expand_builtin_atomic_store): Likewise.
33890         (expand_builtin_atomic_clear): Likewise.
33892 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
33894         PR target/68991
33895         * config/i386/i386.c (ix86_expand_vector_logical_operator):
33896         Replace nonimmediate_operand with vector_operand.
33897         * config/i386/predicates.md (vector_operand): New predicate.
33898         (general_vector_operand): Replace nonimmediate_operand with
33899         vector_operand.
33900         * config/i386/sse.md: Replace nonimmediate_operand with
33901         vector_operand and m constraint with Bm constraint on SSE
33902         patterns with 16-byte memory operand.
33903         * config/i386/subst.md (round_nimm_predicate): Replace
33904         nonimmediate_operand with vector_operand.
33905         (round_saeonly_nimm_predicate): Likewise.
33906         (round_saeonly_nimm_scalar_predicate): New.
33908 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
33910         PR target/68991
33911         * config/i386/constraints.md (Bm): New constraint.
33912         * config/i386/predicates.md (vector_memory_operand): New
33913         predicate.
33914         * config/i386/sse.md: Replace xm with xBm in plusminus and
33915         any_logic patterns.
33917 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
33919         PR 1078
33920         * doc/extend.texi (V850 Function Attributes): New section.
33921         (V850 Variable Attributes): New section.
33923 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
33925         PR 1078
33926         * doc/extend.texi (MicroBlaze Function Attributes): Document
33927         interrupt_handler and fast_interrupt attributes.
33929 2016-01-05  Sergei Trofimovich  <siarheit@google.com>
33931         PR other/60465
33932         * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
33933         for local symbolic operands.
33934         * config/ia64/predicates.md (local_symbolic_operand64): New
33935         predicate.
33937 2016-01-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33939         PR rtl-optimization/68651
33940         * combine.c (combine_simplify_rtx): Canonicalize x + x into
33941         x << 1.
33943 2016-01-05  Nathan Sidwell  <nathan@acm.org>
33945         * alias.c (compare_base_decls): Use symtab_node::get.
33947 2016-01-05  Nick Clifton  <nickc@redhat.com>
33949         PR target/68770
33950         * ira-costs.c (copy_cost): Initialise the t_icode field of the
33951         secondary_reload_info structure.
33953         PR target/66655
33954         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
33955         decls if weak support is available.
33957 2016-01-04  Martin Sebor  <msebor@redhat.com>
33959         * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
33961 2016-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
33963         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
33964         OPTION_MASK_P9_DFORM.
33966         * config/rs6000/constraints.md (wo constraint): New constraint for
33967         ISA 3.0 (power9).
33969         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
33970         for wo constraint.
33971         (rs6000_init_hard_regno_mode_ok): Likewise.
33973         * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
33974         wo constraint.
33976         * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
33977         expanders not to have constraints.  Add support for ISA 3.0 xxperm
33978         instruction.  Add support for fusing xxlor with xxperm.
33979         (altivec_vperm_<mode>_internal): Likewise.
33980         (altivec_vperm_v8hiv16qi): Likewise.
33981         (altivec_vperm_<mode>v16q): Likewise.
33982         (altivec_vperm_<mode>_uns): Likewise.
33983         (vperm_v8hiv4si): Likewise.
33984         (vperm_v16qiv8hi): Likewise.
33986         * doc/md.texi (RS/6000 constraints): Document wo constraint.
33988 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
33990         Update copyright years.
33992         * gcc.c (process_command): Update copyright notice dates.
33993         * gcov-dump.c (print_version): Ditto.
33994         * gcov.c (print_version): Ditto.
33995         * gcov-tool.c (print_version): Ditto.
33996         * gengtype.c (create_file): Ditto.
33997         * doc/cpp.texi: Bump @copying's copyright year.
33998         * doc/cppinternals.texi: Ditto.
33999         * doc/gcc.texi: Ditto.
34000         * doc/gccint.texi: Ditto.
34001         * doc/gcov.texi: Ditto.
34002         * doc/install.texi: Ditto.
34003         * doc/invoke.texi: Ditto.
34005 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
34007         * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
34008         modes larger than TImode as TImode if NEON is not enabled.
34010 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
34012         PR target/69100
34013         * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
34014         mode for %f0-%f31 only if TARGET_FPU.
34016 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
34018         PR target/69072
34019         * config/sparc/sparc.c (scan_record_type): Take into account subfields
34020         to compute the PACKED_P predicate.
34021         (function_arg_record_value): Minor tweaks.
34023 2016-01-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
34025         * doc/install.texi (--with-multilib-list): Describe the meaning of the
34026         option for arm*-*-* targets.
34028 2016-01-03  Sandra Loosemore  <sandra@codesourcery.com>
34030         * doc/extend.texi (Common Function Attributes): Move docs for
34031         MSP430-specific attributes to....
34032         (MSP430 Function Attributes): ...here.  Delete the redundant
34033         entries and copy-edit the remaining text.
34034         (MSP430 Variable Attributes): Use uniform format for index
34035         entries and add a cross-reference to the corresponding function
34036         attribute docs.
34038 2016-01-03  Vladimír Čunát  <vcunat@gmail.com>
34040         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
34041         -finite-math typo.
34042         (x86 Options): Likewise.
34044 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
34046         PR 1078
34048         * extend.texi (Common Function Attributes) <no_stack_limit>: New.
34049         * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
34050         to corresponding attribute.
34052 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
34054         * doc/extend.texi (Common Function Attributes) <noplt>: Move
34055         to correct alphabetization of table.  Copy-edit and correct
34056         markup.
34057         <stack_protect>: Likewise.
34058         <target_clones>: Likewise.
34059         <simd>: Likewise.
34060         * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
34061         Correct punctuation.
34062         (Code Gen Options) <-fno-plt>: Copy-edit.
34064 2016-01-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
34066         PR target/68917
34067         * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
34068         SI values.  Explicitly convert SI to DI and vice-versa.
34070 2016-01-01  Jakub Jelinek  <jakub@redhat.com>
34072         PR tree-optimization/69070
34073         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
34074         REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
34076         PR sanitizer/69055
34077         * ubsan.c (ubsan_instrument_float_cast): Call
34078         initialize_sanitizer_builtins.
34080         PR target/69015
34081         * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
34083 Copyright (C) 2016 Free Software Foundation, Inc.
34085 Copying and distribution of this file, with or without modification,
34086 are permitted in any medium without royalty provided the copyright
34087 notice and this notice are preserved.